Pith

open record

sign in
Browse

arxiv: 2503.15242 · v2 · pith:BA4DCPY7 · submitted 2025-03-19 · cs.CL · cs.AI· cs.CC

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

Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 reserved pith:BA4DCPY7record.jsonopen to challenge →

classification cs.CL cs.AIcs.CC
keywords complexitycodebenchbigomodelstimebenchmarkspace
0
0 comments X
read the original abstract

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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 5 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. SkelDPO: A Skeleton-Guided Direct Preference Optimization Framework for Efficient Code Generation

    cs.SE 2026-06 unverdicted novelty 7.0

    SkelDPO improves code generation efficiency by 2-7% over prior DPO methods via joint preference losses on full code and efficiency-critical skeletons.

  2. Extrapolative Weight Averaging Reveals Correctness-Efficiency Frontiers in Code RL

    cs.LG 2026-05 conditional novelty 7.0

    Extrapolative weight averaging of RL checkpoints trained under nested unit-test coverage extends a correctness-efficiency frontier and boosts ensemble pass rates in code generation across model scales and inference modes.

  3. MetaLint: Easy-to-Hard Generalization for Code Linting

    cs.SE 2025-07 unverdicted novelty 7.0

    MetaLint uses meta-learning to let models generalize from easy synthetic linting data to hard human-curated best practices, yielding large F-score gains on a new PEP-inspired benchmark.

  4. Chiseling Out Efficiency: Structured Skeleton Supervision for Efficient Code Generation

    cs.SE 2026-06 unverdicted novelty 6.0

    EffiSkel improves LLM-generated code efficiency by supervising on extracted structural efficiency skeletons via multi-task learning of code generation and skeleton prediction.

  5. CodeGolf Bench: A Multi-Language Benchmark for Evaluating Concise Code Generation Capabilities of Large Language Models

    cs.SE 2026-05 unverdicted novelty 5.0

    CodeGolf Bench is a dynamic benchmark for LLM concise code generation in 60 languages, showing reasoning models reach 70.97% average human percentile on Python and C++ tasks while non-reasoning models lag.