TL;DR
When fine-tuning Large Language Models with a Mixture of Low-Rank Experts (MoE-LoRA), standard routers act like simple volume knobs—only scaling how much each expert contributes along a fixed spatial direction. RotMoLE adds a lightweight "steering wheel" (a rotational gate) inside the compressed low-rank space, dynamically rotating expert embeddings before combining them. This expands the model's solution space with negligible parameter overhead, boosting multi-task and multilingual performance—especially when experts are scarce.
What Problem Does This Paper Address?
Fine-tuning massive LLMs for complex, multi-domain scenarios usually combines two popular tricks: LoRA (injecting tiny, trainable low-rank matrices $A$ and $B$ into frozen weights) and Mixture-of-Experts (MoE) (using a router to selectively activate specialized sub-networks). Together, they form MoE-LoRA.
However, standard MoE routers have a geometric blind spot: they only output scalar weights. Geometrically, scaling two vectors and adding them together traps your output on a single line segment between them. The router decides how much an expert speaks, but cannot alter the direction of what it says.
Giving each expert a full $d \times d$ linear transformation matrix to steer its output in high-dimensional LLM space ($d > 4000$) would require a massive $d^3 n$ gating parameter budget, defeating the purpose of parameter-efficient fine-tuning. Even putting an unconstrained $r \times r$ transformation matrix inside the low-rank bottleneck ($r \ll d$) requires $dnr^2$ parameters—often larger than the experts themselves! The challenge is clear: how do we give experts spatial flexibility without blowing up the parameter budget?
Methods
The authors start from a neat geometric truth: any transformation from one non-zero vector to another happens entirely within the 2D plane spanned by those two vectors. Thus, it can be decomposed into a pure scaling operation and a pure 2D rotation.
RotMoLE keeps the standard Softmax router for scaling and top-$k$ expert selection, and introduces a parallel Rotation Gate applied right in the middle of each LoRA expert’s bottleneck ($B_i R_i A_i$):
- Generating the Angle: A linear layer with a Sigmoid activation maps the input $x$ to an independent rotation angle $\theta_i \in [-\pi, \pi]$ for each expert. Initializing gating weights to zero starts training at $\theta_i = 0$ (no rotation), where Sigmoid's steep gradient encourages fast early learning while its flat tails stabilize late-stage training.
- Rank $r = 2$: The low-rank space is already a 2D plane! RotMoLE directly constructs a textbook $2 \times 2$ rotation matrix $R_i$ from $\theta_i$, adding just $dn$ parameters.
- Rank $r > 2$: To rotate in higher dimensions, you must also define which 2D plane to rotate within. Since inputs routed to the same expert naturally form a semantic cluster, RotMoLE assigns each expert a single learnable $r$-dimensional vector $q_i$ representing its "cluster center." The 2D rotation plane is dynamically spanned by the projected input $A_i x$ and $q_i$ (orthogonalized via Gram-Schmidt). Rotating toward or away from this center costs just $(d + r)n$ extra parameters total.
Datasets
No new benchmarks are introduced; instead, the authors evaluate RotMoLE by jointly training on mixtures of existing datasets to simulate complex, resource-constrained scenarios (where tasks outnumber experts):
- Mixed Question Answering: CommonsenseQA (CSQA), OpenBookQA (OBQA), and SocialIQA (SIQA).
- Mixed Natural Language Understanding: Selected tasks from GLUE (SST-2, MRPC, and QNLI).
- Multilingual Title Generation: Five languages (English, Chinese, Spanish, French, German) from the MTG benchmark.
- Multilingual NLI: Five languages from XNLI, repurposed from cross-lingual transfer into a joint multilingual training setup.
Key Insights and Ideas
- Exploiting the Low-Rank Bottleneck: Rather than rotating huge $d$-dimensional outputs, rotating inside the $r$-dimensional LoRA bottleneck makes spatial transformations computationally cheap.
- One Expert, Multiple Hats: Probing the learned rotation angles reveals that as training progresses, a single shared expert learns distinct rotational angle distributions for different tasks. Rotation lets one expert specialize in multiple sub-tasks simultaneously.
- Built-in Overfitting Resistance: In multilingual generation, standard MoE-LoRA peaks early and degrades (router overfitting), whereas RotMoLE continues improving and maintains stable performance.
Key Results
Tested on Llama-3.2-3B and Qwen-2.5-3B backbones, RotMoLE consistently outperforms standard MoE-LoRA and recent routing variants:
- Mixed QA: Boosts joint accuracy by 1.34% to 10.13% (averaging ~5%) over MoE-LoRA across 8 configurations. Gains are sharpest when experts are scarce (e.g., a 10.03% relative boost on Llama-3.2-3B with just 2 rank-3 experts).
- Beating Routing Baselines: On Qwen-2.5-3B ($r=6, n=4, k=2$), RotMoLE reaches 45.82% average QA accuracy, outperforming MoCLE (34.57%), MoLA (35.66%), and AdaMoLE (41.42%).
- Multilingual & GLUE: Improves Multilingual Title Generation across all setups (e.g., lifting Rouge-L from 22.64 to 24.06 at $r=4, n=5, k=3$), raises XNLI average accuracy from 48.75% to 49.71%, and edges out baselines on mixed GLUE tasks (76.03% vs. 75.87%).
Limitations and Future Work
The authors highlight a fundamental trade-off between transformation freedom and efficiency:
- Because the true target output vector is unknown during inference, anchoring the 2D rotation plane using a static learnable vector $q_i$ restricts spatial freedom compared to an unconstrained transformation.
- Using simple linear layers and activations to predict $g$ and $\theta$ restricts the range of achievable transformations. While building more complex gating networks could unlock greater expressiveness, the authors leave this trade-off due to practical efficiency constraints. (Broader empirical limitations are deferred to Appendix H, which is not included in the main text).
Summary updated