Active Learning by Acquiring Contrastive Examples

Katerina Margatina, Giorgos Vernikos, Loïc Barrault, Nikolaos Aletras
9/8/2021
cs.CLcs.AIcs.LG

Official code: mourga/contrastive-active-learning (129 stars, Python, GPL-3.0, last commit 2022-05-24).

Abstract

Common acquisition functions for active learning use either uncertainty or diversity sampling, aiming to select difficult and diverse data points from the pool of unlabeled data, respectively. In this work, leveraging the best of both worlds, we propose an acquisition function that opts for selecting \textit{contrastive examples}, i.e. data points that are similar in the model feature space and yet the model outputs maximally different predictive likelihoods.

Show full abstract

We compare our approach, CAL (Contrastive Active Learning), with a diverse set of acquisition functions in four natural language understanding tasks and seven datasets. Our experiments show that CAL performs consistently better or equal than the best performing baseline across all tasks, on both in-domain and out-of-domain data. We also conduct an extensive ablation study of our method and we further analyze all actively acquired datasets showing that CAL achieves a better trade-off between uncertainty and diversity compared to other strategies.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Code for the EMNLP 2021 Paper "Active Learning by Acquiring Contrastive Examples" & the ACL 2022 Paper "On the Importance of Effectively Adapting Pretrained Language Models for Active Learning"

12913Python, ShellAug 30, 20214 years agoGPL-3.0
acquisition-functionsactive-learningdeep-learningnatural-language-processing

Similar Papers

Cite this paper

@article{margatina2021active,
  title  = {Active Learning by Acquiring Contrastive Examples},
  author = {Katerina Margatina and Giorgos Vernikos and Loïc Barrault and Nikolaos Aletras},
  year   = {2021},
  eprint = {2109.03764},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.03764}
}

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

Discussion