Active Labeling: Streaming Stochastic Gradients

Vivien Cabannes, Francis R. Bach, Vianney Perchet, Alessandro Rudi · DOI

Abstract

Modern supervised learning is often bottlenecked by the high cost and privacy constraints associated with acquiring full, high-quality labels. This paper introduces "Active Labeling," a framework for training machine learning models using only partial, weak supervision in a streaming setting. We demonstrate that unbiased stochastic gradients can be reconstructed from binary queries, allowing models to achieve minimax optimal convergence rates of $O(T^{-1/2})$—the same fundamental rate as fully supervised learning—while significantly reducing the annotation burden. Our results on large-scale oceanographic and meteorological datasets show that active querying strategies can achieve competitive performance with up to 20x fewer samples than passive alternatives.

Introduction

In the current landscape of artificial intelligence, supervised learning remains the primary paradigm. However, the requirement for massive, fully labeled datasets presents a significant barrier. High-quality labels are expensive, time-consuming to produce, and often restricted by privacy regulations. While traditional Active Learning attempts to mitigate this by selecting which data points to label, it typically still requires a complete label for the chosen points (e.g., "Which specific digit is this?").

This paper explores Active Labeling, where the objective is to learn a target function by asking "weak" or partial questions (e.g., "Is this value greater than $x$?" or "Does this feature fall within a specific range?"). We focus specifically on the streaming variant, where an algorithm processes an input once, asks a single partial question, updates the model, and moves on. This approach is particularly suited for high-volume data or privacy-sensitive scenarios where data cannot be stored or revisited.

Methodology

Stochastic Gradient Reconstruction

The core theoretical contribution of this work is the proof that weak information can be used to construct unbiased stochastic gradients. We demonstrate that if an algorithm can query whether a gradient belongs to a specific set (a half-space query), it can reconstruct an unbiased estimate of the full gradient. This allows the application of Stochastic Gradient Descent (SGD) using only binary "yes/no" feedback.

The Primacy of Median Regression

While Mean Squared Error (MSE) is the standard for many regression tasks, this framework champions Median Regression (absolute deviation loss). The median is inherently more robust to outliers. More importantly for active labeling, the median is naturally suited to binary threshold queries. For a given input, the algorithm predicts an output, asks a labeler if the true label is above or below that prediction, and uses that single bit of feedback to perform a parameter update.

Classification via Surrogates

To extend this framework to discrete classification, we utilize a "median surrogate" technique. By embedding discrete classes into a continuous space, we can apply median regression principles to classification tasks, effectively treating the decision boundaries as regression targets.

Empirical Evaluation

Datasets

We evaluated the Active Labeling framework across several domains:

  • Synthetic Data: 1D sine waves and toy classification problems were used to visualize the efficiency of active versus passive strategies.
  • Real-world Classification: Handwritten digit recognition using the USPS (9,298 samples) and Pendigits (10,992 samples) datasets.
  • Real-world Regression:
    • CalCOFI: A massive oceanographic dataset (600,000+ samples) for predicting oxygen levels.
  • Weather (Szeged): A dataset of 96,000 summaries used to predict apparent temperature.

Key Results

Our experiments confirm that you do not need the "whole truth" to learn effectively. The active strategy—where the query is chosen based on the current model's state—is significantly more sample-efficient than passive strategies that ask random partial questions.

On the CalCOFI dataset, the active strategy reached the performance level of a full-data linear regression baseline after only 10,000 samples. In contrast, the passive strategy required 200,000 samples to reach the same threshold. Furthermore, synthetic tests showed that the active strategy could reconstruct complex signals with high accuracy using a budget of only 30 observations, a task where passive strategies failed to capture the signal structure.

Discussion and Future Work

Theoretical Optimality

We prove that our streaming active labeling strategy achieves a convergence rate of $O(T^{-1/2})$, where $T$ is the labeling budget. This matches the efficiency of fully supervised SGD, implying that there is no fundamental theoretical penalty for using weaker, binary queries instead of full labels.

Limitations

Despite these gains, challenges remain in handling discrete output complexity. While the median surrogate is effective, it may not fully exploit the combinatorial structure of certain classification labels. Future work may involve integrating "combinatorial bandits" to optimize these queries. Additionally, while the streaming setting is privacy-preserving, further research is needed to quantify the exact privacy-utility trade-offs of partial queries compared to full label exposure.

Conclusion

Active Labeling represents a shift in how we approach data annotation. By proving that unbiased gradients can be recovered from minimal feedback, we open the door to more cost-effective and privacy-conscious machine learning workflows that perform on par with traditional supervised methods.

Summary updated

BibTeX
@inproceedings{cabannes2022active,
  author = {Vivien Cabannes and Francis R. Bach and Vianney Perchet and Alessandro Rudi},
  title = {{Active Labeling: Streaming Stochastic Gradients}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=wkFFkytpW-tl},
}
Figure