The Commonplace
Home Papers Evidence Explore Trends Syntheses Digests References Docs 🎲 Workforce Futures
← Papers
Direction, evidence grade, and study type are AI-generated labels (gpt-5-mini), not human-verified. Syntheses are LLM-written. "Tensions" are machine-detected candidates, not confirmed contradictions. A research-acceleration tool, not peer review. How this is built →

LLM inference energy is highly non-linear in input and output lengths, with a clear efficiency 'sweet spot' at short-to-moderate inputs and medium outputs; SweetSpot—an analytical model based on Transformer compute and memory access—predicts this curve and matches H100 measurements to 1.79% MAPE, implying up to 33× energy savings if workloads are aligned to the sweet spot.

SweetSpot: An Analytical Model for Predicting Energy Efficiency of LLM Inference
Hiari Pizzini Cavagna, Andrea Proia, Giacomo Madella, Giovanni B. Esposito, Francesco Antici, Daniele Cesarini, Zeynep Kiziltan, Andrea Bartolini · February 05, 2026
arxiv descriptive medium evidence 7/10 relevance Full text usable extracted full text Source PDF

Structured author observations

Linked only from stored provider relations; the raw author line above is never matched by name.

Arxiv

Latest observation:

  1. Hiari Pizzini Cavagna unresolved corpus identity
  2. Andrea Proia unresolved corpus identity
  3. Giacomo Madella unresolved corpus identity
  4. Giovanni B. Esposito unresolved corpus identity
  5. Francesco Antici unresolved corpus identity
  6. Daniele Cesarini unresolved corpus identity
  7. Zeynep Kiziltan unresolved corpus identity
  8. Andrea Bartolini unresolved corpus identity

Semantic Scholar

Latest observation:

  1. Hiari Pizzini Cavagna provider ID
  2. Andrea Proia provider ID
  3. Giacomo Madella provider ID
  4. Giovanni B. Esposito provider ID
  5. Francesco Antici provider ID
  6. Daniele Cesarini provider ID
  7. Z. Kiziltan provider ID
  8. Andrea Bartolini provider ID
Transformer autoregressive structure makes LLM inference energy non-linear in input/output lengths; the SweetSpot analytical model accurately predicts an energy-efficiency 'sweet spot' (validated on H100 across 1B–9B models, MAPE 1.79%), and aligning sequences to that zone can reduce energy use dramatically (up to 33.41x reported).

Citation observations

Cumulative provider counts captured on specific dates; providers are never combined.

Large Language Models (LLMs) inference is central to modern AI applications, dominating worldwide datacenter workloads, making it critical to predict its energy footprint. Existing approaches estimate energy consumption as a simple linear function of input and output sequence. However, by analyzing the autoregressive structure of Transformers, which implies a fundamentally non-linear relationship between input and output sequence lengths and energy consumption, we demonstrate the existence of a generation energy minima. Peak efficiency occurs with short-to-moderate inputs and medium-length outputs, while efficiency drops sharply for long inputs or very short outputs. Consequently, we propose SweetSpot, an analytical model derived from the computational and memory-access complexity of the Transformer architecture, which accurately characterizes the efficiency curve as a function of input and output lengths. To assess accuracy, we measure energy consumption using TensorRT-LLM on NVIDIA H100 GPUs across a diverse set of LLMs ranging from 1B to 9B parameters, including OPT, LLaMA, Gemma, Falcon, Qwen2, and Granite. We test input and output lengths from 64 to 4096 tokens and achieve a mean MAPE of 1.79%. Our results show that aligning sequence lengths with these efficiency "sweet spots" reduce energy usage, up to 33.41x, enabling informed truncation, summarization, and adaptive generation strategies in production systems.

Summary

Main Finding

SweetSpot is an analytical model that predicts LLM inference energy consumption as a non-linear function of input length (nin) and output length (nout). Derived from Transformer computational and memory-access complexity (prefill quadratic in nin, decode roughly linear in nin and nout), SweetSpot accurately identifies “energy-efficiency sweet spots” — short-to-medium inputs with medium outputs — and achieves a mean MAPE of 1.79% (±0.61) when validated on multiple LLM families (1B–9B) running on NVIDIA H100s with TensorRT-LLM. Aligning workloads to these sweet spots can reduce energy use up to 33.41× compared to worst-case configurations.

Key Points

  • Core insight: LLM inference energy-per-token is non-monotonic in sequence geometry because prefill (attention) costs scale ~nin^2 while decoding costs scale roughly linearly; amortization of prefill cost over nout creates interior minima (sweet spots).
  • Analytical form (normalized per output token) used in SweetSpot (FLOPs + memory effects) is, in compact form: Etok(nin, nout) = θ0 + θ1 * (nin^2 / nout) + θ2 * nin + θ3 * (nin / nout) + θ4 * nout (+ θ5 / nout when memory-access term included)
    • θ coefficients are fit to map theoretical FLOP/memory terms to measured Joules.
  • SweetSpot outperforms simpler baselines (constant Etok, Etok depending only on nout, Etok depending linearly on nin+nout, and a prior linear interaction model) by capturing quadratic input cost and input–output interactions.
  • Empirical result highlights distinct regimes:
    • Peak efficiency: short-to-medium nin + medium nout.
    • Efficiency collapses for very long nin or very short nout.
    • Worst vs. best-case energy-per-token can differ by up to 33.41×.
  • Validation: mean absolute percentage error (MAPE) = 1.79% across models and sequence geometries; model reliably predicts location of sweet spots.

Data & Methods

  • Hardware & runtime:
    • NVIDIA H100 GPUs.
    • Inference stack: TensorRT-LLM (chosen for production-grade, highly optimized energy-efficient execution).
    • In-flight batching behavior and configuration (max_batch_size, max_num_tokens) controlled as part of the runtime micro-batching experiments.
  • Models tested:
    • Multiple LLM families spanning ~1B to 9B parameters: OPT, LLaMA, Gemma, Falcon, Qwen2, Granite.
  • Workload geometry:
    • Input length (nin) and output length (nout) varied systematically from 64 to 4096 tokens.
  • Measurements & metrics:
    • Total energy Etot measured during inference runs; Etok = Etot / nout reported as primary metric.
    • Model compared to four baselines from prior literature and to a FLOPs-only variant; SweetSpot extended with memory-access term(s).
    • Accuracy reported as mean MAPE = 1.79% (±0.61).
  • Model derivation (brief):
    • Prefill FLOPs per layer ≈ 24 · nin · d^2 + 4 · nin^2 · d (attention quadratic + FFN linear · d^2 terms).
    • Decode per token per layer ≈ 24 · d^2 + 4 · (nin + t − 1) · d (cached-KV linear term).
    • Summing and normalizing by nout yields the polynomial terms used in SweetSpot; memory-access effects added to refine fit.

Implications for AI Economics

  • Operational cost modeling and pricing:
    • Per-token linear pricing (common among commercial providers) can misrepresent true marginal energy costs because token cost depends non-linearly on nin and nout. SweetSpot enables more accurate marginal-cost estimates for serving, which can inform more efficient, fairer pricing models (e.g., context-aware pricing or discounts for configurations near sweet spots).
  • Cost and carbon accounting:
    • Non-linear energy behavior implies that lifecycle and operational carbon estimates must account for workload geometry. Using SweetSpot, firms and regulators can better attribute emissions to service requests and design targeted mitigation (e.g., truncation policies).
  • Deployment & capacity planning:
    • Capacity planning (GPU fleet sizing, power provisioning) can leverage SweetSpot to identify common workload geometries that minimize energy per token, enabling more efficient hardware utilization and reduced OPEX.
  • Demand management & incentive design:
    • Platforms can design incentives to shift traffic toward energy-efficient workloads (e.g., encourage shorter inputs or batched requests, offer lower costs for requests that fall near sweet spots).
    • Adaptive server-side strategies (dynamic truncation, summarization, or adaptive nout caps) can be evaluated for ROI using SweetSpot predictions.
  • Product-level trade-offs:
    • Latency/SLA vs. energy trade-offs: some energy savings require truncation or summarization that affect utility/quality. SweetSpot quantifies the energy gains from such interventions, enabling economically rational trade-offs.
  • Model selection and architecture economics:
    • For a given service mix, SweetSpot can inform selection of model families and sizes (e.g., which 1B–9B model yields best energy-per-request for the expected nin/nout distribution) and whether optimizations (MQA/GQA, memory reductions) will materially affect costs.
  • Market and policy considerations:
    • Regulators and standards bodies should be cautious using simple per-token metrics for mandatory reporting or carbon taxes. SweetSpot shows that more granular geometry-aware accounting can materially change reported footprints.
  • Limitations & cautions for economic application:
    • Current validation is on TensorRT-LLM and H100 GPUs with models up to 9B parameters; results may differ for larger models, other runtimes (vLLM, DeepSpeed), CPU inference, distributed setups, or different quantization settings.
    • SweetSpot gives an empirical/analytical fit to measured energy; translating energy reductions to monetary savings requires accounting for provider-specific power costs, amortization, and utilization effects.

If you want, I can: - Produce a compact cost-metric mapping (Joules → $) under sample electricity and amortization assumptions. - Run sensitivity scenarios showing how pricing or truncation policies would change typical provider revenue/energy curves using SweetSpot.

Assessment

Paper Typedescriptive Evidence Strengthmedium — The paper combines an analytical model derived from Transformer compute/memory complexity with systematic empirical measurements that achieve low error (MAPE 1.79%) across multiple 1B–9B models; however, validation is limited to a single runtime (TensorRT-LLM), GPU microarchitecture (NVIDIA H100), a specific parameter range, and token lengths up to 4096, leaving out larger models, other runtimes, hardware, batching regimes, and system-level datacenter effects. Methods Rigormedium — Rigor is fairly high in the model derivation and measurement protocol (wide sweep of input/output lengths and several model families), reporting quantitative error metrics; but the study lacks broader robustness checks (different GPUs, runtimes, quantization levels, multi-GPU or production-serving scenarios, and real-world workload traces), and does not analyze variability due to batch sizes, tokenization differences, or system-level overheads. SampleEmpirical measurements of LLM inference energy using TensorRT-LLM on NVIDIA H100 GPUs across multiple decoder-only models (OPT, LLaMA, Gemma, Falcon, Qwen2, Granite) with parameter counts in the 1B–9B range; experiments vary input and output sequence lengths from 64 to 4096 tokens and report energy consumption and MAPE versus the SweetSpot analytical prediction. Themesadoption productivity GeneralizabilityValidated only on NVIDIA H100 hardware; GPU microarchitecture and firmware differences may change energy curves, Single inference runtime (TensorRT-LLM); other runtimes (PyTorch, Megatron, custom kernels) may exhibit different behavior, Model parameter range limited to 1B–9B; results may not hold for large (e.g., 70B–175B) or very small models, Experiments appear to focus on single-GPU settings and specific batch sizes; multi-GPU, distributed inference, and dynamic batching could alter efficiency, Does not account for quantization/precision variants or custom optimizations that change memory-access patterns, System-level datacenter overheads (cooling, power distribution, server idle costs) and real-world workload characteristics are not included

Claims (8)

ClaimDirectionOutcomeConfidence & EvidenceDetails
Existing approaches estimate energy consumption as a simple linear function of input and output sequence lengths. Other null_result claimed model of energy consumption (linear vs non-linear)
Reading fidelity high
Study strength low
not reported
0.09
Because of the autoregressive structure of Transformers, the relationship between input/output sequence lengths and inference energy consumption is fundamentally non-linear. Other null_result shape of relationship between sequence lengths and energy consumption
Reading fidelity high
Study strength medium
not reported
0.18
There exists a generation energy minima (a 'sweet spot'): peak efficiency occurs with short-to-moderate inputs and medium-length outputs, while efficiency drops sharply for long inputs or very short outputs. Organizational Efficiency mixed inference energy efficiency as a function of input and output token lengths
Reading fidelity high
Study strength medium
n=6
0.18
We propose SweetSpot, an analytical model derived from the computational and memory-access complexity of the Transformer architecture, which accurately characterizes the efficiency curve as a function of input and output lengths. Other null_result accuracy of model predictions for energy efficiency curve
Reading fidelity high
Study strength high
not reported
0.3
SweetSpot achieves a mean MAPE (mean absolute percentage error) of 1.79% when predicting energy consumption across tested settings. Other null_result prediction error (MAPE) of SweetSpot vs measured energy
Reading fidelity high
Study strength high
1.79% MAPE
0.3
We measured energy consumption using TensorRT-LLM on NVIDIA H100 GPUs across a diverse set of LLMs ranging from 1B to 9B parameters, including OPT, LLaMA, Gemma, Falcon, Qwen2, and Granite. Other null_result empirical energy consumption measurements across named LLMs
Reading fidelity high
Study strength medium
n=6
0.18
We tested input and output sequence lengths from 64 to 4096 tokens in our measurements. Other null_result range of input/output token lengths evaluated
Reading fidelity high
Study strength medium
not reported
0.18
Aligning sequence lengths with the identified efficiency 'sweet spots' can reduce energy usage, in our experiments by up to 33.41x. Organizational Efficiency positive reduction in energy usage (multiplicative factor) when using sweet-spot-aligned sequences
Reading fidelity high
Study strength medium
up to 33.41x
0.18

Notes