Abstract
Generating consistent subjects across multiple images is a cornerstone of visual storytelling, yet existing methods often struggle with a fundamental trade-off: maintaining identity consistency frequently results in a loss of pose and layout diversity. This paper introduces CoDi (Subject-Consistent and Pose-Diverse), a training-free framework designed to generate consistent subjects across multiple scenes without sacrificing the natural movement of the character. By utilizing Optimal Transport in early diffusion steps and selective cross-attention in later stages, CoDi effectively decouples identity from spatial structure, achieving state-of-the-art performance in both consistency and diversity.
Introduction
Subject-Consistent Generation (SCG) aims to produce a series of images where a specific subject maintains a stable identity across different contexts and actions. This is essential for applications like comic book creation, storyboarding, and consistent character design. Current approaches generally fall into two categories: training-based methods (e.g., DreamBooth, LoRA) and training-free methods (e.g., ConsiStory, StoryDiffusion).
While training-based methods are effective, they require computationally expensive fine-tuning for every new subject. Training-free methods offer a more efficient alternative by sharing attention keys and values across generated images. However, this sharing mechanism often leads to "pose entanglement," where the model inadvertently forces all images to share the same spatial layout and posture. CoDi addresses this limitation by introducing a two-stage intervention that respects the natural progression of diffusion models.
Methodology
CoDi is built on the observation that diffusion models generate image content hierarchically: coarse structures like pose and layout emerge in early denoising steps, while fine-grained details and textures are refined in later steps. CoDi intervenes in two distinct phases:
Stage 1: Identity Transport (IT)
In the initial denoising steps (approximately the first 20%), CoDi employs Identity Transport (IT). Instead of the standard attention-sharing mechanism that forces spatial alignment, CoDi uses Optimal Transport (OT) to map features from a reference image to target images. This process treats visual features as a set of "pieces" to be rearranged. By calculating the optimal cost to move identity features from the reference to the target's specific pose, CoDi ensures the target image inherits the correct identity without being forced into the reference image's pose. This effectively decouples identity from spatial structure.
Stage 2: Identity Refinement (IR)
Once the coarse pose is established, CoDi transitions to Identity Refinement (IR) for the remaining denoising steps. This stage uses a selective cross-image attention mechanism to sharpen fine details. To prevent the poses from collapsing into one another during this refinement, CoDi implements a filtering strategy. The target image is restricted to attending only to the top-$\alpha$ (e.g., 50%) most salient identity features of the reference image, ensuring that the unique layout of the target image remains preserved while the subject's details are finalized.
Experimental Setup
The framework was evaluated using the ConsiStory+ benchmark, which consists of nearly 200 prompt sets designed for subject-consistent generation. These sets include a subject description and multiple frame-specific action prompts (e.g., "a wizard brewing potions" followed by "a wizard studying maps"), totaling over 1,100 generated images for evaluation.
Results and Discussion
CoDi demonstrates a superior balance between consistency and diversity compared to existing state-of-the-art methods.
Quantitative Performance
- Subject Consistency: CoDi achieved a DreamSim distance of 0.2136, outperforming ConsiStory (0.2336). This indicates that CoDi's outputs are perceptually more similar to the reference subject.
- Pose Diversity: CoDi achieved a pose diversity score of 0.0758. This is a significant improvement over ConsiStory (0.0621) and nearly matches the diversity of a vanilla SDXL model (0.0772), which has no consistency constraints.
Human Evaluation
In user studies measuring consistency, diversity, and prompt fidelity, CoDi was preferred by 45.21% of participants. This preference is more than double that of the nearest competitor, StoryDiffusion (21.20%), highlighting the practical effectiveness of the CoDi framework in generating high-quality, diverse, and consistent visual narratives.
Conclusion and Limitations
CoDi represents a significant advancement in training-free subject-consistent generation by successfully breaking the link between identity and pose. By leveraging Optimal Transport and selective attention, it allows for dynamic storytelling where characters can move freely while remaining recognizable.
However, the method is not without limitations. CoDi relies on the base diffusion model's internal cross-attention maps to generate binary masks for the subject. In cases where the base model fails to accurately segment the subject from the background (estimated at less than 5% of cases), the identity transfer may be imprecise. Future work will focus on making the masking process more robust and exploring the application of CoDi to multi-subject generation and newer DiT-based architectures.
Summary updated