← Latest papers
💻 computer science

Gradual Code-Switching as Inference-Time Cross-Lingual Representational Alignment for LLMs

This paper introduces Code-Switching In-Context Learning (CSICL), an inference-time mechanism that gradually transitions from target languages to English to align non-English inputs with English-centric reasoning spaces, thereby significantly improving multilingual LLM performance across diverse languages and low-resource settings.

Original authors: Haneul Yoo, Jiho Jin, Kyunghyun Cho, Alice Oh

Published 2026-08-14
📖 3 min read☕ Coffee break read

Original authors: Haneul Yoo, Jiho Jin, Kyunghyun Cho, Alice Oh

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a brilliant, multilingual robot how to solve a tricky puzzle. You speak to it in Spanish, French, or Swahili, expecting it to think and answer in that same language. But here's the catch: deep inside its "brain," this robot has a secret habit. No matter what language you speak to it, it secretly translates everything into English first, does its thinking in English, and then translates the answer back. This works great if the robot is fluent in English, but if the language you speak is rare or complex, that secret translation step can get messy. The robot might get confused, lose the meaning, or give a wrong answer because the "bridge" between your language and its English brain is shaky. This is a big problem for making AI helpful for everyone, everywhere, not just English speakers. Scientists call this "cross-lingual misalignment." To fix it, researchers have tried showing the robot examples in different languages, but often those examples are just abrupt jumps—like asking the robot to suddenly switch from Spanish to English without any warning. It's like asking someone to jump off a diving board without a ladder; they might panic and miss the water.

This paper introduces a clever new trick called Gradual Code-Switching In-Context Learning (CSICL). Instead of forcing the robot to jump languages, the researchers teach it to walk across a bridge, step by step. They show the robot a series of examples where the language slowly melts from the target language (like Korean) into English. Imagine a sentence that starts 100% Korean, then becomes 75% Korean and 25% English, then 50/50, then 25% Korean, and finally 100% English. By watching this smooth transition, the robot learns to align its internal "English thinking" with the non-English input without getting shocked. The researchers tested this on four different large language models across ten languages and six different types of tasks, from answering trivia to solving math problems. They found that this gentle, gradual approach consistently helped the robots perform better, especially in languages they hadn't seen much before. In fact, for low-resource languages (the ones the robots know the least about), this method boosted performance by a massive 14.7 percentage points. The paper suggests that by scaffolding the reasoning process with these gradual transitions, we can help AI models become more fair and effective for speakers of all languages, turning a shaky bridge into a sturdy highway.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →