Why can an AI-built webpage pass every test yet still look like a mess?
Why do prior LLM reward systems fail to capture visual design quality?
This explores why the reward signals used to train LLMs, such as unit tests, text-based judges and image preference models, struggle to tell whether a webpage, slide or chart actually looks good, and what the corpus shows working instead.
This explores why the scoring systems used to train LLMs have trouble judging whether a webpage, slide or chart actually looks good. The corpus points to three separate failures: the rewards look at the wrong thing, they learned on the wrong kind of images, or they treat 'good design' as one vague score.
The first failure is the simplest. Most code rewards check whether code runs or passes tests, not what it looks like on screen. A page can pass every unit test and still have overlapping text, cramped margins or a broken layout. Several groups fixed this by rendering the output first and then scoring the result. ReLook trains with a multimodal critic that looks at screenshots instead of test results. It gives an automatic zero to anything that fails to render, so the model can't game the critic with broken output Can multimodal LLMs judge front-end code quality better than tests?. MSRL does the same for charts: it compares the rendered chart against the target image, and that gets models past a plateau that supervised training alone couldn't break Can visual similarity rewards break the chart-to-code learning plateau?. AeSlides measures the rendered HTML directly instead of reading the markup Can rule-based rewards fix LLM slide layout quality?.
The second failure is less obvious. You might expect existing image reward models like ImageReward, HPS or PickScore to fill the gap, since they already score visual appeal. They don't transfer. They were trained on photorealistic text-to-image data, so they never learned what makes a layout work: spacing, alignment and compositional balance Why do image reward models fail at layout evaluation?. Even within their home turf they share a blind spot. Every tested text-to-image reward missed geometric distortions, duplicated objects and blended entities Do text-to-image rewards all miss the same structural flaws?. Both findings point the same way: these models reward surface appeal and miss structure, and in design, structure is what matters. DesignSense shows the fix is domain-specific human data. A judge trained on about 10,000 human layout preference pairs beat GPT-4o by a wide margin at judging layouts Can human layout preferences train a better design judge?.
The third failure is asking a model 'is this beautiful?' and expecting a consistent answer. Holistic scores drift and reward generic output. Anthropic's planner-generator-evaluator harness breaks taste into concrete criteria the evaluator can grade consistently. It calibrates that grading with examples and penalizes the generic look Can subjective design judgment be turned into consistent grading criteria?. A user study found something similar for evaluation in general: breaking outputs into fragments surfaced 48% more problems than one overall judge score Can breaking outputs into fragments reveal more evaluation problems?. The strongest systems split the reward the same way. One uses separate agents for execution, static visuals and interactive behavior Can reward agents teach code to look better?. Another combines six weighted signals, one of which checks whether the original brief can be recovered from the finished slides Can inverse specification rewards align slide generation with source intent?.
Here's the part you might not expect: the fix often makes the judge less sophisticated, not more. AeSlides used plain, checkable layout rules instead of a vision-language judge. That raised aspect-ratio compliance from 36% to 85%, beating both reflection methods and Claude Sonnet 4.5 Can rule-based rewards fix LLM slide layout quality?. With a well-split reward, a 4B-parameter model beat GPT-4o on webpage and plot aesthetics Can reward agents teach code to look better?. The bottleneck in visual design wasn't model size. It was that nobody had told the model, in measurable terms, what 'good' looks like.
Sources 10 notes
ReLook trains a reward model on visual screenshots rather than unit tests, using a strict zero-reward rule for invalid renders to prevent reward hacking. It outperformed baselines across three benchmarks by embedding pixel-level visual judgment into the policy training loop.
MSRL pairs cheap rule-based textual rewards with costly MLLM-judged visual rewards comparing rendered code to ground-truth charts, improving ChartMimic and ReachQA scores by 6–10% beyond supervised-learning baselines. A two-stage curriculum applies textual rewards first, then adds visual feedback.
AeSlides uses GRPO with render-time metrics to train slide generation, raising aspect-ratio compliance from 36% to 85% and outperforming reflection methods and Claude-Sonnet-4.5. The key: scoring rendered HTML directly rather than judging markup.
ImageReward, HPS, and PickScore models trained on photorealistic text-to-image data cannot capture human preferences for graphic layouts because they lack exposure to spatial relationships and compositional balance. This distributional mismatch shows that domain transfer for preference models cannot be assumed across visual domains.
Every tested reward model—aesthetic, preference, and consistency-based—develops its own failure mode, but all consistently fail to penalize geometric distortions, object duplication, and entity blending. A lightweight adaptive reward model trained on human-judged artifact examples can fill this gap.
Show all 10 sources
DesignSense, trained on 10,235 human preference pairs, significantly outperforms existing judges (54.6% Macro F1 improvement over GPT-4o) and raises AesthetiQ's win rate from 14.27% to 17.97% when used as a reward model in reinforcement learning.
Anthropic's three-agent system rephrases subjective questions like 'is this beautiful?' into concrete criterion-based assessments that a model can grade consistently. Running up to four hours per build with live browser interaction, the evaluator reduced score drift through few-shot calibration and penalized generic outputs.
A user study of ten practitioners found that functional fragmentation—decomposing outputs into fragments and labeling their rhetorical functions per criterion—surfaced 48% more evaluation misalignments than holistic LLM-as-a-Judge scores, enabling better trust calibration and discovery of actionable issues.
A three-agent reward system (execution, static visual, interactive) integrated into GRPO training enabled a 4B-parameter model to surpass GPT-4o and GPT-4.1 on webpage and plot aesthetics. The approach used 358K training examples and a new 840-case benchmark.
Six weighted reward signals—including structural checks, LLM aesthetic judgment, and brief reconstruction—fine-tune Qwen2.5-Coder-7B via GRPO to match 91.2% of Claude Opus 4.6's slide quality. The model scores 0.724 versus Opus's 0.794, a 33.1% gain over the base model.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- AeSlides: Incentivizing Aesthetic Layout in LLM-Based Slide Generation via Verifiable Rewards
- Code Aesthetics with Agentic Reward Feedback
- GameUIAgent: An LLM-Powered Framework for Automated Game UI Design with Structured Intermediate Representation
- DesignSense: A Human Preference Dataset and Reward Modeling Framework for Graphic Layout Generation
- ReLook: Vision-Grounded RL with a Multimodal LLM Critic for Agentic Web Coding
- Learning to Present: Inverse Specification Rewards for Agentic Slide Generation
- WebGen-R1: Incentivizing Large Language Models to Generate Functional and Aesthetic Websites with Reinforcement Learning
- Understanding Reward Hacking in Text-to-Image Reinforcement Learning