Token排名是不可伪造的语言模型签名
Token Rankings are Unforgeable Language Model Signatures
AI总结:
本文发现语言模型的token排名(按概率排序)构成唯一且不可伪造的签名,并研究了在限制API下如何平衡签名展示与参数泄露。
摘要:
已知语言模型参数对其logit输出施加了(每个模型)独特的几何约束,这作为识别模型的签名,但当API分发logits时也会泄露模型的最后一层参数。我们研究了更严格的API,这些API只暴露token排名(即按概率排序,但不暴露概率值),并发现排名也构成签名:对于足够大的$k$,每个模型都有一组唯一的可行top-$k$排名。此外,排名签名是第一个已知的(多项式时间)不可伪造签名,因为找到一个具有相同可行排名集的模型是NP难的。在安全方面,我们发现token排名已经足以近似窃取模型的最后一层,类似于logits,尽管近似太粗糙以至于无法伪造签名,并且可以通过将API限制为足够小的$k$的top-$k$ token来有效应对。由于展示模型签名所需的top-$k$通常小于防止窃取所需的$k$,因此API可以在不泄露模型参数的情况下展示不可伪造的签名。
英文摘要:
Language model parameters are known to impose unique (to each model) geometric constraints on their logit outputs, which serves as a signature that identifies the model, but also leaks the model's final layer parameters when an API distributes logits. We investigate more restrictive APIs that expose token rankings (i.e., their ordering by probability, but not the probability values) and find that rankings also constitute a signature: every model has a unique set of feasible top-$k$ rankings for sufficiently large $k$. Furthermore, the ranking signature is the first known (polynomially) unforgeable signature, since finding a model with the same set of feasible rankings is NP-hard. On the security front, we find that token rankings are already sufficient to approximately steal the final layer of the model, similar to logits, though the approximation is too coarse to forge the signature, and can be effectively countered by restricting the API to top-$k$ tokens with sufficiently small $k$. Since the top-$k$ required to present the model signature is generally smaller than the $k$ required to prevent stealing, it is possible for an API to present an unforgeable signature without leaking model parameters.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。