NEXT: A System for Real-World Development, Evaluation, and Application of Active Learning

Kevin G. Jamieson, Lalit Jain, Chris Fernandez, Nicholas J. Glattard, Robert D. NowakNeurIPS 2015

TL;DR

NEXT is an open-source software system designed to bridge the gap between theoretical active learning and real-world deployment. By providing a scalable, cloud-based infrastructure for human-in-the-loop experiments, it enables researchers to move beyond static benchmarks and test how adaptive algorithms actually perform against the noise and latency of real human participants.

The Problem: Simulation vs. Reality

In traditional "passive" machine learning, models are trained on fixed, pre-labeled datasets. In active learning (AL), the algorithm dynamically chooses which data points to label next, aiming to achieve higher accuracy with fewer samples.

However, most AL research happens in "simulation land." Researchers take a fully labeled dataset, hide the labels, and let an algorithm "request" them. This ignores the messy realities of the real world:

  1. Latency: Humans get annoyed and disengage if they have to wait more than 400ms for the next query.
  2. Human Factors: People get tired, provide inconsistent labels, and do not behave like perfect, independent and identically distributed (i.i.d.) data sources.
  3. Infrastructure: Building a system that can handle thousands of simultaneous users while updating a complex model in real-time is an immense engineering challenge.

The authors introduce NEXT to solve these issues, providing a standardized platform for reproducible, large-scale active learning experiments.

Methods: The NEXT Architecture

NEXT is built as a cloud-native system (using Docker and Python) that manages the flow between users—often on crowdsourcing platforms like Amazon Mechanical Turk—and learning algorithms.

Architecture of the NEXT system showing the flow of requests and model updates.

The core of the system is a simple "contract" for researchers. To implement an algorithm in NEXT, you only need to define three core functions:

  • getQuery: Decides what to show the user next based on current model statistics.
  • processAnswer: Receives the user's input and updates the database.
  • updateModel: A heavier-duty function that runs asynchronously to re-train the model as new data rolls in.

To prevent "race conditions" (where two workers try to update the same model simultaneously), NEXT uses a locking queue. This ensures that model updates are sequential and consistent, even when thousands of users are providing answers at once.

Real-World Applications and Datasets

The paper demonstrates NEXT using two distinct real-world applications:

  1. The New Yorker Caption Contest: A "dueling bandits" problem where users are shown a cartoon and two captions, then asked to pick the funnier one. The goal is to find the "best" caption among 25 candidates using the fewest possible comparisons.
  2. Synthetic 3D Shapes: An "Active Non-metric Multidimensional Scaling" (NMDS) task. Users are shown triplets of shapes and asked which two are most similar. This is used to learn a low-dimensional "map" of how humans perceive shape smoothness.

Key Insights and Results

The 400ms Rule and the Simulation Gap

The authors emphasize that for a system to feel "real-time" to a human, the round-trip time (including network latency and computation) must stay under 400ms. This forces a hard constraint on algorithm complexity. Furthermore, one of the most striking insights is that algorithms which dominate in simulations sometimes fail to show gains over random sampling when faced with real human feedback. This highlights why systems like NEXT are necessary for scientific honesty in the field.

Experimental Outcomes

  • Dueling Bandits: In the New Yorker experiment, Thompson Sampling and UCB (Upper Confidence Bound) algorithms significantly outperformed random sampling. They were able to identify the funniest captions with roughly half the uncertainty of other methods using the same number of samples.
  • Perceptual Mapping (NMDS): The results here were more humbling.
Synthetic 3D shapes used in the NMDS task and corresponding performance metrics.

While the Crowd Kernel and t-STE algorithms produced better embeddings than simple hinge-loss optimization, the "active" selection of triplets didn't provide a massive boost over random selection. The authors suggest this might be due to human feedback being less robust than the noise models used in theoretical simulations.

Reproducibility as a Service

Because NEXT can be deployed in the cloud with a few keystrokes, other researchers can replicate an entire human-subject experiment—including the UI and the adaptive logic—in under an hour.

Limitations and Future Work

The primary bottleneck in NEXT is the locking model update queue. While it ensures consistency, it can create a "staleness" issue: if the model takes a long time to update, getQuery might be making decisions based on old data while new answers pile up in the queue.

Future work involves exploring asynchronous update schemes (like the "Hogwild!" approach) that could allow for faster parallel updates at the cost of some mathematical "neatness." Additionally, the authors hope the community will contribute more "templates" to NEXT, expanding it from bandits and embeddings to tasks like active image classification and regression.

Summary updated

BibTeX
@inproceedings{jamieson2015next,
  author = {Kevin G. Jamieson and Lalit Jain and Chris Fernandez and Nicholas J. Glattard and Robert D. Nowak},
  title = {{NEXT: A System for Real-World Development, Evaluation, and Application of Active Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
  url = {https://openreview.net/forum?id=rk4_twb_ZS},
}
Figure