Skip to main content
QUICK REVIEW

[Paper Review] Online Learning to Sample

Guillaume Bouchard, Théo Trouillon|arXiv (Cornell University)|Jun 30, 2015
Advanced Bandit Algorithms ResearchDecision Sciences21 references18 citations
TL;DR

This paper proposes Adaptive Weighted SGD (AW-SGD), an online learning method that dynamically optimizes the sampling distribution of training examples to reduce gradient variance in stochastic gradient descent. By jointly learning the model parameters and the importance sampling weights via a second SGD process, AW-SGD achieves faster convergence across image classification, matrix factorization, and reinforcement learning tasks, with speedups up to 100× when data access times vary significantly.

ABSTRACT

Stochastic Gradient Descent (SGD) is one of the most widely used techniques for online optimization in machine learning. In this work, we accelerate SGD by adaptively learning how to sample the most useful training examples at each time step. First, we show that SGD can be used to learn the best possible sampling distribution of an importance sampling estimator. Second, we show that the sampling distribution of an SGD algorithm can be estimated online by incrementally minimizing the variance of the gradient. The resulting algorithm - called Adaptive Weighted SGD (AW-SGD) - maintains a set of parameters to optimize, as well as a set of parameters to sample learning examples. We show that AWSGD yields faster convergence in three different applications: (i) image classification with deep features, where the sampling of images depends on their labels, (ii) matrix factorization, where rows and columns are not sampled uniformly, and (iii) reinforcement learning, where the optimized and exploration policies are estimated at the same time, where our approach corresponds to an off-policy gradient algorithm.

Motivation & Objective

  • To accelerate stochastic gradient descent (SGD) by learning an optimal, adaptive sampling distribution for training examples.
  • To reduce the variance of gradient estimates in online learning by treating sampling distribution as a learnable parameter.
  • To integrate sampling distribution learning into the main optimization loop, enabling joint optimization of model and sampling strategy.
  • To demonstrate the effectiveness of this approach across diverse machine learning applications with varying data access characteristics.
  • To show that the overhead of learning sampling weights is compensated by faster convergence, especially when data access times are heterogeneous.

Proposed method

  • AW-SGD uses two parallel SGD processes: one for model parameters $w_t$, and another for sampling distribution parameters $\tau_t$.
  • The sampling distribution $q(x; \tau_t)$ is updated online using the gradient of the variance of the gradient estimator.
  • The update rule for $\tau_t$ is derived from minimizing the variance of the gradient estimate, using $\|d_t\|^2 \nabla_\tau \log q(x_t; \tau_t)$ as the update direction.
  • The algorithm maintains a time-aware variant where sampling cost is modeled as a function of data access time, enabling speedup in I/O-constrained environments.
  • The method is general and can be applied to any objective involving intractable expectations, including variational inference and log-partition estimation.
  • It can be extended to control variates and meta-learning frameworks by learning to optimize or coach other algorithms.

Experimental results

Research questions

  • RQ1Can stochastic gradient descent be used to learn the optimal sampling distribution that minimizes gradient variance?
  • RQ2Does jointly learning the sampling distribution and model parameters lead to faster convergence than uniform sampling?
  • RQ3How does the performance of AW-SGD scale with heterogeneous data access times, such as in distributed or slow storage systems?
  • RQ4Can AW-SGD be generalized to non-uniform sampling in problems beyond standard supervised learning, such as matrix factorization and reinforcement learning?
  • RQ5What is the trade-off between the computational cost of learning the sampling distribution and the resulting speedup in convergence?

Key findings

  • AW-SGD achieves up to 100× speedup over standard SGD when data access times vary significantly, such as when reading from a hard drive (f=50,000).
  • With a slow access factor f=5000 (networked memory), AW-SGD achieves a 10× speedup over SGD, demonstrating strong performance gains in I/O-bound settings.
  • For f≥200 (SSD-level access), the time-aware AW-SGD outperforms standard SGD, indicating that the sampling overhead is compensated by smarter sampling.
  • In image classification and matrix factorization, AW-SGD converges faster than standard SGD, even when data access is uniform, due to variance reduction.
  • The algorithm maintains convergence speed comparable to standard SGD when access times are uniform, confirming that it does not degrade performance in favorable conditions.
  • The method generalizes well across domains, showing consistent improvements in deep learning, matrix factorization, and reinforcement learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.