Can reward agents teach code to look better?
Can a system of specialized judges—evaluating execution, visual design, and interactivity—guide LLMs to produce aesthetically superior code for webpages and plots? This matters because current models prioritize correctness over visual appeal.
The paper names "code aesthetics" as the aesthetic appeal of the execution result of visually-oriented code — webpages, plots, and graphical scenes — and argues LLMs "struggle with visually-oriented coding tasks, often producing suboptimal aesthetics." To reward this directly, the authors build "agentic reward feedback," a "multi-agent system that evaluates executability, static aesthetics, and interactive aesthetics." An execution agent assigns a pass/fail score (sexec = 1 or −1) via a rule-based HTML checker (HTMLHint). If the code passes, a static aesthetics agent and an interactive aesthetics agent run in parallel. These signals feed GRPO-AR, which "integrates these signals into the GRPO algorithm for joint optimization of functionality and code aesthetics." Trained on a new 358K-example instruction dataset (AesCode-358K) and evaluated on a new 840-case benchmark (OpenDesign) plus the existing PandasPlotBench, the resulting AesCoder-4B "surpasses GPT-4o and GPT-4.1, and achieves performance comparable to large open-source models with 480B–685B parameters."
The judging mechanism is explicit about who renders the verdict: the static aesthetics agent hosts the HTML locally with Playwright, takes a full-page screenshot, and hands it to GPT-5 as an LLM-as-a-judge, scoring three dimensions — instructional alignment, visual elements (lighting, transparency, gradients), and layout/cohesion — with chain-of-thought rationale kept internally but only the aggregated score used as reward. The authors motivate this by contrasting it with prior coding-LLM reward signals, which they say "mainly focus on textual modality and lack visually-oriented reward signals, rendering them unsuitable for evaluating code aesthetics."
This sits alongside Can language models design better reward functions than humans? as another case where the reward signal itself, not just the policy, is the engineering target — EUREKA evolves reward-function code via training-stat feedback, while GRPO-AR composes a fixed three-agent judge pipeline (execution, static, interactive) rather than evolving the reward. It also extends Do generative UI tools actually implement their stated design rationales?: where Design Theater measures a gap between stated design rationale and shipped output in existing generative-UI tools, this paper trains specifically to close an aesthetic gap, using the same rendered-screenshot-plus-LLM-judge evaluation strategy as its reward during training rather than only as a benchmark after the fact.
The excerpt does not report ablations isolating how much of the gain comes from the static agent versus the interactive agent versus the SFT stage (AesCode-358K) alone, nor does it give the size of the improvement in absolute score terms on OpenDesign or PandasPlotBench — only that it is "significant" and that AesCoder-4B beats GPT-4o/GPT-4.1 and matches 480B–685B-parameter open models. Given a GPT-5 judge is used for training reward, the extent to which AesCoder has learned GPT-5's visual taste specifically, versus a more general aesthetic sense, is not addressed.
- Can static screenshots alone evaluate interactive webpage quality? — Evidence for: static screenshot scoring alone misses usability on interactive pages, justifying A's added live-interaction aesthetics agent
- Can rendering-based metrics better reward WebUI code generation? — Contradicts: ALISA replaces the vision-based aesthetics judging A relies on (GPT-5) with a rendered layout/style consistency metric instead
Inquiring lines that read this note 21
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
Can AI systems formally evaluate design quality and taste?- What would personalized aesthetic fine-tuning require to implement?
- Has the MLLM visual critic been validated against human judgments of front-end quality?
- Can richer perceptual tools help agents detect creative quality flaws?
- How should design benchmarks distinguish professional polish from user-facing appeal?
- Can VLM aesthetic scores predict human preferences for website design?
- How often do static and interactive agents disagree on webpage quality scores?
- Why do prior LLM reward systems fail to capture visual design quality?
- How does code asymmetry break DOM-based evaluation of generated web interfaces?
- Does the rendering reward generalize beyond chart editing to other code generation tasks?
- How does the rendering reward weight code executability against visual fidelity failures?
- What breaks when floor plan rewards ignore architectural style or program type?
- Can an independent VLM judge prevent design quality from regressing during refinement?
- Can render-and-judge mechanisms generalize beyond chart-to-code to other executable outputs?
- How does visual-similarity reward resolve semantic equivalence problems in code?
- Can visual rendering rewards work for tasks beyond code reconstruction?
- Should functional verification always precede aesthetic scoring in cascaded rewards?
Related concepts in this collection 2
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Can language models design better reward functions than humans?
Can GPT-4 write and automatically refine reward code to outperform manual reward engineering? This explores whether LLMs can solve a core bottleneck in reinforcement learning—specifying what an agent should optimize for.
another case of engineering the reward signal itself rather than the policy, via evolved code instead of a fixed judge pipeline
-
Do generative UI tools actually implement their stated design rationales?
Explores whether generative UI tools build interfaces that match the design reasoning they provide. This matters because plausible-sounding rationales might persuade users to trust outputs without verification.
same rendered-screenshot-plus-LLM-judge evaluation strategy, used here as training reward rather than only a post-hoc benchmark
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- Code Aesthetics with Agentic Reward Feedback
- ReLook: Vision-Grounded RL with a Multimodal LLM Critic for Agentic Web Coding
- WebRenderBench: Enhancing Web Interface Generation through Layout-Style Consistency and Reinforcement Learning
- ChartEditor: A Reinforcement Learning Framework for Robust Chart Editing
- Learning to Present: Inverse Specification Rewards for Agentic Slide Generation
- AeSlides: Incentivizing Aesthetic Layout in LLM-Based Slide Generation via Verifiable Rewards
- WebGen-R1: Incentivizing Large Language Models to Generate Functional and Aesthetic Websites with Reinforcement Learning
- GameUIAgent: An LLM-Powered Framework for Automated Game UI Design with Structured Intermediate Representation
Original note title
agentic reward feedback — rewarding execution, static and interactive aesthetics — trains AesCoder past GPT-4o and GPT-4.1 on code aesthetics