AI
New Framework Improves How AI Judges Code Quality Before Deployment
Researchers propose AXIOM, a structured perturbation method to build more reliable benchmarks for evaluating LLM-generated code across balanced quality levels.
Evaluating code produced by large language models remains a challenge before systems go live. Existing benchmarks for assessing whether LLM-as-a-judge metrics work well have significant gaps: some rely on crude pass-or-fail verdicts from unit tests, while others depend on manually scored criteria that can be subjective and inconsistent. A new research framework called AXIOM tackles these shortcomings head-on.
The Problem with Current Evaluation Methods#
Traditional metrics for scoring generated code either measure similarity to reference implementations or execute expensive test suites. When researchers have turned to using LLMs themselves as judges—evaluating both functional correctness and code quality—they've built benchmarks to validate these approaches. Yet these benchmarks fall short.
- Coarse-grained labels fail to capture the difference between minor issues and serious flaws
- Manually annotated scores can be vague and unreliable, introducing human bias
- Unbalanced quality distributions in generated code don't adequately test how well metrics discriminate across different defect levels
How AXIOM Works#
The researchers propose a two-stage perturbation-based framework that reframes code scoring as the amount of refinement effort needed before deployment can occur.
Stage 1: Quality-constrained semantic perturbation uses LLMs to apply carefully designed sequences of perturbation rules to existing programs. This allows the team to precisely target and control each program's quality level, creating a more balanced overall distribution.
Stage 2: Hybrid quality calibration selects semantically distinct programs to ensure benchmark diversity and performs streamlined manual annotation informed by multiple sources of context.
AXIOMBENCH: A Multilingual Benchmark at Scale#
Using AXIOM, researchers curated AXIOMBENCH, a large-scale benchmark containing 1,962 code evaluation problems across multiple programming languages. The new dataset features a more balanced score distribution than previous benchmarks, enabling more rigorous and representative evaluation of code-judging metrics.
This approach provides a foundation for developing more reliable code evaluation systems as AI-assisted development becomes increasingly common.

