TL;DR
This paper introduces Compositional Reasoning Questions (CRQs)—a tree-structured task family that includes Boolean formula evaluation—to benchmark the expressive power of different neural architectures. The authors prove that while CRQs are inherently hard, Transformers, RNNs, and Chain of Thought (CoT) models each overcome this hardness through distinct trade-offs between depth, memory, and sequential processing time.
What Problem Does This Paper Address?
In the quest to improve Large Language Models (LLMs), researchers often debate which architectural paradigm is superior: scaling up Transformer depth, moving toward state-space/RNN models, or leveraging test-time compute via Chain of Thought. However, theoretical comparisons often use "cherry-picked" tasks that favor one specific model.
This paper seeks a more balanced "yardstick" for reasoning. The authors focus on compositionality—the ability to solve a complex problem by hierarchically combining the answers to simpler sub-problems. Think of a math expression like (6 + 2) * (4 - 5) or a complex logical query. These problems have a natural tree structure where the root depends on the leaves. The authors formalize this as CRQs and ask: What specific resources does each architecture need to solve these hierarchical problems as they grow in size?
Methods
The authors define a CRQ as a rooted tree where each node is a vector. The "answer" to a node is calculated by finding which of its children's answers has the highest correlation (inner product) with the parent node's label.
To analyze how different models handle these trees, the authors provide both impossibility proofs (lower bounds) and constructive proofs (showing exactly how to build a model that works):
- Deep Transformers: They analyze standard attention mechanisms, focusing on how depth allows for parallel processing of tree levels.
- RNNs: They investigate how hidden state size and input ordering affect the ability to "remember" intermediate results. They introduce a specific Memory-Rank Sort algorithm to optimize the order in which tree nodes are fed to the RNN.
- Chain of Thought (CoT): They model CoT as a shallow Transformer that generates intermediate tokens, effectively using time to simulate the depth it lacks.
Datasets
As a theoretical work, this paper does not use standard empirical datasets like GLUE or ImageNet. Instead, it uses the CRQ framework as a synthetic benchmark. The authors prove that CRQs are $NC^1$-hard, meaning they are at least as difficult as evaluating Boolean formulas—a fundamental problem in computational complexity that is notoriously difficult for parallel systems with limited depth.
Key Insights and Ideas
- The Depth-Parallelism Trade-off: Transformers are the kings of parallelism. A Transformer can solve all sub-questions at the same depth of the tree simultaneously in a single layer. However, this means its total depth must scale with the depth of the reasoning tree.
- Input Order is Everything for RNNs: For an RNN, the order in which it sees the "nodes" of the problem determines its success. If the nodes are ordered poorly, the RNN needs a massive memory (hidden dimension) to store everything. If ordered using the authors' "Memory-Rank Sort," the RNN can solve the problem with very little memory—only $O(\log n)$.
- CoT as a Depth Substitute: A shallow (constant-depth) Transformer cannot solve CRQs on its own. However, by generating $n$ "thought" tokens, it can essentially serialize the tree evaluation, solving one sub-problem at a time.
- No Clear Winner: The paper demonstrates that no architecture is strictly better. The "best" choice depends on whether you prioritize parallel speed (Transformers), low memory (RNNs), or model compactness (CoT).
Key Results
The authors summarize the resource requirements for solving a CRQ with $n$ nodes (assuming a tree depth of $\log n$) in the following table:
- Transformers: Require $O(\log n)$ depth to solve a balanced tree. Constant-depth Transformers are proven incapable of solving arbitrary CRQs (under standard complexity assumptions).
- RNNs: Can solve CRQs with only $O(\log n)$ hidden dimension, but only if the inputs are ordered benevolently. With an adversarial order, they require $O(n)$ memory.
- Chain of Thought: A 2-layer Transformer can solve any CRQ by generating $O(n)$ tokens, providing a significant improvement over previous CoT constructions that required $O(n^2)$ tokens for similar logic tasks.
Limitations and Future Work
The primary limitation is that this is an expressivity study. It proves that these architectures can represent the solutions, but it doesn't guarantee that a standard training process (like gradient descent) will actually find these solutions.
Future work suggested by the authors includes:
- Investigating the optimization landscape: Can these models actually learn to solve CRQs from data?
- Generalization: Do solutions found for one tree structure generalize to different tree shapes or sizes?
- CoT Efficiency: Is it possible to solve CRQs with fewer than $O(n)$ CoT tokens (e.g., $O(\log n)$)?
Summary updated