Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.12 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.12 KB

EBCLR

Official PyTorch implementation of Energy-Based Contrastive Learning of Visual Representations, NeurIPS 2022.

We propose a visual representation learning framework, Energy-Based Contrastive Learning (EBCLR), that combines Energy-Based Models (EBMs) with contrastive learning. EBCLR associates distance on the projection space with the density of positive pairs to learn useful visual representations. The figure below illustrates the general idea of EBCLR. We find EBCLR shows accelerated convergence and robustness to small number of negative pairs per positive pair.

How to Run This Code

Example codes for training and linear / KNN evaluation can be found in Train.ipynb and Evaluation.ipynb, respectively.

References

If you find the code useful for your research, please consider citing

@inproceedings{
  kim2022ebclr,
  title={Energy-Based Contrastive Learning of Visual Representations},
  author={Beomsu Kim and Jong Chul Ye},
  booktitle={NeurIPS},
  year={2022}
}