Focusing on Language: Revealing and Exploiting Language Attention Heads in Multilingual Large Language Models

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Liu, Xin, Song, Qiyang, Zhou, Qihang, Du, Haichao, Xu, Shaowen, Jiang, Wenbo, Zhang, Weijuan, Jia, Xiaoqi
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908689826316288
author Liu, Xin
Song, Qiyang
Zhou, Qihang
Du, Haichao
Xu, Shaowen
Jiang, Wenbo
Zhang, Weijuan
Jia, Xiaoqi
author_facet Liu, Xin
Song, Qiyang
Zhou, Qihang
Du, Haichao
Xu, Shaowen
Jiang, Wenbo
Zhang, Weijuan
Jia, Xiaoqi
contents Large language models (LLMs) increasingly support multilingual understanding and generation. Meanwhile, efforts to interpret their internal mechanisms have emerged, offering insights to enhance multilingual performance. While multi-head self-attention (MHA) has proven critical in many areas, its role in multilingual capabilities remains underexplored. In this work, we study the contribution of MHA in supporting multilingual processing in LLMs. We propose Language Attention Head Importance Scores (LAHIS), an effective and efficient method that identifies attention head importance for multilingual capabilities via a single forward and backward pass through the LLM. Applying LAHIS to Aya-23-8B, Llama-3.2-3B, and Mistral-7B-v0.1, we reveal the existence of both language-specific and language-general heads. Language-specific heads enable cross-lingual attention transfer to guide the model toward target language contexts and mitigate off-target language generation issue, contributing to addressing challenges in multilingual LLMs. We also introduce a lightweight adaptation that learns a soft head mask to modulate attention outputs over language heads, requiring only 20 tunable parameters to improve XQuAD accuracy. Overall, our work enhances both the interpretability and multilingual capabilities of LLMs from the perspective of MHA.
format Preprint
id arxiv_https___arxiv_org_abs_2511_07498
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Focusing on Language: Revealing and Exploiting Language Attention Heads in Multilingual Large Language Models
Liu, Xin
Song, Qiyang
Zhou, Qihang
Du, Haichao
Xu, Shaowen
Jiang, Wenbo
Zhang, Weijuan
Jia, Xiaoqi
Computation and Language
Artificial Intelligence
Large language models (LLMs) increasingly support multilingual understanding and generation. Meanwhile, efforts to interpret their internal mechanisms have emerged, offering insights to enhance multilingual performance. While multi-head self-attention (MHA) has proven critical in many areas, its role in multilingual capabilities remains underexplored. In this work, we study the contribution of MHA in supporting multilingual processing in LLMs. We propose Language Attention Head Importance Scores (LAHIS), an effective and efficient method that identifies attention head importance for multilingual capabilities via a single forward and backward pass through the LLM. Applying LAHIS to Aya-23-8B, Llama-3.2-3B, and Mistral-7B-v0.1, we reveal the existence of both language-specific and language-general heads. Language-specific heads enable cross-lingual attention transfer to guide the model toward target language contexts and mitigate off-target language generation issue, contributing to addressing challenges in multilingual LLMs. We also introduce a lightweight adaptation that learns a soft head mask to modulate attention outputs over language heads, requiring only 20 tunable parameters to improve XQuAD accuracy. Overall, our work enhances both the interpretability and multilingual capabilities of LLMs from the perspective of MHA.
title Focusing on Language: Revealing and Exploiting Language Attention Heads in Multilingual Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2511.07498