NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Framework to Implement 1+N Multi-task Fine-tuning Pattern in LLMs Using the CGC-LORA Algorithm

Chao Song, Zhihao Ye, Qiqiang Lin, Qiuying Peng, Jun WangarXiv 2024

Abstract With the productive evolution of large language models (LLMs) in the field of natural language processing (NLP), significant effort has been directed toward effectively fine-tuning pre-trained LLMs for diverse tasks within specific domains. Current practices typically rely on either training multiple independent models—which is computationally expensive—or training a single integrated model, which often suffers from the "seesawing issue" where performance gains in one task lead to degradation in another. To address these challenges, we propose a unified framework implementing a "1 + N" multi-task fine-tuning pattern using a novel Customized Gate Control (CGC) Low-rank Adaptation (LoRA) algorithm. By combining the parameter efficiency of LoRA with the multi-task capabilities of CGC, our framework explicitly separates shared and task-specific experts. Experimental results on two public datasets, PromptCBLUE and Firefly, demonstrate that CGC-LoRA achieves superior performance compared to existing benchmarks.

Introduction

Fine-tuning Large Language Models (LLMs) for specialized domains—such as medical diagnosis, code generation, or sentiment analysis—usually presents a trade-off between resource efficiency and task performance. Training independent models for every task is prohibitively expensive in terms of compute and storage. Conversely, traditional Multi-task Learning (MTL) often leads to the "seesawing issue," where shared parameters become over-taxed, causing the model to lose proficiency in one task while adapting to another.

Researchers from the OPPO Research Institute have introduced CGC-LoRA to bridge this gap. This framework implements a "1+N" pattern: one central LLM base combined with $N$ sets of specialized adapter modules. This approach allows for efficient parameter sharing without the performance trade-offs typical of standard MTL.

Methodology

The core of the framework is the CGC-LoRA algorithm, which adapts the standard Transformer architecture to handle multiple task clusters effectively. The process begins with task clustering to group similar objectives, followed by the application of specialized LoRA modules.

Overview of the 1+N multi-task fine-tuning framework

Expert Decomposition and Gating

Unlike standard LoRA, which uses a single set of low-rank matrices, CGC-LoRA decomposes the updates into two distinct types of "experts":

  1. Task-common experts: These capture knowledge and patterns applicable across all tasks within a specific cluster.
  2. Task-specific experts: These are dedicated to extracting and maintaining information unique to a single task, preventing cross-task interference.

To manage these experts, we utilize a Task-Motivated Gate (TMG). Unlike traditional Mixture-of-Experts (MoE) models where gating is determined by input features, the TMG is driven by the Task ID. This design choice ensures that for any given task, the specialized parameters remain static during inference. This "static inference" capability allows experts to be pre-combined, avoiding the high latency often associated with dynamic MoE models.

Detailed architecture of the CGC-LoRA scheme showing the separation of task-common and task-specific experts

Experimental Setup and Results

The framework was rigorously evaluated on two major Chinese multi-task benchmarks:

  • PromptCBLUE: A medical-domain benchmark including entity recognition, medical text classification, and report generation.
  • Firefly: A general-purpose multi-task dataset covering summarization, keyword recognition, and sentiment analysis.

CGC-LoRA consistently outperformed both standard LoRA and other multi-task variants like MOE-LoRA. On PromptCBLUE, CGC-LoRA achieved an average score of 0.6240, surpassing standard LoRA (0.6155). On the Firefly dataset, it reached 0.6659, a significant improvement over standard LoRA (0.6569) and MOE-LoRA (0.6501).

Ablation studies confirmed that the explicit isolation of common and specific experts is critical. Removing either the CGC structure or the gating mechanism led to immediate performance drops, validating the "1+N" architectural philosophy.

Conclusion

CGC-LoRA provides a practical and high-performance solution for multi-task LLM adaptation. By isolating task-specific knowledge into dedicated "lanes," it effectively decouples task conflicts and solves the seesawing problem. While current implementations rely on manual or affinity-based task clustering, future work will focus on automating this process to scale the framework to thousands of diverse tasks across multiple languages.

Summary updated

BibTeX
@misc{song2024framework,
  author = {Chao Song and Zhihao Ye and Qiqiang Lin and Qiuying Peng and Jun Wang},
  title = {{A Framework to Implement 1+N Multi-task Fine-tuning Pattern in LLMs Using the CGC-LORA Algorithm}},
  year = {2024},
  eprint = {2402.01684},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.01684},
}
Figure