TL;DR
Existing Mixture-of-LoRAs architectures suffer from "routing weight collapse," where the router's learned softmax weights degenerate to favor just one adapter, wasting the computation of the other $k-1$ active LoRAs. ReMix eliminates this issue by enforcing fixed, equal routing weights across all activated adapters and optimizes the router via Reinforcement Learning using an unbiased Leave-One-Out (RLOO) gradient estimator.
What Problem Does This Paper Address?
Mixture-of-LoRAs frameworks scale the capacity of large language models (LLMs) by routing layer inputs to a dynamic subset of $k$ low-rank adapters from a larger pool of $n$ LoRAs. Standard designs rely on a softmax router to assign continuous, learnable weights to each adapter so the system can be trained end-to-end via gradient descent.
However, the authors uncover a fundamental flaw: routing weight collapse. Both mathematically and empirically, learned softmax routing weights rapidly skew toward an extreme imbalance where a single LoRA receives nearly all the weight (an Effective Support Size close to 1). As a result, activating $k > 1$ adapters yields roughly the same expressive power as $k = 1$, squandering compute on the remaining $k-1$ adapters and stalling gradient updates to them.
Methods
ReMix (Reinforcement Routing for Mixture-of-LoRAs) redesigns the routing mechanism to guarantee that all activated adapters contribute equally:
- Constant Routing Weights: Instead of continuous learned weights, ReMix assigns a constant scalar $\omega$ (e.g., standard LoRA scaling $2/kr$ or rsLoRA scaling $2/\sqrt{kr}$) uniformly across all $k$ activated LoRAs, and $0$ to the rest. This mathematically enforces an Effective Support Size of exactly $k$.
- Router Training via RL & RLOO: Because constant weights render the model non-differentiable with respect to router parameters, the authors frame router optimization as reinforcement learning. The router predicts a categorical distribution $q$, acts as a policy, and treats the negative supervised fine-tuning (SFT) loss as the reward. To stably optimize the router, they draw $M$ adapter subsets sampled without replacement and compute gradients using an unbiased Reinforce Leave-One-Out (RLOO) baseline.
- Top-$k$ Inference Selection: While training relies on sampling without replacement, inference uses deterministic top-$k$ selection based on router probabilities. The authors prove that if the trained policy selects the optimal subset with probability $> 0.5$, top-$k$ selection is guaranteed to select the best subset.
Datasets
The authors evaluated ReMix using Llama 3 8B across three distinct capabilities:
- GSM8K: Mathematical multi-step reasoning (evaluated on test split).
- HumanEval: Code generation evaluated via Pass@1 (fine-tuned on CodeAlpaca as HumanEval lacks a training set).
- ARC-c (AI2 Reasoning Challenge - Challenge Set): Multi-hop knowledge recall and question answering.
No new benchmarks were introduced.
Key Insights and Ideas
- Theoretical Inevitability of Collapse: Under standard Gaussian weight initialization, the authors prove (Theorem 1) that softmax routers have a provably high probability of concentrating routing weight onto at most one or two adapters. Empirically, this collapse worsens as fine-tuning proceeds.
- Uniform Weighting Fixes Expressivity: Stripping the router of its ability to scale adapter magnitude forces true adapter collaboration. Because each activated adapter has equal weight, the model cannot simply ignore $k-1$ components.
- Testable Diversity: ReMix substantially outperforms a standard LoRA of equivalent combined rank ($k \times r$). If the router were repeatedly picking the same adapter subset, accuracy would match a rank-$kr$ LoRA; the clear margin proves dynamic specialization.
- Compute-Scalable Training: Because the router gradient relies on an RL estimator over $M$ selections, performance scales monotonically with training compute: increasing $M$ from 2 to 32 boosted GSM8K accuracy from 56.03% to 58.83%—a property deterministic routers cannot exploit.
Key Results
- Overall Benchmark Superiority: ReMix achieves an average accuracy of 60.77% across GSM8K, HumanEval, and ARC-c, outperforming the best weight modulation baseline (rsLoRA, 57.95%) and the strongest Mixture baseline (MixLoRA, 57.43%).
- Task Gains:
- GSM8K: ReMix reaches 65.66% accuracy (+3.19% over rsLoRA and HydraLoRA).
- HumanEval: ReMix attains 32.93% Pass@1 (+1.83% over $(\text{IA})^3$ and +4.88% over MixLoRA).
- ARC-c: ReMix scores 83.73% (+0.34% over DoRA).
- Parameter and Training Efficiency: ReMix delivers these gains while activating only 0.070B parameters (a 31% reduction compared to MixLoRA's 0.101B and 90% fewer than VB-LoRA's 0.675B). Under comparable wall-clock training budgets, ReMix required only ~10% more time than MixLoRA while improving accuracy relatively by 15.97%.
Limitations and Future Work
- Sampling Overhead during Training: Training requires sampling $M$ discrete selections per step, which introduces minor runtime overhead compared to single-pass standard backpropagation.
- Evaluation Scope: Experiments focused exclusively on Llama 3 8B across three NLP benchmarks; evaluating on larger parameter scales (e.g., 70B+) and non-language modalities remains unexplored.
- Hyperparameter Sensitivity of $k$: While performance scaled well up to $k=4$, determining the optimal $k$ and pool size $n$ across diverse domains still requires manual tuning.
Summary updated