Non-negative Contrastive Learning

Yifei Wang, Qi Zhang, Yaoyu Guo, Yisen Wang
3/1/2024
22 citations
contrastive-ssl

Official code: PKU-ML/non_neg (48 stars, Python, last commit 2024-04-20).

Abstract

Deep representations have shown promising performance when transferred to downstream tasks in a black-box manner. Yet, their inherent lack of interpretability remains a significant challenge, as these features are often opaque to human understanding.

Show full abstract

In this paper, we propose Non-negative Contrastive Learning (NCL), a renaissance of Non-negative Matrix Factorization (NMF) aimed at deriving interpretable features. The power of NCL lies in its enforcement of non-negativity constraints on features, reminiscent of NMF's capability to extract features that align closely with sample clusters. NCL not only aligns mathematically well with an NMF objective but also preserves NMF's interpretability attributes, resulting in a more sparse and disentangled representation compared to standard contrastive learning (CL). Theoretically, we establish guarantees on the identifiability and downstream generalization of NCL. Empirically, we show that these advantages enable NCL to outperform CL significantly on feature disentanglement, feature selection, as well as downstream classification tasks. At last, we show that NCL can be easily extended to other learning scenarios and benefit supervised learning as well. Code is available at https://github.com/PKU-ML/non_neg.

View on arXivView PDF

Code Implementations(1)

PKU-ML/non_negOfficial100%

Official Code for ICLR 2024 Paper: Non-negative Contrastive Learning

488PythonMar 19, 20242 years ago

Similar Papers

Cite this paper

@article{wang2024nonnegative,
  title  = {Non-negative Contrastive Learning},
  author = {Yifei Wang and Qi Zhang and Yaoyu Guo and Yisen Wang},
  year   = {2024},
  eprint = {2403.12459},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2403.12459},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.12459.svg)](https://codeofpaper.com/paper/2403.12459)

Discussion