Paper commentary
Adaptive Subgradient Methods for Online Learning and Stochastic Optimization
ADAGRAD rescales each feature's learning rate using its gradient history
- Problem Standard subgradient methods use one step size for every feature, so rare but predictive features get no special treatment.
- Method ADAGRAD keeps a running record of each coordinate's gradient history and scales its step by that record. Frequent coordinates take small steps, while rare ones take large steps.
- Results On ImageNet ranking, ADAGRAD-RDA scored 0.6022 average precision, compared to 0.5813 for AROW.
Why fixed step schedules struggle with rare features
Many online learning problems have very high-dimensional inputs, yet each single example activates only a few features. Practitioners have long handled rare but informative features by hand, for example with TF-IDF weights that boost infrequently occurring terms. The authors ask whether a learner can make the same kind of distinction automatically while it runs.
The projected gradient update moves the predictor against the current subgradient with a single step size eta. A common choice lets that step shrink with the round number, as in the schedule eta over the square root of t, so the learner must set eta in advance. Because the step size is fixed by the schedule, the learner treats a rare feature exactly like a frequent one.
The authors want frequent features to get very low learning rates and infrequent features to get high learning rates. Their intuition is that each time a rare feature shows up, the learner should take notice, so the adaptation helps find predictive features that are seen only seldom. Their algorithm, ADAGRAD, builds this per-feature behaviour from the geometry of subgradients observed in earlier iterations.
Growing the proximal term from gradient history
ADAGRAD keeps a running record of each coordinate's gradient history, and that record sets how far the coordinate may move. For coordinate i, the record is the norm of the i-th row of the matrix of concatenated subgradients, so a coordinate that has seen large gradients gets a large accumulated value. Because that value sits in the denominator of the step, frequent coordinates take small steps and coordinates that rarely saw a gradient take large ones.
The authors start from the observation that most of the regret depends on dual norms of the subgradients. Those dual norms depend on the proximal function, so instead of fixing it in advance, the authors let it change over the run. The proximal function is kept with second-order information about the observed functions, which lets the adaptive term grow across rounds.
The analysis assumes the proximal function never decreases from one round to the next, which keeps the bounds valid as it grows.
The diagonal proximal term is one-half of the inner product of x with H_t times x. Here H_t equals delta times the identity plus the diagonal of s_t, where s_t has entries equal to the norm of the i-th row of the gradient matrix over the first t rounds. The constant delta is a small nonnegative value, and the authors say it can be set to 0 in practice.
How one ADAGRAD round runs
At each round the learner suffers the loss of its current predictor and then receives a subgradient at that point. It appends the subgradient to the gradient matrix and recomputes the row norms s_t,i, which gives the diagonal of the new proximal term. The predictor then takes one step from the proximal update, either the primal-dual form or the composite mirror descent form.
In composite mirror descent, the next iterate minimizes eta times the inner product of g_t with x, plus eta times the regularizer phi(x), plus the Bregman divergence B_psi_t(x, x_t). The primal-dual form instead uses the running average of the gradients, with the proximal term divided by t. Both forms reduce to the same diagonal scaling, so the scaling of each coordinate is set once per round rather than tuned by hand.
The full-matrix version would need the root of the outer product matrix, which is impractical in high dimensions. The diagonal form avoids this, because both the inverse and the root of diag(G_t) can be computed in linear time. Because the scaling is per coordinate, sparse gradients let the update touch only the support of the gradient.
With sparse gradients the authors avoid touching untouched coordinates by evaluating the update lazily. For composite mirror descent, a coordinate that stayed at zero from t0 through t is recovered in one step by shrinking its earlier value by the regularization times the accumulated scale over t minus t0. For the l1-ball constraint, the projection is computed by sorting the ratios of the entries of v to the entries of a and finding the largest index that satisfies the threshold condition.
That projection runs in O(d log d) time, and the authors note that a randomized search can make it linear.
Why the bound depends on the gradient sums
The diagonal version reaches a regret bound that depends on gamma_T, the sum over coordinates of the norms of the gradient rows. Lemma 4 is the central technical step, bounding the sum of scaled gradient terms by twice the sum of row norms. Because the proximal term is built from diag(s_t), the dual norms of the subgradients stay inside the same quantity.
The authors note that gamma_T is also an infimum over diagonal scalings, and that this infimum sits under a square root. That square root lets the adaptive bound beat the bound obtained by simply using the identity matrix.
Under the assumption that every iterate stays within D_infinity of x star in the infinity norm, the composite mirror descent step is set to D_infinity over the square root of 2. With that step, the regret is at most the square root of 2 times D_infinity times the sum of the row norms. Zinkevich's projected gradient bound scales with the square root of the sum of squared subgradient norms and the Euclidean diameter D_2.
The step size is easy to set a priori, because it depends only on D_infinity and not on the gradient sequence. The gain is largest when the feature space is dense over a box, where the authors say the adaptive bound should perform well.
The authors use a sparse random model in which feature i appears with probability p_i equal to min{1, c times i to the minus alpha}. Taking expectations and applying Jensen's inequality bounds the expected sum of row norms by the sum over i of the square root of p_i times T. For alpha at least 2, the authors state that the sum c times the sum of i to the minus alpha over 2 is O(log d).
That is the regime where the adaptive method is expected to pay off on sparse data.
The authors also note that Zinkevich's bound is tight in a minimax sense. A better bound therefore needs extra assumptions on the input space. The adaptive bound helps on sparse-like data rather than on every sequence.
How the approach relates to AROW and competitive ratios
AROW keeps a mean prediction vector and a covariance matrix, and it updates both only when the margin is below 1. ADAGRAD, by contrast, uses the root of the inverse covariance matrix, which follows from the formal analysis. Forcing the covariance to be diagonal cuts the run time and storage of AROW, yet it still gives good performance. With full matrices, however, AROW runs in O(d2), which is faster than ADAGRAD because ADAGRAD must compute the root of a matrix.
McMahan and Streeter instead use first-principles arguments to derive their regret bounds. Because of this route, the analysis extends to composite minimization with a known additional objective term phi. The same route also lets the authors generalize and analyze both the mirror descent and the dual-averaging families.
McMahan and Streeter focus on the competitive ratio, which compares the worst-case regret of the adaptive algorithm to that of a non-adaptive algorithm. That non-adaptive comparison uses the best proximal term psi chosen in hindsight. The authors touch on this issue briefly and refer readers to McMahan and Streeter for the full treatment.
The authors believe both analyses shed insight on the problems studied here and complement each other.
Text and image ranking results
The Reuters RCV1 experiments use 0/1 bigram features that give about 2 million dimensions, and most examples hold fewer than 5000 non-zero features. Each reported row averages four runs, holding out 25% of the data for testing and running one online pass over the remaining 75%. The stepsize for RDA and FOBOS was chosen by cross-validation over passes, and the l1 multiplier was set so that RDA reached about 10% non-zero predictors.
The authors compared RDA, FOBOS, ADAGRAD-RDA, ADAGRAD-FOBOS, PA and AROW, and they report hinge loss results only.
On the ECAT category, ADAGRAD-RDA reached a test error of .044, compared to .051 for RDA. Its proportion of non-zero entries was .086, compared to .099 for RDA, so the adaptive variant was both more accurate and sparser on this category. On CCAT the picture is similar, with ADAGRAD-RDA at .053 and AROW at .061. The authors describe the adaptive algorithms as far superior to the non-adaptive ones on test error.
They say ADAGRAD-RDA and ADAGRAD-FOBOS beat AROW on all the classification tasks in the table.
The ImageNet ranking task trains 15,000 rankers, one per noun, on 79-dimensional visterm features that yield a 10,000-dimensional space. Each ranker takes 100,000 steps, sampling a positive image and a negative image for each update. The evaluation uses a test set of about 1 million images, with 10 negative images sampled for each positive image in a class.
ADAGRAD-RDA scored 0.6022 average precision, compared to 0.5813 for AROW and 0.5581 for PA.
For precision-at-k, AROW is ahead for k up to 10, with P@1 at 0.8597 compared to 0.8502 for ADAGRAD-RDA. ADAGRAD's performance catches up to AROW as k grows, so the ranking advantage depends on the cutoff. ADAGRAD-RDA also used only 73% of the input features while reaching this performance.
MNIST and income prediction results
The MNIST experiment builds Gaussian kernel features over a support set of about 3000 images, which gives a 30,000-dimensional multiclass problem. Linear classifiers don't work well on the raw pixel representation, so the kernel features give a dense, non-sparse structure to the feature space. Stepsizes were selected on the first 5000 of 60,000 training examples, and the comparison uses the multiclass hinge loss.
Ada-RDA is compared against RDA, RDA with l1/l2 regularization, adaptive RDA with l1/l2 regularization, and multiclass PA, with learning curves plotted as cumulative mistakes. On the test set, PA reached 0.062 and Ada-RDA reached 0.066, compared to 0.108 for unregularized RDA.
With the stronger l1/l2 penalty at lambda equal to 10 to the minus 3, Ada-RDA reached a test error of 0.137 with 0.144 proportion non-zero rows. RDA with the same penalty reached 0.192 with 0.532 non-zero rows, so the adaptive version was both more accurate and sparser under this setting. At lambda equal to 5 times 10 to the minus 4, Ada-RDA reached 0.100 with 0.569 non-zero rows, versus 0.138 with 0.878 for RDA.
The learning curves show Ada-RDA behaving similarly to PA, while the adaptive RDA versions are far better than their non-adaptive counterparts.
The income experiment uses 199,523 training instances and 99,762 test instances, with features quantized into bins and products taken to give 4001 dimensions. The authors compare AROW, PA, RDA, and adaptive RDA, with and without l1-regularization, and select step sizes on the first 10,000 training examples. They report ten experiments on random shuffles of the training data, with passes over proportions of .05, .1, .25, .5, or the full set.
Once the predictor has more than 1% non-zero coefficients, ADAGRAD matches AROW on this data. The variance of the test-set error rates is on the order of 10 to the minus 6, so the authors don't draw error bars.
Limits of the diagonal version
The experiments all use a diagonal approximation, built from outer products of subgradients computed along the run of the algorithm. The authors say it remains to be tested whether the full outer product matrix can further improve performance. So the full-matrix version has no empirical results in the paper.
The authors propose a block-diagonal generalization that interpolates between full-matrix proximal functions and diagonal approximations. They split v into subvectors v[i] with dimensions d_i summing to d, and build a block-diagonal sum of outer products. Corollary 12 bounds the regret with a maximum over blocks of the squared norm of x*[i], times tr(G_T^{1/2}), plus a term in eta times tr(G_T^{1/2}).
The paper doesn't test this block-diagonal version in its experiments.
Paper info
- Authors
- John Duchi, Elad Hazan, Yoram Singer
- Venue
- Journal of Machine Learning Research · Published
- Added
- 2026-11-6
- Original paper terms
- Check in the original ↗
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
John Duchi, Elad Hazan, Yoram Singer (2011). Adaptive Subgradient Methods for Online Learning and Stochastic Optimization. Journal of Machine Learning Research. https://www.jmlr.org/papers/v12/duchi11a.html
BibTeX
@article{duchi2011adaptive,
title = {{Adaptive Subgradient Methods for Online Learning and Stochastic Optimization}},
author = {John Duchi and Elad Hazan and Yoram Singer},
year = {2011},
journal = {Journal of Machine Learning Research},
url = {https://www.jmlr.org/papers/v12/duchi11a.html}
}