Pith.

Machine Learning · arXiv:2611.03526 v1 · submitted 2 Nov 2026 · 41 references

Library of Layers (LoL): Adaptively Ordering Transformer Layers at Runtime

Abdellah Rahmani, Sean McLeish, Ang Li, Sanae Lotfi, Pascal Frossard, Micah Goldblum

The paper says

“Computer programmers chain together the same reusable computational primitives, for example, conditional statements or loops, but in different orders to implement different algorithms. In contrast, existing language model architectures always execute their layers in the same order.”

more of the abstract

We introduce Library of Layers (LoL), an architecture that dynamically orders its layers during inference to solve the problem at hand. LoL has a single hyperparameter, the size of its global library of transformer blocks, that allows it to transition seamlessly between parameter reuse and sparsity, generalizing the parameter-efficiency and FLOPs-efficiency tradeoffs of dense, depth-recurrent, and mixture of experts architectures in one unified family. We show that LoL achieves competitive performance with all three above baselines when pretrained on text data. On synthetic sudoku and maze data, we observe that the model employs distinct layer orderings to implement different solution strategies, and we can intervene on routing to force a model to apply a specific solution strategy to a problem instance. In a multilingual natural language setting, we find that LoL chooses different layer order patterns based on language and script. Similarly, we train LoL on safety data and fit probes to its router outputs, finding that these probes distinguish safe from unsafe text with high AUROC. LoL provides a path toward a future in which models dynamically compose their own computational graph, enabling more efficient and controllable reasoning.

from the abstract

Pith says

Machine review · deepseek-v4-flash · 3 Nov 2026 · what was read was not recorded · not checked by a person

It can be wrong. Challenge this review or reply to it.

Holds up, with conditions. LoL is a genuinely new architecture whose adaptive-ordering result survives close reading, but the looped baseline needs an attention-pattern control before the competitive claim is clean. This line is wrong

3 major objections · 4 minor

How often objections from reviews like this one are right: not yet measured

Are you an author? What you can do.

Not checked: figures, code, what the 41 references say.

The paper says, at Section 4.3.1, Figure 5

The review did not quote this passage.

Pith says: Objection 1 of 3 · major

The comparison with Huginn looped transformers is confounded by an unmatched attention pattern. LoL's routed core always uses strided window attention with W=128, S=64 in natural-language experiments (Appendix A), but Section 4.3.1 does not state what attention pattern the Huginn baseline uses.

more of objection 1

This matters because the paper's own numbers show that attention pattern is not neutral for this comparison: Table 1 reports ARC-Easy 40.8 for full-attention vanilla versus 49.5 for sliding-window vanilla, a difference of 8.7 points that is much larger than the LoL-versus-baseline gaps that support the competitiveness claim; Figure 10 likewise shows a visible effect of attention pattern on training loss. By contrast, Section 4.3.2 explicitly states that the MoE baseline 'uses strided attention at the same depths as LoL,' which shows the authors know how to control for this. As written, parity in Figure 5 could be attributable to the windowing scheme rather than to adaptive layer ordering. Please report the Huginn attention configuration, and ideally add either a Huginn variant with strided attention or a LoL variant with the baseline's attention pattern, so that the effect of dynamic ordering is isolated.

The paper says, at Sections 4.3.1 and 4.3.2, Figures 5 and 6

The review did not quote this passage.

Pith says: Objection 2 of 3 · major

The competitiveness claims against looped transformers and MoE models rest on cross-entropy loss alone. Figure 5 reports evaluation loss and training loss; Figure 6 reports training loss; neither section reports downstream benchmarks of the kind used in Table 1 for the dense comparison.

more of objection 2

The abstract and Section 1 state that LoL is 'competitive with all three baselines when pretrained on text data,' but for two of the three baselines 'competitive' is operationalized only as comparable next-token loss on FineWeb. Given that loss gaps and downstream benchmark outcomes frequently diverge (and the paper itself invokes this divergence in Section 4.3.2 for the MoE comparison), the unified claim would be materially strengthened by adding at least a small downstream evaluation set for the looped and MoE regimes, or by tempering the claim to specify that those two comparisons are loss-based.

The paper says, at Abstract and Section 3

The review did not quote this passage.

Pith says: Objection 3 of 3 · major

The abstract's claim that LoL has 'a single hyperparameter' is an overstatement relative to the architecture as specified. The library size L is the knob that is varied to span the three regimes, but the model also requires the core depth D, the window size W and stride S, the depth-specific vectors e^(l), the FiLM scale/bias parameters, the router noise and load-balancing bias, and the depth-growing schedule (Sections 3.2.1–3.3, Appendix A).

more of objection 3

The conceptual point—that one parameter tunes the reuse-versus-sparsity tradeoff—is clear and worth keeping, but the phrasing should acknowledge the additional settings that are held fixed in the experiments.

4 minor objections

The paper says, at Table 1, Section 4.2

Pith says: minor objection 1 of 4

The sentence 'almost all evaluations are competitive and remain within 2 standard errors of each other on all benchmarks' is not a statistically valid equivalence statement; the absence of a difference beyond two standard errors is not the same as showing the models are equivalent. The claim would be better phrased as 'no consistent outperformance beyond sampling noise was observed,' especially since the full-attention vanilla model is 8.7 points below the other models on ARC-Easy.

The paper says, at Appendix C.5, Table 5

Pith says: minor objection 2 of 4

The text says the strided-window vanilla model 'performs slightly worse than the vanilla and vanilla sliding window attention models,' but Table 5 shows strided-window vanilla scoring 48.5 on ARC-Easy versus 40.8 for full-attention vanilla. The sentence evidently refers to training loss (Figure 20) and not to the benchmarks; please make that explicit to avoid an apparent contradiction.

show 2 more

The paper says, at Section 4.1.2, Abstract

Pith says: minor objection 3 of 4

The abstract's wording that routing probes 'distinguish safe from unsafe text with high AUROC' silently drops the caveat, stated in Appendix C.2 (b330), that the labels come from the Maini et al. classifier and that the results therefore measure agreement with those noisy labels. One clause acknowledging this in Section 4.1.2 (where the AUROC numbers are introduced) would prevent readers from over-interpreting the safety result.

The paper says, at Section 4.1.4, Appendix C.4

Pith says: minor objection 4 of 4

The maze strategy traces are verified for legality and correctness, but the mode-path extraction is performed with teacher forcing on validation data and then replayed with fixed residual weights; it would be helpful to state explicitly how sensitive the forced-path results are to the choice of the mean-probability threshold or to the aggregation window, since these choices define the mode path that is being evaluated.

What would settle it

Retrain the Huginn looped baselines (2×8, 4×4, 8×2) with the same strided window attention used by LoL (W=128, S=64) on the same 10B-token FineWeb setup, and overlay the resulting eval CE on Figure 5. If Huginn-strided matches or beats LoL at matched parameter counts, then the Figure 5 competitive result is explained by the attention pattern rather than by adaptive layer ordering, and the paper should add this control and soften the unification claim accordingly.

from the skeptic's reading

How the review went

4 readings by deepseek-v4-flash · 3 Nov 2026

  1. Reader holds up, with conditions confidence moderate
  2. Skeptic partly agrees 6 min 22 s · 39,314 tokens read, 16,496 written
  3. Editor wrote the verdict above 42 s · 40,263 tokens read, 5,254 written
  4. Referee major revision: 3 major objections, 4 minor 44 s · 39,666 tokens read, 5,650 written

Not run on this paper: the simulated authors' defence.

Pith did not check this review's objections against the paper.

The review in full

The review in brief, machine-written

LoL is a real new architecture worth peer review, and the main thing to check before acceptance is the looped-baseline comparison.

What is new: a router picks one complete transformer block per window at each routed depth, from a shared library, with strided window attention. Varying library size moves the family from heavy layer reuse to sparse computation. Gong et al. (2024) is the closest prior work, but they pretrain first, use top-k with weight averaging, and don't make per-instance ordering decisions. The causal-routing scheme is carefully built; training with depth growing and loss-free load balancing is sensible.

The strongest experiments are the synthetic ones. LoL learns distinct routing paths for five sudoku strategies and five maze algorithms, and forcing the mode path reproduces the requested strategy near 100%, even in mazes where all strategies share output syntax. That is a clean, hard-to-explain-away result. Multilingual routing and safety probing are lighter evidence, but honestly reported; the paper says the safety labels come from an external classifier [b330], and the shuffling control behaves.

The soft spots, in proportion. First, the Figure 5 looped comparison never states which attention pattern Huginn uses, while the MoE comparison explicitly uses strided attention at the same depths. The paper's own numbers show attention pattern is not neutral: full-attention vanilla scores 40.8 on ARC-Easy, strided-window scores 48.5 (Table 5), and Figure 10 shows loss differences. If Huginn uses full attention, LoL's parity could come from windowing, not adaptive ordering. If Huginn uses windowed attention, no problem, but the paper doesn't say. This is a reporting gap, not a fatal flaw. A fixed-order strided-window baseline in the looped setting would close it.

Second, the math experiments are on synthetic data (acknowledged [b155]), so the notable non-loss evidence is benchmark parity; the vanilla full-attention ARC-Easy anomaly is left unexplained. Minor. Third, the MoE comparison in Figure 6 lacks error bars; a 0.05 CE gap could be seed noise. The unification claim [b35] is slightly generous, but that is framing.

Bottom line: a solid architecture paper with one real baseline-matching gap. Send it to serious reviewers; ask for the Huginn attention-pattern control.

The strongest objection

The central claim that LoL is competitive with looped transformers while spanning the reuse regime rests on Figure 5, where LoL is compared to Huginn looped models. But LoL's core uses strided window attention with W=128, S=64 for all natural-language experiments (Appendix A), and Section 4.3.1 does not state that the Huginn baseline uses the same attention pattern. By contrast, the MoE comparison explicitly controls attention: "the MoE baseline uses strided attention at the same depths as LoL" (Section 4.3.2). This asymmetry matters because the paper's own ablations show attention pattern is not neutral: Figure 10 shows attention pattern changes training loss, and Table 1 shows vanilla full-attention scores 40.8 on ARC-Easy while vanilla sliding-window scores 49.5, a difference far larger than the LoL-vs-baseline gaps that support the competitiveness claim. If Huginn uses full causal attention, then LoL's parity in Figure 5 could be attributable to the windowing scheme rather than to adaptive layer ordering. That would not falsify LoL as an architecture, but it would undermine the load-bearing empirical premise that dynamic ordering is what makes the model competitive, and it would weaken the claimed unification across dense, recurrent, and MoE regimes.

The reader's weakest assumption already flagged that the reported competitive results might be an artifact of baselines' attention patterns, citing the vanilla ARC-Easy anomaly and synthetic math data. My stress-test pass sharpens this into a specific missing control: the looped comparison in Section 4.3.1 / Figure 5 does not state whether Huginn uses the same strided window attention as LoL, whereas the MoE comparison in Section 4.3.2 explicitly does. Given the paper's own evidence that attention pattern can move benchmark scores by several points (Table 1: 40.8 vs 49.5 on ARC-Easy between vanilla full-attention and vanilla sliding-window), this is a real confound for the competitiveness claim. I do not think it is fatal: the synthetic sudoku/maze intervention results are strong and largely independent of this confound, the MoE comparison already includes an attention-matched baseline, and the central architecture remains coherent. The concern is therefore a condition to resolve rather than a reason to reject. Since the reader's verdict is already CONDITIONAL and includes baseline-matching as a condition, my analysis does not move the verdict; it provides a precise, falsifiable test that would settle whether the condition actually lands.

The referee's report

If the empirical claims hold, the unifying view of dense, depth-recurrent, and MoE architectures as limits of one knob is conceptually valuable, and the controllability results on sudoku and mazes are stronger than typical 'router is interpretable' claims because the maze task holds output syntax fixed and isolates exploration order. The safety probe is partly de-risked by the document-level label-shuffling control (Table 2) and by the authors' explicit acknowledgment that the labels are produced by the Maini et al. classifier (b330); the paper also acknowledges that the math data is synthetic (b155) and that chat-safety interventions are an open question (b197). The manuscript ships public code, reports ablations for its design choices (Figures 7–10), and includes a strided-window vanilla control and an untied-router LoL control in the appendix (Table 5, Figure 20), which strengthens the dense-baseline comparisons. The main risks are concentrated in the looped and MoE comparisons, where baseline attention patterns and the exclusive reliance on cross-entropy loss leave part of the central competitiveness claim under-supported.

Pith's reading of the paper (a machine's summary, not the authors')

Transformer language models run the same layers in the same order for every input; this paper argues the order itself should be computed. Its claim is that a small router selecting, for each window of tokens at each depth, a block from a shared library of transformers makes a single architecture competitive with dense, depth-recurrent, and mixture-of-experts models, with the library size as the only knob separating those regimes. The deeper claim is that the learned orderings are meaningful and controllable: different sudoku and maze strategies get different routing paths, and forcing a path makes the model follow that strategy close to 100 percent of the time; languages route by script, and router probabilities separate safe from unsafe text at AUROC 0.95. If these claims hold, layer ordering becomes a learned, inspectable, and steerable part of the computation, not a fixed architectural decision.

What carries the argument. The load-bearing object is the routed core: at each of $D$ routed depths the sequence is split into windows whose boundaries shift by a stride between depths (strided window attention), and a top-1 router selects one block, or expert, from a shared library of $L$ transformer layers for each window. Each window is routed as a unit, using only mean hidden states of earlier windows (or, for the first window, the first token plus a learned depth vector), so causality is preserved; the chosen expert's residual update is scaled by the router's probability, which keeps gradients flowing to the router during end-to-end training. This combination is what makes an input-dependent ordering learnable at all: per-token routing causes a query-key mismatch that the authors find destabilizes training, while whole-sequence routing would freeze the ordering before later context arrives. A growing schedule that increases $D$ during training, plus depth-dependent normalization conditioning, completes the mechanism, and the extractable sequence of expert choices per window (the routing path) is the object the interpretability and control experiments operate on.

Core claim. The central claim is that dynamic, input-dependent layer ordering is learnable and useful: with no supervision on how to order blocks, a top-1 router trained end-to-end learns distinct execution paths for distinct inputs and tasks. With small libraries the same blocks are reused many times, matching looped transformers; with large libraries most blocks lie idle on a given forward pass, matching mixture of experts; and the paper reports competitive training loss and benchmark accuracy against all three baselines, including at 1B parameters in a FLOPs-matched comparison. The strongest evidence comes from the control experiments: on mazes, where all five search strategies share the same output syntax and differ only in the order cells are visited, extracting the mode routing path for a strategy and forcing it at inference reproduces that strategy's trace at close to 100 percent accuracy, and the same holds for five sudoku strategies with distinct syntaxes. The paper reads this, together with language- and script-dependent paths and a safety probe at AUROC 0.95, as showing that the execution order is itself a learned representation of the computation, one that can be read off and intervened on.

The premise it rests on. The load-bearing premise is that a router using only earlier-window statistics learns orderings that drive the reported behaviors, rather than learning correlations that would vanish under different windowing, attention, or data choices.

If the paper is right (Pith's inferences, not the authors')

A single checkpoint family can be deployed in either regime: set the library small to reuse parameters like a looped model, or large to idle blocks like an MoE, choosing the parameter-to-FLOPs tradeoff per deployment without retraining.

Extracted mode paths become a control interface: forcing a path at inference makes the model execute the associated strategy (five sudoku strategies, five maze searches) with close to 100 percent adherence.

Router probabilities provide a linearly readable safety signal on held-out text (sequence-level AUROC 0.95), so monitoring or filtering could run off the router alone rather than a separate classifier.

Because the same experts are reordered for different languages and scripts, compute can specialize per input class inside one parameter set, with Latin-script languages sharing near-identical paths.

The routed core can in principle execute more depths at inference than were used in training, giving a native mechanism for spending extra test-time compute.

A natural extension the paper leaves open is to steer rather than just probe: because router probabilities linearly separate safe from unsafe text, clamping or biasing the router away from safety-associated states during generation could become a control channel for filtering or behavior shaping without an extra model.

The maze result suggests the library itself may encode task-generic primitives: if the same experts reordered implement different search algorithms, then a library trained on one task family might solve a new task by learning only a new ordering, a transfer experiment the paper does not run.

The windowing design predicts a measurable scaling law: as the window size grows toward the full context, per-window adaptivity should coarsen and routing-path diversity should drop, so measuring router entropy against window size would test whether the ordering signal comes from fine-grained windows or from sequence-level statistics.

Check this review

Pith stored no record of this review's passes and took no fingerprint of it. Reviews made by code from 13 Nov 2026 on carry both.

How often reviews like this one are right

Reviews like this one: written by deepseek-v4-flash, where what was read was not recorded.

How often objections from reviews like this one are right: not yet measured

Every value above, in the review's public record (JSON)

Reviews by people

This review was written by a machine. No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and their review is published here whatever it concludes.

Request a human review

How Pith checks papers · The full audit of this paper

The paper

Abstract

Computer programmers chain together the same reusable computational primitives, for example, conditional statements or loops, but in different orders to implement different algorithms. In contrast, existing language model architectures always execute their layers in the same order. We introduce Library of Layers (LoL), an architecture that dynamically orders its layers during inference to solve the problem at hand. LoL has a single hyperparameter, the size of its global library of transformer blocks, that allows it to transition seamlessly between parameter reuse and sparsity, generalizing the parameter-efficiency and FLOPs-efficiency tradeoffs of dense, depth-recurrent, and mixture of experts architectures in one unified family. We show that LoL achieves competitive performance with all three above baselines when pretrained on text data. On synthetic sudoku and maze data, we observe that the model employs distinct layer orderings to implement different solution strategies, and we can intervene on routing to force a model to apply a specific solution strategy to a problem instance. In a multilingual natural language setting, we find that LoL chooses different layer order patterns based on language and script. Similarly, we train LoL on safety data and fit probes to its router outputs, finding that these probes distinguish safe from unsafe text with high AUROC. LoL provides a path toward a future in which models dynamically compose their own computational graph, enabling more efficient and controllable reasoning.

The paper's own sentences, arranged, kept beside the review and separate from it. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. No sentence in this record was written by a model.

abstract compiled · 2026-11-04

The authors' main claim, as the classifier picked it out 0.95

“LoL provides a path toward a future in which models dynamically compose their own computational graph, enabling more efficient and controllable reasoning.”

How the main claim is stated: hedged possibility 0.72

What the abstract itself states, as probabilities: claims first 0.17 · states limitation 0.09 · human participants 0.04 · controlled comparison 0.83 · randomized assignment 0.02 · states quantitative result 0.28 · compares with prior results 0.95 · mentions code or data availability 0.03

The abstract, sentence by sentence

This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.

SentenceRoleThe authors' own workStates the main conclusionStrength
Computer programmers chain together the same reusable computational primitives, for example, conditional statements or loops, but in different orders to implement different algorithms. background 1.00 0.04 0.02 asserted 1.00
In contrast, existing language model architectures always execute their layers in the same order. gap 0.61 0.05 0.03 asserted 1.00
We introduce Library of Layers (LoL), an architecture that dynamically orders its layers during inference to solve the problem at hand. contribution 0.98 0.87 0.19 asserted 1.00
LoL has a single hyperparameter, the size of its global library of transformer blocks, that allows it to transition seamlessly between parameter reuse and sparsity, generalizing the parameter-efficiency and FLOPs-efficiency tradeoffs of dense, depth-recurrent, and mixture of experts architectures in one unified family. method 0.69 0.47 0.16 asserted 1.00
We show that LoL achieves competitive performance with all three above baselines when pretrained on text data. result 1.00 0.95 0.20 asserted 1.00
On synthetic sudoku and maze data, we observe that the model employs distinct layer orderings to implement different solution strategies, and we can intervene on routing to force a model to apply a specific solution strategy to a problem instance. result 1.00 0.97 0.10 asserted 1.00
In a multilingual natural language setting, we find that LoL chooses different layer order patterns based on language and script. result 1.00 0.97 0.06 asserted 1.00
Similarly, we train LoL on safety data and fit probes to its router outputs, finding that these probes distinguish safe from unsafe text with high AUROC. result 0.99 0.97 0.07 asserted 1.00
LoL provides a path toward a future in which models dynamically compose their own computational graph, enabling more efficient and controllable reasoning. interpretation 0.71 0.09 0.72 hedged possibility 0.72

What kind of paper the classifier reports this is: method or tool 1.00 · evidence from observation or experiment 0.96

What was examined, and what was not

Sources read

  • arXiv listing abstract v1

Not examined

  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers

Levels run

  • P abstract

Not run

  • S sections
  • T body sentences
  • C citations
  • R cross-paper relations

How the labels were made

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-11-04: 1 request, 6,943 input tokens.

Every quoted sentence on this record is the authors'. Every label is from Pith's closed vocabulary, with the probability shown beside it. This record as JSON

Figures (22)
Figure 1 of the paper
Figure 1. We introduce Library of Layers (LoL), a novel architecture where the next executed transformer layer is chosen at runtime. We use strided window attention within the routed core to allow information to flow through the sequence dimension while using the same attention and MLP parameters for all tokens within each window. layers to remain inactive on a given forward pass. By changing only the library size, LoL there￾fore spans a continuum from highly reused, dense computation to highly sparse computation. We visualize our novel architecture in
Figure 2 of the paper
Figure 2. Library of Layers uses strided window attention and a top-1 router to allow for efficient training. LoL is made up of a prelude, a routed core, and a coda. The layers in the prelude and coda can attend over the whole sequence. In the core, the sequence is split into windows of W tokens, and at every routed depth a router selects one layer from the shared library per window (top￾left). Attention is restricted to each window, but the window boundaries shift by S tokens between successive routed depths, allowing information to flow across windows (Strided Window Attention, top-right).…
Figure 3 of the paper
Figure 3. Library of Layers learns distinct paths for different languages and distinct strategies when solving sudoku puzzles and mazes. Left: PCA projection of the routing paths of a 360M parameter LoL model trained on an equal mixture of 10 languages. We see the paths taken are dis￾tinct per language and Latin-script languages use similar paths. Middle and Right: We train 360M parameter LoL models to solve sudoku (middle) and mazes (right), using 5 different strategies. We then force each strategy’s mode path at inference time and see the models use the correct strategy (algorithm) with…
Figure 4 of the paper
Figure 4. Library of Layers is competitive with vanilla dense models. Left: Cross-entropy train￾ing loss over training FLOPs for 1B models. We see growing gives LoL an early loss advantage and all models finish with comparable training loss. Right: Heatmap of expert utilization of one LoL model. We see experts mainly tend to be used in groups of neighboring depths, but some are used throughout the model. 4.1.3 SUDOKU Next, we analyze forcing routing paths to control the sudoku solving strategy. We train the model with strategy information available only to the router, then extract a…
Figure 5 of the paper
Figure 5. Library of Layers is competitive with looped transformer models. Left: Cross-entropy evaluation loss, matching the number of unique layers in the core block of the LoL and looped trans￾former. We see LoL performs competitively with looped transformer models and offers more flexi￾bility in layer ordering. Error bars are min/max loss over 3 random seeds. We note larger variance for the LoL models as changing the random seed changes the paths explored during training. Right: Cross-entropy training loss over training FLOPs, averaged over 3 random seeds per model. We use 360M models for…
Figure 6 of the paper
Figure 6. Library of Layers is competitive with mixture of experts models. Left: Cross-entropy training loss over training FLOPs, averaged over 3 random seeds. We see growing gives LoL an early loss advantage and both models finish training with similar training losses. Right: Heatmap of expert utilization of one LoL model. We see some experts are heavily used by specific routed depths or neighboring groups of depths, while others are used diversely over depths, showing LoL learns to use the sparsity effectively. 5 DISCUSSION LoL generalizes the parameter reuse and sparsity of looped models,…
Figure 7 of the paper
Figure 7. Increasing depth over training saves FLOPs with only a minor increase in final loss.
Figure 8 of the paper
Figure 8. Loss-free load balancing (Wang et al., 2024) achieves a lower final cross-entropy loss when compared to auxiliary loss load balancing methods. B.2 BASELINES In
Figure 9 of the paper
Figure 9. Sharing router weights across routed depths causes minimal change in cross-entropy loss.
Figure 10 of the paper
Figure 10. Varying the attention pattern for dense fixed-depth models, we see full attention achieves
Figure 11 of the paper
Figure 11. Evolution of multilingual routing during training.
Figure 12 of the paper
Figure 12. Routing agreement on sudoku. Each panel shows one strategy, with window positions as
Figure 13 of the paper
Figure 13. Mode routing paths on sudoku. Each panel shows one strategy, with window positions
Figure 14 of the paper
Figure 14. Strategy adherence and sudoku solution accuracy under forced routing.
Figure 15 of the paper
Figure 15. Example of sudoku data. We input the grid into the model as a sequence, as shown below.
Figure 16 of the paper
Figure 16. Routing agreement on mazes. Each panel shows one strategy, with window positions as
Figure 17 of the paper
Figure 17. Mode routing paths on mazes. Each panel shows one strategy, with window positions as
Figure 18 of the paper
Figure 18. Strategy and maze solution generation under forced routing.
Figure 19 of the paper
Figure 19. Example of maze data. We input the maze into the model as a sequence, as shown below.
Figure 20 of the paper
Figure 20. Extended version of Figure
Figure 21 of the paper
Figure 21. Heatmap of expert utilization of LoL models shown in Figure
Figure 22 of the paper
Figure 22. Heatmap of expert utilization of LoL models shown in Figure

Figures are the authors', reproduced from the paper.

References (41)
  1. [1] Sangmin Bae, Yujin Kim, Reza Bayat, Sungnyun Kim, Jiyoun Ha, Tal Schuster, Adam Fisch, Hrayr Harutyunyan, Ziwei Ji, Aaron Courville, et al. Mixture-of-recursions: Learning dynamic recur- sive depths for adaptive token-level computation.arXiv preprint arXiv:2507.10524, on PitharXiv
  2. [5] 31 Preprint E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 E10 E11 E12 E13 E14 E15 E16 E17 E18 E19 E20 E21 E22 E23 Expert L0 L1 L2 L3 L4 L5 L6 L7 L8 L9 L10 L11 L12 L13 L14 L15 Core Layer 0 0 0 0 0 0 0 0 27 0 12 0 14 15 0 0 0 13 0 7 0 0 11 0 0 0 0 27 0 1 16 0 0 0 17 0 0 0 0 0 11 0 26 0 0 0 0 0 ... on Pith
  3. [6] 30 Preprint E0 E1 L0 L1 L2 L3 L4 L5 L6 L7 L8 L9 L10 L11 L12 L13 L14 L15 L = 2 Core Layer 0 100 100 0 77 23 80 20 23 77 20 80 77 23 80 20 23 77 20 80 77 23 80 20 23 77 80 20 100 0 20 80 Seed 42 E0 E1 100 0 80 20 100 0 20 80 23 77 20 80 77 23 0 100 77 23 80 20 23 77 20 80 77 23 ... on Pith
  4. [7] Ying Fan, Yilun Du, Kannan Ramchandran, and Kangwook Lee. Looped transformers for length generalization.arXiv preprint arXiv:2409.15647, on PithPith's reviewarXiv
  5. [11] URLhttps: //kellerjordan.github.io/posts/muon/. Ali Kayyam, Anusha Madan Gopal, and M Anthony Lewis. Do transformers need three projections? systematic study of qkv variants.arXiv preprint arXiv:2606.04032, on PithPith's reviewarXiv
  6. [12] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization.arXiv preprint arXiv:1412.6980, on PithPith's reviewarXiv
  7. [14] Aixin Liu, Bei Feng, Bing Xue, Bingxuan Wang, Bochao Wu, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chenyu Zhang, Chong Ruan, et al. Deepseek-v3 technical report.arXiv preprint arXiv:2412.19437, on PithPith's reviewarXiv
  8. [15] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization.arXiv preprint arXiv:1711.05101, on PithPith's reviewarXiv
  9. [18] Sean McLeish, Ang Li, John Kirchenbauer, Dayal Singh Kalra, Brian R Bartoldson, Bhavya Kailkhura, Avi Schwarzschild, Jonas Geiping, Tom Goldstein, and Micah Goldblum. Teach- ing pretrained language models to think deeper with retrofitted recurrence.arXiv preprint arXiv:2511.07384, on PitharXiv
  10. [19] URLhttps://ai.meta.com/blog/ llama-3-2-connect-2024-vision-edge-mobile-devices. Team Olmo, Allyson Ettinger, Amanda Bertsch, Bailey Kuehl, David Graham, David Heineman, Dirk Groeneveld, Faeze Brahman, Finbarr Timbers, Hamish Ivison, et al. Olmo 3.arXiv preprint arXiv:2512.13961, on PithPith's reviewarXiv
  11. [20] URLhttps://arxiv.org/abs/ 2508.10925. Peter S. Park, Simon Goldstein, Aidan O’Gara, Michael Chen, and Dan Hendrycks. Ai deception: A survey of examples, risks, and potential solutions.Patterns, 5(5):100988, on PithPith's reviewarXiv
  12. [21] ISSN 2666-3899. doi: https://doi.org/10.1016/j.patter.2024.100988. URLhttps://www.sciencedirect. com/science/article/pii/S266638992400103X. Guilherme Penedo, Hynek Kydl ´ıˇcek, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro V on Werra, Thomas Wolf, et al. The fineweb ... on Pithdoi:10.1016/j.patter.2024.100988
  13. [22] Guilherme Penedo, Hynek Kydl´ıˇcek, Vinko Sabolˇcec, Bettina Messmer, Negar Foroutan, Amir Hos- sein Kargaran, Colin Raffel, Martin Jaggi, Leandro V on Werra, and Thomas Wolf. Fineweb2: One pipeline to scale them all–adapting pre-training data processing to every language.arXi... on PithPith's reviewarXiv
  14. [24] 13 Preprint David Raposo, Sam Ritter, Blake Richards, Timothy Lillicrap, Peter Conway Humphreys, and Adam Santoro. Mixture-of-depths: Dynamically allocating compute in transformer-based lan- guage models.arXiv preprint arXiv:2404.02258, on PithPith's reviewarXiv
  15. [25] Nikunj Saunshi, Nishanth Dikkala, Zhiyuan Li, Sanjiv Kumar, and Sashank J Reddi. Reasoning with latent thoughts: On the power of looped transformers.arXiv preprint arXiv:2502.17416, on PithPith's reviewarXiv
  16. [28] Ivan Ternovtsii and Yurii Bilak. Mixture of layers with hybrid attention.arXiv preprint arXiv:2605.09516, on PithPith's reviewarXiv
  17. [29] Shubham Toshniwal, Wei Du, Ivan Moshkov, Branislav Kisacanin, Alexan Ayrapetyan, and Igor Gitman. Openmathinstruct-2: Accelerating ai for math with massive open-source instruction data.arXiv preprint arXiv:2410.01560, on PithPith's reviewarXiv
  18. [30] Lean Wang, Huazuo Gao, Chenggang Zhao, Xu Sun, and Damai Dai. Auxiliary-loss-free load balancing strategy for mixture-of-experts.arXiv preprint arXiv:2408.15664, on PithPith's reviewarXiv
  19. [31] Anyi Xu, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, Chenchen Ling, et al. Deepseek-v4: Towards highly efficient million- token context intelligence.arXiv preprint arXiv:2606.19348, on PitharXiv
  20. [32] Liu Yang, Kangwook Lee, Robert Nowak, and Dimitris Papailiopoulos. Looped transformers are better at learning learning algorithms.arXiv preprint arXiv:2311.12424, on PithPith's reviewarXiv
show 21 more
  1. [33] Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. Hellaswag: Can a ma- chine really finish your sentence?arXiv preprint arXiv:1905.07830, on PithPith's reviewarXiv
  2. [34] Tianyu Zhao and Llion Jones. Fast-weight product key memory.arXiv preprint arXiv:2601.00671, on PitharXiv
  3. [35] Our main experiments are conducted at the 360M parameter scale based on the GPT-2 Medium architecture (Radford et al., 2019). Unlike GPT-2, our models use RoPE (Su et al., 2024), RMSNorm (Zhang & Sennrich, 2019), SwiGLU MLPs (Shazeer, 2020), and bias free attention (Chowdhery ... on Pith
  4. [36] tokenizer for our multilingual experiments. For our toy sudoku and maze experiments, we use small tokenizers specifically for the vocabulary of each task. For natural language experiments, we use W= 128andS= 64, with a total context length of1024tokens. For sudoku and mazes, w... on Pith
  5. [37] with AdamW (Kingma & Ba, 2014; Loshchilov & Hutter, 2017). We note we use PyTorch Muon withadjust lr fn=match rms adamw, and all learning rates should be taken in this context. We use loss-free load balancing (Wang et al., on Pith
  6. [38] to train routers. We use document blocked attention, meaning that tokens in one document never attend to tokens in another document in any experiment. B ADDITIONALARCHITECTUREABLATIONS B.1 LIBRARY OFLAYERS In Figure 7, we ablate the impact of growing LoL during training. In Fi... on Pith
  7. [39] achieves a lower final cross-entropy loss when compared to auxiliary loss load balancing methods. B.2 BASELINES In Figure 10, we see varying attention patterns in vanilla models has a small impact on training loss. 17 Preprint 0 2000 4000 6000 8000 Step 3 4 6 8 10CE Loss 0.0 0... on Pith
  8. [1968] doi: 10.1109/TSSC.1968.300136. Liliana Hotsko, Yinxi Li, Yuntian Deng, and Pengyu Nie. Code2lora: Hypernetwork-generated adapters for code language models under software evolution.arXiv preprint arXiv:2606.06492, on PithPith's reviewarXiv
  9. [1969] Hayden Prairie, Zachary Novack, Taylor Berg-Kirkpatrick, and Daniel Y Fu. Parcae: Scaling laws for stable looped language models.arXiv preprint arXiv:2604.12946, on PithPith's reviewarXiv
  10. [1990] R´obert Csord´as, Kazuki Irie, J¨urgen Schmidhuber, Christopher Potts, and Christopher D. Manning. Moeut: Mixture-of-experts universal transformers.arXiv preprint arXiv:2305.13245, on PithPith's reviewarXiv
  11. [2014] Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Sori- cut. Albert: A lite bert for self-supervised learning of language representations.arXiv preprint arXiv:1909.11942, on PithPith's reviewarXiv
  12. [2017] 12 Preprint Ian Magnusson, Nguyen Tai, Ben Bogin, David Heineman, Jena D Hwang, Luca Soldaini, Akshita Bhagia, Jiacheng Liu, Dirk Groeneveld, Oyvind Tafjord, et al. Datadecide: How to predict best pretraining data with small experiments.arXiv preprint arXiv:2504.11393, on PithPith's reviewarXiv
  13. [2018] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems.arXiv preprint arXiv:2110.14168, on PithPith's reviewarXiv
  14. [2019] Zhuocheng Gong, Ang Lv, Jian Guan, Wei Wu, Huishuai Zhang, Minlie Huang, Dongyan Zhao, and Rui Yan. Mixture-of-modules: Reinventing transformers as dynamic assemblies of modules. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pp. 209... on Pith
  15. [2020] Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538, on PithPith's reviewarXiv
  16. [2021] Noam Shazeer. Glu variants improve transformer.arXiv preprint arXiv:2002.05202, on PithPith's reviewarXiv
  17. [2022] Zeming Chen, Angelika Romanou, Gail Weiss, and Antoine Bosselut. Perk: Long-context reasoning as parameter-efficient test-time learning. InInternational Conference on Learning Representa- tions, volume 2026, pp. 10350–10377, on Pith
  18. [2023] Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457, on PithPith's reviewarXiv
  19. [2024] Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Łukasz Kaiser. Universal transformers.arXiv preprint arXiv:1807.03819, on PithPith's reviewarXiv
  20. [2025] Rabeeh Karimi Mahabadi, Sanjeev Satheesh, Shrimai Prabhumoye, Mostofa Patwary, Mohammad Shoeybi, and Bryan Catanzaro. Nemotron-cc-math: A 133 billion-token-scale high quality math pretraining dataset.arXiv preprint arXiv:2508.15096, on PithPith's reviewarXiv
  21. [2026] Benhao Huang, Chufan Shi, Junlin Chen, Shicheng Wen, Zhengzhong Liu, Eric Xing, and Xuezhe Ma. Towards looped models done right, part i: Topology, input injection, recurrent-state design. arXiv preprint arXiv:2610.23036, 2026a. Minbin Huang, Han Shi, Chuanyang Zheng, Yimeng Wu... on PithPith's reviewarXiv

Challenges and discussion

Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.

No comments yet.

Sign in to comment