How Do Language Models Speak Languages? A Case Study on Unintended Code-Switching
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 18:46 UTC · 0a29af761343 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,27 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "HIXPyQ1aMq"- }- ],- "title": "How Do Language Models Speak Languages? A Case Study on Unintended Code-Switching",- "authors": [- "Yuxin Xiao",- "Zhen Huang",- "Wenxiao Wang",- "Binbin Lin",- "Xiaofei He",- "Xu Shen",- "Jieping Ye"- ],- "abstract": "Unintended code-switching, which refers to the phenomenon where LLM unexpectedly switch languages, poses a fundamental challenge in the multilingual capabilities in LLMs.\nHowever, the fundamental properties of their underlying circuits, such as what they consist of, where they emerge in the network, and how to mitigate their effects, remain unexplored.\nExisting works on the mechanistic interpretability depend on additional training (e.g., sparse autoencoders) or manual annotation, both of which pose limitations in real-world scenarios.\nIn this work, we introduce a scalable circuit discovery framework that causally localizes multilingual neurons, describes their functional patterns, and groups neurons into circuits.\nWe find that the circuits for multilingual generation fall into two different regimes: a language regime which acts as a lingual key to detect language patterns, and a semantic regime which functions as a contextual value to retrieving language-agnostic semantics.\nThese two regimes, in normal cases, converge smoothly to make final predictions, but in code-switching scenarios, semantics dominate the circuit, overriding typical language pathways and destabilizing outputs.\nFurthermore, we fine-tune the identified language sub-circuit ($\\sim0.019$\\% of all neurons), reducing the code-switching rate by $20.8$\\% with minimal parameter updates, validating the effectiveness of the discovered circuits for practical scalability. Our work serves as a preliminary exploration of multilingual generation circuits, offering actionable insights for neuron-based mechanistic interpretability.",- "year": 2026,- "venue": "ICLR 2026 submission",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "fd3a3db1-e55c-4d2a-bd6d-36e692000823"}
paper.json added
+++ b/paper.json@@ -0,0 +1,17 @@+{+ "title": "How Do Language Models Speak Languages? A Case Study on Unintended Code-Switching",+ "authors": [+ "Yuxin Xiao",+ "Zhen Huang",+ "Wenxiao Wang",+ "Binbin Lin",+ "Xiaofei He",+ "Xu Shen",+ "Jieping Ye"+ ],+ "abstract": "Unintended code-switching, which refers to the phenomenon where LLM unexpectedly switch languages, poses a fundamental challenge in the multilingual capabilities in LLMs.\nHowever, the fundamental properties of their underlying circuits, such as what they consist of, where they emerge in the network, and how to mitigate their effects, remain unexplored.\nExisting works on the mechanistic interpretability depend on additional training (e.g., sparse autoencoders) or manual annotation, both of which pose limitations in real-world scenarios.\nIn this work, we introduce a scalable circuit discovery framework that causally localizes multilingual neurons, describes their functional patterns, and groups neurons into circuits.\nWe find that the circuits for multilingual generation fall into two different regimes: a language regime which acts as a lingual key to detect language patterns, and a semantic regime which functions as a contextual value to retrieving language-agnostic semantics.\nThese two regimes, in normal cases, converge smoothly to make final predictions, but in code-switching scenarios, semantics dominate the circuit, overriding typical language pathways and destabilizing outputs.\nFurthermore, we fine-tune the identified language sub-circuit ($\\sim0.019$\\% of all neurons), reducing the code-switching rate by $20.8$\\% with minimal parameter updates, validating the effectiveness of the discovered circuits for practical scalability. Our work serves as a preliminary exploration of multilingual generation circuits, offering actionable insights for neuron-based mechanistic interpretability.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}