Skip to main content
QUICK REVIEW

[Paper Review] CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIP

Andreas Fürst, Elisabeth Rumetshofer|arXiv (Cornell University)|Oct 21, 2021
Domain Adaptation and Few-Shot LearningComputer Science47 references30 citations
TL;DR

CLOOB replaces CLIP's contrastive objective with InfoLOOB and augments embeddings using modern Hopfield networks to enrich covariance structure, leading to state-of-the-art zero-shot transfer performance across multiple datasets.

ABSTRACT

CLIP yielded impressive results on zero-shot transfer learning tasks and is considered as a foundation model like BERT or GPT3. CLIP vision models that have a rich representation are pre-trained using the InfoNCE objective and natural language supervision before they are fine-tuned on particular tasks. Though CLIP excels at zero-shot transfer learning, it suffers from an explaining away problem, that is, it focuses on one or few features, while neglecting other relevant features. This problem is caused by insufficiently extracting the covariance structure in the original multi-modal data. We suggest to use modern Hopfield networks to tackle the problem of explaining away. Their retrieved embeddings have an enriched covariance structure derived from co-occurrences of features in the stored embeddings. However, modern Hopfield networks increase the saturation effect of the InfoNCE objective which hampers learning. We propose to use the InfoLOOB objective to mitigate this saturation effect. We introduce the novel "Contrastive Leave One Out Boost" (CLOOB), which uses modern Hopfield networks for covariance enrichment together with the InfoLOOB objective. In experiments we compare CLOOB to CLIP after pre-training on the Conceptual Captions and the YFCC dataset with respect to their zero-shot transfer learning performance on other datasets. CLOOB consistently outperforms CLIP at zero-shot transfer learning across all considered architectures and datasets.

Motivation & Objective

  • Motivate improved exploitation of feature covariance beyond CLIP's explaining away problem.
  • Propose a modern Hopfield network-based covariance enrichment to boost cross-modal representations.
  • Introduce InfoLOOB as a non-saturating objective for contrastive learning.
  • Demonstrate zero-shot transfer improvements over CLIP across multiple datasets and architectures.

Proposed method

  • Replace standard CLIP-style contrastive learning with CLOOB, which retrieves enriched embeddings via two modern Hopfield networks storing image and text embeddings.
  • Compute retrievals U_x, U_y, V_x, V_y using stored patterns with softmax-based attention (Hopfield retrieval).
  • Use normalized retrieved embeddings in the InfoLOOB loss, enforcing alignment on retrieved anchors and leveraging two symmetric terms (image-to-text and text-to-image).
  • InfoLOOB loss computes two terms with a form akin to log-softmax ratios but without the saturation characteristic of InfoNCE, enabling continued improvement as alignment grows.
  • Provide theoretical justification for InfoLOOB and its non-saturating properties.
  • Evaluate zero-shot transfer on seven downstream datasets after pre-training on Conceptual Captions and YFCC.

Experimental results

Research questions

  • RQ1Can modern Hopfield networks enrich covariance structure in multimodal embeddings beyond CLIP?
  • RQ2Does replacing InfoNCE with InfoLOOB mitigate saturation while maintaining or improving zero-shot performance?
  • RQ3How does CLOOB perform in zero-shot transfer across standard benchmark datasets when pre-trained on CC and YFCC?
  • RQ4What is the empirical effect of Hopfield-based covariance enrichment on representation uniformity and eigenvalue spectra of embeddings?

Key findings

  • CLOOB consistently outperforms CLIP on zero-shot transfer across all architectures and datasets considered (CC and YFCC pre-training).
  • Modern Hopfield networks increase the effective eigenvalues of embedding covariance matrices during learning, indicating enriched covariance structure.
  • InfoLOOB avoids InfoNCE saturation and yields more uniform image/text embeddings on the hypersphere, aiding training.
  • Ablations show a synergistic effect: Hopfield enrichment plus InfoLOOB outperforms either component alone.
  • Larger vision encoders (e.g., ResNet variants) improve CLOOB performance, often surpassing CLIP on most tasks.
  • CLOOB achieves superior or comparable results to CLIP reimplementations across multiple zero-shot datasets and settings.

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.