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

Compact Deep Aggregation for Set Retrieval

Yujie Zhong, Relja Arandjelovic, Andrew Zisserman · OpenReview

TL;DR

This paper introduces SetNet, a novel CNN architecture that learns to aggregate individual face descriptors into a single, compact representation for efficient set retrieval. This approach significantly speeds up retrieval in large image datasets while maintaining high accuracy, even when searching for multiple identities simultaneously.

What Problem Does This Paper Address?

The core challenge addressed is efficient and accurate retrieval of images containing specific sets of elements, particularly multiple faces. Traditional methods often struggle with large-scale datasets due to the computational cost of storing and comparing individual descriptors for every face in every image. Imagine searching for photos of "Alice and Bob" in a massive photo library – you want images with both, then images with just Alice, then just Bob, ranked accordingly. Doing this efficiently for millions of images and potentially many query identities is computationally prohibitive if you have to process every single face descriptor. The authors aim to create a compact representation for an entire set of faces within an image, enabling faster, memory-efficient retrieval.

Methods

The paper proposes SetNet, a CNN architecture designed for set retrieval. It has two main components:

  1. Feature Extraction: A modified ResNet-50 or SENet-50 backbone extracts individual face descriptors (vectors) for each detected face in an image. These descriptors are intentionally kept at a lower dimensionality (e.g., 128 or 256) to reduce memory footprint.
  2. Feature Aggregation: A modified NetVLAD layer (an adaptation of the NetVLAD layer used for image retrieval) aggregates these individual face descriptors into a single, fixed-length set descriptor for the entire image. This aggregation is trained end-to-end to minimize interference between descriptors and produce a compact representation.
  3. Scoring and Ranking: At test time, a query face descriptor is computed, and a logistic regression classifier scores each image's set descriptor against the query. The final score for an image is the sum of scores for all query identities, naturally ranking images by how many query identities they contain.

The key novelty lies in training the feature extractor and the aggregator jointly for the specific task of set retrieval, rather than using pre-trained components in isolation.

Datasets

  • VGGFace2 Dataset: Used for pre-training the face feature extraction backbone.
  • Celebrity Together Dataset: A newly collected and annotated dataset specifically designed for this research. It contains approximately 194k images with multiple celebrities (averaging 2.8 faces per image), making it ideal for evaluating set retrieval performance in a realistic scenario. This dataset is publicly released.
  • MS-Celeb-1M Dataset: Used to synthesize additional distractor images for increasing the difficulty of the test set.

Key Insights and Ideas

  • Compact Set Representation is Key: The core idea is that aggregating multiple face descriptors into a single, compact vector per image is feasible and highly beneficial for speed and memory.
  • End-to-End Training for Aggregation: Training the feature extractor and aggregator jointly for set retrieval is crucial. This allows the network to learn descriptors that are not only discriminative for individual faces but also well-suited for aggregation, minimizing information loss.
  • NetVLAD's Adaptability: The NetVLAD layer, originally for image retrieval, proves effective for aggregating descriptors within a set, with minor modifications for set retrieval tasks.
  • Trade-off Between Speed and Accuracy: The paper explicitly explores the speed-accuracy trade-off, showing that SetNet can achieve near-optimal accuracy with significant speedups, especially when combined with re-ranking.
  • Orthogonality Matters: The research suggests that SetNet learns to produce more orthogonal face descriptors, which is beneficial for aggregation and reduces interference.

Key Results

  • Superior Performance: SetNet consistently outperforms various baselines, including those using average pooling for aggregation, by a significant margin across different metrics (nDCG@10 and nDCG@30). For instance, SetNet-2+W (trained on 2-element sets, whitened) achieved a 9.1% and 10.0% improvement over the best baseline (Baseline-2+W) at nDCG@10 and nDCG@30 respectively, even with only one face example per query.
  • Scalability: The performance degrades gracefully as the number of faces per image increases, and SetNet shows better resilience to this degradation compared to baselines.
  • Speedup: SetNet achieves remarkable speedups. Descriptor-per-set retrieval with SetNet is over 35x faster than the slow descriptor-per-element method, and this can be further optimized with query aggregation.
  • Dataset Contribution: The introduction of the "Celebrity Together" dataset provides a valuable benchmark for set retrieval research.

Limitations and Future Work

  • Performance Degradation with More Faces: While SetNet degrades more gracefully than baselines, performance still decreases as the number of faces in a set increases, indicating ongoing challenges with high inter-element interference.
  • Query Aggregation Trade-off: While query aggregation (combining query identity descriptors) offers speed benefits, it leads to a slight drop in accuracy. The authors suggest re-ranking as a way to mitigate this.
  • Future Work: The authors mention that the set retrieval problem has broader applications beyond faces, such as video retrieval (where frames are elements and the set is a video clip). They also suggest exploring more efficient query aggregation methods and further investigating the learned descriptor properties.

Summary updated

BibTeX
@misc{zhong2018compact,
  author = {Yujie Zhong and Relja Arandjelovic and Andrew Zisserman},
  title = {{Compact Deep Aggregation for Set Retrieval}},
  year = {2018},
  eprint = {2003.11794},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.11794},
}
Figure