Manuscript Offprint

arXiv:2610.08173

Beyond the Leaderboard: Multi-Dimensional Evaluation of Dense and Mixture-of-Experts Models for Automated Program Repair

Anvi Kalpesh Shah, Umamaheswara Sharma B

Anvi Kalpesh Shah

National Institute of Technology, Calicut

anvi_b230027cs@nitc.ac.in

Umamaheswara Sharma B

National Institute of Technology, Calicut

busharma@nitc.ac.in

Abstract—Automated Program Repair (APR) systems based on language models are commonly evaluated by whether generated patches pass the associated test suite. However, functional correctness alone can overlook differences in maintainability, security, and computational cost that affect the practical use of generated patches in real-world software engineering. This paper presents a multi-dimensional evaluation framework for APR that combines functional correctness, maintainability, security, and generation efficiency into a Weighted Quality Index (QI) inspired by the ISO/IEC 25010 software product quality model. We evaluate four code-specialized language models: three dense Qwen2.5-Coder models at 3B, 7B, and 14B parameters, and the 16B-parameter DeepSeek-Coder-V2-Lite Mixture-of-Experts (MoE) model with 2.4B active parameters. All models are evaluated locally on identical hardware to control for infrastructure-related differences in efficiency, using 40 bugs from QuixBugs and 90 bugs from Defects4J. Our results show that model rankings vary across the weighting schemes, highlighting the sensitivity of APR evaluation to the relative importance assigned to different quality dimensions. The MoE model achieves functional correctness that has no statistically significant difference (McNemar's exact test) from both the 7B and 14B dense models despite using 3–6 times fewer active parameters, while the three dense models show a statistically significant scaling trend among themselves. These results suggest that active parameter count can provide a more informative lens than total parameter count for sparse code models, and that single-metric evaluation of APR quality can hide this kind of trade-off.

Index Terms—Automated Program Repair, Language Models, Mixture-of-Experts, Software Quality, Functional Correctness, Maintainability, Security, Generation Efficiency, Quality Index.

I. INTRODUCTION

Automated Program Repair (APR) aims to automatically generate patches for software defects [1], reducing the effort required to diagnose and fix bugs. A common way of reporting APR performance is as a single number: the fraction of bugs for which a generated patch passes the associated test suite. While this provides a useful and reproducible measure of functional correctness, it does not capture the broader quality of the resulting patch. A patch that passes its tests but is unnecessarily complex, introduces a statically detectable security weakness, or requires substantially more computation to generate may be a worse engineering artifact than one that is simpler, safer, and more efficient—even when both are equally “correct” according to the test suite.

At the same time, the rise of sparse Mixture-of-Experts (MoE) architectures raises a related evaluation question: what does it mean to compare a “small” and a “large” model? A MoE model may have a large total parameter count but activate only a fraction of its parameters per token, making total parameter count an imperfect proxy for inference cost. Similarly, comparing models evaluated on different infrastructure—for example, a locally hosted model versus an API-hosted model—can make efficiency differences difficult to attribute solely to the models themselves. These considerations suggest that both parameter usage and evaluation infrastructure should be accounted for when examining efficiency across model architectures.

This paper addresses both issues together. We construct a Weighted Quality Index (QI) inspired by the ISO/IEC 25010 systems and software quality model [2], which combines functional correctness with three characteristics ISO/IEC 25010 identifies as part of product quality: maintainability, security, and performance efficiency. We evaluate every model entirely on local hardware with an identical inference stack, removing the infrastructure confound, and we report both total and active parameter counts for every model so that architecture-driven efficiency claims can be distinguished from simple scale.

We ask two research questions:

RQ1 (the quality framework). Does evaluating APR patches through a multi-dimensional, ISO/IEC 25010-inspired Quality Index reveal information that functional-correctness-only evaluation misses, and how sensitive is the resulting ranking to the relative weighting of the four dimensions?

RQ2 (dense vs. sparse models). Within this framework, does a sparse (MoE) code model achieve patch quality comparable to dense models while using substantially fewer active parameters, and how does functional correctness change as dense models scale in parameter count?

Our contributions are threefold: (1) a reusable, ISO/IEC 25010-inspired multi-dimensional Quality Index methodology for APR evaluation that combines functional correctness, maintainability, security, and generation efficiency under configurable weighting schemes; (2) a fully local, infrastructure-controlled experimental evaluation across QuixBugs [3] and Defects4J [4], covering 130 bugs and four code-specialized language models spanning dense and sparse architectures; and (3) an empirical analysis addressing both research questions, including statistical significance testing of the correctness comparisons and analysis of ranking sensitivity across QI weighting schemes.