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

Texture Synthesis Guided Deep Hashing for Texture Image Retrieval

Ayan Kumar Bhunia, Perla Sai Raj Kishore, Pranay Mukherjee, Abhirup Das, Partha Pratim RoyarXiv 2018 · DOI

TL;DR

This paper introduces a novel deep hashing framework for texture image retrieval that leverages a Texture Synthesis Network (TSN) to learn discriminative features. By training a generative model to "expand" texture patches, the authors force the network to capture essential low-level patterns, which are then converted into efficient binary hash codes for fast, large-scale similarity searches.

What Problem Does This Paper Address?

Image retrieval usually relies on high-level semantic features (e.g., "is this a dog?"). However, texture retrieval is fundamentally different because texture is a low-level visual attribute defined by roughness and repetitive patterns. Traditional deep hashing methods, designed for object recognition, often struggle to capture these nuances.

Furthermore, deep learning requires massive amounts of data, but high-quality texture databases are relatively small. This creates a "data scarcity" bottleneck. The authors aim to bridge this gap by using texture synthesis—the process of generating a larger texture from a small sample—as a proxy task to learn better features and augment their training data.

Methods

The proposed framework operates in two distinct stages:

  1. Texture Synthesis Pre-training: The authors train a GAN-based Texture Synthesis Network (TSN). The generator takes a $128 \times 128$ texture patch and learns to output a $256 \times 256$ version by "injecting" new, consistent content. To ensure high quality, they use a combination of adversarial loss, pixel-wise $L_1$ loss, and a VGG-based style loss.
  2. Feature Extraction and Hashing: Once the TSN is trained, its weights are frozen. The authors argue that the intermediate layers of this generator contain the most "texture-rich" information. They extract multi-scale activation maps from both the encoder and decoder parts of the generator.
Figure 1: A 128 × 128 texture patch is passed as input to the pre-trained generator of the TSN which generates an expanded texture patch of size 256 × 256 as output. The corresponding activation maps of the same size from the encoder and decoder part of the generator are depth-wise concatenated and are passed through a channel-wise attention (CA) module to generate a filtered version of the intermediate features, followed by a 1 × 1 convolution operation. We use separate CA modules for every pair of feature combination between encoder and decoder side of activation maps. The multi-scale features are then combined in a progressive manner using successive downsampling (by strided convolution) and depth-wise concatenation.

To refine these features, the model uses:

  • Channel-wise Attention (CA): This module weighs different feature channels, prioritizing those with discriminative texture information while suppressing noise.
  • Progressive Combination: Multi-scale features are merged through successive downsampling and concatenation to form a final $d$-dimensional vector.
  • Hashing Layer: This vector is mapped to a $k$-bit binary code using a loss function that preserves both pairwise similarities and individual class labels.

Datasets

The model was evaluated on three benchmark texture datasets:

  • MIT-VisTex: 167 unique texture patterns.
  • Salzburg Texture (STex): A larger collection of 476 unique patterns under real-world conditions.
  • Amsterdam Library of Textures (ALOT): 250 patterns with 100 variations each (changes in illumination, viewpoint, etc.), providing significant intra-class variance.

Because VisTex and STex only provide one large image per class, the authors partitioned these images into regions to create distinct training and testing sets.

Key Insights and Ideas

  • Synthesis as a Pretext Task: The core "aha moment" is that for a network to successfully synthesize new texture content, it must internalize the underlying structural logic of the pattern. This makes synthesis an ideal pre-training task for feature extraction.
  • Intermediate Layers are Key: Unlike standard classification networks where the final layers are most useful, the authors found that the "middle" of the generative process holds the most descriptive power for textures.
  • GANs for Data Augmentation: The TSN doesn't just provide features; it generates new, synthetic training samples. This helps the hashing network generalize better, especially on smaller datasets like VisTex.
  • The Importance of Adversarial Loss: Ablation studies showed that without the adversarial (GAN) component, the quality of the learned features—and consequently the retrieval performance—drops significantly.
Figure 2: Images generated by the Texture Synthesis Network. The smaller patches denote the inputs to the Synthesis Network and the remaining columns show results generated by using different combinations of loss functions.

Key Results

The framework, dubbed TSN-DSDH, significantly outperformed existing state-of-the-art hashing methods like DSDH, DPSH, and traditional handcrafted features (LBP).

  • Accuracy: On the STex dataset (32-bit code), the proposed method achieved a Mean Average Precision (MAP) of 0.60, compared to 0.44 for the standard DSDH baseline.
  • Efficiency: Retrieval is extremely fast, with average query times ranging from 1.04ms to 2.81ms across the different datasets.
  • Robustness: The precision-recall curves (Figure 3) demonstrate that the method maintains high precision even as recall increases, indicating a very reliable retrieval process.
Table 1: MAP values of different methods using top-500 retrieved images.

Limitations and Future Work

While the results are impressive, the paper notes a few areas for further exploration:

  • Meta-Framework Nature: The authors point out that their generative guidance can be paired with any deep hashing objective, suggesting that future improvements in hashing loss functions could further boost their results.
  • Computational Overhead: Training a GAN for synthesis is computationally more expensive than standard supervised pre-training.
  • Generalization: The authors suggest that the idea of using generative networks to guide feature extraction could be extended beyond textures to other challenging image retrieval domains where data is scarce or features are low-level.

Summary updated

BibTeX
@misc{bhunia2018texture,
  author = {Ayan Kumar Bhunia and Perla Sai Raj Kishore and Pranay Mukherjee and Abhirup Das and Partha Pratim Roy},
  title = {{Texture Synthesis Guided Deep Hashing for Texture Image Retrieval}},
  year = {2018},
  eprint = {1811.01401},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.01401},
}
Figure