Skip to content
Doezly AI
Go back

Parsimony: A New Benchmark That Measures Code Bloat in AI Models

Edit page

Parsimony is a new open-source benchmark that measures how much code an AI model adds to solve a task—not just whether it solves it—filling a gap left by existing benchmarks that track solve rate and token cost but ignore code bloat.

Comparison of coding benchmarks showing only Parsimony penalizes code bloat, plus a diagram of its net coding-units formula and two unranked faded-circle models.

The Problem It Solves

Most coding benchmarks (SWE-bench Verified, SWE-bench Live, DeepSWE) report solve rate and token output/cost. Neither metric penalizes a model for generating more code than necessary. In production codebases, bloated patches increase maintenance burden, review time, and long-term technical debt—even when the patch technically passes tests.

How It Works

Parsimony reuses patches already published by existing benchmarks and computes a net coding units score instead of raw lines of code (LOC), which can be gamed by cramming logic onto fewer lines.

coding_unit_count(patch) =
    count(statements) + count(calls) + count(names) + count(literals)
    - count(deleted_statements) - count(deleted_calls)
    - count(deleted_names) - count(deleted_literals)

Key design choices:

Comparison: What Parsimony Adds

BenchmarkMeasuresPenalizes Bloat?Data Source
SWE-bench VerifiedSolve rateNoPublic patches
SWE-bench LiveSolve rate (live tasks)NoPublic patches
DeepSWESolve rate, token costNoPublic patches
ParsimonyNet coding units per solveYesReused public patches + manual runs

Current Limitations

Why It Matters

For teams optimizing for long-term codebase health rather than one-shot task completion, Parsimony offers a complementary signal: a model that solves a task with fewer net syntax units is likely easier to review, maintain, and extend. The project is open-source on GitHub, with the author inviting feedback and model contributions.


Edit page
Share this post:

Previous Post
AI Models May Soon Self-Replicate Without Data Centers
Next Post
Is Your AI Stealing Your Ideas? What Scientists Are Really Worried About