[Paper Review] Cones 2: Customizable Image Synthesis with Multiple Subjects
Cones 2 introduces a subject-specific residual token embedding and a layout-guided cross-attention mechanism to efficiently synthesize images with multiple user-specified subjects without model retraining, achieving strong performance and scalability.
Synthesizing images with user-specified subjects has received growing attention due to its practical applications. Despite the recent success in single subject customization, existing algorithms suffer from high training cost and low success rate along with increased number of subjects. Towards controllable image synthesis with multiple subjects as the constraints, this work studies how to efficiently represent a particular subject as well as how to appropriately compose different subjects. We find that the text embedding regarding the subject token already serves as a simple yet effective representation that supports arbitrary combinations without any model tuning. Through learning a residual on top of the base embedding, we manage to robustly shift the raw subject to the customized subject given various text conditions. We then propose to employ layout, a very abstract and easy-to-obtain prior, as the spatial guidance for subject arrangement. By rectifying the activations in the cross-attention map, the layout appoints and separates the location of different subjects in the image, significantly alleviating the interference across them. Both qualitative and quantitative experimental results demonstrate our superiority over state-of-the-art alternatives under a variety of settings for multi-subject customization.
Motivation & Objective
- Motivate multi-subject customizable image synthesis in real-world applications.
- Propose an efficient subject representation via residual token embeddings on top of base text embeddings.
- Introduce a layout-based spatial guidance to control subject placement and reduce interference between subjects.
- Develop a training objective that preserves original text embeddings while learning subject-specific residuals.
- Demonstrate scalability to six subjects and competitive or superior performance to state-of-the-art baselines.
Proposed method
- Represent each subject with a residual token embedding Delta_custom that shifts the base embedding to the customized subject.
- Train a subject-specific text encoder with a subject-preservation loss and a text-embedding-preservation regularization to localize the residual shift to the subject token.
- Compute Delta_custom for each subject as the average embedding difference over many captions containing the subject.
- At inference, combine multiple Delta_custom vectors by adding them to the corresponding subject tokens in the input embedding (no model retraining).
- Use a layout prior to guide placement by rectifying cross-attention activations, strengthening the target subject regions and weakening irrelevant regions.
- Edit cross-attention maps during sampling with a layout-guided masking to control subject locations across time steps.
Experimental results
Research questions
- RQ1How can we efficiently represent and combine multiple user-specified subjects without retraining a diffusion model?
- RQ2Can simple residual embeddings on top of base text embeddings support reliable multi-subject customization and composition?
- RQ3Does incorporating a layout prior to guide cross-attention improve subject placement and reduce attribute interference?
- RQ4How does the proposed approach scale to more subjects and handle semantically similar subjects?
- RQ5What is the comparative performance against state-of-the-art baselines on text alignment, image similarity, and efficiency?
Key findings
- The residual token embedding approach enables flexible composition of multiple subjects without retraining the diffusion model.
- Text-embedding-preservation loss localizes the customization to the subject token, enabling robust multi-subject combinations.
- Layout-guided cross-attention rectification improves subject placement and reduces interference between subjects.
- The method outperforms DreamBooth, Custom Diffusion, and Cones across multiple subjects, including up to six subjects in challenging scenarios.
- For single, two, three, and four subjects, the proposed method achieves competitive text and image alignment with far lower storage and training complexity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.