mlsanityData to 14 Oct 2026

Beyond FLOPs: Energy-Aware Knowledge Distillation for Sustainable LLMs on Code-Related Task

arXiv 2608.17515 ↗First posted 18 Aug 2026cs.SE cs.AIcited by 0

On the map: Knowledge distillation → Knowledge distillation for LLMs

Abstract (arXiv)

Background: Large Language Models (LLMs) are increasingly being applied to Software Engineering (SE) tasks, achieving high accuracy across problems such as clone detection, vulnerability prediction, and code summarization. However, their high computational demands and energy consumption raise sustainability concerns and hinder their use on consumer hardware and resource-constrained platforms. A common way to report the computational cost of an LLM in the literature and industry is to use the number of Floating Point Operations (FLOPs) required to perform a pass over the network. Aims: This paper investigates the implications of energy-aware knowledge distillation for SE, aiming to improve model efficiency while maintaining performance and to determine whether FLOPs is a reliable energy-aware metric. Method: We conduct a controlled experiment using Morph, a Many-Objective Optimization-based distillation methodology, to empirically examine whether FLOPs accurately reflect energy consumption in Clone Detection and Vulnerability Prediction tasks. We extend this methodology to include energy-surrogate models that directly estimate CPU and GPU energy consumption during optimization, and we apply Morph to generative tasks using CodeT5+ for code summarization. Results: Our results show that FLOPs is not always a reliable indicator of energy consumption, and better results can be achieved by using energy-surrogate models. Distilled student models can reduce inference energy consumption by up to 90% and memory usage by 86%, with only modest accuracy trade-offs. Conclusions: Energy-aware knowledge distillation when guided by direct energy surrogates rather than FLOPs can improve the energy consumption, sustainability, and deployability of LLMs for SE applications, enabling efficient models on consumer hardware.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Knowledge distillation for LLMs, one of 12 directions in Knowledge distillation. Builds on 35 of its 49 references that are in the map. First posted on arXiv 18 Aug 2026.

Builds on

35 of 49 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024LLM-NEO: Parameter Efficient Knowledge Distillation for Large Language Models11 Nov
  2. 2024Rethinking Kullback-Leibler Divergence in Knowledge Distillation for Large Language Models3 Apr
  3. 2024Beyond Answers: Transferring Reasoning Capabilities to Smaller LLMs Using Multi-Teacher Knowledge Distillation7 Feb

Other references · 32

  1. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  2. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  3. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,167
  4. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  5. 2019Quantifying the Carbon Emissions of Machine Learningcited by 521
  6. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  7. 2022Decoupled Knowledge Distillationcited by 388
  8. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 333
  9. 2021Distilling Knowledge via Knowledge Reviewcited by 288
  10. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
  11. 2021Sustainable AI: Environmental Implications, Challenges and Opportunitiescited by 242
  12. 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 226
20 more
  1. 2023Power Hungry Processing: Watts Driving the Cost of AI Deployment?cited by 191
  2. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 181
  3. 2020A Transformer-based Approach for Source Code Summarizationcited by 133
  4. 2023LongCoder: A Long-Range Pre-trained Language Model for Code Completioncited by 112
  5. 2020Pre-trained Summarization Distillationcited by 71
  6. 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
  7. 2020Multi-task Learning based Pre-trained Language Model for Code Completioncited by 58
  8. 2024Large Language Model for Vulnerability Detection: Emerging Results and Future Directionscited by 45
  9. 2020Fast and Memory-Efficient Neural Code Completioncited by 38
  10. 2023Distilled GPT for Source Code Summarizationcited by 31
  11. 2023Weight subcloning: direct initialization of transformers using larger pretrained onescited by 30
  12. 2021Accelerating BERT Inference for Sequence Labeling via Early-Exitcited by 29
  13. 2022Compressing Pre-trained Models of Code into 3 MBcited by 21
  14. 2023Greening Large Language Models of Codecited by 19
  15. 2021Dissecting FLOPs along input dimensions for GreenAI cost estimationscited by 10
  16. 2023EnergiBridge: Empowering Software Sustainability through Cross-Platform Energy Measurementcited by 6
  17. 2025The Heap: A Contamination-Free Multilingual Code Dataset for Evaluating Large Language Modelscited by 6
  18. 2024Unveiling the Energy Vampires: A Methodology for Debugging Software Energy Consumptioncited by 4
  19. 2024A framework for measuring the training efficiency of a neural architecturecited by 2
  20. 2025Energy Aware Development of Neuromorphic Implantables: From Metrics to Actioncited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Energy-Aware LLMs: A step towards sustainable AI for downstream applications
  2. 2025GREEN-CODE: Learning to Optimize Energy Efficiency in LLM-based Code Generation
  3. 2026Understanding Efficiency: Quantization, Batching, and Serving Strategies in LLM Energy Use
  4. 2026Characterizing Performance-Energy Trade-offs of Large Language Models in Multi-Request Workflows
  5. 2024Offline Energy-Optimal LLM Serving: Workload-Based Energy Models for LLM Inference on Heterogeneous Systems
  6. 2026"ENERGY STAR" LLM-Enabled Software Engineering Tools ↗
  7. 2025Counting Without Running: Evaluating LLMs' Reasoning About Code Complexity
  8. 2024On the Compression of Language Models for Code: An Empirical Study on CodeBERT