Skip to main content
QUICK REVIEW

[Paper Review] Statistical inference using SGD

Tianyang Li, Liu Liu|arXiv (Cornell University)|May 21, 2017
Machine Learning and AlgorithmsComputer Science10 citations
TL;DR

This paper proposes a novel frequentist statistical inference method for M-estimation using stochastic gradient descent (SGD) with a fixed step size. By averaging SGD sequences and applying proper scaling, the method achieves asymptotically normal estimators without bootstrapping or Hessian computation, offering comparable accuracy to classical methods with significantly reduced computational cost on both synthetic and real-world datasets.

ABSTRACT

We present a novel method for frequentist statistical inference in $M$-estimation problems, based on stochastic gradient descent (SGD) with a fixed step size: we demonstrate that the average of such SGD sequences can be used for statistical inference, after proper scaling. An intuitive analysis using the Ornstein-Uhlenbeck process suggests that such averages are asymptotically normal. From a practical perspective, our SGD-based inference procedure is a first order method, and is well-suited for large scale problems. To show its merits, we apply it to both synthetic and real datasets, and demonstrate that its accuracy is comparable to classical statistical methods, while requiring potentially far less computation.

Motivation & Objective

  • To develop a computationally efficient alternative to bootstrap-based inference for large-scale M-estimation problems.
  • To demonstrate that fixed-step-size SGD sequences, when averaged and scaled, yield asymptotically normal estimators suitable for confidence intervals and hypothesis testing.
  • To avoid the computational burden of repeated resampling or second-order Hessian calculations in high-dimensional settings.
  • To validate the method empirically on synthetic data, Higgs boson detection, and splice junction classification datasets.
  • To show that the method maintains statistical accuracy comparable to classical inference while reducing computational cost.

Proposed method

  • The method uses a fixed step size in SGD to generate sequences of parameter estimates during optimization of the empirical risk function.
  • It computes the average of these SGD iterates over a burn-in period, forming a central limit estimator for the true parameter.
  • The asymptotic normality of the averaged SGD sequence is justified via an Ornstein-Uhlenbeck process approximation, linking the dynamics to a diffusion process.
  • The covariance of the averaged sequence is used as a consistent estimate of the sampling distribution of the M-estimator.
  • The approach avoids re-sampling and does not require Hessian computation, relying only on first-order gradient information.
  • For logistic regression, where the objective is not strongly convex, a modified analysis is applied to ensure convergence and validity of inference.

Experimental results

Research questions

  • RQ1Can fixed-step-size SGD sequences be used to construct valid confidence intervals for M-estimators without bootstrapping?
  • RQ2Does the average of SGD iterates converge to a normal distribution with a covariance matching the true sampling distribution?
  • RQ3How does the performance of SGD-based inference compare to bootstrap and Fisher information in terms of accuracy and computational cost?
  • RQ4Can the method be applied effectively to non-strongly convex objectives like logistic regression?
  • RQ5What is the empirical behavior of the method on large-scale real-world datasets such as Higgs and LIBSVM Splice?

Key findings

  • The covariance matrix estimated via the proposed SGD inference procedure closely matches that of the bootstrap and inverse Fisher information matrix on the Higgs dataset with n=200 samples.
  • For larger datasets (n=50,000 and n=90,000), the SGD inference covariance remains comparable to the inverse Fisher information, confirming consistency.
  • On the Splice dataset with n=1,000, the SGD inference covariance was statistically indistinguishable from bootstrap estimates using 10,000 samples.
  • In adversarial MNIST experiments, the method successfully detected perturbed images through confidence interval violations, with logit values shifting into non-overlapping intervals.
  • The method achieved comparable statistical accuracy to classical inference while requiring significantly fewer operations than bootstrap, especially in high-dimensional or large-scale settings.
  • The theoretical justification via the Ornstein-Uhlenbeck approximation supports the asymptotic normality of the averaged SGD sequence under mild regularity conditions.

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.