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

Jianing Peng, Mengyu Wang, Henghui Ding, Zixiang Li, Ting Liu, Xiaochao Qu, Luoqi Liu, Yao Zhao, Yunchao WeiarXiv 2026

TL;DR

StructGen introduces a structured, dictionary-like framework for multi-reference image generation, replacing verbose and ambiguous natural language instructions with explicit identifier tags (e.g., <human_1>, <obj_1>). Combined with a novel real-image data curation pipeline, it significantly improves attribute-subject association and identity consistency while dramatically reducing prompt length.

What Problem Does This Paper Address?

Multi-reference image generation aims to blend elements from multiple source images—such as a specific person's face, a particular outfit, and a distinct background—into a single, coherent scene based on text instructions.

However, as the number of reference images grows, standard natural language prompts become incredibly verbose and ambiguous (e.g., "the man from image 1 wearing the green shirt from image 2 sitting next to the woman from image 3..."). This complexity often causes models to suffer from "semantic misalignment," where they mix up attributes between subjects or fail to preserve fine-grained details like facial identity. Furthermore, existing training datasets rely heavily on fully synthetic images generated by proprietary models, which lack realistic human-environment interactions and diverse spatial layouts.

Methods

To resolve these ambiguities, the authors propose StructGen, which introduces three core components:

  1. Structured Context Modeling: Instead of naively concatenating all reference images followed by a long text prompt, StructGen organizes inputs into a structured reference dictionary. Each reference image is tokenized and mapped to a unique identifier key (e.g., Dref = { <human_1>: image_tokens, <obj_1>: clothing_tokens }). The text prompt then uses these keys directly as placeholders (e.g., "<human_1> sits on a chair wearing <obj_1>"), acting as an explicit pointer that eliminates language ambiguity.
  2. Structured Data Curation Pipeline: To train the model without inheriting synthetic model biases, the authors build a pipeline that extracts structured fields from real-world images. A Vision-Language Model (VLM) generates structured JSON captions identifying humans, their belongings, and the background scene. Generative editing models then isolate these components onto neutral backgrounds while slightly perturbing poses to prevent the model from learning a simple "copy-paste" shortcut.
  3. Structured Tuning: The model is fine-tuned on top of a unified multimodal model backbone (BAGEL-MICo). During training, a mixed-sampling strategy randomly presents references as either images or detailed text descriptions, making the framework robust to hybrid inputs.
Figure 1: Qualitative comparison on a challenging example with multiple references. Through structured context modeling, StructGen enables concise and unambiguous intent specification (only 64 tokens), accurate attribute–subject association (correctly generating the clothing and glasses), and strong consistency with references (facial identity and background scene).

Datasets

  • Training Dataset: The authors curated a new high-quality dataset consisting of 15,965 samples derived from real-world images, featuring a wider distribution and higher average number of reference images per sample than previous datasets.
  • Evaluation Benchmarks:
  • OmniContext: A public multi-reference benchmark (using its human-centric subsets).
  • StructGen Bench: A newly introduced, highly challenging benchmark containing 400 cases across 8 distinct subsets designed to evaluate single/multi-human scenarios, outfit conditioning, and background scene integration.

Key Insights and Ideas

  • The "Pointer" Intuition: When humans give complex visual instructions, they naturally point at references. Replicating this via dictionary-like key-value pairs simplifies the model's task from implicit semantic reasoning to explicit token searching.
  • Deconstruction over Synthesis: Instead of generating training targets from scratch using LLMs (which limits layout complexity), starting with complex real images and deconstructing them into references preserves rich, natural human-environment interactions.
  • Modality Decoupling: Because the framework treats references as dictionary values, it can seamlessly swap an image token for a text token. This enables a unique text-to-image generation workflow where individual entity descriptions are decoupled from the global layout specification.

Key Results

  • Prompt Efficiency: StructGen drastically reduces prompt token overhead. In complex multi-reference scenarios, it compressed user input from 101 tokens of verbose natural language down to just 64 structured tokens.
  • Quantitative Superiority: On the OmniContext benchmark, StructGen achieved an average Facial ID consistency score of 0.50, outperforming the second-best model (BAGEL-MICo at 0.40) by 25%. On the Multi-Human subset, this identity preservation gap widened to over 43%.
  • Robustness to Complexity: On the challenging Multi Human + Scene subset of StructGen Bench, baselines like Echo-4o and BAGEL failed to produce semantically correct compositions (scoring 5.50 and 4.52 in prompt following, respectively), while StructGen maintained a robust score of 6.80.

Limitations and Future Work

The authors note that this work represents a preliminary exploration of structured context modeling and is currently limited in two ways:

  • Domain Scope: The data curation and evaluation focus primarily on human-centric scenarios (faces, clothes, handheld objects).
  • Dataset Scale: The fine-tuning dataset is relatively small-scale (~16k samples).

Future work will focus on scaling this framework to broader reference categories (beyond humans and clothing) and extending it to more general, universal multimodal generation tasks.

Summary updated

BibTeX
@misc{peng2026structgen,
  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},
  title = {{StructGen: Disambiguating Multi-Reference Image Generation via Structured Context Modeling}},
  year = {2026},
  eprint = {2607.15619},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.15619},
}
Figure