Online Variance Reduction with Mixtures

Zalán Borsos, Sebastian Curi, Kfir Y. Levy, Andreas Krause

TL;DR

This paper introduces "Online Variance Reduction with Mixtures" (VRM), a novel framework for adaptive importance sampling in stochastic optimization. VRM leverages a mixture of pre-defined sampling distributions, allowing it to efficiently incorporate prior knowledge about data structure and achieve faster convergence by adaptively adjusting mixture weights during optimization.

What Problem Does This Paper Address?

Stochastic optimization algorithms often rely on sampling data points to estimate gradients. A naive approach of uniform sampling can lead to high variance in these estimates, slowing down convergence, especially on large datasets. While adaptive importance sampling methods exist, they often struggle to leverage similarities between data points or require learning complex distributions from scratch. This paper addresses the challenge of efficiently reducing variance by using a mixture of pre-defined, potentially simpler, sampling distributions. This allows for incorporating prior knowledge (e.g., grouping similar data points) without the computational burden of learning a completely new distribution. The core problem is how to adaptively choose the weights for these mixture components to achieve optimal variance reduction.

Methods

The paper proposes Online Variance Reduction with Mixtures (VRM), an algorithm that frames the problem as an online learning task. The key ideas are:

  • Mixture of Distributions: Instead of learning a single complex sampling distribution, VRM uses a weighted combination of k fixed, pre-defined sampling distributions ($p_1, \dots, p_k$). These distributions can be designed to capture specific data structures (e.g., sampling points from similar clusters with higher probability).
  • Adaptive Mixture Weights: The algorithm adaptively learns the weights ($w$) for these mixture components during the optimization process. This is done by treating the optimization process as an online learning problem where an "adversary" chooses loss functions and the "player" (VRM) chooses mixture weights to minimize cumulative variance.
  • Online Newton Step (ONS): For the full information setting (where the algorithm sees all losses), VRM uses the Online Newton Step algorithm, which leverages the exp-concavity of the cost function (a property derived from the mixture setup) to achieve a strong regret bound.
  • Partial Information Setting: In a more realistic scenario where only the loss of the sampled point is observed, VRM adapts the ONS approach to handle partial feedback, still achieving a no-regret guarantee.
  • Efficient Projection: To improve computational efficiency, a novel two-stage projection procedure onto a restricted simplex is introduced, reducing the complexity of each iteration.

Datasets

The paper evaluates VRM on several standard datasets:

  • Toy dataset: A synthetic dataset with 6 balanced Gaussian blobs, used to illustrate the concept of mixture weights and faster convergence.
  • CSN: Cellphone accelerometer data (n=80,000, d=17).
  • KDD: Protein Homology Prediction dataset (n=145,751, d=74).
  • MNIST: Handwritten character dataset (n=70,000, d=10), preprocessed with PCA.

Key Insights and Ideas

  • Prior Knowledge is Key: The effectiveness of VRM hinges on the quality of the pre-defined sampling distributions. Designing these distributions to capture relevant data structures is crucial for achieving significant speedups.
  • Mixtures Offer Flexibility: Using mixtures allows for a more principled way to incorporate domain knowledge compared to learning arbitrary sampling distributions. It can handle both sampling over points and over sets of points.
  • Exp-Concavity for Efficiency: The mixture formulation leads to cost functions that are exp-concave on a restricted simplex. This property is key to achieving better theoretical guarantees than standard online gradient descent.
  • Adaptive Weights Outperform Fixed Strategies: By adaptively adjusting mixture weights, VRM can dynamically focus on the most informative sampling strategies, leading to faster convergence than fixed or uniformly weighted mixtures.

Key Results

  • Theoretical Guarantees: VRM achieves sublinear regret bounds, specifically $\tilde{O}(T^{4/5})$ in the partial information setting and $\tilde{O}(k^{1/2}T^{2/3})$ in the full information setting. These bounds are independent of the dataset size ($n$), making it scalable.
  • Empirical Speedups:
    • On a toy dataset, VRM demonstrated faster discovery of support vectors and achieved a 1.4x speedup over uniform sampling in terms of iterations for a regression task.
  • For minibatch k-means, VRM eventually outperformed uniform sampling and another method (VRB) in terms of relative error, despite an initial higher setup cost for initializing mixture components.
  • In an experiment with Prioritized Experience Replay for Deep Q-Learning, VRM successfully identified the best hyperparameter setting in a single run, achieving performance comparable to the best fixed setting.

Limitations and Future Work

  • Designing Distributions: The paper acknowledges that designing good sampling distributions for the mixture is an application-specific task and an open research question.
  • Setup Time: VRM can incur an initial setup cost for calculating the mixture components' sampling distributions, which might be a bottleneck in some scenarios.
  • Dynamic Distributions: While the paper's core framework assumes fixed distributions, the experiment with Prioritized Experience Replay hints at the potential for extending VRM to handle sampling distributions that change over time. This is suggested as a future direction.

Summary updated

BibTeX
@inproceedings{borsos2019online,
  author = {Zalán Borsos and Sebastian Curi and Kfir Y. Levy and Andreas Krause},
  title = {{Online Variance Reduction with Mixtures}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
}
Figure