GSM-Infinite: How Do Your LLMs Behave over Infinitely Increasing Context Length and Reasoning Complexity?
Yang Zhou, Hongyi Liu, Zhuoming Chen, Yuandong Tian, Beidi Chen
TL;DR
GSM-$\infty$ tackles the problem of benchmarking LLM reasoning under infinitely increasing context length by introducing a synthetic, graph-based benchmark that can scale both context and reasoning complexity. It builds problem statements from computational graphs with explicit and implicit operations, and injects noise via a spider-like topology to challenge information retrieval during solving. The authors present a reverse-mode data generation to produce implicit subtraction and division, three real-world templates to maintain linguistic variety, and a comprehensive evaluation across dozens of models showing sigmoid-like degradation as complexity grows and linear AUC gains with exponentially more inference compute. The benchmark provides a scalable testbed for systematically studying LLM reasoning in dense, long contexts and highlights fundamental scaling limits, guiding future research on training and inference strategies for advanced reasoning tasks.
Abstract
Long-context large language models (LLMs) have recently shown strong performance in information retrieval and long-document QA. However, to tackle the most challenging intellectual problems, LLMs must reason effectively in long and complex contexts (e.g., frontier mathematical research). Studying how LLMs handle increasing reasoning complexity and context length is essential, yet existing benchmarks lack a solid basis for quantitative evaluation. Inspired by the abstraction of GSM-8K problems as computational graphs, and the ability to introduce noise by adding unnecessary nodes and edges, we develop a grade school math problem generator capable of producing arithmetic problems with infinite difficulty and context length under fine-grained control. Using our newly synthesized GSM-Infinite benchmark, we comprehensively evaluate existing LLMs. We find a consistent sigmoid decline in reasoning performance as complexity increases, along with a systematic inference scaling trend: exponentially increasing inference computation yields only linear performance gains. These findings underscore the fundamental limitations of current long-context LLMs and the key challenges in scaling reasoning capabilities. Our GSM-Infinite benchmark provides a scalable and controllable testbed for systematically studying and advancing LLM reasoning in long and complex contexts.
