AI
AI agents learn to evaluate their own problem-solving to improve faster
Researchers propose having software engineering agents use their own judgment to distinguish between debugging attempts, boosting learning without extra training overhead.
Current methods for training AI agents on software engineering tasks rely on simple pass-or-fail signals from code tests, leaving crucial performance differences undetected. A new research paper explores whether agents can evaluate their own problem-solving trajectories to extract richer learning signals.
The limitation of binary rewards#
Traditional reinforcement learning with verifiable rewards (RLVR) uses executable tests to judge agent behavior on coding tasks. While this approach is reliable, it suffers from a critical gap: two failed attempts at debugging may differ dramatically in quality and approach, yet both receive identical negative feedback. This coarse-grained signal wastes potentially valuable information about how the agent tried to solve the problem.
Behavioral Self-Rewarding: comparing trajectories from within#
The proposed Behavioral Self-Rewarding (BSR) method sidesteps the need for a separate reward model by having the policy itself compare different debugging attempts on the same task. Rather than trusting external judgment, the system identifies pairwise preferences between trajectories—observing which debugging behavior looks more promising—and aggregates these comparisons into task-specific scores. These scores then become auxiliary rewards that provide additional supervision signals while preserving the original pass-fail ordering from test results.
The approach gains a key advantage: it recycles trajectories already collected during training, requiring no new interactions with the environment.
Demonstrated gains on real benchmarks#
Testing on SWE-bench Verified and SWE-bench-Live, the method showed consistent performance improvements across both Qwen3-14B and Qwen3-32B model configurations. The results suggest that allowing the policy's own comparative judgment to complement verifiable rewards creates a practical pathway to stronger software engineering agents.
By bridging the gap between coarse binary feedback and rich preference data, this work points toward more efficient learning for AI systems tackling real-world code challenges.

