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

通过内部表示视角分析LLMs跨语言的知识边界认知

Analyzing LLMs' Knowledge Boundary Cognition Across Languages Through the Lens of Internal Representations

DAMO Academy, Alibaba Group(阿里巴巴集团达摩院);Department of Computer Science, Durham University(杜伦大学计算机科学系);Hupan Lab, Hangzhou, China(杭州实验室)

Chenghao Xiao, Hou Pong Chan, Hao Zhang, Mahani Aljunied, Lidong Bing, Noura Al Moubayed, Yu Rong

AI总结:

本研究首次通过内部表示探测分析LLMs跨语言的知识边界认知,发现其编码于中间层且语言差异呈线性结构,提出无需训练的对齐方法和双语微调以提升跨语言边界识别,降低幻觉风险。

摘要:

虽然理解LLMs的知识边界对于防止幻觉至关重要,但关于LLMs知识边界的研究主要集中在英语上。在这项工作中,我们首次通过探测LLMs在处理多种语言的已知和未知问题时的内部表示,来分析它们如何识别不同语言的知识边界。我们的实证研究揭示了三个关键发现:1)LLMs对知识边界的感知在不同语言中编码在中间层到中上层;2)知识边界感知中的语言差异遵循线性结构,这促使我们提出一种无需训练的对齐方法,该方法能有效地跨语言转移知识边界感知能力,从而有助于降低低资源语言中的幻觉风险;3)在双语问题对翻译上进行微调进一步增强了LLMs跨语言识别知识边界的能力。鉴于缺乏用于跨语言知识边界分析的标准测试平台,我们构建了一个包含三种代表性知识边界数据的多语言评估套件。我们的代码和数据集可在https://github.com/DAMO-NLP-SG/LLM-Multilingual-Knowledge-Boundaries公开获取。

英文摘要:

While understanding the knowledge boundaries of LLMs is crucial to prevent hallucination, research on the knowledge boundaries of LLMs has predominantly focused on English. In this work, we present the first study to analyze how LLMs recognize knowledge boundaries across different languages by probing their internal representations when processing known and unknown questions in multiple languages. Our empirical studies reveal three key findings: 1) LLMs' perceptions of knowledge boundaries are encoded in the middle to middle-upper layers across different languages. 2) Language differences in knowledge boundary perception follow a linear structure, which motivates our proposal of a training-free alignment method that effectively transfers knowledge boundary perception ability across languages, thereby helping reduce hallucination risk in low-resource languages; 3) Fine-tuning on bilingual question pair translation further enhances LLMs' recognition of knowledge boundaries across languages. Given the absence of standard testbeds for cross-lingual knowledge boundary analysis, we construct a multilingual evaluation suite comprising three representative types of knowledge boundary data. Our code and datasets are publicly available at https://github.com/DAMO-NLP-SG/LLM-Multilingual-Knowledge-Boundaries.

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

↑