Limit Analysis for Symbolic Multi-step Reasoning Tasks with Information Propagation Rules Based on Transformers

Tian Qin, Yuhan Chen, Zhiwei Wang, Zhi-Qin John XuSubmission to ICLR 2026 · Rejected

TL;DR

Can a Transformer solve complex multi-step reasoning in a single forward pass without generating scratchpad tokens? This paper models the internal information flow of Transformers on symbolic reasoning tasks and proves that an $L$-layer model can execute between $\mathcal{O}(2^{L-1})$ and $\mathcal{O}(3^{L-1})$ reasoning steps in parallel. Crucially, reaching the theoretical maximum depends not just on model capacity, but on the permutation order of the facts presented in the prompt and having a sufficiently wide hidden dimension.

What Problem Does This Paper Address?

While Chain-of-Thought (CoT) prompting allows large language models (LLMs) to solve complex logical problems by generating intermediate reasoning steps, it is computationally expensive and prone to "over-thinking."

A fundamental question remains: What is the intrinsic, single-pass reasoning capacity of an autoregressive Transformer? Standard intuition suggests that an $L$-layer Transformer can only perform serial reasoning—one step per layer (i.e., at most $L-1$ steps). The authors investigate whether—and under what conditions—Transformers can execute parallel reasoning across sequence positions within a single layer to achieve reasoning depths that grow exponentially with model depth.

Methods

The authors formalize multi-hop symbolic reasoning where facts are pairs $a_i = (x_{2i-1}, x_{2i})$ (e.g., $1 \to 2, 2 \to 3$), shuffled in arbitrary order, followed by a query token. They model Transformer computation through rigorous Information Propagation Rules based on known mechanistic components:

  • Buffer Mechanism: Embeddings store multiple facts across distinct linear subspaces.
  • Adjacent Position Matching: Layer 1 uses positional encodings to bind adjacent tokens into fact pairs.
  • Same Token Matching (Induction Heads): Layer $l \ge 2$ matches shared tokens across nodes to propagate and merge information.
  • Causal Masking & Residual Connections: Information only moves forward in the sequence and accumulates across layers.

Using these rules, the authors derive theoretical bounds via mathematical induction:

  1. Lower Bound $\mathcal{O}(2^{L-1})$: Achieved when facts are ordered sequentially, forming a binary tree of pairwise merges across layers.
  2. Upper Bound $\mathcal{O}(3^{L-1})$: Achieved when facts are arranged in a recursive, fractal ordering where local nodes can match two surrounding nodes simultaneously, forming a ternary tree.

To show these bounds are tight in practice, they provide an explicit construction using circular shift matrices and universal feed-forward network (FFN) approximation, followed by empirical validation on trained Transformers.

Datasets

The authors use a synthetic symbolic multi-step reasoning benchmark based on Wang et al. (2025a):

  • Structure: Sequences of disjoint reasoning pairs followed by a start token (e.g., (35, 27) (68, 45) ... | start: 35 -> target: ?). Token values are integers in $[20, 100]$.
  • Out-of-Distribution (OOD) Split: To guarantee the network learns relational reasoning rather than memorizing transitions:
  • Training set: $(x_{2i} - x_{2i-1}) \pmod 5 \in \{0, 1, 4\}$.
  • Test set: $(x_{2i} - x_{2i-1}) \pmod 5 \in \{2, 3\}$.
  • Scale: 1.2M examples for 3-step reasoning, 6M for 4-step, and 30M for 5-step tasks.

Key Insights and Ideas

  • Exponential Parallel Reasoning: Transformers do not need a new layer for every reasoning step. Because multiple tokens can attend to each other simultaneously, intermediate hops can be resolved across sequence positions within intermediate layers.
  • Order Determines Computability: For a 3-layer network, the theoretical step capacity $S_p$ lies in $[2^{3-1}-1, \frac{3^{3-1}-1}{2}] = [3, 4]$ steps. Whether 4-step reasoning can be solved depends entirely on the input permutation: "canonical" fractal orderings allow information to aggregate successfully, whereas "non-canonical" orderings hit an information bottleneck.
  • The Dimension Tax: Parallel reasoning relies heavily on packing multiple distinct token representations into different subspaces. While an $L=4$ model performing standard 1-step-per-layer reasoning succeeds with a small hidden dimension ($d_m = 128$), an $L=3$ model doing parallel 3-step reasoning fails at $d_m = 128$ and requires $d_m \ge 512$ to reach full accuracy.

Key Results

  • Theoretical Limits: For $L$ attention layers, the maximum number of effective reasoning steps $S_p$ satisfies: $$2^{L-1} - 1 \le S_p \le \frac{3^{L-1}-1}{2}$$
  • 2-Layer Transformers ($L=2$, Max Steps = 1):
  • 1-step reasoning: $100\%$ test accuracy.
  • 2-step reasoning: Drops to $8.4\%$ (random guessing), confirming the hard theoretical limit.
  • 3-Layer Transformers ($L=3$, Step Range $[3, 4]$):
  • 3-step reasoning: Test accuracy scales sharply with hidden dimension $d_m$:
  • $d_m = 64$: 9.6%
    • $d_m = 128$: 11.9%
    • $d_m = 256$: 72.2%
    • $d_m = 512$: 99.6%
    • $d_m = 1024$: 99.6%
  • 4-step reasoning: Overall accuracy is 46.1%, but sequences satisfying the canonical ordering reach ~80–90% accuracy, whereas non-canonical sequences hover around ~15–20%.
  • 5-step reasoning: Performance collapses to 25.1%, empirically validating the upper bound of 4 steps.
  • Causal Intervention: Masking attention connections confirmed that the network utilizes the exact attention routing paths predicted by the ternary information propagation theory.

Limitations and Future Work

  • Strictly Symbolic Tasks: The theory and experiments focus on synthetic transitive relations (bigram chains); extending this framework to natural language with fuzzy relations and noisy context remains open.
  • Extreme Parameter & Optimization Requirements: Reaching parallel reasoning bounds requires exponentially larger hidden dimensions and massive training data as depth increases, making models with $L \ge 4$ difficult to optimize to theoretical capacity in practice.
  • Architecture Simplifications: The theoretical construction assumes single-head attention with idealized separation between positional matching (Layer 1) and value matching (Layer $\ge 2$), though real multi-head models may distribute these mechanisms more flexibly.

Summary updated

Abstract

Transformers have ability to perform reasoning tasks, however the intrinsic mechanism remains widely open. In this paper we propose a set of information propagation rules based on Transformers and utilize symbolic reasoning tasks to theoretically analyze the limit reasoning steps. We show that the number of reasoning steps has an upper bound of $O(3^{L-1})$ and a lower bound of $O(2^{L-1})$ for a model with $L$ attention layers.
BibTeX
@misc{qin2025limit,
  author = {Tian Qin and Yuhan Chen and Zhiwei Wang and Zhi-Qin John Xu},
  title = {{Limit Analysis for Symbolic Multi-step Reasoning Tasks with Information Propagation Rules Based on Transformers}},
  year = {2025},
  eprint = {2509.23178},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.23178},
  howpublished = {arXiv},
}
Figure