NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

APD-Agents: A Large Language Model-Driven Multi-Agents Collaborative Framework for Automated Page Design

Xinpeng Chen, Xiaofeng Han, Kaihao Zhang, Guochao Ren, Yujie Wang, Wenhao Cao, Yang Zhou, Jianfeng Lu, Zhenbo SongarXiv 2025 · OpenReview

Abstract

Layout design is a crucial step in developing mobile app pages. However, crafting satisfactory designs is time-intensive for designers: they need to consider which controls and content to present on the page, and then repeatedly adjust their size, position, and style for better aesthetics and structure. Although many design software can now help to perform these repetitive tasks, extensive training is needed to use them effectively. Moreover, collaborative design across app pages demands extra time to align standards and ensure consistent styling. In this work, we propose APD-agents, a large language model (LLM) driven multi-agent framework for automated page design in mobile applications. Our framework contains OrchestratorAgent, SemanticParserAgent, PrimaryLayoutAgent, TemplateRetrievalAgent, and RecursiveComponentAgent. Upon receiving the user's description of the page, the OrchestratorAgent can dynamically direct other agents to accomplish users' design task. To be specific, the SemanticParserAgent is responsible for converting users' descriptions of page content into structured data. The PrimaryLayoutAgent can generate an initial coarse-grained layout of this page. The TemplateRetrievalAgent can fetch semantically relevant few-shot examples and enhance the quality of layout generation. Besides, a RecursiveComponentAgent can be used to decide how to recursively generate all the fine-grained sub-elements it contains for each element in the layout. Our work fully leverages the automatic collaboration capabilities of large-model-driven multi-agent systems. Experimental results on the RICO dataset show that our APD-agents achieve state-of-the-art performance.

1. Introduction

Designing a mobile application page is an inherently iterative and complex process. Designers must juggle content selection, spatial placement, sizing, and styling while maintaining consistency across an entire application. While existing design tools offer some automation, they often require significant expertise and manual effort to achieve professional results.

Previous attempts to automate this process using AI have struggled with three primary limitations:

  1. Static Outputs: Most existing models produce static pixel-based images, which lack the structured data necessary for editing in professional tools like Figma or Sketch.
  2. Complexity Collapse: As the number of UI elements increases, models often fail to maintain spatial logic, leading to overlapping components or missing elements.
  3. Data Hunger: Traditional deep learning approaches require massive, task-specific datasets and struggle to generalize to new design languages without extensive retraining.

To address these challenges, we introduce APD-Agents, a multi-agent framework that leverages the reasoning capabilities of Large Language Models (LLMs) to automate mobile app layout design through a collaborative, hierarchical workflow.

2. The APD-Agents Framework

The core philosophy of APD-Agents is that complex design tasks are best handled by a team of specialized agents rather than a single monolithic model. Built on the AutoGen framework, the system coordinates five distinct agents:

  • OrchestratorAgent: Acts as the project manager, planning the workflow and dispatching tasks based on the user's requirements.
  • SemanticParserAgent: Translates natural language descriptions into a structured list of UI elements.
  • TemplateRetrievalAgent: Employs semantic vector search to identify similar layouts from a reference library, providing "few-shot" examples that guide the LLM's stylistic choices.
  • PrimaryLayoutAgent: Establishes the high-level "coarse" layout, defining the primary blocks of the page.
  • RecursiveComponentAgent: Manages the fine-grained details by recursively generating sub-elements for composite components like toolbars or cards.
The APD-Agents multi-agent architecture and hierarchical generation process.

3. Coarse-to-Fine Generation Strategy

A significant innovation in APD-Agents is the "coarse-to-fine" generation strategy. Attempting to generate a complex page with dozens of elements in a single pass often leads to "hallucinations" or spatial errors. Instead, our framework first builds a skeleton and then populates it with details.

This hierarchical approach treats the UI as a tree structure. For example, a "Card" element is treated as a parent container, and the RecursiveComponentAgent is tasked with solving the smaller spatial puzzle of placing text and images within that container. This method significantly reduces the cognitive load on the LLM at any single step.

The final output of this process is a structured JSON file. Unlike pixel-based outputs, this format is directly compatible with professional design software, allowing designers to refine the AI-generated layouts manually.

Transition from layered data to editable design software formats like Sketch and Figma.

4. Experimental Evaluation

We evaluated APD-Agents using the RICO dataset, which contains over 66,000 unique UI screens from 9,700 Android applications. We utilized 90% of the dataset as a retrieval library for our TemplateRetrievalAgent and reserved 10% for testing.

Key Results

APD-Agents achieved state-of-the-art (SOTA) performance across several critical metrics:

  • mIoU (Maximum Intersection over Union): Reached 0.485, outperforming the previous best baseline (0.440).
  • Overlap (Ovp): Reduced spatial overlap errors to 0.448, a significant improvement over LayoutDiffusion (0.491).
  • EPAcc (Element Properties Accuracy): Our framework achieved an 85.90% accuracy in preserving the hierarchy and attributes of UI elements.

Qualitatively, the layouts produced by APD-Agents were more orderly and adhered more closely to design principles such as consistent margins and centered alignment compared to GAN or Transformer-based models.

5. Insights and Future Work

Our research highlighted several key findings. First, the "one-go" generation approach is prone to failure (18% failure rate in our tests), validating the need for a multi-agent, hierarchical workflow. Second, using Retrieval-Augmented Generation (RAG) to provide in-context design specifications proved more effective and flexible than traditional fine-tuning.

Future work will focus on improving style inference for icons and buttons, which currently requires more brand-specific context. We also plan to implement real-time feedback loops, allowing designers to interactively refine layouts through natural language commands.

Summary updated

BibTeX
@misc{chen2025apd,
  author = {Xinpeng Chen and Xiaofeng Han and Kaihao Zhang and Guochao Ren and Yujie Wang and Wenhao Cao and Yang Zhou and Jianfeng Lu and Zhenbo Song},
  title = {{APD-Agents: A Large Language Model-Driven Multi-Agents Collaborative Framework for Automated Page Design}},
  year = {2025},
  eprint = {2511.14101},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.14101},
}
Figure