All models

LACE

Continuous diffusion transformer that generates graphic layouts under alignment and overlap constraints.

Diffusion and generative · 187 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (18 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
46.1M
Operations
187
Framework
PyTorch
Recurrent
No
Published
ICLR 2024
Cited by
2 (as of 29 October 2026)
Authors
Jian Chen, Ruiyi Zhang, Yufan Zhou and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m17711
Graph hash
d84dc5b84857dd3426d7693f417f3beed59581c79e0617187ab6636ad262b13f
Skeleton hash
7e36facb7267bb208436dbd54438fedb1e157dd15791da7e18fe6533823e3264
Architecture hash
c7b69a84b54af77a8a4c9a86f5ce25967e8b6ce1763c8770a0c8ec0be77242d7
Diagram SHA-256
c7bdfbd873b989cdcd8ee1bdbc52f7a7314895936b215116b7fcb3f0f99585e3
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

LACE is a diffusion model for layout generation, built as one unified model for tasks such as arranging elements with specified attributes and refining or completing a coarse layout. The paper starts from an observation about earlier diffusion-based layout models: they scored well on FID but showed more misalignment than earlier transformer-based models. LACE works in a continuous state space rather than a discrete one, which lets differentiable aesthetic constraint functions be used in training. The authors design two of them, a global alignment loss and a pairwise overlap loss, used during training and in post-processing.

A layout is a padded sequence of elements, each with a class label and a bounding box given by its center coordinates and its width and height ratios. Conditions are introduced through masked input, so a single network handles unconditional and conditional generation.

The network that predicts the noise is a transformer adopted from the LayoutDM source code, with 4 layers, 16 attention heads and an embedding dimension of 1024 for PubLayNet or 512 for Rico. Time embeddings are injected through a modified adaptive layer normalization. The diffusion uses 1000 forward steps, and generation uses DDIM sampling with 100 steps.

Key idea. LACE runs layout diffusion in continuous space so that differentiable alignment and overlap constraints can be applied during training and post-processing.

  • LACE
  • layout constraint diffusion model
  • layout generation
  • controllable layout generation
  • diffusion model
  • aesthetic constraints
  • layout alignment
  • PubLayNet
  • Rico
  • graphic design layout

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{chen2024alignedlayoutgenerationdiffusion,
      title={Towards Aligned Layout Generation via Diffusion Model with Aesthetic Constraints}, 
      author={Jian Chen and Ruiyi Zhang and Yufan Zhou and Rajiv Jain and Zhiqiang Xu and Ryan Rossi and Changyou Chen},
      year={2024},
      eprint={2402.04754},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2402.04754}, 
}