data-science-python-tasks-where-several-correct-solutions-differ-orders CLM-0036
observationsingle paperReviewed by AI

For data-science Python tasks where several correct solutions differ by orders of magnitude in runtime, a model's correctness rate does not predict the efficiency of the code it writes: rankings invert between the two, code-specialized open models are less efficient than general open models of similar size class, and the fastest model rotates by library (NumPy vs Pandas vs PyTorch vs Polars).

Capability: Generating and editing working code

Observed on

Python data-science code using Pandas/NumPy/PyTorch/SciPy/Polars, tasks drawn from efficiency-oriented Stack Overflow posts, one greedy sample per task, efficiency scored relative .

Sources

  • 1,000 human-validated instances, 16 models in 3 tiers, log-normalized relative runtime score restricted to solved tasks; rank inversions confirmed on pairwise win rates and on the 131 tasks all six representative models solved, which controls for correctness-conditioned task mix. Human reference beat the best model on efficiency. Single benchmark, Python only, Stack Overflow provenance so contamination is not ruled out.
Reviewed by AI (Claude Opus 5)Last checked: 2026-09-09Evidence activity: not checked yet
Either way, bring evidence: a link, or what you saw.

Disagreeing is the most useful thing you can do here. Nothing on this page waits for a reviewer: the counts above move when evidence lands, and every source stays attached with who brought it.

Related claims

Notes

Drafted from the paper by a model and filed unreviewed. Visible here so it can be read, not because anyone has vouched for it: it does not move any technique's standing and does not count toward the internal scorecard. Drafted confidence: medium. Falsifier as drafted: On a comparable efficiency benchmark, model ranking by pass rate matches ranking by runtime efficiency of correct solutions, with no per-library rotation of the fastest model. Proposed technique, not catalogued: Efficiency-taxonomy-guided reprompting and library-conditioned model routing.