Characterizing Energy Consumption in Large Language Models through Design Space Exploration on CPU--GPU Platforms for AI Infrastructure Co-Design

Angel Phillips-Ortega, Luis G. Leon-Vega, Niccolo TosatoarXiv 2026

TL;DR

We often assume that compressing a Large Language Model (LLM) via quantization makes it faster and proportionally greener. By profiling four LLMs across CPUs and three generations of NVIDIA GPUs, the authors show that while lower numerical precision reliably boosts generation speed, whole-server energy savings are messy, hardware-dependent, and easily distorted by how we measure them. If we want to build truly sustainable AI infrastructure, we have to look past simple "tokens-per-joule" rankings and peek under the hood at what the silicon is actually doing.

What Problem Does This Paper Address?

Running LLMs at scale consumes serious power. A popular trick to tame these models is quantization—shrinking numerical weights from, say, 8-bit integers down to 4-bit integers to save memory and compute.

While plenty of studies measure how quantization affects speed or isolated GPU power, looking at high-level system metrics alone treats the hardware like a black box. If a server draws less energy during an inference run, is it because the processor worked more efficiently, the memory cache had fewer misses, or simply because the host machine has a different idle power baseline? Prior work rarely connects wall-plug, whole-node energy consumption with low-level CPU and GPU architectural behavior in a single unified framework. This paper bridges that gap to establish an honest, measured baseline for hardware-software co-design.

Methods

Instead of hunting for one "optimal" setup, the authors perform a Design Space Exploration (DSE)—a systematic sweep across hardware and software choices to map out trade-offs. Each experimental configuration is defined by four variables: the hardware node, the LLM, the quantization format, and the execution mode (strictly CPU-only or GPU-only).

Experimental workflow linking inference configurations to system-level energy monitoring and low-level hardware profiling.

All models are run using llama.cpp, a widely used C/C++ inference engine, across five GGUF quantization levels (Q2_K, Q4_K_M, Q5_K_M, Q6_K, and Q8_0). What is novel here is the multi-layered data capture:

  • System-level capture: llama.cpp logs track token throughput, while a tool called EfiMon samples whole-node Power Supply Unit (PSU) power every ~3 seconds.
  • Architectural profiling: In separate runs, Linux perf records CPU cache miss rates (L1, L2, and last-level cache), while NVIDIA Nsight Systems breaks down GPU CUDA kernel execution times and host-to-device memory transfers.

Datasets

Rather than evaluating models on standard NLP accuracy benchmarks, the authors introduce a new systems-profiling dataset built from prompts of 106–125 tokens (generating 156–419 tokens per run). The exact prompt texts are not documented in the released tables.

The dataset evaluates four open-weight models—Phi-3.5-mini-3.8B, Mistral-7B, Llama-3.1-8B, and Gemma-2-9B—across an AMD EPYC CPU baseline and NVIDIA V100, A100, and H100 GPU nodes. In total, the release comprises 537 energy runs, alongside separate profiling exports of 456 GPU runs, 152 AMD CPU runs, and an auxiliary 95-observation Intel Xeon dataset for cache comparisons.

Key Insights and Ideas

  • Speedup $\neq$ Energy Savings: Dropping precision from 8-bit (Q8_0) to 4-bit (Q4_K_M) consistently speeds up token generation, yet whole-node PSU energy barely budges—or occasionally ticks up—on newer A100 and H100 nodes. Host components, idle power envelopes, and dequantization overhead muddy the waters.
Fig. 2. Q4 K M/Q8 0 ratio of median whole-node PSU energy, within each node and model. One point denotes one model. Ratios are not GPU-only energy-efficiency comparisons; short runs have sparse power samples.
  • The "Blink-and-You-Miss-It" Measurement Trap: Modern GPUs are too fast for coarse power meters. Because an H100 finishes generating a few hundred tokens in ~3 seconds, a 3-second power sampler often captures just one single power sample ($N_s = 1$), making naive energy estimates highly vulnerable to sampling alignment.
  • Kernel Speedups Can Be an Illusion: Summing raw GPU kernel times makes an H100 look nearly $100\times$ faster than a V100 on Llama-3.1-8B, whereas actual end-to-end token generation is only ~$2.7\times$ faster. Kernel profilers miss host-side overhead, model loading, and synchronization.
  • Matrix Math Still Rules the Roost: Even as quantization shifts memory footprints and data movement, matrix multiplication kernels (MatMul) stubbornly dominate GPU execution time across every architecture tested.
Fig. 5. Median share of summed CUDA-kernel time, grouped by GPU and quantization. “MatMul” includes mul_mat and cutlass::Kernel name matches; classification is descriptive.

Key Results

  • Generation Throughput: Running Llama-3.1-8B at Q8_0, median throughput climbs from 79.93 tokens/s (V100) to 122.91 tokens/s (A100) and 213.38 tokens/s (H100). Overall median throughput ratios across matched settings are 1.37$\times$ (A100/V100) and 2.20$\times$ (H100/V100).
  • Diminishing Quantization Returns on Newer Silicon: Switching from Q8 to Q4 yields a median throughput boost of 1.37$\times$ on V100, 1.26$\times$ on A100, 1.16$\times$ on H100, and 1.20$\times$ on the AMD CPU.
  • Whole-Node Energy Ratios (Q4/Q8): V100 nodes see clear energy reductions (ratios of 0.46–0.90). On A100, ratios hover near 1.0 (barring an uncalibrated 0.39 outlier on Gemma-2-9B), and on H100 they span 0.92–1.21.
  • Architectural Hotspots: Matrix multiplication accounts for 74–85% of summed CUDA kernel time across Q4/Q8 runs. Meanwhile, L1-data cache miss ratios sit around 2–6% on AMD EPYC versus 14–20% on the unmatched Intel Xeon dataset.

Limitations and Future Work

The authors are refreshingly candid about what their setup cannot prove:

  • Measurement Boundaries & Sparse Sampling: Power is measured at the whole-node PSU without subtracting idle power, and 102 out of 114 H100 runs contain only a single EfiMon power sample.
  • Uncontrolled Host Confounders: Different GPU nodes sit inside different host servers with varying CPU topologies, memory setups, and non-fixed output lengths—meaning cross-platform comparisons are strictly observational, not causal rankings of GPU efficiency.
  • Missing Pieces: Profiling and power runs were executed separately rather than time-aligned, output text quality (perplexity/accuracy) was not evaluated, and hybrid CPU–GPU layer offloading was left out.

Future work aims to calibrate high-frequency energy capture for short bursts, lock down host variables (like thread affinity and exact output lengths), incorporate model quality metrics, and expand the exploration to mixed CPU–GPU execution.

Summary updated

BibTeX
@misc{phillipsortega2026characterizing,
  author = {Angel Phillips-Ortega and Luis G. Leon-Vega and Niccolo Tosato},
  title = {{Characterizing Energy Consumption in Large Language Models through Design Space Exploration on CPU--GPU Platforms for AI Infrastructure Co-Design}},
  year = {2026},
  eprint = {2611.40182},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.40182},
}
Figure