TL;DR
UniCustom introduces a unified visual conditioning framework for multi-reference image generation, addressing the "grounding-binding gap" where models confuse which attributes belong to which reference image. By fusing semantic ViT features and appearance-rich VAE features before they enter the Vision-Language Model (VLM), UniCustom enables explicit semantic-visual correspondences. This simple architectural shift, paired with a slot-wise regularization technique, significantly boosts subject consistency and instruction-following performance across complex multi-image synthesis tasks.
What Problem Does This Paper Address?
Imagine asking an AI to generate an image where "the woman from Picture 1 wears the hat from Picture 2 while walking the dog from Picture 3." In complex multi-reference image generation, current state-of-the-art models often suffer from attribute leakage or identity confusion—the woman might end up wearing the dog's collar as a necklace, or the hat's texture might bleed into the background.
Existing VLM-enhanced diffusion models typically use a decoupled visual conditioning design. They feed high-level semantic features (from a ViT) into the VLM to understand the text prompt and ground the subjects. Meanwhile, low-level, detail-rich features (from a VAE) bypass the VLM and are injected directly into the Diffusion Transformer (DiT) later on.
The authors identify this as a fundamental grounding–binding gap (illustrated in Figure 1). Because the VLM never sees the low-level details, its hidden states can't map them precisely to the text. The DiT is left to blindly guess how to bind the late-injected VAE details to the VLM's semantic tokens, which frequently fails when multiple reference images are involved.
Methods
UniCustom bridges this gap with a surprisingly lightweight modification: Early Fusion.
- Unified Visual Representation: Instead of keeping ViT and VAE features separate, UniCustom spatially aligns and concatenates them along the channel dimension for each reference image. A single linear fusion layer projects them back to the original ViT dimension before they enter the VLM. To prevent breaking the pretrained VLM at initialization, the authors use an identity-preserving initialization where the VAE weights start at zero.
- Two-Stage Training Strategy:
- Stage 1 (Pretraining): The VLM is frozen, and the fusion layer + DiT are trained on reconstruction-oriented tasks (like multi-image tiling and localization). This teaches the VLM hidden states to act as a conduit for low-level details.
- Stage 2 (Supervised Fine-Tuning): The model is trained on actual single- and multi-reference image generation tasks to master instruction-following synthesis.
- Slot-wise Binding Regularization: Modern autoregressive VLMs use causal attention, meaning tokens aggregate information from preceding tokens. When multiple reference images are serialized in a prompt, their features can easily entangle. To combat this, the authors introduce an auxiliary loss ($\mathcal{L}_{bind}$) during pretraining. It forces the hidden states of a specific image "slot" to remain decodable back into its original VAE latent space, ensuring details stay localized.
Datasets
- Pretraining: Curated from open-source pools including HQ-50K, MultiID-2M, HumanArt, FFHQ, and Unsplash. Multi-image localization data was adapted from COCO2017, and multi-image understanding tasks used Honey-Data-15M.
- Fine-Tuning: Sourced from Echo-4o-Image, Nano-Consistent-150K, MICo-150K, and an internal dataset, alongside auxiliary datasets like Pico-Banana-400K and ImgEdit.
- Evaluation Benchmarks: The model was evaluated on OmniContext (testing character/object consistency across single/multiple/scene settings) and MICo-Bench (testing human-object interactions and decomposition/recomposition).
Key Insights and Ideas
- The Power of Early Fusion: Making fine-grained appearance details semantically addressable by the VLM completely changes how the downstream diffusion model operates. Instead of guessing bindings implicitly, the DiT can exploit explicit semantic-visual correspondences.
- Causal Attention is a Double-Edged Sword: While causal attention helps the VLM understand context, it actively harms multi-image separation by mixing up reference features. The slot-wise binding regularization acts as a vital guardrail, forcing the model to establish structured slot-image correspondences before optimizing for image generation.
- Frozen VLMs as Conduits: The paper proves that a completely frozen VLM can successfully transmit low-level VAE details to a diffusion backbone without losing its original multimodal understanding capabilities.
Key Results
UniCustom established a new state-of-the-art among open-source models on both major benchmarks:
- OmniContext: Achieved an average score of 7.84, outperforming strong baselines like OmniGen2 (7.60) and LongCat-Image-Edit (7.26). It showed particularly massive gains in complex "Scene" and "Multiple" reference categories.
- MICo-Bench: Achieved an overall score of 41.71, drastically outperforming LongCat-Image-Edit (22.78) and BAGEL (31.62).
Qualitatively, internal attention maps show that the DiT precisely attends to the correct reference images when generating specific target components (e.g., matching a shirt's texture or a person's identity accurately without bleeding attributes).
Limitations and Future Work
Despite setting a new open-source benchmark, UniCustom still lags behind top-tier closed-source commercial models (like GPT-Image-2) in photorealistic human identity preservation and fine-grained scene consistency.
The authors note three main areas for future work:
- Fusion Complexity: The current linear layer is simple; more advanced hierarchical or adaptive fusion mechanisms could better balance semantics and spatial consistency.
- Resolution Bottleneck: The model was trained at $\le 512 \times 512$ resolution, which limits its ability to preserve tiny text, logos, or intricate facial textures.
- Generality: Because it is heavily optimized for reference-based generation, its performance on broader auxiliary tasks like complex scientific/mathematical multimodal reasoning remains moderate.
Summary updated