Abstract
While Text-to-Image (T2I) diffusion models have achieved remarkable success in generating high-quality imagery, precise control over global color schemes remains a significant challenge. Traditional text-based prompting is often too imprecise for professional design workflows, struggling with numerical color values and global consistency. This paper introduces a novel framework that utilizes color palettes as a distinct guidance modality. By leveraging specialized palette representation models and a dual-branch conditioning architecture, the proposed method achieves superior color alignment and aesthetic harmony compared to existing text-only or standard control-based approaches.
Introduction
Text-to-Image (T2I) models have become powerful tools for creative expression, yet they offer surprisingly blunt instruments for color control. Users typically rely on linguistic terms like "lavender" or "vibrant orange," which are inherently imprecise and often fail to capture the specific aesthetic vision required by professional designers.
Existing models struggle with two primary issues. First is Global Inconsistency, where a model might correctly color a primary object but "hallucinate" inconsistent or clashing colors for backgrounds and minor elements. Second is the "CLIP Gap": the CLIP text encoders used in most diffusion models are not designed to interpret raw numerical data like RGB or Hex values. Consequently, including specific color codes in a prompt usually results in poor alignment or ignored instructions.
Methodology
To address these limitations, the authors propose a palette-guided image colorization framework. This system treats the grayscale image, text prompt, and color palette as three separate conditioning inputs, allowing for granular control over both structure and style.
Palette Representation Models
The core innovation lies in converting a palette into a "language" the diffusion model can interpret. The researchers extended a "Masked Color Model" approach, where colors are discretized into bins within the CIELAB color space. They explored three distinct variants:
- Palette-only: Learns the intrinsic relationships and aesthetic harmony between colors.
- Text-palette: Conditions the palette on text (e.g., the word "Christmas" helps the model understand the relationship between specific shades of red and green).
- Image-palette: Extracts color style directly from a reference image to guide the generation process.
Conditioning Architecture
The architecture utilizes a dual-pathway approach to maintain high fidelity to the source material:
- Spatial Control: A ControlNet-inspired branch processes the grayscale image to maintain the structural layout and prevent the loss of detail during colorization.
- Color/Semantic Control: The learned palette embeddings are concatenated with CLIP text embeddings. This unified vector is injected into the U-Net via cross-attention mechanisms. This allows the model to learn "color semantics"—effectively associating specific palette entries with specific objects described in the text (e.g., mapping a specific blue to the "sky").
Datasets and Evaluation
To train and evaluate these models, the authors constructed two specialized datasets: LAION-22k-PTI (22,783 samples) and COCO-Stuff-PTI (~60k samples). Both datasets feature images, text descriptions, and 5-color palettes extracted via K-means clustering. Using t-SNE to map 3D CIELAB values into 2D, the researchers ensured their datasets covered a diverse and balanced range of chromatic distributions.
Key Insights
- Contextualized Palettes: A palette is more than a list of colors; its meaning changes based on context. The Text-palette model outperformed the palette-only version because it grounded colors in human concepts, allowing the model to understand where specific colors should be applied.
- Decoupling Structure and Color: By using a dedicated branch for the grayscale image and cross-attention for the palette, the model avoids "entangling" color with texture or shape, leading to cleaner and more professional colorization.
- Numerical Encoding: The research confirms that treating colors as discrete "tokens" (similar to words in a Large Language Model) is significantly more effective for diffusion models than feeding them raw RGB values.
Results
The researchers conducted both quantitative benchmarks and a user study with 33 professional designers.
- Quantitative: The method significantly outperformed baselines like L-CAD and ControlNet on color-level metrics. Specifically, it achieved much lower DCCW (Dynamic Closest Color Warping) scores, indicating the output colors were perceptually closer to the target palette.
- Qualitative: In the user study, professional designers preferred the palette-guided results over "palette-in-prompt" baselines by a landslide. In reference palette scenarios, the proposed method received a 72.3% preference rate.
- Flexibility: The model demonstrated the ability to generate multiple realistic versions of the same scene just by swapping the input palette, showcasing its utility for rapid iterative design.
Limitations and Future Work
Despite its success, the authors noted instances of color bleeding, where colors occasionally "spill" over object boundaries. They suggest that future work could integrate segmentation models like SAM (Segment Anything Model) to enforce stricter boundaries. Additionally, they identified instruction conflicts—situations where a text prompt (e.g., "red cherry") contradicts a palette (e.g., a blue-dominant palette). Future research will focus on adaptive strategies to dynamically balance these conflicting constraints based on user intent.
Summary updated