10
0

SlideCoder: Layout-aware RAG-enhanced Hierarchical Slide Generation from Design

Main:8 Pages
12 Figures
Bibliography:2 Pages
7 Tables
Appendix:9 Pages
Abstract

Manual slide creation is labor-intensive and requires expert prior knowledge. Existing natural language-based LLM generation methods struggle to capture the visual and structural nuances of slide designs. To address this, we formalize the Reference Image to Slide Generation task and propose Slide2Code, the first benchmark with difficulty-tiered samples based on a novel Slide Complexity Metric. We introduce SlideCoder, a layout-aware, retrieval-augmented framework for generating editable slides from reference images. SlideCoder integrates a Color Gradient-based Segmentation algorithm and a Hierarchical Retrieval-Augmented Generation method to decompose complex tasks and enhance code generation. We also release SlideMaster, a 7B open-source model fine-tuned with improved reverse-engineered data. Experiments show that SlideCoder outperforms state-of-the-art baselines by up to 40.5 points, demonstrating strong performance across layout fidelity, execution accuracy, and visual consistency. Our code is available atthis https URL.

View on arXiv
@article{tang2025_2506.07964,
  title={ SlideCoder: Layout-aware RAG-enhanced Hierarchical Slide Generation from Design },
  author={ Wenxin Tang and Jingyu Xiao and Wenxuan Jiang and Xi Xiao and Yuhang Wang and Xuxin Tang and Qing Li and Yuehe Ma and Junliang Liu and Shisong Tang and Michael R. Lyu },
  journal={arXiv preprint arXiv:2506.07964},
  year={ 2025 }
}
Comments on this paper