Manuscript Offprint

arXiv:2611.05797

DARE: Difficulty Analysis for Repair Enhancement

Jikwang Lee, Seungwook Jung, Jaechang Nam

Jikwang Lee, Seungwook Jung, Jaechang Nam

Handong Global University, Pohang, South Korea

lucas20606@gmail.com, wjdtmddnr123@gmail.com, jcnam@handong.edu

Abstract—LLM-based coding agents are primarily evaluated by their solve rates. However, this metric does not reveal how difficult the solved tasks are or account for differences in task difficulty across benchmarks. Determining the difficulty of individual tasks by repeatedly running multiple agents is costly, while a predicted difficulty score alone provides limited guidance on what support an agent needs. To address these challenges, we propose DARE (Difficulty Analysis for Repair Enhancement), which integrates repair-task difficulty measurement, prediction, feature-group contribution analysis, and task-specific repair support. We define continuous task difficulty as the observed failure rate across multiple coding agents. The DARE difficulty model predicts this difficulty using 151 static features extracted from benchmark artifacts. The framework also analyzes the contributions of seven Repair-Task Feature Groups to identify the characteristics most salient to each task and uses this information to select task-specific agent support. We evaluate DARE on four benchmark partitions comprising 2,594 tasks. The difficulty model's aligned predictions achieve Spearman's ρ=.476\rho = .476-.621 on held-out partitions, and the most salient Feature Groups vary across tasks and benchmarks. Furthermore, coding-agent experiments show improved repair success when support is matched to each task's salient Feature Group. These findings demonstrate that difficulty prediction and interpretation can lead to practical improvements in automated program repair (APR), while also providing a basis for difficulty-stratified agent evaluation, cross-benchmark comparisons, and identifying areas of repair capability that warrant further improvement.

I. INTRODUCTION

Evaluating the performance of LLM-based coding agents solely by their overall solve rate can obscure both their ability to solve difficult tasks and how that ability has improved. Coding agents have shown rapid improvements in resolving real-world software issues. For example, reported solve rates on SWE-bench Verified increased from 33.2% in 2024 to 80.9% by early 2026 [1], [2]. However, the overall solve rate alone cannot reveal whether these gains reflect progress on previously unsolved difficult tasks or improvements primarily on easier ones. Moreover, two agents with the same solve rate may solve tasks of different difficulty, and differences in solve rates across benchmarks may reflect differences in task-difficulty distributions as well as agent capabilities. Therefore, understanding agent performance and progress in automated program repair (APR) requires considering not only how many tasks agents solve, but also how difficult those tasks are.

Knowing the difficulty of individual tasks would enable more informative agent evaluation, but measuring it directly is expensive. Estimating task difficulty requires evaluating each task with multiple agents or conducting substantial manual assessments. A more efficient alternative is to predict difficulty

from artifacts already available in a benchmark. Such predictions can support difficulty-stratified performance analysis, comparisons of difficulty distributions across benchmarks, and the selection of evaluation tasks without running a large number of agents on every task.

Prior studies have explored predicting task success or difficulty using task- and agent-related characteristics. However, how to leverage the task characteristics contributing to difficulty predictions to improve actual repair performance remains underexplored [3]–[5].

To go beyond difficulty prediction, we propose DARE (Difficulty Analysis for Repair Enhancement), a framework that combines difficulty prediction and feature-group contribution analysis to guide task-specific repair support. We define task difficulty as the observed failure rate across multiple coding agents. The DARE difficulty model uses a generalized additive model (GAM) [6] to estimate task difficulty from 151 static features extracted from benchmark artifacts. These features are organized into seven Repair-Task Feature Groups that capture different characteristics relevant to software repair. DARE quantifies each group's contribution to the model's difficulty prediction, identifies the most salient Feature Group for each task, and uses this information to guide the selection of corresponding repair support.

We evaluate DARE on four benchmark partitions comprising 2,594 tasks through three research questions. RQ1: How accurately does DARE predict repair difficulty? RQ2: How do Feature Group contributions vary with predicted task difficulty? RQ3: Does Feature-Group-guided support improve coding-agent repair success? The difficulty model generalizes to held-out partitions (Spearman ρ=.476\rho = .476-.621), and the most salient Feature Group varies across tasks. Matching support to this group raises a coding agent's repair success from 54.7% to 79.6% on nine high-difficulty tasks (p=.0039p = .0039).

References (64)