InftyThink: Breaking Length Limits of Long-Context Reasoning (2026) logo

InftyThink: Breaking Length Limits of Long-Context Reasoning (2026)

Free

"Jagged" iterative reasoning — splits long reasoning into short segments with summaries, enabling unlimited depth without hitting context limits; ICLR 2026; +3–13% on MATH500/AIME24/GPQA

FreeFree tier
Inputs: textOutputs: text
Type
Open Source

About InftyThink: Breaking Length Limits of Long-Context Reasoning (2026)

InftyThink is a novel reasoning paradigm for large language models that breaks the length limits of traditional long-context reasoning. Instead of processing entire reasoning chains in a single pass, InftyThink interleaves short reasoning segments with concise progress summaries, creating an iterative process with a characteristic sawtooth memory pattern. This approach enables unbounded reasoning depth while keeping computational costs bounded, avoiding quadratic scaling with sequence length and performance degradation beyond pre-training context windows. The method is model-agnostic and has been demonstrated on Qwen2.5-Math-7B and other architectures, achieving 3-11% improvements on MATH500, AIME24, and GPQA_diamond benchmarks. The authors also developed a pipeline to reconstruct long-context reasoning datasets into the iterative format, transforming OpenR1-Math into 333K training instances. InftyThink is open-source, with code and project page available, and was accepted at ICLR 2026.

Key Features

Iterative reasoning with intermediate summarization
Unbounded reasoning depth with bounded computational cost
Sawtooth memory pattern reduces computational complexity
Model-agnostic; demonstrated on Qwen2.5-Math-7B and others
Reconstructed long-context datasets (333K instances from OpenR1-Math)
No architectural modifications required
Open-source code and project page available

Pros & Cons

Pros
  • Reduces computational costs compared to monolithic long-context reasoning
  • Improves reasoning performance by 3-11% across multiple benchmarks
  • Enables reasoning beyond model's pre-training context window
  • No changes to model architecture required
  • Open-source with available code and dataset reconstruction pipeline
Cons
  • Requires reformatting of existing long-context reasoning datasets for training
  • Performance gains may vary depending on model and task
  • Primarily evaluated on mathematical and scientific reasoning; broader applicability not yet verified

Best For

Complex mathematical problem solving (e.g., MATH500, AIME24)Scientific reasoning and question answering (GPQA_diamond)Long-context reasoning tasks that exceed standard context windowsReducing computational overhead for deep reasoning chains

FAQ

What is InftyThink?
InftyThink is a reasoning paradigm that breaks long reasoning chains into short segments interleaved with intermediate summaries, enabling unbounded reasoning depth with bounded computational cost.
How does InftyThink work?
It transforms monolithic reasoning into an iterative process: the model alternates between a short reasoning segment and a concise progress summary, creating a sawtooth memory pattern that avoids quadratic scaling.
What benchmarks were used to evaluate InftyThink?
InftyThink was evaluated on MATH500, AIME24, and GPQA_diamond, showing 3-11% improvements over baseline methods.
Is the code for InftyThink available?
Yes, the paper includes a link to the code and project page, and the dataset (333K training instances) was reconstructed from OpenR1-Math.
What models has InftyThink been tested on?
The paper tested across multiple model architectures, with detailed results reported for Qwen2.5-Math-7B.