TranScope: What the Software Hides About LLM Training Data, the Hardware Reveals at Scale, and Accelerators Magnify

LLM Other LLM AI Safety / AI Ethics RA AI Systems and Hardware Other AI Sys & HW
2026年10月05日
成员身份(membership)是机器学习中最基础的隐私原语:迄今为止,尚无任何研究在黑盒模型上成功实现基于硬件的、针对常数时间(constant-time)、静态神经网络(且置信度经掩码处理)的分布外检测(out-of-distribution detection)。本文首次在指令周期级(cycle-level)层面,系统考察了大规模语言模型(LLM)与视觉Transformer(ViT)如何与各类现代微架构组件(包括集成式加速器)相互作用;同时,在LLM规模持续扩大的背景下,回答了一个关键问题:即便模型完全不依赖输入数据进行分支跳转、动态优化或提前退出,且其执行严格满足常数时间约束,其训练数据本身是否仍会影响模型的运行时执行足迹(execution footprint)?实验结果明确证实:答案是肯定的;并进一步识别出,哪些现代硬件组件(例如转换后备缓冲区TLB或片上加速器)会暴露甚至放大这一效应。此外,结果还表明,该信号足够强、足够稳定,足以可靠地区分输入样本是否属于训练分布内(in-distribution)或分布外(out-of-distribution)。为深入理解其成因,我们开展了系统性的根本原因分析(root cause analysis),发现:Transformer模型在训练阶段所执行的词元化(tokenization)步骤,会改变模型在推理阶段检索词汇表词元时所产生内存访问的局部性(locality);进而导致页表访问模式及TLB状态发生一种此前未知的、数据依赖型(data-dependent)变化——最终使得微架构状态显著区别于输入是否源自Transformer训练数据分布。基于上述发现,我们提出了TranScope:首个专用于检测成员身份信息的微架构级工具。该工具具有低开销、无需代理模型(surrogate model)、鲁棒性显著提升等优势;例如,在PETAL基准上,先前报道的最佳AUC仅为0.6,而我们的方法达到0.9。本工作重新确立了硬件在隐私与安全领域的双重角色:一方面,它可作为一种全新机遇——例如,首次为版权侵权检测提供可行的技术路径;另一方面,它也构成了一条全新的成员推断(Membership Inference Attack, MIA)侧信道。
Membership is the root privacy primitive in machine learning: to date, no hardware-based out-of-distribution detection on black-box models has been demonstrated against constant-time, static neural networks with masked confidence. This paper performs the first cycle-level examination of how large language models and vision transformers interact with various modern microarchitecture components, including integrated accelerators, as LLMs scale in size and answers the question of whether the data that a model was trained on affects its execution footprint even without any input-dependent branch, dynamic optimization, or early exit and in constant-time models. The results confirm that the answer is yes and identify which modern hardware components, such as TLBs or on-core accelerators, reveal or amplify that effect. The results also answer whether the signal is informative enough to reliably classify the in-/vs/out-of-distribution property of membership. To understand why, we perform a systematic root cause analysis and find that the transformer's tokenization steps, which happen during training, alter the locality of the accesses the model makes to fetch the vocabulary token later during inference and, as a result, change the page table access patterns and TLB in a previously unknown data-dependent way, causing microarchitectural state to vary significantly based on whether or not the input was in the distribution of the transformer training data. Building on the above observation, we introduce TranScope: the first microarchitecture tool for detecting membership information with low cost, no need for a surrogate model, and significantly higher robustness, e.g., 0.6 AUC for PETAL (best previously reported) vs 0.9 AUC (ours). This reintroduces hardware as both an opportunity, e.g., a tool for checking copyright violation for the first time, and a new channel for inferring membership (MIA).
许愿