AI
AI Agents as Evaluators: Interactive Testing Boosts Code Generation and Assessment
A new evaluation approach uses computer-use agents to interact directly with software applications, improving both the assessment and creation of complex interactive systems.
When developers build interactive software—websites, desktop apps, games—humans naturally test them by actually using them. Yet most automated systems for evaluating AI-generated code rely on static analysis and unit tests, missing real-world failures that become obvious the moment someone tries to interact with the application. A new arXiv paper proposes flipping this approach: using AI agents themselves as interactive evaluators.
The Core Innovation#
Researchers introduce Interaction-as-a-Judge, a paradigm where computer-use agents (CUAs) directly engage with software applications rather than simply reading code. By simulating actual user behavior, these agents catch bugs and requirement mismatches that traditional code-only evaluation methods overlook. The approach treats agent interactions as a signal for both scoring existing applications and training better generators.
Measuring the Gains#
The team collected two new datasets to support this work:
- 6,858 application pairs with human preference judgments and corresponding agent interaction traces
- 222 applications with human-verified requirement labels
The results show clear improvements over conventional approaches:
- Human preference prediction: improved from 65.6% to 69.1% accuracy
- Requirement verification: improved from 77.0% to 81.6% accuracy
Importantly, the method exhibits scaling benefits—higher-quality interactions consistently deliver better performance across both evaluation tasks.
Generating Better Code#
The interaction-as-judge signal also strengthens code generation at both inference and training time. When applied during inference, the approach repaired 75.5% of broken requirements in five attempts, compared to just 55.4% using traditional code-only feedback. During training, models reward with Interaction-as-a-Judge signals achieved a 6.7 percentage point win-rate improvement over the base model, while simultaneously shrinking generated code by 35.7% and cutting build failures by 7.2 percentage points relative to code-only rewards.

