Abstract
Automated graphic design layout has traditionally relied on Graphic Layout Generation (GLG), which requires a predefined stacking order of elements. This paper introduces Graphist, the first Large Multimodal Model (LMM) designed for Hierarchical Layout Generation (HLG). By processing unordered sets of design assets, Graphist automatically determines optimal spatial positioning and layering sequences (z-order), significantly outperforming generalist models and previous state-of-the-art layout engines.
Introduction
In graphic design, layout is more than 2D positioning; it is the creation of a visual hierarchy. Traditional AI approaches often assume the user provides the correct sequence of layers, a requirement that limits creative flexibility. The authors propose Hierarchical Layout Generation (HLG) as a more pragmatic task: given a "pile" of unordered images and text, the AI must synthesize a cohesive composition from scratch.
Methodology
Graphist is built on an end-to-end LMM architecture comprising three primary components:
- RGB-A Encoder: Utilizing a ViT-L/14 backbone, this encoder processes four-channel images. The inclusion of the Alpha (transparency) channel is vital for the model to accurately perceive the boundaries of text, logos, and stickers.
- Visual Shrinker: To maintain computational efficiency, a novel "shrinker" compresses high-dimensional visual features from 257 tokens down to just 5 tokens per element. This allows the model to reason over complex, multi-layered designs without excessive overhead.
- Large Language Model (LLM): Using Qwen1.5 as its core, the model treats layout as a sequence generation problem. It outputs a structured JSON draft protocol specifying coordinates (x, y), dimensions (w, h), and layering order (l).
Training follows a three-stage process: initial multimodal alignment (captioning), focused HLG training, and multi-task adaptation to handle diverse design constraints.
Key Insights and Innovations
- LMMs as Layout Engines: LMMs are uniquely capable of unifying pixels, text, and numerical coordinates into a single token stream, allowing the model to reason about the semantic relationship between content and placement.
- Transparency Awareness: By incorporating the Alpha channel, Graphist distinguishes between a design element and its background, leading to cleaner placements and fewer spatial errors compared to standard RGB models.
- The Benefit of Unordered Inputs: Research indicated that allowing the model to handle unordered inputs improved aesthetic scores ($S_{DL}$ and $S_{IO}$). This suggests that forcing a specific input sequence may bias models toward suboptimal layouts.
Results and Evaluation
Graphist establishes a new state-of-the-art (SoTA) for automated layout:
- Aesthetic Superiority: In GPT-4V-based evaluations, Graphist* was preferred over Flex-DM 69% of the time.
- Outperforming Generalist Models: Graphist achieved an 83% win rate* against GPT-4V in design quality, despite being a significantly smaller model.
- Layering Accuracy: The model achieved an Inverse Order Pair Ratio (IOPR) of 0.97, indicating near-perfect accuracy in determining the correct stacking order of elements.
Conclusion
Graphist represents a significant step forward in automated design by mastering the hierarchical nature of layouts. While it currently focuses on arranging existing materials rather than generating new ones, its ability to reason across modalities and transparency layers sets a new standard for AI-assisted creativity. Future work will likely explore deeper integration of user "style" intent and the generation of the design assets themselves.
Summary updated