Skip to main content
Back

CMU's TaxBreak Reveals Why a Faster CPU Beats a Faster GPU for AI

A new profiling framework splits LLM inference latency into three host-side layers, revealing why MoE models sit idle and why CPU single-thread speed matters.

Pro

Paper, Full Access
  • TaxBreak decomposes LLM inference host overhead into framework, CUDA library, and launch-path components (paper).
  • Introduces Host-Device Balance Index (HDBI) to distinguish host-bound vs device-bound workloads beyond GPU utilization.
  • MoE models dispatch 8-11x more GPU kernels per output token than dense models of similar active size.
  • OLMoE-1B/7B fires 93,053 kernels per decode inference versus 8,475 for Llama-3.2-1B on H100.
  • Faster host CPU cuts orchestration time 10-29% and end-to-end latency up to 14%, even with slower GPU.
  • Accepted at IEEE ISPASS 2026; validated on NVIDIA H100 and H200 platforms.

A team from Carnegie Mellon has released TaxBreak, a trace-driven profiling methodology that finally puts a scalpel to the vague blob called host overhead in LLM inference. Accepted at IEEE ISPASS 2026, the work argues that today's profilers can tell you a workload is host-bound, but not which layer of the software stack is holding the GPU back. That distinction changes the optimization playbook entirely.

The measurement blind spot

LLM serving stacks are deep. A request passes through a runtime like vLLM, then PyTorch's ATen dispatcher, sometimes a vendor library like cuBLAS or cuDNN, and finally the CUDA driver before a kernel actually runs on the GPU. Existing tools expose this cost either as an aggregate CPU-side residual (the framework tax) or by isolating kernel launch/queue behavior, but neither tells you where to cut.

That gap matters because in eager mode, PyTorch dispatches the entire path serially on a single CPU thread, so the relevant CPU performance characteristic is single-core throughput, not core count. Every kernel launch pays a fixed toll on one core, and short decode steps magnify that toll.

Splitting the tax three ways

TaxBreak breaks per-kernel host time into three mutually exclusive buckets:

  • Framework translation (ΔFT): Python dispatch plus the irreducible ATen dispatch cost.
  • CUDA library translation (ΔCT): the extra time cuBLAS or cuDNN spends on heuristic selection and descriptor setup before actually calling the launch API. Zero for framework-native ops like elementwise or layer norm.
  • Kernel launch path (ΔKT): the hardware floor from cudaLaunchKernel to the moment the kernel starts on the GPU, measured with a null-kernel probe.

The authors then define a Host-Device Balance Index (HDBI), a ratio of device-active time to total device plus orchestration time. A value near 0 means the workload is starved by the host; near 1 means the GPU is genuinely the bottleneck. Unlike GPU utilization, HDBI is invariant to how long you wait on wall-clock queues.

How it actually measures

TaxBreak runs a two-phase pipeline. Phase 1 does a full-model trace under PyTorch Profiler to capture timestamped Python, ATen, and CUDA events linked by correlation ID, building a database of unique kernels. Phase 2 replays each unique kernel in isolation under Nsight Systems, wrapped in NVTX ranges and forced to synchronize between calls so queue effects can't contaminate the timing.

Kernels sharing identical shapes, dtypes, and launch configs get deduplicated through a global cache, so a model with tens of thousands of launches only re-profiles the couple hundred unique ones. To handle CUDA autotuning that may pick a different variant during replay, TaxBreak falls back through exact, substring, and most-frequent name matching.

Llama-3.2-1B latency heatmap across batch size and sequence length on H100

MoE models drown in kernel launches

The headline empirical finding is stark. At a fixed decode configuration (batch 4, sequence 2048, 10 output tokens) on an H100, OLMoE-1B/7B dispatches 93,053 GPU kernels per inference, versus 8,475 for Llama-3.2-1B and 15,369 for Llama-3.2-3B. Normalized per token, that's 9,305 kernel launches per output token for the MoE compared to 848 for the dense model. Qwen1.5-MoE-A2.7B lands in the same range at 66,951 kernels.

Despite launching more kernels, MoE models actually have lower diversity. OLMoE hits 0.002 unique names per launch versus 0.009 for Llama. The fragmentation comes from repeatedly invoking a small set of routing and expert-GEMM kernels, not from architectural heterogeneity. GPU utilization drops accordingly: 15.5% for OLMoE versus 58.9% for Llama-3.2-1B.

Qwen1.5-MoE-A2.7B decode latency heatmap on H200

Why a faster CPU beats a faster GPU (sometimes)

The most consequential result comes from a controlled comparison across two Hopper platforms. The H100 system pairs its GPU with an Intel Xeon 8480C, while the H200 uses a newer Emerald Rapids Xeon Gold 6538Y+ with higher single-thread throughput. The catch: the H200 GPU actually runs at a lower clock (1785 MHz vs 1980 MHz).

Even so, for host-bound LLM inference, especially MoE decode, CPU single-thread performance is a first-order design parameter. A faster host CPU reduces orchestration time by 10-29% and can improve end-to-end latency even when paired with a slower-clocked GPU. For Qwen1.5-MoE-A2.7B, the H200 platform is 8% slower on device-active time but 13-14% faster end-to-end because the host dominates.

Where the framework tells you to look

The diagnostic prescription depends on which bucket dominates:

  1. If Python and library translation dominate, target torch.compile or the library dispatch path.
  2. If N * T_floor dominates, kernel fusion (or CUDA Graphs) gives the biggest win.
  3. If per-kernel framework launch residual is significant, CUDA Graphs or persistent kernels amortize the driver path.

The FlashAttention-2 case study drives this home. On Llama-3.2-1B at batch 8, sequence 2048, FA2 cuts end-to-end latency by 68.6% but orchestration time by only 24%. HDBI actually drops from 0.96 to 0.90 because FA2 removes device work faster than it removes host overhead. A boundedness ratio alone would look worse; TaxBreak shows the underlying story is a big device-side win.

Practical caveats

TaxBreak is tied to NVIDIA CUDA tracing interfaces, so it currently runs on Hopper-class hardware (validated on H100 and H200). The authors note that replay-based attribution can be imperfect for highly dynamic, autotuned, or synchronization-heavy kernels, and HDBI is a diagnostic ratio rather than an objective to optimize directly. Future work targets GB200/GB300 and AMD MI300 platforms. The paper does not currently link to a public code release, so teams wanting to reproduce the methodology will need to build the two-phase pipeline against PyTorch Profiler and Nsight Systems themselves.