Mode Estimation with Partial Feedback

Charles Arnal, Vivien Cabannes, Vianney Perchet

Introduction

In many modern machine learning workflows, the bottleneck is often the cost of data acquisition and labeling. While we may have access to massive streams of data, obtaining precise labels is expensive. This is particularly true in human-in-the-loop systems, where asking an annotator a specific question (e.g., "What specific breed of dog is this?") is significantly more taxing than asking a binary question (e.g., "Is this image an animal?"). This paper addresses the Mode Estimation problem under partial feedback, seeking to identify the most frequent class (the mode) in a dataset using the minimum number of binary queries.

The Problem: Identification vs. Estimation

The traditional approach to understanding a dataset involves fully identifying every sample. In a setting with $m$ possible classes, a standard binary search requires approximately $\log_2(m)$ queries per sample. However, if the objective is simply to find the most frequent class, perfectly labeling every rare class is a waste of resources.

The authors formalize this challenge: given a stream of samples from an unknown distribution, how can we determine the mode while minimizing the total query budget? The core insight is that we do not need to know exactly what a data point is to know it is not the most common item in the distribution.

Methodology

The proposed algorithm improves upon baseline strategies by integrating three distinct concepts from coding theory and multi-armed bandits:

Instead of a generic binary search, the authors utilize an asymptotically optimal search tree based on Huffman or Vitter coding. This structure prioritizes more likely classes, ensuring that the average number of questions required to identify a sample is minimized based on the underlying distribution's entropy.

This represents the most significant conceptual leap in the paper. The algorithm does not attempt to fully identify every sample. If a sample's search path indicates it belongs to a subset of classes that are collectively much less probable than the current estimate of the mode, the algorithm stops asking questions. By "discarding" the sample as soon as it is clear it will not help distinguish the mode, the algorithm saves a significant number of queries.

3. Bandit-Inspired Elimination

Borrowing from "Best Arm Identification" in the multi-armed bandit literature, the algorithm maintains confidence intervals for each class. As the algorithm processes more samples, it statistically eliminates classes that are unlikely to be the mode. Once a class is discarded from the search space, the algorithm no longer spends any queries investigating it.

Theoretical Results

The paper provides a new upper bound for the expected number of queries ($E[T]$) required to identify the mode with an error probability of at most $\delta$.

Traditionally, the query complexity scales with the total number of classes: $$T \le (\Delta_2^{-2} + \Delta_2^{-2} \log_2(m)) \log(1/\delta)$$

In contrast, the authors' new result replaces the $\log_2(m)$ term with a term related to the probability of the mode itself ($p(y_1)$) and the specific probability gaps ($\Delta_i$) between the mode and other classes: $$E[T] \le (\Delta_2^{-2} + (\sum_{i \ge 1} p(y_i) \Delta_i^{-2}) |\log_2 p(y_1)|) \log(1/\delta)$$

This shift is crucial for "long-tail" distributions. In scenarios where there are thousands of possible classes but only a few are frequent, the new algorithm's performance is driven by the entropy of the mode rather than the total size of the label space.

Discussion and Future Work

By bridging Coding Theory (efficient information representation) with Active Learning (strategic information gain), the authors demonstrate that identification is often overkill for estimation tasks.

However, several avenues for future research remain:

  • I.I.D. Assumptions: The current framework assumes samples are drawn independently from a fixed distribution, which may not hold in dynamic real-world environments.
  • Noisy Feedback: The model assumes binary queries are answered correctly. Future iterations could incorporate models for human error or "noisy" annotators.
  • Computational Overhead: While the query complexity is optimized, the real-time maintenance of search trees and confidence intervals for extremely large $m$ requires further empirical study.

The authors have made their implementation available on GitHub to encourage further experimentation in efficient mode estimation.

Summary updated

BibTeX
@inproceedings{arnal2024mode,
  author = {Charles Arnal and Vivien Cabannes and Vianney Perchet},
  title = {{Mode Estimation with Partial Feedback}},
  booktitle = {Conference on Learning Theory},
  year = {2024},
}
Figure