Local uncertainty sampling for large-scale multiclass logistic regression

Lei Han, Kean Ming Tan, Ting Yang, Tong Zhang

Abstract

A major challenge for building statistical models in the big data era is that the available data volume far exceeds the computational capability. A common approach for solving this problem is to employ a subsampled dataset that can be handled by available computational resources. We propose a general subsampling scheme for large-scale multiclass logistic regression and examine the variance of the resulting estimator. We show that asymptotically, the proposed method always achieves a smaller variance than that of the uniform random sampling. Moreover, when the classes are conditionally imbalanced, significant improvement over uniform sampling can be achieved. Empirical performance of the proposed method is evaluated and compared to other methods via both simulated and real-world datasets, and these results match and confirm our theoretical analysis.

Introduction

In the era of "Big Data," the volume of available information often outstrips the computational resources required to process it. While millions of observations may be available, fitting complex statistical models like multiclass logistic regression on a full dataset can be prohibitively slow or memory-intensive.

The standard solution to this bottleneck is subsampling—selecting a manageable subset of data for training. However, traditional uniform subsampling is statistically inefficient. It treats every data point with equal importance, failing to distinguish between "easy" observations far from the decision boundary and "critical" observations that define the boundary itself. This inefficiency manifests as high variance in model parameters. While existing methods like Case-Control (CC) sampling address marginal class imbalances, they often fail to account for conditional imbalance—where most points are easily predictable regardless of their class. This paper introduces Local Uncertainty Sampling (LUS), a strategy designed to prioritize informative data points to achieve high accuracy with minimal data.

Methodology

The authors propose a general framework for subsampling-based estimation that integrates the sampling process directly into the statistical objective. This framework consists of two primary stages:

  1. Sampling: Every data point in the full dataset is assigned an acceptance probability $a(x, y)$. A subset is then selected based on these probabilities.
  2. Integrated MLE: Instead of training a model and applying a post-hoc correction, the model is fitted using a modified Maximum Likelihood Estimation (MLE) objective. By incorporating the sampling bias directly into the loss function, the resulting estimator remains consistent regardless of the sampling strategy used.

Local Uncertainty Sampling (LUS)

Within this framework, the authors derive an optimal strategy called Local Uncertainty Sampling. LUS utilizes a "pilot estimator"—a preliminary, rough model trained on a small fraction of the data—to evaluate the informativeness of the remaining points.

Points are selected based on their "uncertainty":

  • Low Probability: Points that the pilot model classifies correctly with high confidence are assigned a low probability of being included in the final training set.
  • High Probability: Points where the pilot model is unsure or likely to be incorrect are prioritized, as they provide the most information for refining the decision boundary.

Experimental Evaluation

The researchers evaluated LUS across three distinct environments to test its robustness and efficiency:

  • Simulated Gaussian Data: Used to test performance under both marginal imbalance (one class dominates) and conditional imbalance (classes are easily separable).
  • MNIST Digit Classification: A benchmark of 70,000 handwritten digits. This represents a high-accuracy multiclass problem where many "easy" pixels can be safely ignored.
  • Web Spam Dataset: A large-scale binary classification task (350,000 pages) used to compare LUS against the previous state-of-the-art, Local Case-Control (LCC) sampling.

Key Results

  • Data Efficiency: On the MNIST dataset, LUS achieved the same error rate as the full-dataset MLE using only 45% of the total data (10% for the pilot and 35% for the LUS subset).
  • Computational Speedup: The reduction in data requirements translated to a 2.7x speedup in training time on MNIST compared to full-dataset training.
  • Variance Reduction: Theoretical analysis proved that LUS will never have higher variance than uniform sampling for the same sample size. In practice, LUS consistently outperformed LCC on the Web Spam dataset, particularly as the subsample size increased.
  • Theoretical Consistency: Empirical results across all simulations closely tracked theoretical predictions, confirming the mathematical soundness of the uncertainty heuristic.

Discussion and Conclusion

LUS represents a significant step forward in making large-scale multiclass logistic regression more accessible. By focusing on "Information Density," the method effectively compresses a dataset into its most informative components.

A key advantage of this approach is its "plug-and-play" nature. Because the sampling probability is built into the loss function, LUS does not require the complex mathematical post-corrections common in earlier methods, making it potentially applicable to modern architectures like deep neural networks. Furthermore, the pilot model does not need to be highly accurate; even a simple neural network can effectively guide the sampling for a more complex final model.

While the authors note that model misspecification in multiclass settings ($K > 2$) could theoretically introduce bias, empirical tests suggest this effect is negligible. Future work may explore iterative applications of LUS—using the output of one round as the pilot for the next—and its interaction with high-dimensional regularization techniques like Lasso.

Summary updated

BibTeX
@article{han2020local,
  author = {Lei Han and Kean Ming Tan and Ting Yang and Tong Zhang},
  title = {{Local uncertainty sampling for large-scale multiclass logistic regression}},
  journal = {The Annals of Statistics},
  year = {2020},
  doi = {10.1214/19-aos1867},
}
Figure