[Proposal] TCOD — extending slime's On-Policy Distillation to multi-turn agents
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- python
- Ambito
- ai, machine-learning
Direzione di ricerca
Inizia da CONTRIBUTING.md e dall’entry point esistente examples/on_policy_distillation, quindi determina se slime supporta il percorso di rollout multi-turn descritto nell’issue. Il lavoro è completato quando è stato stabilito se TCOD debba essere un esempio verificabile allo stesso livello oppure rimanere un progetto autonomo collegato da README.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Your Question
I'd like to bring TCOD (a published method, arXiv:2604.24005) to slime: on-policy distillation for multi-turn agents with a temporal curriculum — essentially the multi-turn extension of your existing single-turn OPD example (examples/on_policy_distillation). It is not yet implemented in any RL framework, so I'm asking where it best fits before writing any slime-specific code, rather than showing up with an unsolicited recipe PR. Two concrete questions:
- Does slime support multi-turn agent rollouts (LLM → env step → repeat) that TCOD's curriculum would hook into? Your current OPD example is single-turn (math), so if multi-turn agent rollout isn't a supported path yet, TCOD probably belongs in a standalone repo instead of the core examples.
- If multi-turn rollout is supported, would you accept TCOD as an example sibling to
examples/on_policy_distillation(lightweight, CI/run-verifiable)? If not, would you be open to linking a standalone TCOD repo from the slime README — the path CONTRIBUTING points to for algorithm-style projects?
Either way I'm not proposing large refactors or new abstractions into the core.
What I've Tried
- Read CONTRIBUTING and checked TCOD against your scope, which is why I'm opening a question first instead of a PR.
- Studied
examples/on_policy_distillation: a Qwen3-8B student imitates a Qwen3-32B teacher by matching token-level log-probs as a KL penalty on top of the advantage estimator (Math500 76% → 94%), single-turn, with sglang / megatron teacher modes. TCOD reuses this same on-policy KL-to-teacher objective. - TCOD itself (in the paper): single-turn OPD applied to multi-turn agents is unstable — errors compound across turns, per-turn KL grows with turn index, trajectory KL escalates and success rate collapses. TCOD keeps the standard KL-to-teacher objective but grows the trajectory depth
kexposed to the student short→long (k = min(k_start + floor(n/η), k_max)), in two variants: F2B (student rolls out only the firstksteps, drop-in) and B2F (teacher replays the firstL-ksteps to seed the student, then student takes the remainingk). Reported gains: +up to ~15 SR over vanilla OPD, stable KL, ~32% less training time.
Environment (if relevant)
No response
Additional Context
- Author: @kokolerk (author of the TCOD paper)
- TCOD paper: arXiv:2604.24005
- slime OPD example: https://github.com/THUDM/slime/tree/main/examples/on_policy_distillation
- slime CONTRIBUTING: https://github.com/THUDM/slime/blob/main/CONTRIBUTING.md
- Standalone TCOD repo: https://github.com/kokolerk/TCOD
Pre-submission Checklist
- I have read the CONTRIBUTING.md and understand the collaboration scope.
- I have read the documentation and FAQ and my question is not answered there.
- I have searched for existing issues and my question has not been asked before.
- Lingua principale
- Python
- Stelle
- 8.7k
- Fork
- 1.3k
- Merge medio
- 12h 30m
- PR unite (30g)
- 32
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di THUDM/slime
-
gpqa: when no option letter can be extracted, a single-letter gold label is substring-matched against the whole reply, so a reply that never answers can score 1.0Forse già presa @shaurya416 l’ha presa 27 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug] shipped dynamic-sampling filters crash on fan-out groups (list[list[Sample]]) from multi-turn agent rolloutsForse già presa @QIU-Guanzong l’ha presa 38 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug] W&B initialization fails with wandb 0.28.2 because wandb.util.generate_id was removedForse già presa @cyyecao-lappland l’ha presa 57 giorni fa. Apertabug
Difficoltà 1/5 1-3 ore Idoneità per principianti 90/100
THUDM/slime#2332 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] solution_str = sample.prompt + sample.responseForse già presa @mvanhorn l’ha presa 121 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
THUDM/slime#1829 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
THUDM/slime#1628 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
volcengine/OpenViking#6445 ·
I maintainer di solito rispondono entro 1 giorno
-
BUG:Edit Album strips spaces from the password so albums with a leading/trailing space in the password can't be editedForse già presa @ManyaJain111 l’ha presa oggi. Apertabug enhancement possible-duplicate
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
AOSSIE-Org/PictoPy#1637 · 4 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
deepspeedai/DeepSpeed#8884 ·
I maintainer di solito rispondono entro 3 giorni
-
Flaky: test_advisor_live_calibrates_an_unmeasured_circuit ranks engines by a 1.8ms sleep marginAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
flagos-ai/FlagQuantum#718 ·
I maintainer di solito rispondono entro 1 giorno
-
bug CI-failure high priority
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
vllm-project/afd-plugin#483 ·
I maintainer di solito rispondono entro 1 giorno