[KongchangAI]
Concept代码必要性指标

NP_code

The core quantitative metric of the DRA method. It measures the proportion of code units in a patch that keep the task correct after revert testing, and is used to assess whether an agent has written superfluous business logic code.

Timeline (last 90 days)

Nov 26

NP_code (code necessity metric) is defined as the proportion of code units in the patch that still pass the task tests after reverting, out of all code units, with a higher value indicating a larger proportion of necessary code.

Unverified50%
Nov 26

On SWE-bench Verified, the agent's mean code necessity NP_code is 0.887, and the developer mean is 0.864.

Unverified50%
Nov 26

On DeepSWE, the agent's mean code necessity NP_code is 0.797, and the developer mean is 0.785.

Unverified50%
Nov 26

On SWE-bench Verified, on average 11% of code units in agent patches are still unnecessary, of which 89% change behavior.

Unverified50%
Nov 26

The study recommends that benchmarks report both code necessity and resolution rate to avoid misleading single metrics.

Unverified50%

All Facts (5)

Source Articles