[Idea] Inner agent cascade: routing by difficulty, not by domain
[Idea] Difficulty-aware tiered inference inside a single model bundle
My monkey thoughts structured by DeepSeek mobile app and free follow up of #1658 in terms of speed optimatization.
TL;DR Most queries are trivial, but every query pays the full cost of a large model. What if a single model bundle contained tiers of capability (not domain experts), and a small decision model routed each query to the cheapest tier that can still answer it correctly?
This is not MoE. MoE routes by domain inside one forward pass. This routes by required depth of reasoning and skips entire tiers.
The idea
Imagine one bundle that contains:
- T0 — MTP head, generates several tokens at once, no validation (~1 ms)
- T1 — small model (~10 ms)
- T2 — mid model (~80 ms)
- T3 — full model (~500 ms)
An orchestrator — a decision model in the style of Jev / System One — receives the query state and returns a typed decision: which tier? with a confidence score. No text generation. ~10–20 ms, ~$0.0004 per decision.
If confidence is below a threshold, escalate. If it's a greeting or a fact already in context, T0 answers directly — without validation by the big model.
Why this is different from MoE
| MoE | This idea | |
|---|---|---|
| Routes by | Domain / token type | Required reasoning depth |
| Router | Learned gate inside forward pass | Explicit decision model, outside |
| Activation | Top-k in parallel | One tier, cascade |
| Gate output | Weights | Typed decision + probability |
| Goal | Same quality, fewer FLOPs | Same quality, lower cost/latency |
MoE saves compute inside one pass. This skips whole passes.
Why now
Decision models (Jev, JevK5, ruling, Von) just became practical: they return calibrated probabilities in milliseconds for fractions of a cent. That makes an explicit, cheap, inspectable orchestrator viable — which it wasn't a year ago.
Open questions
- Where does the orchestrator live — inside the inference engine, or as a separate service in front of the bundle?
- How do we feed failures back to the orchestrator?
- How do we measure "difficulty" — length, entropy, type?
- How many tiers actually pay off? 3? 4? More?
- Is T0 without validation safe? What's an acceptable error rate?
- How does this behave in multi-turn conversations — does the orchestrator see the full history, or just the last turn?
Risks
- A poorly calibrated orchestrator is worse than no orchestrator. Mitigation: conformal abstention + high confidence threshold for T0.
- T0 without validation is a silent failure mode. Mitigation: strictly bounded T0 (greetings, confirmations, in-context facts only).
- Distribution shift breaks routing. Mitigation: monitoring + retraining loop.
Next steps (if there's interest)
- Prototype orchestrator on ~100 real queries
- Measure tier distribution (what % lands in T0/T1/T2/T3?)
- Measure ECE of the orchestrator
- Test T0-without-validation on a bounded set
- Compare against baseline (everything → T2)
Curious if anyone has thought about this direction — especially the calibration side. Not proposing to change DeepSeek V3 itself; this is about the shape of inference on top of models like it.
I have given it internal code name Mixture of Workers model
Source: deepseek-ai/DeepSeek-V3