SLED-LoRA: Streaming Continual LoRA Expert Discovery Guide

SLED-LoRA (arXiv:2612.05200) is a streaming Multi-LoRA continual adaptation framework for environments where incoming queries lack task or class metadata. Using Residual-MDL Expert Discovery (R-MED) and boundary-copy training, SLED-LoRA hits 65.63% joint accuracy on Qwen3-4B (+2.75 pp over MoA and +9.80 pp over base) with non-parametric routing.
SLED-LoRA: Streaming Continual LoRA Expert Discovery Guide: SLED-LoRA (arXiv:2612.05200) is a streaming Multi-LoRA continual adaptation framework for environments where incoming queries lack task or class metadata. Using Residual-MDL Expert Discovery (R-MED) and boundary-copy training, SLED-LoRA hits 65.63% joint accuracy on Qwen3-4B (+2.75 pp over MoA and +9.80 pp over base) with non-parametric routing. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Zero Task Metadata Required: Discovers adapter boundaries directly from normalized frozen LLM hidden states using cosine distance and Residual-MDL (R-MED) splitting.
- Beats Metadata-Aware & Joint Baselines: Achieves 62.91% under class-incremental B1T0 (+7.09 pp vs base) and 65.63% under joint B19T0 (+2.75 pp over MoA) on Qwen3-4B.
- Boundary Copy Without Geometry Drift: Ambiguous samples near cluster boundaries also train neighboring LoRA pools without corrupting primary expert centers or adaptive radii.
- Single-Adapter Non-Parametric Routing: Reuses the exact R-MED spherical geometry at inference time for fast, cost-aware single-LoRA selection.
import { createAgent } from '@smoke-monkey/harness';// Route incoming user prompts to the active SLED-LoRA adapter on local vLLMconst agent = createAgent({agentId: 'sled-lora-continual-agent',provider: 'openai-compatible',baseUrl: 'http://127.0.0.1:8000/v1',model: 'qwen3-4b-sled-expert-3',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'ask',run_command: 'ask',},});async function main() {const result = await agent.run('Classify the incoming support stream payload using the discovered R-MED LoRA adapter without altering base weights.');console.log('SLED-LoRA Output:', result.summary);}main().catch(console.error);
Watch: Related Video Guides
What is Low-Rank Adaptation (LoRA) | explained by the inventor
What is Mixture of Experts?
What Is SLED-LoRA and How Does Residual-MDL Expert Discovery (R-MED) Work?
SLED-LoRA (arXiv:2612.05200) is a continual parameter-efficient fine-tuning framework that automatically builds and routes an append-only library of LoRA adapters on non-stationary data streams lacking task or class labels. Instead of relying on abrupt task boundaries or a separate supervised router, SLED-LoRA clusters unexplained hidden representations using Minimum Description Length (MDL) criteria.
For each incoming sample, a frozen LLM backbone extracts a unit-normalized representation $x_i = h(u_i) / \|h(u_i)\|_2$. If cosine distance $1 - x_i^\top \mu_j$ falls inside an existing expert's adaptive coverage radius $R_j$, that expert handles the sample and updates its geometry; ambiguous boundary samples also copy into neighboring LoRA training pools without shifting centers. Unexplained residuals accumulate into $\mathcal{R}_t$ and spawn a new persistent LoRA expert only when minimum-size and MDL gain thresholds pass.
| Method (Qwen3-4B Benchmark) | Class-Incremental (B1T0) | Δ vs Base | All-Class Joint (B19T0) | Δ vs Base | Uses Ground-Truth Metadata |
|---|---|---|---|---|---|
| Base (Frozen Qwen3-4B) | 55.82% | +0.00 | 55.82% | +0.00 | No |
| HMoRA | 57.32 ± 2.03% | +1.50 | 62.12 ± 0.35% | +6.30 | No |
| MoA | 61.68 ± 0.04% | +5.85 | 62.88 ± 0.46% | +7.06 | Yes (B19T0) |
| AnySSR | 62.05 ± 0.27% | +6.23 | 62.49 ± 0.24% | +6.67 | Yes (B19T0) |
| SLED-LoRA (R-MED) | 62.91 ± 0.28% | +7.09 | 65.63 ± 0.49% | +9.80 | No |
Running SLED-LoRA Discovery and Multi-LoRA Serving in vLLM
Because SLED-LoRA maintains an append-only expert geometry alongside standard PEFT LoRA weights, discovered adapters load directly into vLLM's --enable-lora multi-tenant serving runtime. Teams can reproduce the BTD-WR gradual mixed stream and R-MED training pipeline directly from the authors' public repository:
# 1. Clone official SLED-LoRA implementation and run BTD-WR stream
git clone https://github.com/ManFenn/SLED-LoRA.git && cd SLED-LoRA
pip install -r requirements.txt
# 2. Serve discovered persistent LoRA adapters dynamically with vLLM
vllm serve "Qwen/Qwen3-4B" \
--enable-lora \
--max-loras 16 \
--lora-modules qwen3-4b-sled-expert-1=./experts/e1 qwen3-4b-sled-expert-3=./experts/e3 \
--port 8000Separate Geometric Ownership From Training Membership
Only non-forced primary expert assignments should update cluster centers and adaptive radii; allowing boundary-copy samples to shift centroids causes expert overlap and routing collapse over long streams.
Frequently Asked Questions
Q:Why does SLED-LoRA outperform class-metadata partitions like MoA on B19T0?
Representation-space clustering via R-MED discovers adapter granularities aligned with actual model feature geometry rather than arbitrary human taxonomy labels, improving Qwen3-4B accuracy by 2.75 pp over MoA.
Q:What is the BTD-WR evaluation protocol introduced in the paper?
Block-Transition Dirichlet Without-Replacement (BTD-WR) converts static benchmarks into phase-ordered streams with gradual block transitions, stochastic within-phase mixtures, and no repeated samples.
Q:How does SLED-LoRA prevent unbounded adapter explosion?
Residual-MDL Expert Discovery (R-MED) opens a new LoRA expert only when an unexplained residual cluster satisfies both a minimum sample-size floor and a positive MDL compression criterion.
Q:How fast is SLED-LoRA routing at inference time?
Inference routing is non-parametric and selects a single LoRA adapter using cosine distance to expert centroids adjusted by radius and load, avoiding multi-adapter ensemble overhead.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.