最先知晓:令牌分布如何揭示大型视觉-语言模型中的隐藏知识?
The First to Know: How Token Distributions Reveal Hidden Knowledge in Large Vision-Language Models?
AI总结:
本研究通过线性探测揭示大型视觉-语言模型输出层中首个令牌的logit分布蕴含隐藏知识,可用于识别不可答问题、防御攻击等,并提出简单解码策略改善生成内容,实验显示CLIP已有强信号且线性探测优于微调。
摘要:
大型视觉-语言模型(LVLMs)旨在解释和响应人类指令,但有时会因不当指令而产生幻觉或有害内容。本研究使用线性探测来揭示LVLMs输出层中的隐藏知识。我们证明,第一个令牌的logit分布包含足够的信息来确定是否响应指令,包括识别无法回答的视觉问题、防御越狱攻击以及识别欺骗性问题。这种隐藏知识在响应生成过程中随后续令牌的logit逐渐丢失。然后,我们展示了一种在第一个令牌生成时的简单解码策略,有效改善了生成内容。实验中,我们发现了一些有趣的见解:首先,CLIP模型已经包含解决这些任务的强信号,这表明现有数据集存在潜在偏差。其次,我们观察到利用第一个logit分布在三个额外任务上带来性能提升,包括指示数学求解中的不确定性、减轻幻觉和图像分类。最后,使用相同的训练数据,仅微调LVLMs能提升模型性能,但在这些任务上仍不如线性探测。
英文摘要:
Large vision-language models (LVLMs), designed to interpret and respond to human instructions, occasionally generate hallucinated or harmful content due to inappropriate instructions. This study uses linear probing to shed light on the hidden knowledge at the output layers of LVLMs. We demonstrate that the logit distributions of the first tokens contain sufficient information to determine whether to respond to the instructions, including recognizing unanswerable visual questions, defending against jailbreaking attacks, and identifying deceptive questions. Such hidden knowledge is gradually lost in logits of subsequent tokens during response generation. Then, we illustrate a simple decoding strategy at the generation of the first token, effectively improving the generated content. In experiments, we find a few interesting insights: First, the CLIP model already contains a strong signal for solving these tasks, which indicates potential bias in the existing datasets. Second, we observe performance improvement by utilizing the first logit distributions on three additional tasks, including indicating uncertainty in math solving, mitigating hallucination, and image classification. Last, with the same training data, simply finetuning LVLMs improves models' performance but is still inferior to linear probing on these tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。