AeSlides: Incentivizing Aesthetic Layout in LLM-Based Slide Generation via Verifiable Rewards
Abstract
Introduction. Slides are a widely used medium for communicating structured information in domains such as education, business, and scientific presentation. While recent advances in agentic capabilities of large language models (LLMs) have enabled substantial progress in complex tasks such as software engineering [30], slide generation remains particularly challenging, as it requires not only semantic coherence but also precise control over visual layout. In practice, current models often fail to produce aesthetically sound layouts.
While LLMs typically generate slides as structured textual markup, slide quality is inherently evaluated in the visual domain. This modality gap between text-based generation and vision-based evaluation limits the effectiveness of text-only supervision, leading even proprietary models such as Claude-Sonnet-4.5 and GPT-5.2 to frequently produce slides with aesthetic layout issues. Early slide generation approaches primarily rely on predefined templates [1, 3], which restrict flexibility and fail to accommodate diverse user requirements. Recent works [6, 11, 23, 28, 37, 38] adopt agentic frameworks that perform iterative refinement, leveraging multimodal feedback to identify and correct rendering defects. While effective for coarse issues such as severely broken layouts, these methods are constrained by the limited visual perception capabilities and often fail to address fine-grained aesthetic issues. Another line of work [34] attempts to fine-tune LLMs on large-scale curated datasets to implicitly learn aesthetic preferences; however, the modality gap continues to hinder further improvement. This leads to a key question: Can aesthetic competence be directly internalized into the model, rather than corrected through post-generation refinement or implicit supervision? We observe that many fundamental aesthetic properties of slide layouts are inherently structured and can be precisely verified through programmatic analysis. This observation suggests an alternative paradigm: aesthetic layout quality can be explicitly optimized through verifiable reward signals. To address these challenges, we propose AeSlides, a reinforcement learning framework with verifiable rewards for improving aesthetic slide generation. We first construct two datasets targeting slide aesthetic quality: one for meta-evaluation of aesthetic metrics and another for reinforcement learning. Based on four key aesthetic issues observed in slide generation (as illustrated in Figure 1), we introduce a suite of meticulously designed verifiable metrics. Metaevaluation results show that, compared to vision-language models (VLM)-based detections, these metrics achieve higher accuracy, lower latency, and reduced cost across all dimensions. Leveraging these metrics, we develop a Group Relative Policy Optimization [21] (GRPO)-based reinforcement learning method that directly optimizes aesthetic quality via verifiable reward signals. Extensive experiments demonstrate that AeSlides substantially improves aesthetic layout quality in slide generation. On GLM-4.7- Flash, using 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%. Human evaluation further confirms a significant improvement in overall quality, raising the score from 3.31 to 3.56. Additionally, with single-pass generation, AeSlides consistently outperforms reflection-based iterative methods, surpasses model-based reward optimization, and even edges out proprietary Claude-Sonnet-4.5. These results validate the effectiveness of reinforcement learning with verifiable aesthetic rewards for slide generation. Further analysis also reveals the unreliability of modelbased metrics and rewards, highlighting that our verifiable reward design is a key factor in improving slide layout aesthetics. In summary, our contributions are as follows: (1) We introduce a reinforcement learning with verifiable rewards paradigm in slide generation, enabling direct optimization of layout aesthetics to mitigate the modality gap.
(2) We design a suite of accurate and efficient verifiable metrics that decompose layout aesthetics into measurable subproblems, supporting both RL optimization and reliable slide evaluation. (3) Extensive experiments demonstrate consistent improvements across all metrics and overall evaluation, outperforming strong baselines and validating the effectiveness of verifiable rewards.
Related work. Benefiting from capabilities in language understanding and generation, LLMs have become the primary backbone of slide generation. Early approaches mainly use LLMs for content generation, while relying on predefined templates for layout and visual design, as in DOC2PPT [3] and KCTV [1]. However, template-based methods struggle to accommodate diverse requirements in layout flexibility, visual styling, and compositional design. With the rise of agentic LLMs, recent systems decompose slide generation into structured workflows involving background research, global planning, and tool-based editing, such as PPTAgent [37], AutoPresent [6], and Talk-to-Your-Slides [9]. Despite improved flexibility, these methods still lack explicit aesthetic constraints. As a result, they either produce over-conservative layouts (e.g., simple bullet-point lists) or exhibit unstable visual quality when handling complex designs. Recent work attempts to address the modality gap between textbased generation and vision-based evaluation along two directions. One adopts post-generation visual reflection for iterative refinement [11, 28, 38], but incurs high inference cost while yielding only limited improvement in aesthetic quality. The other direction relies on supervised training over large-scale curated slide datasets [34], where aesthetic signals are still implicitly learned via textual patterns, resulting in indirect and weak supervision. In contrast, directly internalizing aesthetic principles into the base model through training remains largely underexplored. As advances in coding capabilities [24, 33] enable LLMs to directly generate structured slide representations in a single pass (e.g., via HTML or Slidev), the lack of explicit aesthetic modeling becomes more critical.
In-domain adaptation of LLMs to acquire specialized expertise has been extensively studied. Early approaches primarily rely on SFT to inject domain knowledge and capabilities, while subsequent methods leverage human feedback, either through direct preference alignment (DPO) [20] or online reinforcement learning (RL) [17]. However, the offline nature of DPO and the computational burden of online RLHF have limited their scalability across diverse vertical domains. The introduction of GRPO [21] provides a lightweight yet effective alternative, enabling arbitrary reward signals to be directly optimized. This paradigm has demonstrated strong performance in domains with verifiable feedback, such as coding [15] and mathematics [21]. Follow-up works [5, 12, 16, 31, 32, 35, 36] further improve training stability and effectiveness, especially for MoE models, long-context tasks, and multi-reward settings, consolidating GRPO as a practical choice for reinforcement learning.
Method. Slide generation is inherently an agentic task. In its general form, it constitutes a long-horizon process: given a user query Q, a model Gθfirst needs to acquire a richer supporting context Cthrough steps such as external information retrieval, image search, user intent clarification, and high-level planning. Conditioned on Qand C, the model then sequentially generates a slide deck in HTML format, producing slides page by page until completion. In this work, to enable clear disentanglement and attribution of the model’s capability in generating aesthetically coherent slides, we focus on a controlled subproblem: prefix-conditioned next-slide generation. Specifically, at step t, given the query Q, the context C, and the preceding slides P<t, the model generates the next slide We then evaluate and optimize Ptwith respect to aesthetic metrics. Concretely, current slide generation models often exhibit several recurring issues in layout aesthetics, which can be mainly categorized into four types: (i) distorted aspect ratio, where the model fails to account for the spatial extent of generated content, leading to layouts that deviate significantly from the standard 16:9 aspect ratio; (ii) excessive whitespace, where the page is not effectively utilized, resulting in large unused regions and a visually sparse appearance; (iii) element collision, where elements overlap with each other, exceed their parent container, or fall outside the slide boundary; and (iv) visual imbalance, where poor layout leads to uneven content distribution and a perceptual bias of visual weight toward one side of the slide. We illustrate one representative example of each category in Figure 1. In this work, we focus on addressing these four issues as primary factors affecting aesthetic slide quality.
We first collect a set of slide deck generation trajectories produced by LLMs, covering multiple languages and domains. Using rulebased preprocessing, we filter out failed trajectories and decompose the remaining ones into page-level samples, corresponding to the prefix-conditioned formulation defined in Equation 1. On top of this processed data, we construct two datasets to support aesthetic evaluation and optimization of slide generation: (i) AeSlides-Reward-Bench. This dataset is designed for metaevaluation of aesthetic metrics. We recruit and train six annotators with prior experience in slide design. They annotate slide pages with a fine-grained taxonomy of aesthetic flaws, consisting of 4 major categories and 21 subcategories, including the primary layoutrelated issues addressed in this work (as described in Section 3), while the remaining subcategories are reserved for future exploration. We publicly release this dataset to facilitate further research on additional optimization dimensions for slide generation. (ii) AeSlides-7k. This dataset is used for training and evaluating slide generation models. We apply heuristic rules to remove structurally simple pages, including cover pages, tables of contents, dividers, and ending pages. These pages are excluded because existing models already achieve relatively strong aesthetic quality on them, and the design principles they follow differ from those of content-intensive slides. The resulting dataset is then split at the deck level into training and evaluation sets with a ratio of 85:15. Detailed annotation protocols, metadata and statistics of the datasets are provided in Appendix A in supplementary materials.
To address the four aesthetic issues defined in Section 3, we design a suite of rule-based, verifiable metrics for automatic detection. Render Infrastructure. We first build a distributed and decoupled rendering server based on Playwright, FastAPI, and Uvicorn to support high-throughput rendering and metric computation during rollout and evaluation. Upon receiving HTML content, the server renders the page while injecting JavaScript scripts to collect runtime metadata and properties (e.g., page sizes, document object model (DOM) trees, and element bounding-boxes). The rendered image bytes, original HTML, and runtime properties are then passed to corresponding metric functions as needed.
Conclusion. In this paper, we conduct an investigation of the aesthetic deficiencies in LLM-based slide generation, arising from the modality gap between text-based generation and visually grounded evaluation. We first introduce AeSlides-Reward-Bench, a dataset with annotations over 21 categories of slide issues, and show that the dominant failure modes stem from insufficient aesthetic layout capabilities of current models. To address this, we develop a suite of verifiable metrics that target four major categories of aesthetic layout issues. Meta-evaluations demonstrate that these metrics significantly outperform VLM-based approaches in terms of accuracy, efficiency, and cost. Building upon these metrics, we propose AeSlides, a reinforcement learning framework that fine-tunes LLMs via verifiable aesthetic rewards, enabling the generation of slides with visually coherent layouts. Extensive experiments show that, with a limited amount of data, AeSlides substantially improves the aesthetic quality of generated slides. It consistently outperforms iterative reflection methods and model-based reward optimization across all metrics and human evaluations, and even edges out proprietary systems such as Claude-Sonnet-4.5. Further analysis reveals the unreliability of current VLMs in evaluating and supervising slide generation, underscoring the importance of verifiable reward design for improving aesthetic slide generation. Code, datasets, and model are publicly released to facilitate future research.
Limitations. In this paper, we focus on four categories of aesthetic layout issues in slide generation. However, AeSlides-Reward-Bench also covers additional quality factors beyond layout, including insufficient content density, mismatch with user intent, suboptimal color schemes, and unsuitable image selection, etc. These aspects are not explicitly modeled in our current framework and are left for future work. Moreover, the element collision and visual imbalance metrics rely on iterative refinement of heuristic rules. This dependence not only incurs substantial engineering overhead but also limits scalability.
Future work should further investigate non-heuristic but verifiable metrics, such as the vision-based whitespace detection introduced in this paper. Finally, while the proposed aesthetic reward aligns with majority preferences, it implicitly assumes a shared notion of visual quality. In practice, aesthetic standards vary across cultures and user groups, and a single reward formulation may not capture such diversity. Developing personalized or adaptive aesthetic fine-tuning remains another important direction for future work.
Lines of inquiry this paper opens 24
Research framings built by reading the notes related to this paper — the questions it feeds into.
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?