SYNTHESIS NOTE
Topics›RLVR›this note

Can rule-based rewards fix LLM slide layout quality?

Can training LLMs with programmatic layout metrics rather than vision-language judges produce better-formatted slides? This matters because current models struggle with aesthetic issues despite being sophisticated.

Synthesis note · 2026-11-18 · sourced from RLVR

AeSlides is a Group Relative Policy Optimization (GRPO) reinforcement-learning framework that trains LLMs to generate slide decks, page by page in HTML, by rewarding them against programmatically verifiable layout metrics rather than fixed templates or vision-language-model (VLM) judgment. The excerpt frames the problem as a "modality gap": slide quality "is inherently evaluated in the visual domain" while LLMs "generate slides as structured textual markup," a gap that leaves even "proprietary models such as Claude-Sonnet-4.5 and GPT-5.2" producing "slides with aesthetic layout issues." The paper targets four recurring failure types — distorted aspect ratio, excessive whitespace, element collision, and visual imbalance. On GLM-4.7-Flash, trained with "only 5k training prompts," AeSlides "increases the aspect ratio compliance rate from 36% to 85%, reduces excessive whitespace by 44%, decreases element collisions by 43%, and mitigates visual imbalance by 28%," and human evaluation raises the overall quality score "from 3.31 to 3.56." With single-pass generation it "consistently outperforms reflection-based iterative methods, surpasses model-based reward optimization, and even edges out proprietary Claude-Sonnet-4.5."

The mechanism is a render-and-score loop: a distributed server built on Playwright, FastAPI, and Uvicorn renders candidate HTML slides and injects JavaScript to collect "page sizes, document object model (DOM) trees, and element bounding-boxes" at runtime. Rule-based metric functions compute the four aesthetic scores directly from that rendered data, and those scores become the GRPO reward — scoring the rendered artifact rather than the markup is what closes the text-generation/visual-evaluation gap. The authors frame training as a controlled subproblem, "prefix-conditioned next-slide generation": given a query, supporting context, and the preceding slides already generated, the model produces only the next slide, which is then scored and optimized.

AeSlides sits beside Do full web pages beat markdown chat for LLM responses?: both treat the rendered visual output, not the underlying markup, as the real deliverable, but where that note measures preference for full-page generation over chat text, AeSlides supplies a training method for making the rendered page itself better. It parallels Can bounding boxes replace image encoders for document understanding? in using bounding-box and DOM spatial signal instead of an image encoder, though DocLLM consumes that signal as model input for document understanding, while AeSlides uses it downstream, as a verifiable reward signal for RL. It also stands against Do generative UI tools actually implement their stated design rationales?, which documents the same text-generation/visual-rendering gap as a persistent benchmark finding; AeSlides proposes a training-time verifiable reward as a fix for one slice of that gap — aesthetic layout — rather than leaving it as an exposed failure mode.

The excerpt gives specific numbers only for GLM-4.7-Flash, and states the comparison against VLM-based detection only qualitatively ("higher accuracy, lower latency, and reduced cost"), without reporting figures — so whether the gains transfer to other base models, or to full agentic end-to-end slide generation beyond the controlled next-slide subproblem, is not claimed. The paper also scopes "aesthetic" narrowly to four layout-geometry issues, explicitly setting aside "insufficient content density, mismatch with user intent, suboptimal color schemes, and unsuitable image selection" as future work — so the result is about layout geometry, not the fuller judgment of taste the word "aesthetic" might suggest.

Inquiring lines that read this note 26

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? Can visual rendering-based rewards effectively improve code and layout quality? Does alignment training genuinely modify model behavior or only outputs? Can systems reliably detect and distinguish LLM-generated text? How much do LLMs rely on surface-level prompt characteristics rather than semantic meaning? How important is reward engineering relative to pretraining for reasoning?

Related concepts in this collection 4

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
14 direct connections · 74 in 2-hop network ·medium cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

AeSlides uses GRPO with programmatically verifiable layout metrics instead of vision-language judges to raise aspect-ratio compliance from 36 to 85 percent