2025-02-10 · 专家 · 自然语言处理 · 机器学习

Linear Correlation in LM's Compositional Generalization and Hallucination

本文揭示了语言模型在知识组合过程中存在的线性相关性现象,并探讨了其与泛化能力和幻觉生成的关系。

更新于 2025-02-10。作者:Letian Peng、Chenyang An、Shibo Hao、Chengyu Dong、Jingbo Shang。

中文摘要

语言模型的泛化问题正在积极讨论中,这对比了它们在通用智能方面的潜力与它们在基本知识组成(例如,逆向/转换诅咒)方面的挑战。本文揭示了语言模型在知识组成过程中出现的线性相关性现象。为了解释这一点,存在某种相关知识的线性变换,它将一个提示中的下一个标记预测的对数从另一个提示映射过来,例如,对于每个给定的X,“X住在城市中”→“X住在国家中”。这反映了人类在知识组成中的线性关系,如巴黎→法国。我们的发现表明,这种线性变换对大规模微调具有韧性,当与真实世界的关系一致时,可以泛化更新的知识,但当它偏离时,则会造成幻觉。实证结果表明,线性相关性可以作为语言模型泛化的潜在标识符。最后,我们展示了这样的线性相关性可以通过单个前馈网络和预训练的词汇表示来学习,这表明语言模型的泛化在很大程度上依赖于后者。

英文摘要

The generalization of language models (LMs) is undergoing active debates, contrasting their potential for general intelligence with their struggles with basic knowledge composition (e.g., reverse/transition curse). This paper uncovers the phenomenon of linear correlations in LMs during knowledge composition. For explanation, there exists a linear transformation between certain related knowledge that maps the next token prediction logits from one prompt to another, e.g., "X lives in the city of" rightarrow "X lives in the country of" for every given X. This mirrors the linearity in human knowledge composition, such as Paris rightarrow France. Our findings indicate that the linear transformation is resilient to large-scale fine-tuning, generalizing updated knowledge when aligned with real-world relationships, but causing hallucinations when it deviates. Empirical results suggest that linear correlation can serve as a potential identifier of LM's generalization. Finally, we show such linear correlations can be learned with a single feedforward network and pre-trained vocabulary representations, indicating LM generalization heavily relies on the latter.

解读

一句话总结

本文揭示了语言模型在知识组合过程中存在的线性相关性现象,并探讨了其与泛化能力和幻觉生成的关系。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源