Self-Supervised Learning via Maximum Entropy Coding

Xin Liu, Zhongdao Wang, Ya-Li Li, Shengjin Wang

Self-supervised learning (SSL) typically relies on hand-crafted pretext tasks that can introduce task-specific biases. This paper, presented at NeurIPS 2022, introduces Maximum Entropy Coding (MEC), a framework that replaces these tasks with a fundamental information-theoretic objective: maximizing the entropy of learned representations. By utilizing lossy data coding as a surrogate for entropy and a scalable Taylor expansion for computation, MEC achieves state-of-the-art generalization across diverse downstream tasks and provides a unified mathematical perspective on existing SSL methods.

The Quest for General-Purpose Representations

The goal of SSL is to learn representations from unlabeled data that transfer easily to various tasks, such as classification, detection, and tracking. Most current methods use "instance discrimination," which treats every image as its own class. While effective for ImageNet classification, this can introduce biases that hinder performance on pixel-level tasks like object detection. MEC argues that a truly general representation should make the fewest assumptions, meaning it should have the maximum entropy among all plausible representations.

The MEC Framework

Calculating the entropy of a finite set of high-dimensional vectors is computationally expensive. MEC introduces two key innovations to overcome this:

  1. Minimal Coding Length as a Surrogate: Instead of calculating Shannon entropy directly, MEC uses the "minimal coding length" from lossy data coding. This measures the bits needed to represent a set of vectors given a certain allowed distortion ($\epsilon$). Maximizing this coding length is equivalent to maximizing entropy.
  2. Scalable Taylor Reformulation: The standard coding length formula involves a log-determinant of a large matrix, which is slow for large-scale training. The authors derived a reformulation using a Taylor series expansion, converting expensive operations into simple matrix multiplications. This results in a 50x speedup, making ImageNet-scale training feasible.
The MEC framework and its relationship to existing SSL objectives.

The final objective combines this entropy maximization with a View Consistency Prior, ensuring that different augmented views of the same image remain close in the representation space while the overall space remains as diverse as possible.

A Unified Theory of SSL

MEC provides a theoretical bridge between existing Siamese-network-based SSL methods. The authors prove that:

  • SimSiam is essentially a 1st-order Taylor approximation of MEC.
  • Barlow Twins is equivalent to a 2nd-order approximation.

MEC naturally subsumes these methods, explaining why they work and suggesting that higher-order approximations lead to better features. Unlike contrastive learning, which focuses on pushing negative pairs apart, MEC focuses on the geometric structure of the representation space, encouraging the model to "pack" information efficiently.

Experimental Results and Generalization

MEC achieves 74.5% top-1 accuracy on ImageNet linear probing (ResNet-50), outperforming SimCLR, MoCo v2, and SwAV. More importantly, it demonstrates superior generalization across a wide range of tasks.

Radar plots comparing MEC's performance across diverse image and video tasks.

In object detection on COCO, MEC outperforms the supervised baseline by +1.6 AP. Radar plot comparisons show that while other methods may excel in specific tasks, MEC is the most consistent "all-around" performer across both image and video domains (including tracking and segmentation).

Conclusion and Future Directions

MEC shifts the focus of SSL from pretext tasks to the fundamental geometric structure of the representation space. While highly effective and robust to hyperparameters like batch size, the learned representations are still influenced by data augmentation choices. Future work aims to explore more direct entropy estimators and extend the Maximum Entropy principle to other modalities like audio and natural language processing.

Summary updated

BibTeX
@inproceedings{liu2022self,
  author = {Xin Liu and Zhongdao Wang and Ya-Li Li and Shengjin Wang},
  title = {{Self-Supervised Learning via Maximum Entropy Coding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=nJt27NQffr},
}
Figure