AnchorAL: Computationally Efficient Active Learning for Large and Imbalanced Datasets

Pietro Lesci, Andreas Vlachos
4/8/2024
cs.LGcs.CL

No official code found. Best implementation: pietrolesci/anchoral (22 stars, Apache-2.0, PyTorch, last commit 2025-04-15).

Abstract

Active learning for imbalanced classification tasks is challenging as the minority classes naturally occur rarely. Gathering a large pool of unlabelled data is thus essential to capture minority instances. Standard pool-based active learning is computationally expensive on large pools and often reaches low accuracy by overfitting the initial decision boundary, thus failing to explore the input space and find minority instances. To address these issues we propose AnchorAL. At each iteration, AnchorAL chooses class-specific instances from the labelled set, or anchors, and retrieves the most similar unlabelled instances from the pool. This resulting subpool is then used for active learning. Using a small, fixed-sized subpool AnchorAL allows scaling any active learning strategy to large pools. By dynamically selecting different anchors at each iteration it promotes class balance and prevents overfitting the initial decision boundary, thus promoting the discovery of new clusters of minority instances. In experiments across different classification tasks, active learning strategies, and model architectures AnchorAL is (i) faster, often reducing runtime from hours to minutes, (ii) trains more performant models, (iii) and returns more balanced datasets than competing methods.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

This is the official PyTorch implementation for our NAACL 2024 paper: "AnchorAL: Computationally Efficient Active Learning for Large and Imbalanced Datasets".

221Shell, PythonJan 23, 20231 years agoApache-2.0
active-learningnlppytorch

Similar Papers

Cite this paper

@article{lesci2024anchoral,
  title  = {AnchorAL: Computationally Efficient Active Learning for Large and Imbalanced Datasets},
  author = {Pietro Lesci and Andreas Vlachos},
  year   = {2024},
  eprint = {2404.05623},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.05623v2}
}

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

Discussion