StructGen: Disambiguating Multi-Reference Image Generation via Structured Context Modeling

ACM MM 2026

Jianing Peng1,3,5* Mengyu Wang1,3* Henghui Ding2† Zixiang Li1,3 Ting Liu5 Xiaochao Qu5 Luoqi Liu5 Yao Zhao1,3 Yunchao Wei1,3,4†

1Institute of Information Science, Beijing Jiaotong University · 2Institute of Big Data, Fudan University

3Visual Intelligence + X International Joint Laboratory of the Ministry of Education

4Beijing Academy of Artificial Intelligence · 5MT Lab, Meitu Inc

*Both authors contributed equally to this research. Corresponding authors.

StructGen teaser

Comparison of BAGEL-MICo, Echo-4o, and StructGen on a challenging multi-reference generation case.

StructGen replaces verbose, ambiguous free-form prompts with a compact identifier-based context. It explicitly binds people, objects, attributes, and scenes, enabling accurate attribute–subject association and stronger consistency with every reference.

Abstract

Multi-reference image generation aims to synthesize images by integrating attributes from multiple reference images under textual instructions. As the number of references increases, the task necessitates complex semantic comprehension, such as correctly associating attributes with the intended subjects and planing out coherent spatial arrangement between subjects and their environments. Existing approaches, which rely solely on natural language instruction, often fail to capture these complex intentions precisely, leading to semantic misalignment and inconsistent generation. We identify two key factors behind these limitations: natural language instructions are often verbose and ambiguous, and high-quality multi-reference data is scarce. To address these issues, we propose StructGen, which employs a structured, dictionary-like format to encode multiple reference images, thereby enabling explicit and unambiguous specification of generation intentions. To support this design, we construct a structured dataset based on high-quality real images and develop a corresponding training framework, along with a dedicated benchmark for challenging multi-reference scenarios. Extensive experiments on both public benchmarks and our proposed benchmark demonstrate that StructGen consistently outperforms existing methods on both semantic alignment and detailed reference-generation consistency, especially under complex instructions with multiple references.

Structured Context Modeling Framework

StructGen framework with structured data curation and structured tuning pipelines.

StructGen assigns every reference a unique identifier and organizes the references as a dictionary. Identifier-based instructions then point directly to the intended people, belongings, and scenes, turning implicit cross-reference associations into explicit grounding. Alongside this representation, our real-image curation pipeline preserves flexible poses, rich backgrounds, and natural human–environment interactions that are often missing from distillation-based data.

Structured Data Curation Pipeline

Comparison between previous distillation-based data and StructGen data curated from real-world images.
Distribution of the number of reference images per sample in previous datasets and the StructGen dataset.

StructGen consists of Structured Data Curation and Structured Tuning. The curation pipeline transforms real-world images into synchronized entity references, identifier-grounded descriptions, and generation instructions. During tuning, the model learns this structured context format while preserving the pretrained model’s broader understanding and generation capabilities.

StructGen Bench

Construction pipeline and eight-subset composition of the 400-case StructGen Bench.

StructGen Bench contains 400 cases across 8 subsets, defined by three orthogonal factors: outfit-conditioned versus outfit-retaining generation, single versus multiple humans, and the presence or absence of a scene reference. Each case includes matched natural-language and identifier-based instructions, enabling fair comparison while evaluating prompt following, subject consistency, and facial ID consistency.

Results

Qualitative comparison of Echo-4o and StructGen across the eight StructGen Bench subsets.
StructGen generation results when all references are provided as textual descriptions.

Across StructGen Bench, StructGen better preserves referenced objects, scenes, and facial identity than the Echo-4o baseline. It also produces more natural subject–environment interactions and more realistic visual details, including lighting and texture. The gains are most evident in complex multi-human settings, where explicit identifier grounding prevents attributes from being assigned to the wrong subject. StructGen also performs generation when all references are provided as textual descriptions, demonstrating that structured context supports text-to-image synthesis with decoupled entity descriptions and global semantic specification.

BibTeX

@misc{peng2026structgen,
  title={StructGen: Disambiguating Multi-Reference Image Generation via Structured Context Modeling},
  author={Jianing Peng and Mengyu Wang and Henghui Ding and Zixiang Li and Ting Liu and Xiaochao Qu and Luoqi Liu and Yao Zhao and Yunchao Wei},
  year={2026},
  eprint={2607.15619},
  archivePrefix={arXiv},
  primaryClass={cs.CV}
}