Conditional Contrastive Learning with Kernel

Yao-Hung Hubert Tsai, Tianqin Li, Martin Q. Ma, Han Zhao, Kun Zhang +2 more
2/11/2022
cs.LG
contrastive-ssl

Official code: Crazy-Jack/CCLK-release (10 stars, Python, last commit 2022-02-11).

Abstract

Conditional contrastive learning frameworks consider the conditional sampling procedure that constructs positive or negative data pairs conditioned on specific variables. Fair contrastive learning constructs negative pairs, for example, from the same gender (conditioning on sensitive information), which in turn reduces undesirable information from the learned representations; weakly supervised contrastive learning constructs positive pairs with similar annotative attributes (conditioning on auxiliary information), which in turn are incorporated into the representations.

Show full abstract

Although conditional contrastive learning enables many applications, the conditional sampling procedure can be challenging if we cannot obtain sufficient data pairs for some values of the conditioning variable. This paper presents Conditional Contrastive Learning with Kernel (CCL-K) that converts existing conditional contrastive objectives into alternative forms that mitigate the insufficient data problem. Instead of sampling data according to the value of the conditioning variable, CCL-K uses the Kernel Conditional Embedding Operator that samples data from all available data and assigns weights to each sampled data given the kernel similarity between the values of the conditioning variable. We conduct experiments using weakly supervised, fair, and hard negatives contrastive learning, showing CCL-K outperforms state-of-the-art baselines.

View on arXivView PDF

Code Implementations(1)

A repo for CCLK implementation

100PythonFeb 11, 20224 years ago

Similar Papers

Cite this paper

@article{tsai2022conditional,
  title  = {Conditional Contrastive Learning with Kernel},
  author = {Yao-Hung Hubert Tsai and Tianqin Li and Martin Q. Ma and Han Zhao and Kun Zhang and Louis-Philippe Morency and Ruslan Salakhutdinov},
  year   = {2022},
  eprint = {2202.05458},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.05458}
}

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/2202.05458.svg)](https://codeofpaper.com/paper/2202.05458)

Discussion