Searcharxiv⌕ Search

arXiv subjects

Benjamin Weigell

Publications and source records attributed to Benjamin Weigell.

3 recordsLinked to original sources

Green Code or Costly Code? Evaluating the Energy Costs of Iterative LLM-Based Code Optimizations

Large Language Models (LLMs) are increasingly used to optimize code for performance. This practice often assumes that improvements in execution speed naturally translate into overall lower energy consumption. We challenge this assumption empirically by measuring whether performance-optimized code produced by LLM self-refinement pipelines is also energy-efficient relative to canonical human reference solutions, and whether the energy cost of the optimization process can be offset by subsequent execution-time savings. We evaluate 11 open-source models across four decoding configurations on all 1,000 problems of EffiBench, a state-of-the-art performance benchmark, while collecting per-process, hardware-level energy measurements throughout. Inference energy spans 0.79 to 8.68 MJ across model-variant pairs, which is roughly equivalent to the energy of 250 to 2800 GPT-4.1 queries. Limiting the maximum number of output tokens has the largest impact, reducing energy use by up to 69% compared to the default configuration. On the execution side, 42 of 44 configurations produce code that consumes more energy per problem than the canonical human reference, with overheads ranging from +4% to +886%. The two exceptions achieve only marginal gains, with break-even points on the order of 10^6 to 10^7 executions. Mixture-of-Experts architectures consume substantially less inference energy than equivalently-sized dense models without sacrificing correctness, making architectural choice a more consequential sustainability lever than decoding parameters. Performance optimization and energy efficiency are not always aligned goals: LLM self-refinement consistently produces faster-seeking but energy-heavier code relative to what a human engineer would write. All artifacts are available at https://doi.org/10.5281/zenodo.23598170.

cs.SE↗

Measuring and Optimizing Energy Efficiency in ICT: A Multi-vocal Literature Review on Data Centers, Cloud Computing, and LLM-Driven Code Optimization

Rapid growth in Information and Communication Technology (ICT) increases electricity use and environmental impact. Addressing this challenge requires a systematic, software-centric view of how energy and related sustainability attributes are measured, reported, and improved. We present a comprehensive Multi-vocal Literature Review (MLR) integrating peer-reviewed and gray literature to map current practice in measuring and optimizing energy use in ICT software, with emphasis on data centers and cloud computing environments (DCCCEs). First, we synthesize how sustainability is measured across ICT by proposing a taxonomy organized along metric domains (power/energy, energy efficiency, environmental impact) and component granularity (from applications, to containers/VMs, and system-of-systems levels). We summarize measurement approaches and the tooling landscape that implements them. Second, we review optimization strategies at the software and system levels, covering dynamic power and resource management, VM/container consolidation, energy-aware software and system design, and cross-layer, system-wide methods relevant to DCCCEs. Third, we examine how large language models (LLMs) are applied to code generation and transformation for resource-efficient software, noting that most studies target code generation (predominantly in Python) and evaluate runtime and memory, with fewer works directly reporting energy. Hardware- and network-level telemetry are treated as data sources for software-level analysis. We identify gaps in vendor-neutral telemetry, consistent measurement and reporting practices, network-level metrics, and unified, cross-layer optimization frameworks, and outline directions for improving reproducibility and comparability. We screened 635 records (2010-2025) and included 181 sources (122 peer-reviewed, 59 gray).

cs.SE↗

METRION: A Framework for Accurate Software Energy Measurement

The Information and Communication Technology sector accounted for approximately 1.4% of global greenhouse gas emissions and 4% of the world's electricity consumption in 2020, with both expected to rise. To reduce this environmental impact, optimization strategies are employed to reduce energy consumption at the IT infrastructure and application levels. However, effective optimization requires, firstly, the identification of major energy consumers and, secondly, the ability to quantify whether an optimization has achieved the intended energy savings. Accurate determination of application-level energy consumption is thus essential. Therefore, we introduce an energy attribution model that quantifies the energy consumption of applications on CPU and DRAM at the thread level, considering the influence of Simultaneous Multithreading, frequency scaling, multi-socket architectures, and Non-Uniform Memory Access. To ensure cross-platform applicability, we integrate the proposed model into an extensible framework, METRION, including a platform-independent data model and an initial implementation for Linux systems using Intel CPUs. We evaluate METRION across three different workloads and demonstrate that the energy attribution model can accurately capture the CPU energy consumption of applications targeting solely the CPU with a Mean Absolute Percentage Error of 4.2%, and the DRAM energy consumption of applications targeting DRAM with an 16.1% error.

cs.SE↗