| Architecture | |
|---|---|
| model width, 2304 | |
| blocks of six layers: prelude, two core blocks, final block | |
| passes through the core, 3 in Inkling 2 Mini | |
| index of a pass, | |
| Attention residuals | |
| sum of the sublayer outputs of block ; the normalized embedding | |
| learned pseudo-query of a sublayer (Kimi Team write ) | |
| weight of source in a sublayer's depth mix | |
| a sublayer's input from the depth mix | |
| Message and gate | |
| sum of core block in pass , | |
| learned query of one input's message | |
| weight of in the message | |
| message from the previous pass | |
| gate matrices, , , | |
| the gate's 64-dimensional summary of and | |
| forget and gain terms , ; Goodfire write , | |
| gated input, | |
| Relative bias | |
| distance from the query back to a key, in tokens | |
| one head's projection and its 16 learned scales | |
| a token's 16 weights in one head | |
| the 16 shared profiles at distance | |
| bias added to the attention logit at distance , | |
| one head's bias-only attention, over | |
Context. A looped transformera transformer that applies some of its layers several times per token with the same weights, so the number of sequential steps per token grows while the number of stored parameters does not (Dehghani et al., 2018) adds serial computation per token without adding stored weights. Whether that pays off in a production model depends on which layers repeat and whether training stays stable when looping is added. Looping also matters for oversight. A plain transformer has a fixed budget of sequential steps per token, so multi-step reasoning must pass through a readable chain of thoughtCoT: the reasoning text a model writes before its answer, which a monitor can read. A loop raises that internal budget. Thinking Machines Lab (2026) released Inkling 2 Mini, an open-weights looped mixture-of-experts model, alongside a research variant whose pass count can vary at inference. No technical report accompanies the release; the account below draws on the release post, the model cards, the configuration, checkpoint, and Transformers code, and Goodfire's analysis (Lee et al., 2026).
Inkling 2 Mini repeats the middle half of its layers, restarting every pass from the output of the first block. The previous pass reaches the next only through a learned gate that the post says starts closed. While that gate stays closed, every repeated pass duplicates the first, so the looped model starts out identical to the plain 24-layer model. On Thinking Machines' scaling ladder, an unpruned model without the loop matches loss on 512k-token agentic traces with 7.5% less training compute but 140% more inference compute (2.4 times as much). Pruning two-thirds of the experts from a wider model and keeping most expert weights in 4 bits brings the checkpoint to about 20 GB. With more passes, the research variant follows longer chains of lookups without writing them down and solves problems with shorter, equally readable chains of thought. Its factual recall improves only slightly.
Setting. Inkling 2 Mini has 24 layers of width the dimension of every block sum, query and message in this note. Each layer has an attention sublayer followed by a mixture-of-experts sublayer that routes each token to 8 of 128 experts. The layers group into four blocks of six, , , , , the layers of each block. The prelude runs once, the core (layers 7 to 18) runs the number of passes through the core; indexes them times with shared weights, and the final block runs once. That gives 48 layer applications per token from 24 stored layers. The model holds 26.4B parameters. One pass activates 3.4B parameters per token, and each extra pass adds about 1.0B effective active parametersweights used per token with every pass through the core counted again: 3.4B at one pass, 5.4B at three, 7.4B at five, giving 5.4B at three passes. Expert weights are trained and stored in NVFP4a 4-bit floating-point format with an 8-bit scale per 16 values and a 32-bit scale per tensor; Thinking Machines run the forward pass of the expert layers in it from pretraining through RL. Reading note: End-to-end 4-bit training, except in the last four layers, which use 8-bit MXFP8. All other weights stay in BF16, and the full checkpoint is about 20 GB.
Depth mix via Block Attention Residuals. Inkling 2 Mini replaces the standard running residual sum with Block Attention Residuals (Kimi Team, 2026). Kimi Team introduced them because an unweighted residual sum grows with depth and dilutes each layer's contribution; Thinking Machines also want richer state to pass between loops. Each block accumulates a running sum of its own sublayers' outputs, starting from zero. Write for the RMS-normalized token embedding, the sum of the outputs of the attention and MoE sublayers of block ; is the RMS-normalized token embedding for block 's sum, and with , a vector rescaled to root-mean-square 1 for its RMS-normalized vector. Each sublayer learns a pseudo-querya vector learned for each sublayer; it is a parameter, so it does not depend on the token (Kimi Team write ) and forms a softmax-weighted mix of earlier blocks:where ranges over , the finished blocks, and the current block's partial sum. The sublayer then reads . Global attention layers (every sixth layer) learn three separate pseudo-queries for their query, key, and value inputs. Every pseudo-query starts at zero, making the initial mix a plain average; Kimi Team report that this prevents unstable early training.
Restarting each pass from the prelude. In pass through the core, the depth mix restarts from the prelude. Its sublayers mix , , and pass 's own partial sums of the two core blocks, and the sum of block , , in pass through the core, which start at zero. Information from pass arrives only through a separate message, a softmax mix of the two core blocks' sums from the previous pass . Each core layer has four inputs: attention query, key, value, and the MoE input. For , each input uses its own learned query to mix pass 's core block sums:Each message query starts at zero, so begins as the plain average of the two normalized block sums.
The rank-64 gate. Each of the four inputs merges the message with the current pass's depth mix through a rank-64 gate built from learned matrices a matrix that compresses the normalized input and message to 64 numbers; the code's down_proj, a matrix that sets how much of the current pass's input is damped or amplified; the code's forget_gate_proj, and a matrix that sets the gain on the message; the code's message_gate_proj:Both norms omit a learned gain. Here summarizes the two vectors, and every coordinate of the forget term and gain term lies in . Per coordinate and per token, damps or amplifies up to twofold while adds or subtracts . No source states why each input gets its own gate. One possibility (an inference) is that cached keys and values absorb a different share of the previous pass than the query reading them. Every pass uses the same weights and sees only the prelude and pass 's message, so passes after the first repeat one fixed step that can run any number of times. After pass , the final block reads and .
Closed gate equals the plain model. Suppose and why: then and the message is dropped, so exactly; a nonzero alone would rescale , and the passes would no longer repeat the first one for every core input. Then everywhere, so pass 2 receives the same inputs and applies the same weights as pass 1, and pass 3 repeats pass 2:The final block receives the exact one-pass sums, so the output matches the 24-layer model without a loop. The release post states that the gate starts closed and opens during training. No training code is public, and the Transformers implementation initializes gate matrices like ordinary linear layers. One matching initialization (an inference) sets with a random , leaving the gate closed at step zero while both and receive nonzero gradients. The match is exact because each pass restarts from the prelude. If each pass took the prior pass's output directly, adding a pass would alter the output at once unless the repeated layers acted as the identity. With a closed gate, restarting from the prelude lets a non-looped checkpoint switch to three passes with zero change in loss, matching the post's claim that looping can be introduced smoothly mid-run.
Loop placement. In Inkling 2 Mini, the loop goes in the middle of the stack. The authors' intuition is that the first and last layers translate between token embeddings and internal representations, while middle layers do more abstract computation. With equal training compute and three passes, looping layers 7 to 18 beat looping layers 13 to 24 on 27 of 28 evaluations. At training step 2,000, an unlooped model needed an estimated 1.51 to 1.91 times the compute to match the middle loop's loss, versus 1.24 to 1.36 times for the last-layer loop.
Mainline Inkling layer design. Outside looping and pruning, each layer follows Thinking Machines' mainline Inkling recipe for efficiency and long context. Attention alternates five 1,024-token sliding-window layers with one global layer, and every layer pairs 24 query heads with 8 key-value heads. Position enters through a learned relative bias rather than RoPErotary position embedding: each query and key is rotated by an angle set by its position, so attention scores depend on relative position (Su et al., 2021), which Thinking Machines report performs better and extrapolates better to long sequences. Each token computes 16 weights per head over 16 shared distance profiles that are zero beyond 1,024 tokens. Past position , global layers scale their queries and these 16 weights by , likely to keep attention from flattening as keys accumulate (an inference). Width-4 causal convolutions sit after the key and value projections and on each sublayer output, mixing every token with its three predecessors. They likely give each layer cheap local context (an inference; the post gives only the general aim).
Reading layer 1's relative bias directly from the weights. Without RoPE, the first layer gets nearly all of its sense of distance from this bias, and each token sets its own (computed here from the released weights). Because layer 1's input is simply , the token's own embedding, its bias depends on the token alone and can be read off over , the softmax of one head's bias below, is the attention the head would give if every key had the same content score; its median distance is the head's reach for that token. Reading notes: Position in attention, Reading a model's weights across the entire vocabulary. In a single head, a token's 16 weights and logit bias at key distance the distance in tokens from the query back to a key; is the token itself areHere a matrix, the head's rows of the projection that sets the 16 weights; the code's wr_du is the head's projection, a vector of 16 learned scales, one per weight, separate for each head holds its learned scales, , which shrinks a vector longer than 8 to length 8 and leaves shorter ones unchanged caps the vector norm, and the 16 learned profiles' values at distance , one column of the bank shared by the heads holds the 16 shared profiles at distance . On 2,048-token samples of English text and Python code, removing the bias leaves layer 1's attention nearly uniform across the 1,024-token window, putting only 1% of mass within 8 tokens. Restoring the bias raises that share to 28%. Keys also pass through the width-4 convolution, so a key at distance carries its three preceding tokens as well.
Averaged across all 24 heads in layer 1, the bias takes nearly the same shape for every token: highest at the previous token, near at the token itself, and decaying with distance. Individual heads specialize sharply. Across nearly all of the 8,000 commonest tokens, six heads focus on the preceding token or two, five reach over 100 tokens back, and five shift their reach with the token. Exceptions include the newline token, which turns two local heads broad. Head 16 (numbered from 0, as in the code) is one of those five. Under its bias alone, its median attention distance is at most 4 tokens for "of," "to," and "by," yet over 300 tokens for "in," "on," and "at."
Stabilizers, routing, and the index-function pattern. Several smaller mechanisms keep activations and logits bounded. In attention, queries and keys are clipped to norm , values are RMS-normalized, each head adds a token-dependent zero-value sink logit, and a sigmoid gate scales the output. Tanh softcaps bound SwiGLU's linear factor at 4, its up-projection at 25, and the output logits at 30. The MoE router follows DeepSeek-V3, using sigmoid scores to select 8 of 128 experts. A per-expert bias enters only the routing choice to balance load without an auxiliary loss. Attention residuals, the learned depth mix above, in place of the unweighted sum of all earlier sublayer outputs. Reading note: Attention residuals, the cross-pass messages and gates, the MoE router, and the relative bias all learn where to read from. A Twitter thread (November 2026) calls this shared pattern learning an index function.
Pruning and distillation. Training began with 384 experts per layer and 8 active per token, then midtraining deleted the 256 least-used experts in each layer. Pruning removed about 49B of roughly 75B parameters while leaving active parameters unchanged, assuming the deleted experts matched the checkpoint's weights per expert (computed here). Training then continued on 1T tokens distilled from a larger internal Inkling model, which the authors report recovered pre-pruning performance. Post-training combined SFT, RL, and on-policy distillationtraining a student on its own sampled outputs against a teacher's token probabilities; here used for alignment, as for Inkling 2 Small for alignment. Because the weights ship in the precision they were trained in, nothing is lost to post-training quantization.
Benchmark results. On the authors' evaluations, Inkling 2 Mini leads open-weights models under 100B total parameters on most agentic coding benchmarks, scoring 48.2% on DeepSWE v1.1 against 42.2% for dense Qwen3.8-27B. It trails Qwen3.8-27B on GPQA Diamond (86.6% vs. 90.5%) and knowledge work (GDPVal-AA 1319 vs. 1427). The post also flags multi-turn chat as a weakness (50.0% on MultiChallenge). Factual recall sits in line with models of its total parameter count, consistent with facts living in stored weights that looping does not add.
Memory in training and long-context inference. Looping saves memory only on quantities that scale with stored parameters. Weights, gradients, and optimizer states stay tied to the 24 stored layers. Backward-pass activations scale with the 48 layer applications and sequence length. That doubles the activation memory of the same weights run once and roughly matches an unlooped 48-layer model of equal compute. Checkpointing and offloading trade that memory for recomputation or host bandwidth as usual. At inference, each pass keeps its own key-value cache in every core layer. Because sliding-window caches cap at 1,024 tokens, only global layers grow with context, and the loop doubles the number of growing caches from four to eight. All cache figures below are computed here from the configuration and code. Each global layer stores a BF16 key and value for 8 heads of dimension 128 per token:Across the full 1M-token window ( tokens in config), that takes 32 GiB versus 16 GiB unlooped, while the 40 sliding-window caches cap at 160 MiB total. On a 32 GB device with about 20 GB in weights, the remaining 12 GB or so holds cache for at most about 370,000 tokens. The 5:1 sliding-to-global ratio holds long-context cache to a sixth of an all-global looped stack (192 KiB per token).
Cross-pass cache compression and decoding speed. Two recent methods target redundancy across per-pass caches, though neither has been tested on Inkling. LoopVQvector quantization of a looped model's key-value cache that codes channels from several passes together, with codebooks fine-tuned so the model's outputs match those of the full-precision cache (Cheong and Yoo, 2026) jointly vector-quantizes passes at 0.5 bits per element on two other looped models (Ouro and Huginn) and outperforms unlooped KV quantizers. FlashLoopan inference method for looped transformers that updates only the few tokens whose states still change between passes, sparsifies attention and quantizes the difference between adjacent passes' keys and values (Yang and Liu, 2026) is training-free and quantizes differences between adjacent passes' caches. Decoding speed is also bounded by weight reads per token, which grow with looping because each pass re-reads the core. In llama.cpp with a local quantized GGUF, attention runs in 8-bit Q8_0 rather than BF16 while most experts stay in 4-bit NVFP4 as released. The read and speed figures below are computed here on that model: each token reads about 4.0 GB, with 1.8 GB from core passes 2 and 3. Eight desktop CPU threads generate 9.3 tokens/s, or 86% of memory bandwidth. Placing attention and the experts of layers 4 to 18 on a 12 GB RTX 5070 reaches about 40 tokens/s.
What extra passes add. The research variant, TML-d24-varloop-research, shares Inkling 2 Mini's pretraining and initial midtraining. Late midtraining then sampled 1 to 5 passes in the ratio 1:2:6:2:1, and post-training used 3 passes. On N-Hop Lookupa Think Fast task: the model gets several tables of fictional entries and must follow a chain of lookups and answer without writing anything; five answer options, so guessing scores 20% (Gould et al., 2026), the early passes each let the model follow about one more hop. The longest chain solved above 50% rises from 2 hops at one pass to 3 at two, 4 at three, and 5 at five. At ten passes, twice the training maximum, it does not degrade and improves on 6 hops from 32.1% at five passes to 43.4%. On a Think Fast subset, its no-CoT time horizonthe human solving time at which a fitted curve of the model's success on tasks that take humans time crosses 50%, with answers forced to start at once, without a chain of thought (Gould et al., 2026) climbs from 16 s at one pass to 37 s at three, then levels off (42 s at five, 40 s at ten). Closed-book recall rises only slightly between one and three passes, with SimpleQA Verified moving from 6.3% to 7.3% and AA-Omniscience accuracy from 15.5% to 18.4%. Long-context retrieval moves most, as MRCR v2a long-context test: a long conversation holds several near-identical requests and their answers, and the model must reproduce the answer to one specified request; here 8 such requests in 256K to 512K tokens jumps from 27.2% to 89.2%.
Fixed-pass models break off distribution. Unlike the research variant, Inkling 2 Mini trained only at three passes, so other pass counts sit out of distribution. Overriding the pass count in llama.cpp breaks greedy decoding on four short prompts (computed here with the local quantized model). At two passes, three prompts collapse into repetition and the fourth gives $9 instead of $6 as change from $10 for 12 pencils at 3 for $1. At one pass, the model loops without answering any of the four. The same quantized weights answer all four correctly at three passes, ruling out quantization alone as the cause.
Shorter chains of thought and lower read cost. With more passes the chain of thought gets shorter and stays readable. On GPQA Diamond questions solved at every pass count from 1 to 5, average reasoning length drops from 3,703 tokens at one pass to 1,731 at three and 1,661 at five. Between one and five passes, sentence length and dictionary-word share barely change, while backtracking words like "wait" and "hmm" fall from 9.7 to 3.6 per answer. On GPQA Diamond overall, the variant's best one-pass score (71.4% at 12,083 reasoning tokens) trails its cheapest three-pass score (77.5% at 2,337 tokens). Count weight reads per answer as reasoning tokens times effective active parameters, excluding context attention (computed here):Three passes reach higher accuracy with about a third of the weight reads.
Oversight and monitorability. At this scale, extra passes expand internal computation without measurably hurting chain-of-thought monitoring. Neither model reliably reshapes its reasoning on request. On CoT-Control-QAquestions from GPQA, HLE and MMLU-Pro paired with an instruction about the chain of thought itself, such as avoiding a keyword of the question; a response counts if it follows the instruction (Yueh-Han et al., 2026) over chains of 750 to 1,250 tokens, Inkling 2 Mini and the three-pass variant comply at most 0.1% of the time, versus 1.3% for Qwen3.8-27B. That rate is too low to compare pass counts. In LinuxArenaa control evaluation: an attacker model does a realistic software task and also tries to complete a hidden malicious side task, and a monitor model flags suspicious episodes at a 1% false-positive rate, a weaker monitor (Qwen3.6-35B-A3B) reading the chain of thought misses at most 0.6% of the variant's attacks at any pass count from 1 to 5. When the monitor sees only tool calls and outputs, 1.0% to 5.0% slip past with no consistent trend. Even so, the 95% intervals at one pass (0.2% to 2.4%) and five passes (2.4% to 10.2%) only touch, so a rise with passes is not ruled out. Because the variant has 3.4B to 7.4B effective active parameters and no-CoT horizons under a minute, the post notes that monitorability must be re-tested at larger scale.
How passes communicate. Goodfire (Lee et al., 2026) decomposed each sublayer input into exact contributions from earlier sublayers to inspect cross-pass flow. On web text, later passes read the previous pass mainly through block 3. Layer 18 pushes one coordinate strongly positive at the end of passes 1 and 2 and clears it at the end of pass 3. That coordinate is among the largest contributors to the block-3 preference. From weights and activations alone (without an intervention), Goodfire interpret it as a routing signal for the next pass. The logit lensapplying the final norm and unembedding directly to an intermediate state to read off a next-token distribution decodes intermediate states only near the end of each pass. Both a tuned lensa learned affine map from an intermediate state to the final layer's state, followed by the unembedding and a coda lens, which runs the final block on an intermediate state, decode intermediate passes well.
Strength of the evidence. The configuration and checkpoint confirm the architecture layer by layer. Pass sweeps on fixed weights cleanly measure what extra passes do inside the variant, especially N-Hop Lookup, which isolates serial computation from stored knowledge. Comparisons arguing for looping over an unlooped model are thinner. The 140% inference-compute headline is a single sentence without model size, token count, or compute-accounting details. The placement ablation is read at training step 2,000. The variant trained mostly at three passes and did RL only at three. Its one-pass scores (0.7% on DeepSWE v1.1 vs. 47.4% at three) measure a model deprived of expected steps rather than an unlooped baseline, a caveat the authors note. The no-CoT horizons carry wide 95% intervals (0.2 to 25.2 s at one pass, 3.6 to 51.6 s at three) and rely on prefilled answers from models never trained to skip CoT. The authors ran all benchmarks using harnesses that vary across models.
Terms
- Looped transformer
- applies some layers several times per token with shared weights
- Prelude, core, final block
- layers 1-6 run once, layers 7-18 run times, layers 19-24 run once
- Attention residuals
- a sublayer's input is , a softmax mix of block sums, instead of a running residual sum
- Restart from the prelude
- every pass mixes , and its own block sums, which start at zero
- Message
- , read from the previous pass
- Gate
- , , , rank 64
- Relative bias
- each token's query adds at distance ; in the first layer it gives nearly all the sense of distance
- Closed gate
- : every pass repeats the first, so the model is the plain 24-layer model
- Effective active parameters
- 3.4B at one pass plus about 1.0B per extra pass; 5.4B at three
- Pruning and healing
- 384 to 128 experts per layer in midtraining, then 1T tokens of distillation
- No-CoT time horizon
- human solving time at which the model's fitted accuracy without a chain of thought is 50%
Sources
- Thinking Machines Lab. Introducing Inkling 2 Mini. Thinking Machines Lab (blog post), 2026.
- Thinking Machines Lab. Inkling 2 Mini Model Card. Thinking Machines Lab (model card), 2026.
- Thinking Machines Lab. TML-d24-varloop-research Model Card. Thinking Machines Lab (model card), 2026.
- Thinking Machines Lab. thinkingmachines/Inkling-2-Mini (weights and configuration). Hugging Face, 2026.
- Thinking Machines Lab. thinkingmachines/tml-d24-varloop-research (weights and configuration). Hugging Face, 2026.
- Andrew Lee, Kamesh Krishnamurthy, Jack Merullo, Dan Balsam, and Ekdeep Singh Lubana. Interpreting Inkling 2 Mini. Goodfire Research (blog post), 2026.
- Hugging Face Transformers contributors. Inkling2Loop model implementation (modeling_inkling2_loop.py and configuration_inkling2_loop.py). Hugging Face Transformers pull request #51050 (open), read at commit 6173a2f679ff4ed393afc499aefc569da7e68bc1, 2026.
- Thinking Machines Lab. Introducing Inkling. Thinking Machines Lab (blog post), 2026.
- Kimi Team. Attention Residuals. arXiv preprint, 2026.
- Dewi Gould, Francis Rhys Ward, et al. Think Fast: Estimating No-CoT Task-Completion Time Horizons of Frontier AI Models. arXiv preprint, 2026.
- Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Łukasz Kaiser. Universal Transformers. ICLR, 2019.
- Minsoo Cheong and Sungjoo Yoo. LoopVQ: Sub 1-bit KV Cache Quantization for Looped Transformers. arXiv, 2026.
- Wanqi Yang and Shiwei Liu. FlashLoop: Fast and Memory-Efficient Looped Transformers via Lazy Updates. arXiv, 2026.
Connected notes
- MuonNanoGPT speedrun · Fixed scales for stable training
Measuring a weight change by how far it moves a unit-RMS input gives the update , which, when and the gradient has full rank, moves the output of every unit-RMS input by exactly whatever the width, which is the P property, here derived from a choice of norm.
- Parametrization across width and depthDeep Learning Alchemy · Additive paths carry signal through depth and time
In five-step stress tests at width 64, the branch outputs of standard P add up to a residual stream with RMS about 33 at depth 1,000 at initialization, while Depth-P's branch multiplier holds it near 1.3 and gives the lowest loss at large depth after five updates. CompleteP's holds it at 1.0 but overcorrects, since independently initialized blocks add like independent terms.
- PPO and RLOO for language modelsReinforcement learning for reasoning · Fixed scales for stable training
The reproduction draws the reward head's weights with standard deviation , shifts the reward so reference summaries score 0 on average, and whitens advantages to mean 0 and variance 1 in each batch, so the signal reaching the policy has a fixed size.
- Matrix scaling and Sinkhorn's theoremMatrix scaling and optimal transport · Additive paths carry signal through depth and time
Sinkhorn-Knopp projects any positive matrix onto a unique doubly stochastic scaling , which mHC runs for 20 iterations on the entrywise exponentials of its learned mixing matrices so multi-stream products stay bounded across depth.