[论文解读] MoLoRA: Composable Specialization via Per-Token Adapter Routing
MoLoRA 引入逐-token 路由,将令牌路由到多个领域特定的 LoRA 适配器,实现可组合的专业化,并以较小模型超越更大模型。它实现了 K 折通道数的通过率降低,并在系统优化下实现大吞吐量和亚毫秒级延迟。
Multi-adapter serving systems route entire sequences to a single adapter, forcing a choice when requests span multiple domains. This assumption fails in two important settings: (1) multimodal generation, where text and image tokens require different adapters within the same sequence, and (2) mixed-capability requests like "write code to solve this equation," which need expertise from multiple specialized adapters. We introduce per-token routing, which routes individual tokens to adapters based on either vocabulary structure (for multimodal models) or learned gating (for semantic specialization). Per-token routing is provably optimal, achieving work N for N tokens versus K \cdot N for per-sequence routing with K adapter types. Our key contribution is MoLoRA (Mixture of LoRA), which enables composable specialization: load multiple domain-specific adapters and let a learned router select the appropriate adapter per-token. We demonstrate that specialization dramatically beats scale: MoLoRA enables Qwen3-1.7B to exceed Qwen3-8B across four reasoning benchmarks while being 4.7x smaller. This enables modular expertise at inference time: train focused LoRAs independently, combine them without retraining, and add new capabilities by simply loading new adapters.
研究动机与目标
- Motivate the limitations of per-sequence adapter routing for multimodal and mixed-capability tasks.
- Propose per-token routing as a solution and analyze its computational optimality.
- Introduce MoLoRA (Mixture of LoRA) to enable composable specialization with learned gating.
- Demonstrate systemic optimizations (hot-set memory, CUDA graphs) that deliver practical deployment benefits.
- Validate that specialization via MoLoRA beats scaling when applied to reasoning benchmarks.
提出的方法
- Formalize per-token routing and prove it achieves optimal work proportional to the number of tokens.
- Define vocabulary routing for multimodal models and compositional routing to combine adapters across modalities and domains.
- Present a unified dispatch kernel that supports both deterministic and learned routing in a MoE-like infrastructure.
- Introduce MoLoRA by adding a lightweight learned router over multiple LoRA adapters to enable per-token selection.
- Describe production-grade infrastructure optimizations, including hot-set memory and CUDA graph capture, to reduce latency and variance.
实验结果
研究问题
- RQ1Can per-token routing provide computational optimality compared to per-sequence routing for multi-adapter systems?
- RQ2Does per-token routing enable composable specialization by combining domain- and modality-specific adapters without retraining?
- RQ3What system and kernel-level optimizations are required to deploy per-token routing at production scales?
- RQ4How does MoLoRA perform on standard reasoning benchmarks relative to larger base models?
- RQ5Can learned routing closely approximate oracle (domain- or modality-signal based) routing without significant overhead?
主要发现
- Per-token routing achieves optimal work: N tokens processed with one pass per token versus K·N passes for K adapters.
- MoLoRA enables composable specialization by routing tokens to multiple domain- and modality-specific LoRA adapters with a lightweight router.
- MoLoRA with Qwen3-1.7B + four adapters exceeds Qwen3-8B on GSM8K, MATH, BBH, and GPQA, while being 4.7× smaller.
- System optimizations (hot-set memory and CUDA graph capture) yield substantial latency reductions and up to multi-fold speedups for multimodal workloads.
- Learned routing can match oracle routing, enabling automatic domain- and modality-aware adapter selection without manual labeling.
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。