Efficient Knowledge Transfer in Multi-Task Learning through Task-Adaptive Low-Rank Representation

Xiao Zhang, Kangsheng Wang, Tianyu Hu, Huimin Ma

Introduction

As Large Language Models (LLMs) continue to scale, the challenge of adapting them to a diverse array of specialized tasks—ranging from financial sentiment analysis to medical entity recognition—becomes increasingly complex. Deploying a unique 7B+ parameter model for every specific use case is logistically and computationally prohibitive. Multi-Task Learning (MTL) offers a potential solution by training a single model to handle multiple tasks simultaneously. However, traditional methods like Prompt Tuning (PT) often struggle with task heterogeneity, where the limited expressive capacity of a prompt vector fails to capture the unique nuances of different domains, leading to "knowledge entanglement."

To address these limitations, this paper introduces TA-LoRA (Task-Adaptive Low-Rank Representation). This framework combines the parameter efficiency of prompt tuning with the robust representational power of low-rank adaptation (LoRA), utilizing a novel "fast-slow" weight mechanism to effectively decouple shared knowledge from task-specific details.

Addressing Task Heterogeneity

The core difficulty in MTL lies in balancing shared linguistic foundations with task-specific requirements. In standard Prompt Tuning, a small trainable prefix is added to the input. While efficient, this prefix often lacks the capacity to store the distinct "flavors" of many different tasks. When forced to do so, the model's performance on unseen tasks often degrades because the shared and specific knowledge components become inseparable. TA-LoRA overcomes this by moving beyond simple vectors to a more sophisticated low-rank matrix structure that can better represent task-specific variations.

The TA-LoRA Framework

TA-LoRA is integrated into the final layers of a pre-trained model and is built upon three primary architectural innovations:

1. Low-Rank Heterogeneity Representation

Instead of a static prompt, TA-LoRA employs low-rank matrices to capture task differences. These differences are approximated using the product of two smaller matrices ($BA$), allowing for a more nuanced representation of task-specific features without the overhead of full parameter updates.

2. Fast-Slow Weights Mechanism

To prevent task interference, the framework distinguishes between "slow" and "fast" weights:

  • Slow Weights (Matrix $B$): These are shared across all tasks, acting as a "shared library" of foundational knowledge.
  • Fast Weights (Matrix $A$): These are unique to each task, functioning as a "private notebook" for task-specific nuances.

To maximize efficiency, matrix $A$ is further decomposed into a rank-1 outer product of two vectors ($u \otimes v$). This constraint forces the model to extract only the most essential task features, acting as a natural regularizer against noise.

3. Zero-Initialized Attention

Introducing new components into a stable, pre-trained LLM can initially cause performance instability. TA-LoRA utilizes a gating mechanism that starts at zero. This effectively "mutes" the new task-specific components at the beginning of training, gradually allowing them to influence the model as they stabilize, thereby preserving the integrity of the pre-trained weights.

Experimental Evaluation

The researchers evaluated TA-LoRA using the Qwen2.5-7B backbone across 16 diverse NLP tasks, primarily in Chinese. The tasks included semantic matching (AFQMC), sentiment analysis (Amazon), and classification (THUCNews), among others. The study specifically measured performance in two critical areas:

  • Unseen Data: Performance on the test sets of tasks included in the training phase.
  • Unseen Tasks: Performance on entirely new domains and formats to test true generalization.

Key Findings

Superior Generalization and Efficiency

TA-LoRA demonstrated significant performance gains, outperforming standard Prompt Tuning by 13.6% on unseen data and 11.4% on unseen tasks. Remarkably, in several "unseen task" scenarios, TA-LoRA outperformed full fine-tuning (FT), despite using only 0.1857% of the total model parameters. This suggests that the low-rank constraint provides a superior regularizing effect compared to the high-dimensional updates of full fine-tuning.

The "Later Layer" Hypothesis

Through interlayer similarity analysis, the authors discovered that early layers of LLMs primarily handle general language features, while task-specific specialization occurs in the later stages. Consequently, TA-LoRA is most effective when applied only to the final 14 layers of the model.

Few-Shot Prowess

TA-LoRA proved highly efficient in low-data environments. With as few as 32 examples per task, the model achieved results comparable to those trained on full datasets, highlighting its ability to rapidly acquire new task knowledge.

Conclusion and Future Work

TA-LoRA represents a significant step forward in efficient Multi-Task Learning, providing a scalable way to adapt LLMs to diverse tasks without sacrificing performance or computational efficiency. While the current study focused on Chinese NLP tasks and the Qwen architecture, the underlying theory of task-adaptive low-rank representation is broadly applicable. Future research may explore the application of this method to multi-modal tasks involving text, image, and video, as well as its performance across different model families like Llama 3.

Summary updated

BibTeX
@inproceedings{zhang2025efficient,
  author = {Xiao Zhang and Kangsheng Wang and Tianyu Hu and Huimin Ma},
  title = {{Efficient Knowledge Transfer in Multi-Task Learning through Task-Adaptive Low-Rank Representation}},
  booktitle = {ICME},
  year = {2025},
  doi = {10.1109/icme59968.2025.11210217},
}
Figure