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

Deep Image Set Hashing

Jie Feng, Svebor Karaman, Shih-Fu Chang · DOI

TL;DR

This paper introduces a novel end-to-end deep neural network for "set hashing," which learns a compact binary representation for an entire image set, enabling efficient large-scale matching. Unlike previous methods that process images individually or rely on complex set models, this approach unifies feature extraction, set aggregation, and hashing into a single trainable model, achieving competitive performance with significantly reduced complexity.

What Problem Does This Paper Address?

The paper tackles the challenge of efficiently matching image sets, which are collections of images representing the same object, person, or event. While image sets offer richer information than single images, traditional methods for set matching often involve complex probabilistic models or subspace representations. These methods are computationally expensive and produce large models, making them unsuitable for large-scale retrieval scenarios. Existing learning-based hashing methods, on the other hand, typically encode individual images and discard the valuable information that multiple images within a set belong to the same entity. The core problem is to develop a method that can effectively represent an entire image set with a compact binary code for fast and scalable matching, while still leveraging the information from all images in the set.

Methods

The authors propose a novel Deep Set Hashing Network composed of three main blocks:

  1. Image Feature Extraction: A shared Convolutional Neural Network (CNN) module processes each image in the set to extract powerful image features. The choice of CNN architecture (e.g., VGG-16, Inception, ResNet) is adaptable to the specific task and dataset.
  2. Set Feature Computation: Features from individual images are aggregated into a unified set representation. This is achieved using two types of complementary set features:
  3. Statistics: These capture the global geometry of the feature distribution within the set, including the mean, variance, minimum, and maximum of the feature dimensions.
  4. VLAD (Vector of Locally Aggregated Descriptors): This feature captures the distribution pattern of set samples relative to a learned global dictionary of concepts, providing a more global context. The final set feature is a concatenation of these statistics and VLAD features.

  5. Set Hashing: The aggregated set feature is fed into a multi-layer perceptron (MLP) with non-linear activations to learn a compact binary hash code for the entire set.

The entire network is trained end-to-end using a triplet loss function. This loss encourages sets from the same class to have similar hash codes (small Hamming distance) and sets from different classes to have dissimilar codes (large Hamming distance). Additional regularization terms are used to encourage binary outputs and balanced code distributions.

Datasets

The paper evaluates its method on several datasets:

  • MNIST and CIFAR10: Standard image datasets used to construct image sets. For training, sets of size 10 were formed by sampling additional images. Query sets of size 30 were also created.
  • Honda/UCSD Dataset: A face dataset with video sequences, used for set matching evaluation.
  • YouTube Celebrity (YTC) Dataset: A larger face dataset with significant variations in illumination, pose, and expression.
  • ETH-80 Dataset: An object dataset with image sets from 8 object categories.

Key Insights and Ideas

  • End-to-End Set Hashing: The most significant contribution is the unified end-to-end framework that jointly learns image features, set aggregation, and hashing. This allows the entire system to be optimized for the specific task of set hashing, rather than relying on pre-trained features or separate modules.
  • Complementary Set Features: Combining statistical features (local set geometry) with VLAD features (global distribution patterns) significantly improves performance, highlighting that different aspects of a set's representation are crucial.
  • Scalability through Compact Codes: By generating a single binary code per set, the method achieves a dramatic reduction in memory footprint and matching complexity compared to traditional set matching methods, making it suitable for large-scale applications.
  • Leveraging Set Size: The performance consistently improves with larger set sizes, demonstrating the model's ability to effectively utilize the richer information available in larger collections of images.
  • Data Augmentation for Small Sets: Augmenting small sets with transformations (cropping, scaling, flipping, color shuffling) helps to create more robust representations and improve performance, especially when training data is limited.

Key Results

  • Superior to Single Image Hashing: On MNIST and CIFAR10, the proposed set hashing method significantly outperforms various single image hashing techniques, achieving a Mean Average Precision (MAP) of 0.99 on MNIST and 0.81 on CIFAR10, indicating the effectiveness of leveraging set information.
  • Competitive with State-of-the-Art Set Matching: The method achieves comparable classification accuracy to state-of-the-art set matching algorithms on face and object datasets (e.g., 100% on Honda/UCSD, 75.03% on YTC, 97.23% on ETH-80), but with a much smaller memory footprint and faster matching.
  • Scalability: The binary representation enables efficient matching, with complexity that does not grow linearly with the database size, a key advantage for large-scale retrieval.
  • Set Size Impact: Performance increases with set size, with a plateau around 50 samples for the CIFAR10 dataset.
  • Feature Combination: Combining statistical and VLAD set features yields the best results (MAP of 0.797 on CIFAR10), outperforming individual features.

Limitations and Future Work

  • Data Augmentation Effectiveness: While augmentation helps, the paper notes that the MAP achieved by augmenting small sets is similar to using larger sets without augmentation, suggesting that augmentation might not fully compensate for the lack of inherent data diversity.
  • Set Size Threshold: The paper mentions that the specific threshold for deciding when data augmentation is needed is not critical, implying that more data is generally better.
  • Future Work: The authors suggest dedicating future efforts to designing network architectures that can learn set features and domain-specific set data generation. This could involve exploring more sophisticated aggregation mechanisms or generative models for creating relevant training data.

Summary updated

BibTeX
@inproceedings{feng2016deep,
  author = {Jie Feng and Svebor Karaman and Shih-Fu Chang},
  title = {{Deep Image Set Hashing}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2016},
  doi = {10.1109/wacv.2017.143},
}
Figure