Most current methods for functional web generation use executable rewards to optimize the final page, but they overlook what happens when an implementation is imperfect. A new arXiv preprint argues for learning the loop, not just the page: instead of scoring only the finished output, the model should be trained on the process of diagnosing and repairing errors during execution.

Execution-grounded loop learning shifts attention to the iterative cycle of generating, running, and fixing. The abstract says existing methods largely focus on final-page quality and leave the process of diagnosing and repairing imperfect implementations unaddressed. By grounding learning in execution, the approach aims to improve web generators when initial outputs fail.

The preprint is available at arXiv:2610.11543.