TL;DR
KernelSight-LM is a fine-grained LLM inference simulator that predicts performance down to the GPU kernel level, bridging the gap between hardware portability and serving-layer fidelity. By combining a modified roofline model with a discrete-event simulation of production serving engines (like vLLM), it accurately forecasts end-to-end metrics like Time-to-First-Token (TTFT) and Time-Per-Output-Token (TPOT) on unseen, next-generation GPUs using little to no target-device profiling data.
What Problem Does This Paper Address?
Deploying Large Language Models (LLMs) at scale is an expensive guessing game. To meet strict service-level objectives (SLOs) for latency and throughput, engineers must constantly benchmark different combinations of hardware, model variants, and serving configurations (e.g., batch sizes, tensor parallelism).
Existing performance estimation tools fall into two flawed camps:
- Measurement-based simulators (like Vidur) are highly accurate but require extensive, slow profiling runs for every specific model-GPU pair. They cannot extrapolate to unreleased or unowned hardware.
- Cross-device forecasters (like NeuSight) can predict operator latencies on new GPUs using hardware datasheets, but they completely ignore serving-layer dynamics like continuous batching, prefix caching, and host-side CPU overheads.
KernelSight-LM solves this by modeling execution at the kernel level and integrating these predictions directly into a high-fidelity serving simulator.
Methods
KernelSight-LM splits the problem into two major components: a kernel latency predictor and an execution simulator runtime.
1. The Roofline × Efficiency Model
Instead of predicting raw latency, the authors model a kernel's execution time ($t$) as a hardware lower bound derived from a traditional roofline model, multiplied by a learned efficiency factor ($\eta$), and floored by a fixed launch cost ($t_0$):
$$t = \max(t_{\text{roof}} \cdot \eta, t_0)$$
The model explicitly accounts for wave quantization—the performance penalty that occurs when the number of thread blocks doesn't evenly divide across the GPU's Streaming Multiprocessors (SMs), leaving some hardware idle during the final execution wave.
2. Tiered Prediction Architecture
The framework operates in two distinct modes depending on data availability:
- Tier A (Zero-Shot Cross-Generation): Predicts performance on an entirely unseen GPU generation using only its datasheet specifications (SM count, peak FLOPs, memory bandwidth) and a pre-trained model of dimensionless efficiency features learned from older GPUs.
- Tier B (Target-Measured Refinement): If the target GPU is physically available, a single, model-agnostic microbenchmark sweep is run to build a dense efficiency grid, sharpening in-distribution accuracy.
3. Serving-Aware Execution Simulator
The backend re-implements vLLM v1’s scheduler step-for-step, accurately capturing continuous batching, chunked prefills, and hierarchical prefix caching. It also introduces a modeled host calibration channel to account for CPU/GPU overlap, launch overheads, and tensor-parallel synchronization.
Datasets
- Hardware Profiled: A diverse ladder of GPUs including the NVIDIA A100, H200-NVL, and L40S were used as source devices to train the cross-generation models. The next-generation NVIDIA Blackwell GB200 was held out as the primary unseen target. Edge accelerators (RTX 5090 and RTX Spark) were also profiled.
- Workloads Evaluated: The simulator was tested against real-world vLLM ground truth using a production conversation trace across six major model families (Llama, Qwen, DeepSeek, Phi, Gemma, and Mistral) with sizes ranging from 0.5B to 70B parameters.
Key Insights and Ideas
- The "Danger Zone" of Attention Kernels: While compute-bound operations like GEMMs (matrix multiplications) scale predictably across GPU generations using standard roofline ceilings, memory-bound operations and attention kernels do not. Their efficiency ($\eta$) varies wildly across architectures, meaning pure hardware extrapolation fails for attention layers without sophisticated per-family modeling.
- Host Overhead is the TTFT Killer: For short prompts, host-side activities (scheduling, kernel launching, and CPU/GPU synchronization) dominate the timeline. Traditional analytical models that ignore the host pipeline fail completely at predicting TTFT.
Key Results
- Per-Kernel Accuracy: When predicting the unbenchmarked Blackwell GB200, Tier A (zero-shot) achieved a 12.1% mean absolute percentage error (MAPE), a 1.8× improvement over a standard roofline baseline. Tier B (with minimal target microbenchmarks) dropped the error to 3.8% (a 7.3× improvement over AIConfigurator).
- End-to-End Serving Metrics: Integrated into the simulator, these kernel predictions yielded remarkably tight median (p50) errors for end-to-end serving on the GB200:
- Tier A (Zero-Shot): 15.4% error for TTFT, 12.8% for TPOT, and 3.0% for throughput.
- Tier B (Target-Measured): 14.3% error for TTFT, 6.2% for TPOT, and 2.7% for throughput.
Limitations and Future Work
- Attention Transferability: Cross-generation transfer of the attention efficiency factor remains challenging due to the highly customized, fused nature of modern attention kernels (like FlashAttention) across changing architectures.
- Saturation Degradation: The simulator's TTFT prediction error degrades significantly (up to 74%) when the system reaches saturation (offered load $\rho \approx 1.2$). This occurs because minor per-step errors compound drastically as request queues build up indefinitely.
- Future Directions: The authors plan to develop one-shot per-architecture attention calibration techniques, extend the host overhead model to handle saturated workloads, and expand interconnect simulation coverage.
Summary updated