From Bytes to Behavior: Request-Level Attribution from Live GPU Hidden States
Jonathan Pan, Yidi Yuan, Xin Wei Chia, Xinhui Su, Vincent Tan, Brenda Ong
Abstract
Existing memory forensics for machine learning systems typically targets static artifacts, such as model weights or prompt logs, rather than the transient computational states of a live inference process. This gap limits an examiner's ability to analyze the specific behavior of a running large language model (LLM) service that cannot be restarted or modified. We present a method for acquiring per-layer residual-stream activations from a live GPU process using a non-modifying debugger, without requiring prior knowledge of the model's architecture parameters or weights. The approach employs a general six-stage process with platform-specific adapters, utilizing either a PyTorch allocator clock or a kernel-launch clock to identify and read tensor allocations from video memory. We validate this acquisition on 33 open-source decoder-only models across nine architecture classes, demonstrating that the recovered bytes are byte-exact and usable for downstream analysis. As a use case, we apply linear probes trained on standard framework activations to the recovered states, successfully distinguishing refusal from compliance with an AUROC of 0.88 on held-out prompts. This work establishes that live, observational access to intermediate hidden states is feasible on named inference platforms, providing a new source of evidence for examining the operational behavior of deployed AI systems.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI
- Comments
- 7 pages, 1 figure, 4 tables
Related papers
Attributing Security Outcomes in LLM-Agent Evaluations: The Role of Content-Free State
Shared title terminologycs.CRAbdelmonaim Bounite, Zangir Iklassov
FATCAT: Fault Injection Attacks Targeting Chip-level Alignment
Shared title terminologycs.CRPeter Horvath, Ilia Shumailov, Zhuoran Liu et al.
POMA: Beyond Final Flags -- Process-Level Evaluation of Base LLMs in Vulnerability Exploitation
Shared title terminologycs.CRGufeng Zhang, Yiru Zhao, Shengyu Liu et al.
Consumer-Time Validity in Stateful AI Runtimes: Verifying Recovered State and Deferred Authority
Shared title terminologycs.CRGuijia Zhang, Huihao Jing, Bing Li et al.
Who Is Prompt-Injecting Coding Agents? An Empirical Study of Hidden AI-Directed Text on GitHub
Shared title terminologycs.CRGabi Nakibly, Zvika Babo
Quantity-Level FDIA in SDR-Based P2P Energy Trading: Cyber-Economic Impact and Pre-Clearing Detection
Shared title terminologycs.CRWassim Sarrieddine, Razane Tajeddine