从字节到行为:基于实时GPU隐藏状态的请求级归因
From Bytes to Behavior: Request-Level Attribution from Live GPU Hidden States
研究提出一种用非修改型调试器从实时GPU进程逐层获取残差流激活值的方法,无需预先知道模型架构参数或权重。该方法在9类架构共33个开源decoder-only模型上验证,恢复的字节逐字节精确;将标准框架激活上训练的线性探针用于恢复状态,在留出提示上以0.88的AUROC区分拒绝与遵从。
arXiv:2611.18272v1 Announce Type: cross 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org