paper-with-me

홈 › Papers

A Theory for Length Generalization in Learning to Reason

2024-03-31 · Changnan Xiao, Bing Liu

Length generalization (LG) is a challenging problem in learning to reason. It refers to the phenomenon that when trained on reasoning problems of smaller lengths or sizes, the resulting model struggles with problems of larger sizes or lengths. Although LG has been studied by many researchers, the challenge remains. This paper proposes a theoretical study of LG for problems whose reasoning processes can be modeled as DAGs (directed acyclic graphs). The paper first identifies and proves the conditions under which LG can be achieved in learning to reason. It then designs problem representations based on the theory to learn to solve challenging reasoning problems like parity, addition, and multiplication, using a Transformer to achieve perfect LG.

📄 PDF Abstract BibTeX arXiv:2404.00560

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Multi-Head Attention 설명 없음
Adam 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization

2025-11-10 · Yu Huang, Zixin Wen, Aarti Singh, Yuejie Chi 외 arxiv

The ability to reason lies at the core of artificial intelligence (AI), and challenging problems usually call for deeper and longer reasoning to tackle. A crucial question about AI reasoning is whether models can extrapo…

Boule or Baguette? A Study on Task Topology, Length Generalization, and the Benefit of Reasoning Traces

2026-02-16 · William L. Tong, Ege Cakar, Cengiz Pehlevan arxiv

Recent years have witnessed meteoric progress in reasoning models: neural networks that generate intermediate reasoning traces (RTs) before producing a final output. Despite the rapid advancement, our understanding of ho…

An Asymptotic Theory of Chain-of-Thought in In-Context Learning

2026-06-02 · Kaito Takanami, Cengiz Pehlevan arxiv

Chain-of-thought (CoT) reasoning has become a widely used mechanism for eliciting multi-step reasoning in large language models by generating intermediate reasoning steps at inference time. Yet the scaling behavior of ge…

Algebraic Decomposition Theory for Transformer Length Generalization

2026-08-13 · Andy Yang, Blerta Veseli, Corentin Barloy, Michaël Cadilhac 외 arxiv

Transformer-based language models are known to sometimes generalize to sequences longer than seen during training, but we lack a precise characterization of which tasks admit length generalization. It is not even known w…

Conditions for Length Generalization in Learning Reasoning Skills

2023-11-22 · Changnan Xiao, Bing Liu

Reasoning is a fundamental capability of AI agents. Recently, large language models (LLMs) have shown remarkable abilities to perform reasoning tasks. However, numerous evaluations of the reasoning capabilities of LLMs h…