Free-Lunch Color-Texture Disentanglement for Stylized Image Generation

Jiang Qin, Alexandra Gomez-Villa, Senmao Li, Shiqi Yang, Yaxing Wang, Kai Wang, Joost van de Weijer

Introduction

Recent advances in Text-to-Image (T2I) diffusion models have transformed image generation, enabling significant progress in stylized generation using only a few style reference images. However, a major hurdle remains: current diffusion-based methods struggle with fine-grained style customization.

To address this, researchers have introduced SADis (Style Attributes Disentanglement), a new tuning-free method that allows users to independently control the color and texture of AI-generated images. By leveraging a mathematical property called "Image-Prompt Additivity" within CLIP embeddings, SADis enables creators to mix and match the palette of one reference image with the artistic texture of another without any costly model retraining.

The Challenge of Disentangled Style

Current T2I diffusion models, such as Stable Diffusion, are remarkably adept at adopting a "style" from a reference image. Unfortunately, they treat style as a monolithic block. If a user wants the vibrant neon colors of a cyberpunk city but the soft, charcoal texture of a pencil sketch, most models struggle, defaulting to an "all-or-nothing" transfer where color and texture remain entangled.

Style and texture transfer example using the Great Wave reference.

Achieving granular control typically requires extensive, imprecise prompt engineering or fine-tuning models on specific datasets—a slow and computationally expensive process. The authors define this challenge as Disentangled Stylized Image Generation (DisIG): the ability to decompose a reference style into independently controllable attributes like color, texture, and semantic content.

Methods: A "Free-Lunch" Approach

SADis is a training-free approach built on top of the SDXL architecture and IP-Adapter. Its core logic rests on two main pillars designed to isolate and apply specific style attributes.

1. Color-Texture Extraction (CTE)

  • Image-Prompt Additivity: The authors discovered that CLIP image embeddings behave linearly, much like word embeddings (e.g., "King - Man + Woman = Queen"). By subtracting the embedding of a grayscale version of an image from its original color version, they can effectively isolate a "color-only" vector.
  • Texture via SVD: To isolate texture, the researchers use Singular Value Decomposition (SVD) on grayscale versions of the reference images. By reweighting the singular values, they suppress the "gray tone" information while preserving the structural, high-frequency patterns that define texture.
Extracted color palette reference.

2. Regularized Whitening and Coloring Transformation (RegWCT)

Standard Whitening and Coloring Transforms (WCT) are excellent for matching color distributions but often "wash out" fine texture details. SADis introduces a noise regularization term during this transformation. This preserves textural fidelity while ensuring the final image's color palette aligns perfectly with the reference.

These disentangled embeddings are then injected specifically into the first cross-attention layer of the diffusion model's decoder. This strategic choice prevents "semantic leakage," ensuring the model does not accidentally copy objects from the style image instead of just the style.

Key Insights

  • The Linear Nature of CLIP: The discovery that the CLIP image space is additive is a massive efficiency gain. Performing "vector math" on images to strip away color or texture without retraining the encoder allows for true "free-lunch" disentanglement.
  • Layer Specificity Matters: Not all layers in a neural network process information identically. By targeting only the early decoder layers for style injection, SADis successfully separates "how it looks" (style) from "what it is" (content).
  • Texture is More Than Grayscale: Simply turning an image black and white isn't enough to isolate texture for a generative model. Using SVD to reweight features demonstrates that "texture" in AI terms is a specific mathematical subset of structural data.

Results and Performance

The authors evaluated SADis using the WikiArt and StyleDrop datasets, generating 4,000 stylized images to compare against state-of-the-art (SOTA) baselines like DEADiff and InstantStyle.

SADis consistently outperformed these baselines in both quantitative metrics and human preference:

  • Color Accuracy: SADis achieved significantly lower scores in color distance metrics (MS-SWD and C-Hist), meaning the generated colors were a much closer match to the reference.
  • Texture Quality: It maintained high texture similarity (CLIP-I) without sacrificing the original text prompt's meaning.
  • User Preference: In a study with 24 participants, SADis was preferred by a wide margin for its ability to balance color and texture alignment (scoring 37.84% vs. the next best at 14.55%).
  • Efficiency: Because it is tuning-free, SADis generates images in roughly 10 seconds on a standard GPU, making it highly practical for real-time creative workflows.

Limitations and Future Work

While SADis represents a major step forward for DisIG, the authors note a few areas for future improvement. When applying very aggressive styles, the model can sometimes lose the fine details of the original content image. Additionally, the current method applies color palettes globally; future iterations could involve masking techniques to apply different colors or textures to specific localized objects. Finally, the authors aim to explore how to maintain the "identity" of a subject more robustly while undergoing radical style transformations.

Summary updated

BibTeX
@inproceedings{qin2025free,
  author = {Jiang Qin and Alexandra Gomez-Villa and Senmao Li and Shiqi Yang and Yaxing Wang and Kai Wang and Joost van de Weijer},
  title = {{Free-Lunch Color-Texture Disentanglement for Stylized Image Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=e0ltwNcoIp},
}
Figure