NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bringing Code ALIVE: Optimizing Interactive Frontend Mini-Games via Automated Play and Reinforcement Learning at Scale

Jiajun Zhang, Yuheng Jing, Zeyu Cui, Hao Zheng, Wentao Chen, Kaixin Li, Jiaxi Yang, Tianbao Xie, Zeyao Ma, Tianyi Bai, KaShun Shum, Lei Zhang, Jian Cheng, Zilei Wang, Qiang Liu, Liang Wang, Junyang Lin, Binyuan HuiICML 2026

We are entering the era of "vibe coding," where non-programmers can conjure complex web applications and mini-games using simple natural language prompts. While proprietary models like Claude and Gemini have mastered this domain, open-source models have historically struggled to keep pace. The core bottleneck is not necessarily the models' generative capabilities, but rather how we evaluate their outputs.

The "Interactive Gap" in Evaluation

To train a model to write better interactive code, we need a reliable way to check if the generated game actually works. Current evaluation methods fall into two flawed categories:

  1. Static Judges: These methods look at the raw code or a single screenshot. They frequently fall into the "verbosity trap," rewarding longer, complex-looking code even if it crashes at runtime or features non-functional buttons.
  2. Agentic Evaluators: These use a GUI agent to interact with the game step-by-step. While highly accurate, this approach is incredibly slow and computationally expensive—far too costly to serve as a reward signal for massive Reinforcement Learning (RL) training loops.

This creates an "interactive gap": the need for an evaluation method that is both reliable (it actually plays the game) and scalable (it is fast enough for training at scale).

Introducing the ALIVE Framework

To bridge this gap, researchers introduce ALIVE (Aligning LLMs via Interactive Visual Execution), a high-throughput "automated playtesting" pipeline. ALIVE operates on a streamlined "Plan-Execute-Evaluate" cycle:

  • One-Shot Planning: Instead of relying on a slow, iterative "observe-think-act" loop, ALIVE analyzes the game's underlying code structure, Document Object Model (DOM), and Accessibility Tree. It synthesizes a comprehensive "Action List" (e.g., click 'Start', press 'Space' to jump, wait 2 seconds) in a single inference pass. This semantic planning ensures interactions are causally linked to verification goals, avoiding the pitfalls of random "Monkey Testing."
  • Interactive Execution: A headless browser (Playwright) executes these planned actions, capturing an "Interaction Trace" that includes sequential screenshots, console logs, and state transitions.
  • Checklist-Based Evaluation: A Judge Model compares the resulting trace against a task-specific checklist (e.g., "Does the score increase when a coin is collected?").

Training ALIVE-Coder

By decoupling reasoning from execution, ALIVE achieves performance parity with GUI agents while drastically slashing costs. Functioning as a scalable "pre-flight" evaluation layer, ALIVE was used to curate the ALIVE-Mini Game Dataset, comprising 15,000 frontend mini-game queries synthesized from public web game platforms.

The pipeline generated 10,000 high-quality samples for Supervised Fine-Tuning (SFT) and provided a consistent reward signal for 4,500 samples using Group Relative Policy Optimization (GRPO), a variant of RL. An additional 500 samples form the rigorous ALIVE-Eval benchmark, which includes human-verified ground truth scores.

Key Results and Impact

The efficiency gains of ALIVE are staggering, achieving a 12× reduction in token consumption and a 22× reduction in latency compared to standard GUI agents.

When used to train ALIVE-Coder-RL, the resulting model achieved an ALIVE-Eval score of 40.5, outperforming top-tier proprietary models like GPT-5.2 (40.3) and Gemini-3-Pro (39.2) in the paper's benchmarks. Furthermore, in blinded pairwise tests, humans preferred ALIVE-Coder-RL's games over the base model's outputs more than 90% of the time. The model also demonstrated strong generalization, showing steady improvements in functional correctness across 30 different genres, from physics puzzles to strategy games.

Limitations and Future Directions

Despite its success, ALIVE has limitations. One-shot planning struggles with highly twitch-based or "real-time" genres (like fast-paced parkour games), where precise, reactive trajectory prediction is difficult without constant visual feedback. Additionally, the execution engine relies on Playwright, which has physical limits on how many browser instances can run in parallel on a single machine, creating a hardware-dependent scaling ceiling.

Future work aims to integrate stronger judge models and develop more sophisticated, cost-efficient GUI agent frameworks to handle complex, stochastic game dynamics. For now, ALIVE offers the first scalable path to evaluate and optimize interactive code, substantially advancing open-source capabilities in frontend generation.

Summary updated

BibTeX
@inproceedings{zhang2026bringing,
  author = {Jiajun Zhang and Yuheng Jing and Zeyu Cui and Hao Zheng and Wentao Chen and Kaixin Li and Jiaxi Yang and Tianbao Xie and Zeyao Ma and Tianyi Bai and KaShun SHUM and Lei Zhang and Kai Li and Jian Cheng and Zilei Wang and Qiang Liu and Liang Wang and Junyang Lin and Binyuan Hui},
  title = {{Bringing Code ALIVE: Optimizing Interactive Frontend Mini-Games via Automated Play and Reinforcement Learning at Scale}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=lQMenSSNvW},
}
Figure