TL;DR
Generating a sequence of images with consistent characters and backgrounds is crucial for applications like visual storytelling and virtual character design. This paper introduces CharaConsist, a novel training-free method that achieves fine-grained consistency by employing point-tracking attention and adaptive token merging, overcoming limitations of previous approaches that struggled with background details and character variations.
What Problem Does This Paper Address?
Text-to-image (T2I) generation has seen remarkable advancements, but creating a series of images that maintain character identity, clothing, and background details across different shots remains a significant challenge. Existing "training-free" methods, while avoiding the need for extensive retraining, often fall short in several ways:
- Inconsistent Backgrounds: They struggle to preserve static background details, leading to flickering artifacts in video applications or a lack of coherence in visual narratives.
- Foreground-Background Trade-off: When characters change actions or positions, these methods either produce a "copy-paste" effect (lacking action variation) or introduce inconsistencies in character identity and clothing.
- Limited to Older Architectures: Many prior methods are designed for UNet-based diffusion models (like SDXL) and are not easily adaptable to newer, more powerful Diffusion Transformers (DiTs), which are becoming the standard for high-quality generation.
This paper aims to bridge this gap by enabling fine-grained consistency for both foreground characters and backgrounds, even across different scenes and resolutions, using the latest DiT architectures.
Methods
CharaConsist introduces several key innovations to achieve fine-grained consistency:
- Point-Tracking Attention: This module addresses the "locality bias" observed in standard inter-image attention, where models tend to focus on spatially close regions rather than semantically related ones. It establishes semantic correspondences between points in a frame image and an identity image, then re-encodes positional embeddings to guide attention. This allows the model to track critical features across images, even with significant motion or positional shifts.
- Adaptive Token Merge: To mitigate potential disruptions in local geometric structure caused by positional re-encoding, this technique adaptively interpolates attention outputs from the frame and identity images. It uses similarity scores derived from point matching to weigh the contributions, ensuring that tokens with low matching confidence have less impact.
- Decoupled Foreground-Background Control: CharaConsist utilizes a mask extraction strategy based on comparing attention weights to foreground and background text tokens. This allows for independent control over foreground and background consistency, offering flexibility for different application needs (e.g., keeping the background the same or switching it).
- DiT Architecture Compatibility: The method is designed to work with DiT models (specifically FLUX.1), leveraging their advanced capabilities without requiring architectural modifications to the base model.
Datasets
The authors generated custom evaluation prompts using GPT-4, structured as "[Environment], [Character], [Action]." They created two evaluation tasks:
- Background Maintaining: Character and environment remain consistent, while actions vary.
- Background Switching: Only the character remains consistent, while the environment and action change.
They also used existing methods like IP-Adapter and PhotoMaker for comparison, which rely on specific identity reference images.
Key Insights and Ideas
- Locality Bias is a Major Hurdle: The paper convincingly demonstrates that standard attention mechanisms in diffusion models exhibit a "locality bias," hindering their ability to maintain consistency when elements move or change positions. This is a fundamental insight into why previous methods struggled.
- Point-Matching is Key to Fine-Grained Control: By explicitly identifying semantically corresponding points between images, CharaConsist can precisely guide the generation process, enabling fine-grained control over character and background details.
- DiT Models Need Specialized Consistency Methods: The paper highlights that UNet-specific techniques for consistency are not directly transferable to DiTs, necessitating new approaches like CharaConsist.
- Training-Free Doesn't Mean Less Effective: CharaConsist proves that training-free methods can achieve state-of-the-art consistency, making advanced generation accessible without extensive computational resources.
Key Results
- Superior Consistency: CharaConsist significantly outperforms previous training-free methods (StoryDiffusion, ConsiStory) and even identity-reference methods (IP-Adapter, PhotoMaker) in maintaining foreground and background consistency, as measured by CLIP-I-fg and CLIP-I-bg scores.
- Effective Identity Preservation: While not its primary training target, CharaConsist shows competitive ID Sim scores, demonstrating its ability to preserve character identity.
- Robustness to Action Variations: The method successfully maintains consistency even when characters undergo significant motion changes.
- Qualitative Improvements: Visual comparisons (Figure 5) show CharaConsist producing more coherent and consistent sequences, avoiding the "copy-paste" artifacts and background inconsistencies seen in competing methods.
Limitations and Future Work
- No Input Identity Reference: CharaConsist is a training-free method for consistent generation, not identity-reference generation. It cannot take an input identity image as a direct reference.
- Future Direction: The authors suggest combining CharaConsist with identity-reference models. This hybrid approach could leverage the identity preservation of trained models while benefiting from CharaConsist's strengths in consistent backgrounds and clothing details, offering a more comprehensive solution.
Summary updated