mlsanityData to 24 Nov 2026

The Real Cost of Context: Predicting Compute Time and Energy Consumption in LLM Prefill and Decode Phases

arXiv 2610.39621 ↗Submitted 29 Oct 2026cs.AIcited by 0

On the map: LLM agents and tool use → Software engineering coding agents also fits: General LLM agent frameworks and benchmarks

Abstract (arXiv)

The integration of Large Language Models (LLMs) into agentic architectures has substantially increased token consumption, raising concerns about their energy footprint. Yet, estimating the energy consumption of proprietary API-based models remains challenging, and existing approaches focus primarily on generated output tokens while overlooking the impact of the large input contexts characteristic of agentic workflows. To address this gap, we systematically profile compute time and energy consumption across a wide range of prefill (input) and decode (output) token lengths. Using generalized linear models, we show that decode compute time and energy scale linearly with output length, whereas prefill compute time and energy exhibit both linear and quadratic scaling with input length. These findings demonstrate that input context becomes a relevant factor for large-context workloads. Furthermore, we show that compute time serves as a reliable proxy for energy consumption when direct energy measurements are unavailable. Our mapping framework enables precise energy estimation and supports more sustainable deployment decisions for agentic AI.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 16 of its 23 references that are in the map. Submitted 29 Oct 2026.

Builds on

16 of 23 references.

References · 16

  1. 2017Attention Is All You Needcited by 62,125
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
  3. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 3,191
  4. 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,283
  5. 2023Splitwise: Efficient generative LLM inference using phase splittingcited by 609
  6. 2021Carbon Emissions and Large Neural Network Trainingcited by 601
  7. 2022Estimating the Carbon Footprint of BLOOM, a 176B Parameter Language Modelcited by 273
  8. 2023From Words to Watts: Benchmarking the Energy Costs of Large Language Model Inferencecited by 184
  9. 2025How Hungry is AI? Benchmarking Energy, Water, and Carbon Footprint of LLM Inferencecited by 85
  10. 2025Energy Considerations of Large Language Model Inference and Efficiency Optimizationscited by 65
  11. 2026How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Taskscited by 48
  12. 2025Measuring the environmental impact of delivering AI at Google Scalecited by 41
4 more
  1. 2025Sustainable LLM Inference for Edge AI: Evaluating Quantized LLMs for Energy Efficiency, Output Accuracy, and Inference Latencycited by 36
  2. 2025Promoting Sustainable Web Agents: Benchmarking and Estimating Energy Consumption through Empirical and Theoretical Analysiscited by 5
  3. 2026This Is Taking Too Long -- Investigating Time as a Proxy for Energy Consumption of LLMscited by 4
  4. 2025Toward Sustainable Generative AI: A Scoping Review of Carbon Footprint and Environmental Impacts Across Training and Inference Stagescited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Re-Reading Is Not Free: Token Traces and Cache-Aware Energy Estimation for LLM Agents in Software Engineering
  2. 2026Characterizing Performance-Energy Trade-offs of Large Language Models in Multi-Request Workflows
  3. 2026Balancing Sustainability And Performance: The Role Of Small-Scale LLMs In Agentic Artificial Intelligence Systems
  4. 2025Addressing the sustainable AI trilemma: a case study on LLM agents and RAG
  5. 2026AgentStop: Terminating Local AI Agents Early to Save Energy in Consumer Devices
  6. 2026Energy per Successful Goal: Goal-Level Energy Accounting for Agentic AI Systems
  7. 2026Understanding Efficiency: Quantization, Batching, and Serving Strategies in LLM Energy Use
  8. 2026From LLM Inference to Agentic Workloads: Characterization and Implications for Serving Systems