Here is a blog-style summary of the research paper Editable Visual Design.
TL;DR
Current AI design tools force a trade-off between visually stunning but uneditable flat images (from diffusion models) and structured but aesthetically bland layouts (from pure code generation). Editable Visual Design bridges this gap by pairing a Vision-Language Model (VLM) as a "creative brain" with an image generator acting as a "visual simulator." The result is a closed-loop system that generates production-grade, beautifully styled, and fully layered HTML/CSS designs that users can edit natively.
What Problem Does This Paper Address?
Automating graphic design usually follows one of two lopsided paths:
- "Right-Brain" Diffusion Models: Models like Midjourney or Stable Diffusion excel at composition, lighting, and texture. However, they output flat raster images (bitmaps). The text within them is frequently misspelled or warped, and elements are deeply entangled, making post-generation editing impossible.
- "Left-Brain" Coding Agents: LLMs writing pure HTML/CSS provide excellent structural control, clean layers, and perfectly editable text. Unfortunately, they lack a two-dimensional spatial sense and global aesthetic intuition. They tend to produce highly templated, boring layouts (the classic "headline, card, rounded shadow" look) and struggle to generate complex visual assets like 3D graphics or rich textures.
The authors introduce Editable Visual Design to break through this bottleneck, combining the aesthetic prowess of image generation with the rigorous engineering logic of code generation.
Methods
The core philosophy of this paradigm is an "imagine first, then act" closed-loop workflow driven by two collaborating AI components:
- The Creative Brain (VLM): Driven by a frontier model (e.g., GPT-5.6 Sol), the VLM handles requirement comprehension, task planning, layout decisions, and aesthetic judgment.
- The Visual World Simulator (Image Model): Called on-demand (e.g., GPT Image 2), this model synthesizes standalone visual assets and provides an initial "imagined visual" to establish color and compositional priors.
[User Prompt] ➔ [VLM: Plan & Layout] ➔ [Image Model: Simulate Visuals] ➔ [VLM: Write HTML/CSS] ➔ [Visual Self-Healing Loop] ➔ [Editable Canvas]
The 5-Step Workflow
- Understanding & Design Planning: The VLM parses the user prompt and calls the image model to generate a conceptual "dream image" to serve as an aesthetic reference.
- Visual Simulation: The VLM visually analyzes this reference image to extract color palettes, style characteristics, and spatial distributions.
- Structural Coding and Generation: The agent writes structured HTML/CSS. Crucially, it requests the image model to generate standalone, text-free local assets layer-by-layer (using alpha channels or a flat green-screen background for clean matting) to avoid pixel contamination.
- Verification and Visual Self-Healing: The code is rendered in a headless browser. A dual-check mechanism runs deterministic layout rules (detecting overflows or DOM errors) while the VLM reviews a screenshot of the page to reflect on visual balance and issue local code patches.
- Editable Design Delivery: The final output is delivered as native DOM nodes, allowing users to select, drag, scale, and edit text directly in a graphical user interface.
The authors also introduce Agent Design Replay, a serialized log that records the agent's entire creative trajectory—from planning to asset prompts and code revisions—making the AI's design process fully transparent and reproducible.
Datasets
The paper does not introduce a new training dataset or evaluate on standard automated benchmarks, noting that aesthetic quality and editability are notoriously difficult to reduce to a single metric. Instead, the authors validate their paradigm qualitatively across a diverse suite of real-world design scenarios, including marketing campaigns, long-text layouts, art posters, and infographics.
Key Insights and Ideas
- Image Models as Simulators, Not Final Deliverables: Instead of forcing a diffusion model to output a perfect final poster, it is far more effective to use it as an upstream "simulator" to guide a coding agent.
- The "Green Screen" Hack: To isolate assets without layer entanglement, the system prompts the image generator to place subjects on a flat green background, allowing a simple matting script to cleanly lift the asset out.
- Visual Self-Healing: Code generation shouldn't be open-loop. By rendering the code and feeding a screenshot back to the VLM, the AI mimics a human designer stepping back from the canvas to spot layout flaws and overlapping text.
Key Results
The paradigm was compared directly against pure image generation and pure code generation baselines:
- vs. Pure Diffusion (GPT-Image-2): While visually rich, the baseline returned locked bitmaps with disordered, uneditable Chinese characters.
- vs. Pure Code Generation (Codex): The baseline generated clean code but suffered from chaotic layouts, massive blank spaces, and a severe lack of aesthetic refinement.
- Editable Visual Design Performance: Successfully combined print-clean typography with rich visual textures. As shown in the paper's case studies, complex elements like headline lettering, background illustrations, and informational badges remained independently addressable and perfectly rendered.
Limitations and Future Work
- Bounded by Underlying Models: The system's output quality is strictly capped by its components. If the VLM writes weak layout code or the image model generates uninspired assets, the final design suffers.
- Multi-Page Consistency: The current framework is optimized for single-page designs. Scaling the agent to maintain a consistent visual thread (identical type scales, matching palettes) across multi-page decks or full websites remains an open challenge.
- Evaluation Bottleneck: Because design is subjective, the visual quality check still relies heavily on VLM judgment rather than deterministic ground-truth scores.
Summary updated