DeltaKL-summarizer-qwen3-4b-sokoban
a long reasoning chain summarizer
2 min readupdated
The model compresses intermediate logical reasoning steps in the Sokoban puzzle so that the solving AI model can think beyond its context window limit. It works paired with the frozen base model Qwen/Qwen3-4B-Instruct-2507 inside the TruSuCo (truncate, summarise, continue) loop: every 4096 reasoning tokens are rolled up into a short summary, after which problem-solving continues relying on the question, accumulated summaries, and the last 128 tokens. Unlike standard Qwen/Qwen3-4B-Instruct-2507, this variant is fine-tuned using GRPO (group relative policy optimization) with a Delta-KL reward so that the continuation of thought after compression matches the full text's continuation as closely as possible. It is useful for long-context and agent researchers studying memory compression during step-by-step planning.
Key features
- Based on Qwen/Qwen3-4B-Instruct-2507 (4.41B parameters, step 80 checkpoint in bf16 format).
- Fine-tuned using GRPO with a Delta-KL reward function and a penalty for exceeding summary length limits.
- Uses an append summary mode: each new summarization is saved to history.
- On the Sokoban task (192 examples, 32k token budget), it increases accuracy from 34.0% for the base summarizer to 41.6%.
What you can do
- Reproduce experiments from arXiv paper 2611.31621 on the KenCao2007/DeltaKL-eval dataset using the DeltaKL repository scripts.
- Use the model as a ready-made summarizer for the Qwen/Qwen3-4B-Instruct-2507 solver when tackling multi-step spatial Sokoban tasks.
- Compare context compression efficiency using the TruSuCo method against Delethink and RC approaches under a limited token budget.
Example
TRAINED=KenCao2007/DeltaKL-summarizer-qwen3-4b-sokoban BUDGET=32768 scripts/eval.sh sokoban main
BUDGET=32768 scripts/eval.sh sokoban single
scripts/score.sh sokoban
Read more
DetailsMetric avg@32 (32k tokens, Sokoban 192): Trained — 41.6 ± 2.5, RC — 39.9 ± 2.6, Single — 37.5 ± 2.5, Delethink — 35.7 ± 2.5, Base — 34.0 ± 2.6.
Training: 1932 states from Reasoning Gym Sokoban (levels 0–1), 80 GRPO steps, lr 1e-6, KL 0.001 on 3× H100 80GB.
Limitations: not intended for free-form chat — expects system prompt templates from the TruSuCo loop (trusuco.common.summary_prompt).










Comments