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

Chenghao Xiao, Hou Pong Chan, Hao Zhang, Mahani Aljunied, Lidong Bing +2 more
4/18/2025
cs.CL

Official code: DAMO-NLP-SG/LLM-Multilingual-Knowledge-Boundaries (19 stars, MIT, last commit 2025-10-18).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

[ACL 2025] Analyzing LLMs' Multilingual Knowledge Boundary Cognition Across Languages Through the Lens of Internal Representations

192Python, Jupyter NotebookApr 11, 20251 years agoMIT
datasetsevaluationhallucinationllmmultilingual

Similar Papers

Cite this paper

@article{xiao2025analyzing,
  title  = {Analyzing LLMs' Knowledge Boundary Cognition Across Languages Through the Lens of Internal Representations},
  author = {Chenghao Xiao and Hou Pong Chan and Hao Zhang and Mahani Aljunied and Lidong Bing and Noura Al Moubayed and Yu Rong},
  year   = {2025},
  eprint = {2504.13816},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.13816v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.13816.svg)](https://codeofpaper.com/paper/2504.13816)

Discussion