- Rating
- 4
- Clarity
- 4
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 2
Read review
Summary
This paper introduces fixed universal transformers: attention-only transformers whose internal parameters are fixed, but which can simulate any attention-only transformer in a prescribed class through a suitable input embedding. In this framework, the embedding matrix encodes the target transformer, analogous to how the input to a universal Turing machine encodes the machine to be simulated.
The paper provides explicit sparse constructions of such universal transformers, and further proves that randomly initialized transformers are universal almost surely when the embedding dimension is sufficiently large. It also establishes a lower bound for attention-matching simulation strategies and empirically evaluates sparse and random universal transformers on parenthesis balancing and -hop induction-head tasks.
Strengths and weaknesses
Strengths:
- The paper studies a clean and conceptually interesting notion of universality that is distinct from standard universal approximation and Turing-completeness.
- The main theoretical results are solid: the paper gives both explicit sparse constructions and generic almost-sure universality results for random transformers.
- The construction is intuitive. Interpreting the embedding space as an H-ary tree over possible head paths provides a clear explanation for the required embedding dimension.
- The lower bound helps clarify why the exponential dependence on depth may be unavoidable for attention-matching approaches.
- The experiments, although limited, support the theory by showing that the required embeddings can be learned by gradient-based optimization, especially with residual connections and layer normalization.
Weaknesses:
- The theoretical model is restricted to attention-only transformers. Modern transformers rely heavily on MLPs, residual connections, and normalization, so the gap between the theory and practical architectures remains significant. Existing work [*] suggests that MLPs can be implemented using attention-only transformers, but the paper does not discuss whether its universality results can be generalized to transformers with MLP blocks, or whether additional obstacles remain. This omission is somewhat disappointing.
- upper vs. lower bound leaves the optimality claim only partially resolved. Moreover, the lower bound applies only to attention-matching simulation strategies.
- The exponential embedding-dimension cost limits the practical significance of the universality result. This is especially notable in light of efficient Turing-machine simulation results for transformers [**], which suggest a transformer -> Turing machine -> transformer simulation path with only polynomial overhead.
- The equality is established in exact arithmetic, but the paper does not address behavior under finite precision.
Minor issues:
- Line 296: stabalize -> stabilize
- Line 496: contruction -> construction
- Line 497: chucks -> chuncks
[*] Huben, R., & Morris, V. (2023). Attention-Only Transformers and Implementing MLPs with Attention Heads. arXiv preprint arXiv:2309.08593.
[**] Li, Q., & Wang, Y. (2025). Efficient Turing Machine Simulation with Transformers. arXiv preprint arXiv:2512.00003.
Questions
- Can the universality results be extended to transformers with MLP blocks, residual connections, and layer normalization? The empirical results suggest that residuals and layer normalization are important for optimization, but these components are outside the main theory.
- Is the embedding dimension an artifact of the tree-based construction, or is exponential dependence necessary for more general simulation strategies beyond attention matching?
Limitations
- The main limitation is that the theory is restricted to attention-only transformers, while the experiments suggest that residual connections and layer normalization are important for performance.
- The exponential embedding-dimension scaling also limits the importance of the result. Since the construction allocates space for exponentially many head paths, the universal transformer may be much larger than the target model. Existing result [**] suggests that the exponential limitation is not inherent for the task, but for the construction.
Paper formatting concerns
N/A
Final justification
The authors have addressed my concerns. For W3, however, I still feel that the restriction of "a single forward pass, using the same context length and number of layers, without introducing auxiliary tokens" is overly strong from a practical perspective, since the Turing machine -> transformer approach can achieve the simulation with significantly fewer resources. That said, I appreciate the authors' clarifications and have updated my rating to borderline accept.
Thanks for your review. We address the weaknesses and questions below.
W1 and Q1: MLP blocks, residual connections and normalization. We will expand the discussion of how our results relate to practical transformer architectures.
Residual connections. The proof extends directly by viewing the residual path as an additional fixed “head” carrying the identity transformation. The same path-unrolling argument then applies after replacing H by H+1 in the embedding-dimension bound.
MLP blocks. We can extend both the explicit and random universality constructions to bias-free MLPs with any gated linear unit (GLU) activation of the form MLP(X)=[σ(XWg)⊙XWu]Wd. This includes SwiGLU, GeGLU, and ReGLU. The proof constructs auxiliary representations backward from the output so that the two linear branches (XWg and XWu) entering each gate are matched before applying (\sigma). The main change is that one target neuron (neurons in Wd) needs to be simulated by a block of universal neurons. Because the universal transformer’s output directions are fixed, and the target neuron Wd[j,:]∈R1×dout, we use dout universal neurons which form a set of basis to simulate a target neuron and encode the weights for each basis into the embedding matrix E and propagate through the linear branch (XWu). If the target MLP width is r, and we need universal MLP to have width rdout. A sufficient embedding dimension for E becomes m≥(2Hr)Ldin+2Hd2Hr−1(2Hr)L−1=O((2Hr)L(din+d)). Ordinary, non-gated GELU MLPs do not satisfy the same exact routing identity, so our current proof does not cover them.
Normalization. Embedding into a different dimension m changes the mean and variance across coordinates. Therefore, the linear representation invariant used in our proof is not preserved after normalization. Moreover, it’s impossible for post-LayerNorm with arbitrary learned scale and bias. At X=0, we have XE=0 for every E, so the universal transformer produces one fixed output, whereas a target transformer can produce an arbitrary LayerNorm bias (β). Similarly, an arbitrary target scale (γ) can make its output arbitrarily large, while a fixed universal LayerNorm followed by a fixed unembedding has uniformly bounded output. Thus, extending our theorem to standard learned LayerNorm requires either restricting its affine parameters or allowing additional trainable parameters beyond the input embedding.
Thank you for pointing us to this relevant work. Huben and Morris (2023) provide an alternative route for relating MLP transformers to our attention-only setting: an MLP with r hidden neurons with generalized-SiLU activation can be replaced by r masked, rank-one attention heads. However, their construction requires padding the context with extra tokens and non-standard attention masks. We will cite and discuss this complementary approach in the revised version.
W2 and Q2: The exponential embedding dimension lower bound. The purpose of the lower bound is to establish the qualitative exponential dependence on depth, rather than a tight exponent. Although this is a quadratic gap between the upper bound HL and the lower bound HL/2, the gap does not affect the central conclusion that polynomial dependence on L is impossible for attention-matching simulations. However, it does not rule out sub-exponential constructions that simulate the target transformer using different attention patterns.
W3: Turing-complete. We would like to note that the Turing-machine simulation and our result measure different computational resources. Our universal transformer must reproduce the target transformer in a single forward pass, using the same context length and number of layers, without introducing auxiliary tokens. In contrast, Turing machine → transformer route serializes the target computation into autoregressive CoT steps. Even when this simulation has polynomial overhead, It does not imply a polynomial-width universal transformer under our fixed-context, single-forward-pass setting. We will discuss the difference with this paper carefully in the related work section for the camera-ready version.
W4: Finite precision. Thank you for raising this point. In the explicit sparse construction, all universal-transformer parameters are {0,1}-valued routing and selection matrices, which are represented exactly in floating point. The embedding E stores the parameters that also appear in the computation path of the target transformer, so the construction introduces no additional ill-conditioned computation; its numerical error is essentially the same error incurred when evaluating the corresponding target transformer at the same precision.
For the random construction, the potential source of numerical error arises when solving the system of linear equations. Its magnitude is controlled by the condition number of the random parameters. Thus, the simulation should remain stable for well-conditioned draws, although almost-sure invertibility alone does not provide a uniform finite-precision guarantee. We will clarify this distinction in the revision.