在自然语言自动编码器中选择信息量最大的标记

·

研究论文 · 2026/09/30

自然语言自编码器将语言模型的内部激活转化为可读解释。解释每个token位置成本高昂。审计员应检查哪些位置以理解潜在威胁?我们在提示注入和隐藏的470万条解释中研究此问题。我们比较模型计算信号与仅基于聊天结构训练的排序器。聊天结构通常比计算信号选择更相关的解释,且无需模型前向传播进行位置选择。在四个数据集中的三个上,仅解释5%的位置几乎保留了全部位置解释的成功率,其中成功意味着获得关于威胁的解释。收益因审计任务而异。我们还表明,预训练的口头化器能恢复模型通过微调学会隐藏的词语,无需额外口头化器训练。这些结果确定了审计员可以集中生成解释的位置,并表明有用的解释可以超越口头化器被训练描述的模型。

该研究为审计语言模型内部激活提供了高效的位置选择方法,能大幅降低解释生成成本,同时揭示了预训练口头化器在恢复隐藏信息方面的潜力,对模型安全审计具有实用价值。

Natural language autoencoders translate a language model's internal activations into readable explanations. Explaining every token position is costly. Which positions should an auditor inspect to understand a potential threat? We study this question across 4.7 million explanations on prompt injection and concealment. We compare signals from model computation with a ranker trained only on chat structure. Chat structure usually selects more relevant explanations than the computational signals, without requiring a model forward pass for position selection. On three of four datasets, explaining just 5% of positions retains nearly all of the success rate from explaining every position, where success means obtaining an explanation about the threat. The benefit varies with the audit task. We also show that pretrained verbalizers recover words that models have learned to conceal through fine-tuning, without additional verbalizer training. These results identify where auditors can concentrate explanation generation and show that useful explanations can extend beyond the model a verbalizer was trained to describe.

阅读原文

参与讨论