---
title: Mixture-of-LoRA (MoL)
url: https://www.emergentmind.com/topics/mixture-of-lora-mol
type: topic
---

# Mixture-of-LoRA (MoL)

Mixture-of-LoRA (MoL), also called Mixture-of-LoRA Experts (MoLE), denotes a family of parameter-efficient adaptation methods that combine multiple Low-Rank Adaptation (LoRA) modules through conditional selection, weighting, merging, or allocation. A frozen pretrained model supplies shared computation, while several low-rank updates provide task-, domain-, token-, horizon-, speaker-, or key-dependent modifications. The central objective is to increase adaptation capacity and mitigate interference among heterogeneous requirements without replicating complete expert networks or updating the full backbone. Depending on the method, routing may be token-wise, instance-wise, layer-wise, rank-wise, projection-level, label-based, or deterministic from an external key. Representative systems include LLaVA-MoLE, MixLoRA, MoLE, SAML, MAS-LoRA, SMoRA, DynMoLE, RAMoLE, LoRA-Mixer, CoMoL, and MoL for recursive transformers.

## 1. Conceptual foundations and terminology

For a frozen weight matrix $W_0$, standard LoRA introduces a low-rank residual

$$
\Delta W = BA,
$$

where $A\in\mathbb{R}^{r\times d_{\mathrm{in}}}$, $B\in\mathbb{R}^{d_{\mathrm{out}}\times r}$, and $r\ll\min(d_{\mathrm{in}},d_{\mathrm{out}})$. The adapted transformation is

$$
h = W_0x+\alpha BAx,
$$

with $\alpha$ controlling the update scale. Standard LoRA uses one fixed update for every input processed by the adapted module. Its parameter efficiency derives from replacing a dense $d_{\mathrm{out}}\times d_{\mathrm{in}}$ update with $r(d_{\mathrm{in}}+d_{\mathrm{out}})$ trainable parameters.

MoL generalizes this construction by maintaining multiple LoRA updates,

$$
\Delta W_i=B_iA_i,\qquad i=1,\ldots,N,
$$

and producing an input-dependent effective update. A generic formulation is

$$
h=W_0x+\sum_{i=1}^{N}g_i(x)B_iA_ix,
$$

where $g_i(x)$ are routing weights. The base model remains shared and frozen in the principal PEFT formulations, while the LoRA factors and routing parameters are trainable.

The term *expert* has several meanings in the literature:

- **Complete LoRA expert**: an independently parameterized pair $(A_i,B_i)$, as in LLaVA-MoLE, MixLoRA, MAS-LoRA, and many MoLE systems.
- **Rank-one expert**: one outer-product component $B_{:,j}A_{j,:}$ of a single LoRA factorization, as in SMoRA.
- **Core expert**: a compact $r\times r$ matrix used with shared high-dimensional LoRA subspaces, as in CoMoL.
- **Pretrained-model expert**: an existing dense MoE expert to which LoRA capacity is allocated, as in DR-LoRA.
- **Marker expert**: a LoRA adapter whose activation encodes a watermark key rather than a task capability, as in MOLM.

MoL should therefore not be equated with a single routing architecture. Some systems use sparse top-1 or top-$k$ dispatch, others use dense soft mixtures, and some use no learned router at all.

## 2. Data conflict, conditional adaptation, and expert granularity

The principal motivation for MoL is interference among heterogeneous objectives. In conventional multi-task LoRA, gradients from distinct domains accumulate in the same matrices $A$ and $B$. If the required transformations are incompatible, a shared update must compromise among them. LLaVA-MoLE studied general vision-language instruction following, document understanding, and biomedicine, reporting that a plain-LoRA eHub score of $306.3$ on general data decreased to $298.8$ after document data were added and to $299.3$ after biomedical data were added [2401.16160].

MoL introduces conditional capacity:

$$
\Delta W(x)=\Delta W_{k(x)}
$$

or, for a soft mixture,

$$
\Delta W(x)=\sum_i g_i(x)\Delta W_i.
$$

Different inputs can consequently activate different adaptation directions. The frozen base transformation retains common behavior, while the conditional residuals provide specialization. Empirical results across multimodal instruction tuning, language understanding, code generation, speech recognition, forecasting, and watermarking support the narrower conclusion that conditional low-rank updates can reduce some forms of interference. They do not establish that each expert becomes a clean, globally interpretable domain module.

Expert granularity is a major design variable. Module-level MoLE partitions adaptation into comparatively large LoRA blocks. SMoRA instead observes that a multi-LoRA system can be rewritten as a single LoRA with block-diagonal rank gating. If expert $i$ has rank $r_i$ and total rank is $R=\sum_i r_i$, concatenated factors $\widetilde B$ and $\widetilde A$ yield

$$
\widetilde B\,G(x)\,\widetilde A
=
\sum_i g_i(x)B_iA_i.
$$

SMoRA refines this partition to individual rank-one components:

$$
y=W_0x+B\,G(x)\,Ax,
$$

where $G(x)$ activates $k$ of $r$ ranks. Its principal configuration uses total rank $r=64$ and activates $k=8$ ranks per token. On FLAN-v2, SMoRA-64-8 achieved averages of $58.8$ for Llama-2-7B and $61.1$ for Llama-2-13B, exceeding dense LoRA-64 scores of $57.8$ and $60.3$, respectively [2501.15103].

The granularity trade-off is not monotonic. Coarse modules provide efficient dispatch but restrict combinations; rank-wise routing enables finer selective sharing but introduces fragmented computation and router overhead. In MoL for recursive transformers, token-conditional FFN modulation restores functional diversity lost through recursive parameter sharing while retaining the shared backbone [2512.12880]. In time-series forecasting, segment-specific mixtures provide horizon-dependent adaptation without requiring an independent LoRA for every forecast step [2505.17872].

## 3. Routing mechanisms

### Token-wise sparse routing

LLaVA-MoLE attaches multiple LoRA experts to MLP/FFN linear layers and uses a top-1 router:

$$
k=\arg\max_j W_j^g x.
$$

The selected residual is added to the frozen FFN output:

$$
f'_{\mathrm{FFN}}(x)=f_{\mathrm{FFN}}(x)+\frac{\alpha}{r}B_kA_kx.
$$

The router is shared across the FFN’s linear sublayers, while self-attention uses ordinary LoRA. Tokens are grouped by selected expert, processed using the corresponding low-rank matrices, and scattered back to their original positions. The method uses a load-balancing objective with coefficient $10^{-2}$ and a capacity of 4096 tokens, so tokens are not dropped [2401.16160].

MixLoRA uses top-$k$ routing over eight FFN LoRA experts, with the principal configuration selecting two experts per token. Selected probabilities are normalized and the corresponding expert outputs are combined. Independent ordinary LoRA modules are also applied to attention projections $q,k,v,o$ [2404.15159].

DynMoLE replaces fixed top-$k$ routing with entropy-dependent selection. It computes router probabilities, evaluates Tsallis entropy

$$
S_q(p)=\frac{1-\sum_i p_i^q}{q-1},
$$

and applies soft routing to high-entropy tokens and Top-$p$/Top-$k$ routing to low-entropy tokens. Its reported configuration uses $q=1.1$, entropy threshold $0.9$, $p=0.75$, and minimum $k=2$. On Llama-2-7B commonsense benchmarks, DynMoLE reached $77.6\%$ average accuracy versus $75.3\%$ for MoLA and $70.1\%$ for LoRA [2504.00661].

LD-MoLE replaces nondifferentiable Top-$K$ with Sparsegen. A learned token-dependent scalar $\lambda_t$ controls the projection

$$
p_{t,i}
=
\left[
\frac{u_{t,i}-\tau_t}{1-\lambda_t}
\right]_+,
$$

subject to $\sum_i p_{t,i}=1$. The number of active experts is therefore determined by both the logits and $\lambda_t$, rather than fixed globally. Sparsegen guarantees at least one active expert and provides a closed-form, piecewise-differentiable routing rule [2509.25684].

### Dense and layer- or instance-conditioned mixtures

MoLE composes independently trained LoRAs using hierarchical gates. Expert outputs are computed at network, block, layer, or matrix granularity and combined by temperature-controlled softmax weights:

$$
\widetilde E_\Omega(x)=\sum_i g_i(x)E_{\Delta\theta_i}(x).
$$

The base block output remains an explicit branch. Unlike token-wise sparse MoE, the demonstrated mechanism is primarily input-conditioned and layer-specific rather than a separate gate for every token [2404.13628].

RAMoLE introduces a retrieve-then-compose architecture for dynamically changing adapter pools. `LoraRetriever` uses representative examples of each uploaded LoRA to construct an embedding and retrieves the top-$k$ candidates by cosine similarity. A RouterLoRA then computes soft attention weights over the retrieved candidates. The system therefore combines hard pool-level retrieval with soft candidate-level routing and is designed to accommodate newly uploaded LoRAs without retraining an expert-specific routing embedding [2406.16989].

CoMoL performs routing in the LoRA latent space. It factorizes each expert as

$$
\Delta W_i=U_BM_iV_A^\top,
$$

where $U_B$ and $V_A^\top$ are shared and $M_i\in\mathbb{R}^{r\times r}$ is expert-specific. The token is projected to $\widehat x=V_A^\top x$, routed using an $N\times r$ router, and the selected core matrices are merged before one shared high-dimensional transformation. The resulting parameter complexity is

$$
\mathcal{O}\left((m+n)r+Nr^2\right),
$$

rather than $\mathcal{O}(N(m+n)r)$ [2603.00573].

### Label-based and deterministic routing

MAS-LoRA trains one expert per accent using hard accent labels. At inference, an unknown accent uses a uniform mixture, while a known accent receives increased but non-exclusive weight. No learned router improved the reported results. On L2-ARCTIC, MAS-LoRA with accent-specific encoder experts and ordinary decoder LoRA achieved WER $11.77$, compared with $12.32$ for ordinary LoRA and $12.21$ for full fine-tuning [2505.20006].

MOLM uses deterministic binary-key routing for generative watermarking. An $M$-bit key is divided into chunks, each selecting one of $P$ adapters in one of $L$ routed blocks:

$$
M=L\log_2P.
$$

The route remains fixed throughout diffusion denoising. In the default Stable Diffusion configuration, $L=14$, $P=4$, and the key size is 28 bits. This is key-conditioned marker composition rather than data-dependent task routing [2510.00293].

## 4. Parameterization, computation, and systems design

MoL increases stored adapter parameters even when activated computation remains sparse. A standard LoRA module for one linear layer contains approximately

$$
r(d_i+d_o)
$$

parameters. With $N$ experts, this becomes approximately

$$
Nr(d_i+d_o),
$$

plus router parameters. Thus, claims that MoL has the same parameter count as LoRA generally concern activated computation or the frozen backbone, not total stored trainable adapter parameters.

Top-1 and top-$k$ methods can keep expert-specific computation near ordinary LoRA because only selected low-rank paths are evaluated. LLaVA-MoLE reported broadly similar scores for dense and sparse two-expert variants, but dense two-expert routing used 83% of GPU memory versus 61% for sparse MoLE; dense three-expert routing ran out of memory on a long-context three-dataset mixture [2401.16160]. MixLoRA similarly combines sparse FFN experts with independent attention LoRA and reports that m-LoRA reduces GPU memory consumption by 40% and token computation latency by 30% in its high-throughput implementation [2404.15159].

Sparse execution is not automatically faster. Routing, token gathering, scattering, kernel launches, and load imbalance can offset theoretical FLOP reductions. SMoRA therefore uses an indexed sparse matrix multiplication kernel, `indexed_matmul`, implemented with TVM/CUDA. RAMoLE uses batch-level unions of retrieved adapters and a mapping matrix to execute heterogeneous requests jointly. CoMoL avoids repeated high-dimensional expert transformations by merging compact core matrices before projection. These systems illustrate that routing algorithms and execution kernels must be co-designed.

SAML uses a different efficiency strategy. It forms weighted aggregate LoRA matrices,

$$
\widetilde B=\sum_iG_i(x)B_i,
\qquad
\widetilde A=\sum_iG_i(x)A_i,
$$

and computes

$$
E_{\mathrm{mix}}(x)=\frac{\alpha}{r}\widetilde B\widetilde A x.
$$

This avoids separate matrix multiplications for every expert, although it uses soft routing and does not establish the same sparse-computation behavior as top-$k$ MoL [2406.19706].

LoRA-Mixer routes at projection matrices rather than replacing complete FFN or attention blocks. It supports Transformer projections and Mamba/SSM projections, including input, output, $dt$, and $x$ projections. Its training uses soft routing, while inference uses Top-3 routing. The method also supports frozen external LoRAs and introduces a Specialization Balance Loss that combines utilization consistency with entropy-based selectivity [2507.00029].

## 5. Applications and empirical evidence

MoL has been evaluated in multiple settings with different definitions of expert specialization.

**Multimodal instruction tuning**: LLaVA-MoLE mitigates conflicts among general, document, and biomedical image-text instructions. On general-plus-document data, its two-expert configuration achieved $307.3$ eHub, $41.36$ ChartQA, and $30.34$ DocVQA, compared with $298.8$ eHub, $36.72$ ChartQA, and $28.26$ DocVQA for plain LoRA. MixLoRA reported consistent improvements over conventional LoRA across MME and additional unseen multimodal datasets, including an approximately $1.7\%$ MME improvement for $r=2,E=16$ relative to LoRA with rank 32 [2401.16160; 2402.15896].

**Multi-task language modeling and reasoning**: MixLoRA with eight experts and top-2 routing achieved average accuracies of $75.1$ on Llama-2-7B, $80.1$ on Llama-2-13B, and $84.0$ on Mistral-7B in the reported multi-task benchmarks. DynMoLE, LD-MoLE, CoMoL, and LoRA-Mixer respectively focus on entropy-adaptive routing, differentiable variable-support routing, core-space merging, and projection-level routing. CoMoL achieved $84.48$ average accuracy on Qwen3-8B mathematical reasoning with $25.16$ million trainable parameters, compared with $82.78$ for LoRA with $24.77$ million parameters [2404.15159; 2509.25684; 2603.00573].

**Dynamic adapter libraries**: RAMoLE addresses Uploadable Machine Learning, where the adapter pool changes after router training. On Llama-2-7B, it achieved aggregate scores of $51.8$ in IID evaluation and $47.7$ in OOD evaluation, compared with $41.6$ and $40.2$ for parameter fusion. Its distinguishing property is that new adapters can be indexed using representative examples rather than requiring fixed expert IDs [2406.16989].

**Speech recognition**: SAML combines speaker-adaptive LoRA experts with NF4 quantization. After approximately sevenfold model-size reduction, SAML-NF4 achieved WER $7.10$ for Whisper on LibriSpeech-SA versus $10.02$ for the original FP32 model, and WER $8.56$ for the Conformer system versus $12.43$ for its original FP32 model. MAS-LoRA uses a different label-routed accent formulation and reports improved unknown-accent WER and reduced catastrophic forgetting [2406.19706; 2505.20006].

**Time-series forecasting**: MoLA uses shared LoRA experts with segment-specific mixing vectors. One-step pretraining avoids the multi-output decoder’s expressiveness bottleneck, and horizon segments receive distinct mixtures. On nine forecasting datasets, MoLA with iTransformer achieved the best MSE in 33 of 45 reported cases and the best MAE in 36 of 45 cases [2505.17872].

**Recursive transformers**: MoL modifies shared FFNs in ModernALBERT with token-level top-2 mixtures of LoRA-modulated FFN outputs. ModernALBERT models between 50M and 120M parameters achieved GLUE averages from $84.95$ to $88.72$, and MoL exceeded MoA in a controlled comparison, obtaining $77.24$ versus $76.87$ [2512.12880].

**Generative watermarking**: MOLM uses LoRA routes as distributed marker codes. On Stable Diffusion, its default 28-bit configuration reported clean bit accuracy $0.98$, FID $27.7$, and robustness to crop, rotation, resizing, brightness, and JPEG distortions. Its purpose is not task adaptation but key-dependent attribution and verification [2510.00293].

## 6. Limitations, unresolved issues, and scope

MoL methods share several unresolved technical issues.

**Routing semantics are heterogeneous**: token-wise top-$k$ routing, sequence-level routing, instance retrieval, accent labels, horizon segments, and binary keys are not interchangeable. A result for one routing granularity does not establish equivalent behavior for another.

**Stored and activated costs differ**: multiple experts increase adapter storage, optimizer state, and often activation memory. Sparse routing can reduce expert-specific computation but may add dispatch overhead. Dense mixtures may avoid irregular kernels while evaluating all experts. Several papers provide qualitative or partial efficiency evidence rather than complete FLOP, latency, energy, and peak-memory accounting.

**Load balancing can conflict with specialization**: auxiliary losses in LLaVA-MoLE, MixLoRA, DynMoLE, and LD-MoLE encourage utilization across experts, while SMoRA uses bias updates and LoRA-Mixer uses specialization-aware balancing. Uniform utilization is not necessarily optimal when task frequencies are nonuniform. Conversely, SAML and MoL for recursive transformers do not report conventional load-balancing objectives, and SAML observes expert collapse in some layers.

**Expert interpretability is limited**: routing visualizations often show partial, layer-dependent, or task-correlated specialization rather than one expert per domain. LLaVA-MoLE explicitly reports that no expert is consistently preferred across every layer and domain. Routing clusters and activation patterns are empirical evidence of correlation, not proof of semantic disentanglement.

**Expert count and rank require tuning**: too few experts or ranks may underfit; too many can starve experts of training data, complicate optimization, or degrade performance. SMoRA found $k=8$ favorable in its principal setting, while CoMoL performance was not monotonic with expert count. DynMoLE and LD-MoLE introduce additional sensitivity to entropy, sparsity, and support-size parameters.

**Architectural compatibility constrains composition**: RAMoLE and LoRA-Mixer require compatible base architectures, projection shapes, and insertion points. Adapters trained for different architectures, ranks, or PEFT mechanisms cannot generally be reused directly.

**Dynamic routing complicates merging**: a token-dependent mixture cannot usually be represented exactly by one globally merged LoRA. Some systems provide approximate or restricted merging: ModernALBERT MoL uses uniform or EMA-weighted merging, while MAS-LoRA can merge its uniform unknown-accent mixture because the coefficients are fixed. Merging generally sacrifices conditional specialization.

**Evidence remains benchmark-dependent**: reported gains establish improvements under the stated datasets, models, and training procedures, not universal superiority over full fine-tuning or arbitrary adapter combinations. Several studies lack full-finetuning baselines, complete ablations, detailed statistical uncertainty, or large-scale deployment measurements.

Overall, MoL is best understood as a design space rather than a single algorithm. Its common principle is to factor adaptation into reusable low-rank components and condition their use on input, task, layer, rank, horizon, speaker, or key. The main research trade-off is between shared capacity and specialization: ordinary LoRA shares one update indiscriminately, full MoE replicates large expert networks, and MoL seeks intermediate structures in which low-rank adaptation capacity is increased while the pretrained backbone remains shared.

Source: https://www.emergentmind.com/topics/mixture-of-lora-mol