nlparxiv

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

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…

Lars Krupp / Daniel Geißler / Francisco M. Calatrava-Nicolas / Stefan Gerd Fritsch / Paul Lukowicz

用途
原典で確認
難易度の目安
Hard
実装コストの目安
High

概要

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.

参考リンク

リンク先のライセンス・再現性・データ条件をご確認ください。自動分類や実装の目安は保証ではありません。

実装を始めるプロンプト

参考リンクを確認したうえで、次の内容をコピーして利用できます。

# 論文・記事
The Real Cost of Context: Predicting Compute Time and Energy Consumption in LLM Prefill and Decode Phases

# 概要
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…

# 原典
https://arxiv.org/abs/2610.39621

上記の手法を実装してください。実行前に依存関係とライセンスを確認してください。

関連する記事