Barriers to Universal Reasoning With Transformers (And How to Overcome Them)

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kraus, Oliver, Sarrof, Yash, Yao, Yuekun, Koller, Alexander, Hahn, Michael
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914514532827136
author Kraus, Oliver
Sarrof, Yash
Yao, Yuekun
Koller, Alexander
Hahn, Michael
author_facet Kraus, Oliver
Sarrof, Yash
Yao, Yuekun
Koller, Alexander
Hahn, Michael
contents Chain-of-Thought (CoT) has been shown to empirically improve Transformers' performance, and theoretically increase their expressivity to Turing completeness. However, whether Transformers can learn to generalize to CoT traces longer than those seen during training is understudied. We use recent theoretical frameworks for Transformer length generalization and find that -- under standard positional encodings and a finite alphabet -- Transformers with CoT cannot solve problems beyond $TC^0$, i.e. the expressivity benefits do not hold under the stricter requirement of length-generalizable learnability. However, if we allow the vocabulary to grow with problem size, we attain a length-generalizable simulation of Turing machines where the CoT trace length is linear in the simulated runtime up to a constant. Our construction overcomes two core obstacles to reliable length generalization: repeated copying and last-occurrence retrieval. We assign each tape position a unique signpost token, and log only value changes to enable recovery of the current tape symbol through counts circumventing both barriers. Further, we empirically show that the use of such signpost tokens and value change encodings provide actionable guidance to improve length generalization on hard problems.
format Preprint
id arxiv_https___arxiv_org_abs_2604_25800
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Barriers to Universal Reasoning With Transformers (And How to Overcome Them)
Kraus, Oliver
Sarrof, Yash
Yao, Yuekun
Koller, Alexander
Hahn, Michael
Machine Learning
Computation and Language
Chain-of-Thought (CoT) has been shown to empirically improve Transformers' performance, and theoretically increase their expressivity to Turing completeness. However, whether Transformers can learn to generalize to CoT traces longer than those seen during training is understudied. We use recent theoretical frameworks for Transformer length generalization and find that -- under standard positional encodings and a finite alphabet -- Transformers with CoT cannot solve problems beyond $TC^0$, i.e. the expressivity benefits do not hold under the stricter requirement of length-generalizable learnability. However, if we allow the vocabulary to grow with problem size, we attain a length-generalizable simulation of Turing machines where the CoT trace length is linear in the simulated runtime up to a constant. Our construction overcomes two core obstacles to reliable length generalization: repeated copying and last-occurrence retrieval. We assign each tape position a unique signpost token, and log only value changes to enable recovery of the current tape symbol through counts circumventing both barriers. Further, we empirically show that the use of such signpost tokens and value change encodings provide actionable guidance to improve length generalization on hard problems.
title Barriers to Universal Reasoning With Transformers (And How to Overcome Them)
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2604.25800