Integrating LLMs and Diffusion Models for Website Design Automation

wix · Tech · 2024 · source Agentic: no · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Automated website and graphic-design layout generation

Wix had AI tools for website copy and imagery, but professional layout design still required design expertise, time, templates, or human designers. The challenge was to generate unique, personalized layouts that users could control by conditioning on selected component attributes while preserving high-quality graphic-design structure.

Constraints:

Architecture

Wix developed the Diffusion Layout Transformer (DLT), a conditioned layout-generation framework built around a Transformer encoder and a joint discrete-continuous diffusion process. Layouts are represented as sets of components with category, position, and size attributes. Practitioners can condition generation by fixing component classes, positions, sizes, or other subsets, and the model generates the remaining layout. Training randomly masks components or attributes so the model learns diverse conditioning scenarios. During inference, component embeddings and a timestamp flow through diffusion iterations to output clean coordinates and component classes.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  Wix_website_building_workflow["Wix website-building workflow"] --> Wix_AI_Text_Creator["Wix AI Text Creator"]
  Wix_website_building_workflow --> Text_to_image_visual_generator["Text-to-image visual generator"]
  Wix_website_building_workflow --> Diffusion_Layout_Transformer["Diffusion Layout Transformer"]
  Text_to_image_visual_generator --> Diffusion_Layout_Transformer
  Conditioning_inputs["Conditioning inputs"] --> Layout_component_representation["Layout component representation"]
  Layout_component_representation --> Diffusion_Layout_Transformer
  Diffusion_Layout_Transformer --> Transformer_encoder["Transformer encoder"]
  Transformer_encoder --> Joint_diffusion_process["Joint diffusion process"]
  Joint_diffusion_process --> Continuous_attribute_diffuser["Continuous attribute diffuser"]
  Joint_diffusion_process --> Discrete_attribute_diffuser["Discrete attribute diffuser"]
  Joint_diffusion_process --> Combined_loss["Combined loss"]
  Continuous_attribute_diffuser --> Generated_layout_output["Generated layout output"]
  Discrete_attribute_diffuser --> Generated_layout_output
  Generated_layout_output --> Wix_website_building_workflow
  Benchmark_evaluation_datasets["Benchmark evaluation datasets"] --> Diffusion_Layout_Transformer
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Wix website-building workflow End-user flow for creating website text, visuals, layouts, and business functionality. Wix AI Text Creator, Text-to-image visual generator, Diffusion Layout Transformer
Wix AI Text Creator LLM-based tool for generating titles and website copy. Wix website-building workflow
Text-to-image visual generator Generates visual content for websites using models such as DALL-E. Wix website-building workflow, Diffusion Layout Transformer
Layout component representation Represents each layout as a set of components with category, position, and size attributes. Conditioning inputs, Joint diffusion process, Transformer encoder
Conditioning inputs User- or practitioner-specified attributes such as component class, position, size, buttons, images, or text. Layout component representation, Diffusion Layout Transformer
Diffusion Layout Transformer General conditioned layout-generation framework for generating or editing layouts. Layout component representation, Transformer encoder, Joint diffusion process, Generated layout output
Transformer encoder Core architecture that makes the model non-autoregressive and supports flexible conditioning. Diffusion Layout Transformer, Joint diffusion process
Joint diffusion process Combines continuous diffusion for positions/sizes with discrete diffusion for component categories. Transformer encoder, Continuous attribute diffuser, Discrete attribute diffuser, Combined loss
Continuous attribute diffuser Handles layout coordinates such as size and position. Joint diffusion process, Generated layout output
Discrete attribute diffuser Handles component classes such as image, text, title, or button. Joint diffusion process, Generated layout output
Combined loss Training objective integrating discrete and continuous parts of layout generation. Joint diffusion process
Generated layout output Clean coordinates and component classes for generated or edited layouts. Diffusion Layout Transformer, Wix website-building workflow
Benchmark evaluation datasets PubLayNet, RICO, and Magazine datasets used to evaluate layout synthesis and editing. Diffusion Layout Transformer, Generated layout output

Data flow

Website-building workflows already use LLM-based text creation and text-to-image models such as DALL-E for content and visuals. DLT adds the layout layer: layouts are represented as component sets with discrete classes and continuous geometry. Training masks some components or attributes and optimizes a combined discrete-continuous loss. At inference time, the user can provide no conditions, component types, sizes, positions, or other subsets; DLT receives component embeddings and a timestamp, runs diffusion iterations through a Transformer encoder, and produces clean component coordinates and classes.

3 supporting quotes
“the Wix AI Text Creator suite leverages the generative capabilities of Large Language Models to enable users to create compelling titles and engaging content”article, stated
“Wix also employs advanced text-to-image models, like DALL-E, to infuse users’ websites with fresh and relevant visual content.”article, stated
“our model gets embeddings of components and a timestamp as inputs. After applying multiple (diffusion) iterations it outputs clean coordinates and classes of components.”article, stated

Why this architecture

Wix needed a design generator that could work with partial user intent rather than a fixed template. The Transformer encoder enables non-autoregressive generation and flexible conditioning; the joint discrete-continuous diffusion process matches the mixed nature of layout data; and random masking during training makes the model robust to many conditioning scenarios, such as fixing component classes, positions, or sizes while generating the rest.

3 supporting quotes
“This design choice not only makes our model non-autoregressive but also allows for flexible conditioning during the inference”article, stated
“our approach provides a generative diffusion process that operates jointly on both continuous and discrete inputs.”article, stated
“This approach strengthens our model’s robustness to diverse conditioning scenarios.”article, stated

Models used: Large Language Models for Wix AI Text Creator · DALL-E-style text-to-image models · Diffusion Layout Transformer · Transformer encoder · joint discrete-continuous diffusion model

Scale

Alternatives considered (roads not taken)

Pre-designed templates

Rejected because: Templates are suitable suggestions but do not create unique, highly personalized layouts.

“users are often faced with the choice of selecting from a set of pre-designed templates or hiring a professional designer.”article, stated
“Our goal is to not merely suggest suitable layout templates for a site, but to create unique  and highly personalized layouts.”article, stated

Professional designer for every custom layout

Rejected because: Professional design remains valuable, but it adds time and expertise requirements that Wix wanted to reduce for users.

“designing layouts for professional-looking websites remains a challenge. The task is complex, requires design expertise and consumes considerable time.”article, stated

Layout methods that model only continuous or only discrete attributes

Rejected because: Real layouts include both geometric and categorical attributes, so DLT models both jointly.

“Differing from previous approaches which use either continuous or discrete layout attributes”article, stated
“operates jointly on both continuous and discrete inputs.”article, stated

Sequential autoregressive component generation

Rejected because: Wix chose a Transformer encoder that can generate components non-autoregressively and support flexible inference conditioning.

“we employ a Transformer encoder. This design choice not only makes our model non-autoregressive”article, stated

Patterns

structured-output-contract (interface)

DLT represents layouts as structured component sets with category, position, and size attributes, then outputs clean coordinates and classes.

“Layouts are typically represented as a set of components, where each component includes several attributes such as category (e.g., image, title, button), position, and size.”article, stated
“it outputs clean coordinates and classes of components.”article, stated

eval-driven-development (quality)

Wix evaluated generated layouts on multiple benchmark datasets and design aesthetic metrics before reporting DLT's performance.

“To evaluate the generated layouts, we used popular layout datasets for diverse graphic design tasks”article, stated
“We evaluated output using common design esthetic metrics.”article, stated

tool-use-orchestration (workflow)

Wix combines LLM text generation, text-to-image models, and layout generation as separate AI tools in the website-building workflow.

“the Wix AI Text Creator suite leverages the generative capabilities of Large Language Models”article, stated
“Wix also employs advanced text-to-image models, like DALL-E, to infuse users’ websites with fresh and relevant visual content.”article, stated

latency-optimization (modeling)

The Transformer encoder makes layout generation non-autoregressive, allowing the model to generate all components without sequential dependency.

“This design choice not only makes our model non-autoregressive but also allows for flexible conditioning during the inference”article, stated

Tradeoffs

Build custom layout generation rather than template recommendation.

Chose conditioned Diffusion Layout Transformer over suggesting suitable layout templates.

Rationale: The custom model broadens creative options by generating unique and personalized layouts.

“To broaden our users' creative options, Wix's AI research group is exploring ways to automate the creation of custom layouts.”article, stated
“Our goal is to not merely suggest suitable layout templates for a site, but to create unique  and highly personalized layouts.”article, stated

Use a Transformer encoder.

Chose non-autoregressive Transformer encoder with flexible conditioning over previous layout-generation methods with less flexible conditioning.

Rationale: The encoder supports simultaneous component generation and inference-time conditioning.

“At the core of our architecture, we employ a Transformer encoder.”article, stated
“allows for flexible conditioning during the inference, which differs from previous layout generation methods.”article, stated

Model discrete and continuous attributes jointly.

Chose joint discrete-continuous diffusion process over approaches using either continuous or discrete attributes alone.

Rationale: Real layouts combine geometric coordinates with component categories, so one unified generative process better matches the data.

“our approach provides a generative diffusion process that operates jointly on both continuous and discrete inputs.”article, stated
“We apply a continuous diffusion process on the continuous attributes - like size or position - and apply a discrete diffusion process on the discrete features.”article, stated

Train with random masking.

Chose hide components or specific attributes during training over training only on complete unconditioned layouts.

Rationale: Random masking teaches robustness across diverse conditioning scenarios users will create at inference time.

“During the training, we randomly hide (mask) certain components within the layout or specific attributes”article, stated
“This approach strengthens our model’s robustness to diverse conditioning scenarios.”article, stated

Gotchas (what bit them)

Text and image generation did not solve layout design.

Root cause: Professional website layout requires balancing visual and textual elements, which remains a design-expertise problem.

Resolution: Wix built DLT specifically for custom conditioned layout generation.

“Even with all these tools, designing layouts for professional-looking websites remains a challenge.”article, stated
“Wix's AI research group is exploring ways to automate the creation of custom layouts.”article, stated

Templates limit personalization.

Root cause: Pre-designed templates constrain users to existing layout options rather than generating unique designs.

Resolution: DLT aims to create unique, highly personalized layouts instead of merely suggesting templates.

“users are often faced with the choice of selecting from a set of pre-designed templates or hiring a professional designer.”article, stated
“not merely suggest suitable layout templates for a site, but to create unique  and highly personalized layouts.”article, stated

Layout data mixes incompatible attribute types.

Root cause: Positions and sizes are continuous, while component categories are discrete.

Resolution: DLT uses a joint discrete-continuous diffusion process with a combined loss.

“layouts contains both continuous attributes, like the size and location of visual components, and discrete attributes like the category of components.”article, stated
“The model is trained using a combined loss function that integrates both the discrete and continuous parts.”article, stated

Real design tools need partial user control.

Root cause: Users often know some attributes, such as a button class or image position, but need the model to complete the rest.

Resolution: DLT supports conditioning on any subset of component attributes.

“The ability to condition layout generation on a subset of component attributes, such as specific buttons, images, or text, is essential for real-world applications involving user interaction.”article, stated
“users can place a few components and let the generative model complete the layout.”article, stated

Layout generation alone is not a full website product.

Root cause: Website creation also requires SEO, analytics, payments, and other business functionality.

Resolution: Wix frames layout generation as one part of a broader website-creation system.

“utilizing AI for website creation should extend beyond design. It should be combined with a comprehensive system of business functionalities, like SEO, analytics, payments, and more.”article, stated

Evaluation

Wix evaluated DLT on layout datasets for different graphic-design tasks, including PubLayNet, RICO, and Magazine, using common design aesthetic metrics. The reported result is that DLT outperformed existing approaches on layout synthesis and editing while maintaining computational complexity comparable to previous methods.

Metrics: common design esthetic metrics · layout synthesis performance · layout editing performance · computational complexity compared with prior approaches · PubLayNet benchmark · RICO benchmark · Magazine benchmark

3 supporting quotes
“To evaluate the generated layouts, we used popular layout datasets for diverse graphic design tasks”article, stated
“We evaluated output using common design esthetic metrics. We found that our proposed solution outperformed existing ones on layout synthesis and editing tasks”article, stated
“our proposed solution outperformed existing ones on layout synthesis and editing tasks, while maintaining  computational complexity that is on par with previous approaches.”article, stated

Outcomes

The source reports ICCV 2023 publication, three common conditioning settings, and evaluation on PubLayNet, RICO, and Magazine. It does not report production rollout volume, latency, user adoption, or online business metrics for DLT.

3 supporting quotes
“we introduced the Diffusion Layout Transformer (DLT), a general framework for layout generation.”article, stated
“DLT allows us to generate layouts for a broad range of design tasks in a single framework”article, stated
“the flexible and general design of DLT makes it suitable for a wide variety of graphic design applications.”article, stated