Local & Offline
~8 min readUpdated: December 2026

SLED-LoRA: Streaming Continual LoRA Expert Discovery Guide

SLED-LoRA streaming continual LoRA expert discovery in Smoke Monkey

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.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

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.

Key Architectural Takeaways
Quick Implementation Examplesled-lora-router.ts
sled-lora-router.tstypescript
import { createAgent } from '@smoke-monkey/harness';
// Route incoming user prompts to the active SLED-LoRA adapter on local vLLM
const 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);
Video Guides

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 BaseAll-Class Joint (B19T0)Δ vs BaseUses Ground-Truth Metadata
Base (Frozen Qwen3-4B)55.82%+0.0055.82%+0.00No
HMoRA57.32 ± 2.03%+1.5062.12 ± 0.35%+6.30No
MoA61.68 ± 0.04%+5.8562.88 ± 0.46%+7.06Yes (B19T0)
AnySSR62.05 ± 0.27%+6.2362.49 ± 0.24%+6.67Yes (B19T0)
SLED-LoRA (R-MED)62.91 ± 0.28%+7.0965.63 ± 0.49%+9.80No

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:

bash
# 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 8000

Separate 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.

Google Search Questions & Answers

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 guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness