# UniCustom: Unified Visual Conditioning for Multi-reference Image Generation

*Yiyan Xu, Qiulin Wang, Wenjie Wang, Yunyao Mao, Xintao Wang, Pengfei Wan, Kun Gai, Fuli Feng*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155407) · [OpenReview](https://openreview.net/forum?id=5sCkEfsOSE) · [Open on the map](../papers.html#p155407)

Category: [Diffusion & Image Generation](../pcat/5.md) › [Training-Free Diffusion Image Editing](../pgroup/477.md) · Type: new method · Keywords: multi-reference image generation, visual conditioning, early feature fusion, subject consistency, slot-wise regularization

Areas: [Multimodal](../areas/multimodal.md) › Multimodal Creation and Editing › Image Generation; [Model Architectures & Sequence Modeling](../areas/architectures.md) › Vision and Generative Architectures › Unified Multimodal Models; [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Visual Editing and Conditioning › Text-to-Image Conditioning; [Computer Vision & 3D](../areas/computer-vision.md) › Visual Diffusion and Restoration › Image Editing

## Summary
UniCustom introduces a unified visual conditioning framework that fuses ViT and VAE features early, enabling the VLM to jointly encode semantic subjects and appearance details, and improves subject consistency, instruction following, and compositional fidelity in multi-reference image generation.

## Explained to a 5-year-old
We want to draw pictures from words while keeping the faces of several reference pictures unchanged. The usual computer method looks at the meaning of the words and the pictures separately, which makes it mix up the faces. The new idea makes the computer look at both the meaning and the picture details together, so it knows which face belongs to which word. It learns by first trying to copy the reference pictures perfectly, then practicing to draw new pictures based on words. A special rule helps each picture stay separate, so the final drawings keep the right faces and don't get confused.

## Explained to a 5-year-old, longer
When we want to draw a picture, we can tell it what to draw using words. Sometimes we also give it a few pictures of things we want to appear in the drawing. The goal is to make the new picture look like the reference pictures while also following the words. Existing computer programs treat the words and the pictures as two separate things. Because they are separate, the program sometimes mixes up which picture belongs to which word. This leads to the wrong faces or objects appearing in the final picture. The new method joins the meaning from the words and the details from the pictures before the computer understands them. By looking at both at the same time, the computer can better match each reference picture to the right part of the drawing. The system is trained in two steps: first it learns to copy the reference pictures very accurately. Then it learns to create new pictures from words while keeping the reference details. A special rule makes sure each reference picture stays in its own slot, preventing them from getting tangled. As a result, the drawings are more faithful to the original pictures and follow the words better.

## For a technical reader
UniCustom merges visual features from a vision transformer and a variational autoencoder before feeding them to the language model, allowing the model to jointly understand semantics and appearance. It then trains in two stages: first a reconstruction-oriented pretraining that preserves fine-grained reference details, followed by supervised finetuning on single- and multi-reference generation tasks. A slot-wise binding regularization is added to keep each reference’s low-level details separate, reducing cross-reference entanglement. This unified conditioning leads to higher subject consistency, better instruction following, and improved compositional fidelity compared to decoupled baselines.

## Problem
Multi-reference image generation models struggle to correctly associate each textual subject with its corresponding reference image, leading to identity leakage and cross-reference confusion.

## Method
The approach fuses ViT and VAE features early, feeding them together to the VLM so its hidden states encode both semantics and appearance. It then uses a two-stage training: first a reconstruction-oriented pretraining to preserve reference details, followed by supervised finetuning on single- and multi-reference tasks, and adds a slot-wise binding regularization to reduce cross-reference entanglement.

## Results
The approach shows consistent improvements in subject consistency, instruction following, and compositional fidelity over strong baselines on the evaluated benchmarks.

## Contributions
It introduces a unified visual conditioning framework that fuses semantic and appearance features early, a two-stage training strategy for preserving reference details, and a slot-wise binding regularization to reduce cross-reference entanglement.

## Research questions this paper is counted under

- [How can we preserve a subject's identity while allowing controlled variation in pose, text, or other attributes during generation?](../q/139.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/155407)
