Introduction
While prompt tuning has emerged as a parameter-efficient alternative to full fine-tuning for encoder-only models, its efficacy in decoder-only multilingual settings remains under-explored. This study investigates whether prompt tuning can compete with full fine-tuning in models like XGLM and how the resource level of a language influences its success.
Methodology
The researchers utilized XGLM-564M as the base model and implemented P-tuning v2. Unlike standard prompt tuning, which only adds trainable tokens to the input layer, P-tuning v2 injects trainable continuous prompts into every layer of the model while keeping the base weights frozen. This approach updates only 0.08% to 0.13% of the total parameters. To stabilize training, a two-layer MLP (Multi-Layer Perceptron) reparameterization trick was applied to generate the prompt embeddings.
The evaluation spanned four diverse cross-lingual benchmarks:
- XNLI: Natural Language Inference (sequence-pair classification)
- PAWS-X: Paraphrase identification (sequence-pair classification)
- NER: Named Entity Recognition (structured prediction)
- POS: Part-of-Speech tagging (structured prediction)
Key Results
The experimental results demonstrate that prompt tuning (PT) consistently performs on par with or better than full fine-tuning (FT) across all four tasks. On average, PT showed improvements in every benchmark, most notably in XNLI where it achieved a significant accuracy boost over FT.
The performance gap is particularly pronounced for low-resource languages. While high-resource languages like English and German showed minimal differences between the two methods (often <1%), low-resource languages such as Turkish, Arabic, and Urdu saw substantial gains. For instance, in the XNLI task, improvements for these languages ranged from 4.67% to as high as 8.15% (for Thai).
Subword Fertility and the Low-Resource Advantage
A central insight of this research is the correlation between "subword fertility"—the average number of tokens a word is decomposed into—and the effectiveness of prompt tuning. Low-resource languages typically exhibit higher fertility because tokenizers are less optimized for them, breaking words into more granular units.
The authors hypothesize that these granular subword units act as "accidental discrete prompts," providing the model with better anchors for language identification. P-tuning v2's continuous prompts can leverage these anchors more effectively than standard fine-tuning, explaining the massive performance jumps seen in data-scarce languages. Essentially, the "messy" tokenization of low-resource languages provides a richer signal for the prompt tuning process to exploit.
Conclusion and Future Work
Prompt tuning is not just a parameter-efficient alternative; it is a powerful tool for enhancing multilingual transfer, especially for low-resource languages. By updating less than 0.15% of the model's parameters, researchers achieved results that match or exceed full fine-tuning.
Future research should extend these findings to larger models like XGLM-7.5B or BLOOM-176B and explore generative tasks such as summarization and translation. Additionally, comparing P-tuning v2 with other popular Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA (Low-Rank Adaptation) in a multilingual context remains a promising direction for the field.
Summary updated