Multitask Multilingual Model Adaptation with Featurized Low-Rank Mixtures

Chu-Cheng Lin, Xinyi Wang, Jonathan H. Clark, Han Lu, Yun Zhu, Chenxi Whitehouse, Hongkun YuarXiv 2024 · OpenReview

Abstract

Adapting pretrained large language models (LLMs) to various downstream tasks in tens or hundreds of human languages is computationally expensive. Parameter-efficient fine-tuning (PEFT) significantly reduces the adaptation cost, by tuning only a small amount of parameters. However, common PEFT methods like LoRA suffer from suboptimal performance on diverse dataset mixtures, due to aggressive parameter tying and negative interference among different datasets. In this work, we propose Featurized Low-rank Mixtures (FLix), a novel PEFT method designed for effective multitask multilingual adaptation. FLix associates each unique dataset feature, such as the dataset's language or task, with its own low-rank weight update parameters. By composing feature-specific parameters for each dataset, FLix can accommodate diverse dataset mixtures and generalize better to unseen datasets. Our experiments show that FLix leads to significant improvements over a variety of tasks for both supervised learning and zero-shot settings with gains of up to 14.2 exact match points in zero-shot semantic parsing.

Introduction

As Large Language Models (LLMs) continue to grow in scale, the cost of adapting them to specific "specialist" roles through full fine-tuning has become prohibitive. This has led to the widespread adoption of Parameter-Efficient Fine-Tuning (PEFT) techniques, most notably Low-Rank Adaptation (LoRA). LoRA works by freezing the original model weights and injecting a small number of trainable low-rank matrices into each layer.

While effective for single-task adaptation, standard LoRA faces significant hurdles when applied to diverse "mixtures" of data—such as a model intended to handle 50 different languages across 10 distinct tasks. In these scenarios, a single set of LoRA parameters must learn to accommodate all variations. This often results in negative interference, where learning the nuances of one language or task inadvertently degrades performance on another. Furthermore, standard PEFT methods struggle with zero-shot generalization to "unseen combinations," such as performing a known task in a language the model has seen, but never for that specific task during training.

Methods: The FLix Architecture

To address these limitations, researchers at Google have introduced Featurized Low-Rank Mixtures (FLix). FLix extends the LoRA framework into a modular, compositional architecture that disentangles task and language features.

Compositional Weight Updates

In a standard LoRA setup, a frozen weight matrix $W_0$ is augmented by a single low-rank update $\Delta W = AB$. FLix, however, treats tasks and languages as discrete features. Each feature (e.g., "Language: Bengali" or "Task: Question Answering") is assigned its own unique set of low-rank parameters $\phi_i^A$ and $\phi_i^B$.

When an input arrives, FLix identifies its active features and computes the final weight matrix as a sum of the base weights and the relevant feature-specific updates: $$W(x) = W_0 + \sum f_i(x) \phi_i^A \phi_i^B$$ Here, $f_i(x)$ is a binary indicator that activates the parameters corresponding to the input's metadata. This allows the model to "assemble" the necessary adaptation parameters on the fly.

Overview of FLix training and inference mechanisms.

Feature Dropout

To prevent the model from becoming overly reliant on specific feature tags and to encourage positive transfer between related attributes, the authors introduce Feature Dropout. During training, active features are randomly disabled. This forces the model to learn how to share information across the remaining parameters, ensuring that the task parameters learn general task-related knowledge and language parameters learn general linguistic patterns.

Experimental Setup and Datasets

The study primarily utilizes the XTREME-UP benchmark, a user-centric dataset specifically designed for under-represented languages. The evaluation covers four distinct task categories:

  • Named Entity Recognition (NER)
  • Semantic Parsing (e.g., converting natural language queries into machine-readable code)
  • In-language Question Answering (QA)
  • Cross-lingual Question Answering

To further enhance language coverage and facilitate cross-lingual transfer, the researchers also incorporated large-scale machine translation data into the training mixture.

Key Insights and Results

FLix was compared against two versions of standard LoRA: a "compute-matched" version (using the same rank per input) and a "parameter-matched" version (using a higher rank to match FLix's total parameter count).

Superior Zero-Shot Generalization

The most striking result was in zero-shot semantic parsing, where FLix achieved a massive 14.2 point improvement in exact match scores over the compute-matched LoRA baseline. This demonstrates the power of compositionality: by learning "how to parse" and "how to speak a language" independently, FLix can successfully combine them for language-task pairs it has never seen before.

Robustness to Diversity

In joint multitask-multilingual tuning, FLix achieved an average score of 72.4 across all tasks, significantly outperforming standard LoRA's 65.1. Notably, as the training mixture became more diverse, standard LoRA's performance often dipped due to interference. FLix, by contrast, maintained or improved its performance, proving it scales more effectively to complex, real-world data mixtures.

Efficiency

Despite having more total parameters than a single LoRA module, FLix remains highly efficient. Because it only activates a small fraction of its parameters for any given input, its computational cost during inference is identical to that of standard LoRA.

Conclusion and Future Work

FLix represents a significant step forward in making LLMs effective multitaskers across a wide array of languages. By replacing monolithic updates with featurized mixtures, it mitigates negative interference and unlocks powerful zero-shot capabilities.

Future research directions include developing automated feature discovery to eliminate the need for manual metadata tags, expanding the approach to multi-modal models, and exploring dynamic weighting schemes to optimize how different features are composed for specific inputs.

Summary updated

BibTeX
@misc{lin2024multitask,
  author = {Chu-Cheng Lin and Xinyi Wang and Jonathan H. Clark and Han Lu and Yun Zhu and Chenxi Whitehouse and Hongkun Yu},
  title = {{Multitask Multilingual Model Adaptation with Featurized Low-Rank Mixtures}},
  year = {2024},
  eprint = {2402.17934},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.17934},
}
Figure