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.
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?- How were the six slide-design annotators selected for AeSlides?
- How do clustering and schema extraction improve presentation slide quality?
- Has the MLLM visual critic been validated against human judgments of front-end quality?
- How does color-gradient segmentation compare to learned visual decomposition for slides?
- Why do prior LLM reward systems fail to capture visual design quality?
- Can open-weight models refine slides the way GPT-4o does with visual feedback?
- How does rendering and measuring beat vision-language models for slide assessment?
- Do iterative reflection methods underperform single-pass RL for slide generation?
- How sensitive are the layout metrics to changes in annotator population?
- How does layout consistency scoring compare to human preferences for generated web pages?
- What layout and text metrics does ChartEditor use to measure visual fidelity?
- Why does generating spatial summaries before object placement improve layout quality?
- Does visual feedback during slide editing prevent overlapping elements?
- How much does input reference quality constrain final presentation design?
- What limits SlideCoder to single-slide generation from reference images?
- Why does SlideCoder segment pixels while DocLLM relies only on bounding boxes?
- How does the Slide Complexity Metric measure difficulty across layout types?
- What filtering and correction steps best catch structural flaws in synthetic layouts?
- What specific metrics show how much general models underperform on layout evaluation?
- Does visual perception improve slide generation without text-based program output?
- Why do image generation methods struggle with slide design controllability?
- How much do vision capabilities matter when evaluating and fixing slide layouts?
Related concepts in this collection 4
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
-
Do full web pages beat markdown chat for LLM responses?
When LLMs generate complete interactive web pages instead of markdown text, do users prefer them? And how do they compare to pages built by human experts?
both treat rendered visual output, not markup or chat text, as the real deliverable to optimize
-
Can bounding boxes replace image encoders for document understanding?
Explores whether spatial layout information alone, encoded as bounding boxes, can capture the multimodal signal needed for document understanding without expensive visual encoding. Matters because image encoders add significant computational cost to document processing systems.
both use bounding-box/DOM spatial signal instead of an image encoder, as input there, as reward signal here
-
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.
documents the same text-generation/visual-rendering gap AeSlides proposes a training-time fix for
-
Can a single aesthetic reward model generalize across cultures?
AeSlides achieves high compliance scores within its own annotator group, but leaves unexamined whether those standards hold across different cultural and demographic populations. The paper acknowledges this gap but doesn't measure it.
qualifies: AeSlides's rule-based reward reflects its own annotators' majority taste, not necessarily culturally varying visual-quality preferences
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- AeSlides: Incentivizing Aesthetic Layout in LLM-Based Slide Generation via Verifiable Rewards
- PPTAgent: Generating and Evaluating Presentations Beyond Text-to-Slides
- AutoPresent: Designing Structured Visuals from Scratch
- Learning to Present: Inverse Specification Rewards for Agentic Slide Generation
- SlideCoder: Layout-aware RAG-enhanced Hierarchical Slide Generation from Design
- GameUIAgent: An LLM-Powered Framework for Automated Game UI Design with Structured Intermediate Representation
- Code Aesthetics with Agentic Reward Feedback
- ReLook: Vision-Grounded RL with a Multimodal LLM Critic for Agentic Web Coding
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