[← Back (Home)](/) # pushing a looped moe to 100 tok/s (and finding its effort circuit) [](https://github.com/Eriskii/erisinky) December 1, 2026 research speculative decoding mechanistic interpretability apple silicon In [part one](/research/inkling-ikv), pre-compiled .ikv cartridges and WHT-KV4 sparse paging fixed Inkling 2 Mini's prefill and memory limits, leaving decode at 30–39 tok/s on an M5 Pro. Here we go after decode speed and thinking-token overhead together: zero-sync DSpark speculation, QuaRot dnQ4, variance-preserving MoE pruning, LoopCD, warm-start 2-pass Plato's Key bridges, and mechanistic interpretability on Inkling's thinking effort circuit. Stacked together, live Rust coding drops from 6:42 to 2:53 (2.32x, 88–136 tok/s, 9/9 tests), standard reasoning hits 24/24 at 92–115 tok/s (-26.6% coding tokens), and our 12-task Hard Stress Suite improves from 7/12 to 8/12 at 101.4 tok/s by rescuing 24–26 node GraphWalks from 4,096-token timeouts. [After .ikv](#after-ikv) [Looped anatomy](#loop-anatomy) [1. Zero-sync DSpark](#zero-sync-speculation) [2. MoE physics & QuaRot](#moe-physics) [3. LoopCD & 2-pass](#loopcd-and-ws2p) [4. Effort / Stop circuit](#effort-circuit) [5. Neuralese & L17-Coda](#causal-steering) [Reasoning & Hard Suite](#reasoning-benchmarks) [Coding & 200k Ziz](#agent-races) [Model discoveries](#model-discoveries) [References](#references) ## After .ikv: decode was 90%+ of wall time Once [.ikv cartridges and WHT-KV4](/research/inkling-ikv) cut 40k-token file reads down to 410 ms, 90%–96% of agent wall time was pure autoregressive decode at ~30 tok/s. On a reasoning model that spends 500–4,000 tokens thinking per turn, slow decode hurts twice: every redundant re-check pays full memory bandwidth. Early on we noticed that 384-token perplexity is a terrible proxy here — several variants lowered short-context PPL and then looped endlessly halfway through a 3,000-word essay or dropped a dynamic programming base case. Every change below was gated on four checks: (1) 0.000000 zero-flag default invariance, (2) a 24-task reasoning suite (GraphWalks BFS + executable Python tests + multi-step math at temp = 1.0), (3) a 12-task Hard Stress Suite (24–30 node graphs + LeetCode-Hard Python + number theory), and (4) live Rust coding and 200k-context 3,000-word prose runs. ## Anatomy of Inkling 2 Mini [Inkling 2 Mini](https://thinkingmachines.ai/news/inkling-2-mini/) (Thinking Machines Lab, Nov 2026) has 24 physical layers (E = 2304, 128 sigmoid-routed MoE experts with Top-8 active, FF = 1152) executed across 48 layer visits: - Prelude (L00–L05, 6 visits): runs once (5 sliding-window + 1 global NoPE layer). - Recurrent Core (L06–L17, 12 layers × 3 passes = 36 visits): Pass 0 runs with no feedback; Passes 1 and 2 receive the prior pass's (b0 = L12, b1 = L17) bank through 57.1 MiB of dedicated ((LoopW|Cross-pass modulation projections that inject the prior pass's (L12, L17) residual bank into attention and FFN inputs on Pass 1 and Pass 2 — unused on Pass 0.)) projections, each writing its own KV slots (2 global + 10 SWA layers per pass). - Coda (L18–L23, 6 visits) + Q6_K LM Head (200k vocab): runs once after Pass 2 to emit output tokens. inkling-2-mini looped architecture 24 physical layers → 48 visits PreludeL00–05 (6v)- Recurrent Core · L06–17 (×3 = 36v)Pass 00.71 KLPass 1+ LoopWPass 21.57 KLLoopW bank (L12, L17)L17-Coda: +α v_eff (thinking only)Coda + HeadL18–23 (6v) Layer ablation (probe-fast) showed a sharp asymmetry across the loop: Pass 0 has less than half the KL sensitivity of Pass 2 (skipping all MoEs in Pass 0 costs 0.709 KL vs 1.571 KL in Pass 2). Pass 0 sketches; Pass 1 contracts; Pass 2 carries the final state into Coda. ## 1. Zero-sync lossless speculation: DSpark + .ikv-SAM + AdaptiveK At batch size B = 1 on Apple Silicon, verifying 4–6 draft tokens takes almost the same memory-bandwidth time as verifying 1. We built a native Metal backend for Inkling's MTP drafter (DSpark, 691 MiB VRAM, 12-step MSE Q4_32 + folded Q8_32 Markov head) inside a single fused Metal command buffer: DSpark drafts K tokens, copies the K + 1 IDs into pool.toks[0] on-GPU with zero CPU sync, verifies all 48 visits, and runs a persistent 4-lane Q6_K LM head with on-GPU bitonic Top-64 selection — avoiding a 28.8 MB logit DRAM write and returning 2 KiB to the CPU. zero-sync speculative decoding 1 Metal command buffer per step single GPU command buffer (0 CPU sync)1. Draft KDSpark + .ikv-SAMGPU CopyK+1 → toks[]2. Verify (T = K+1)48v sparse + WHT32 MoE3. Fused HeadTop-64 (2 KiB to CPU)exact rejection sampling · AdaptiveK (K = 3..6) We layered two cheap additions on top: a file-boundary-safe suffix automaton (DualSamDrafter) over stitched .ikv files, and an online AdaptiveK controller that picks K = 3 on high-entropy 128k–256k prose and ramps to K = 4..6 on structured code and BFS traces. Relaxed speculative acceptance loops on long prose. We tested min_p, typical acceptance, and SAM-gated [EARS](https://arxiv.org/abs/2512.13194) (arXiv:2512.13194). Every relaxed rule gained +10–15 tok/s on short tests and then locked into absorbing repetition loops on 3,000-word temp = 1.0 Ziz essays (near_dup8 = 35 on EARS, 2,857 with LoopCD-Hidden, 3,448 on min_p). Only exact rejection sampling ([Leviathan et al., ICML 2023](https://arxiv.org/abs/2211.17192), arXiv:2211.17192) stays loop-free: Pacc(x) = min (1, q(x) pτ(x) ) pres(x) = max(0,q(x)−pτ(x)) ∑ymax(0,q(y)−pτ(y)) (1) Lossless rejection sampling (AcceptPolicy::exact). Preserves q(x) for any draft temperature τ; every relaxed variant looped on 3,000-word prose. Lossless DSpark alone moved 128k sparse decode from 30.6 to 56.9 tok/s (1.86x) with 0.000000 target drift and 0 prose loops. ## 2. MoE variance physics, QuaRot WHT32, and batch-invariant mass After DSpark, GPU profiling showed almost all remaining step time went to reading Top-8 MoE expert weights across 48 visits (especially moe_down in Q8_0/Q5_0). Two changes cut that bandwidth roughly in half. ### Variance-preserving MoE renormalization (renorm_damp = 50%) Building on decoupled k1/k2 MoE renormalization ([Chen & Yao, 2026](https://arxiv.org/abs/2609.04575), arXiv:2609.04575), when pruning a token's active experts from Top-8 down to a subset S keeping weight fraction f, the renormalization denominator matters because distinct MoE expert outputs are roughly orthogonal: damp = 0% (divide by W_kept ∝ f): inflates output variance by (1/f)2 · f = 1/f (~1.8x), producing clause echoes on Ziz 3K (near_dup8 = 76–170). - damp = 100% (divide by unpruned W_ref): starves variance down to f (~0.51x), collapsing Ziz 3K (near_dup8 = 1,759, 128k LoopCD-RefPPL 8.87). - damp = 50% (geometric mean √(W_kept · W_ref)): divides by √f, locking variance at (1/√f)2 · f = 1.00x per token at 0.00 ms cost (128k LcdPPL 4.20, 0 loops). Wdenom(γ) = Wkept1−γ · Wrefγ →γ=0.5 Wkept·Wref ∝f ⇒ Var ( ∑i∈S wiWdenom Ei(x) ) = Var(Yexact) (2) Geometric MoE renormalization (γ = 0.5). Locks pruned FFN variance to 1.00× at 0.00 ms cost. One sigmoid-router detail: W_ref must sum over k2 = 8, not k2 = 12. Sigmoid weights outside Top-8 hold non-trivial tail mass, so a Top-12 reference systematically under-damped active experts (128k PPL 4.82 vs 3.06 at k2 = 8). moe variance physics & ws3p stage pruning renorm_damp = 50% locks output variance at 1.00× Output Variance vs. Exact Top-8- 1.0× exactdamp 0%1.8× (echoes)damp 50%1.0× (0 loops)damp 100%0.5× (collapsed)WS3P Active Experts / Token (of 8)unpruned (8)m85%Preludetop-2Pass 0m70%Pass 1m75%Pass 2m85%Coda ### Batch-invariant per-stage cumulative mass (--turbo ws3p) Cross-token expert budgets (like [SpecMoE](https://arxiv.org/abs/2604.10152), arXiv:2604.10152, sharing 10 unique experts across a verify batch) made a token's MoE output depend on its speculative siblings (T = 1 ≠ T = 8), hurting speculative acceptance. Switching to per-token cumulative mass restores exact T = 1 == T = 8 invariance while spending fewer experts on easy tokens and exploiting Pass 0's low sensitivity (top-2 in Pass 0, m70/m75 in Passes 1–2, m85 in Prelude/Coda): S(x) = {e(1),…,e(m)}, m= max ( kmin, min { j∈[1,8] : ∑r=1j w~(r) ≥ρstage } ) (3) Batch-invariant per-token cumulative mass selection with stage threshold ρ_stage and floor k_min. ### QuaRot Block-32 Hadamard + 12-step MSE dnQ4 Following [QuaRot](https://arxiv.org/abs/2404.00456) (Ashkboos et al., NeurIPS 2024, arXiv:2404.00456), since FF = 1152 = 36 × 32, we rotate all 24 moe_down matrices at startup (~1.0 s on GPU) by a Rademacher sign flip and normalized WHT-32 before 12-step MSE Q4_0 packing — shrinking moe_down by -2.37 GiB to 4.27 GiB — and apply the same rotation to SwiGLU activations in registers via 5 simd_shuffle_xor ops (~0.1 ms/step): W~ = Wdiag(s)H32, x~ = H32diag(s)x ⇒ W~x~ =Wx d* = ∑ihiw~iqi ∑ihiqi2 (4) QuaRot Block-32 orthogonal cancellation and closed-form weighted L2 scale refit (-0.47 LcdPPL vs RTN Q4). One bug we hit: feeding an unrotated diagonal imatrix into the WHT32 repacker hurt quality because Hadamard mixes channels across each 32-element block, invalidating the original channel weights. Disabling unrotated imatrix whenever WHT32 is on fixed it cleanly. quarot block-32 hadamard rotation smears spiky channels before 4-bit quantization, cancels identically at runtime raw W_dn (spiky)× diag(s) H_3212-step MSE Q4_0rotated W_tilde (Q4_0)-2.37 GiB-0.47 PPLruntime (0.1 ms): SwiGLU x → 5 simd_shuffle_xor → W_tilde · x_tilde = W · x ## 3. Looped-transformer experiments: LoopCD & 2-pass bridges Inkling's 3-pass core opens up two loop-specific ideas: contrasting Pass 2 against Pass 1 (LoopCD), and skipping an entire pass to run 36 visits instead of 48 (WS2P). ### Runtime Loop-wise Contrastive Decoding (LoopCD) Following [LoopCD](https://arxiv.org/abs/2609.24196) (arXiv:2609.24196; see also [arXiv:2610.02185](https://arxiv.org/abs/2610.02185)), running Coda on Pass 1 gives an amateur distribution zref; contrasting it against Pass 2's zfinal amplifies what the final pass added, gated by top-2 margin and masked by an APC floor: = 199,998: <|end_message|>, EOS) must be exempted or turn-ending breaks.">zcd = zfinal + ωeff (zfinal−zref), ωeff = ωmax · (1− (p(1)−p(2)) ) 𝒱head = { v: pfinal(v) ≥ α maxu pfinal(u) } (5) Uncertainty-gated LoopCD-Adaptive. Special control tokens (id >= 199,998: <|end_message|>, EOS) must be exempted or turn-ending breaks. Fused Metal kernels (cpu_max_diff ≤ 0.00001, next_kv_diff = 0.000000) hit 24/24 on reasoning once we exempted control tokens (id ≥ 199,998) from contrast, but running Coda twice slowed decode to 62.5 tok/s (236.6 s). That makes LoopCD more useful as an offline reference teacher than a fast runtime default. ### Warm-Start 2-Pass (WS2P-P0): Skip Pass 0, never Pass 2 Dropping Pass 2 collapsed immediately (RefPPL 26.4) because no global attention layers remain afterward to repair bridge error. Skipping Pass 0 instead lets a 0.08 ms FP16 linear bridge (inspired by [ReplaceMe](https://arxiv.org/abs/2505.02819), Shopkhoev et al. 2025, arXiv:2505.02819) map Prelude directly into Pass 0's exported bank (b0, b1), leaving 30 nonlinear layers (Pass 1 + Pass 2 + Coda) and 5 global attention layers downstream to absorb the approximation while staying 100% compatible with 3-pass .ikv caches and DSpark taps. Two fixes were needed to make WS2P-P0 work on real tasks: (1) adapting [Plato's Key](https://hazyresearch.stanford.edu/blog/2026-11-25-platos-key) (Cheng, Liu, Yau, & Ré, Stanford Hazy Research, Nov 2026) into an uncentered orthogonal Procrustes + Ridge bridge — centered fits produced huge prose-mean biases (||b0|| = 35.8, ||b1|| = 44.8) that pushed <|content_thinking|> tokens off-manifold (17/24), whereas uncentered Procrustes dropped bias norms to 1.76 / 2.38 and reached 22/24 at 116.4 tok/s; and (2) keeping P0-Bridge active during live multi-turn prefills (enter_prefill / leave_prefill) so new turns don't attend to unpopulated Pass-0 KV slots, plus folding an [AlphaEdit](https://arxiv.org/abs/2410.02355) (Fang et al., ICLR 2025, arXiv:2410.02355) null-space edit into moe_down at 0.00 ms runtime. M=X0⊤Y1 =UΣV⊤, Q=UV⊤ ΔW= argminΔ ‖X0(Q+Δ)−Y1‖F2 +λ‖Δ‖F2 (6) Uncentered Plato's Key Procrustes + Ridge P0-Bridge (bias norms 35.8/44.8 → 1.76/2.38). P⊥ = I−K0 (K0⊤K0+λI)−1 K0⊤, Vsafe=P⊥Vloop Wdn′ = (I−ηVsafeVsafe⊤) Wdn (7) AlphaEdit null-space projection folded into moe_down before Q4_0 repack (0.00 ms runtime). 2-pass bridges vs. 3-pass stage-mass skipping Pass 0 beats dropping Pass 2, but keeping Pass 0 at top-2 finishes faster overall Drop Pass 2PreludePass 0Pass 1BridgeCodacollapsed (PPL 26.4)WS2P-P0PreludeP0-BridgePass 1Pass 2Coda22/24 · 169s (116/s)WS3P-MassPreludeP0 top-2Pass 1Pass 2Coda24/24 · 153s (+Coda) Surprisingly, when we raced WS2P-P0 (116.4 tok/s) against 3-pass --turbo ws3p (99.2 tok/s) on 24 reasoning tasks, 3-pass finished 10 seconds faster (159.3 s vs 169.0 s) and scored 24/24 vs 22/24, because WS2P-P0 generated +24% more thinking tokens (19,668 vs 15,803). Finding out why led to the interpretability work below. ## 4. Mechanistic interpretability: Inkling's Effort, Overthinking & Stop circuit Drawing on [NeuronLens](https://arxiv.org/abs/2502.06809) (Haider et al., TMLR 2025, arXiv:2502.06809 — activation-range localization & intervention) and [CircuitLens](https://arxiv.org/abs/2510.14936) (Golimblevskaia et al., 2025, arXiv:2510.14936 — circuit & component-level pathway attribution), we built a residual-channel and 3,072-expert MoE routing probe directly inside inkling-engine (diag-mechinterp --subtest think-compress). Across four unrelated tasks (BFS, Levenshtein DP, histogram stack, inclusion-exclusion), we fed identical <|content_thinking|> prefixes while varying only the system header's Thinking effort level: 0.02 vs 0.15 vs 0.50, then compared that direction against spontaneous hesitation ("Wait, let me double-check...") and <|end_message|>/EOS. veff(ℓ) = 𝔼 [h(ℓ)∣eff=0.02] − 𝔼 [h(ℓ)∣eff=0.50] cos ( vhesitate(fout), −veff(fout) ) =+0.580 (8) Cross-problem Effort axis and its convergence with spontaneous hesitation inside Coda (L18 → fout). effort & overthinking convergence across layers separate in the loop, snapped together at L17 → L18 PreludeRecurrent Loop (3×)Coda Hub (L17–fout)-0.1+0.0+0.2+0.4+0.6cosineL00L04L05L09L11L13L15L17L18L20L22L23fout+0.51+0.63+0.51 snap+0.58Effort axis (cross-problem)Overthinking alignment All three signals converge onto a single Coda control subspace (L17 → L23 → fout): Sharp Coda emergence: Effort and hesitation are nearly orthogonal in Prelude/mid-Loop (-0.081 at L05, +0.048 at L11). Cross-problem v_eff jumps to +0.512 at L17 and peaks at L23 (+0.632), while hesitation snaps onto high-effort right across the Coda boundary (L17 +0.279 → L18 +0.513 → fout +0.580). - Same 3 super-outlier channels + dedicated experts: Effort, ThinkExit, and EOS all ride ch=1896 (+54.7 → +60.6; +206.7 at EOS), ch=1219 (-17.5 → -21.3; -89.3 at EOS), and ch=1449 (+12.7 → +13.7), raising <|end_message|> probability 2.0x–7.6x on identical thoughts. CircuitLens also surfaces dedicated deliberation experts (L18.E000, L16.E052, L13.E010; hesitation L09.E032, L07.E002) vs concise experts (L12.E004, L13.E013, L15.E088). - Why WS2P-P0 overthought: Ridge/Procrustes warm-start shrinkage damped ch=1896 and ch=1219, cutting ThinkExit probability roughly in half (0.131 → 0.081) and causing +24%–107% token bloat. WS3P-Mass kept those channels intact (ThinkExit 0.188, coding KL 0.043 vs 0.068). shared outlier channels & think-exit probability the same 3 EOS channels drive Effort — and get damped in 2-pass bridges EOS / Effort Outlier Shift (eff 0.50 → 0.02)ch=1896+54.7 → +60.6ch=1219-17.5 → -21.3ch=1449+12.7 → +13.72.0×–7.6× higher <|end_message|> prob on identical text- ThinkExit Prob (Same Prefix)3P Exact0.131WS3P0.188WS2P-P00.081 (+24% tok)bridge shrinkage damps ch 1896 & 1219 ## 5. Causal steering, "neuralese," and the sacred recurrent loop Turning that circuit into a real thinking-token compressor — without hurting hard reasoning or touching <|content_text|> prose — took five steps: Post-L23 (ver_fout) does 0.0%: injecting v_eff right before the LM head (485 → 485 tokens) has no downstream layers or KV feedback, so it can't shift a reasoning plan. - Mid-network L17 works: stepping back 6 layers to Coda entry sends v_eff through all 6 Coda Attention + MoE layers and Coda KV, cutting 5 smoke tasks by -18.2% to -23.5% (5/5). Injecting across all 3 passes (L17-AllPass) amplifies the same vector ~4×. - "Symbolic neuralese" (v_dense_l17): contrasting terse math shorthand against verbose re-checks across 6 domains gave a clean axis (cross-domain +0.521) that is 97% orthogonal to early stopping (cos = +0.232). Orthogonalized v_dense_perp cut our 5 smoke tasks -38.7% (1,132 → 694, 5/5). - Why loop perturbation fails on hard tasks: on the full 24-task temp = 1.0 suite, L17-AllPass v_dense_perp (a = 2.5) fell to 22/24 and 82.0 tok/s (-3.3% tokens, slower wall time). Injecting inside Pass 0/1/2 compounded through 36 MoE layers and introduced a DP base-case bug on code_wildcard_match. Both a targeted v_nocopy vector (cross-pair cos +0.254) and static PureEffBias router edits failed our hard canary (2/4–3/4, tokens up to +46%). vdense,⊥(17) = vdense(17)−projveff(vdense(17)) ‖vdense(17)−projveff(vdense(17))‖ · ‖veff(17)‖ (9) Orthogonal Symbolic Density vector v_dense_perp (cos = +0.232 with v_eff, cross-domain +0.521). real thinking trace: code_edit_distance (Levenshtein DP) Why unsteered Inkling wastes ~50% of thinking tokens on coding tasks Unsteered WS3P WS3P unsteered · 639 tok · PASS The user wants a Python function computing exact Levenshtein edit distance. Need provide clean code in python block... Implementation: def edit_distance(a: str, b: str) -> int: if a == b: return 0 prev = list(range(len(b)+1)) for i, ca in enumerate(a, 1): curr = [i] for j, cb in enumerate(b, 1): curr.append(prev[j-1] if ca == cb else 1 + min(prev[j], curr[-1], prev[j-1])) prev = curr return prev[-1] Check curr[-1] is left (i, j-1)... Good. Final only code block. Drafted the entire 15-line Python function verbatim inside <|content_thinking|>, then wrote it all over again in <|content_text|>. L17-Coda (α = 5.0) / v_dense_perp 307–341 tok (-47% to -52%) · PASS The user wants a Python function edit_distance computing exact Levenshtein distance. Need provide clean code in python block. Need ensure exact. Simple DP with O(min) space. Include docstring. No extra? Done. Skipped the verbatim double-draft and wrote a clean O(min(m, n)) implementation directly in <|content_text|>. Loop-safe L17-Coda (α = 5.0) ran 341 tok (-47.0% vs 644 tok in the 24-task eval) with 0% loop perturbation. real thinking trace: graphwalks_2 (26-edge directed BFS) What linear L17 steering can vs. cannot change Unsteered WS3P WS3P unsteered · 647 tok · PASS We need compute BFS distances from N31_0. Let's list edges carefully. Edges: N49_5 -> N96_14 | N31_0 -> N41_13 | N76_8 -> N95_12 | ... [copies all 26 edges verbatim] Start N31_0. Distance 0: N31_0. Neighbors: N41_13 (d1). From N41_13: N95_12 (d2)... RL-trained edge copying eats ~35% of the trace on small graphs — and overflows the 4,096-tok cap on 24–30 node graphs. v_nocopy vs. L17-Coda (α = 5.0) L17-Coda α = 5.0 rescued hard_gw_101 & hard_gw_102 # Linear L17 steering could not erase verbatim edge copying (v_nocopy cross-pair cos = +0.254): # copying is a multi-token RL working-memory routine, not a 1D feature. # # L17-Coda v_eff (α = 5.0) instead cut post-BFS re-checking chatter — finishing 24-node # hard_gw_101 (15/15 exact nodes) in 3,954 tok and 26-node hard_gw_102 in 3,830 tok. Linear steering cleanly controls the 1D Effort/Hesitation/ThinkExit axis, rescuing hard graphs from timeouts without disturbing BFS tracking. Across 8 standard + 4 Hard 24–30 node GraphWalks, L17-Coda α = 5.0 scored 10/12 vs unsteered WS3P 8/12. The fix: keep the 3-pass recurrent loop 0.000% untouched and inject v_eff_l17 strictly once at L17-Coda (Pass 2 → L18..23). On-GPU, k_steer_fout_masked (~0.008 ms) checks the live TOKS buffer across every slot in a speculative verify batch and zeros out as soon as <|end_message|> or <|content_text|> appears — leaving all prose and code bit-exact (after fixing a buffer(6) clobber where attention layers overwrote the token binding before L17 in kv256k.rs). ."> hcoda,t(17) ← hpass 2,t(17) + α· 𝟙 [ t∈thinking ∧ ∀j≤t: xj∉ {end_msg,text} ] · veff(17) (10) Loop-safe masked L17-Coda steering (--think-compress 5.0 --think-compress-coda). Zero drift in Pass 0/1/2 and bit-exact 0.000000 outside <|content_thinking|>. where linear steering works (and where it fails) the 3-pass recurrent core is sacred; inject strictly at Coda entry L17-AllPass / exp_bias — 22/24 (breaks DP) - ver_fout — 0% effectPreludePass 0Pass 1Pass 2Coda (6v)LM HeadL17-Coda (α = 5.0) · 0% loop drift · 24/24 · Hard 8/12 (+2 GW) ## Reasoning benchmarks & 12-task Hard Stress Suite Sweeping L17-Coda v_eff across α ∈ {0.0, 2.5, 5.0, 7.0} on all 24 tasks (8 GraphWalks BFS, 8 Python algorithm tests, 8 math problems at temp = 1.0, eff = 0.15) puts the Pareto sweet spot at α = 5.0: Configuration (temp = 1.0, eff = 0.15)24-TaskTokens (Δ)Coding Toktok/sWall12-Task Hardbase_3p (Lossless exact 3-pass)24/2413,390—75.3177.9 s—lcd_3p (3P LoopCD-Adaptive w=0.5)24/2414,786—62.5236.6 s—ws2p_v4 (2-Pass Plato's Key v4)22/2419,668—116.4169.0 s—ws3p_mass (Unsteered α = 0.0)24/2415,803 (+0.0%)6,08599.2159.3 s7/12 (99.3/s · 222.7s)ws3p_eff05 (Prompt eff = 0.05 control)24/2415,206 (-3.8%)—93.8162.1 s—ws3p + L17-AllPass v_dense_perp (a=2.5)22/2415,287 (-3.3%)—82.0186.4 sloop DP bugws3p + L17-Coda v_eff (α = 2.5)24/2415,834 (+0.2%)6,22999.4159.3 s—ws3p + L17-Coda v_eff (α = 5.0)24/2414,081 (-10.9%)4,469 (-26.6%)92.3152.6 s8/12 (101.4/s · 209.3s)ws3p + L17-Coda v_eff (α = 7.0)22/2412,728 (-19.5%)4,599 (-24.4%)101.5125.4 sover-trimmed gw_4 24-task reasoning pareto frontier (temp = 1.0) left = faster total wall time · up = higher real-task accuracy 24-task suite 12-task hard suite 90%95%100%120s140s160s180s200s220s240s← faster total wall time across all 24 tasks (s)real-task score →lcd_3pbase_3pws3p_eff05ws3p_masscoda_2.5coda a=5.0 (24/24 · 152.6s!)coda_7.0ws2p_v4allp_2.5 On the 12-task Hard Stress Suite, unsteered --turbo ws3p failed all four 24–30 node GraphWalks (0/4) by hitting the 4,096-token cap while endlessly re-checking its completed BFS (0 answer tokens emitted). With L17-Coda (α = 5.0), it exited thinking cleanly — rescuing hard_gw_101 (15/15 exact nodes in 3,954 tok at 106.2 tok/s) and hard_gw_102 (5/5 exact nodes in 3,830 tok), trimming min_window (-39.3%) and word_ladder (-33.2%), holding 4/4 on Hard Math, and finishing faster overall (101.4 tok/s, 209.3 s vs 222.7 s). ### Independent external benchmarks (310 paired tasks, 620 runs) To test outside our internal probes, we ran 310 paired tasks across four public, deterministically graded benchmarks at temp = 1.0, top_p = 1.0 comparing unmodified Baseline Inky (exact 3-pass Top-8 MoE, no speculation, no steering) against Faster Interp'd Inky (--turbo ws3p --think-compress 5.0 --think-compress-coda): Benchmark (temp = 1.0)NEffBaselineWS3P + CodaTokens (Δ)DecodeWall (Speedup)[HumanEval+](https://arxiv.org/abs/2305.01210) (Full, EvalPlus)1640.1592.7% (152)90.9% (149)-12.3%62.1 → 100.2/s25.3m → 14.2m (1.78x)[AIME 2025](https://huggingface.co/datasets/math-ai/aime25) (Full Olympiad)300.5083.3% (25)80.0% (24)-12.4% (-26.2% joint)58.0 → 80.6/s54.0m → 34.1m (1.58x)[GPQA Diamond](https://arxiv.org/abs/2311.12022) (Official OG)1000.5079.0% (79)75.0% (75)-25.1%59.6 → 83.1/s82.4m → 44.6m (1.85x)[GraphWalks BFS](https://huggingface.co/datasets/openai/graphwalks) (Official OG, 64K)160.5050.0% (8)56.3% (9)-2.6%36.3 → 119.7/s19.5m → 6.6m (2.97x)Combined (620 runs)310—85.2% (264)82.9% (257)-17.8%—181.2m → 99.5m (1.82x) Across all four suites, no individual score delta reached statistical significance (exact McNemar p = 0.453 on HumanEval+, 1.000 on AIME 2025, 0.523 on GPQA Diamond, 1.000 on GraphWalks; pooled p = 0.281), while saving 109k tokens (-17.8%), 81.7 wall minutes (1.82x overall; 2.97x at 64K context on GraphWalks), and cutting length truncations from 25 → 17. The main honest nuance turned up on GPQA Diamond at effort = 0.50: L17-Coda rescued 6 of baseline's 12 timed-out questions (12 → 5 truncations), but on non-truncated PhD derivations α = 5.0 (tuned at effort = 0.15) occasionally stopped early (89.8% → 78.9% on finished items) — pointing cleanly toward gentler effort-adaptive scaling (α = 2.5–3.5) at higher reasoning effort. ## End-to-end agent races: Rust coding & 200k-context search Stacking everything — .ikv cartridges + WHT-KV4 sparse paging + --turbo ws3p --think-compress 5.0 --think-compress-coda — on the exact same agent tasks from [part one](/research/inkling-ikv): ### Rust coding agent (/diff + /undo, 128k ctx) M17 (3-pass WS3P + L17-Coda) finished in 2:53.5 (173.5 s) — 3m 48.8s ahead of Dense --no-ikv (M2, 6:42.3, 2.32x wall) and 40 s ahead of 2-pass WS2P-P0 (M13, 213.3 s), needing only 12,209 generated tokens (-14.1% vs Dense) and passing 9/9 tests with 0 warnings. timelapse race — rust coding agent real turn-by-turn timing from matrix_v2 /diff + /undo transcripts (128k ctx, temp=1.0) M17M13M15M3M2 play 1x10x20x50x 2:53.5 / 6:42.3 jump: 0:00 start0:39 Dense finishes raw prefill2:54 M17 (WS3P+Coda) finishes3:33 M13 (WS2P) finishes6:42 Dense finishes M17 Sparse + .ikv + WS3P + L17-Coda (3-pass) done · 173.5s finished (26 turns · 12,209 tok · 88 tok/s · 9/9 tests · 0 warn) TTFT 30.0s · 12,209 tok · T26/26M13 Sparse + .ikv + WS2P-P0 (2-pass) decoding · 82.4 tok/s Now I need to make sure `record_undo` is only called on successful execution. In TTFT 41.1s · 14,225 tok · T38/46M3 Sparse + .ikv (pre-turbo) decoding · 31 tok/s Now patch. I'll add a helper method `record_snapshot_and_push` — but it needs to read prev contents before exec and push TTFT 22.3s · 4,726 tok · T15/22M2 Dense 128k (--no-ikv) decoding · 40.4 tok/s write history.rs — Now design edit history. Where to record snapshot? In execute_approved TTFT 36.0s · 5,600 tok · T4/14 .ikv stitch raw prefill wait decode (thinking / coding) shell / cargo test Synchronized split-screen (11×): M17 (2:53.5, 88.0 tok/s, 58.1k tok stitched in 0.73 s, 9/9 tests) vs M2 (Dense --no-ikv, 6:42.3, 39.4 tok/s). ### Ziz 3,000-word document search (--notools, 256k ctx) WS3P + L17-Coda stitched 195,922 tokens across 25 files (813 KiB) in 3.02 s (5.9 s total TTFT) — reading 4.9x more source text than Dense --no-ikv (12 files, 40k tok, 22.4 s TTFT) while still finishing 48.7 s ahead (1:37.7 vs 2:26.4, 1.50x wall) with 0 accidental loops across 2,113 words. Decode averaged 62.4 tok/s here (96.9 → 115.8 tok/s early, settling to 56.2 tok/s on Turn 9) instead of ~100 tok/s for four reasons on Turn 9 (65% of generated tokens): active context is 196k tokens (scoring ~3,100 far pages and attending over 8,192 far tokens per global visit), ws3p runs all 48 visits, exact sampling on creative prose has lower acceptance (E[L] ~ 2.0 vs ~3.3 on code), and DSpark's internal KV cap is global_cap = 32,768, so at 196k context the drafter can no longer see older essays when drafting quotes. timelapse race — 3,000-word document search real turn-by-turn timing from Ziz --notools 3k-word transcripts (256k ctx, temp=1.0) WS3P+CodaWS2P-CleanLosslessDense play 1x10x20x50x 1:37.7 / 2:26.3 jump: 0:00 start0:25 .ikv done reading (158k–196k)1:26 WS2P-Clean finishes1:38 WS3P+Coda finishes (196k ctx)2:26 Dense finishes WS3P+Coda Sparse 256k + .ikv + WS3P + L17-Coda (196k ctx) done · 97.7s finished (25 files · 2,113 words · 62.4 tok/s) TTFT 5.9s · 5,610 tok · T9/9WS2P-Clean Sparse 256k + .ikv + WS2P-Clean (158k ctx) done · 86.0s finished (15 files · 1,962 words · 69.3 tok/s) TTFT 4.7s · 5,472 tok · T11/11Lossless Sparse 256k + .ikv + Lossless DSpark (109k ctx) decoding · 52.2 tok/s =3000 words guide. Compile detailed. We can produce comprehe">Enough. Need write >=3000 words guide. Compile detailed. We can produce comprehe TTFT 4.0s · 5,012 tok · T11/11Dense Dense 256k baseline (--no-ikv, 40k ctx) decoding · 45.4 tok/s I have a good picture. Maybe quickly check glossary for undead terms — but it's TTFT 22.4s · 3,602 tok · T9/9 .ikv stitch raw prefill wait decode (thinking / writing) Synchronized split-screen (5×): Z3K_ws3p_coda5 (1:37.7, 62.4 tok/s at 195.9k ctx, 25 files in 3.02 s) vs Z3K_dense_baseline (2:26.4, 46.9 tok/s, 12 files, 22.4 s prefill). ## Everything we discovered about Inkling 2 Mini Pass 0 vs. Pass 2 asymmetry (0.709 vs 1.571 KL): Pass 0 tolerates 75% MoE pruning (top-2) with no reasoning loss and can be skipped via an uncentered Plato's Key bridge (22/24); dropping Pass 2 collapses immediately. - Orthogonal MoE variance scales as √f (and sigmoid routers need k2 = 8): damp = 0% over-amplifies variance (clause echoes), damp = 100% starves variance (1,759-dup collapse), and damp = 50% locks exact 1.00x variance per token at 0.00 ms. - Long-form prose catches failure modes PPL misses: every relaxed speculative acceptance policy (min_p, typical, SAM-gated EARS) eventually locked into loops over 3,000-word temp = 1.0 essays despite improving short-context PPL. - Effort, overthinking, and EOS are one Coda circuit: v_eff (+0.632 at L23), spontaneous hesitation (+0.580 at fout, snapping on at L18), and <|end_message|>/EOS all share super-outlier channels 1896, 1219, and 1449 — explaining why 2-pass bridge shrinkage halved ThinkExit probability and inflated thinking length by +24%–107%. - The 3-pass recurrent core is sacred; inject steering strictly at Coda entry: post-L23 steering does 0.0%, loop-interior perturbations (L17-AllPass, static exp_bias) compound across 36 layers and break hard DP/BFS, and linear vectors cannot erase multi-token RL working-memory habits like verbatim edge-copying. Injecting v_eff once at L17-Coda (α = 5.0) with an on-GPU TOKS guard keeps the loop and all prose 0.000% untouched while cutting coding tokens -26.6% and rescuing 24–26 node GraphWalks from timeouts. - Special control tokens need explicit guards: contrasting id ≥ 199,998 broke EOS in LoopCD, and re-binding buffer(6) to TOKS before k_steer_fout_masked was required so speculative batches straddling <|end_message|> never leak steering into prose. ### Reproducing the flagship preset --fast (the flagship WS3P + L17-Coda preset) is enabled by default for interactive TUI, CLI, and OpenAI API serving, and negated by --slow for the unmodified 0.000000 bit-exact lossless 3-pass baseline (53/53 unit tests across inkling-engine and inkling-ikv, check-verify 16/16 Dense / Sparse / Tree parity, 0.000000 sibling isolation, check-loopcd cpu_max_diff ≤ 0.00001). # Flagship interactive TUI (--fast ON by default: Sparse 256K + .ikv + WS3P + L17-Coda) inkling-ikv tui # Local OpenAI-compatible HTTP API (http://127.0.0.1:8080/v1, --fast ON by default) inkling-ikv serve --port 8080 # Revert to the unmodified exact 3-pass lossless baseline inkling-ikv serve --port 8080 --slow # Reproduce NeuronLens / CircuitLens & causal steering sweeps inkling diag-mechinterp --subtest think-compress inkling diag-mechinterp --subtest steer-coda inkling diag-mechinterp --subtest dense-think ## References - Inkling 2 Mini & DSpark: Thinking Machines Lab (Nov 2026), [Inkling 2 Mini release](https://thinkingmachines.ai/news/inkling-2-mini/) & [model card](https://huggingface.co/thinkingmachines/Inkling-2-Mini). - Speculative Decoding: Yaniv Leviathan, Matan Kalman, & Yossi Matias (ICML 2023), Fast Inference from Transformers via Speculative Decoding, [arXiv:2211.17192](https://arxiv.org/abs/2211.17192). - EARS: EARS: Efficient Adaptive Rejection Sampling for Accelerating Speculative Decoding in Large Language Models, [arXiv:2512.13194](https://arxiv.org/abs/2512.13194). - Decoupled MoE Renormalization: Xing Chen & Hengshuai Yao (2026), Training-Free Halving of Activated Experts in Fine-Grained Mixture-of-Experts Models, [arXiv:2609.04575](https://arxiv.org/abs/2609.04575). - SpecMoE: SpecMoE: A Fast and Efficient Mixture-of-Experts Inference via Self-Assisted Speculative Decoding (DAC 2026), [arXiv:2604.10152](https://arxiv.org/abs/2604.10152). - QuaRot: Saleh Ashkboos et al. (NeurIPS 2024), QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMs, [arXiv:2404.00456](https://arxiv.org/abs/2404.00456). - LoopCD: LoopCD: Loop-wise Contrastive Decoding for Improving Reasoning in Looped Language Models, [arXiv:2609.24196](https://arxiv.org/abs/2609.24196); Decoding Looped Transformers Better for (Almost) Free, [arXiv:2610.02185](https://arxiv.org/abs/2610.02185). - ReplaceMe: Dmitriy Shopkhoev et al. (2025), ReplaceMe: Network Simplification via Depth Pruning and Transformer Block Linearization, [arXiv:2505.02819](https://arxiv.org/abs/2505.02819). - Plato's Key: Vivien Cheng, Jerry Liu, Morris Yau, & Chris Ré (Stanford Hazy Research, Nov 2026), [Plato's Key: Swapping Facts Between Frozen Language Models via Rotation](https://hazyresearch.stanford.edu/blog/2026-11-25-platos-key). - AlphaEdit: Junfeng Fang et al. (ICLR 2025), AlphaEdit: Null-Space Constrained Knowledge Editing for Language Models, [arXiv:2410.02355](https://arxiv.org/abs/2410.02355). - NeuronLens: Muhammad Umair Haider, Hammad Rizwan, Hassan Sajjad, Peizhong Ju, & A.B. Siddique (TMLR 2025), Neurons Speak in Ranges: Breaking Free from Discrete Neuronal Attribution, [arXiv:2502.06809](https://arxiv.org/abs/2502.06809). - CircuitLens: Elena Golimblevskaia, Aakriti Jain, Bruno Puri, Ammar Ibrahim, Wojciech Samek, & Sebastian Lapuschkin (2025), Circuit Insights: Towards Interpretability Beyond Activations, [arXiv:2510.14936](https://arxiv.org/abs/2510.14936). - External Benchmarks: [EvalPlus / HumanEval+](https://arxiv.org/abs/2305.01210) (Liu et al., NeurIPS 2023, arXiv:2305.01210), [GPQA Diamond](https://arxiv.org/abs/2311.12022) (Rein et al., 2023, arXiv:2311.12022), [OpenAI GraphWalks](https://huggingface.co/datasets/openai/graphwalks), and [AIME 2025](https://huggingface.co/datasets/math-ai/aime25). [LLM-readable markdown version of this page](/research/inkling-turbo/llms.txt)