TL;DR
Researchers have introduced Interaction-as-a-Judge, a new paradigm that evaluates coding agents by having a "computer-use agent" (CUA) actually interact with the generated application. This approach significantly outperforms static code analysis, improving human preference prediction and enabling agents to self-repair 75.5% of broken requirements.
What Problem Does This Paper Address?
As AI coding agents move beyond simple scripts to complex, interactive applications like games and web dashboards, our evaluation methods are falling behind. Currently, we mostly rely on LLM-as-a-Judge (looking at source code) or unit tests.
However, code that "looks" correct or passes a linter can still be behaviorally broken. A game might compile perfectly, but the player character might fall through the floor or the UI might be unresponsive. Humans evaluate software by using it; the authors argue that AI judges should do the same. The core challenge is bridging this "visual-interactive gap" where static inspection misses failures that are immediately obvious upon first click.
Methods
The authors propose a three-step pipeline:
- Interaction: A Computer-Use Agent (CUA) interacts with the generated app (e.g., a website or game) using tools like mouse clicks and key presses.
- Trace Generation: This produces a multimodal "interaction trace" containing video frames, the agent's actions, and its step-by-step reasoning.
- Judging: An LLM or a trained Reward Model (RM) reviews this trace to determine if the app meets requirements or which of two versions is better.
The study explores three interaction strategies:
- Iterative: The agent observes a frame, acts, and repeats (most adaptive but expensive).
- One-shot: The agent plans a sequence of actions upfront based on the initial state.
- Heuristic: A simple algorithm (like random clicking) explores the UI.
Datasets
The authors released two new benchmarks to facilitate this research:
- ArenaPreferences: 6,858 pairs of web applications with human preference labels and corresponding agent interaction traces.
- ArenaCorrectness: 67 high-quality game development traces with 412 hand-verified requirement labels (e.g., "Player must jump when Space is pressed").
Key Insights and Ideas
- Interaction is a Sufficient Signal: Surprisingly, a reward model trained only on interaction traces (without seeing a single line of code) performs comparably to models that see the full source. This suggests that behavior is a powerful proxy for quality.
- The "Better Player" is a Better Judge: There is a clear scaling benefit. As the capability of the CUA improves (better navigation, more logical exploration), the accuracy of the resulting judgment increases.
- Curing "Code Bloat": Standard code-based reward models often suffer from length bias—they reward longer, more complex-looking code. Because Interaction-as-a-Judge focuses on functional outcomes, it actually encourages shorter, more efficient code (reducing code length by ~35% in RL experiments).
Key Results
The quantitative gains are consistent across evaluation and generation tasks:
- Preference Alignment: Moving from code-only to interaction-based judging improved agreement with humans from 65.6% to 69.1%.
- Requirement Verification: Accuracy in spotting broken features rose from 77.0% to 81.6%.
- Self-Correction: In a self-feedback loop, agents using interaction traces repaired 75.5% of broken requirements within five attempts, vs. only 55.4% for those looking at code alone.
- Reinforcement Learning: Using an interaction-only reward model for post-training led to a 6.7 percentage point win-rate gain over the base model.
Limitations and Future Work
The primary bottleneck is inference cost. Iterative computer-use requires multiple LLM calls per evaluation, which is significantly more expensive than a single pass over source code.
The authors also noted that while random heuristics work well for simple websites, they fail in complex environments like games where meaningful interaction requires intent. Future work may involve developing "unified" models that can generate, interact with, and judge applications simultaneously, potentially reducing the overhead of the current multi-agent pipeline.
Summary updated