One Model, Two Roles: Emergent Specialization in a Shared Recurrent Transformer

Jucheng Shen, Barbara Su, Anastasios KyrillidisNeurIPS 2026

TL;DR

Imagine hiring a single contractor to both sketch messy brainstorms and draft polished final blueprints—without ever telling them which job is which. This paper shows that a single, shared-weight Transformer updating two evolving memory states spontaneously invents a "rough scratchpad" and a "committed proposal" role all on its own. The catch? It only needs a subtle clue—like seeing the original puzzle prompt during one update step and not the other—to know which hat to wear.

What Problem Does This Paper Address?

If you want a neural network to "think harder" without ballooning its parameter count, you can loop it: pass latent states through the exact same Transformer block over and over. Recent recurrent reasoners improve on single-state loops by maintaining two interacting latent states—often framed as a "low-level" state ($z_L$) and a "high-level" state ($z_H$).

Traditionally, engineers either assign two completely separate parameter sets to these states (doubling the model size) or tie them to a single shared network and hope for the best. That raises a fundamental question about modularity in deep learning: When one shared Transformer updates two different states, does it actually learn two distinct jobs, or does it just run the exact same computation twice? Knowing whether functional specialization requires separate weights—or if it can emerge dynamically inside a single shared parameter set—is key to building compact, parameter-efficient reasoning engines.

Methods

To isolate this question without confounding architectural bells and whistles, the authors introduce Asymmetric Input Recurrence (AIR), a minimal testbed built around a 4-layer shared Transformer.

Figure 1: AIR testbed. The same shared Transformer f(·; θ) is reused at two positions in the recurrent schedule: with the encoded input ˜x for L-updates (top) and without it for H-updates (bottom). Despite identical parameters, this input difference lets the shared model tell the two update types apart: zL behaves like a partially committed, revision-oriented state while zH behaves like a committed proposal state, and each query token in L-updates attends to other tokens more locally than H-updates.

AIR maintains two latent states ($z_L$ and $z_H$) updated in an interleaved schedule ($L, L, H, L, L, H$). Both updates use the exact same Transformer weights and take the sum of $z_L + z_H$ as input. The only built-in difference is input asymmetry: the encoded problem input ($\tilde{x}$) is added during $L$-updates, while $H$-updates see only the latent states. For memory efficiency, AIR trains via a standard one-step truncated gradient (backpropagating only through the final $L$ and $H$ updates) and reads supervision exclusively from $z_H$.

What’s novel here isn't the recurrence itself, but the diagnostic surgery the authors perform on it:

  • Intermediate Decoding: Applying the final output head to both $z_H$ and the unsupervised $z_L$ at every sub-step to watch what each state is "thinking."
  • State-Identity Ablations: Varying how many copies of $\tilde{x}$ each update receives—or feeding symmetric inputs alongside learned "level tokens"—to pinpoint what triggers specialization.
  • Freeze Stress Tests & Attention Routing: Freezing one state mid-rollout to measure dynamical interdependence, and comparing how locally vs. globally attention heads route information during $L$ versus $H$ steps.

Datasets

The authors evaluate AIR on two synthetic, fully observable, grid-based combinatorial reasoning benchmarks (no new datasets are introduced):

  • Sudoku-Extreme: Hard $9 \times 9$ Sudoku puzzles starting with only 17 given digits.
  • Maze: Pathfinding across $30 \times 30$ grids from a start cell to a goal cell.

Key Insights and Ideas

  • Spontaneous Division of Labor: Even though nobody supervises $z_L$, decoding both states reveals a stark behavioral split. $z_H$ acts like a confident executive—always outputting a fully committed candidate solution (even when wrong). Meanwhile, $z_L$ acts like a messy workbench—staying partially committed by leaving uncertain cells blank/undecided and shifting them around across steps.
Figure 3: Maze decoded states. Left = zH, Right = zL; Black = wall, white = open path, blue = solution path, gray = undecided (PAD), red = goal, and green = start. zH stays committed, while zL shows gray undecided cells and other shifting local structure. Multiple cells are decoded as start or goal in the zL panels, which may reflect endpoint information that is not yet stably localized in these intermediate states.
  • It’s Not About the Input—It’s About Identity: When you inject the input symmetrically into both updates, the role split vanishes and accuracy drops. Crucially, if you keep symmetric inputs but prepend a temporary, strippable "level token" telling the Transformer whether it's doing an $L$ or $H$ step, specialization and accuracy bounce right back! Simply adding a level vector element-wise into every token fails; the model needs a clean, structurally separable state-identity signal.
  • Local Inspector vs. Global Integrator: Looking under the hood at self-attention, $L$-updates consistently attend tightly to immediate grid neighborhoods (and, in deeper Sudoku layers, specifically target rule-violating cells). $H$-updates cast a much wider, higher-entropy global net across the board.

Key Results

  • Beating Two Networks with Half the Parameters: On Sudoku-Extreme, asymmetric AIR variants cluster around 59.1% exact-solve accuracy (peaking at 60.0%), significantly beating symmetric shared baselines (51.5%) by ~8 percentage points—and even outperforming the two-network HRM baseline (55.0%) despite using 50% fewer parameters. On Maze, asymmetric variants average 73.1% vs. 69.9% for symmetric ones (comparable to HRM's 74.5%), with specific asymmetric configurations reaching 75.6%.
  • Level-Token Rescue: Adding a prepended-and-stripped level token to a symmetric Sudoku model rescues accuracy from 52.07% up to 58.23%, matching input-asymmetric performance.
  • Total Interdependence: Freezing either $z_H$ or $z_L$ during inference crashes task accuracy from 55.1% (Sudoku) and 71.0% (Maze) straight to 0%—proving the two roles actively rely on one another rather than coasting independently.
  • Attention Contrast: At the deepest Transformer layer on Sudoku control cells, $L$-updates pack roughly 47% more attention mass ($\Delta_{\text{nbr}} = 0.24$) into a cell's local Sudoku neighborhood than $H$-updates do.

Limitations and Future Work

The authors are admirably upfront: all experiments live in clean, synthetic, fully observable 2D grids using a small 4-layer Transformer, a fixed $2:1$ update schedule, and one-step truncated gradients. Furthermore, mechanistic results (like violation-specific routing and accuracy gains) are noticeably sharper on Sudoku than on Maze, and attention weights only tell part of the computational story.

Future work will need to test whether this "one model, two roles" magic scales to deeper architectures, full backpropagation through time, partial observability, and messy natural-language reasoning—as well as stronger constant-memory reasoners like GRAM and Attractor Models.

Summary updated

Abstract

Can a shared-weight recurrent Transformer---one that repeatedly applies the same Transformer to update evolving latent states---develop distinct internal roles without being partitioned into separate modules? We study this in Asymmetric Input Recurrence (AIR), a minimal two-state reasoning architecture in which the same Transformer model is reused for both updates (per literature, L and H) and the only built-in difference in the update rule is that the encoded input is injected during L-updates but not H-updates. Across Sudoku-Extreme and Maze, decoded rollouts reveal a consistent split: $z_H$ behaves like a fully committed proposal state, whereas $z_L$ retains local uncertainty and shifting intermediate structure. Freeze interventions provide evidence of dynamical dependence between the two states, with responses that vary across tasks, intervention directions, and seeds. Ablations show that to induce specialization, the shared model needs to be able to tell the two update types apart, either from input injection asymmetry or from a separate level token. Mechanistically, attention analysis shows that L-updates are consistently more local than H-updates in both Sudoku and Maze. Together, these results show that, in a two-state recurrent setting, a clear state-identity signal can induce stable, related functional roles inside a shared-parameter recurrent Transformer. Code is available at https://github.com/juchengshen/air.
BibTeX
@inproceedings{shen2026one,
  author = {Jucheng Shen and Barbara Su and Anastasios Kyrillidis},
  title = {{One Model, Two Roles: Emergent Specialization in a Shared Recurrent Transformer}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5g3g2p3Zwl},
}
Figure