Deep Unsupervised Learning of Visual Similarities.

Artsiom Sanakoyeu, Miguel Ángel Bautista, Björn OmmerarXiv 2018 · DOI · OpenReview

Abstract

Exemplar learning of visual similarities in an unsupervised manner is a problem of paramount importance to Computer Vision. In this context, however, the recent breakthrough in deep learning could not yet unfold its full potential. With only a single positive sample, a great imbalance between one positive and many negatives, and unreliable relationships between most samples, training of Convolutional Neural networks is impaired. In this paper we use weak estimates of local similarities and propose a single optimization problem to extract batches of samples with mutually consistent relations. Conflicting relations are distributed over different batches and similar samples are grouped into compact groups. Learning visual similarities is then framed as a sequence of categorization tasks. The CNN then consolidates transitivity relations within and between groups and learns a single representation for all samples without the need for labels. The proposed unsupervised approach has shown competitive performance on detailed posture analysis and object classification.

Introduction

Similarity learning is a foundational component of computer vision tasks such as image retrieval and pose estimation. While deep learning has revolutionized these fields, it typically relies on massive labeled datasets. Manual annotation is not only expensive but often fails to capture the fine-grained, intra-class variations necessary for precise similarity. Unsupervised learning offers a solution by learning directly from raw data. However, standard approaches like Exemplar-CNN face significant hurdles: extreme data imbalance (one positive vs. millions of negatives), noisy relationships in training batches, and a failure to learn transitive similarities (e.g., if Image A is similar to B and B to C, the network should infer that A is similar to C).

Methodology: Learning via Compact Cliques

The proposed framework addresses these issues by framing unsupervised learning as a sequence of categorization tasks. The pipeline begins with weak similarity estimates using hand-crafted HOG (Histogram of Oriented Gradients) features. These estimates are used to group images into "compact cliques"—small sets where every image is highly similar to others in the group.

Visual similarity comparison: The query image (left) and the average of top-ranked retrievals for different methods. The proposed method captures the pose more accurately than AlexNet or HOG-LDA.

A key innovation is the Batch Optimization stage. Instead of random sampling, the authors solve a global optimization problem to select cliques for each training batch such that cliques within a batch are mutually distant while maintaining high sample coverage. This ensures that the "negative" samples in a batch are truly dissimilar, providing a stable training signal. The CNN is then trained to classify these cliques, forcing it to learn representations that capture shared features within a clique and ignore noise from distant samples. For video data, Local Temporal Pooling (LTP) is employed to capture motion dynamics over short windows.

Experimental Results

The method was evaluated on several benchmarks, including Olympic Sports, UCF Sports, and PASCAL VOC 2007. On the Olympic Sports dataset, the approach achieved a state-of-the-art AUC of 0.84 for posture retrieval, significantly outperforming baselines like HOG-LDA and Shuffle&Learn.

Performance analysis: (a) ROC curves comparing the proposed method against baselines. (b-d) Similarity matrices showing the emergence of clear structures (repetitive motions) as the representation improves.

Beyond retrieval, the learned representations proved highly effective for transfer learning. When used to initialize a supervised "DeepPose" model on the MPII dataset, the method provided a 15% performance boost over random initialization and even surpassed ImageNet pre-training by 2.2%. This suggests that unsupervised pre-training on domain-specific data (e.g., sports videos) can be more beneficial than general-purpose supervised pre-training for specialized tasks like pose estimation.

Discussion and Conclusion

The proposed framework demonstrates that consistency in training data is more critical than sheer quantity. By treating groups of similar images as surrogate classes, the CNN naturally learns transitivity and robust visual features without human labels. While the method currently relies on initial HOG features and involves a complex optimization step, it sets a new standard for unsupervised similarity learning. Future work may explore reducing dependency on initial hand-crafted features and resolving ambiguities between similar silhouettes with different orientations.

Summary updated

Abstract

Exemplar learning of visual similarities in an unsupervised manner is a problem of paramount importance to Computer Vision. In this context, however, the recent breakthrough in deep learning could not yet unfold its full potential. With only a single positive sample, a great imbalance between one positive and many negatives, and unreliable relationships between most samples, training of Convolutional Neural networks is impaired. In this paper we use weak estimates of local similarities and propose a single optimization problem to extract batches of samples with mutually consistent relations. Conflicting relations are distributed over different batches and similar samples are grouped into compact groups. Learning visual similarities is then framed as a sequence of categorization tasks. The CNN then consolidates transitivity relations within and between groups and learns a single representation for all samples without the need for labels. The proposed unsupervised approach has shown competitive performance on detailed posture analysis and object classification.
BibTeX
@misc{sanakoyeu2018deep,
  author = {Artsiom Sanakoyeu and Miguel Ángel Bautista and Björn Ommer},
  title = {{Deep Unsupervised Learning of Visual Similarities.}},
  year = {2018},
  eprint = {1802.08562},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.08562},
}
Figure