NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Co-occurrence based texture synthesis

Anna Darzi, Itai Lang, Ashutosh Taklikar, Hadar Averbuch-Elor, Shai Avidan

TL;DR

This paper introduces a novel approach to texture synthesis that leverages co-occurrence statistics for intuitive and controllable image generation. By conditioning a Generative Adversarial Network (GAN) on these statistics, the authors achieve high-fidelity, diverse, and locally controllable textures, offering a more interpretable alternative to traditional GANs.

What Problem Does This Paper Address?

Generating realistic and controllable textures has been a long-standing challenge in computer vision. While deep learning models like GANs have shown remarkable success in image synthesis, they often suffer from a lack of interpretability and fine-grained control over the generated output. Users struggle to understand what specific latent space manipulations correspond to desired visual changes, making it difficult to edit or guide the generation process. Existing methods often focus on global texture properties or entangled latent spaces, leaving a gap for methods that offer intuitive, local control over texture appearance.

Methods

The core of this work is a fully convolutional conditional GAN (cGAN) that is conditioned on local co-occurrence statistics.

  • Co-occurrence Statistics: Instead of relying on complex latent spaces, the authors use co-occurrence matrices to represent local texture properties. These matrices capture the joint probability of pixel value pairs co-occurring within a local neighborhood. To handle the high dimensionality of RGB values, they first quantize the color space into $k$ clusters, resulting in a $k \times k$ co-occurrence matrix.
  • Co-occurrence Tensor: For a given image crop, co-occurrence matrices are computed for each pixel and then stacked into a co-occurrence volume. This volume is downsampled to create a co-occurrence tensor, which serves as the conditioning input to the GAN. This tensor effectively encodes local texture appearance across spatial locations.
  • Differentiable Co-occurrence Loss: To ensure the generated textures adhere to the provided co-occurrence statistics, the authors introduce a novel differentiable co-occurrence loss. This loss penalizes inconsistencies between the co-occurrence statistics of the generated texture and the input condition, enabling end-to-end training.
  • Fully Convolutional Architecture: The use of a fully convolutional architecture for both the generator and discriminator allows for the synthesis of arbitrarily large textures, overcoming the fixed output size limitations of many GANs.

Datasets

The paper mentions using textures from:

  • The Describable Textures Dataset (DTD) [Cimpoi et al. 2014].
  • Textures from the work of Bellini et al. [Bellini et al. 2016].
  • Several other texture images found online.

No new benchmarks were introduced.

Key Insights and Ideas

  • Co-occurrence as an Interpretable Latent Space: The paper demonstrates that co-occurrence statistics can serve as a meaningful and interpretable "latent space" for texture synthesis, offering direct control over local visual properties.
  • Bridging Traditional Statistics and Deep Learning: By integrating traditional co-occurrence statistics into a modern deep learning framework (cGANs), the authors create a powerful synergy that leverages the strengths of both approaches.
  • Local Control is Achievable and Beneficial: The success of conditioning on local co-occurrence tensors highlights that fine-grained, local control over texture generation is not only possible but also leads to more desirable and controllable results.
  • Stability through Conditioning: The stability of the generated textures over multiple iterations is attributed to the strong conditioning provided by the co-occurrence statistics, preventing the drift seen in some other methods.

Key Results

  • High Fidelity and Diversity: The method generates textures that are visually similar to the input exemplars (fidelity) while also producing a wide range of variations (diversity), especially when compared to unconditional GANs like PSGAN.
  • Stable Texture Generation: The generated textures remain stable over multiple iterations of re-generating from their own co-occurrence statistics, unlike methods that can degrade over time.
  • Intuitive Editing: A user study showed that participants could reasonably understand how edits to co-occurrence matrices affected the generated textures, suggesting the interpretability of the approach.
  • Smooth Interpolation: Interpolating between co-occurrence tensors results in smooth transitions between different texture characteristics, indicating a well-learned texture manifold.
  • Large Scale Synthesis: The fully convolutional nature allows for the generation of large, coherent textures without noticeable tiling artifacts.

Limitations and Future Work

  • Scale Limitation: The method struggles with texture elements that are larger than the crop size used for co-occurrence computation (128x128 pixels).
  • Global Structure: Textures characterized by strong global structure are not well-captured.
  • Future Work: The authors suggest exploring other applications of their framework, such as interactive texture editing, dynamic texture morphing, and controllable textures. They also express interest in integrating other powerful traditional tools into neural networks for various fields.

Summary updated

BibTeX
@inproceedings{darzi2020co,
  author = {Anna Darzi and Itai Lang and Ashutosh Taklikar and Hadar Averbuch-Elor and Shai Avidan},
  title = {{Co-occurrence based texture synthesis}},
  booktitle = {Comput. Vis. Media},
  year = {2020},
  doi = {10.1007/s41095-021-0243-7},
}
Figure