arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.20344cs.CL
收藏

LinguaLens:基于稀疏自编码器迈向大语言模型的语言机制解释

LinguaLens: Towards Interpreting Linguistic Mechanisms of Large Language Models via Sparse Auto-Encoder

DCST, BNRist(DCST、BNRist;KIRC、人工智能研究院、清华大学,中国);KIRC, Institute for Artificial Intelligence, Tsinghua University, China(中文语言文学系、北京大学,中国);Department of Chinese Language and Literature, Peking University, China

Yi Jing, Zijun Yao, Hongzhu Guo, Lingxu Ran, Xiaozhi Wang, Lei Hou, Juanzi Li

AI总结:

本研究提出基于稀疏自编码器的框架 LinguaLens,通过提取多维度中英文语言特征并构建大规模反事实数据集,系统揭示了大语言模型内部语言知识的表示与分布模式,并展示了控制模型输出的潜力。

摘要:

大语言模型(LLMs)在需要复杂语言能力的任务上表现出色,例如指代消歧和隐喻识别/生成。尽管 LLMs 具备令人印象深刻的能力,但其处理和表示语言知识的内部机制在很大程度上仍不透明。先前关于语言机制的研究受限于粗粒度、有限的分析规模和狭窄的关注点。在本研究中,我们提出了 LinguaLens,这是一个基于稀疏自编码器(SAEs)的系统且全面的大语言模型语言机制分析框架。我们提取了跨四个维度(词法、句法、语义和语用)的广泛中英文语言特征。通过采用反事实方法,我们构建了一个用于机制分析的大规模语言特征反事实数据集。我们的发现揭示了 LLMs 中语言知识的内在表示,发现了跨层和跨语言的分布模式,并展示了控制模型输出的潜力。这项工作为研究语言机制提供了系统的资源和方法套件,为 LLMs 具备真正的语言知识提供了有力证据,并为未来研究中更具可解释性和可控性的语言建模奠定了基础。

英文摘要:

Large language models (LLMs) demonstrate exceptional performance on tasks requiring complex linguistic abilities, such as reference disambiguation and metaphor recognition/generation. Although LLMs possess impressive capabilities, their internal mechanisms for processing and representing linguistic knowledge remain largely opaque. Prior research on linguistic mechanisms is limited by coarse granularity, limited analysis scale, and narrow focus. In this study, we propose LinguaLens, a systematic and comprehensive framework for analyzing the linguistic mechanisms of large language models, based on Sparse Auto-Encoders (SAEs). We extract a broad set of Chinese and English linguistic features across four dimensions (morphology, syntax, semantics, and pragmatics). By employing counterfactual methods, we construct a large-scale counterfactual dataset of linguistic features for mechanism analysis. Our findings reveal intrinsic representations of linguistic knowledge in LLMs, uncover patterns of cross-layer and cross-lingual distribution, and demonstrate the potential to control model outputs. This work provides a systematic suite of resources and methods for studying linguistic mechanisms, offers strong evidence that LLMs possess genuine linguistic knowledge, and lays the foundation for more interpretable and controllable language modeling in future research.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑