CopRA: A Progressive LoRA Training Strategy

Zhan Zhuang, Xiequn Wang, Yulong Zhang, Wei Li, Ying Wei

TL;DR

Standard Low-Rank Adaptation (LoRA) struggles with linear mode connectivity (LMC), causing severe performance drops when merging independently trained adapters. CopRA (Cooperative LoRA) solves this by progressively increasing the probability of activating LoRA layers during training, encouraging adapters to discover shared low-loss basins. This strategy doubles as an approximation of Shapley value optimization from cooperative game theory, drastically improving adapter merging in federated and multi-task learning as well as pruning resilience—all without additional training cost.

What Problem Does This Paper Address?

While LoRA is a standard method for fine-tuning foundation models efficiently, standard gradient-based optimization traps adapters in local minima close to their initializations. Because these separate local minima do not share a flat loss valley, they lack Linear Mode Connectivity (LMC): linearly interpolating (or averaging) the weights of two independently trained models causes an accuracy collapse.

This failure makes simple weight-space operations—such as model merging, federated adapter aggregation, and multi-task fusion—perform poorly unless complex post-hoc alignment or expensive stacking techniques are used. Standard LoRA adapters also remain brittle when subjected to structured or unstructured post-training pruning.

Methods

The authors propose CopRA, which introduces a progressive adapter-dropping schedule during fine-tuning:

  1. Progressive Layer Dropping: For a total of $T$ training steps, each LoRA layer $l$ is activated with probability $\delta_l \sim \text{Bernoulli}(p)$, where $p = \min\{\frac{4t}{3T}, 1\}$.
  2. Exploration Stage ($t < \frac{3}{4}T$): The retention probability $p$ increases linearly from $0$ to $1$. In early steps, only small random subsets of layers are optimized, restricting solutions to simpler subspaces that naturally preserve layer-wise LMC.
  3. Full-Model Fine-Tuning ($t \ge \frac{3}{4}T$): $p$ is locked at $1$, training all LoRA layers together like standard LoRA. Parameter inertia keeps the trajectory anchored to the connected basin discovered early on.
  4. Cooperative Game Interpretation: The training objective mirrors the multilinear extension used to approximate Shapley values. By randomly sampling subsets of active layers, CopRA optimizes each LoRA module's expected marginal contribution across arbitrary layer coalitions.
  5. LoRA Align (LA): An SVD-based alignment technique that finds an optimal transformation matrix $P$ to minimize the gap between direct weight fusion and mixture stacking.

Datasets

The authors evaluated CopRA on vision and language benchmarks:

  • Vision Benchmark: CLIP-LoRA with a ViT-B/16 backbone across 11 datasets (ImageNet, SUN397, FGVC Aircraft, EuroSAT, Stanford Cars, Food101, Oxford Pets, Oxford Flowers, Caltech101, DTD, and UCF101).
  • Federated & Multi-Task Learning: Detailed evaluation on DTD (texture classification) and UCF101 (action recognition).
  • Language Domain: MTL15, a benchmark consisting of 15 text classification tasks.

No new datasets were introduced.

Key Insights and Ideas

  • LMC through Parameter Inertia: Layer-wise barriers in neural networks are typically minimal. By training only a few adapters early and gradually enabling the rest, CopRA anchors the optimization trajectory within a shared basin, preventing divergent solutions between seeds.
  • LMC Without Weight Clumping: t-SNE visualizations reveal that CopRA adapters from different random seeds do not simply collapse to identical weights. Instead, they occupy different points within the same functionally continuous basin.
  • Fair Marginal Contributions (Shapley Value): Dropping layers during training discourages co-adaptation and forces each adapter layer to independently carry functional utility, making the network inherently robust to layer or weight pruning.
  • Enhanced Optimization Stability: CopRA tolerates significantly higher learning rates (up to 5e-3) where standard LoRA diverges or crashes.

Key Results

  • Smooth Mode Interpolation: When merging two models trained with different seeds at equal weighting ($\alpha = 0.5$), standard LoRA exhibits sharp accuracy drops across all 11 CLIP datasets. CopRA preserves performance smoothly along the entire interpolation path.
  • Federated Learning (FL): In a 5-client FL setup, merging client LoRA models yielded:
  • DTD: CopRA achieved 64.07% vs. LoRA’s 54.37% (nearly a 10% gain).
  • UCF101: CopRA achieved 79.25% vs. LoRA’s 73.01%.
  • Multi-Task Learning (MTL): Merging models trained on distinct datasets improved accuracy from 58.58% to 64.88% on DTD and 78.77% to 81.42% on UCF101.
  • Pruning Robustness:
  • In structured pruning (e.g., dropping every other adapter layer or removing high/low layers), CopRA retains substantial accuracy where standard LoRA collapses.
  • In unstructured weight pruning, CopRA gracefully maintains performance up to 50% sparsity.

Limitations and Future Work

  • Early Underfitting with Low Learning Rates: When training budgets are extremely small (e.g., 100 iterations) and learning rates are low (5e-5), the low initial activation probability $p$ can lead to underfitting.
  • Overhead of Explicit Alignment (LA): Although LoRA Align (LA) provides additional accuracy boosts, its backpropagation overhead prevented its use in broader experiments.
  • Scale and Scope: The primary validation focuses on CLIP vision-language backbones and text classification; the authors plan to formally extend and theoretically validate CopRA for large language model (LLM) instruction tuning in future work.

Summary updated

BibTeX
@inproceedings{zhuang2024copra,
  author = {Zhan Zhuang and Xiequn Wang and Yulong Zhang and Wei Li and Yu Zhang and Ying Wei},
  title = {{CopRA: A Progressive LoRA Training Strategy}},
  booktitle = {UniReps @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=gPYbL5fDGZ},
}
Figure