SLIDEFORGE: An LLM Agent for Controllable Editing of Slides as Structured Artifacts

Haozhen Zheng, Fulin Wang, Tianhu Xiong, Yingjie Yu, Shengyi Qian, Hanchao Yu, Alex Schwing, Klara Nahrstedt, Mingyuan WuarXiv 2026

TL;DR

SLIDEFORGE is a novel agentic framework that treats presentation slides as structured, editable artifacts rather than flat images or raw XML code. By introducing a "Deck State Graph" (DSG) that bridges visual perception with native PowerPoint (PPTX) structures, it enables precise, controllable slide editing and theme restyling while preserving content, layout, and native editability.

What Problem Does This Paper Address?

While modern multimodal large language models (LLMs) are excellent at describing and generating text for slides, editing existing presentations remains a significant challenge. Current AI agents typically fall into two traps: they either operate purely on screenshots (which flattens text, charts, and shapes into uneditable pixels) or they generate raw code/XML from scratch (which frequently breaks layouts, scrambles non-target content, and ruins design consistency).

Presentations are complex, structured documents containing text boxes, shapes, z-ordering, and global themes. To edit them reliably, an AI needs to understand both how a human perceives the slide visually and how presentation software structures it under the hood. The authors address this gap by creating an agent that can perform localized, structure-aware edits without destroying the slide's native editability.

Methods

SLIDEFORGE tackles slide editing through a two-stage, four-step pipeline:

  1. Deck State Graph (DSG) Construction: The framework parses the native PPTX XML to extract editable objects and uses a fine-tuned SAM-style vision model to segment visual components from the rendered slide. It then links these two views into a directed graph (the DSG) that maps out what is visible, what is editable, and how components relate to one another.
  2. Slide-Native Editing Harness: When given an editing instruction, the agent grounds the request into a "target scope" (what to change) and a "preservation scope" (what to keep safe). An LLM planner converts the instructions into precise, slide-native PPTX API operations (e.g., updating text, adjusting geometry).
  3. Theme-Preserving Reconstruction: For large-scale restyling, SLIDEFORGE establishes a deck-level "aesthetic contract" (fonts, color palettes). It then reconstructs foreground elements using the most appropriate native PPTX primitive (text boxes, native tables, or grouped shapes) to ensure they remain fully editable.
  4. Verification and Self-Repair: After execution, the framework renders the modified slide and uses a Vision-Language Model (VLM) verifier loop to check for visual bugs like text overflow, misalignments, or layering issues, automatically applying localized fixes until the slide passes inspection.
Figure 2: Overview of SLIDEFORGE: deck state graph construction from perception-aligned slide decomposition, slide-native editing, theme-preserving reconstruction, and verification with self-repair.

Datasets

The authors utilized two primary collections of academic conference presentation decks, chosen for their dense text, complex diagrams, equations, and strict layout requirements:

  • Training Data: 127 AI-conference decks comprising 3,510 slides and 25,132 component bounding boxes used to train the vision-based slide segmentation backbone.
  • Evaluation Data: An out-of-domain test set of 89 systems/networking conference decks. For style adaptation tasks, these decks were tested against three distinct target themes: Industrial, Warm, and Finance.

Key Insights and Ideas

  • The Hybrid Representation Advantage: Slides cannot be treated purely as pixels or purely as code. The Deck State Graph acts as an executable interface that successfully unifies visual appearance with document structure.
  • Explicit Preservation Scopes: By separating the slide into target and preservation zones before editing, the agent drastically reduces the risk of accidental content drift or hallucination in non-target areas.
  • Localized Self-Repair over Regeneration: When a slide has a layout bug (like text spilling out of a box), traditional models often redraw the entire slide, introducing new errors. SLIDEFORGE maps the error back to a specific node in the DSG and repairs only that component.

Key Results

The authors introduced a comprehensive evaluation paradigm to measure both state recovery (decomposition) and state transformation (restyling):

  • Decomposition Quality: SLIDEFORGE significantly outperformed baselines like SlideCoder and Claude Code, achieving a 0.950 SSIM and 0.960 SCAN score, indicating highly accurate visual and structural reconstruction.
  • Restyling Performance: In theme-adaptation tasks judged by humans and VLMs, SLIDEFORGE achieved the highest overall scores across all target styles (Industrial, Warm, Finance), excelling particularly in information fidelity and text readability.
  • Editability Preservation: While baseline models flattened slides into static imagery, SLIDEFORGE preserved an average of 72.8 editable shapes per slide, matching or slightly exceeding the input deck's native editability.
Case study comparing SLIDEFORGE against baselines on theme restyling.

Limitations and Future Work

The primary limitation of SLIDEFORGE is its quality-efficiency trade-off. The iterative proposal refinement, visual review, and multi-step verification loops require multiple frontier VLM calls, making the pipeline computationally expensive and slower than direct generation. Additionally, if the VLM verifier misidentifies a visual failure, it can propagate errors through the repair loop.

Future work aims to optimize this computational cost and expand the framework's scope from restyling and structured editing to more creative tasks like content rewriting, layout redesign, and cross-deck consistency repair.

Summary updated

BibTeX
@misc{zheng2026slideforge,
  author = {Haozhen Zheng and Fulin Wang and Tianhu Xiong and Yingjie Yu and Shengyi Qian and Hanchao Yu and Alex Schwing and Klara Nahrstedt and Mingyuan Wu},
  title = {{SLIDEFORGE: An LLM Agent for Controllable Editing of Slides as Structured Artifacts}},
  year = {2026},
  eprint = {2609.03109},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.03109},
}
Figure