Solve the initial task
Write a complete implementation.
One shared model · CR2 / CR4 / CR8 · flexible compute across turns
CodeChat · same turn-wise schedule
Compute demand changes across conversational turns. Using a large model throughout can waste computation, while switching between independent models may require rebuilding their history states.
We introduce Multi-Ratio ConceptMoE, which jointly supports compression ratios of 2, 4, and 8 within a shared backbone. Lightweight full-token modules reduce compression-independent cost, ratio-specific boundary routers expose distinct compute budgets, and cross-ratio training prepares the model to process different compression granularities in the same context.
Across PTBench and SFTBench, all three fixed modes outperform their compute-matched MoE baselines. On CodeChat and CoSQL, mixed-ratio inference improves the accuracy-compute trade-off while avoiding the history re-prefill overhead accounted for when routing among independent models.
Only the boundary routers are ratio-specific. The encoder, concept backbone, DeChunk module, and decoder are shared.
01Encode onceEvery router reads the same token representations.
02Select boundariesFixed or mixed assignments define each compression view.
03Share computationThe same backbone and decoder process all ratios.
EXPLORE THE COMPRESSION MODES
Fixed: use one ratio for every turn. Mixed: change the ratio between turns, using the same model.
CR is the number of input tokens per concept: a larger CR produces fewer concepts for the backbone to process.
Mixed: Turn 1 → CR2, Turn 2 → CR8, Turn 3 → CR4. Different turns use different ratios within one conversation.
Write a complete implementation.
Rename variables and tidy formatting.
Add validation and boundary handling.
After three turns: 12 + 3 + 6 = 21 concepts in one sequence.
T1 → T2 → T3 are successive turns of the same conversation. Each square represents one concept.
Each new turn appends concepts at its chosen ratio. Earlier concepts and their history states stay unchanged.
This panel illustrates turn-wise inference with an example ratio schedule. Cross-ratio training instead samples ratios for contiguous segments within a sequence. Equal-sized token groups simplify the illustration; actual boundaries are learned and concept counts vary.
CR2, CR4, and CR8 outperform compute-matched Large, Medium, and Small MoEs on both evaluation suites.
| Compute budget | Mode | PTBench MoE → Ours | SFTBench MoE → Ours |
|---|---|---|---|
| High | CR2 | 31.7→32.1 | 19.0→21.5 |
| Medium | CR4 | 28.2→29.3 | 15.5→19.1 |
| Low | CR8 | 25.4→27.6 | 13.1→17.2 |
Accuracy (%). Compute matching excludes sequence-length-dependent attention-map computation, following the paper's setup.
MIXED-RATIO INFERENCE
+5.87 pp over the Large MoE
41.1% fewer FLOPs than the Large MoE
| Model | Accuracy (%) ↑ | FLOPs (PF) ↓ |
|---|---|---|
| MoE Large | 37.91 | 1.8662 |
| MoE Medium | 27.09 | 1.1198 |
| MoE Small | 18.68 | 0.7334 |
| Multi-Ratio CR2 | 43.28 | 1.3072 |
| Multi-Ratio CR4 | 35.37 | 0.9529 |
| Multi-Ratio CR8 | 29.29 | 0.7795 |
| Multi-Ratio Mixed Ours | 43.78 | 1.0999 |
| SingleCR2 specialist | 33.89 | 2.2290 |
| SingleCR4 specialist | 24.60 | 1.2784 |
| SingleCR8 specialist | 18.02 | 0.7326 |
Results from the trained models in arXiv:2610.14074v1. CodeChat uses Combined Joint accuracy; CoSQL uses SQLite execution accuracy. Multi-turn FLOPs include attention-map computation under the terminal-turn workload protocol.
Independent models maintain incompatible history states. Switching can add costly history re-prefill as a conversation grows.
Independent-model routing → Multi-Ratio Mixed
Using the same frozen turn-wise budget schedule.
Training on cross-ratio patterns strengthens mixed-ratio inference while largely preserving fixed-ratio capability.
Independent routers. Shared modules. Fixed-ratio and mixed-ratio views, following the original ConceptMoE demo structure.
Download demo# Install dependencies and run
python3 -m pip install torch einops
python3 MultiConceptMoE_demo.py
# Inside the demo: one view per ratio
logits, aux_loss = model(input_ids)
# Independently sampled mixed-ratio views
logits, aux_loss = model(
input_ids, mixed_cr=True
)The demo uses random weights and placeholder attention/MoE layers to explain routing. It does not reproduce trained-model results or implement inference caches.
@misc{fu2026multiratio,
title = {One Model, Multiple Compute Budgets:
Multi-Ratio ConceptMoE for Flexible Compute Across Turns},
author = {Fu, Yiyang and Huang, Zihao and Han, Dongchen and
Gong, Shukai and Dong, Zhen and Min, Qiyang and Zhou, Daquan},
year = {2026},
eprint = {2610.14074},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2610.14074}
}