PyroDash

A novel cost-aware, token-level paradigm for collaborative inference between SLM and LLM

Token-level offload with <|llm_offload|>. Near-LLM performance with fractional LLM-only inference cost.

Train the SLM to initiate queries and concatenate streams.

No external router. No LLM retraining. Progressive training teaches SLM when to emit <|llm_offload|>; at inference, the Collaborate Engine suspends, relays, and concatenate streams.

Three-stage progressive training

Data preparation filters easy/hard samples and inserts control tags <|llm_offload|>. Then embed <|llm_offload|>, cold-start offload SFT, and GRPO with a cost-aware reward.

Control-token embedding

LoRA on embed_tokens + lm_head, then keep only the <|llm_offload|> embedding row so SLM can express offload intent.

Offload cold-start

Offload SFT teaches when and how to emit <|llm_offload|> on hard steps while keeping easy steps local.

GRPO enhancement

With LLM frozen, optimize R = R_accuracy − λ · R_efficiency so performance and LLM-only cost move together.

Three-stage progressive training pipeline
Data preparation → embedding-layer training → offload SFT → GRPO → trained SLM.

A tunable quality–cost Pareto frontier

On five math benchmarks (Minerva, GSM8K, Olympiad, AIME25, AIME24), PyroDash with Qwen3.5-4B + GLM-5.2 breaks the conventional trade-off barrier.

64.04%

Avg. accuracy PyroDash (λ=0.05) — outperform GLM-5.2 (LLM-only)

96.4%

Cost reduction PyroDash (λ=0.6) vs. GLM-5.2 (LLM-only)

1.90%

LLM token ratio at λ=0.6

Cost–accuracy Pareto frontier
Total cost and average accuracy across five benchmarks. PyroDash (λ=0.05) outperform GLM-5.2-FP8; PyroDash (λ=0.6) reduces cost from $49.36 to $1.78.
Method Avg. Acc. (%) LLM Token Ratio (%) Avg. LLM Calls Cost ($)
Qwen3.5-4B 28.36 0.00 0.000 2.26
Qwen3.5-4B (+SFT) 46.25 0.00 0.000 1.32
RouteLLM (~75% GLM-5.2-FP8) 52.74 77.37 0.808 44.62
GlimpRouter (τ=0.9) 54.20 75.11 1.20 31.61
PyroDash (λ=0.1) 55.29 8.19 0.058 4.71
PyroDash (λ=0.6) 54.55 1.90 0.012 1.78
PyroDash (λ=0.05) 64.04 95.34 0.975 39.29
GLM-5.2-FP8 57.68 100.00 1.000 49.36

Offload and relay circumstances

Same problem: Once the Collaborate Engine detects the <|llm_offload|>, LLM relay starts.

Qwen3.5-4B GLM-5.2 Offload · SLM Offload · LLM <|llm_offload|>

Question

Answer

Qwen Qwen response

Paper, data, and one-click reproduce

Citation

@misc{pyrodash2026,
  title        = {PyroDash: Cost-Efficient Token-Level Small-Large Model Collaborative Inference},
  author       = {{PyroMind Dynamics}},
  year         = {2026},
  note         = {Preprint}
}