ThanoRA: Task Heterogeneity-Aware Multi-Task Low-Rank Adaptation

Jian Liang, Wenke Huang, Xianda Guo, Guancheng Wan, Bo Du, Mang Ye

TL;DR

ThanoRA is a novel multi-task Low-Rank Adaptation (LoRA) framework that achieves superior multi-task performance without adding any inference overhead or non-mergeable structures. By dynamically allocating low-rank dimensions based on layer-wise task complexity at initialization and enforcing subspace orthogonality during training, it eliminates task interference and even outperforms separate, task-specific fine-tuning.

What Problem Does This Paper Address?

While foundation models possess impressive general capabilities, real-world applications often require them to specialize in multiple downstream tasks simultaneously. Adapting models efficiently usually points to Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA. However, multi-task training within a standard shared LoRA framework often leads to task conflicts and performance degradation.

To solve this, current research generally splits into two directions:

  1. Model Merging: Training separate LoRA modules for each task and merging them post-hoc. While training-free, it lacks joint optimization, leading to suboptimal performance.
  2. Mixture-of-Experts (MoE) LoRA: Using architectural routers to dynamically direct inputs to task-specific LoRA "experts." This yields high performance but introduces significant inference latency and extra storage requirements because the parameters cannot be merged back into the base model.

ThanoRA aims to bridge this gap, delivering the high performance of multi-task training while retaining the clean, zero-overhead mergeability of standard LoRA.

Figure 1: Comparison and Motivation. (a) LoRA Merging acquires multi-task knowledge without training but remains suboptimal compared to multi-task training. (b) MoE-based LoRA mitigates task conflicts via routers but compromises parameter mergeability. (c) Our method enables efficient multi-task adaptation through mergeable LoRA with task-specific subspace modeling. (d) Tasks show heterogeneous complexity across layers, motivating the allocation of task-specific subspaces to better match their representational demands.

Methods

ThanoRA achieves its goals through two main components that tackle the lifecycle of multi-task training:

1. Heterogeneity-Aware Subspace Initialization (HASI)

Different tasks demand different types of representational capacity at different layers of a network. For example, a visual question-answering task might require complex cross-modal fusion in early layers, whereas a text reasoning task needs more capacity in deeper layers.

HASI quantifies this layer-wise complexity using instruction-previewed SVD. By passing a small batch of samples through the model, ThanoRA calculates the spectral entropy of the singular values for each task at each layer. It then dynamically allocates the total LoRA rank budget ($r_{\text{total}}$) proportionally to this entropy. Tasks with higher complexity at a specific layer get a larger slice of the low-rank subspace. A small portion of the rank is also reserved as a "cooperative subspace" to facilitate shared knowledge. These subspaces are then fused using a mathematically clean blockwise concatenation.

2. Subspace-Preserving Regularization (SPR)

During multi-task training, shared gradient updates can cause initially distinct task subspaces to align and overlap, a phenomenon the authors term subspace collapse.

To prevent this, SPR introduces an orthogonality constraint during training to keep task-specific subspaces diverse. Crucially, enforcing orthogonality on full weight updates is computationally expensive and leads to Out-of-Memory (OOM) errors. ThanoRA circumvents this by utilizing a decomposed formulation: it independently enforces orthogonality on the LoRA $A$ and $B$ factors. The authors prove that this factor-wise constraint is a mathematically sufficient condition for full matrix orthogonality, drastically reducing memory overhead.

Figure 2: Overview of ThanoRA. (a) Heterogeneity-Aware Subspace Initialization via entropy- guided rank allocation; and (b) Subspace-Preserving Regularization with orthogonality constraints, which together enable multi-ability acquisition across downstream tasks. Please refer to Sec. 3.2.

Datasets

The authors evaluated ThanoRA across diverse multi-task mixtures using 5,000 training samples per dataset:

  • Multimodal Benchmarks: IconQA (diagram understanding), ScienceQA (scientific multiple-choice), ChartQA (chart reasoning), and DocVQA (document text extraction).
  • Text-Only Benchmarks: CommonSenseQA (CSQA) and OpenBookQA (OBQA).

Key Insights and Ideas

  • Layer-Wise Complexity Matters: Task complexity isn't uniform across a model. Visual tasks dominate early layers, while textual reasoning tasks demand more parameters in later layers. Uniform rank allocation wastes capacity.
  • The Danger of Subspace Collapse: In multi-task settings, vanilla LoRA fails to benefit from larger ranks because the parameter spaces of different tasks collapse into each other. Explicit diversity preservation is required to fully utilize a larger rank budget.
  • Decomposed Orthogonality is a Lifesaver: You don't need to regularize the full product matrix ($\Delta W = BA$) to keep updates orthogonal. Regularizing $A$ and $B$ independently achieves the same goal while making the training process lightweight enough for real-world scaling.

Key Results

  • Surpassing Single-Task Fine-Tuning: ThanoRA consistently outperformed strong baselines (like DoRA and CorDA) and even beat separate, single-task fine-tuning, achieving up to 104.29% relative performance on text-only mixtures.
  • Zero Inference Overhead: Because ThanoRA introduces no extra architectural structures, the final weights merge seamlessly into the base model. Compared to MoE-based alternatives like HydraLoRA, ThanoRA reduced inference latency by 20–35% and boosted throughput by 24–56%.
  • High Memory Efficiency: Thanks to its decomposed regularization, ThanoRA's memory overhead during training was minimal (e.g., 751 MB for 4 tasks), whereas full-matrix orthogonalization methods (like PEGO) crashed due to OOM errors.

Limitations and Future Work

  • Data Preview Requirement: The framework relies on a small "preview" dataset (e.g., 500 samples per task) before training begins to compute the initial SVD and spectral entropy.
  • Static Allocation: The rank allocation is determined at initialization and remains static throughout training. A compelling future direction would be exploring dynamic rank reallocation that adapts online as training progresses.

Summary updated

BibTeX
@misc{liang2025thanora,
  author = {Jian Liang and Wenke Huang and Xianda Guo and Guancheng Wan and Bo Du and Mang Ye},
  title = {{ThanoRA: Task Heterogeneity-Aware Multi-Task Low-Rank Adaptation}},
  year = {2025},
  eprint = {2505.18640},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.18640},
}
Figure