The deployment of multiple Low-Rank Adaptation (LoRA) experts for domain-specific tasks requires an efficient routing mechanism. Existing approaches rely on offline-trained routers or static heuristics, which fail to adapt to unseen domains or shifting query distributions. We propose EXP4-LoRA, a contextual bandit framework that treats LoRA expert selection as an online decision problem. Our method combines LinUCB for context-aware reward estimation with the EXP4 algorithm for exploration-exploitation trade-off, enabling per-query routing without any offline training of the router on domain-labeled data. We clarify that our approach requires binary correctness feedback (rather than domain labels), which is often available in practice via self-consistency checks, programmatic verification, or delayed user feedback. We further study proxy reward settings where even correctness labels are unavailable at routing time. On a mixed-domain MMLU benchmark with Gemma-2-2B and four LoRA experts (Mathematics, Code, Biology, Law), EXP4-LoRA achieves 80.1% accuracy after 2000 steps, outperforming EXP3 by 4.1 percentage points and reaching the 70% threshold in 420 steps versus 1800 for EXP3. We replicate the experiments on Phi-3-mini (3.8B) and confirm consistent gains (+4.2 points over EXP3). We also compare against LinTS (Thompson Sampling), which achieves 79.3% accuracy, demonstrating that EXP4-LoRA holds a modest edge. The total inference overhead, including context extraction, is approximately 100% of the base forward pass latency, reducible to 10–15% with layer caching optimizations. Our results demonstrate that lightweight contextual bandits are a viable and principled alternative to learned routers for multi-expert LLM serving.



