Papers › Towards Aligned Layout Generation via Diffusion Model with Aesthetic Constraints

Towards Aligned Layout Generation via Diffusion Model with Aesthetic Constraints

7 Feb 2024arXiv:2402.04754archive 2025-07-28

Jian Chen, Ruiyi Zhang, Yufan Zhou, Rajiv Jain, Zhiqiang Xu, Ryan Rossi, Changyou Chen

Controllable layout generation refers to the process of creating a plausible visual arrangement of elements within a graphic design (e.g., document and web designs) with constraints representing design intentions. Although recent diffusion-based models have achieved state-of-the-art FID scores, they tend to exhibit more pronounced misalignment compared to earlier transformer-based models. In this work, we propose the LAyout Constraint diffusion modEl (LACE), a unified model to handle a broad range of layout generation tasks, such as arranging elements with specified attributes and refining or completing a coarse layout design. The model is based on continuous diffusion models. Compared with existing methods that use discrete diffusion models, continuous state-space design can enable the incorporation of differentiable aesthetic constraint functions in training. For conditional generation, we introduce conditions via masked input. Extensive experiment results show that LACE produces high-quality layouts and outperforms existing state-of-the-art baselines.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.04754")

Code

Syntology Ran 12 of 14 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · violated contract; 3 ran · our draft was wrong; 2 ran · fixture could not drive it; 5 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

puar-playground/lace officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 12 ran; 1 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · violated contract
3ran · our draft was wrong
2ran · fixture could not drive it
5ran
2unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from puar-playground/lace. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

AdaInsNorm puar-playground/lace/model_diffusion.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 4d2e3dfcf5e514df · report
AdaLayerNorm puar-playground/lace/model_diffusion.py official repository ran · metamorphic tier: deterministic MIT (permissive) · d61620216d1e0e43 · report
Block puar-playground/lace/model_diffusion.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 33602d665cafbd1a · report
SinusoidalPosEmb puar-playground/lace/model_diffusion.py official repository ran · metamorphic tier: deterministic fingerprinted MIT (permissive) · 1f73949b4bda3c10 · report
_AdaNorm puar-playground/lace/model_diffusion.py official repository ran MIT (permissive) · 513ddb55864178fe · report
_gelu2 puar-playground/lace/model_diffusion.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · ce23ad2f08007447 · report
_get_activation_fn puar-playground/lace/model_diffusion.py official repository ran · our draft was wrong MIT (permissive) · 1f6ff9fa607114db · report
color_extend puar-playground/lace/model_diffusion.py official repository ran · honoured contract MIT (permissive) · ae472f22d0f7c642 · report
convert_layout_to_image puar-playground/lace/model_diffusion.py official repository ran · fixture could not drive it MIT (permissive) · 9ab277ea712083c7 · report
convert_xywh_to_ltrb puar-playground/lace/model_diffusion.py official repository ran · violated contract MIT (permissive) · d95d45ece970cfa1 · report
save_image puar-playground/lace/model_diffusion.py official repository ran · fixture could not drive it MIT (permissive) · c1795e572a421c31 · report
torch_to_numpy_image puar-playground/lace/model_diffusion.py official repository ran · our draft was wrong MIT (permissive) · a9e89a5d98bea94d · report
Diffusion puar-playground/lace/model_diffusion.py official repository unverified MIT (permissive) · efd5ffb686bfb773 · report
TransformerEncoder puar-playground/lace/model_diffusion.py official repository unverified MIT (permissive) · 6331fa2f5c6d4fbe · report

Tasks

Layout DesignLayout Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections