Download

Abstract

White-box interpretability methods inspect and modify the internal activations of large language models (LLMs) to localize computations, monitor safety, and steer generation. Driven by strong community demand, several systems now bring such interpretability to production inference engines. However, our survey of 156 interpretability works (2017-2026) and 12 existing interpretability systems reveals a gap between today’s system capabilities and workload requirements. To characterize this gap, we present NNbench, the first white-box interpretability benchmark to systematically capture the workloads identified in our survey through four primitive operations (readout, edit, gradient, and record) and four arrival patterns. We evaluate six interpretability systems using NNbench on models ranging from 4B to 72B parameters. Our evaluation yields three findings. (1) No evaluated serving system supports all workloads: engine optimizations discard backward gradients and attention matrices, restrictive interfaces limit access to model components and generation steps, and distributed sharding and engine state conventions can break or silently corrupt interventions. (2) Standard PyTorch is up to 3.7x faster than pre-registered serving (37x vs. per-request wrappers) on single-GPU offline batch jobs, whereas serving engines are 71-154x faster under concurrent online generation and 2.7-7.2x faster on single-request multi-GPU models (14B-72B). (3) Naive hooks slow serving by disrupting compiled GPU execution, reconstructing vocabulary logits on the CPU, and copying large outputs over IPC; registering hooks in advance and projecting or reducing hidden states on the GPU reduces latency by 1.6-3.3x in native APIs (and 19x when eliminating host logit reconstruction), approaching unmodified serving speed.


Figure 1: White-box interpretability workloads

Five panels showing white-box interpretability workloads on a transformer: readout, edit, gradient, record, and online generation

White-box interpretability workloads across four primitive operations and online generation: (a) Readout projects hidden states to vocabulary or concept space; (b) Edit modifies activations in flight across counterfactual runs; (c) Gradient backpropagates derivatives for component attribution; (d) Record exports batched activations to host storage; and (e) Online applies readouts and edits at each generation step.