Qwen 4 is looped!

We just wrapped the middle 16 layers (L12..27) of Qwen/Qwen4-35B-A3B (35B total / 3B active MoE over a 4-stream HyperConnection residual highway + 10.2B 3-gram PLE at L2) in our Open-Channel recurrent-depth loop — and the results are our cleanest demonstration of latent-space test-time compute yet:

  • +18.3 pp on LiveCodeBench v6 (48.3% → 66.7%, +14 / -3 paired wins/losses) — and +12.1 pp on the 33-problem LCB Hard slice (18.2% → 30.3%)
  • +6.7 pp on AIME 2024 (86.7% → 93.3%, +2 / -0) and +3.3 pp on AIME 2025 (86.7% → 90.0%, +1 / -0) in 13.9% fewer tokens (9,672 → 8,326)
  • +3.3 pp on BFCL Tool Calling (90.0% → 93.3%, +4 / -0 at temp = 0) and 98.8% (100.0% with LoopCD) on Agentic State Planner
  • Zero regressions across all 8 suites (681 problems): 7 wins, 1 exact tie, 0 regressions — lifting the 8-suite Macro Average +5.7 pp (75.4% → 81.1%) and solving +24 net additional problems (561 → 585 / 681)
  • Zero active LoRA weights (22.8 MB total): The winning checkpoint (ckpt_best, Step 40) comes from Open-Channel Phase A (lora_frozen = True, lora_b == 0.0 everywhere). 100% of Qwen4-35B-A3B’s base weights are untouched — only the 4-stream HCWorkspaceEntry and 4 QSA boundary HCCrossPassMixers (L15, 19, 23, 27) are active.

Links & Downloads (MIT):

Qwen 4 Is Looped! +18.3 pp LiveCodeBench, +6.7 pp AIME, Zero Regressions


1. Complete 8-Suite (681-Problem) Scorecard vs. Stock Qwen4-35B-A3B

Every arm was evaluated identically on Qwen/Qwen4-35B-A3B-FP8 (vLLM 0.19.1rc1, symmetric stop-only grading, max_tokens = 28,672 on coding & math reasoning suites, 0% cap on tool/agentic/HumanEval suites):

Benchmark (n)Stock T=1d=1 ControlLooped T=2T=2 + LoopCDLooped T=3T=3 + LoopCDΔ (T=3 - T=1)
LiveCodeBench v6 (60)48.33% (29/60)40.00% (24/60)48.33% (29/60)55.00% (33/60)66.67% (40/60)65.00% (39/60, -14.5% tok)+18.33 pp (+14/-3)
LCB Hard (DSV4.1-33) (33)18.18% (6/33)30.30% (10/33)24.24% (8/33)30.30% (10/33)30.30% (10/33)33.33% (11/33)+12.12 pp (+15.15 w/ CD)
AIME 2024 (30)86.67% (26/30)86.67% (26/30)90.00% (27/30)86.67% (26/30)93.33% (28/30)90.00% (27/30)+6.67 pp (+2/-0)
AIME 2025 (30)86.67% (26/30)93.33% (28/30)86.67% (26/30)90.00% (27/30)90.00% (27/30, -13.9% tok)90.00% (27/30)+3.33 pp (+1/-0)
BFCL Tool Calling (120)90.00% (108/120)90.00% (108/120)90.83% (109/120)90.83% (109/120)93.33% (112/120)92.50% (111/120)+3.33 pp (+4/-0)
Agentic State Planner (80)97.50% (78/80)100.00% (80/80)95.00% (76/80)100.00% (80/80)98.75% (79/80)100.00% (80/80)+1.25 pp (+2.50 w/ CD)
HumanEval+ Direct (164)77.44% (127/164)78.05% (128/164)78.05% (128/164)77.44% (127/164)78.05% (128/164)78.05% (128/164)+0.61 pp
HumanEvalFix Think (164)98.17% (161/164)95.73% (157/164)98.78% (162/164)97.56% (160/164)98.17% (161/164)98.17% (161/164)0.00 pp
8-Suite Macro Average75.37%76.76%76.49%78.48% (+3.11 pp)81.08%80.88%+5.71 pp
Micro Total (681 Problems)561 / 681561 / 681565 / 681572 / 681585 / 681 (+24)584 / 681 (+23)7 Wins, 1 Tie, 0 Regressions

Both T=3 (81.08%, 585/681) and T=3 + LoopCD (ω=0.15, 80.88%, 584/681) post 7 wins, 1 exact tie, and 0 regressions across all 8 benchmarks. Turning on LoopCD-Hidden (loop_cd_ref = "first", per_stream RMS) also lifts faster T=2 by +1.99 pp macro (76.49% → 78.48%) — jumping LiveCodeBench v6 +6.7 pp, LCB Hard 33 +6.1 pp, Agentic to 100%, and AIME 2025 to 90.0% — and pushes T=3 + LoopCD to 33.33% (+15.2 pp) on LCB Hard 33 and 100.0% (80/80) on Agentic State Planner while cutting LiveCodeBench v6 token count -14.5% vs Stock T=1.


2. The Surprise Result: Zero LoRA Weights — 100% Pure 4-Stream Recurrence

In our Looped Qwen3.8-27B update, we answered the “is looping just a disguised d=1 LoRA?” question by designing Open-Channel v4 training: per-stream RMS-matched workspace & cross-pass mixer gates, plus a Phase A warmup where every single layer LoRA is frozen (lora_b == 0.0) so the optimizer can only reduce loss by actually routing information across loop passes.

When we ran Open-Channel v4 SFT on Qwen4-35B-A3B, something remarkable happened:

  1. Held-out validation peaked at Step 40 — right inside Phase A (0 active LoRAs): Validation NLL dropped cleanly from 0.16205 (Stock T=1) → 0.15474 (T=2) → 0.15450 (T=3, loop_gain_t3 = +0.00755 nats) while every single Core and Coda LoRA B matrix was exact 0.0. Unfreezing LoRAs in Phase B (Steps 70–240) slightly overfit held-out validation (0.15450 → 0.15714), so automatic best-val checkpoint selection picked Step 40.
  2. d=1 Control proves zero LoRA shortcut: Running ckpt_best at d=1 (loop OFF) is mathematically identical to Stock Qwen4-35B-A3B (108/120 +0/-0 bitwise on temp=0 BFCL Tool Calling, and an identical 561/681 micro total across all 8 suites). Turning the loop ON (T=3) delivers the entire +18.3 pp LiveCodeBench v6 (+26.7 pp over d=1) and +5.7 pp 8-suite macro jump.
  3. What the 22.8 MB zero-LoRA adapter actually is: None of Qwen4-35B-A3B’s 40 layers are modified (no attention, GDN, MLP, or router LoRAs). The entire 22.8 MB (~11.4M BF16 params, 0.03% of 35B) consists of just 5 tiny between-pass bridges sitting outside the frozen layers — 1 HCWorkspaceEntry blender (L27 → L12) and 4 HCCrossPassMixers (L15, L19, L23, L27) — that teach the untouched layers how to read and refine their own prior-pass hidden state. Stripping the 342 exact-zero LoRA pairs (--strip-zero-loras, coda_lora_layers = 0) shrinks the pre-folded Apple Silicon sidecar from 69.3 MB down to 22.8 MB and eliminates every LoRA matmul at runtime.

No LoRA Shortcut: 100% of the Gain Comes From Multi-Pass 4-Stream Recurrence


3. Four Model Families Looped: From 27B Dense to 552B Frontier MoE

With Qwen4-35B-A3B live, we have now retrofitted recurrent depth onto four distinct open-weights model families spanning 20× in total parameter scale — Dense, compact hybrid MoE, mid-frontier hybrid MoE, and a 552B frontier MoE — all with 0 GB of added base weights:

Recurrent Depth Scales Across Every Architecture: 27B Dense to 35B to 180B to 552B Frontier MoE

Model FamilyArchitecture & Looped CoreLiveCodeBench v6 (Stock → Looped)Olympiad Math / Hard Slice (Stock → Looped)Runtime Support
Qwen3.8-27BDense 27B (64L, Core L24..39)60.0% → 80.0% (+20.0 pp)AIME 2025: 70.0% → 90.0% (+20.0 pp)vLLM, mlx-serve
Qwen4-35B-A3B (This Post)Hybrid MoE 35B-A3B (40L, Core L12..27, 0 LoRAs)48.3% → 66.7% (+18.3 pp)AIME 2024: 86.7% → 93.3% (+6.7 pp)vLLM, sushi, Hibana
Qwen3.8-Flash-NextHybrid MoE 180B-A6B (48L, Core L16..31)57.5% → 80.0% (+22.5 pp)AIME 2025: 63.3% → 86.7% (+23.3 pp)vLLM, sushi, MLX, Strata
DeepSeek-V4.1-FlashFrontier MoE 552B (40L, Core L24..35)75.8% → 84.8% (+9.1 pp)13 Hardest LCB: 61.5% → 84.6% (+23.1 pp)vLLM, sushi (1.75-bit Mac rescue!)

Every single architecture — whether dense or sparse, 27B or 552B, with LoRAs or with zero LoRAs — gains +9 to +23 percentage points on hard competitive coding when given 2–3 passes through its middle layers.

Methodology note: Each row compares a model strictly against its own unmodified Stock T=1 baseline under identical evaluation caps (28k on Qwen3.8-27B & Qwen4-35B-A3B n=60; 24k on Qwen3.8-Flash-Next n=40; 32k on DeepSeek-V4.1-Flash n=33 Medium+Hard).


4. Try It Out (sushi on Apple Silicon or vLLM on 1× H100)

Apple Silicon (beamivalice/sushi Cooler Pack — 22.8 MB Drop-In Sidecar)

We audited beamivalice/sushi (HEAD @ 35dc854) and verified our sushi/default_t3 and sushi/default_t2 bundles directly against src/qwen4/qwen4_loop.zig (12/12 zig test passing):

# Download the 22.8 MB drop-in sushi T=3 bundle (requires huggingface_hub >= 0.30, or use `huggingface-cli download`)
hf download sliderforthewin/Looped-Qwen4-35B-A3B \
  --include "sushi/default_t3/*" \
  --local-dir ./qwen4-35b-loop

# Serve any Qwen4-35B-A3B Cooler pack (STQ or BF16) at T=3
sushi serve --model <path-to-Qwen4-35B-A3B-STQ-or-BF16-pack> \
  --loop ./qwen4-35b-loop/sushi/default_t3 \
  --loop-depth 3

Two sushi notes: (1) Looped decoding runs on Sushi Cooler packs only (STQ or BF16 — qwen4_cooler.zig intentionally rejects legacy affine-EXL3 / MXFP4 packs). (2) In sushi v1.9.1, sushi/default_t3 runs the dominant gs_tanh * (s_hat - af) (s_hat_mode: "rms_match") recurrence and LoopCD-Hidden bit-exact today; full v4 delta_rms_match parity on the smaller low-rank gm/gamma delta terms (used in our vLLM benchmarks above) is shipped in mlx/default_t3 and documented in the ~25-line loop_ops.zig spec at docs/SUSHI_QWEN4_35B.md.

NVIDIA Hopper (1× 80 GB H100 — 1,120–1,360 tok/s at T=3)

Requires a vLLM build with qwen4_moe support (e.g., vllm/vllm-openai:qwen4 / vllm 0.19.1rc1+) plus our zero-fork plugin. By registering LoopedQwen4MoeForCausalLM in vLLM’s Engram UVA CPU-offload map (+20.5 GB freed by streaming the L2 PLE table from pinned host RAM), enabling FP8 QSA indexer caches, and turning on FULL_DECODE_ONLY CUDAGraphs (docs/QWEN4_ENGINE_OPTIMIZATIONS.md), a single 80 GB H100 serves Looped-Qwen4-35B-A3B at 1,121 tok/s (T=3) and 1,676 tok/s (T=2):

# 1. Install the zero-fork vLLM plugin (registers LoopedQwen4MoeForCausalLM + Engram UVA offload)
pip install "git+https://github.com/jasontitus/loopedqwen.git#subdirectory=vllm_looped_qwen38"

# 2. Serve Looped Qwen4-35B-A3B at T=3 (81.08% macro, 0 regressions; set VLLM_LOOPED_CD_OMEGA=0.15 for T=3 + LoopCD)
VLLM_LOOPED_CKPT="sliderforthewin/Looped-Qwen4-35B-A3B:ckpt_best_alesha_v3.safetensors" \
VLLM_LOOPED_NUM_PASSES=3 \
VLLM_LOOPED_CD_OMEGA=0.0 \
VLLM_LOOPED_CD_REF=first \
vllm serve Qwen/Qwen4-35B-A3B-FP8 \
  --trust-remote-code \
  --dtype bfloat16 \
  --kv-cache-dtype fp8 \
  --indexer-kv-dtype fp8 \
  --engram-config '{"cpu_offload": true}' \
  --compilation-config '{"cudagraph_mode": "FULL_DECODE_ONLY"}' \
  --hf-overrides '{"architectures":["LoopedQwen4MoeForCausalLM"]}'