通过文本输出反推大模型推理系统的硬件与软件配置
Fingerprinting Inference Systems of Large Language Models
- 利用模型输出中的微小数值差异,识别推理引擎、注意力后端和硬件平台
- 即使在非零温度下,仍能准确识别系统组件,成功率超95%
- 适合关注模型安全与隐私的开发者及研究人员
大型语言模型的行为不仅取决于模型本身,还受推理系统中组件如推理引擎、注意力后端和硬件平台的影响。这些组件因实现差异,在运行同一模型时引入细微的数值偏差。尽管已有研究证明此类偏差的存在,其安全影响尚未被探索。本文发现,这些偏差会传播至可观察的文本输出,使任何能查询模型的实体均可识别其推理系统。基于此,我们提出一种指纹识别方法,通过分析提示-响应行为来定位推理系统组件。实证评估表明,无论在何种温度设置下,推理引擎、注意力后端和底层硬件平台均可被可靠识别。我们进一步指出,防范此类指纹识别在理论上极为困难,因需消除软硬件栈间的数值差异。为此,我们提出了部分缓解方案并讨论其有效性。
原文摘要 · Abstract (English)
The behavior of LLMs does not depend solely on the model itself. Components of the inference system, such as the inference engine, attention backend, and hardware platform, subtly influence how inputs are processed. These components differ in their implementations and thereby induce small numerical deviations across systems when running the same model. While prior work has established the theoretical existence of such deviations, their security implications have remained unexplored. In this paper, we show that these deviations are characteristic of specific components and propagate to observable textual outputs, exposing the inference system to any party that can query the model. Building on this observation, we introduce a fingerprinting method that analyzes the prompt-response behavior of LLMs to identify components of the inference system. Our empirical evaluation demonstrates that the inference engine, attention backend, and underlying hardware platform can be identified reliably, even when the LLM is operated at non-zero temperature. We show that preventing fingerprinting is fundamentally hard, as it would require eliminating numerical differences between hardware and software stacks. We therefore propose partial mitigations and discuss their impact.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。