Zero-Shot Cross-Lingual Transfer using Prefix-Based Adaptation

Snegha A, Sayambhu Sen, Piyush Singh Pasi, Abhishek Singhania, Preethi JyothiarXiv 2025 · DOI

Abstract

This paper presents the first systematic study of prefix-based adaptation for zero-shot cross-lingual transfer in decoder-only Large Language Models (LLMs) such as Llama and Mistral. The research demonstrates that prefix-based methods—specifically Prefix Tuning and LLaMA-Adapter—consistently outperform the industry-standard Low-Rank Adaptation (LoRA) across more than 35 languages. These methods achieve up to a 6% performance improvement while utilizing significantly fewer trainable parameters, effectively preserving the model's inherent multilingual capabilities.

Introduction

While modern LLMs are pretrained on massive multilingual corpora, adapting them to specific downstream tasks (e.g., question answering or logical reasoning) in a way that generalizes across languages remains a significant challenge. The standard approach for such adaptation is Parameter-Efficient Fine-Tuning (PeFT), with LoRA being the most prevalent choice.

However, LoRA modifies the model's underlying weight matrices. In a cross-lingual setting, this often leads to "catastrophic forgetting," where the model improves on the task in the source language (typically English) but loses its latent multilingual proficiency. This study investigates whether prefix-based methods, which keep the base weights entirely frozen and only add learnable "context" vectors, can better leverage the model's internal multilingual knowledge.

Methodology

The researchers compared four primary adaptation strategies, as illustrated in Figure 1:

  1. LoRA (Low-Rank Adaptation): Modifies query, key, and value projection matrices by adding low-rank trainable matrices.
  2. Soft Prompt Tuning: Prepends learnable tokens only to the input embedding layer.
  3. Prefix Tuning: Injects learnable key-value pairs into the attention mechanism across multiple transformer layers. This study found that injecting prefixes into the final 30 out of 32 layers was most effective.
  4. LLaMA-Adapter: A variant of prefix tuning that incorporates a zero-initialized gating mechanism to stabilize training in large-scale models.
Architectural comparison of adaptation strategies: (A) LoRA, (B) LLaMA-Adapter, (C) Prefix Tuning, and (D) Soft Prompt Tuning.

In this "zero-shot" experimental setup, models were trained exclusively on English data for specific tasks and subsequently evaluated on 35+ other languages without any target-language training.

Experimental Setup and Datasets

The study utilized four major multilingual benchmarks to evaluate diverse aspects of language understanding:

  • XNLI: Natural Language Inference.
  • XQUAD: Extractive Question Answering.
  • Belebele: A high-quality reading comprehension dataset covering 122 language variants, including low-resource languages like Swati and Bambara.
  • MGSM: Multilingual Grade School Math for testing multi-step reasoning.

Training was conducted using standard English datasets such as SQuAD, NLI, and GSM8K.

Key Results and Discussion

Prefix-based methods consistently outperformed LoRA across almost every language and benchmark tested. For example, on the XNLI benchmark, Prefix Tuning reached an average accuracy of 78.7%, compared to 74.4% for LoRA.

Comparison of F1 scores for Hindi across different model sizes and adaptation methods. Prefix-based methods consistently outperform LoRA and the base model.

As shown in Figure 3, the performance gap is particularly evident in languages like Hindi, where prefix-based methods maintain a significant lead over LoRA across various model sizes (from 1B to 24B parameters).

Key Insights:

  • Preservation vs. Modification: Because prefix-based methods act as "guides" rather than "re-programmers" of the base weights, they avoid the catastrophic forgetting that plagues weight-modifying methods like LoRA and full fine-tuning.
  • Parameter Efficiency: Prefix tuning achieved superior results using only 1.23M parameters, compared to 75.5M parameters for a high-rank LoRA (r=128), making it highly scalable.
  • The Low-Resource Advantage: The performance gain was most pronounced in low-resource languages, suggesting these methods are better at "unlocking" latent knowledge acquired during pretraining.
  • Scaling Laws: As model size increased, the advantage of prefix-based methods over LoRA became even more significant, indicating better scaling properties for multilingual adaptation.

Conclusion and Future Work

Prefix-based adaptation represents a superior alternative to LoRA for zero-shot cross-lingual transfer in decoder-only LLMs. While highly effective for comprehension tasks, the authors noted some degradation in complex mathematical reasoning (MGSM) for the most resource-constrained languages. Future research may explore "cross-lingual" training (e.g., training on Hindi to transfer to Bengali) and evaluate these methods on frontier models exceeding 70B parameters.

Summary updated

BibTeX
@misc{a2025zero,
  author = {Snegha A and Sayambhu Sen and Piyush Singh Pasi and Abhishek Singhania and Preethi Jyothi},
  title = {{Zero-Shot Cross-Lingual Transfer using Prefix-Based Adaptation}},
  year = {2025},
  eprint = {2510.24619},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.24619},
}
Figure