Activist: A New Framework for Dataset Labelling

Jack O'Neill, Sarah Jane Delany, Brian Mac NameeAICS 2016

Introduction

The availability of massive, labeled datasets is a fundamental requirement for modern supervised machine learning. However, for specialized tasks such as speech recognition, sentiment analysis, or domain-specific image classification, obtaining high-quality labels remains a significant bottleneck. Manual annotation by human oracles is notoriously expensive and time-consuming. While crowdsourcing platforms distribute this workload, they do not inherently reduce the total volume of labels required.

This paper introduces Activist, an extensible, open-source framework that applies Active Learning (AL) to the dataset labeling process. By intelligently querying human annotators for only the most informative data points, Activist aims to minimize human effort while producing a fully labeled, approximately correct dataset for downstream applications.

The Activist Framework

Activist is designed as an end-to-end solution for managing the data labeling lifecycle. It encompasses data ingestion, pre-processing, iterative labeling, and final dataset generation.

The end-to-end workflow of the Activist framework.

System Components

  • Data Handling: The framework supports multiple formats, including CSVs, images (converted to multi-channel pixel maps), and text (converted to bag-of-words representations). Built-in tools facilitate pre-processing tasks like word-stemming and stop-word removal.
  • Active Learning Loop: Users configure a task by defining seed data, batch sizes, selection strategies, and predictive models. The system iteratively queries the user for labels, updates the predictive model, and automatically labels the remaining unannotated data based on the model's current state.
  • Extensibility: The framework is designed to be modular, allowing for the integration of various predictive models and selection strategies beyond the initial implementations.

Experimental Methodology

To evaluate the framework, the authors simulated labeling tasks using a k-Nearest Neighbor (k=5) predictive model across three diverse datasets:

  1. MNIST: 50,000 grayscale images of handwritten digits.
  2. CIFAR-10: 60,000 color images across 10 classes, reduced to 192 features for computational efficiency.
  3. 20 Newsgroups: A document classification task using a subset of five topics pre-processed into bag-of-words format.

Three selection strategies were compared:

  • Query-by-Committee (QBC): Queries instances with the highest disagreement among five KNN models trained on different data subsets.
  • Diversity-based Selection: Uses cosine distance to select instances most dissimilar to the currently labeled set.
  • Random Selection: A baseline strategy picking instances at random.

Results and Discussion

The experimental results demonstrate that active learning consistently outperforms purely manual labeling baselines. However, the degree of improvement is highly dependent on the dataset's characteristics.

Performance comparison of selection strategies across three benchmark datasets.

Key Findings

  • MNIST Performance: The framework showed the most significant gains on the MNIST dataset. Active learning strategies achieved near-maximum accuracy with only a small fraction of the total labels requested.
  • Complex Data Challenges: Gains on CIFAR-10 and 20 Newsgroups were more modest. While AL still outperformed the manual baseline (represented by the diagonal dashed line in the figures), the complexity of these datasets reduced the performance gap between strategies.
  • Strategy Variability: No single selection strategy emerged as universally superior. For instance, QBC performed notably well on the Newsgroups dataset, while the differences were less pronounced on CIFAR-10. This suggests that strategy selection should be tailored to the specific data type.
  • Predictive Model Utility: Even a "random" selection strategy within the Activist framework provides benefits over manual labeling. This is because the underlying predictive model can fill in labels for the unannotated portion of the dataset, reaching higher overall accuracy faster than human-only labeling.

Conclusion and Future Work

Activist demonstrates that active learning is a powerful tool for upstream dataset generation, not just for training final models. By treating AL as a dataset generator, researchers can build static, high-quality datasets more efficiently.

Future development of Activist will focus on mitigating human error through multi-label responses (e.g., multi-armed bandit approaches), integrating more sophisticated predictive models like Convolutional Neural Networks (CNNs) and Support Vector Machines (SVMs), and providing direct API connections to major crowdsourcing platforms. Additionally, the authors intend to develop heuristics to help users select the optimal AL components for their specific data challenges.

Summary updated

BibTeX
@inproceedings{oneill2016activist,
  author = {Jack O'Neill and Sarah Jane Delany and Brian Mac Namee},
  title = {{Activist: A New Framework for Dataset Labelling}},
  booktitle = {AICS},
  year = {2016},
  url = {https://openreview.net/forum?id=VCDmxmtl38},
}
Figure