AlgBench: To What Extent Do Large Reasoning Models Understand Algorithms?

Henan Sun, Kaichi Yu, Yuyao Wang, Bowen Liu, Xunkai Li, Rong-Hua Li, Nuo Chen, Jia Li

TL;DR

AlgBench is a new expert-curated benchmark that shifts the evaluation of Large Reasoning Models (LRMs) from a "problem-centric" to an "algorithm-centric" paradigm. The study reveals that while models like GPT-o3 and DeepSeek-v3.2 excel at simple procedural tasks, they hit a significant performance wall in global optimization (e.g., dynamic programming), often failing due to "strategic over-shifts" triggered by their own structural reasoning.

What Problem Does This Paper Address?

Current benchmarks for Large Reasoning Models (LRMs), such as MATH500 or LiveCodeBench, often conflate different types of reasoning. The authors argue that algorithmic reasoning is fundamentally different from mathematical reasoning. While math is largely deductive (axioms $\rightarrow$ theorems $\rightarrow$ calculation), algorithms are procedural and structural (data structures $\rightarrow$ state transitions $\rightarrow$ execution).

Figure 1: The difference between math reasoning and algorithmic reasoning.

Existing algorithmic benchmarks suffer from three main flaws:

  1. Problem-Centricity: They use complex competitive programming problems that require multiple algorithms at once, making it impossible to isolate which specific skill a model lacks.
  2. Limited Scope: They often focus only on basic textbook algorithms.
  3. Data Contamination: Many problems are pulled from public sites like LeetCode, which are likely present in the models' training data, leading to inflated performance scores.

Methods

The authors introduce AlgBench, a benchmark designed under an algorithm-centric paradigm. Instead of asking a model to "solve this hard problem," they isolate 27 specific algorithms and ask models to apply them to original, manually curated tasks.

The researchers categorized algorithms into a novel taxonomy:

  • Structure-oriented: Euclidean (arrays, binary search) and Non-Euclidean (graphs, network flow).
  • Optimization-oriented: Non-optimized (recursion), Local-optimized (greedy, MST), Global-optimized (Dynamic Programming), and Heuristic-optimized (A*).

To evaluate the models, they used an automated error-detection pipeline where one model (Qwen3-235B) segments the reasoning process and another (GPT-o3) annotates errors based on a predefined typology (e.g., "State Transition Error" or "Strategic Over-exploration").

Figure 2: The overview of the proposed benchmark.

Datasets

The core contribution is the AlgBench dataset:

  • 3,000+ original problems created by ACM algorithmic experts.
  • 27 distinct algorithms covered.
  • Zero overlap with existing open-source platforms to ensure a contamination-free evaluation.
  • Problems are stratified into three difficulty levels based on computational complexity.

Key Insights and Ideas

  • The Global Optimization Ceiling: Models show a massive performance gap between simple procedural tasks and global optimization. While DeepSeek-v3.2-Speciale hits 92% on non-optimized tasks, it plummets to 49% on Dynamic Programming (DP).
  • Non-Uniform Scaling: Increasing model parameters (scaling) significantly improves performance on graph-based and local-optimization tasks, but yields marginal gains for DP and heuristic search. This suggests that current Reinforcement Learning (RL) paradigms are reaching a plateau for abstract algorithmic logic.
  • Strategic Over-shifts: This is perhaps the most fascinating finding. Models often start with the correct algorithmic design but "spook" themselves. When they generate necessary but "low-entropy" tokens—like structural delimiters ][ in a DP table or specific numerical constants—the model's internal policy (often trained to maximize entropy/exploration) mistakenly interprets this as being stuck. It then prematurely abandons the correct path for a "better" (but actually incorrect) solution.

Key Results

The evaluation of 25 state-of-the-art models (including the latest from OpenAI, DeepSeek, and Google) highlights a clear hierarchy of difficulty across the taxonomy.

Figure 3: The normalized z-scores of LRMs on different algorithm taxonomies.
  • Top Performers: DeepSeek-v3.2-Speciale, Gemini-3-Pro, and GPT-o3 lead the pack, but all show the same "radar chart" shape, struggling heavily with Global and Heuristic optimization.
  • Quantitative Drop: As shown in the summary table, the average accuracy for the best models drops from ~80-90% in Euclidean structures down to ~40-50% for global optimization tasks.
Table 2: Leading LRMs’ performance on problems with different algorithmic ideas.

Limitations and Future Work

The authors acknowledge several areas for growth:

  • Algorithm Complexity: The current version lacks highly complex competitive algorithms like Segment Trees or Aho-Corasick.
  • Difficulty Quantification: It remains difficult to objectively quantify why one algorithm is "harder" for an LRM than another beyond empirical results.
  • Dataset Size: While 3,000 problems are excellent for evaluation, the authors note that much larger datasets are needed if we want to use an algorithm-centric approach for training models rather than just testing them.

The paper concludes that for LRMs to achieve true human-level algorithmic reasoning, we must move away from problem-centric RL and toward training paradigms that explicitly reward the mastery of underlying algorithmic principles.

Summary updated

BibTeX
@inproceedings{sun2026algbench,
  author = {Henan Sun and Kaichi Yu and Yuyao Wang and Bowen Liu and Xunkai Li and Rong-Hua Li and Nuo Chen and Jia Li},
  title = {{AlgBench: To What Extent Do Large Reasoning Models Understand Algorithms?}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.1885},
}
Figure