Conditions for Length Generalization in Learning Reasoning Skills

Changnan Xiao, Bing Liu
11/22/2023
cs.AIcs.CLcs.LG

No confident code implementation found for this paper.

Abstract

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 have also showed some limitations. An outstanding limitation is length generalization, meaning that when trained on reasoning problems of smaller lengths or sizes, the resulting models struggle with problems of larger sizes or lengths. This potentially indicates some theoretical limitations of generalization in learning reasoning skills. These evaluations and their observations motivated us to perform a theoretical study of the length generalization problem. This work focuses on reasoning tasks that can be formulated as Markov dynamic processes (MDPs) and/or directed acyclic graphs (DAGs). It identifies and proves conditions that decide whether the length generalization problem can be solved or not for a reasoning task in a particular representation. Experiments are also conducted to verify the theoretical results.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xiao2023conditions,
  title  = {Conditions for Length Generalization in Learning Reasoning Skills},
  author = {Changnan Xiao and Bing Liu},
  year   = {2023},
  eprint = {2311.16173},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.16173v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.16173.svg)](https://codeofpaper.com/paper/2311.16173)

Discussion