Live GPU debugging can capture exact hidden states of LLMs
The authors assert they can acquire per-layer residual-stream activations from a running GPU process without modifying it, yielding byte-exact states usable for analysis
AI/ML arXiv 13 Nov 2026 Method Prototype evidence
Published as “From Bytes to Behavior: Request-Level Attribution from Live GPU Hidden States”
Why it matters
The technique can be used to prioritize suspicious requests in a controlled environment, but its high false-positive rate and heavy performance cost prevent it from serving as a definitive forensic tool.
Summary
The authors show that a blind two-step selector can recover per-layer residual-stream vectors from a live PyTorch GPU process with byte-exact fidelity across 33 decoder-only models. Using these recovered states they build a refusal-probe that attains AUROC ≈0.88 on a held-out set of 142 prompts, but the probe incurs a 28% false-positive rate and the acquisition slows inference by up to 15,000×. The evidence is based on a single RTX 2080 GPU, batch-size-1 runs, and a limited set of small models, so the claim is strongly supported for that narrow envelope but qualified by high error rates and heavy overhead.
What they found 3
- The selector reliably identifies the residual-stream chain across all tested models.
“The two-step selector successfully identified the correct memory chain across all 33 models spanning nine architecture classes.”
- All prompts are recovered byte-identically to hook references at every layer.
“All 228 prompts were recovered at all layers, byte-identical to the hook reference.”
- The frozen refusal probe achieves AUROC 0.876 on recovered states, matching hook-based AUROC.
“AUROC recovered (hook) 0.876 [0.808, 0.929] (0.876)”
Caveats 8
- The refusal probe has a false-positive rate of 28% and false-negative rate of 16.5%, limiting its reliability.
- Attaching the debugger inflates latency to 157-163 s per prompt (≈15,000× slower than unattached execution).
- The method only works for models up to 3.4 B parameters (one 7 B 4-bit model) and batch size 1, with no support for dynamic batching or longer prompts.
- The approach relies on PyTorch’s caching allocator and build-specific offsets, so it is not platform-agnostic.
- The method’s operational envelope is constrained by specific software dependencies and hardware configurations.
- It relies on PyTorch’s caching allocator and build-specific offsets, meaning it is not platform-agnostic.
- The technique is live and intrusive, which limits its utility as a standard evidence-collection procedure.
- The debugger halts the process at each allocation, resulting in slowdowns between 46 and 192 times.
What’s new here 4
- Extracts per-request hidden states from live GPU memory without model weights or architecture knowledge.
- Introduces a blind selector that identifies residual-stream allocations solely from allocation logs.
- Derives model structural attributes (token count, hidden size, layer count) from the running process.
- Applies a pre-registered refusal probe directly on recovered states to classify request behavior.