JJava Stack Lab
论文雷达 · arXiv AI

DistDNA:随机解码下的语言模型指纹识别

摘要

论文提出 DistDNA,用提示条件响应分布表示大语言模型,并通过逐提示最大均值差异(MMD)比较模型;在无需训练分类器的情况下,将待识别模型归到参考指纹最近的已知 checkpoint。实验覆盖 115 个模型 checkpoint 条目,DistDNA 相比最强基线 LLM DNA 将识别准确率提升 10.36%。

查看原始标题和摘要

DistDNA: Language Model Fingerprinting under Stochastic Decoding

Behavioral fingerprints identify a large language model (LLM) from its responses to a shared set of prompts, enabling applications such as verifying whether a deployed model corresponds to the checkpoint it claims to be. Deployed models, however, are commonly served with stochastic decoding, under which the same model may produce different responses to an identical prompt, depending on an unknown temperature and top-$p$ setting. Existing representations such as LLM DNA provide limited treatment of this variation. A natural remedy is to characterize models by their response distributions, which, however, raises two challenges. First, each distribution must be estimated from only a small number of sampled responses. Second, a change in decoding setting can alter responses to the same extent as a change of checkpoint. Consequently, fingerprint distances alone provide an incomplete basis for model identity, and identification typically relies on a classifier trained jointly on fingerprints from many checkpoints. We propose DistDNA, which represents a model by its prompt-conditional response distributions and compares models by promptwise maximum mean discrepancy (MMD). The model under

核心要点

  • DistDNA 面向随机解码场景下的 LLM 指纹识别,现有 LLM DNA 对解码随机性带来的响应变化处理有限。
  • 方法用提示条件响应分布刻画模型,并以逐提示 MMD 比较模型,不依赖训练分类器。
  • 有限采样会在期望平方指纹距离中引入方差相关项,当每个提示的响应数 R 相等时,这些项以 O(1/R) 下降。
  • 在 115 个模型 checkpoint 条目上的实验中,DistDNA 相比 LLM DNA 的识别准确率提升 10.36%。

为什么值得后端工程师关注

对后端工程师而言,这项工作提供了在模型服务采用随机解码时验证部署模型是否与声称 checkpoint 一致的思路;其不训练分类器的识别方式也有助于理解模型身份校验和部署完整性监控中的指纹方案设计。