DistDNA:在随机解码下对大语言模型进行指纹识别
DistDNA: Language Model Fingerprinting under Stochastic Decoding
模型指纹识别这个方向挺有意思:API 背后跑的到底是不是它声称的那个模型?DistDNA 不用训练分类器,靠响应分布的 MMD 距离直接比对,比 LLM DNA 准确率高 10.36%。做模型审计、开源模型服务验证的团队可以看看这篇。
arXiv 论文 DistDNA 提出了一种大语言模型行为指纹识别方法,用于判断部署中的模型是否真的对应其宣称的 checkpoint。核心思路是用 prompt 条件下的响应分布来刻画模型,并通过逐 prompt 的最大均值差异(MMD)来比较模型之间的距离。相比直接比较指纹距离,这种方法能应对随机解码带来的响应不确定性。
现有方法如 LLM DNA 在模型使用随机解码(温度和 top-p 未知)时表现有限,因为同一模型在不同解码设置下的响应差异可能与更换 checkpoint 相当。DistDNA 在多个解码设置下采集参考指纹,将待测模型分配给距离最近的已知 checkpoint,无需训练分类器。论文还从理论上分析了有限采样带来的方差项,证明当每个 prompt 的响应数 R 相等时,这些项以 O(1/R) 速度衰减。
在 115 个模型 checkpoint 条目的实验中,DistDNA 的识别准确率比最强基线 LLM DNA 提升 10.36%。这类技术可用于模型溯源与合规验证,例如确认 API 背后实际运行的是否为声称的模型版本。
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 examination is assigned to the known checkpoint whose reference fingerprints, collected at several decoding settings, lie nearest to its own, without training a classifier. We show that finite sampling adds variance-dependent terms to the expected squared fingerprint distance, with these terms decreasing as $O(1/R)$ for equal response counts, where $R$ is the number of responses per prompt. Experiments across 115 model checkpoint entries demonstrate that DistDNA improves identification accuracy over the strongest baseline, LLM DNA, by 10.36%.
本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:DistDNA、LLM DNA、模型指纹、MMD,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Lifan Hu, Qian Yu, Zhaomin Wu, Bingsheng He),经 AITOP 多维评分管线结构化提炼。