Systematic Detection of Energy Regression and Corresponding Code Patterns in Java Projects
- URL: http://arxiv.org/abs/2604.19373v1
- Date: Tue, 21 Apr 2026 11:54:43 GMT
- Title: Systematic Detection of Energy Regression and Corresponding Code Patterns in Java Projects
- Abstract summary: Green software engineering is emerging as a crucial response to information technology's rising energy impact.<n>We introduce EnergyTrackr, an approach designed to detect energy regressions across multiple commits.<n>We show the approach's ability to identify significant energy changes and highlight recurring anti-patterns.
- Score: 0.8620335948752809
- License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
- Abstract: Green software engineering is emerging as a crucial response to information technology's rising energy impact, especially in continuous development. However, there remain challenges in devising automated methods for identifying energy regressions across commits and their associated code change patterns. In particular, little effort has been put into automatically detecting regressions at the commit level by identifying statistically significant changes in energy consumption. In this paper, we introduce EnergyTrackr, an approach designed to detect energy regressions across multiple commits that can then be used to identify code anti-patterns potentially contributing to the increase of software energy consumption over time. We describe our empirical evaluation, including repository mining and source code analysis, made on 3,232 commits from three Java projects, and show the approach's ability to identify significant energy changes. We also highlight recurring anti-patterns such as missing early exits or costly dependency upgrades. We expect EnergyTrackr to assist developers in accurately monitoring energy regressions and improvements within their projects, identifying code anti-patterns, and helping them optimize their source code to reduce software energy consumption.
Related papers
- Developer Attitudes and Practices Towards Optimizing Software Energy Consumption [9.378911615939925]
Energy consumption is explicitly considered in only a minority of projects.<n>More commonly, developers influence energy use indirectly by optimizing proxy properties such as execution time and CPU utilization.<n>We identify organizational disincentives, limited tooling, and educational gaps as major barriers to adoption.
arXiv Detail & Related papers (2026-08-31T09:57:36Z) - A Survey on the Green Development of Large Models: From Resource-Efficient Architectures to Hardware-Software Co-Design [71.32556809242666]
The rapid expansion of large-scale AI models has led to significant performance breakthroughs across diverse domains.<n>It has also raised critical concerns regarding computational costs, energy consumption, and environmental sustainability.<n>This survey aims to offer a holistic roadmap toward sustainable, scalable, and socially responsible development of large models.
arXiv Detail & Related papers (2026-07-10T04:02:22Z) - A Validated Taxonomy on Software Energy Smells [2.0667975423802614]
We present a comprehensive, language-agnostic, taxonomy of software energy smells.<n>We profile over 21,000 functionally equivalent Python code pairs for energy, time, and memory.<n>Along with the taxonomy, we release the labeled dataset, including energy profiles and reasoning traces, to the community.
arXiv Detail & Related papers (2026-04-06T16:15:28Z) - PPTAM$η$: Energy Aware CI/CD Pipeline for Container Based Applications [47.84270304529455]
PPTAM$$ is an automated pipeline that integrates power and energy measurement into GitLab CI for containerised API systems.<n>The pipeline makes energy visible to developers, supports version comparison for test engineers and enables trend analysis for researchers.
arXiv Detail & Related papers (2026-02-12T15:38:35Z) - Towards Green AI: Decoding the Energy of LLM Inference in Software Development [46.879983975894135]
AI-assisted tools are increasingly integrated into software development, but their reliance on large language models (LLMs) introduces substantial computational and energy costs.<n>We conduct a phase-level analysis of LLM inference energy consumption, distinguishing between the (1) prefill, where the model processes the input and builds internal representations, and (2) decoding, where output tokens are generated using the stored state.
arXiv Detail & Related papers (2026-02-05T14:38:19Z) - How Do Agentic AI Systems Deal With Software Energy Concerns? A Pull Request-Based Study [0.9099663022952497]
We examined the energy awareness of agent-authored pull requests (PRs) using a publicly available dataset.<n>We identified 216 energy-explicit PRs and conducted a thematic analysis, deriving a taxonomy of energy-aware work.<n>Although building and running these agents is highly energy intensive, encouragingly, the results indicate that they exhibit energy awareness when generating software artifacts.
arXiv Detail & Related papers (2025-12-31T05:13:56Z) - Taming Imperfect Process Verifiers: A Sampling Perspective on Backtracking [54.43083499412643]
Test-time algorithms that combine the generative power of language models with process verifiers offer a promising lever for eliciting new reasoning capabilities.<n>We introduce a new process-guided test-time sampling algorithm, VGB, which uses theoretically grounded backtracking to achieve provably better robustness to verifier errors.
arXiv Detail & Related papers (2025-10-03T16:21:14Z) - Assessing the Impact of Refactoring Energy-Inefficient Code Patterns on Software Sustainability: An Industry Case Study [9.521952718902973]
We present an industry case study that evaluates the sustainability impact of energy-inefficient code patterns identified by automated software sustainability assessment tools.<n>Preliminary results highlight a positive impact on the application's sustainability post-refactoring, leading to a 29% decrease in per-user per-month energy consumption.
arXiv Detail & Related papers (2025-06-11T03:34:45Z) - Thinking Longer, Not Larger: Enhancing Software Engineering Agents via Scaling Test-Time Compute [61.00662702026523]
We propose a unified Test-Time Compute scaling framework that leverages increased inference-time instead of larger models.<n>Our framework incorporates two complementary strategies: internal TTC and external TTC.<n>We demonstrate our textbf32B model achieves a 46% issue resolution rate, surpassing significantly larger models such as DeepSeek R1 671B and OpenAI o1.
arXiv Detail & Related papers (2025-03-31T07:31:32Z) - Unveiling the Energy Vampires: A Methodology for Debugging Software Energy Consumption [5.602876058122268]
This paper presents an energy debug methodology for identifying and isolating energy consumption hotspots in software systems.<n>Our analysis reveals significant energy consumption differences between Alpine and Ubuntu distributions.<n>By isolating and benchmarking memcpy, we confirm it as the primary cause of the energy discrepancy.
arXiv Detail & Related papers (2024-12-13T11:49:19Z) - Energy Patterns for Web: An Exploratory Study [11.986390881263718]
We focus on the Web domain--a main source of energy consumption.
To quantify the effect of Web energy patterns on energy consumption, we set up an automated pipeline.
arXiv Detail & Related papers (2024-01-12T10:03:43Z) - Energy Transformer [64.22957136952725]
Our work combines aspects of three promising paradigms in machine learning, namely, attention mechanism, energy-based models, and associative memory.
We propose a novel architecture, called the Energy Transformer (or ET for short), that uses a sequence of attention layers that are purposely designed to minimize a specifically engineered energy function.
arXiv Detail & Related papers (2023-02-14T18:51:22Z) - Energy-based Latent Aligner for Incremental Learning [83.0135278697976]
Deep learning models tend to forget their earlier knowledge while incrementally learning new tasks.
This behavior emerges because the parameter updates optimized for the new tasks may not align well with the updates suitable for older tasks.
We propose ELI: Energy-based Latent Aligner for Incremental Learning.
arXiv Detail & Related papers (2022-03-28T17:57:25Z) - Software Vulnerability Detection via Deep Learning over Disaggregated
Code Graph Representation [57.92972327649165]
This work explores a deep learning approach to automatically learn the insecure patterns from code corpora.
Because code naturally admits graph structures with parsing, we develop a novel graph neural network (GNN) to exploit both the semantic context and structural regularity of a program.
arXiv Detail & Related papers (2021-09-07T21:24:36Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.