English

Recursion of Thought: A Divide-and-Conquer Approach to Multi-Context Reasoning with Language Models

Computation and Language 2023-06-13 v1 Artificial Intelligence

Abstract

Generating intermediate steps, or Chain of Thought (CoT), is an effective way to significantly improve language models' (LM) multi-step reasoning capability. However, the CoT lengths can grow rapidly with the problem complexity, easily exceeding the maximum context size. Instead of increasing the context limit, which has already been heavily investigated, we explore an orthogonal direction: making LMs divide a problem into multiple contexts. We propose a new inference framework, called Recursion of Thought (RoT), which introduces several special tokens that the models can output to trigger context-related operations. Extensive experiments with multiple architectures including GPT-3 show that RoT dramatically improves LMs' inference capability to solve problems, whose solution consists of hundreds of thousands of tokens.

Keywords

Cite

@article{arxiv.2306.06891,
  title  = {Recursion of Thought: A Divide-and-Conquer Approach to Multi-Context Reasoning with Language Models},
  author = {Soochan Lee and Gunhee Kim},
  journal= {arXiv preprint arXiv:2306.06891},
  year   = {2023}
}

Comments

ACL 2023 (short, findings)

R2 v1 2026-06-28T11:02:36.324Z