mlsanityData to 14 Oct 2026

BigO(Bench): Can LLMs Generate Code with Controlled Time and Space Complexity?

arXiv 2503.15242 ↗First posted 19 Mar 2025cs.CL cs.AI cs.CCcited by 12

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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 8; 2026: 4.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024CodeComplex: Dataset for Worst-Case Time Complexity Prediction
  2. 2026CodeEval: A pedagogical approach for targeted evaluation of code-trained Large Language Models
  3. 2026Narrowing the Complexity Gap in the Evaluation of Large Language Models ↗
  4. 2025Towards Advancing Code Generation with Large Language Models: A Research Roadmap
  5. 2026EsoLang-Bench: Evaluating Genuine Reasoning in Large Language Models via Esoteric Programming Languages
  6. 2025Increasing LLM Coding Capabilities through Diverse Synthetic Coding Tasks
  7. 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models
  8. 2025Evaluating Code Reasoning Abilities of Large Language Models Under Real-World Settings