Dice Question Streamline Icon: https://streamlinehq.com

Discrete CoT step complexity for reachability with constant-depth transformers

Determine whether a constant-depth transformer using discrete chain-of-thought can solve directed graph reachability on a graph with n vertices with strictly fewer than O(n^2) discrete CoT decoding steps, and, if so, quantify the minimal number of steps required.

Information Square Streamline Icon: https://streamlinehq.com

Background

Directed graph reachability is a fundamental reasoning problem closely linked to various practical tasks. Prior work shows that a constant-depth transformer equipped with discrete CoT can solve reachability but currently requires O(n2) steps, where n is the number of vertices.

This paper demonstrates that continuous CoT can solve reachability in D steps, where D is the graph diameter, highlighting a potential separation. The unresolved question is whether discrete CoT can do better than O(n2) steps in constant depth.

References

For a constant-depth transformer, \citet{merrill2023expressive} shows directed graph reachability can be solved with $O(n2)$ CoT steps where $n$ is the number of vertices, while it remains unclear whether a smaller number of discrete CoT steps can solve the task.

Reasoning by Superposition: A Theoretical Perspective on Chain of Continuous Thought (2505.12514 - Zhu et al., 18 May 2025) in Section 1.1 (Related works), paragraph "Reasoning as graph problems"