Skip to main content
QUICK REVIEW

[Paper Review] Seed the Views: Hierarchical Semantic Alignment for Contrastive Representation Learning

Haohang Xu, Xiaopeng Zhang|arXiv (Cornell University)|Dec 4, 2020
Domain Adaptation and Few-Shot LearningComputer Science6 citations
TL;DR

This paper proposes CsMl, a hierarchical semantic alignment method for contrastive representation learning that improves feature generalization by expanding positive views across samples and network layers. By leveraging data mixing for robust cross-sample positive selection and introducing bottleneck-regularized multi-level contrastive loss, CsMl achieves 76.6% top-1 accuracy on ImageNet linear evaluation with ResNet-50, setting a new state-of-the-art.

ABSTRACT

Self-supervised learning based on instance discrimination has shown remarkable progress. In particular, contrastive learning, which regards each image as well as its augmentations as an individual class and tries to distinguish them from all other images, has been verified effective for representation learning. However, pushing away two images that are de facto similar is suboptimal for general representation. In this paper, we propose a hierarchical semantic alignment strategy via expanding the views generated by a single image to extbf{Cross-samples and Multi-level} representation, and models the invariance to semantically similar images in a hierarchical way. This is achieved by extending the contrastive loss to allow for multiple positives per anchor, and explicitly pulling semantically similar images/patches together at different layers of the network. Our method, termed as CsMl, has the ability to integrate multi-level visual representations across samples in a robust way. CsMl is applicable to current contrastive learning based methods and consistently improves the performance. Notably, using the moco as an instantiation, CsMl achieves a extbf{76.6\% }top-1 accuracy with linear evaluation using ResNet-50 as backbone, and extbf{66.7\%} and extbf{75.1\%} top-1 accuracy with only 1\% and 10\% labels, respectively. extbf{All these numbers set the new state-of-the-art.}

Motivation & Objective

  • To address the suboptimal invariance learning in contrastive representation learning, where semantically similar images are treated as negatives and pushed apart.
  • To improve feature discriminability in intermediate network layers, which often suffer from low representation capacity in existing contrastive methods.
  • To enable robust, label-free selection of semantically similar samples for positive contrastive learning.
  • To develop a hierarchical training strategy that enforces discriminative representations across multiple network depths.

Proposed method

  • Introduces a data mixing strategy to generate synthetic positive samples that are semantically similar but not identical, improving robustness in cross-sample positive selection.
  • Expands contrastive learning beyond the final layer by explicitly aligning features at multiple intermediate layers using a multi-level contrastive loss.
  • Applies a bottleneck layer before each intermediate contrastive loss to resolve gradient competition and enable stable optimization.
  • Uses k-nearest neighbor search in the embedding space to identify semantically similar samples for cross-sample positive pairing.
  • Extends the standard contrastive loss to support multiple positives per anchor, enabling hierarchical alignment across different levels of representation.
  • Integrates the hierarchical alignment into MoCo as a plug-in module, maintaining compatibility with existing contrastive learning frameworks.

Experimental results

Research questions

  • RQ1Can we improve contrastive representation learning by explicitly aligning semantically similar images across different samples, rather than treating them as negatives?
  • RQ2How can we robustly select semantically similar samples as positives without human-annotated labels?
  • RQ3Does enforcing discriminative representation at intermediate network layers improve downstream transfer performance?
  • RQ4Can hierarchical multi-level contrastive learning enhance feature generalization while maintaining training stability?

Key findings

  • CsMl achieves 76.6% top-1 accuracy on ImageNet linear evaluation using ResNet-50, setting a new state-of-the-art under self-supervised pretraining.
  • With only 1% labeled data, CsMl achieves 66.7% top-1 accuracy, significantly outperforming prior self-supervised methods.
  • When fine-tuned with 10% labels, CsMl reaches 75.1% top-1 accuracy, demonstrating strong transferability.
  • The method improves intermediate layer discrimination by up to 3.3% in accuracy (e.g., from 60.7% to 64.0% in stage 3), enhancing performance on detection and segmentation tasks.
  • The computational cost of CsMl is only ~25% higher than MoCo v2 when including mixed samples, with marginal overhead from multi-level supervision.
  • CsMl outperforms MoCo v2 even when trained for fewer epochs or with smaller batch sizes, indicating that performance gains are not due to longer training or larger batches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.