scimeatlas

Research map / Large language models / Agents, code and math

More Than Just Functional: LLM-as-a-Critique for Efficient Code Generation

Derui Zhu, Dingfan Chen, jinfu chen, Jens Grossklags, Walter Pretschner, Weiyi Shang

NeurIPS 2025Large language models › Agents, code and mathapproach: Execution-based code verificationopen problems in this approach0 citations (OpenAlex)

Max Planck Institute for Intelligent Systems · Wuhan University · Technical University of Munich · University of Waterloo

Read the paperPlace an idea next to itCheck your own paper ↗

In one sentence

The paper uses LLM-as-a-critique to push LLM code generation toward efficiency as well as functional correctness, addressing the perplexity objective's bias toward functionality.

AI-extracted summary. Written by AI from the paper's abstract only. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Problem

LLM code generation is trained and decoded with perplexity objectives that emphasize functional correctness while neglecting code efficiency, which matters for real-world coding tasks.

Approach

Observes that well-trained LLMs can recognize efficiency differences in code they generate, and leverages the LLM itself as a critic to steer generation toward more efficient code. Based on the abstract only; method details are not available.

Surprising findings

  • Well-trained LLMs can recognize efficiency differences in code they generate despite optimizing perplexity for functionality.

Open problems in execution-based code verification

Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy