Abstract
Low-rank adapters (LoRAs) are a parameter-efficient finetuning technique that injects trainable low-rank matrices into pretrained models to adapt them to new tasks. Mixture-of-LoRAs (MoLoRA) models expand neural networks efficiently by routing each layer input to a small subset of specialized LoRAs. However, existing MoLoRA routers often suffer from "routing weight collapse," where a single adapter dominates the routing weights, limiting the model's expressive power. We propose Reinforcement Routing for Mixture-of-LoRAs (ReMix), which uses non-learnable routing weights to ensure all active LoRAs are equally effective. Since these weights are non-differentiable, we employ the Reinforce Leave-One-Out (RLOO) technique to estimate gradients. Extensive experiments show that ReMix significantly outperforms state-of-the-art parameter-efficient finetuning methods.
The Problem: Routing Weight Collapse
Low-Rank Adaptation (LoRA) is the standard for efficient LLM fine-tuning. To push performance, researchers developed Mixture-of-LoRAs (MoLoRA), which uses a "router" to select a subset ($k$) of specialized adapters for every input.
The authors discovered that existing MoLoRA systems suffer from "routing weight collapse." Even when instructed to use multiple adapters, the router typically assigns a weight of ~0.99 to one and nearly zero to others. This "one-man show" means the model pays the computational cost of multiple adapters but only gains the expressive power of one. The paper provides a formal mathematical proof (Theorem 1) showing that standard softmax-based routers are theoretically predisposed to this collapse, where the "Effective Support Size" of adapters quickly drops to 1.
Methods: Reinforcement Routing (ReMix)
ReMix fundamentally rethinks router design to ensure diverse adapter utilization:
- Non-Learnable Weights: Instead of learning continuous weights that lead to collapse, ReMix assigns a constant, equal weight to all $k$ selected adapters. This guarantees that every activated LoRA contributes equally to the final output.
- Reinforcement Learning (RLOO): Constant weights are not differentiable, preventing standard backpropagation. ReMix treats routing as a Reinforcement Learning problem, using the Reinforce Leave-One-Out (RLOO) gradient estimator. The negative training loss acts as the "reward," and the router is the "policy" optimized to select the best adapter combinations.
- Top-k Inference: While the model samples combinations during training to explore the space, it uses a deterministic "top-$k$" selection during inference for reliability.
- Compute Scaling: ReMix can improve performance by increasing training compute—specifically, by sampling more paths ($M$) per step to refine the gradient estimate, a benefit not shared by traditional deterministic routers.
Key Results
ReMix was evaluated using Llama 3 8B across three benchmarks: GSM8K (math), HumanEval (code), and ARC-c (general knowledge). It consistently outperformed all baseline PEFT methods, including LoRA, DoRA, and existing MoLoRA variants like MixLoRA and HydraLoRA.
- Performance Gains: ReMix achieved an average accuracy improvement of 2.82% over the strongest competing approach. On the math-heavy GSM8K, it reached 65.66% accuracy.
- Efficiency: ReMix achieves state-of-the-art results with a very small parameter footprint. For example, on ARC-c, it reached top accuracy using only 0.016B activated parameters.
- Scaling Laws: Increasing the number of sampled selections ($M$) during training from 2 to 32 led to steady accuracy gains, showing the RL-based router effectively utilizes extra training compute.
Conclusion
ReMix addresses the "one-man show" problem in Mixture-of-LoRAs by enforcing equal weights and using reinforcement learning for training. While it introduces a minor training overhead (approx. 10%), it significantly enhances model capacity and performance. Future research may investigate applying this reinforcement routing approach to standard Mixture-of-Experts (MoE) layers to prevent expert bottlenecking.
Summary updated