potentialpaper

Efficiently Representing Algorithms With Chain-of-Thought Transformers

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:49 UTC · cef7ff267f4e ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,24 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "aDwsX9XZ7O"
- }
- ],
- "title": "Efficiently Representing Algorithms With Chain-of-Thought Transformers",
- "authors": [
- "Yanhong Li",
- "Anej Svete",
- "Ashish Sabharwal",
- "William Merrill"
- ],
- "abstract": "The increasing popularity of *reasoning* models---language models that output a series of reasoning or thought tokens before producing an answer---is justified, in part, by theoretical results showing that chain-of-thought (CoT) transformers can simulate Turing machines, and thus perform arbitrary computation. \nHowever, the Turing machine, while suitable for a complexity theoretic analysis, isn't convenient, intuitive, or efficient when discussing algorithms. \nAlgorithms are typically designed and analyzed at a higher level of abstraction, captured by the *Word RAM* model with random-access memory and unit-cost operations on $O(\\log n)$-bit words. \nAs a result, Word RAM algorithms can be substantially more efficient than their Turing machine counterparts, raising the question: *Can CoT transformers efficiently simulate Word RAM algorithms?* For instance, can they sort $n$ items in $O(n \\log n)$ steps or run Dijkstra's algorithm in $O(E + V \\log V)$ steps?\nWe answer affirmatively for three types of transformers, up to poly-logarithmic overhead. \nWe first establish this for finite-precision transformers with poly-logarithmic width and rightmost unique hard attention, then strengthen the result to two more practical settings with finite width and log-precision: *continuous* CoT, where reasoning takes the form of vectors rather than tokens, and a *hybrid* architecture in which transformer layers sit atop a recurrent (linear RNN) layer. \nIn all three cases, we find that CoT *can* efficiently simulate any Word RAM algorithm with only a poly-logarithmic overhead in $n$. \nThis overhead reduces to log-square when the Word RAM has a \"flat\" instruction set, and only logarithmic for multiplication-free flat instructions---in stark contrast to known CoT simulations of Turing machines, which require quadratic overhead over Word RAM.",
- "year": 2026,
- "venue": "NeurIPS 2026",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "90afec45-def3-4ce0-ad7f-413332f017b2"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,14 @@
+{
+ "title": "Efficiently Representing Algorithms With Chain-of-Thought Transformers",
+ "authors": [
+ "Yanhong Li",
+ "Anej Svete",
+ "Ashish Sabharwal",
+ "William Merrill"
+ ],
+ "abstract": "The increasing popularity of *reasoning* models---language models that output a series of reasoning or thought tokens before producing an answer---is justified, in part, by theoretical results showing that chain-of-thought (CoT) transformers can simulate Turing machines, and thus perform arbitrary computation. \nHowever, the Turing machine, while suitable for a complexity theoretic analysis, isn't convenient, intuitive, or efficient when discussing algorithms. \nAlgorithms are typically designed and analyzed at a higher level of abstraction, captured by the *Word RAM* model with random-access memory and unit-cost operations on $O(\\log n)$-bit words. \nAs a result, Word RAM algorithms can be substantially more efficient than their Turing machine counterparts, raising the question: *Can CoT transformers efficiently simulate Word RAM algorithms?* For instance, can they sort $n$ items in $O(n \\log n)$ steps or run Dijkstra's algorithm in $O(E + V \\log V)$ steps?\nWe answer affirmatively for three types of transformers, up to poly-logarithmic overhead. \nWe first establish this for finite-precision transformers with poly-logarithmic width and rightmost unique hard attention, then strengthen the result to two more practical settings with finite width and log-precision: *continuous* CoT, where reasoning takes the form of vectors rather than tokens, and a *hybrid* architecture in which transformer layers sit atop a recurrent (linear RNN) layer. \nIn all three cases, we find that CoT *can* efficiently simulate any Word RAM algorithm with only a poly-logarithmic overhead in $n$. \nThis overhead reduces to log-square when the Word RAM has a \"flat\" instruction set, and only logarithmic for multiplication-free flat instructions---in stark contrast to known CoT simulations of Turing machines, which require quadratic overhead over Word RAM.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}