Skip to content

Analyzing LLMs Multilingual Knowledge Boundaries through the lens of Internal Representations

License

Notifications You must be signed in to change notification settings

DAMO-NLP-SG/LLM-Multilingual-Knowledge-Boundaries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LLM-Multilingual-Knowledge-Boundaries

Code and datasets for paper "Analyzing LLMs' Knowledge Boundary Cognition Across Languages Through the Lens of Internal Representations"

We are updating all code and resources in the next few days.

Dataset links: FreshQA-multilingual; FreshQA-multilingual-augmented; True-False-multilingual; SeaRefuse

Code for linear probe, and using mean-shifting & linear projection to align language subspaces.

python inference.py \
    --model_name Qwen/Qwen2.5-7B \
    --dataset_name SeaLLMs/FreshQA-multilingual \
    --output_path "./transferability_results/7B/Qwen_base_7B.json" \
    --methods "identical" "mean shifting" "linear projection" \
    --use_template True \
    --batch_size 50
@misc{xiao2025analyzingllmsknowledgeboundary,
      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},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2504.13816}, 
}

About

Analyzing LLMs Multilingual Knowledge Boundaries through the lens of Internal Representations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages