TL;DR
The paper introduces ColorwAI, a framework that leverages latent space disentanglement in GANs and Diffusion models to automate the creation of textile "colorways" (alternate color palettes). By introducing a novel method called ShapleyVec, which uses game-theoretic Shapley values to isolate color-specific latent dimensions, the system generates visually harmonious color variations alongside subtle, context-aware pattern adjustments that mimic human design choices.
What Problem Does This Paper Address?
In textile design, creating "colorways"—alternate color variations of the same underlying pattern—is a critical but time-consuming creative task. Traditional digital tools and standard AI re-colorization methods are rigid: they require pre-determined color palettes and strictly swap pixels without altering the pattern's geometry.
However, human designers know that changing a color palette often requires subtle structural tweaks to maintain visual harmony (e.g., certain shapes look better when elongated in darker tones, or require contrast adjustments). The authors address this gap by framing colorway generation as a generative task with creative controls. Instead of flatly replacing colors, ColorwAI discovers "color directions" in the latent spaces of generative networks, allowing the model to co-optimize both color shifts and minimal, harmonious shape modifications based on historical textile data.
Methods
The authors propose a unified 4-stage pipeline: coupling latent codes with image annotations, latent space disentanglement, latent vector modification, and inference. They test this framework across two distinct architectures: StyleGAN2-ADA (exploring the $W$ space) and Diffusion Denoising Models (DDM) (exploring the $h$-space bottleneck at mixing timestep $t=350$).
To isolate color within these latent spaces, they evaluate three disentanglement methods:
- InterfaceGAN: Uses a linear SVM to find a hyperplane separating images with a target color from those without it. A major downside is that it perturbs all latent dimensions, leading to unwanted entanglements.
- StyleSpace: Focuses only on the dimensions exhibiting the highest variance.
- ShapleyVec (Novel): The authors' primary methodological contribution. It refines InterfaceGAN by calculating Shapley values to measure the marginal contribution of each latent dimension to the color classification. Dimensions that fall below an explanation threshold ($E=0.5$) are masked out (set to 0). A second linear classifier is then trained purely on these filtered, highly salient dimensions, yielding a much cleaner traversal direction.
Datasets
The models were trained on a curated dataset of historical textiles:
- IMET Dataset: 20,000 textile images from the Metropolitan Museum of Art, NY, spanning from the 6th century BC to the 21st century.
- Victoria and Albert Museum Collection: 10,000 additional textile samples.
After filtering out black-and-white images and removing backgrounds using the Segment Anything Model (SAM), the final dataset consisted of 12,918 training, 4,324 validation, and 4,318 testing images. Images were automatically annotated using a data-driven codebook of 19 predominant colors derived via adaptive clustering in CIELab and HSV color spaces.
Key Insights and Ideas
- GANs vs. Diffusion for Editing: StyleGAN and Diffusion models handle color manipulation in fundamentally different ways. Because StyleGAN modifies the latent code prior to decoding, it yields more vivid, organic, and seamless pattern mutations. DDM disentanglement (applied at the mixing step) acts more like a "redirection," keeping the structural skeleton rigid while altering fine details.
- Human Alignment in StyleGAN: The mutual cosine similarities of color vectors within StyleGAN’s $W$ space naturally mirror human color perception. For example, the vectors for beige naturally cluster near yellows and oranges, while blues cluster near greens. DDM's $h$-space representations, conversely, are non-naturalistic and sparse.
- Discovery of "General Color" Neurons: Through ShapleyVec, the authors discovered that certain colors in StyleGAN act as foundational anchors. For instance, a white tone ("Fuji Snow") and an orange tone ("Firebird Tail Lights") share common nodes with almost all other colors, effectively acting as generalized controls for brightness/saturation.
Key Results
- Quantitative Performance: On StyleGAN, the proposed ShapleyVec outperformed the baseline methods, achieving the highest pseudo-accuracy (0.287 vs. 0.243 for InterfaceGAN and 0.20 for StyleSpace), proving that filtering latent dimensions yields more precise color targeting. On DDM, InterfaceGAN maintained a slight edge in relaxed accuracy (0.901).
- Qualitative Expert Evaluation: A survey of four design and textile experts evaluated the outputs using Margaret Boden’s computational creativity axes (novelty, surprise, acceptability, quality). The experts strongly favored the system's acceptability and quality, noting that the AI's subtle shape adjustments felt highly harmonious and structurally appropriate.
Limitations and Future Work
- Historical Bias: Because the models were trained on museum collections, they favor historical aesthetics and muted, nude tones. The expert evaluators noted a desire for more vibrant, contemporary, and abstract pattern generation.
- Incomplete Disentanglement: The system does not achieve perfect color isolation; changing a color still forces minor structural changes. However, the authors argue this technical "flaw" actually enhances the tool's utility as a creative partner for brainstorming.
- Future Directions: The authors suggest testing alternative diffusion manipulation methods that bypass the mixing step (such as Asyrp), integrating evolutionary art algorithms, and expanding the training data to include modern textile designs.
Summary updated