AutoPresent: Designing Structured Visuals from Scratch
Designing structured visuals such as presentation slides is essential for communicative needs, necessitating both content creation and visual planning skills. In this work, we tackle the challenge of automated slide generation, where models produce slide presentations from natural language (NL) instructions. We first introduce the SLIDESBENCH benchmark, the first benchmark for slide generation with 7k training and 585 testing examples derived from 310 slide decks across 10 domains. SLIDESBENCH supports evaluations that are (i) reference-based to measure similarity to a target slide, and (ii) reference-free to measure the design quality of generated slides alone. We benchmark endto-end image generation and program generation methods with a variety of models, and find that programmatic methods produce higher-quality slides in user-interactable formats. Built on the success of program generation, we create AUTOPRESENT, an 8B LLAMA-based model trained on 7k pairs of instructions paired with code for slide generation, and achieve results comparable to the closed-source model GPT-4O. We further explore iterative design refinement where the model is tasked to self-refine its own output, and we found that this process improves the slide’s quality. We hope that our work will provide a basis for future work on generating structured visuals. Our code, data, demo, and video demonstrations are publicly available at https: //github.com/para-lost/AutoPresent
Introduction. Designing structured visuals such as presentation slides from scratch is an essential skill for effective communication and conveying complex ideas [30]. Among various forms of visual communication, creating a compelling set of slides is a challenging problem, requiring content creation (text, pictures, diagrams, and more) and visual planning skills, to ensure the slides are well designed [25] and convey insights with clarity [3, 36]. Even human experts may need to spend hours iterating and polishing their slide decks [10] to produce high-quality designs with clear insights. While digital agents have demonstrated impressive capabilities in tasks such as software engineering [49], web navigation [46, 54], and free-form image design generation [8, 32], their creative capabilities in generating semistructured communicative media like slide decks has not been extensively tested. Therefore, we ask: Can we employ powerful AI agents to create high-quality presentation slides that are well-structured and insight-revealing? In this work, we formulate the natural language (NL) to slide generation task. At a high level, the user provides the system with a natural language instruction about the desired slide, and the system then generates an editable presentation, as shown in Figure 1. We consider three types of user instructions: (1) detailed instruction with images. (2) detailed instructions only. (3) high-level instructions, reflecting varying levels of design freedom. Since there are no existing tools for quantifying agent performance in slide generation tasks, we propose the SLIDESBENCH benchmark (§2) as a training source and test bed for method comparisons. SLIDESBENCH contains 7k training examples and 585 testing examples of varied instruction difficulties, constructed from 310 publicly available slide decks from 10 different domains, including art, business, and technology. To evaluate generated slides, we introduce two sets of evaluation metrics: referencebased metrics to examine position, content, and color match against the reference slide; and reference-free metrics inspired by slide design principles [5, 9, 34, 39, 44] to measure the design quality of agent-created slides alone, given that many good designs for the same instructions may vary from the reference slide. To enable controlled and structured slide generation, we propose to create slides using program generation, where a model first generates a program from the natural language instruction, and then the program is executed to get the slide. We apply this approach to large language models (LLMs; LLAMA [11], DeepseekCoder [16], CodeLlama [33], GPT-4O [2]) and vision-language models (VLMs; LLAVA [51]). As illustrated in Figure 1, given a natural language instruction, the model first generates a Python program and then executes it to obtain a PPTX slide. We find that small models such as LLAMA (8B) and LLAVA (7B) are often unable to produce executable code. While GPT-4o can produce reasonable slides, it still exhibits a substantial gap in design quality compared to human-generated slides (§5). By further conducting iterative refinement, we find that models can self-refine and further improve slide quality. We also find that code generation approaches substantially outperform end-to-end image generation methods (Stable Diffusion [32], Dall-E [8]). To further enhance the current model’s ability to generate high-quality slides, we present our open-sourced AU- TOPRESENT (8B) model (§4.2) which is fine-tuned from LLAMA 8B on the SLIDESBENCH training set. AUTOP- RESENT achieves state-of-the-art performance among small open-sourced models and approaches the performance of the closed-sourced model GPT-4o. Since directly generating a long program is difficult for current models [14], we further create the SLIDESLIB library to simplify the program generation process. SLIDESLIB contains high-level functions that are basic such as add title, and imagerelated such as search image and generate image. We show that LLMs and VLMs generally perform better when given access to SLIDESLIB. Our main contributions can be summarized as follows: • We formulate the NL-to-slide generation task and build SLIDESBENCH, the first benchmark for slide generation, which contains 7k training and 585 test examples and supports automatic evaluations. • We leverage NL-to-program generation methods with refinement to produce high-quality slides, and benchmark diffusion models, VLMs, and LLMs. • We train an 8B parameter open-source LLM, AUTOPRE- SENT, that approaches the performance of GPT-4o, and design a programmatic tool library SLIDESLIB that facilitates slide program generation across models.
Related work. Language and Vision Model-Based Agents Agents based on large language models (LLMs) [2, 11] and visionlanguage models (VLMs) [4, 51] have been widely adopted in various tasks such as web navigation [24, 52, 54], software engineering [49, 50], and web development [27, 38]. Creation of presentation materials is another common task [10] that has both similarities and differences from these more widely examined tasks. Generating Programs for Vision Tasks End-to-end image generation models such as diffusion [20, 32, 48] and GAN [15, 35] are widely used at producing scenic images, yet falling short on more structured visuals such as websites and slides [38]. Generating programs (i.e., imageediting actions) is a useful means to get structured visuals [14, 18, 41, 43, 45], including Tikz figures [6, 7], SVG [31, 37], posters [51], and user interfaces [28, 38]. However, they often require detailed inputs and are limited to specific, simple figure types, so they are still far from creating complex, editable presentation slides from scratch. Our work extends this line of research by formulating and benchmarking the natural-language-to-slide generation task. Automatic Slide Generation Previous works on slide creation mostly focus on basic extraction from provided documents [12, 22, 23, 36, 42] or having models generate content given a topic [1, 3, 47] without addressing how to organize content visually. More recently, some benchmarks [17, 53] and methods [13] have emerged that follow detailed instructions for slide editing (e.g., adjust the font size of the title from 20 to 24) of an existing slide. In contrast, we synthesize more complex and structured programs that can generate slides from scratch, including content creation, visual arrangement, and fine-grained editing, instead of refining an
Method. We introduce our main method — slide generation via code generation, optionally using our SLIDESLIB toolkit (§4.1). Then, we present AUTOPRESENT, trained on 7k slides, that achieves performance on par with strong GPT model (§4.2).
Generating Python Programs Given natural language instructions in §2, models are tasked with generating Python programs using publicly available libraries such as python-pptx. The model receives two (natural language instruction, Python program) pairs as in-context examples, followed by the test instruction, and generates a Python program which is then executed and will ideally yield a PPTX file containing the requested slide.
Generating Programs with SLIDESLIB Nonetheless, the programs above could be very long and complex (170 lines on average), which could be challenging for models to generate entirely correctly, as shown in previous work [14]. To address this, we design SLIDESLIB, a library that provides easier-to-use interfaces for several common actions such as setting a title or setting background color. Using SLIDESLIB, the average program length is reduced to 13 lines, significantly easing the generation task. As shown in Table 2, SLIDESLIB includes 4 functions for basic operations and 3 functions for image search and generation, these functions allow models to produce more concise and modular programs. To enable the model to generate programs using SLIDESLIB, we follow the visual programming method [43] by providing a prompt that includes the documentation of the functions and two in-context examples. See more SLIDESLIB details in §B.
Function Description add title Insert a title in the slide. add text Insert text at a specific location. add bullet points Insert a textbox with bullet points. add image Insert image at a specific location. generate image Call an image generator (Dall-E 3) given a query. search image Search for an image on a search engine (Bing). search screenshot Display a query on a web browser (Google Chrome) and take a snapshot of the search result.
Using the slides in the training set of SLIDESBENCH, we construct (natural language instruction, program) pairs to form training data to train an open-sourced 8B model, AU- TOPRESENT. This model is based on the LLAMA-3.1-8B- Instruct and trained using LoRA [21] with a rank of 128.
4.3. Iterative Refinement Slide generation is by nature an iterative process and often requires visual-based refinements after the first draft. To enable models to refine slides as humans do, we explore an iterative refinement procedure, where the model is tasked to self-refine the slide it generated. Specifically, in the setting using SLIDESLIB, we provide GPT-4o (capable of consuming slide images) with the original language instruction, the program it generated in the first pass, and a snapshot of the rendered slide; the model is then asked to generate a new program based on these information to refine the slide quality by tweaking colors, spacing, and other aspects of the slide. See the prompts of this process in §D.
Discussion. Although the significant gaps of 49.9–55.0 points exist in the detailed instruction with images setting, this gap shrinks to 22.2–34.6 when no visuals are provided a priori, in detailed instruction only and high-level instructions scenarios (Table 4). This demonstrates significant challenges in obtaining images in slides. In contrast to the low performance of open-weight models out-of-the-box, AUTOPRESENT’s performance approaches that of GPT-4O. End-to-End Image Generation When no visuals are provided, end-to-end image-generation methods perform worse than the best code-generation approaches in both the reference-based and reference-free metrics, especially in generating accurate content. These methods also often produce creative figures without aligning with the design principles of slides, indicating its poorer controllability. Effect of SLIDESLIB SLIDESLIB brings observable gains in LLAMA and LLAVA in all three scenarios by at most 34.0 points; and similarly increases the strong GPT- 4O performance across scenarios, especially when no images are provided. This suggests the benefits of generating more modular and concise programs for structured visual design. VLM vs. LLM When no helper functions are presented, the one VLM that we tested (LLAVA) outperforms its LLM counterpart LLAMA in all scenarios by 5.1–7.5 points. However, LLAVA shows limited ability in using functions presented in context, as demonstrated by the large margin the library-augmented LLAMA has over LLAVA (12.1– 26.2). All LLMs (LLAMA, GPT-4O) perform worse when the instructions become less specified (detailed instruction with images →detailed instruction only →high-level instructions). Nonetheless, SLIDESLIB can greatly mitigate this degradation due to the loss of input specificity, and help models produce better outcomes across all three scenarios.
We illustrate several models-produced slides in Figure 3. For end-to-end image generation methods, the design is more creative and often more attractive, but the text does not constitute meaningful words, or even the characters themselves are not valid. On the other hand, code generation methods, especially weaker LLAMA and LLAVA models, suffer more from visual layout — elements often overlap with each other or exceed the canvas, making it challenging for the audience to obtain all information clearly. In contrast, AUTOPRESENT generates slides with appropriate layouts without undesirable element overlaps. In addition, they better follow the user instructions and are not overly creative like the image generation methods.
Finally, as shown by Table 6, we find that refinement improves model performance on all three challenges. By doing an ablation on the round of iterations, we find that while continued refinement often increases the scores, the first iteration usually gives the biggest performance improvement. We present representative cases after doing one round of refinement in Figure 5, which indicates that refinement can improve content layout and detailed controls on coloring and sizing.
Conclusion. In this work, we address the challenge of creating structured visuals from scratch. Specifically, we introduced SLIDES- BENCH, the first benchmark for automatic slide generation with evaluation metrics based on and free of reference slides. We benchmark multiple end-to-end image and program generation approaches, and demonstrate that AU- TOPRESENT with SLIDESLIB achieves comparable performance with the top GPT-4O model. Our further exploration in iterative refinement also reveals certain effectiveness in self-refinement. This work is an initial step towards automated generation of structured visuals. Specifically, it focuses on single-slide generation and produces full slide code in a single pass, without leveraging iterative design workflows. Future research could address these limitations by expanding to full slide decks, adopting gradual and interactive slide generation, and incorporating slide-specific features like animations. Further, integrating more design principles, such as optimizing for attention capture and information clarity, would be crucial for making generated slides more impactful and effective.
Lines of inquiry this paper opens 24
Research framings built by reading the notes related to this paper — the questions it feeds into.
Can visual rendering-based rewards effectively improve code and layout quality?- Do iterative reflection methods underperform single-pass RL for slide generation?
- Does visual feedback during slide editing prevent overlapping elements?
- What role does self-correction iteration play in generative slide creation?
- How much does input reference quality constrain final presentation design?
- What limits SlideCoder to single-slide generation from reference images?
- Does visual perception improve slide generation without text-based program output?
- Does previewing output before submission work better than refining after rendering?
- What accuracy rates do Claude-generated spreadsheets and slides actually achieve?
- Why do image generation methods struggle with slide design controllability?
- Why does SlideCoder segment pixels while DocLLM relies only on bounding boxes?
- How does rendering and measuring beat vision-language models for slide assessment?
- 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?
- How do clustering and schema extraction improve presentation slide quality?
- Can open-weight models refine slides the way GPT-4o does with visual feedback?
- How were the six slide-design annotators selected for AeSlides?
- 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?