Efficiently Representing Algorithms With Chain-of-Thought Transformers
Update NeurIPS 2026 submission aDwsX9XZ7O: 11 notes
@openreview[bot] · 2026-11-24 15:52 UTC · 3cad33d3a0d9 ·
reviews/openreview/adwsx9xz7o/notes/4mo7feibbl.json added
+++ b/reviews/openreview/adwsx9xz7o/notes/4mo7feibbl.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "4mO7fEibbL",+ "replyTo": "4U7aKOreSl",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer cwxX",+ "comment": "Thank you for your feedback, for recognizing the motivation for moving from Turing machine simulations by transformers to direct Word RAM simulations, and for appreciating the substantial amount of theoretical development.\n\n> I found the presentation somewhat lacking in illustration. … a small toy example showing how a simple Word RAM program would be represented and simulated by the proposed CoT construction.\n\nThank you for the suggestion. We agree, adding an illustrative example will help explain the idea better. It is tedious to do it for any substantial algorithm, but we hope the following illustration of simulating the “increment” instruction will help.\n\nConsider word size $w = 4$ and let the instruction $I_p$ at program counter $p$ be the increment operation on $\\mathrm{mem}[3]$, as follows:\n$$\n I_p: \\qquad \\mathrm{mem}[3] \\leftarrow \\mathrm{mem}[3] + 1.\n$$\n\nLet $b(x)$ denote a 4-bit encoding of $x$ used in the CoT transcript. Suppose the current transcript ends with:\n```\n... mem # b(3) # b(5) ...\n... mem # b(3) # b(7) ... &\n```\ni.e, by first writing 5 and later writing 7 to the memory position $\\mathrm{mem}[3]$. At the final &, the transformer retrieves $\\mathrm{mem}[0] = p$ to load the program counter $p$, obtains the associated instruction $I_p$ via attention, reads $\\mathrm{mem}[3]$ via attention to obtain $b(7)$, computes the incremented value $b(8)$ as well as the index of the next instruction $b(p+1)$, and serializes both of these back to the CoT by outputing:\n```\n... mem # b(3) # b(8) ...\n... mem # b(0) # b(p+1) ... &\n```\n\nThis illustrates how the transformer simulates one instruction of the Word-RAM. We will build upon this example and include it in the revised version of the paper.\n\n> The practical relevance of the theoretical models remains somewhat unclear.\n\nWe would like to emphasize two aspects on this front.\n\nFirst, with respect to the **theoretical model of computation** (Turing machine vs. Word-RAM), prior results about transformer-based universal reasoning have focused solely on Turing machines. While useful for demonstrating *completeness* of transformers (i.e., that CoT enables transformers to compute *any* computatable function), such results do not account for *algorithmic inefficiency*. Turing machines, by nature, have serial tapes and perform very little computation per step. This makes them rather impractical for actually developing and implementing algorithms. The Word-RAM model is a much more realistic theoretical model of computation, and very close to the high-level manner in which algorithms are designed and taught in textbooks. The random access aspect of these models is also a very natural fit for the attention mechanism of transformers. Our results show, for the first time, that one can in fact *directly* simulate such high-level algorithms with transformers, under some minimal architectural extensions. Such direct simulations of high-level algorithms are, in our view, much more natural and practically desirable.\n\nSecond, with respect to the **theoretical models of transformers** we consider in this work (growing width vs. continuous CoT vs. hybrid), we note that all of these minimal extensions have been proposed and studied in prior work. In particular, the hybrid architecture (in our case with a single RNN layer at the bottom) has gained a lot of attention lately. It is now a standard part of frontier models such as Qwen 3.5, Kimi K3, Olmo Hybrid, and likely many proprietary models. Continuous CoT has also appeared as a valuable and trainable extension of discrete CoT (see, e.g., [1] and the large body of work stemming from that). That said, we agree that standard discrete CoT with a fixed-width transformer model would be great to have such a result for. We hope our findings serve as a valuable step towards that goal.\n\n[1] Shibo Hao, Sainbayar Sukhbaatar, Di Jia Su, et al. Training Large Language Models to Reason in a Continuous Latent Space. COLM, 2025.\n\nThank you for your input! We will incorporate it in the revised version."+ },+ "createdAt": "2026-07-28T23:09:26.681Z",+ "modifiedAt": "2026-11-19T16:57:43.585Z",+ "url": "https://openreview.net/forum?id=aDwsX9XZ7O¬eId=4mO7fEibbL",+ "license": "CC-BY-4.0"+}
reviews/openreview/adwsx9xz7o/notes/4paibpow7d.json added
+++ b/reviews/openreview/adwsx9xz7o/notes/4paibpow7d.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "4pAIbPow7d",+ "replyTo": "jXyXf0UTBG",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer rU6F, part 1",+ "comment": "Thank you for the insightful feedback and for recognizing Word RAM as a useful and practical model to study. We address your concerns briefly below and will revise the paper to incorporate them in more detail.\n\n> [the paper] is **not very self-contained** and several concepts are not, or insufficiently introduced; for example, the Word RAM model…\n\nWe agree and will make sure to include full details of the underlying formal models in the paper (possibly some in the appendix) in order to make it more self-contained.\n\n\n> With respect to the theoretical contribution beyond the constructions itself, I am struggling to understand the **significance or implications** of the results…. I think it would be beneficial to discuss how your results differ and improve upon existing work in a structured manner.\n\nThe main implication of our findings is that, with minimal extensions, it is reasonable to think of CoT as being capable of implementing high-level algorithms—not only as a Turing machine. While prior results have shown that transformers are able to simulate Turning machines, the formal Turing machine model itself operates at a very low level—each step in it is so small that designing or reasoning about algorithms in that framework is neither intuitive nor practical, not to mention the standard *quadratic overhead* a Word-RAM to Turning machine translation incurs.\n\nOur work, for the first time, shows that transformers can in fact directly simulate high-level algorithms, with at most a small, polylog overhead. This takes our understanding of transformers + CoT from being able to perform any computation to being able to perform it in an *efficient* and natural manner. In fact, the serial tape access of Turing machines is not only inefficient, it’s a poor match for the powerful attention mechanism that underpins transformers. We show how transformers can leverage this mechanism to directly simulate high-level algorithms.\n\nAs a concrete example, Dijkstra’s graph reachability algorithm, with a typical priority queue as taught in textbooks, requires $T = O(E \\log V)$ steps on a graph with $V$ vertices and $E$ edges. Using prior Turing-completeness constructions would show that transformers can simulate this algorithm, but with $O(T^2)$ steps. Moreover, this simulation is very laborious, for instance outputting one CoT token evey time the Turning machine head moves one space to the right or the left. In contrast, our construction requires only $O(T \\log T)$ steps and is in a natural one-to-one correspondence with the high-level algorithmic steps of Dijkstra’s algorithm."+ },+ "createdAt": "2026-07-28T23:14:52.390Z",+ "modifiedAt": "2026-11-19T16:57:43.493Z",+ "url": "https://openreview.net/forum?id=aDwsX9XZ7O¬eId=4pAIbPow7d",+ "license": "CC-BY-4.0"+}
reviews/openreview/adwsx9xz7o/notes/cns23se5mh.json added
+++ b/reviews/openreview/adwsx9xz7o/notes/cns23se5mh.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "cNs23se5mH",+ "replyTo": "kWogKy9vBc",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer 1CFU",+ "content": {+ "comment": "That will be a good supplement. I don't have further concerns."+ },+ "createdAt": "2026-08-03T13:39:06.536Z",+ "modifiedAt": "2026-11-19T16:57:43.368Z",+ "url": "https://openreview.net/forum?id=aDwsX9XZ7O¬eId=cNs23se5mH",+ "license": "CC-BY-4.0"+}
reviews/openreview/adwsx9xz7o/notes/hkmoe4r8fk.json added
+++ b/reviews/openreview/adwsx9xz7o/notes/hkmoe4r8fk.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "HkmoE4R8fk",+ "replyTo": "yoiePQNQYi",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Area Chair 6z8J",+ "content": {+ "comment": "Dear Reviewer, As the author-reviewer discussion period ending very soon, could you review and respond to the author rebuttals? Thanks."+ },+ "createdAt": "2026-08-02T04:34:54.444Z",+ "modifiedAt": "2026-11-19T16:57:43.371Z",+ "url": "https://openreview.net/forum?id=aDwsX9XZ7O¬eId=HkmoE4R8fk",+ "license": "CC-BY-4.0"+}
reviews/openreview/adwsx9xz7o/notes/jharaettej.json modified
+++ b/reviews/openreview/adwsx9xz7o/notes/jharaettej.json@@ -5,11 +5,12 @@"kind": "meta_review","invitation": "Meta_Review","signature": "Area Chair 6z8J","content": {- "metareview": "*Initial Metareview*\n\nThe reviewers agree that this paper addresses an important and timely question in the theory of Transformer expressivity. While prior work has largely focused on the computational universality of Transformers through simulations of Turing machines, this paper takes the significant step of studying the more practically motivated Word RAM model. The reviewers also appreciate the technical sophistication of the constructions and recognize the potential value of developing new abstractions for reasoning about the computational capabilities of modern architectures.\n\nAt the same time, the current reviews identify several important issues that should be clarified. While the authors should address all substantive concerns raised by the reviewers where possible, they are encouraged to address the following questions, as these appear to be some of the the key issues:\n\n1. Clarify the significance of the results. Better explain the conceptual implications of the simulation results, how they relate to prior work on Transformer expressivity, and improve the accessibility of the presentation where reviewers found it difficult to follow.\n\n2. Clarify the scope of the main theorems. Explain the extent to which the architectural assumptions (e.g., polylogarithmic width, rightmost-unique hard attention, continuous CoT, or recurrence) limit the conclusions that can be drawn for standard fixed-width decoder-only Transformers with discrete chain-of-thought reasoning.\n\n3. Clarify the interpretation of the efficiency guarantees. Explain how the claimed efficiency should be understood, particularly with respect to instruction-level costs and whether complex Word RAM operations are preserved as unit-cost operations within the simulation.\n\n*Metareview after Rebuttal*\n\nThe paper addresses an important question in Transformer expressivity by studying the simulation of the Word RAM model, and the reviewers appreciate both the significance of the direction and the technical sophistication of the results. The rebuttal successfully clarified several of the main issues raised in the initial reviews, particularly regarding the significance, scope, and presentation of the results, leading to a more positive assessment of the paper. Overall, the reviewers view the paper positively after the discussion, and the consensus is to accept the paper."+ "metareview": "*Initial Metareview*\n\nThe reviewers agree that this paper addresses an important and timely question in the theory of Transformer expressivity. While prior work has largely focused on the computational universality of Transformers through simulations of Turing machines, this paper takes the significant step of studying the more practically motivated Word RAM model. The reviewers also appreciate the technical sophistication of the constructions and recognize the potential value of developing new abstractions for reasoning about the computational capabilities of modern architectures.\n\nAt the same time, the current reviews identify several important issues that should be clarified. While the authors should address all substantive concerns raised by the reviewers where possible, they are encouraged to address the following questions, as these appear to be some of the the key issues:\n\n1. Clarify the significance of the results. Better explain the conceptual implications of the simulation results, how they relate to prior work on Transformer expressivity, and improve the accessibility of the presentation where reviewers found it difficult to follow.\n\n2. Clarify the scope of the main theorems. Explain the extent to which the architectural assumptions (e.g., polylogarithmic width, rightmost-unique hard attention, continuous CoT, or recurrence) limit the conclusions that can be drawn for standard fixed-width decoder-only Transformers with discrete chain-of-thought reasoning.\n\n3. Clarify the interpretation of the efficiency guarantees. Explain how the claimed efficiency should be understood, particularly with respect to instruction-level costs and whether complex Word RAM operations are preserved as unit-cost operations within the simulation.\n\n*Metareview after Rebuttal*\n\nThe paper addresses an important question in Transformer expressivity by studying the simulation of the Word RAM model, and the reviewers appreciate both the significance of the direction and the technical sophistication of the results. The rebuttal successfully clarified several of the main issues raised in the initial reviews, particularly regarding the significance, scope, and presentation of the results, leading to a more positive assessment of the paper. Overall, the reviewers view the paper positively after the discussion, and the consensus is to accept the paper.",+ "final_justification": "The rebuttal clarified several of the main issues raised in the initial reviews, particularly regarding the significance, scope, and presentation of the results, leading to a more positive assessment of the paper."},"createdAt": "2026-07-18T08:51:23.444Z",- "modifiedAt": "2026-11-18T15:25:11.927Z",+ "modifiedAt": "2026-11-19T05:03:17.112Z","url": "https://openreview.net/forum?id=aDwsX9XZ7O¬eId=JHaRaETtej","license": "CC-BY-4.0"}
reviews/openreview/adwsx9xz7o/notes/jqcolgujmn.json added
+++ b/reviews/openreview/adwsx9xz7o/notes/jqcolgujmn.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "JqcolgUJMN",+ "replyTo": "4mO7fEibbL",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Area Chair 6z8J",+ "content": {+ "comment": "Dear Reviewer, As the author-reviewer discussion period ending very soon, could you review and respond to the author rebuttals? Thanks."+ },+ "createdAt": "2026-08-02T04:35:43.095Z",+ "modifiedAt": "2026-11-19T16:57:43.315Z",+ "url": "https://openreview.net/forum?id=aDwsX9XZ7O¬eId=JqcolgUJMN",+ "license": "CC-BY-4.0"+}
reviews/openreview/adwsx9xz7o/notes/kwogky9vbc.json added
+++ b/reviews/openreview/adwsx9xz7o/notes/kwogky9vbc.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "kWogKy9vBc",+ "replyTo": "5So3IJWJqC",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer 1CFU",+ "comment": "Thank you for your thoughtful review, for recognizing the importance of the research question, and for appreciating the meaningfulness and breadth of the contribution. We address below your concerns and will clarify them further in the revised paper.\n\n> The strongest results do not directly apply to ordinary fixed-width decoder-only Transformers with discrete CoT. + Q1\n\nThis is a fair point. When we started the project, our goal was indeed to demonstrate that standard, fixed-width, decoder-only transformers with discrete CoT can directly simulate high-level algorithms. While developing the theory, we stumbled upon a technical hurdle in the “serialization” and “deserialization” parts, namely when the transformer needs to write to the CoT the results of a computation step, and to read previously written values. Intuitively, this requires writing, and later reading, $\\log n$ bit numbers.\n\nThis turned out to be surprisingly tricky under the standard transformer model with discrete CoT. In this paper, we resorted to allowing continuous CoT or adding an RNN layer as a solution to this hurdle, which are minimal extensions either supported by prior work [1] or part of many recent LLM releases such as Qwen 3.5, Kimi K3, Olmo Hybrid, and likely many proprietary models. It may be possible to use some variant of the “division lemma” [2] to extend the reading and writing result to standard discrete-CoT transformers.\n\nWe hope our findings will motivate follow-up work on this interesting open question. Our results also suggest that standard CoT may have some limitations that architectural changes may help overcome.\n\n[1] Hao et al. *Training Large Language Models to Reason in a Continuous Latent Space*. COLM, 2025.\n\n[2] Merrill and Sabharwal. *A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformers*. NeurIPS, 2025.\n\n> Some of the efficiency claim depends on strong simulation assumptions and instruction-level abstraction. In particular, the fixed-width results use a bit-serial instruction implementation with cost (\\kappa(w)), and complex Word RAM operations such as multiplication, division, and modulo are not preserved as true unit-cost operations in the CoT simulation. + Q2\n\nThanks for bringing this up. Despite all the strength and success of transformer-based LLMs, it is still not known (from a formal perspective) whether these models can perform simple operations such as multiplication, division, and modulo. This bottleneck forced us to use bit-serial implementation of these algorithms, which incurs a $\\log$ or squared-$\\log$ overhead, depending on the instruction.\n\nWe would like to highlight two points: (a) while not ideal, this overhead is still much smaller than the quadratic overhead incurred by the RAM to Turing machine conversions underpinning prior results; and (b) if a more efficient, direct simulation of these Word-RAM operations is discovered in the future, it would directly strengthen our results, by removing or reducing the squared-$\\log$ overhead. In this sense, we view our results as still valuable and in the right direction.\n\n> The paper establishes an expressivity result, but it does not address whether such simulations are learnable, robust, or likely to arise in trained reasoning models. + Q3\n\nThis is a fair point. While we believe there are indications in various pieces of prior work that the mechanisms our construction uses are within reach of trained transformers, the scope of our findings is purely limited to expressivity. Like most literature on transformer expressivity, we don’t really consider learnability of the mechanisms, and leave it as an interesting open avenue to explore.\n\nAgain, thank you for your appreciation of the work and for raising interesting questions! We will incorporate our responses in the revised version of the paper."+ },+ "createdAt": "2026-07-28T23:03:29.010Z",+ "modifiedAt": "2026-11-19T16:57:43.601Z",+ "url": "https://openreview.net/forum?id=aDwsX9XZ7O¬eId=kWogKy9vBc",+ "license": "CC-BY-4.0"+}
reviews/openreview/adwsx9xz7o/notes/maiu3yibz1.json added
+++ b/reviews/openreview/adwsx9xz7o/notes/maiu3yibz1.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "MAIU3Yibz1",+ "replyTo": "VAk4YxodJG",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Thank you for following up! We are glad our rebuttal addressed your concerns and appreciate your indication that you will increase your score. We confirm that the final paper will incorporate the promised revisions to improve self-containment and clarify the significance and context of our results."+ },+ "createdAt": "2026-08-03T05:43:26.652Z",+ "modifiedAt": "2026-11-19T16:57:43.372Z",+ "url": "https://openreview.net/forum?id=aDwsX9XZ7O¬eId=MAIU3Yibz1",+ "license": "CC-BY-4.0"+}
reviews/openreview/adwsx9xz7o/notes/scpkuutlp3.json added
+++ b/reviews/openreview/adwsx9xz7o/notes/scpkuutlp3.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "ScPKUuTLP3",+ "replyTo": "kWogKy9vBc",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Area Chair 6z8J",+ "content": {+ "comment": "Dear Reviewer, As the author-reviewer discussion period ending very soon, could you review and acknowledge the author rebuttals? Thanks."+ },+ "createdAt": "2026-08-02T04:36:52.806Z",+ "modifiedAt": "2026-11-19T16:57:43.558Z",+ "url": "https://openreview.net/forum?id=aDwsX9XZ7O¬eId=ScPKUuTLP3",+ "license": "CC-BY-4.0"+}
reviews/openreview/adwsx9xz7o/notes/vak4yxodjg.json added
+++ b/reviews/openreview/adwsx9xz7o/notes/vak4yxodjg.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "VAk4YxodJG",+ "replyTo": "yoiePQNQYi",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer rU6F",+ "content": {+ "comment": "I thank the authors for their rebuttal. You have addressed my concerns and I will increase my score (with the understanding that the final paper includes the revisions indicated during the rebuttal)."+ },+ "createdAt": "2026-08-02T09:24:08.015Z",+ "modifiedAt": "2026-11-19T16:57:43.344Z",+ "url": "https://openreview.net/forum?id=aDwsX9XZ7O¬eId=VAk4YxodJG",+ "license": "CC-BY-4.0"+}
reviews/openreview/adwsx9xz7o/notes/yoiepqnqyi.json added
+++ b/reviews/openreview/adwsx9xz7o/notes/yoiepqnqyi.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "yoiePQNQYi",+ "replyTo": "4pAIbPow7d",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer rU6F, part 2",+ "comment": "Here are answers to your questions:\n\n> Q1: Could you explain what you mean with **uniform/non-uniform** in lines 125-129?\n\nTo clarify the terminology, “uniform” log-precision transformers here refer to one model with a fixed set of weights, independent of input length $n$. In other words, model weighs do not depend on $n$ and a single model can process a string of any length. This is in contrast with non-uniform models, which define a separate model (set of weights) for each context length).\n\nAs you correctly note, longer executions with log-precision require $O(\\log(n+t))$ bits, which grows with $n$ and $t$. We emphasize that this is *working* precision. In a uniform model, model weights are defined as fixed numbers independent of input length, but the model is allowed to use more (depending on $n$) working bits during its computation. The positional information follows fixed rules and naturally uses length-dependent precision (e.g., $\\log n$ bits to represent position $n$).\n\n> Q2: Could you **motivate your specific settings**, e.g., choice of attention mechanism, choice of extensions?\n\nTheorem 1 is the clearest direct simulation of Word-RAM and thus serves as an illustration of Word RAM simulation can be done: the model writes each word explicitly, uses $O(w)$ heads with $O(w)$-dimensional outputs to reassemble bits, and extracts bits by coordinates. The append-only store log makes reading an address a rightmost-match problem, for which fixed-precision rightmost UHAT is a natural match. Remark 3 explains why our indexed-read mechanism cannot combine exact key matching with an ever-finer positional tie-break under constant-precision AHAT.\nThe next two constructions focus on fixed-width simulations, which we feel are more realistic. They use log-precision representations, which support exact lookup via attention, but also require finding a way to serialize and deserialize the $O(\\log n)$ bit state elements (memory cells, instruction pointer, etc.) to the CoT. This turns out to be an immediate fit for Continuous CoT, and fairly easy to operationalize with one RNN layer, motivating these two minimal extensions.\n> Q3: Could you briefly **contextualize your contribution** with respect to [these three papers]?\n\nThank you for bringing this up. All of these works address complementary axes. Li and Wang [1,2] obtain constant learned-parameter resources with an unlearned length/space-dependent position embedding. Their main focus is on deriving a bound based on the Turing machine’s *space* usage. Further, the architecture in [2] depends on the Turing machine’s space usage parameter $c$, in the sense that one architecture does not realize all $c$.\n\nBrösamle and Eckstein [3] move the analysis from hard attention toward practical *softmax* attention.\n\nImportantly, all of these prior analyses simulate the Turing machine model of computation under varying settings.\n\nOur setup, in contrast, is the first to consider the (more efficient and natural) Word-RAM model, leverages a transformer’s random access ability via attention, and operates in near-linear RAM time (rather than the generally much larger Turing machine time). While the space-efficient simulation of Turing machines has implications on the efficiency of simulating algorithms with CoT (as Word RAM programs can be [inefficiently] simulated by Turing machines), the gains are marginal compared to our direct simulation of Word RAM programs and do not address the interpretability afforded by this direct simulation.\n\n[1] Li and Wang. *Constant Bit-size Transformers Are Turing Complete*. NeurIPS 2025.\n\n[2] Li and Wang. *Efficient Turing Machine Simulation with Transformers*. ICLR 2026.\n\n[3] Brösamle and Eckstein. *The Expressive Power of Low Precision Softmax Transformers with (Summarized) Chain-of-Thought*. ICML 2026."+ },+ "createdAt": "2026-07-28T23:15:54.051Z",+ "modifiedAt": "2026-11-19T16:57:43.379Z",+ "url": "https://openreview.net/forum?id=aDwsX9XZ7O¬eId=yoiePQNQYi",+ "license": "CC-BY-4.0"+}