Label-Free Cross-Task LoRA Merging with Null-Space Compression

Wonyoung Lee, Wooseong Jeong, Kuk-Jin Yoon

TL;DR

This paper introduces Null-Space Compression (NSC) Merging, a novel method for combining independently fine-tuned LoRA adapters without the need for labeled data or expensive multi-task retraining. By leveraging a key geometric insight—that LoRA training systematically compresses the null space of its down-projection matrix—NSC provides a task-agnostic, highly efficient optimization signal. It achieves state-of-the-art performance across diverse, heterogeneous mixtures of classification, regression, and generative tasks spanning vision and language foundation models.

What Problem Does This Paper Address?

Fine-tuning large foundation models via Low-Rank Adaptation (LoRA) has become the industry standard for adapting models to downstream tasks. However, deploying a separate model or adapter for every single task is inefficient. While model merging aims to combine these independent adapters into a single multi-task model without retraining, existing approaches hit a wall in two major scenarios:

  1. Task Heterogeneity: Current gradient-based merging methods (like AdaMerging) rely on minimizing output entropy. This works well if all tasks are classification-based, but completely fails for regression tasks (e.g., depth estimation) where entropy is ill-defined.
  2. Generative Scalability: For Large Language Models (LLMs) and Vision-Language Models (VLMs), computing entropy at every generated token becomes computationally prohibitive as sequence lengths grow.

The authors tackle this gap by proposing an input-oriented, output-agnostic merging signal derived entirely from the internal geometry of the LoRA layers.

Methods

In a standard LoRA layer, the weight update is decomposed into two low-rank matrices: $\Delta W = BA$, where $A$ acts as a down-projection matrix. The authors define the null-space ratio as the proportion of input activation discarded by $A$.

NSC Merging uses this null-space ratio as a label-free surrogate loss. The core algorithm proceeds as follows:

  • Null-Space Optimization: NSC optimizes layer-wise merging coefficients ($\lambda$) by minimizing the average null-space ratio across an unlabeled validation set.
  • Fast NSC (Gram-Inverse Caching): To avoid explicitly constructing massive projection matrices, the authors mathematically rewrite the ratio to utilize $(A_k A_k^\top)^{-1}$. Because the rank of LoRA is small (e.g., $r=16$), this is a tiny square matrix that can be pre-computed and cached, drastically reducing memory and compute overhead.
  • Target Layer Selection: Instead of calculating the ratio across all layers, NSC achieves an optimal efficiency-performance trade-off by optimizing based only on the activations of the last quarter of the transformer blocks.

Datasets

The authors rigorously evaluate NSC across three distinct domains:

  • Heterogeneous Vision Tasks: Evaluated on NYUD-v2 (4 tasks: depth estimation, semantic segmentation, surface normal prediction, edge detection), PASCAL-Context (5 tasks including saliency and human parts estimation), and Taskonomy (11 dense prediction tasks).
  • Large Language Models: Tested using LLaMA-3-8B on six Natural Language Inference (NLI) benchmarks: MNLI, QNLI, SNLI, RTE, SICK, and SciTail.
  • Vision-Language Models: Evaluated using LLaVA-1.5-7B across six multimodal benchmarks: VizWiz, IconQA, ChartQA, DocVQA, COCO, and Flickr30k.

Key Insights and Ideas

  • The Geometry of Learning: The paper's foundational "aha moment" is that as a LoRA adapter learns a task, its down-projection matrix $A$ systematically alters its alignment to discard less of the task-relevant input features. Consequently, the null-space ratio consistently shrinks as task performance improves.
Figure 1. Visualization of validation loss, task performance, and the null-space ratio for an output projection layer during LoRA fine-tuning on (a) image classification and (b) depth estimation.
  • Performance Correlation: This null-space compression holds true across both classification and regression tasks, and the inverse correlation between the null-space ratio and final accuracy persists even after models are merged.
Figure 2. Classification accuracy versus the null-space ratio. Ac- curacy is averaged within quartiles of the ratio across tasks. Left shows fine-tuned experts, right shows the merged model.
  • Input-Oriented Efficiency: Because NSC evaluates the optimization signal at the input stage of the adapter rather than the output logits, its computational cost is entirely independent of text generation sequence lengths.

Key Results

  • Vision Parity & Balance: On the 20 heterogeneous vision tasks, gradient-free baselines frequently collapsed on dense prediction tasks. NSC achieved a state-of-the-art average normalized score of 92.0%, maintaining balanced performance across both classification and regression splits.
Table 1. Merging results on NYUD-v2, PASCAL-Context, and Taskonomy using ViT-B. The fine-tuned rows report per-task absolute performance. For each merging baseline, we report the normalized performance (%) relative to the corresponding fine-tuned score. The rightmost Avg column is the mean of the normalized scores across tasks.
  • LLM & VLM Scalability: NSC achieved the highest average normalized accuracy (92.3%) on the NLI benchmarks for LLaMA-3. On LLaVA-1.5, NSC matched or exceeded the performance of full-token entropy methods while requiring ~7x fewer gradient updates, matching the wall-clock speed of the fastest single-token baselines.
  • Generalization: In seen-to-unseen task protocols, NSC demonstrated superior robustness, leading with an overall average of 91.1% across all splits.

Limitations and Future Work

While NSC provides a powerful alternative to entropy-based merging, the authors note a few boundaries:

  • Data Dependency: Although label-free, the method still requires a small set of unlabeled validation data from the target domains to drive the feature activations.
  • Architecture Specificity: The mathematical formulation relies inherently on the low-rank bottleneck structure of LoRA ($\Delta W = BA$), meaning it cannot be directly applied to full-parameter model merges without adaptation.

Future work could explore extending this geometric null-space framework to other parameter-efficient architectures or completely data-free merging scenarios.

Summary updated

BibTeX
@inproceedings{lee2026label,
  author = {Wonyoung Lee and Wooseong Jeong and Kuk-Jin Yoon},
  title = {{Label-Free Cross-Task LoRA Merging with Null-Space Compression}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=VUPPKlzMN4},
}
Figure