← News

ResearchSources: arXiv · 1 Dec 2026

Study finds LLM-optimized code often uses more energy than human-written solutions

A new arXiv paper measures whether code made faster by large language models is also greener, and reports that in most tested configurations it is not.

In plain words

Researchers tested whether code that large language models rewrite for speed also uses less energy. They found the opposite in most cases: the machine-optimized code usually consumed more energy per problem than human reference solutions. The energy spent running the models to do the optimizing was also substantial.

What was announced

The authors evaluated 11 open-source models in four decoding configurations across all 1,000 problems of the EffiBench performance benchmark, collecting hardware-level energy measurements per process. On the execution side, 38 of 44 configurations produced code that consumed more energy per problem than canonical human reference solutions, with overheads of 6% to 638%. The six exceptions gained only marginally, needing a median of roughly 200,000 executions per problem to break even.

The optimization process itself carried an energy cost: inference energy ranged from 0.47 to 6.50 MJ across model-variant pairs, which the authors compare to 150 to 2,100 GPT-4.1 queries. Capping maximum output tokens cut energy use by up to 72% versus the default configuration. The paper also reports that Mixture-of-Experts architectures used substantially less inference energy than similarly sized dense models without losing correctness, and concludes that performance optimization and energy efficiency are not always aligned goals.

What it does not show

  • The findings come from the paper's abstract only, so methodology details and full results are not visible in the supplied evidence.
  • Results are limited to the EffiBench benchmark and the 11 open-source models tested; no other workloads or proprietary models were covered in the evidence.
  • The reported break-even figures and energy comparisons are the authors' own measurements and have not been independently confirmed.

For security and IT teams

Scope
The study covers LLM self-refinement pipelines for code optimization measured on the EffiBench benchmark, not general-purpose LLM energy use.

Sources

Source-support review completed 5 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 5 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.