BigO(Bench): Can LLMs Generate Code with Controlled Time and Space Complexity?
Not on the map. Why?
Abstract (arXiv)
We introduce BigO(Bench), a novel coding benchmark designed to evaluate the capabilities of generative language models in understanding and generating code with specified time and space complexities. This benchmark addresses the gap in current evaluations that often overlook the ability of models to comprehend and produce code constrained by computational complexity. BigO(Bench) includes tooling to infer the algorithmic complexity of any Python function from profiling measurements, including human- or LLM-generated solutions. BigO(Bench) also includes of set of 3,105 coding problems and 1,190,250 solutions from Code Contests annotated with inferred (synthetic) time and space complexity labels from the complexity framework, as well as corresponding runtime and memory footprint values for a large set of input sizes. We present results from evaluating multiple state-of-the-art language models on this benchmark, highlighting their strengths and weaknesses in handling complexity requirements. In particular, token-space reasoning models are unrivaled in code generation but not in complexity understanding, hinting that they may not generalize well to tasks for which no reward was given at training time.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). First posted on arXiv 19 Mar 2025.
Builds on
0 of 0 references.
No references here yet.
Built on by
Citing papers per year: 2025: 8; 2026: 4.
12 papers.
- 2025CWM: An Open-Weights LLM for Research on Code Generation with World Modelscited by 93
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agentscited by 25
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programmingcited by 2
- 2026Extrapolative Weight Averaging Reveals Correctness-Efficiency Frontiers in Code RLcited by 2
- 2025SIMCOPILOT: Evaluating Large Language Models for Copilot-Style Code Generationcited by 0
- 2025LLM-Based Instance-Driven Heuristic Bias In the Context of a Biased Random Key Genetic Algorithmcited by 0
- 2025Rethinking Technology Stack Selection with AI Coding Proficiencycited by 0
- 2025SwiftSolve: A Self-Iterative, Complexity-Aware Multi-Agent Framework for Competitive Programmingcited by 0
- 2026CodeGolf Bench: A Multi-Language Benchmark for Evaluating Concise Code Generation Capabilities of Large Language Modelscited by 0
- 2026Towards Evaluation of Implicit Software World Models in Coding LLMscited by 0
- 2026Memorization Diagnostics for Code LLMs Should be Scale-Awarecited by 0
- 2026Memorization Diagnostics for Code LLMs Should be Scale-Aware13 Aug 2026
- 2026Towards Evaluation of Implicit Software World Models in Coding LLMs25 Jun 2026
- 2026CodeGolf Bench: A Multi-Language Benchmark for Evaluating Concise Code Generation Capabilities of Large Language Models28 May 2026
- 2026Extrapolative Weight Averaging Reveals Correctness-Efficiency Frontiers in Code RL27 May 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025SwiftSolve: A Self-Iterative, Complexity-Aware Multi-Agent Framework for Competitive Programming26 Oct 2025
- 2025CWM: An Open-Weights LLM for Research on Code Generation with World Models30 Sep 2025
- 2025Rethinking Technology Stack Selection with AI Coding Proficiency14 Sep 2025
- 2025LLM-Based Instance-Driven Heuristic Bias In the Context of a Biased Random Key Genetic Algorithm5 Sep 2025
- 2025AlgoSimBench: Identifying Algorithmically Similar Problems for Competitive Programming21 Jul 2025
- 2025GSO: Challenging Software Optimization Tasks for Evaluating SWE-Agents29 May 2025
- 2025SIMCOPILOT: Evaluating Large Language Models for Copilot-Style Code Generation21 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024CodeComplex: Dataset for Worst-Case Time Complexity Prediction
- 2026CodeEval: A pedagogical approach for targeted evaluation of code-trained Large Language Models
- 2026Narrowing the Complexity Gap in the Evaluation of Large Language Models ↗
- 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap
- 2026EsoLang-Bench: Evaluating Genuine Reasoning in Large Language Models via Esoteric Programming Languages
- 2025Increasing LLM Coding Capabilities through Diverse Synthetic Coding Tasks
- 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models
- 2025Evaluating Code Reasoning Abilities of Large Language Models Under Real-World Settings