Soft Language Prompts for Language Transfer

Ivan Vykopal, Simon Ostermann, Marián SimkoNAACL 2025

Abstract

Cross-lingual knowledge transfer in large language models (LLMs) often suffers from the "curse of multilinguality," where model capacity is stretched across many languages, degrading performance on low-resource ones. This paper proposes soft language prompts—trainable embeddings prepended to the input—as a parameter-efficient alternative to traditional adapters. By combining soft language prompts with task adapters, the authors demonstrate superior performance in zero-shot cross-lingual transfer, particularly for low-resource languages and classification tasks.

Introduction: The Curse of Multilinguality

Multilingual LLMs face a fundamental trade-off: as the number of supported languages increases, the per-language capacity decreases within a fixed-size model. Retraining these models for new languages is computationally prohibitive and risks catastrophic forgetting. While Parameter-Efficient Fine-Tuning (PEFT) techniques like adapters (e.g., MAD-X) have become the standard, finding the optimal way to fuse language-specific and task-specific knowledge remains a challenge.

Methods: Soft Prompts vs. Adapters

The researchers introduce soft language prompts as a lightweight conditioning mechanism. Unlike adapters, which insert new layers into the transformer block, soft prompts prepend a sequence of trainable continuous embeddings to the input text. This "steers" the model into the target language's space without modifying its internal logic as extensively as layer-based adapters.

The architecture of a transformer block utilizing soft language and task prompts.

Training Strategy

The study follows a three-phase approach to isolate and evaluate language and task representations:

  1. Phase I (Language Training): Soft prompts are trained on unlabeled Wikipedia data for 16 languages using a span corruption objective.
  2. Phase II (Task Training): Task-specific representations (either prompts or adapters) are trained on high-resource source languages (e.g., English, Spanish).
  3. Phase III (Evaluation): The model is evaluated on zero-shot transfer to mid- and low-resource target languages.
The three-phase experimental pipeline: language representation training, task representation training, and cross-lingual evaluation.

The authors compared several configurations, including the standard MAD-X (Language Adapter + Task Adapter) and their proposed winner: Soft Language Prompt + Task Adapter.

Experimental Setup and Datasets

The experiments utilized the mT0-BASE model (approx. 580M parameters). The dataset matrix covered:

  • 16 Languages: Ranging from high-resource (English, Chinese) to low-resource (Swahili, Telugu).
  • Benchmarks: Question Answering (SQuAD, MLQA, XQuAD), Named Entity Recognition (WikiANN), Natural Language Inference (XNLI, IndicXNLI), and Check-Worthy Claim Detection (MultiClaim).

Key Results and Insights

Performance Gains

The combination of a Soft Language Prompt and a Task Adapter emerged as the top performer across the board. In Named Entity Recognition (NER), this configuration outperformed others by an average of 4%. The gains were even more pronounced in specific language pairs; for instance, transferring from Russian to Telugu saw a 37% improvement over standard PEFT baselines.

Linguistic Factors

  • Source Language Selection: English is not always the optimal source. Spanish proved to be a highly effective source language for transfer, likely due to its linguistic proximity to various target languages.
  • Script Sensitivity: Transfer success is highly dependent on script. Moving from Latin-to-Latin scripts is significantly more effective than cross-script transfer (e.g., Chinese to Swahili).
  • Data Floor: A minimum amount of unlabeled data is required to form effective language representations. For languages with extremely small Wikipedia corpora (like Urdu), adding language-specific parameters can occasionally degrade performance compared to a simple task adapter trained on a high-resource language.

Conclusion and Future Work

Soft language prompts provide a robust, parameter-efficient method for cross-lingual transfer. While highly effective for NLU tasks on medium-sized models, future research is needed to determine if these benefits scale to massive 70B+ parameter models and how they perform on complex generative tasks like summarization.

Summary updated

BibTeX
@inproceedings{vykopal2025soft,
  author = {Ivan Vykopal and Simon Ostermann and Marián Simko},
  title = {{Soft Language Prompts for Language Transfer}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.517},
}
Figure