arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.11230cs.CL
收藏

稀疏自编码器可以在多种语言中捕捉语言特定的概念

Sparse Autoencoders Can Capture Language-Specific Concepts Across Diverse Languages

Universitas Indonesia(印度尼西亚大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学)

Lyzander Marciano Andrylie, Inaya Rahmanisa, Mahardika Krisna Ihsani, Alfan Farizki Wicaksono, Haryo Akbarianto Wibowo, Alham Fikri Aji

AI总结:

本研究利用稀疏自编码器识别语言特定的特征,揭示其在多语言处理中的作用及可解释性优势。

摘要:

理解大规模语言模型(LLMs)的多语言机制有助于了解它们如何处理不同语言,但这一挑战仍然存在。现有研究往往聚焦于单个神经元,但其多义性使得从跨语言表示中分离出语言特定的单元变得困难。为了解决这个问题,我们探索了稀疏自编码器(SAEs)的能力,它们能够学习表示具体和抽象概念的单义特征,这些特征在LLMs中跨语言存在。虽然其中一些特征是语言无关的,但语言特定的特征仍然存在未被探索的情况。在本工作中,我们引入了基于特征激活概率的SAE-LAPE方法,以在前馈网络中识别语言特定的特征。我们发现许多这样的特征主要出现在模型的中层到顶层,并且具有可解释性。这些特征影响模型的多语言性能和语言输出,并且可以用于语言识别,其性能与fastText相当,同时具有更高的可解释性。我们的代码和完整的图表可在https://github.com/LyzanderAndrylie/language-specific-features上获得。

英文摘要:

Understanding the multilingual mechanisms of large language models (LLMs) provides insight into how they process different languages, yet this remains challenging. Existing studies often focus on individual neurons, but their polysemantic nature makes it difficult to isolate language-specific units from cross-lingual representations. To address this, we explore sparse autoencoders (SAEs) for their ability to learn monosemantic features that represent concrete and abstract concepts across languages in LLMs. While some of these features are language-independent, the presence of language-specific features remains underexplored. In this work, we introduce $\textit{SAE-LAPE}$, a method based on feature activation probability, to identify language-specific features within the feed-forward network. We find that many such features predominantly appear in the middle to late layers of the model and are interpretable. These features influence the model's multilingual performance and language output, and can be used for language identification with performance comparable to fastText, along with more interpretability. Our code and complete figures are available at https://github.com/LyzanderAndrylie/language-specific-features.

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

↑