Papers › LayoutDETR: Detection Transformer Is a Good Multimodal Layout Designer

LayoutDETR: Detection Transformer Is a Good Multimodal Layout Designer

19 Dec 2022arXiv:2212.09877archive 2025-07-28

Ning Yu, Chia-Chih Chen, Zeyuan Chen, Rui Meng, Gang Wu, Paul Josel, Juan Carlos Niebles, Caiming Xiong, ran Xu

Graphic layout designs play an essential role in visual communication. Yet handcrafting layout designs is skill-demanding, time-consuming, and non-scalable to batch production. Generative models emerge to make design automation scalable but it remains non-trivial to produce designs that comply with designers' multimodal desires, i.e., constrained by background images and driven by foreground content. We propose LayoutDETR that inherits the high quality and realism from generative modeling, while reformulating content-aware requirements as a detection problem: we learn to detect in a background image the reasonable locations, scales, and spatial relations for multimodal foreground elements in a layout. Our solution sets a new state-of-the-art performance for layout generation on public benchmarks and on our newly-curated ad banner dataset. We integrate our solution into a graphical system that facilitates user studies, and show that users prefer our designs over baselines by significant margins. Code, models, dataset, and demos are available at https://github.com/salesforce/LayoutDETR.

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="2212.09877")

Code

Syntology Ran 7 of 8 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 2 ran · honoured contract; 2 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 7 samples from 1 repository, 6 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

salesforce/layoutdetr 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

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

2ran · honoured contract
2ran · our draft was wrong
3ran
1unverified

Licence: 1 of the 8 samples is 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 salesforce/layoutdetr. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

TransformerDecoder salesforce/layoutdetr/training/detr_transformer.py official repository ran · metamorphic tier: invariant fingerprinted Apache-2.0 (permissive) · 64074fbdc0dc8d48 · report
TransformerDecoderLayer salesforce/layoutdetr/training/detr_transformer.py official repository ran · metamorphic tier: invariant Apache-2.0 (permissive) · 10f62370eeadef2b · report
TransformerEncoderLayer salesforce/layoutdetr/training/detr_transformer.py official repository ran · metamorphic tier: invariant fingerprinted Apache-2.0 (permissive) · b2bdd3331ef62a51 · report
jitter salesforce/layoutdetr/generate.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · e05b3c91f56c23b1 · report
parse_range salesforce/layoutdetr/generate.py official repository ran · honoured contract Apache-2.0 (permissive) · 4b558122fe2d4fb3 · report
parse_vec2 salesforce/layoutdetr/generate.py official repository ran · honoured contract Apache-2.0 (permissive) · 5b7b49ef97d5e0ef · report
TransformerWithToken salesforce/layoutdetr/training/detr_transformer.py official repository unverified Apache-2.0 (permissive) · 0e3c1156b8b09b90 · report
parse_comma_separated_list identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · d01b68a634f71551 · report

Tasks

Layout Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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