Skip to main content
QUICK REVIEW

[Paper Review] Faster SGD Using Sketched Conditioning

Alon Gonen, Shai Shalev‐Shwartz|arXiv (Cornell University)|Jun 8, 2015
Stochastic Gradient Optimization TechniquesComputer Science10 references11 citations
TL;DR

This paper proposes Sketching-based Conditioned Stochastic Gradient Descent (SCSGD), a method that accelerates SGD by using sketching to efficiently compute a conditioner matrix $ A = C^{1/2} $, where $ C $ is the data correlation matrix. The approach significantly speeds up convergence in convex and non-convex settings, with experiments showing faster training and test error reduction on MNIST and SVHN datasets compared to standard SGD.

ABSTRACT

We propose a novel method for speeding up stochastic optimization algorithms via sketching methods, which recently became a powerful tool for accelerating algorithms for numerical linear algebra. We revisit the method of conditioning for accelerating first-order methods and suggest the use of sketching methods for constructing a cheap conditioner that attains a significant speedup with respect to the Stochastic Gradient Descent (SGD) algorithm. While our theoretical guarantees assume convexity, we discuss the applicability of our method to deep neural networks, and experimentally demonstrate its merits.

Motivation & Objective

  • To accelerate stochastic gradient descent (SGD) in large-scale empirical risk minimization problems.
  • To develop a computationally efficient conditioner matrix $ A $ that improves convergence speed without increasing per-iteration cost.
  • To extend the conditioning framework from convex to non-convex settings, such as deep neural networks.
  • To empirically validate the method on standard vision benchmarks like MNIST and SVHN.

Proposed method

  • Proposes Conditioned SGD, where the update rule is modified using a positive definite matrix $ A $, leading to $ W_{t+1} = W_t - \eta (\nabla \ell_{y_i}(W_t x_i)) (A^{-1} x_i)^\top $.
  • Uses sketching techniques to approximate the square root of the data correlation matrix $ C = \frac{1}{m} \sum_{i=1}^m x_i x_i^\top $, enabling fast and low-rank approximation of $ C^{1/2} $.
  • Applies sketching in a separate thread to precompute $ A^{-1} $, avoiding performance bottlenecks in the main training loop.
  • Transforms convolutional layers into affine layers via Im2Col to apply the conditioner uniformly across network layers.
  • Employs standard deep learning components (e.g., ReLU, Xavier initialization, Nesterov momentum) while replacing standard SGD updates with conditioned ones.
  • Uses the trace norm-based upper bound to derive the optimal conditioner $ A = C^{1/2} $, minimizing convergence bounds under theoretical assumptions.

Experimental results

Research questions

  • RQ1Can sketching be used to efficiently compute a conditioner matrix that accelerates SGD in large-scale learning?
  • RQ2Does the conditioner $ A = C^{1/2} $ lead to faster convergence than standard SGD in convex settings?
  • RQ3Can the conditioning framework be extended to non-convex deep neural networks with minimal computational overhead?
  • RQ4How does SCSGD compare to standard SGD in terms of training and test error convergence on real-world vision datasets?

Key findings

  • SCSGD achieves significantly faster convergence than standard SGD on both MNIST and SVHN datasets, with error decreasing more rapidly across all metrics.
  • On MNIST, SCSGD reduces training and test error (measured via multiclass log loss) faster than SGD, with test error dropping below 1.5% earlier in training.
  • On SVHN, SCSGD achieves lower test error (around 1.3%) earlier than SGD, demonstrating consistent speedup across different architectures.
  • The method maintains the same hyperparameters and network architecture as standard SGD, with only the update rule modified via conditioner matrix computation.
  • The conditioner $ A = C^{1/2} $, computed via sketching, leads to a theoretical speedup ratio of up to $ \min\{n,p\} $, with empirical gains exceeding 2x in early training.
  • Sketching the conditioner matrix can be performed in parallel, incurring no runtime penalty on the main training loop.

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.