Introduction
Diffusion models have revolutionized image editing, yet textures—stochastic, global patterns like wood grain or stone—remain a significant challenge. Traditional methods often rely on cross-attention maps to maintain image structure, a technique that excels for discrete objects but falters with textures. TexSliders introduces a zero-shot method for editing textures by shifting the focus from spatial maps to the CLIP image embedding space. This approach enables the creation of semantic "sliders" for attributes such as "mossiness" or "stone size" while strictly preserving the texture's original identity.
The Texture Editing Challenge
In object-centric editing, a "dog" can be transformed into a "cat" by anchoring the new pixels to the original's spatial attention map. Textures, however, lack a single anchor point. Cross-attention maps for textures are typically noisy and uninformative. Consequently, existing state-of-the-art methods like Prompt-to-Prompt or SDEdit often struggle: they either fail to implement the requested change or completely overwrite the original texture's unique pattern (e.g., the specific arrangement of cracks in a piece of wood).
Methodology: Editing in CLIP Space
The core innovation of TexSliders is moving the editing process into the CLIP image embedding space, which contains richer descriptive "identity" information than sparse text embeddings.
The Diffusion Prior and Slider Computation
The system utilizes a pre-trained diffusion prior to map text prompts (e.g., "small stones") to clusters of CLIP image embeddings. To create a semantic slider, the authors sample 150 embeddings for both the source and target prompts and calculate the average direction vector between these clusters.
Dimension Pruning: Disentangling Identity
To ensure the edit does not alter the underlying identity of the texture, TexSliders employs Dimension Pruning. Not all 768 dimensions in a CLIP embedding are relevant to a specific edit. The system automatically identifies and prunes dimensions where the variance within a cluster (noise) is high relative to the distance between clusters (signal). This process isolates the semantic change from the texture's inherent visual characteristics. The input texture's embedding is then shifted along this pruned vector and fed into a latent diffusion model for generation.
Results and Evaluation
TexSliders was evaluated against a new dataset of 80 texture pairs, including both diffusion-generated and real-world photographs across materials like fabric, metal, and wood.
Quantitative Performance
The method significantly outperformed baselines such as SDEdit, Prompt-to-Prompt (P2P), and Pix2pix-zero. In terms of CLIP-Direction (adherence to the prompt), TexSliders achieved a score of 0.1063, compared to P2P's 0.0880. It also demonstrated superior CLIP-Im2Im scores, indicating better preservation of the original texture's identity.
Qualitative Success and Scale Invariance
Qualitatively, TexSliders produces cleaner, more integrated results. For instance, when adding moss to bricks, the model places the moss within existing crevices rather than creating a generic green overlay. Notably, TexSliders is the first diffusion-based method capable of successful scale edits (e.g., increasing stone size) without introducing visual artifacts, as it does not rely on rigid spatial pixel preservation.
Conclusion and Future Work
TexSliders offers a robust, efficient solution for texture editing, with custom sliders taking approximately two minutes to generate on an A10G GPU. While the method is currently limited by CLIP's inherent biases (e.g., better understanding of vertical vs. horizontal patterns) and is restricted to RGB textures, it paves the way for future applications in professional 3D rendering pipelines, such as editing full PBR material maps (normals, roughness, and metallic).
Summary updated