atlas

Research map / Large language models / Instruction and fine-tuning

Layer Swapping for Zero-Shot Cross-Lingual Transfer in Large Language Models

ICLR 2025 · Large language models › Instruction and fine-tuning · approach: Gradient-free adaptation and merging · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Merges a target-language generic-instruction expert and an English math expert by swapping top and bottom transformer layers from the language expert into the math expert, enabling zero-shot cross-lingual math reasoning without in-language math data.

Problem

Fine-tuning LLMs for math reasoning in non-English languages is hard because task-specific instruction data in those languages is scarce, and cross-lingual transfer is often weak.

Approach

Fine-tune separate experts (English math data; target-language generic instruction data) from the same pretrained model, then post hoc replace the top and bottom transformer layers of the math expert with the language expert's layers (with optional averaged transition zones), exploiting the finding that language-specific parameters concentrate in outer layers while math updates concentrate in midd

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Swap target-language expert's bottom and top layers into the English math expertLlama 3.1 8B math and language experts · MGSM 8-shot Swahiliscore: 29.5 -> 32.8Helped
Swap target-language expert's bottom and top layers into the English math expertLlama 3.1 8B math and language experts · MGSM 8-shot Teluguscore: 20.1 -> 23.0Helped
Swap target-language expert's bottom and top layers into the English math expertLlama 3.1 8B math and language experts · MGSM 8-shot Bengaliscore: 38.3 -> 38.7Helped
Swap target-language expert's bottom and top layers into the English math expertLlama 3.1 8B math and language experts · MGSM 8-shot Japanesescore: 42.7 -> 40.1Hurt
Use layer swapping instead of model soupingLlama 3.1 8B math and language experts · MGSM 8-shot Swahiliaverage score: 29.3 -> 32.4Helped
Use layer swapping instead of model soupingLlama 3.1 8B math and language experts · MGSM 8-shot Teluguaverage score: 20.9 -> 22.7Helped
Use layer swapping instead of model soupingLlama 3.1 8B math and language experts · MGSM 8-shot Bengaliaverage score: 36.8 -> 37.1Helped
Use layer swapping instead of model soupingLlama 3.1 8B math and language experts · MGSM 8-shot Japaneseaverage score: 38.7 -> 38.5No clear effect
Replace transition-zone averaged layers with math-expert layers (ablation)Layer swap · MGSMscoreNo clear effect
Vary the number of swapped layers and transition-zone layers within the tested effective ranges (ablation)Layer swap · MGSM across Swahili, Telugu, Bengali, and JapanesescoreNo clear effect
Use more language-expert layers for lower-performing languages such as Telugu (ablation)Layer swap · MGSM TeluguscoreHelped
Remove the first five and last two transformer layers' SFT updates from the math expert (ablation)Llama 3.1 8B math expert · MGSMscoreNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Orca-Math Aya Dataset NLLB translation data Inkuba-instruct xP3mt llm-japanese-dataset ichikara-instruction dolly-15k-ja BongChat IndicShareLlama (indic-align) Belebele FLoRes

Benchmarks: MGSM Belebele FLoRes MBPP MMLU

Metrics: accuracy (8-shot MGSM) accuracy (Belebele, MMLU) BLEU (FLoRes) pass@1 (MBPP) average and max over merged pairs

Baselines: Llama 3.1 8B base model soup TIES-merging dataset merging (joint SFT) language expert math expert

Builds on: model souping TIES-merging composable sparse fine-tuning

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy