Papers › LAION-SG: An Enhanced Large-Scale Dataset for Training Complex Image-Text Models with...

LAION-SG: An Enhanced Large-Scale Dataset for Training Complex Image-Text Models with Structural Annotations

11 Dec 2024arXiv:2412.08580archive 2025-07-28

Zejian Li, Chenye Meng, Yize Li, Ling Yang, Shengyuan Zhang, Jiarui Ma, Jiayi Li, Guang Yang, Changyuan Yang, Zhiyuan Yang, Jinxiong Chang, Lingyun Sun

Recent advances in text-to-image (T2I) generation have shown remarkable success in producing high-quality images from text. However, existing T2I models show decayed performance in compositional image generation involving multiple objects and intricate relationships. We attribute this problem to limitations in existing datasets of image-text pairs, which lack precise inter-object relationship annotations with prompts only. To address this problem, we construct LAION-SG, a large-scale dataset with high-quality structural annotations of scene graphs (SG), which precisely describe attributes and relationships of multiple objects, effectively representing the semantic structure in complex scenes. Based on LAION-SG, we train a new foundation model SDXL-SG to incorporate structural annotation information into the generation process. Extensive experiments show advanced models trained on our LAION-SG boast significant performance improvements in complex scene generation over models on existing datasets. We also introduce CompSG-Bench, a benchmark that evaluates models on compositional image generation, establishing a new standard for this domain. Our annotations with the associated processing code, the foundation model and the benchmark protocol are publicly available at https://github.com/mengcye/LAION-SG.

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

Code

Syntology Ran 6 of 23 code samples harvested from 2 repositories linked to this paper; 17 have no recorded run. Of those that ran: 2 ran · violated contract; 2 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 0 ran; community (archive-listed): 12 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

mengcye/LAION-SG officialmentioned in papermentioned on GitHubpytorchMIT report
yangling0818/sgdiff mentioned 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

23 samples harvested; 6 ran; 0 honoured the contract we drafted; 17 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.

2ran · violated contract
2ran · our draft was wrong
2ran
17unverified

Licence: 12 of the 23 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

boxes_to_mask mengcye/LAION-SG/sgEncoderTraining/utils.py official repository unverified MIT (permissive) · 13f977de43dee032 · report
build_laion_dsets mengcye/LAION-SG/sgEncoderTraining/datasets/laion_dataset.py official repository unverified MIT (permissive) · 1117cb855a81abc3 · report
build_laion_loaders mengcye/LAION-SG/sgEncoderTraining/datasets/laion_dataset.py official repository unverified MIT (permissive) · def453b3dce37100 · report
build_mlp mengcye/LAION-SG/sgEncoderTraining/sgEncoder/module.py official repository unverified MIT (permissive) · 8692859d555c8768 · report
cosine_lr mengcye/LAION-SG/sgEncoderTraining/training/scheduler.py official repository unverified MIT (permissive) · 932d44bbf8bd0e3f · report
generate_box_mask mengcye/LAION-SG/sgEncoderTraining/utils.py official repository unverified MIT (permissive) · 15167a5cc461251c · report
get_autocast mengcye/LAION-SG/sgEncoderTraining/training/precision.py official repository unverified MIT (permissive) · f988e73e85f4ea4a · report
get_linear_feas_by_hook mengcye/LAION-SG/sgEncoderTraining/utils.py official repository unverified MIT (permissive) · df129d4646ebbcc0 · report
import_model_class_from_model_name_or_path mengcye/LAION-SG/trainer_laion.py official repository unverified MIT (permissive) · 5fc36bbf7ad81a90 · report
my_laion_collate_fn mengcye/LAION-SG/sgEncoderTraining/datasets/laion_dataset.py official repository unverified MIT (permissive) · 6124caed65f1c444 · report
unwrap_model mengcye/LAION-SG/sgEncoderTraining/training/train_and_val_one_iter.py official repository unverified MIT (permissive) · 2bf62c0287050bdd · report
always yangling0818/sgdiff/ldm/modules/x_transformer.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · fe5dd5258046898c · report
default yangling0818/sgdiff/ldm/modules/attention.py community (archive-listed) ran · violated contract no licence file found · pointer only · 424012cb37b31172 · report
exists yangling0818/sgdiff/ldm/modules/attention.py community (archive-listed) ran · violated contract no licence file found · pointer only · aa5486a3650902d8 · report
isimage yangling0818/sgdiff/ldm/util.py community (archive-listed) ran no licence file found · pointer only · b1368330cf0f5642 · report
ismap yangling0818/sgdiff/ldm/util.py community (archive-listed) ran no licence file found · pointer only · d72762b700feee6f · report
uniq yangling0818/sgdiff/ldm/modules/attention.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 9a299fe5ae09e407 · report
build_model yangling0818/sgdiff/sg_image_pretraining/clip/model.py community (archive-listed) unverified no licence file found · pointer only · 39e6b23b55f376ea · report
draw_scene_graph yangling0818/sgdiff/testset_ddim_sampler.py community (archive-listed) unverified no licence file found · pointer only · 245ff5228caf9482 · report
draw_scene_graph yangling0818/sgdiff/sg2im/vis.py community (archive-listed) unverified no licence file found · pointer only · 08c9ee87b8be3253 · report
log_txt_as_img yangling0818/sgdiff/ldm/util.py community (archive-listed) unverified no licence file found · pointer only · f9bd2e83191afad1 · report
nondefault_trainer_args yangling0818/sgdiff/trainer.py community (archive-listed) unverified no licence file found · pointer only · 87fbedd0c27cf378 · report
vg_collate_fn yangling0818/sgdiff/testset_ddim_sampler.py community (archive-listed) unverified no licence file found · pointer only · c31f6b9b1b521862 · report

Tasks

AttributeImage GenerationScene 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