      Dimension-Free Adaptive Subgradient Methods with Frequent Directions


      Sifan Yang * 1 2 Yuanyu Wan * 3 4 Peijia Li 1 2 Yibo Wang 1 2 Xiao Zhang 5 Zhewei Wei 5 Lijun Zhang 1 6 2


                           Abstract                                        1. Introduction
                                                                           Adaptive subgradient methods have attracted considerable
                                                                           research interest in past decades, which simplify the learn-
       In this paper, we investigate the acceleration of                   ing rate selection while ensuring that their regret bounds are
       adaptive subgradient methods through frequent                       comparable to those obtained through manual tuning (Duchi
       directions (FD), a widely-used matrix sketching                     et al., 2010a; Hazan & Koren, 2012; Agarwal et al., 2019).
       technique. The state-of-the-art regret bound ex-                    The pioneering work of Duchi et al. (2011) introduces
       hibits a linear dependence on the dimensional-                      adaptive subgradient methods with full matrices (ADA-
       ity d, leading to unsatisfactory guarantees for                     FULL) within both the primal-dual subgradient framework
       high-dimensional problems. Additionally, it suf-                    (Xiao, 2009) and the mirror descent framework (Duchi
       fers from an O(τ 2 d) time complexity per round,                    et al., 2010b). ADA-FULL achieves a regret bound of
       which scales quadratically with the sketching size                           1/2
                                                                           O(tr(GT )), where GT is the sum of gradient outer prod-
       τ . To overcome these issues, we first propose                      ucts over T rounds, and this regret bound is better than that
       an algorithm named FTSL, achieving a tighter                        of non-adaptive methods when gradients are sparse. How-
       regret bound that is independent of the dimension-                  ever, ADA-FULL requires maintaining a preconditioning
       ality. The key idea is to integrate FD with adaptive                matrix to store the past gradient outer products and comput-
       subgradient methods under the primal-dual frame-                    ing the inverse of this preconditioning matrix, resulting in
       work and add the cumulative discarded informa-                      an O(d2 ) space complexity and an O(d3 ) time complexity,
       tion of FD back. To reduce its time complexity,                     respectively, where d is the dimensionality. Thus, ADA-
       we further utilize fast FD to expedite FTSL, yield-                 FULL is impractical for large-scale machine learning tasks
       ing a better complexity of O(τ d) while maintain-                   involving high-dimensional data.
       ing the same regret bound. Moreover, to mitigate
       the computational cost for optimization problems                    To address these limitations, several studies propose adopt-
       involving matrix variables (e.g., training neural                   ing frequent directions (FD) (Ghashami et al., 2016) to
       networks), we adapt FD to Shampoo, a popular                        reduce the computational complexity of ADA-FULL (Wan
       optimization algorithm that accounts for the struc-                 et al., 2018; Wan & Zhang, 2022; Feinberg et al., 2023).
       ture of decision, and give a novel analysis under                   In particular, Wan et al. (2018) first develop an efficient
       the primal-dual framework. Our proposed method                      variant of ADA-FULL, namely ADA-FD, by employing FD
       obtains an improved dimension-free regret bound.                    to approximate the sum of gradient outer products over
       Experimental results have verified the efficiency                   the past rounds. Let τ ≪ d denote the sketching size
       and effectiveness of our approaches.                                and ρt denote the discarded eigenvalue of FD in round t.
                                                                           ADA-FD reduces the space and time complexities to O(τ d)
                                                                                                                    1/2     PT √
                                                                           and O(τ 2 d), while enjoying O(tr(GT ) + t=1 ρt )
                                                                                        1/2     PT     √
  *
                                                                           and O(tr(GT ) + t=1 τ ρt ) regret bounds under the
     Equal contribution 1 National Key Laboratory for Novel Soft-          primal-dual subgradient framework and the mirror descent
ware Technology, Nanjing University, Nanjing, China 2 School of
Artificial Intelligence, Nanjing University, Nanjing, China 3 School       framework, respectively. Moreover, by exploiting an ac-
of Software Technology, Zhejiang University, Ningbo, China                 celerated trick for FD, Wan & Zhang (2022) further pro-
4
  Hangzhou HighTech Zone (Binjiang) Institute of Blockchain and            pose ADA-FFD with O(τ d) space and time complexities,
Data Security, Hangzhou, China 5 Gaoling School of Artificial In-          while keeping the same regret bounds. Recently, Fein-
telligence, Renmin University of China, Beijing, China 6 Pazhou            berg et al. (2023) design Sketchy-ADAGRAD (S-ADA)
Laboratory (Huangpu), Guangzhou, China. Correspondence to:
Lijun Zhang <zhanglj@lamda.nju.edu.cn>.                                                         p framework, which achieves a bet-
                                                                           under the mirror descent
                                                                                       1/2
                                                                           ter O(tr(GT ) + d(d − τ )ρ1:T ) regret bound, where
                                                                                     PT
Proceedings of the 42 nd International Conference on Machine               ρ1:T =      t=1 ρt . The key idea is to utilize a variant of
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025                FD (Chen et al., 2020), which adds back the cumulative
by the author(s).

                                                                       1
                          Dimension-Free Adaptive Subgradient Methods with Frequent Directions


Table 1. Comparison of ADA-FULL and its FD-based variants, where ADA-FD (P) and ADA-FD (M) represent ADA-FD under the
primal-dual subgradient framework the mirror descent framework, respectively. We denote λi be the i-th eigenvalue of GT .
                      Algorithms                      Regret Bounds                    Space             Time
                                                                1/2
            ADA-FULL (Duchi et al., 2011)              O(tr(GT ))                      O(d2 )            O(d3 )
                                                        1/2     PT        √
             ADA-FD (P) (Wan et al., 2018)      O(tr(GT ) +         t=1    ρt )        O(τ d)           O(τ 2 d)
                                                      1/2        √
                                               O(tr(GT ) + Tt=1 τ ρt )                                  O(τ 2 d)
                                                           P
             ADA-FD (M) (Wan et al., 2018)                                             O(τ d)
                                                    1/2
                                                          p
             S-ADA (Feinberg et al., 2023)    O(tr(GT ) + d(d − τ )ρ1:T )              O(τ d)           O(τ 2 d)
                                                          1/2       √
                   FTSL (this work)               O(tr(GT ) +           ρ1:T )         O(τ d)           O(τ 2 d)


Table 2. Comparison of FFD-based variants of ADA-FULL, where ADA-FFD (P) and ADA-FFD (M) represent ADA-FFD under the
primal-dual subgradient framework and the mirror descent framework, respectively.
                      Algorithms                        Regret Bounds                    Space              Time
                                                          1/2       PT         √
          ADA-FFD (P) (Wan & Zhang, 2022)          O(tr(GT ) +           t=1    ρt )     O(τ d)            O(τ d)
                                                        1/2        √PT
          ADA-FFD (M) (Wan & Zhang, 2022)        O(tr(GT ) + t=1 τ ρt )                  O(τ d)            O(τ d)
                                                      1/2
                                                            p
                Fast S-ADA (this work)          O(tr(GT ) + d(d − τ )ρ1:T )              O(τ d)            O(τ d)
                                                              1/2       √
                   FTFSL (this work)                 O(tr(GT ) +            ρ1:T )       O(τ d)            O(τ d)



dropped eigenvalues (referred to as the escaped mass) to            Moreover, we investigate optimization problems with ma-
keep the positive definite monotonicity of the precondition-        trix variables Xt ∈ Rm×n , a scenario commonly encoun-
ing matrix. However, its regret bound depends on d, leading         tered in deep learning tasks. In this case, one can ap-
to unsatisfactory guarantees for high-dimensional problems,         ply the aforementioned methods by flattening the gradient
and its time complexity is O(τ 2 d), which is worse than that       GX t ∈ R
                                                                              m×n
                                                                                   into a vector gt ∈ Rmn , which, however, in-
of ADA-FFD. Thus, it is natural to ask whether the regret           curs a memory usage of O(τ mn). To improve the memory
bound and the time complexity of Feinberg et al. (2023) can         efficiency, Feinberg et al. (2023) have adapted FD to Sham-
be further improved.                                                poo (Gupta et al., 2018), a popular adaptive preconditioning
                                                                    method that accounts for the structure of the parameters. Al-
In this paper, we provide an affirmative answer to this ques-
                                                                    though Feinberg et al. (2023) reduce the space complexity to
tion. Specifically, we first develop an algorithm, namely
                                                                    O(τ (m + n)), their regret bound again relies on the dimen-
Follow-the-Sketchy-Leader (FTSL), to enhance the existing
                                                                    sionality m, n. To address this issue, we integrate FD with a
regret bound. We integrate FD with ADA-FULL under the
                                                                    primal-dual variant of Shampoo and obtain a dimension-free
primal-dual framework and add the cumulative discarded
                                                                    regret bound via a novel analysis. Our approach, termed
eigenvalues of FD back. FTSL enjoys a tighter dimension-
             1/2   √                                                FTSL-Shampoo, attains an enhanced theoretical guarantee
free O(tr(GT )+ ρ1:T ) regret bound, while obtaining the            that is independent of the dimensionality m, n. We contrast
space and time complexities of O(τ d) and O(τ 2 d). Addi-           FTSL-Shampoo with previous methods in Table 3. Finally,
tionally, we propose an accelerated variant of FTSL, named          we conduct experiments on online classification and neural
FTFSL, by doubling the sketching size to reduce the num-            network training to validate the superiority of our methods.
ber of time-consuming computations. FTFSL preserves
the regret bound and space complexity of FTSL, while si-
multaneously   lowering the time complexity to O(τ d) when          2. Related Work
     √
τ ≤ d. Remarkably, we can also improve the time com-                In this section, we briefly review the related work on adap-
plexity of S-ADA by using this technique, but its regret            tive subgradient methods, their fast variants based on sketch-
bound still remains inferior to that of FTFSL. We summa-            ing, and Shampoo.
rize our results and comparisons with the previous work in
Table 1 and Table 2.


                                                                2
                             Dimension-Free Adaptive Subgradient Methods with Frequent Directions

                                                                                                                      m×n
Table 3. Comparison of adaptive subgradient methods for the case where the            has a matrix structure X t ∈ R
                                                                         PTdecision    X ⊤                       T
                                                                                                                          . We denote
                                                                                                                       X ⊤ X
the gradient GX       m×n                             X                           X                           P
              t  ∈  R     , r is the largest rank of Gt , LT = ϵIm×m  +    t=1  G t (G t  ) , R T = ϵIn×n  +     t=1 (Gt ) Gt , ϵ is a
                                                                                                                PT            X ⊤
hyper-parameter, ρL         R
                  1:T and ρ1:T represent the sum of the removed eigenvalues in FD during the approximation of
                                                                                                                        X
                                                                                                                   t=1 Gt (Gt ) and
PT       X ⊤ X                                                               PT          ⊤     mn×mn
   t=1 (Gt ) Gt , respectively. For ADA-FULL and FTFSL, we define GT =          t=1 gt gt ∈ R
                                                                                                                            X
                                                                                                       , where gt = vec(Gt ) ∈ Rmn
and vec(·) denotes the row-major vectorization of a matrix.

            Algorithms                                     Regret Bounds                                Space            Time
                                                                      1/2
  ADA-FULL (Duchi et al., 2011)                             O(tr(GT ))                                O(m2 n2 )        O(m3 n3 )
                                                                1/2     √
         FTFSL (this work)                              O(tr(GT ) +      ρ1:T )                       O(τ mn)          O(τ mn)

                                                        √      1/4     1/4
    Shampoo (Gupta et al., 2018)                      O( r tr(LT ) tr(RT ))                         O(m2 + n2 )      O(m3 + n3 )
            S-Shampoo                   √      1/4                     1/4
       (Feinberg et al., 2023)        O( r(tr(LT ) + m(ρL
                                                        1:T )
                                                             1/4
                                                                 )(tr(RT ) + n(ρR
                                                                                1:T )
                                                                                     1/4
                                                                                         ))         O(τ (m + n))       O(τ 2 mn)
                                          √      1/4                    1/4
    FTSL-Shampoo (this work)            O( r(tr(LT ) + (ρL
                                                         1:T )
                                                              1/4
                                                                  )(tr(RT ) + (ρR
                                                                                1:T )
                                                                                      1/4
                                                                                          ))        O(τ (m + n))       O(τ 2 mn)


                                                                                                                         1/2
2.1. OCO and Adaptive Subgradient Methods                             defines a symmetric matrix G̃t = ϵId×d + Gt , where
                                                                      ϵ > 0 is a hyper-parameter introduced to ensure the invert-
Online convex optimization (OCO) is a powerful paradigm
                                                                      ibility of G̃t . According to the primal-dual framework, the
for solving sequential decision-making problems (Hazan,
                                                                      update rule is given by
2016; Orabona, 2019; Zhang et al., 2018; 2022). Specifi-                                                              
cally, it is typically formulated as an iterative game between                                        1           1
                                                                              xt+1 = arg min η          g , x + Ψt (x)
a player and an adversary. In each round t ∈ [T ], the player                            x∈Rd         t t         t
begins by selecting a decision xt ∈ Rd . After that, the ad-
                                                                                   = −η G̃−1
                                                                                          t gt ,
versary chooses a convex loss function ft (·) : Rd 7→ R, and
                                                                                                        Pt
the player incurs a loss ft (xt ). The goal of the player is to       where η is the learning rate, gt = i=1 gi is the sum of the
                                  PT
minimize the cumulative loss t=1 ft (xt ) over T rounds,              received gradients and Ψt (x) = 12 ⟨x, G̃t x⟩ is the proximal
which is equivalent to minimizing the regret (Zinkevich,              term. The mirror descent version updates the decision as
2003)                                                                 follows
                          T             T
                                                                              xt+1 = arg min {η ⟨gt , x⟩ + BΨt (x, xt )}
                         X             X
               R(T ) ≜      ft (xt ) −     ft (x∗ ),        (1)
                                                                                         x∈Rd
                       t=1            t=1
                                                                                    = xt − η G̃−1
                                                                                               t gt ,
defined as the excess loss suffered by the player com-
pared to thePloss of the fixed optimal choice x∗ ∈                    where BΨt (x, y) = Ψt (x) − Ψt (y) − ⟨∇Ψt (y), x − y⟩
                 T                                                    is the Bregman divergence associated with Ψt (·). ADA-
arg minx∈Rd t=1 ft (x). Although Zinkevich√     (2003) es-
                                                                                                     1/2
tablishes the optimal regret bound of O( T ), it is data-             FULL achieves an O(tr(GT )) regret bound within the
independent. In the following, we will introduce ADA-                 both frameworks. However, ADA-FULL store the past gra-
                                                                                                                     −1/2
GRAD (Duchi et al., 2010a; 2011), a widely-used adaptive              dient outer products, i.e., Gt , and compute Gt     , resulting
                                                                               2          3
subgradient method, in both the primal-dual subgradient               in O(d ) and O(d ) space and time complexities, respec-
framework (Xiao, 2009) and the mirror descent framework               tively. The high computational cost of ADA-FULL renders
(Duchi et al., 2010b), which achieves a data-dependent re-            it unsuitable for out-of-the-box use in scenarios with limited
gret bound.                                                           resources (Sagun et al., 2017; Ghorbani et al., 2019; Sankar
                                                                      et al., 2021; Zhou, 2024).
ADAGRAD can be categorized into two forms based on
how the preconditioner G̃t is computed: ADAGRAD with                  Different from ADA-FULL, ADA-DIAG only utilizes the
full matrices (ADA-FULL) and ADAGRAD with diago-                      diagonal elements of the gradient outer product matrix, i.e.,
nal matrices (ADA-DIAG). We denote gt be a particular                 redefining G̃t = ϵId×d + diag(Gt )1/2 , which thus is com-
vector in the subdifferential set ∂ft (xt ). Since we do not          putationally more efficient. However, since the precondi-
require the loss function to be smooth, we will not explicitly        tioning matrix of ADA-DIAG only contains limited infor-
distinguish subgradients and gradients in the subsequent              mation, the regret bound of ADA-DIAG is worse than that
                                    Pt the outer product
discussion. ADA-FULL first calculates                                 of ADA-FULL when high-dimensional data is dense and
matrix of the past gradients Gt = i=1 gi gi⊤ , and further            has a low-rank structure.

                                                                  3
                          Dimension-Free Adaptive Subgradient Methods with Frequent Directions

2.2. Adaptive Subgradient Methods with Sketching                    error of FD, Luo et al. (2019) propose a new sketching strat-
                                                                    egy called robust frequent directions (RFD), which is the
To alleviate the computational burden of ADA-FULL, sev-
                                                                    first method that compensates the discarded singular val-
eral works have employed the sketching techniques to re-
                                                                    ues back into the second-order matrix. They utilize RFD
duce its space and time complexities (Krummenacher et al.,
                                                                    to propose a hyperparameter-free variant of ONS, which
2016; Wan & Zhang, 2018; Wan et al., 2018; Wan & Zhang,
                                                                    is more robust than FD-SON. In linear contextual bandit
2020; 2022; Feinberg et al., 2023). Krummenacher et al.
                                                                    setting, Chen et al. (2020) propose spectral compensation
(2016) propose ADA-LR to enhance the computational com-
                                                                    frequent directions (SCFD) to approximate the covariance
plexity of ADA-FULL by using random projection (Indyk
                                                                    matrices, which adds up the total mass of subtracted values
& Motwani, 1998; Achlioptas, 2003). While ADA-LR re-
                                                                    during FD procedure. SCFD can approximate a sequence of
duces the time complexity to O(τ d2 ), its space complexity
                                                                    incremental covariance matrices while keeping the positive
remains at O(d2 ), where τ ≪ d is the sketching size. To fur-
                                                                    definite monotonicity. In fact, S-ADA can be viewed as a
ther improve the efficiency, they develop RADAGRA, which
                                                                    combination of ADA-FULL with SCFD.
incorporates a more randomized approximation, achieving
space and time complexities of O(τ d) and O(τ 2 d), respec-
                                                                    2.3. Shampoo
tively. However, RADAGRA is not supported by rigorous
theoretical analysis. Later, Wan & Zhang (2018) develop             Shampoo (Gupta et al., 2018) is an adaptive optimization
ADA-DP based on random projection, which achieves space             method that takes the structure of the parameter space into
and time complexities of O(τ d) and O(τ 2 d), while provid-         consideration and thus is more efficient than ADA-FULL
ing theoretical guarantees.                                         in scenarios where the decision is a matrix. Specifically,
Another class of sketching-based adaptive subgradient meth-         Shampoo maintains a set of preconditioning matrices, each
ods adopts frequent directions (FD) (Ghashami et al., 2016),        of which operates on one dimension, while aggregating
a stable matrix sketching technique. Wan et al. (2018) first        information across the remaining dimensions. For exam-
apply FD with ADA-FULL under both the primal-dual sub-              ple, for a parameter matrix Xt ∈ Rm×n and its gradient
gradient framework and the mirror descent framework by              GXt ∈R
                                                                              m×n
                                                                                   , ADA-FULL treats the matrix-shaped gradi-
maintaining a matrix Bt ∈ Rd×τ , such that Bt Bt⊤ ≈ Gt ∈            ent as a vector of size mn and its preconditioner G̃t has the
Rd×d , where Gt represents the gradient covariance ma-              size of mn × mn, which leads to O(m2 n2 ) and O(m3 n3 )
trix. Their approach, ADA-FD, obtains space and time                space and time complexities, respectively. In contrast, Sham-
complexities of O(τ d) and O(τ 2 d), respectively. ADA-FD           poo constructs two smaller matrices, Lt ∈ Rm×m and
                                    1/2    PT √                     Rt ∈ Rn×n , to precondition the rows and columns of GX         t ,
achieves regret bounds of O(tr(GT ) + t=1 ρt ) and
         1/2   PT      √                                            respectively, which only requires an O(m2 + n2 ) memory
O(tr(GT ) + t=1 τ ρt ) under the primal-dual subgra-                cost and an O(m3 + n3 ) computation complexity. Since
dient framework and the mirror descent framework, where             the parameters in the deep learning tasks often have matrix
ρt is the removed eigenvalue of FD in round t. Furthermore,         structures, Shampoo has strong empirical performance and
Wan & Zhang (2022) introduce a fast variant of ADA-FD,              receives lots of attentions (Anil et al., 2020; Liu et al., 2023;
named ADA-FFD, by doubling the sketching size. ADA-                 Eschenhagen et al., 2024).
FFD improves the time complexity to O(τ d) while keeping
the same regret bounds. Although ADA-FD and ADA-FFD                 However, the memory demands of Shampoo may still be
enjoy better space and time complexities, as mentioned by           prohibitive for large-scale neural networks. Anil et al. (2020)
Feinberg et al. (2023), their regret bounds are Ω(T 3/4 ) in        address the memory cost of Shampoo by introducing two
some cases. For this reason, Feinberg et al. (2023) pro-            variants. The first variant, Blocked Shampoo, partitions the
pose S-ADA by adding back the discarded information                 decision variable Xt ∈ Rm×n into mn/b2 blocks, where
of FD to the FD-based preconditioner instead of utilizing           b is the block size and b ≤ min(m, n). However, Blocked
a fixed diagonal regularization. While S-ADA enjoys an              Shampoo depends on the specific ordering of neurons in the
         1/2  p                                                     hidden layers. The second variant relies on one-sided covari-
O(tr(GT )+ d(d − τ )ρ1:T ) regret bound, it suffers from
                                                                    ance upper bounds, which cannot effectively handle vector
a linear dependence on the dimensionality d. Moreover, it
                                                                    parameters. Feinberg et al. (2023) first incorporate FD into
only achieves an unsatisfactory time complexity of O(τ 2 d).
                                                                    Shampoo and reduce its memory to O(τ (m + n)). Their
Additionally, we also notice that FD has been utilized to ac-       method, named Sketchy-Shampoo (S-Shampoo), uses two
celerate online Newton step (ONS) algorithm (Hazan et al.,          low-rank matrices L̂t ∈ Rm×τ and R̂t ∈ Rn×τ to approxi-
2007) for exponentially concave functions, and LinUCB               mate the preconditioning matrices Lt and Rt , respectively.
(Chu et al., 2011) algorithm in linear contextual bandit set-       While S-Shampoo improves the space complexity of Sham-
ting, which also need to maintain a covariance matrix. Luo          poo, its regret bound relies on the dimensions m, n, leading
et al. (2016) first apply FD in ONS to construct a low-rank         to the unsatisfactory performance when the dimensions are
approximation of the matrix. To reduce the approximation            high.

                                                                4
                             Dimension-Free Adaptive Subgradient Methods with Frequent Directions

3. Preliminaries                                                          Algorithm 1 Frequent Directions (FD)
                                                                           1: Input: Sketching matrix Bt−1 ∈ Rd×τ (with its last
3.1. Assumptions
                                                                              column as 0d ), new gradient vector gt ∈ Rd
We adopt two common assumptions of OCO (Hazan, 2016).                                                        last column of Bt−1
                                                                           2: Insert the gradient gt into theq
                                                                                                                                (t)
Assumption 3.1. All loss functions ft (·) are convex.                      3: Perform SVD to Bt−1 = Ut              diag(λ[1:τ ] )Vt⊤ , where
Assumption 3.2. The optimal decision x∗ ∈ Rd is bounded                       Ut ∈ Rd×τ      q
by D, i.e., ∥x∗ ∥ ≤ D.                                                                              (t)       (t)
                                                                           4: Compute Bt = Ut diag(λ[1:τ ] − λτ )
                                                                                                  (t)
Besides, we introduce two assumptions for the scenario                     5: Return: Bt and λτ
where the decision has a matrix structure. These assump-
tions have also been used in prior works (Gupta et al., 2018;
Feinberg et al., 2023).                                                   frequent directions (SCFD), which adds up the total mass of
                                                                                             Pt      (t)
                                                                          subtracted values i=1 λτ during FD procedure. SCFD
Assumption 3.3. The rank of gradient matrix GX
                                             t is                         is able to approximate a sequence of high-dimensional ma-
bounded by r, i.e., maxt∈[T ] rank(GX
                                    t ) ≤ r.
                                                                          trices while preserving positive definite monotonicity, i.e.,
Assumption 3.4. The optimal parameter X ∗ ∈ Rm×n is                       Pt       (i)           ⊤
                                                                                                       Pt−1 (i)                 ⊤
                                                                             i=1 λτ Id×d + Bt Bt ⪰       i=1 λτ Id×d + Bt−1 Bt−1 .
bounded by DM , i.e., ∥X ∗ ∥F ≤ DM .

3.2. Frequent Directions
                                                                          4. The Proposed Methods

Frequent directions (FD) (Ghashami et al., 2016) is a de-                 In this section, we first present FTSL, which incorporates
terministic matrix sketching technique by extending the                   FD with ADA-FULL under the primal-dual framework to
well-known algorithm for approximating item frequencies                   obtain a better regret bound. Furthermore, we accelerate
in online data streams (Misra & Gries, 1982). For a given                 FTSL by employing an accelerated trick for FD, achiev-
matrix A ∈ Rd×t , FD aims to generate a matrix B ∈ Rd×τ                   ing enhanced computational efficiency. We demonstrate
such that BB ⊤ ≈ AA⊤ , where τ ≪ min{t, d} is the                         that this technique can be applied to expediting S-ADA
sketching size. The procedure is summarized in Algorithm                  (Feinberg et al., 2023). Additionally, we consider optimiza-
1. In each round t, we denote the low-rank matrix Bt−1 =                  tion problems involving matrix variables and propose an
[b1 , b2 , ..., bτ −1 , 0d ] ∈ Rd×τ , where the last column is 0d .       improved FD-based variant of Shampoo.
Upon receiving the new gradient gt ∈ Rd , it is inserted into
the last column of Bt−1 . Next, we perform      singular value de-        4.1. Our Improved Result
                                         q
                                                   (t)
composition (SVD) on Bt−1 = Ut           diag(λ[1:τ ] )Vt⊤ , and          Before introducing our algorithms, we first briefly discuss
                                        q
                                                 (t)         (t)          why the regret bound of S-ADA (Feinberg et al., 2023) relies
the matrix Bt is computed as Bt = Ut diag(λ[1:τ ] − λτ )                  on the dimensionality d, offering motivation for the methods
with its last column set to 0d . The time complexity of FD is             we design. Since S-ADA is under the mirror descent frame-
O(τ 2 d) for each iteration, which is dominated by comput-                work, its regret bound contains the Bregman divergence
ing the SVD of Bt−1 , causing a quadratic dependence on                   term, that is,
sketching size τ .
                                                                                        −1
                                                                                      T
                                                                                                                                 !
                                                                                      X
To further reduce the time complexity of FD, Ghashami et al.                                        ∗                 ∗
                                                                                                                               
                                                                                 O          BΨt+1 (x , xt+1 ) − BΨt (x , xt+1 )
(2016) propose fast frequent directions (FFD) by expanding                           t=0
the space of Bt . Specifically, FFD maintains a matrix B0 =                         T −1
                                                                                                                        !
0d×2τ ∈ Rd×2τ . In each round t, we insert the received
                                                                                    X                  2
                                                                              =O           ∥xt+1 − x∗ ∥Ge1/2 −Ge1/2         ,
                                                                                                              t+1   t
gradient gt into the first all-zero column of Bt−1 . Once Bt                         t=0

                     q all-zero columns, we perform SVD
no longer contains any
                                                                                                        1/2
to obtain Bt = Ut
                                 (t)
                       diag(λ[1:2τ ] )Vt⊤ . Then, the matrix              where Ψt (x) = 12 ⟨x, G̃t x⟩ is the proximal term, G̃t
                           q                                              is the preconditioning matrix and BΨt (x, y) = Ψt (x) −
                                            (t)      (t)
Bt is updated as Bt = Ut diag(max{λ[1:2τ ] − λτ , 0}),                    Ψt (y) − ⟨∇Ψt (y), x − y⟩. To facilitate summation, they
                                                                                                          PT −1      1/2     1/2
ensuring that the last τ + 1 columns are set to 0d . As we                upper bound this term by O( t=0 tr(G̃t+1 − G̃t )) and
only need to update the matrix Bt every τ + 1 rounds, the                 then exploit the additivity of the trace, which yields a
time complexity of FFD is O(τ d).                                                            1/2
                                                                          bound of O(tr(G̃T )). Feinberg et al. (2023) add the cu-
Since FD removes a singular value per round, the matrix                   mulative removed eigenvalues of FD ρ1:t into G̃t . Conse-
Bt Bt⊤ does not preserve monotonicity. To resolve this lim-               quently, the Bregman divergence term is O(tr((BT BT⊤ +
                                                                                                                                 1/2
itation, Chen et al. (2020) propose spectral compensation                 ρ1:T Id×d )1/2 )), which is further bounded by O(tr(GT ) +

                                                                      5
                            Dimension-Free Adaptive Subgradient Methods with Frequent Directions

Algorithm 2 Follow the Sketchy Leader (FTSL)                        Algorithm 3 Follow the Fast Sketchy Leader (FTFSL)
 1: Input: Learning rate η, sketching size τ                         1: Input: Learning rate η, sketching size τ
 2: Initialize x1 = 0d , g0 = 0d , G̃0 = 0d×d , B0 = 0d×τ            2: Initialize x1 = 0d , G̃0 = 0d×d , r0 = 0, M0 =
 3: for t = 1 to T do                                                   02τ ×2τ , V0 = 0d×2τ , g0 = 0d , ρ1 = 0
 4:    Play the decision xt and suffer the loss ft (xt )             3: for t = 1 to T do
 5:    Query the gradient gt = ∇ft (xt ) and calculate gt =          4:    Play the decision xt and suffer the loss ft (xt )
       gt−1 + gt                                                     5:    Query the gradient gt = ∇ft (xt ) and compute gt′ =
                                                                                    ⊤
 6:    Send Bt−1 and gt to Algorithm 1                                     Vt−1 (Vt−1  gt ), gt = gt−1 + gt
                                                                               ′
 7:    Receive Bt and set ρt = λtτ                                   6:    if gt ̸= gt then
                                                         −1/2                                                               g −g′
 8:    Calculate G̃t = Bt Bt⊤ + ρ1:t Id×d and derive G̃t             7:       Set rt−1 = rt−1 + 1, calculate vrt−1t−1
                                                                                                                      = ∥gtt −gt′ ∥
                                                                                                                                t
 9:    Update xt+1 according to (2)                                           and set the rt−1 -th column of Vt−1 as vrt−1t−1
10: end for                                                          8:    end if
                                                                     9:    Set rt = rt−1 , Vt = Vt−1
                                                                                                         ⊤         ⊤
p                                                                   10:    Compute Mt = Mt−1 + (Vt−1        gt )(Vt−1 gt )⊤
   d(d − τ )ρ1:T ), where BT ∈ Rd×τ is the sketching ma-
                PT                                                  11:    Perform SVD decomposition on Mt , which is
trix and GT = t=1 gt gt⊤ . As a result, the regret bound of                                        (t)
                                                                           Ut Σt Ut⊤ = Ut diag(λ[1:2τ ] )Ut⊤ = Mt
S-ADA exhibits a linear dependence on d, resulting in an
unsatisfactory performance in high-dimensional problems.            12:    Calculate G̃t = ρ1:t Id×d + Vt Ut Σt Ut Vt⊤
                                                                    13:    Update xt+1 according to (2) and set ρt+1 = 0
To overcome this issue, we propose integrating FD with              14:    if rt = 2τ then
ADA-FULL under the primal-dual subgradient framework.                                        (t)                       (t)
                                                                    15:       Set ρt+1 = λτ , Mt = diag(max{λ[1:2τ ] −
Our method, which we call FTSL, is outlined in Algorithm                       (t)
2. Specifically, we employ the FD to construct a low-rank                    λτ , 0}) and Vt = Vt Ut
approximation of the outer product matrix of gradients Gt ,         16:      Set rt = τ − 1 and the τ -th to 2τ -th columns of
aiming to reduce the computational complexity. To ensure                     Vt be 0d
the monotonicity of the preconditioning matrix G̃t , we also        17:   end if
                                                                    18: end for
add back the cumulative escaped masses ρ1:t into G̃t . Un-
der the primal-dual subgradient framework, we update the
decision as follows
           xt+1 = arg min {η ⟨gt , x⟩ + Ψt (x)}                     complexity is O(τ 2 d) per round, which arises from the SVD
                                                                                                    −1/2
                     x∈Rd
                                                          (2)       of Bt and the calculation of G̃t      (the detailed discussions
                         −1/2                                       can be found in Appendix A). While the time complexity of
                 = −η G̃t       gt ,
                                                                    FTSL is linear with respect to the dimensionality d, it still
             Pt
where gt = i=1 gi is the sum of the past gradients. Ac-             suffers from the quadratic dependence on the sketching size
cording to the analysis under the primal-dual framework, the        τ . To further alleviate its computational burden, we develop
                                                    1/2             a fast variant of FTSL in the next section.
regret of FTSL is upper bounded by the term O(∥G̃T ∥) =
                                            1/2     √
O(∥(BT BT⊤ + ρ1:T Id×d )1/2 ∥) ≤ O(∥GT ∥ + ρ1:T ),
thereby avoiding the dependence on d.                               4.2. Our Accelerated Variant

Formally, we present the theoretical guarantee of FTSL.             The time complexity of FTSL suffers from a quadratic de-
                                                                    pendence on the sketching size τ , which is introduced by
Theorem 4.1. Under Assumption 3.1 and Assumption 3.2,               the SVD decomposition on Bt ∈ Rd×τ in FD. Drawing in-
by setting the learning rate η = √D2 , FTSL ensures                 spiration from the previous work (Chen et al., 2020; Wan &
                     
                          1/2  √                                   Zhang, 2022), we adopt a more efficient strategy for comput-
            R(T ) ≤ O tr(GT ) + ρ1:T ,                              ing the SVD of sketching matrix Bt . Our method, termed
                                                                    FTFSL, is presented in Algorithm 3.
              PT        ⊤
where GT =      t=1 gt gt .                                         Different from FD, the sketching matrix Bt is expanded to
                                                                    Rd×2τ in FFD. Rather than explicitly maintaining Bt , we
Remark. In contrast to the previous regret bound of
        1/2   p                                                     use two matrices Vt and Mt to form Bt . Specifically, Vt =
O(tr(GT ) + d(d − τ )ρ1:T ) (Feinberg et al., 2023), the                            t
                                                                    [v1t , · · · , v2τ ] ∈ Rd×2τ consists of rt orthonormal vectors
regret bound of FTSL is dimension-free, a benefit realized          (rt ≤ 2τ ) and the rest columns are zero vectors, and Mt ∈
from the primal-dual subgradient framework.                         R2τ ×2τ is a symmetric matrix. We require that Vt and Mt
                                                                                                  1/2
Remark. Since we only maintain a sketching matrix Bt ∈              satisfy the condition Vt Mt = Bt ∈ Rd×2τ . In each round
Rd×τ , the space complexity of FTSL is O(τ d). Its time             t, after receiving the gradient gt , we first check whether this

                                                                6
                          Dimension-Free Adaptive Subgradient Methods with Frequent Directions

vector lies within the subspace spanned by Vt−1 . If the            Algorithm 4 Frequent Directions in General Form
vector is not contained within the subspace, we normalize it         1: Input: Sketching matrix Bt−1 ∈ Rd×τ , a new symmet-
and subsequently add it to Vt−1 , thereby enlarging the span            ric PSD matrix Mt ∈ Rd×d
                                      ⊤                                                                     ⊤
of the subspace and ensuring Vt−1 Vt−1   gt = gt (Step 6-8).         2: Eigendecompose U t diag(λ(t) )U t = Bt−1 Bt−1  ⊤
                                                                                                                          + Mt ,
Then we have the following equation                                                       d×τ
                                                                        define Ut ∈ R          be the first τ columns of U t and
                                                                          (t)
                        ⊤
            Vt−1 Mt−1 Vt−1 + gt gt⊤                                     λ[1:τ ] be its eigenvalues
                                                                                             q
                          ⊤                                                                           (t)      (t)
                             gt gt⊤ Vt−1 Vt−1
                                         ⊤
           =Vt−1 Mt−1 + Vt−1                  .                      3: Compute Bt = Ut diag(λ[1:τ ] − λτ )
                                                                                           (t)
                                                                     4: Return: Bt and λτ
This implies that we only need to perform an SVD de-
                             ⊤          ⊤
composition on Mt−1 + (Vt−1      gt )(Vt−1 gt )⊤ ∈ R2τ ×2τ ,
which only takes a time complexity of O(τ 3 ). Next, we             Algorithm 5 FTSL-Shampoo
incorporate the escaped masses to keep the monotonicity
                                                                    Require: Learning rate η, sketching size τ , ϵ > 0
of the preconditioning matrix G̃t . When rt = 2τ , we need
                                                                     1: Initialize X1 = 0m×n , L̂0 = 0m×τ , R̂0 = 0n×τ , L̃0 =
to set rt = τ − 1 and set the last τ + 1 columns of the                                          X
sketching matrix Bt to be zero (Step 14-16). Given the de-              0m×m , R̃0 = 0n×n , G0 = 0m×n
                             (t)                                     2: for t = 1 to T do
composition Mt = Ut diag(λ[1:2τ ] )Ut⊤ and the relationship
     1/2
                                                                     3:    Play the decision Xt and suffer the loss ft (Xt )
Vt Mt = Bt , this can be efficiently achieved by updating            4:    Query the gradient GX   t = ∇ft (Xt ) ∈ R
                                                                                                                        m×n
                                                                                                                             and
                     (t)     (t)                                                         X     X
Mt as diag(max{λ[1:2τ ] − λτ , 0}), calculating Vt = Vt Ut ,               calculate Gt = Gt−1 + Gt    X
and setting the last τ + 1 columns of Vt to zero.                          Send L̂t−1 and GX        X ⊤
                                                                     5:                       t (Gt ) to Algorithm 4 and re-
                                                                                        L
In the following, we provide the theoretical guarantee of                  ceive L̂t , ρt
                                                                                                   ⊤ X
FTFSL.                                                               6:    Send R̂t−1 and (GX   t ) Gt to Algorithm 4 and re-
                                                                                        R
Theorem 4.2. Under Assumption 3.1 and Assumption 3.2,                      ceive R̂t , ρt
by setting the learning rate η = √D2 , FTFSL ensures                 7:    Update L̃t = L̂t L̂⊤          L
                                                                                              t + (ϵ + ρ1:t )Im×m
                                                                                               ⊤
                                                                     8:    Update R̃t = R̂t R̂t + (ϵ + ρR1:t )In×n
                      
                           1/2  √                                   9:    Update Xt+1 according to (3)
             R(T ) ≤ O tr(GT ) + ρ1:T .                             10: end for

Remark. In each round, FTFSL computes gt′ , vrt−1 t −1
                                                       , Mt ,
SVD of Mt and update xt , with respective time complexities         4.3. Optimization Problems with Matrix Variables
of O(τ d), O(d), O(τ d), O(τ 3 ) and O(τ d). Additionally,
we only compute Vt = Vt Ut every τ + 1 rounds,                      In this section, we consider a practical scenario where the
                                             √ incurring            decision variable is a matrix Xt ∈ Rm×n , which is common
a time complexity of O(τ 2 d). When τ ≤ O( d), the time
complexity of FTSL is O(τ d) per round.                             for parameters in deep learning tasks. In such settings, the
                                                                    loss f (X) is typically a smooth non-convex function, and
Notably, we can also reduce the time complexity of S-ADA            the objective is to find a point XT such that ∥∇f (XT )∥ ≤ ϵ.
(Feinberg et al., 2023) by adopting this technique. We re-          As pointed out by Agarwal et al. (2019), a smooth non-
place the update rule for the decision variable xt of FTFSL         convex problem can be transformed into solving a series of
(Step 13) with the following                                        offline convex problems by using the online to batch conver-
                                   −1/2                             sion. Therefore, we can derive the non-convex optimization
                 xt+1 = xt − η G̃t        gt ,                      guarantees from online regret bounds, with further details
                                                                    provided in Appendix B.
and analyze under the mirror descent framework.
                                                                    To utilize the structure information, Gupta et al. (2018)
Then we provide the theoretical guarantee of Fast S-ADA.
                                                                    propose Shampoo, which retains the matrix structure of the
Theorem 4.3. Under Assumption 3.1 and assuming D1 =                 gradient and maintains two matrices as preconditioners of
                                                       D1
maxt∈[T ] ∥xt − x∗ ∥, by setting the learning rate η = √   ,        the rows and columns of GX
                                                         2                                       t , yielding a space complexity
Fast S-ADA ensures                                                  of O(m2 + n2 ). While S-Shampoo (Feinberg et al., 2023)
                  
                         1/2
                                 p                                 improves the space complexity of Shampoo to O(τ (m+n)),
        R(T ) ≤ O tr(GT ) + d(d − τ )ρ1:T .
                                                                    its regret bound again relies on the dimensionality m, n. To
                                                                    further reduce its regret bound, we propose FTSL-Shampoo
Remark. Compared to S-ADA (Feinberg et al., 2023),                  by integrating FD with Shampoo under the primal-dual
       √ obtains a better O(τ d) time complexity when
Fast S-ADA                                                          framework. Our method achieves a superior dimension-free
τ ≤ O( d), while preserving the same regret bound.                  guarantee with obtaining an O(τ (m + n)) space complexity,

                                                                7
                                         Dimension-Free Adaptive Subgradient Methods with Frequent Directions

                                                                      200
                98
                                                                      150                                                100
                96
     Accuracy




                                                                                                                  Time
                                                               Loss
                94                                                    100
                                                                                                                         50
                92                                                     50

                900                                                     00                                                0
                          500      1000     1500       2000                    500      1000    1500       2000            0       500      1000        1500      2000
                              # of iterations                                     # of iterations                                    # of iterations

                   ADA-DIAG            RADAGRAD            FD-SON            ADA-FFD (M)            ADA-FFD (P)            S-ADA           Fast S-ADA            FTFSL


                                                                    Figure 1. Results for Gisette dataset.


              90
              88                                                     1500                                                 60
   Accuracy




              86                                                     1000                                                 40




                                                                                                                   Time
                                                              Loss




              84
                                                                      500                                                 20
              82
              800                                                       00                                                 0
                                2000            4000                                   2000            4000                 0              2000                4000
                              # of iterations                                        # of iterations                                     # of iterations

                   ADA-DIAG            RADAGRAD            FD-SON            ADA-FFD (M)            ADA-FFD (P)            S-ADA           Fast S-ADA            FTFSL


                                                                    Figure 2. Results for Epsilon dataset.


                                                                                                        PT       X ⊤ X
which is presented in Algorithm 5.                                                         ϵIn×n +         t=1 (Gt ) Gt , FTSL-Shampoo ensures
                                                                                                                         √
Specifically, we utilize FD to approximate the left and                                                 R(T ) ≤ O
                                                                                                                                     1/4
                                                                                                                             r(tr(LT ) + (ρL     1/4
                                                                                                                                            1:T )    )
right preconditioning matrices for Shampoo. We main-                                                                                              
tain two matrices
            Pt      L̂t ∈ Rm×τ , R̂t ∈ Rn×τPt to ensure    that                                                                 1/4
                                                                                                                         · (tr(RT ) + (ρR
                                                                                                                                        1:T )
                                                                                                                                             1/4
                                                                                                                                                 ) ,
      ⊤              X    X ⊤          ⊤             X ⊤ X
L̂t L̂t ≈          G
               i=1 i   (G i ) , R̂t R̂ t ≈   i=1  (G i )  G  i .
We track the cumulative escaped masses ρL                R
                                              1:t and ρ1:t of                              where ρL          R
                                                                                                  1:T and ρ1:T represent the sum of the re-
the left and right preconditioning matrices separately, and                                moved               FD during the approximation of
                                                                                                 eigenvalues ofP
                                                                                           PT     X   X ⊤       T     X ⊤ X
then add them back into L̃t and R̃t to uphold the monotonic-                                    G
                                                                                             t=1 t  (Gt )  and  t=1 (Gt ) Gt , respectively.
ity. To achieve a dimension-free regret bound with FD, we                                                                               √       1/4
update the parameters as follows:                                                          Remark. In comparison to the previous O( r(tr(LT ) +
                                                                                                               1/4
                                                                                           m(ρL 1:T )
                                                                                                     1/4
                                                                                                         )(tr(RT ) + n(ρR
                                                                                                                        1:T )
                                                                                                                             1/4
                                                                                                                                 )) regret bound of S-
                                           −1/4    X     −1/4
                                                                                           Shampoo (Feinberg et al., 2023), we achieve a dimension-
                         Xt+1 = −η L̃t            Gt R̃t        ,                (3)       free regret bound while enjoying the same O(τ (m + n))
                                                                                           space complexity.
        X     Pt
where Gt = i=1 GX     i is the sum of the past gradients,
and conduct the analysis under the primal-dual framework.
                                                                                           5. Experiments
Then we present the regret bound of FTSL-Shampoo.                                          In this section, we assess the performance of the proposed
                                                                                           methods via numerical experiments on online classification
Theorem 4.4. Under Assumption 3.1, Assumption 3.3 and                                      and image classification tasks. Due to the limited space, we
Assumption 3.4, by setting the learning rate η = D√M
                                                   r
                                                     and                                   only present a subset of the experimental outcomes, with
                                  PT      X    X ⊤
further denoting LT = ϵIm×m + t=1 Gt (Gt ) , RT =                                          the comprehensive set of results accessible in Appendix C.

                                                                                       8
                             Dimension-Free Adaptive Subgradient Methods with Frequent Directions

Online Classification. First, we perform online classifi-                  Impact Statement
cation to evaluate the performance of our methods with
two real-world datasets from LIBSVM (Chang & Lin,                          This paper presents work whose goal is to advance the field
2011) repository: Gisette and Epsilon, which are high-                     of Machine Learning. There are many potential societal
dimensional and dense. Particularly, Gisette dataset con-                  consequences of our work, none which we feel must be
tains 6000 training samples and 1000 testing samples, each                 specifically highlighted here.
with 5000 features. Epsilon dataset consists of 400, 000
training samples and 100, 000 testing samples, each with                   References
2000 features. In each round t ∈ [T ], a batch of train-
                                                                           Achlioptas, D. Database-friendly random projections:
ing examples {(wt,1 , yt,1 ) , . . . , (wt,n , yt,n )} arrive, where
                                                                             Johnson-lindenstrauss with binary coins. Journal of com-
(wt,i , yt,i ) ∈ [−1, 1]d × {−1, 1}, i = 1, . . . , n. The online
                                                                             puter and System Sciences, 66(4):671–687, 2003.
learner aims to predictP   a linear model xt and suffers the
                             n
hinge loss ft (xt ) = n1 i=1 max{0, 1 − yt x⊤          t wt,i }. For       Agarwal, N., Bullins, B., Chen, X., Hazan, E., Singh, K.,
Gisette dataset, we set the batch size n = 32, the sketch-                   Zhang, C., and Zhang, Y. Efficient full-matrix adaptive
ing size τ = 50 to be 1% of the original dimensionality,                     regularization. In Proceedings of the 36th International
and T = 2000. For Epsilon dataset, we set the batch size                    Conference on Machine Learning, pp. 102–110, 2019.
n = 128, τ = 20 and T = 5000.
                                                                           Anil, R., Gupta, V., Koren, T., Regan, K., and Singer, Y.
Results. Following Duchi et al. (2011), we adopt the perfor-                 Scalable second order optimization for deep learning.
mance of accuracy on the testing data to compare different                   arXiv preprint arXiv:2002.09018, 2020.
methods. To better demonstrate the improvements of our
methods, we additionally plot the training loss and runtime                Chang, C.-C. and Lin, C.-J. Libsvm: a library for support
of various methods. From Figure 1 and Figure 2, we ob-                       vector machines. ACM transactions on intelligent systems
serve that FTFSL outperforms all other methods in both                       and technology, 2(3):1–27, 2011.
loss and testing accuracy, aligning with its superior regret               Chen, C., Luo, L., Zhang, W., Yu, Y., and Lian, Y. Efficient
bound. Moreover, FTFSL and Fast S-ADA exhibit signifi-                       and robust high-dimensional linear contextual bandits. In
cantly lower runtimes compared to S-ADA, owing to their                      Proceedings of the 29th International Joint Conference
superior time complexities.                                                  on Artificial Intelligence, pp. 4259–4265, 2020.
                                                                           Chu, W., Li, L., Reyzin, L., and Schapire, R. E. Contextual
6. Conclusion
                                                                             bandits with linear payoff functions. In Proceedings of the
In this paper, we investigate adaptive subgradient methods                   14th International Conference on Artificial Intelligence
with Frequent Directions (FD). First, we introduce a novel                   and Statistics, pp. 208–214, 2011.
method, named FTSL, to achieve a tighter dimension-free
                         1/2    √                                          Duchi, J., Hazan, E., and Singer, Y. Adaptive subgradient
regret bound of O(tr(GT ) + ρ1:T ). Next, we propose a                       methods for online learning and stochastic optimization.
fast version of FTSL by accelerating FD used in it, which                    In Proceedings of the 23rd Annual Conference on Learn-
improves the time complexity to O(τ d) while preserving                      ing Theory, 2010a.
the same regret bound. This technique can also be applied
to expedite S-ADA (Feinberg et al., 2023). Additionally,                   Duchi, J., Hazan, E., and Singer, Y. Adaptive subgradient
we consider a more complex scenario where the decision                       methods for online learning and stochastic optimization.
is a matrix, and adapt FD to Shampoo under the primal-                      Journal of machine learning research, 12(7), 2011.
dual framework to obtain a better dimension-free bound.
                                                                           Duchi, J. C., Shalev-Shwartz, S., Singer, Y., and Tewari,
Finally, we substantiate the effectiveness and efficiency of
                                                                            A. Composite objective mirror descent. In Proceedings
our methods through experimental validation.
                                                                             of the 23rd Annual Conference on Learning Theory, pp.
                                                                            14–26, 2010b.
Acknowledge
                                                                           Eschenhagen, R., Immer, A., Turner, R., Schneider, F., and
This work was partially supported by National Science                        Hennig, P. Kronecker-factored approximate curvature
and Technology Major Project (2022ZD0114801), NSFC                           for modern neural network architectures. In Advances in
(U23A20382), and Yongjiang Talent Introduction Pro-                          Neural Information Processing Systems 37, 2024.
gramme (2023A-193-G). The authors would like to thank
the anonymous reviewers for their constructive suggestions.                Feinberg, V., Chen, X., Sun, Y. J., Anil, R., and Hazan, E.
                                                                             Sketchy: Memory-efficient adaptive regularization with
                                                                             frequent directions. In Advances in Neural Information
                                                                             Processing Systems 37, 2023.

                                                                       9
                         Dimension-Free Adaptive Subgradient Methods with Frequent Directions

Ghashami, M., Liberty, E., Phillips, J. M., and Woodruff,          Luo, H., Agarwal, A., Cesa-Bianchi, N., and Langford, J.
  D. P. Frequent directions: Simple and deterministic ma-            Efficient second order online learning by sketching. In
  trix sketching. SIAM Journal on Computing, 45(5):1762–             Advances in Neural Information Processing Systems 29,
 1792, 2016.                                                         2016.

Ghorbani, B., Krishnan, S., and Xiao, Y. An investigation          Luo, L., Zhang, W., Zhang, Z., Zhu, W., Zhang, T., and
  into neural net optimization via hessian eigenvalue den-           Pei, J. Sketched follow-the-regularized-leader for on-
  sity. In Proceedings of the 36th International Conference          line factorization machine. In Proceedings of the 24th
  on Machine Learning, pp. 2232–2241, 2019.                          ACM SIGKDD International Conference on Knowledge
                                                                     Discovery & Data Mining, pp. 1900–1909, 2018.
Gupta, V., Koren, T., and Singer, Y. Shampoo: Precondi-
  tioned stochastic tensor optimization. In Proceedings of         Luo, L., Chen, C., Zhang, Z., Li, W.-J., and Zhang, T. Ro-
  the 35th International Conference on Machine Learning,             bust frequent directions with application in online learn-
  pp. 1842–1850, 2018.                                               ing. Journal of Machine Learning Research, 20(45):1–41,
                                                                     2019.
Hager, W. W. Updating the inverse of a matrix. SIAM
  review, 31(2):221–239, 1989.                                     Merity, S. The wikitext long term dependency language
                                                                    modeling dataset. Salesforce Metamind, 9, 2016.
Hazan, E. Introduction to online convex optimization.
 Foundations and Trends in Optimization, 2(3-4):157–325,           Misra, J. and Gries, D. Finding repeated elements. Science
  2016.                                                             of computer programming, 2(2):143–152, 1982.
Hazan, E. and Koren, T. Online gradient descent with adap-         Orabona, F. A modern introduction to online learning. arXiv
  tive step size for convex optimization. In Proceedings             preprint arXiv:1912.13213, 2019.
  of the 25th Annual Conference on Learning Theory, pp.
  77–90, 2012.                                                     Sagun, L., Evci, U., Guney, V. U., Dauphin, Y., and Bottou,
                                                                     L. Empirical analysis of the hessian of over-parametrized
Hazan, E., Agarwal, A., and Kale, S. Logarithmic regret al-
                                                                     neural networks. arXiv preprint arXiv:1706.04454, 2017.
  gorithms for online convex optimization. Machine Learn-
  ing, 69(2-3):169–192, 2007.                                      Sankar, A. R., Khasbage, Y., Vigneswaran, R., and Bala-
                                                                     subramanian, V. N. A deeper look at the hessian eigen-
He, K., Zhang, X., Ren, S., and Sun, J. Deep residual
  learning for image recognition. In Proceedings of the              spectrum of deep neural networks and its applications to
  IEEE/CVF Conference on Computer Vision and Pattern                 regularization. In Proceedings of the 35th AAAI Confer-
  Recognition, pp. 770–778, 2016.                                    ence on Artificial Intelligence, pp. 9481–9488, 2021.

Indyk, P. and Motwani, R. Approximate nearest neigh-               Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones,
  bors: towards removing the curse of dimensionality. In             L., Gomez, A. N., Kaiser, L. u., and Polosukhin, I. Atten-
  Proceedings of the thirtieth annual ACM symposium on               tion is all you need. In Advances in Neural Information
  Theory of computing, pp. 604–613, 1998.                            Processing Systems 30, pp. 5998–6008, 2017.

Krizhevsky, A. Learning multiple layers of features from           Wan, Y. and Zhang, L. Accelerating adaptive online learning
  tiny images. Masters Thesis, Deptartment of Computer              by matrix approximation. In Advances in Knowledge
  Science, University of Toronto, 2009.                             Discovery and Data Mining, pp. 405–417, 2018.

Krummenacher, G., McWilliams, B., Kilcher, Y., Buhmann,            Wan, Y. and Zhang, L. Accelerating adaptive online learning
  J. M., and Meinshausen, N. Scalable adaptive stochastic           by matrix approximation. International Journal of Data
  optimization using random projections. In Advances in             Science and Analytics, 9(4):389–400, 2020.
  Neural Information Processing Systems 29, 2016.
                                                                   Wan, Y. and Zhang, L. Efficient adaptive online learning
Lancaster, P. and Farahat, H. K. Norms on direct sums and           via frequent directions. IEEE Transactions on Pattern
  tensor products. Mathematics of Computation, 26(118):             Analysis and Machine Intelligence, 44(10):6910–6923,
  403–410, 1972.                                                    2022.

Liu, H., Li, Z., Hall, D., Liang, P., and Ma, T. Sophia: A         Wan, Y., Wei, N., and Zhang, L. Efficient adaptive online
  scalable stochastic second-order optimizer for language           learning via frequent directions. In Proceedings of the
  model pre-training. arXiv preprint arXiv:2305.14342,              27th International Joint Conference on Artificial Intelli-
  2023.                                                             gence, pp. 2748–2754, 2018.

                                                              10
                         Dimension-Free Adaptive Subgradient Methods with Frequent Directions

Xiao, L. Dual averaging method for regularized stochastic
  learning and online optimization. In Advances in Neural
  Information Processing Systems 22, 2009.
Zhang, L., Lu, S., and Zhou, Z.-H. Adaptive online learning
  in dynamic environments. In Advances in Neural Infor-
  mation Processing Systems 31 (NeurIPS), pp. 1323–1333,
  2018.

Zhang, L., Wang, G., Yi, J., and Yang, T. A simple yet
  universal strategy for online convex optimization. In
  Proceedings of the 39th International Conference on Ma-
  chine Learning (ICML), pp. 26605–26623, 2022.

Zhou, Z.-H. Learnability with time-sharing computational
  resource concerns. National Science Review, 11(10),
  2024.
Zinkevich, M. Online convex programming and generalized
  infinitesimal gradient ascent. In Proceedings of the 20th
  International Conference on Machine Learning, pp. 928–
  936, 2003.




                                                              11
                            Dimension-Free Adaptive Subgradient Methods with Frequent Directions

A. Proof of Theorems
Notations. We denote x to represent a vector and X to represent a matrix. For any vector x ∈ Rd and a positive semi-definite
                          2
matrix A ∈ Rd×d , ∥x∥A = ⟨x, Ax⟩. For a matrix A, A−1 is the inverse of A if A is full rank; otherwise, A−1 is taken to be
the Moore-Penrose pseudoinverse. For two matrices A, B, A ⪯ B if and only if B − A is a positive semi-definite matrix.
we define the space complexity and time complexity as the memory and time usage in each round, respectively. For example,
the time complexity of performing SVD to a matrix A ∈ Rm×n is O(min{m2 n, n2 m}). For simplicity, we use ∥·∥ for ∥·∥2
by default. λ[1:τ ] is a sequence containing τ elements, and max{λ[1:τ ] , a} represents a new sequence, where each element
is the maximum of λi and a, and diag(λ[1:τ ] ) is a diagonal matrix where the i-th diagonal element is λi , 1 ≤ i ≤ 2τ . In the
proof, we do not require smoothness of loss functions and we do not explicitly distinguish subgradients and gradients.

                        −1/2
A.1. Calculation of G̃t
                                    −1/2
In FTSL, we need to calculate G̃t          , which can not be directly derived by Woodbury formula (Hager, 1989). We provide
the following process.
                                                                                                                       (t)
Assume Ut⊥ is the complementary subspace of Ut ∈ Rd×τ , we have Id×d = Ut Ut⊤ + Ut⊥ (Ut⊥ )⊤ . We denote diag(λ[1:τ ] −
 (t)
λτ ) = Σt ∈ Rτ ×τ and have



                             ρ1:t Id×d + Ut Σt Ut⊤ = Ut (Σt + ρ1:t Id×d )Ut⊤ + ρ1:t Id×d Ut⊥ (Ut⊥ )⊤
                                 Ut (Σt + ρ1:t )Ut⊤ = ρ1:t Id×d + Ut Σt Ut⊤ − ρ1:t Ut⊥ (Ut⊥ )⊤ .

Then we can get

                   ρ1:t Id×d + Ut Σt Ut⊤ = Ut (Σt + ρ1:t )Ut⊤ + ρ1:t Ut⊥ (Ut⊥ )⊤ = [Ut ; Ut⊥ ]Σ′t [Ut ; Ut⊥ ]⊤ ,

                                                 
               Σt + ρ1:t Iτ ×τ            0
where Σ′t =                                        .
                     0            ρ1:t Id−τ,d−τ
Therefore, we have
                                                                            √
                      q                             p
                          ρ1:t Id×d + Ut Σt Ut⊤ = Ut (Σt + ρ1:t Iτ ×τ )Ut⊤ + ρ1:t Ut⊥ (Ut⊥ )⊤
                                                  √
                                                = ρ1:t Id×d + Ut ( Σt + ρ1:t Iτ ×τ − ρ1:t Iτ ×τ )Ut⊤ .
                                                                  p                  p


We can apply Woodbury formula (Hager, 1989) on it.
We can derive
                                                                             −1 p                                
                                    1                       p                                                  
   (ρ1:t Id×d + Ut Σt Ut⊤ )−1/2 = √                                                                               ⊤
                                                                                                     p
                                                  Id×d − Ut   Σt + ρ1:t Iτ ×τ       Σt + ρ1:t Iτ ×τ − ρ1:t Iτ ×τ Ut .
                                    ρ1:t

A.2. Proof of Theorem 4.1
Before giving the proof of Theorem 4.1, we first introduce some supporting lemmas.
Lemma A.1. (Proposition 2 in Duchi et al. (2011)) Let {xt } be the decisions of Algorithm 2 and x∗ ∈
           PT
arg minx∈Rd t=1 ft (x), we have

                                   T                  T                                  T
                                   X                  X                  1            ηX
                                         ft (xt ) −         ft (x∗ ) ≤     ΨT (x∗ ) +       ∥gt ∥2G̃−1/2 ,
                                   t=1                t=1
                                                                         η            2 t=1         t−1


                   D           E
                           1/2
where ΨT (x∗ ) = 12 x∗ , G̃T x∗ .

                                                                         12
                          Dimension-Free Adaptive Subgradient Methods with Frequent Directions
                                                     Pt
Lemma A.2. (Lemma 10 in Duchi et al. (2011)) Let Gt = i=1 gi gi⊤ . We have
                     T             −1          T           −1              
                                 1/2                         1/2                1/2
                    X                             X
                          gt , Gt        gt ≤ 2        gt , GT       gt = 2 tr GT     .
                          t=1                                    t=1

Then, we illustrate how FD approximates the original matrix.
                                                             Pt
Lemma A.3. (Remark 11 in Feinberg et al. (2023)) With Gt = i=1 gi gi⊤ , for FD results in FTSL, we have
                                              Bt Bt⊤ ⪯ Gt ⪯ G̃t = ρ1:t Id×d + Bt Bt⊤ .

By using Lemma A.1, we can bound the regret of Algorithm 2 by
                                  T                  T                                  T
                                  X                  X                  1            ηX
                                        ft (xt ) −         ft (x∗ ) ≤     ΨT (x∗ ) +       ∥gt ∥2G̃−1/2 .       (4)
                                  t=1                t=1
                                                                        η            2 t=1         t−1
                                                                        | {z } |            {z         }
                                                                           R D
                                                                                             RG


Then we bound the term RD and RG , respectively.
As for RD , we have


                                        1 D ∗ 1/2 ∗ E 1 D ∗                             1/2 ∗ E
                             ΨT (x∗ ) =     x , G̃T x =         x , BT BT⊤ + ρ1:T I         x
                                        2                    2
                                        1 D              1/2 ∗ E     1 D
                                                                                      1/2
                                                                                            E
                                      ≤     x∗ , BT BT⊤      x +         x∗ , (ρ1:T I) x∗
                                        2                             2
                                        1√            2    1D ∗          1/2
                                                                                E
                                      ≤     ρ1:T ∥x∗ ∥ +       x , (GT ) x∗
                                        2                  2
                                        1 2√            1 2              1/2
                                      ≤ D ρ1:T + D λmax ((GT ) )
                                        2               2
                                        1 √             1         1/2
                                      ≤ D2 ρ1:T + D2 tr(GT ),
                                        2               2
                                    √        √      √
where the first inequality is due to a + b ≤ a + b and we assume ∥x∗ ∥ ≤ D.
Therefore, we can get
                                               1             1  2√             1/2
                                                                                    
                                     RD =        ΨT (x∗ ) ≤     D ρ1:T + D2 tr(GT ) .                           (5)
                                               η            2η

To give the bound for RG , we first derive the lower bound of G̃t−1 , which connects G̃t−1 with Gt . We denote at =
max{ ∥g ∥ρ21:t−1
            +ρ
                 , 1} ≤ 1, and we have
        t     1:t−1




                                                      ⊤
                                        G̃t−1 = Bt−1 Bt−1 + ρ1:t−1 Id×d
                                                             2                       ⊤
                                              ⪰ at (∥gt ∥ Id×d + ρ1:t−1 Id×d + Bt−1 Bt−1 )
                                                             2
                                              ⪰ at (∥gt ∥ Id×d + Gt−1 )
                                              ⪰ at Gt ,
which means G̃−1    1   −1
              t−1 ⪯ at Gt .

Then, letting C1 = maxt∈[T ] √1at , we have
                         T                       T D                      T
                         X          2
                                                X           1/2
                                                                      E X     1 D        1/2
                                                                                                  E
                                ∥gt ∥G̃−1/2 =       gt , (G̃t−1 )−1 gt ≤     √    gt , (Gt )−1 gt
                         t=1
                                        t−1
                                                t=1                      t=1
                                                                               at
                                                     T D                    E
                                                                    1/2                1/2
                                                     X
                                              ≤ C1           gt , (Gt )−1 gt ≤ 2C1 tr(GT ),
                                                     t=1


                                                                        13
                          Dimension-Free Adaptive Subgradient Methods with Frequent Directions

where the last inequality is due to Lemma A.2.
Therefore, we can get

                                                           T
                                                        ηX         2                1/2
                                            RG =              ∥gt ∥G̃−1/2 ≤ ηC1 tr(GT ).                                   (6)
                                                        2 t=1        t−1




By combining inequalities (5) and (6), and setting η = √D2 , we obtain the regret bound for FTSL

                             T                  T
                             X                  X                              1/2          1  2√             1/2
                                                                                                                   
                   R(T ) =         ft (xt ) −         ft (x∗ ) ≤ ηC1 tr(GT ) +                 D ρ1:T + D2 tr(GT )
                             t=1                t=1
                                                                                           2η
                                                                      p       C1 + 1    1/2
                                                               ≤D    2ρ1:T + ( √ )D tr(GT )
                                                                                 2
                                                                        1/2   √
                                                               = O(tr(GT ) + ρ1:T ).

Notably, the regret bound of Theorem 4.1 can be reformulated, as also presented in Feinberg et al. (2023).
                                       Pd
Corollary A.4. We define λτ :d (GT ) = i=τ λi (GT ), where λi is the i-th eigenvalue of GT , we can rewrite the regret
bound of FTSL as
                                                                            
                                                         1/2
                                                                 p
                                        R(T ) ≤ O tr(GT ) + λτ :d (GT ) .


A.3. Proof of Corollary A.4
We first give a lemma to give the upper bound of the cumulative ρ1:T .
Lemma A.5. (Lemma 1 in Feinberg et al. (2023)) The cumulative escaped masses ρ1:T in FD can be upper bounded as
                                                        Pd                           d
                                                          i=k+1 λi (GT )                           def
                                                                                     X
                             ρ1:T ≤        min                                 ≤           λi (GT ) = λτ :d (GT ),
                                        k=0,...,τ −1           τ −k                  i=τ


where the last inequality is to set k = τ − 1.
Combining Theorem 4.1 with Lemma A.5, we can get Corollary A.4.

A.4. Proof of Theorem 4.2
We first introduce some guarantees of the fast frequent directions technique.
In Algorithm 3, we do not perform SVD on the sketching matrix Bt every round. Instead, we maintain two matrices Mt and
Vt , which approximate the sketching matrix Bt in Algorithm 2, that is
                                                                1/2
                                                         Vt Mt        = Bt ∈ Rd×2τ .

In each round t, after receiving a new gradient gt , we first check whether this vector lies within the subspace spanned by
Vt−1 . If the vector is not contained within the subspace, we normalize it and subsequently add it to Vt−1 , thereby enlarging
                                                   ⊤
the span of the subspace and ensuring Vt−1 Vt−1      gt = gt . In our algorithm design, we want the matrix Vt only contains
                                                 ′
                                           gt −g
orthonormal vectors, therefore we add ∥gt −g′ ∥2 to the first all zero column. In round t, we have

                                      ⊤
                          Vt−1 Mt−1 Vt−1                        ⊤
                                         + gt gt⊤ = Vt−1 Mt−1 Vt−1           ⊤
                                                                   + Vt−1 Vt−1               ⊤
                                                                               gt gt⊤ Vt−1 Vt−1
                                                                    ⊤
                                                                      gt gt⊤ Vt−1 Vt−1⊤
                                                                                  
                                                  = Vt−1 Mt−1 + Vt−1
                                                  = Vt Mt−1 + Vt⊤ gt gt⊤ Vt Vt⊤ .
                                                                           


                                                                          14
                          Dimension-Free Adaptive Subgradient Methods with Frequent Directions

According to Lemma A.3, we have
                                                 Vt Mt Vt⊤ = Bt Bt⊤ ⪯ Gt .

In the following, we will prove Gt ⪯ G̃t , which is important for our analysis.
Assume we delete the eigenvalues of Mk in round k, we calculate G̃k before we delete the eigenvalues of Mk in our method.
In round k, before we update Vk , we have Vk = Vk−1 and we let Vk to represent the matrix before we delete its columns.
                             1/2
As we perform SVD to Vk Mk ∈ Rd×2τ , we delete the eigenvalues of Mk , update Vk = Vk Uk and set the last τ +1 columns
                                                       (k)       (k)       ⊤           ⊤
to zero. In round k+1, we have G̃k+1 = Vk+1 (diag(max{λ[1:2τ ] −λτ , 0})+Vk+1  gk+1 (Vk+1            ⊤
                                                                                          gk+1 )⊤ )Vk+1  +ρ1:k+1 Id×d ,
and we can derive
                                          (k)               ⊤          ⊤        ⊤   ⊤
                     Vk+1 (diag(max{λ[1:2τ ] − λ(k)
                                                τ , 0}) + Vk+1 gk+1 (Vk+1 gk+1 ) )Vk+1 + ρk+1 Id×d
                                         (k)           ⊤                    ⊤
                   =Vk+1 diag(max{λ[1:2τ ] − λ(k)            (k)
                                              τ , 0})Vk+1 + λτ Id×d + gk+1 gk+1
                                         (k)           ⊤ ⊤                       ⊤        ⊤
                   ⪰Vk Uk diag(max{λ[1:2τ ] − λ(k)             (k)
                                               τ , 0})Uk Vk + λτ (Vk Uk )(Vk Uk ) + gk+1 gk+1
                                         (k)                 ⊤ ⊤          ⊤
                   =Vk Uk diag(max{λ[1:2τ ] − λ(k)       (k)
                                               τ , 0} + λτ )Uk Vk + gk+1 gk+1
                                   (k)                  ⊤
                   ⪰Vk Uk diag(λ[1:2τ ] )Uk Vk⊤ + gk+1 gk+1
                                      ⊤
                   =Vk Mk Vk⊤ + gk+1 gk+1 ,

                                                                                 (k)      (k)
where the second inequality is due to only first τ − 1 columns of diag(max{λ[1:2τ ] − λτ , 0}) are non-zero, the first τ − 1
columns of Vk+1 and Vk Uk are same, and Uk and Vk are orthogonal matrices.
If we do not delete the eigenvalues of Mk in round k, we have ρk+1 = 0 and
                                                                 ⊤          ⊤
                       Vk+1 Mk+1 Vk+1 + ρk+1 Id×d = Vk+1 (Mk + Vk+1 gk+1 (Vk+1            ⊤
                                                                               gk+1 )⊤ )Vk+1
                                                                   ⊤          ⊤
                                                       = Vk+1 Mk Vk+1 + gk+1 gk+1 .

Assume there are most ℓ eigenvalues in Mk , ℓ ≤ 2τ − 1, and most ℓ + 1 non-zero columns in Vk+1 , most ℓ non-zero
columns in Vk and the first ℓ columns of Vk+1 and Vk are same. We have the following
                                                                         (k) ⊤
                   Vk+1 Mk+1 Vk+1 + ρk+1 Id×d = Vk+1 Uk diag(λ[1:2τ ] )Uk⊤ Vk+1         ⊤
                                                                                + gk+1 gk+1 + 0Id×d
                                                                       (k)               ⊤
                                                  = Vk Uk diag(λ[1:2τ ] )Uk⊤ Vk⊤ + gk+1 gk+1                               (7)
                                                                      ⊤
                                                  = Vk Mk Vk⊤ + gk+1 gk+1 ,

                                                                 (k)
where the second equality is due to only first ℓ elements in λ[1:2τ ] are non-zero and first ℓ columns of Vk and Vk+1 are same.
Therefore, we have

                  G̃t = Vt Mt Vt + ρ1:t Id×d ⪰ Vt−1 Mt−1 Vt−1 + ρ1:t−1 Id×d + gt gt⊤ = G̃t−1 + gt gt⊤ .

By summing up, we can get
                                                           t
                                                           X
                                                   G̃t ⪰         gi gi⊤ = Gt .
                                                           i=1


Next, we need to ensure that after FFD, the preconditioning matrix G̃t is monotone. It is natural to verify that if we do not
remove the eigenvalues of Mt , G̃t remains monotone.
Then, we will prove that G̃t remains monotone even if we delete the eigenvalues of Mt . Assume in round k, we delete
                                                                             (k)
the eigenvalues of Mk . In round k, the matrix G̃k = ρ1:k Id×d + Vk Uk diag(λ[1:2τ ] )Uk⊤ Vk⊤ . And G̃k+1 = ρ1:k+1 Id×d +
             ⊤
Vk+1 Mk+1 Vk+1  . In round k + 1, since we do not delete the eigenvalues of Mk+1 , the first τ − 1 columns of Vk+1

                                                                 15
                          Dimension-Free Adaptive Subgradient Methods with Frequent Directions

of round k + 1 and Vk Uk of round k are same (Notably, Vk is different in round k and k + 1). We have Mk+1 =
           (k)       (k)          ⊤           ⊤                              (k)
diag(max{λ[1:2τ ] − λτ , 0}) + (Vk+1 gk+1 )(Vk+1 gk+1 )⊤ . As we set ρk+1 = λτ , we can ensure

                                               ⊤
             G̃k+1 = ρ1:k+1 Id×d + Vk+1 Mk+1 Vk+1
                                                                 (k)        ⊤           ⊤        ⊤   ⊤
                    = ρ1:k+1 Id×d + Vk+1 (diag(max{λ[1:2τ ] − λ(k)
                                                               τ , 0}) + (Vk+1 gk+1 )(Vk+1 gk+1 ) )Vk+1
                                                                            (k)⊤
                    ⪰ ρ1:k Id×d + λ(k)                                (k)
                                   τ Id×d + Vk+1 diag(max{λ[1:2τ ] − λτ , 0})Vk+1
                                                 ⊤ ⊤                                      (k)
                                                                                           ⊤ ⊤
                    ⪰ ρ1:k Id×d + Vk Uk λ(k)                                       (k)
                                         τ Id×d Uk Vk + Vk Uk diag(max{λ[1:2τ ] − λτ , 0})Uk Vk
                                                    (k)
                    ⪰ ρ1:k Id×d + Vk Uk diag(λ[1:2τ ] )Uk⊤ Vk⊤
                    = G̃k ,

                                                                                    (k)         (k)
where the second inequality is due to the τ to 2τ columns of diag(max{λ[1:2τ ] − λτ , 0}) is zero and the first τ − 1 columns
of Vk Uk of round k and Vk+1 of round k + 1 are same, so we can replace Vk+1 with Vk Uk , and Vk , Uk are orthogonal
matrices.
Therefore, we can ensure G̃t is monotone in FTFSL.
Using the Eq (4), we have the following

                                T                  T                                   T
                                X                  X                   1            ηX
                                      ft (xt ) −         ft (x∗ ) ≤      ΨT (x∗ ) +       ∥gt ∥2G̃−1/2 .
                                t=1                t=1
                                                                       η            2 t=1         t−1
                                                                       | {z } |            {z         }
                                                                          R D
                                                                                            RG



As for the term RD , we can derive

                                  1             1 D ∗ 1/2 ∗ E
                              RD =  ΨT (x∗ ) =       x , G̃T x
                                  η            2η
                                   1 D ∗                              1/2 ∗ E
                                =     x , VT MT VT⊤ + ρ1:T Id×d            x
                                  2η
                                   1 D                 1/2 ∗  E       1 D
                                                                                            1/2
                                                                                                E
                                ≤     x∗ , VT MT VT⊤        x +            x∗ , (ρ1:T Id×d ) x∗
                                  2η                                  2η
                                                                                                                          (8)
                                   1                         2      1  D
                                                                                   1/2
                                                                                         E
                                ≤     (ρ1:T Id×d )1/2 ∥x∗ ∥ +            x∗ , (GT ) x∗
                                  2η                               2η
                                   1 2√            1 2            1/2
                                ≤    D ρ1:T + D λmax (GT )
                                  2η              2η
                                   1 2√            1           1/2
                                ≤    D ρ1:T + D2 tr(GT ),
                                  2η              2η


where the second inequality is due to VT MT VT⊤ = BT BT⊤ ⪯ GT and we assume ∥x∗ ∥ ≤ D.
For the term RG , we denote bt = max{ ∥g ∥ρ21:t−1
                                             +ρ
                                                             , 1} ≤ 1, we have
                                             t       1:t−1




                                                          ⊤
                                      G̃t−1 = Vt−1 Mt−1 Vt−1 + ρ1:t−1 Id×d
                                                             2                    ⊤
                                             ⪰ bt (∥gt ∥ Id×d + ρ1:t−1 Id + Bt−1 Bt−1 )
                                                             2
                                             ⪰ bt (∥gt ∥ Id×d + Gt−1 )
                                             ⪰ bt Gt .

                                                                       16
                             Dimension-Free Adaptive Subgradient Methods with Frequent Directions

Then, letting C2 = maxt∈[T ] √1b , we can get
                                      t

                         T                             T D                           T
                         X                2
                                                       X               1/2
                                                                                 E X     1 D        1/2
                                                                                                             E
                                   ∥gt ∥G̃−1/2 =               gt , (G̃t−1 )−1 gt ≤     √    gt , (Gt )−1 gt
                             t=1
                                              t−1
                                                       t=1                          t=1
                                                                                          bt
                                                             T D               E
                                                                       1/2               1/2
                                                             X
                                                     ≤ C2       gt , (Gt )−1 gt ≤ C2 tr(GT ),
                                                             t=1
where the last inequality is due to Lemma A.2.
Therefore, we have

                                                                   T
                                                              ηX         2                1/2
                                                     RG =           ∥gt ∥G̃−1/2 ≤ ηC2 tr(GT ).                                  (9)
                                                              2 t=1        t−1




By combining inequalities (8) and (9), and setting η = √D2 , we can derive Theorem 4.2.

                                                     T
                                                     X                   T
                                                                         X
                                      R(T ) =               ft (xt ) −         ft (x∗ )
                                                      t=1                t=1
                                                    ≤ RD + RG
                                                       1 2√        1      1/2          1/2
                                                    ≤    D ρ1:T + D2 tr(GT ) + ηC2 tr(GT )
                                                      2η          2η
                                                            1/2  √
                                                    ≤ O(tr(GT ) + ρ1:T ).

A.5. Proof of Theorem 4.3
According to the proof of Theorem 4.2, we have the following properties in FFD:
                                                                         1/2
                                                                   Vt Mt       = Bt ,
                                                              Vt Ut Σt Ut⊤ Vt⊤ ⪯ Gt ⪯ G̃t .
Similar to the proof of Theorem 3 in Feinberg et al. (2023), we have the following lemma:
                                                                              PT
Lemma A.6. Let {xt } be the decision of Fast S-ADA and x∗ ∈ arg minx∈Rd t=1 ft (x), the regret bound of Fast S-ADA
is

                                                         T                              T
                                                      1 X             2              ηX         2
                                      R(T ) ≤               ∥xt − x∗ ∥G̃1/2 −G̃1/2 +       ∥gt ∥G̃−1/2 .
                                                     2η t=1             t      t−1   2 t=1        t



According to Lemma A.6, we have
                                                         T                              T
                                                      1 X             2              ηX         2
                                      R(T ) ≤               ∥xt − x∗ ∥G̃1/2 −G̃1/2 +       ∥gt ∥G̃−1/2 .
                                                     2η t=1             t      t−1   2 t=1        t



                             PT             2
We first bound the term η2         t=1 ∥gt ∥G̃t−1/2 , which is easier to bound than that in FTFSL, as we can directly apply a lemma
on it.
                                                     T                         T D                 E
                                                                                          1/2
                                                     X          2
                                                                               X
                                                            ∥gt ∥G̃−1/2 =         gt , (G̃t )−1 gt
                                                                    t
                                                     t=1                       t=1
                                                                             T D                E
                                                                                       1/2
                                                                             X
                                                                           ≤    gt , (Gt )−1 gt
                                                                               t=1
                                                                                        1/2
                                                                           ≤ 2 tr(GT ),

                                                                                17
                          Dimension-Free Adaptive Subgradient Methods with Frequent Directions

where the fist inequality is due to G̃−1    −1
                                      t ⪯ Gt and the last inequality is due to Lemma A.2.
                            1
                              PT            ∗ 2
Next, we bound the term 2η       t=1 ∥xt − x ∥G̃1/2 −G̃1/2 , which introduces the dependence on dimensionality d. We have
                                                t     t−1

                                          T
                                       1 X             2             D2  1/2 
                                             ∥xt − x∗ ∥G̃1/2 −G̃1/2 ≤ 1 tr G̃T  ,
                                      2η t=1             t      t−1  2η

where this inequality is due to monotonicity of G̃t and D1 = maxt∈[T ] ∥xt − x∗ ∥.
                                         
                                      1/2
Then we need to bound the term tr G̃T .

Assume we delete the eigenvalues of Mk at round k. In round k, before we update Vk , Vk = Vk−1 and we use Vk to
represent the matrix before we delete its columns.
                             1/2
As we perform SVD to Vk Mk ∈ Rd×2τ , we denote Vk1:τ ∈ Rd×τ to be the first τ columns of Vk Uk before we set the last
τ + 1 columns to 0d , Nk ∈ Rd×(d−τ ) be the complementary subspace of Vk1:τ , and the first τ − 1 columns of Vk+1 and
                        (k)
Vk1:τ are same, ρk+1 = λτ and [Vk1:τ ; Nk ][Vk1:τ ; Nk ]⊤ = Id×d .
                                                     (k)       (k)     ⊤          ⊤
In round k + 1, we have G̃k+1 = Vk+1 (diag(max{λ[1:2τ ] − λτ , 0}) + Vk+1 gk+1 (Vk+1            ⊤
                                                                                     gk+1 )⊤ )Vk+1 + ρ1:k+1 Id×d , and
we can derive
                                    (k)                 ⊤          ⊤        ⊤   ⊤
                 Vk+1 (diag(max{λ[1:2τ ] − λ(k)
                                            τ , 0}) + Vk+1 gk+1 (Vk+1 gk+1 ) )Vk+1 + ρk+1 Id×d
                                   (k)             ⊤                    ⊤
               =Vk+1 diag(max{λ[1:2τ ] − λ(k)            (k)
                                          τ , 0})Vk+1 + λτ Id×d + gk+1 gk+1
                                   (k)             ⊤ ⊤              1:τ ⊤    ⊤           ⊤
               =Vk Uk diag(max{λ[1:2τ ] − λ(k)             (k)  1:τ
                                           τ , 0})Uk Vk + λτ (Vk (Vk ) + Nk Nk ) + gk+1 gk+1
                                   (k)             ⊤ ⊤                      ⊤      ⊤           ⊤
               ⪯Vk Uk diag(max{λ[1:2τ ] − λ(k)             (k)
                                           τ , 0})Uk Vk + λτ (Vk Uk (Vk Uk ) + Nk Nk ) + gk+1 gk+1
                             (k)
               ⪯Vk Uk diag(λ[1:2τ ] )Uk Vk⊤ + λ(k)   ⊤         ⊤
                                               τ Nk Nk + gk+1 gk+1
                       ⊤           ⊤        ⊤
               =λ(k)
                 τ Nk Nk + Vk Mk Vk + gk+1 gk+1
                                                ⊤
               =ρk+1 Nk Nk⊤ + Vk Mk Vk⊤ + gk+1 gk+1 ,
                                                                            (k)         (k)
where the second equality is due to only first τ − 1 columns of diag(max{λ[1:2τ ] − λτ , 0}) are non-zero and the first τ − 1
columns of Vk+1 and Vk Uk are same, the first inequality is due to Vk1:τ only contains τ orthogonal vectors at most.
If we do not delete the eigenvalues of Mk in round k, we have ρk+1 = 0 can derive
                                                         ⊤          ⊤
               Vk+1 Mk+1 Vk+1 + ρk+1 Id×d = Vk+1 (Mk + Vk+1 gk+1 (Vk+1            ⊤
                                                                       gk+1 )⊤ )Vk+1
                                                          ⊤          ⊤
                                              = Vk+1 Mk Vk+1 + gk+1 gk+1
                                                          ⊤          ⊤
                                              = Vk+1 Mk Vk+1 + gk+1 gk+1
                                                                    ⊤
                                              = 0Nk Nk⊤ + Vk+1 Mk Vk+1         ⊤
                                                                       + gk+1 gk+1
                                                                                  (k)      ⊤
                                              = ρk+1 Nk Nk⊤ + Vk+1 Uk diag(λ[1:2τ ] )Uk⊤ Vk+1         ⊤
                                                                                              + gk+1 gk+1 .

Assume there are most ℓ eigenvalues in Mk , ℓ ≤ 2τ − 1, therefore, there are most ℓ + 1 non-zero columns in Vk+1 , most ℓ
non-zero columns in Vk and the first ℓ columns of Vk+1 and Vk are same. We have the following
                                                                              (k)    ⊤
                 Vk+1 Mk+1 Vk+1 + ρk+1 Id×d = 0Nk Nk⊤ + Vk+1 Uk diag(λ[1:2τ ] )Uk⊤ Vk+1         ⊤
                                                                                        + gk+1 gk+1
                                                                           (k)                   ⊤
                                                = 0Nk Nk⊤ + Vk Uk diag(λ[1:2τ ] )Uk⊤ Vk⊤ + gk+1 gk+1
                                                                                                                        (10)
                                                                                  (k)                ⊤
                                                = ρk+1 Nk Nk⊤ + Vk Uk diag(λ[1:2τ ] )Uk⊤ Vk⊤ + gk+1 gk+1
                                                                                  ⊤
                                                = ρk+1 Nk Nk⊤ + Vk Mk Vk⊤ + gk+1 gk+1 ,
                                                                                 (k)
where the second equality is due to there are most ℓ non-zero elements in λ[1:2τ ] and first ℓ columns of Vk and Vk+1 are
same, and the third equality is due to ρk+1 = 0.

                                                             18
                          Dimension-Free Adaptive Subgradient Methods with Frequent Directions

Therefore, we have
                                                                                      ⊤
                         Vk+1 Mk+1 Vk+1 + ρk+1 Id×d ⪯ ρk+1 Nk Nk⊤ + Vk Mk Vk⊤ + gk+1 gk+1 .

By reduction, we have

                               G̃T = VT MT VT + ρ1:T Id×d
                                  ⪯ ρ1:T −1 Id×d + VT −1 MT −1 VT⊤−1 + ρT NT NT⊤ + gT gT⊤
                                    ...
                                      T
                                      X                      T
                                                             X
                                  ⪯           ρt Nt Nt⊤ +          gt gt⊤
                                      t=1                    t=1
                                      T
                                      X
                                  =           ρt Nt Nt⊤ + GT .
                                      t=1


                                      1/2          1/2          PT
Then we can rewrite the bound of tr(G̃T ) as tr(GT ) + tr(( t=1 ρt Nt Nt⊤ )1/2 ).
                                  PT
We just need to give bound of tr(( t=1 ρt Nt Nt⊤ )1/2 ). According to Corollary 4 in Feinberg et al. (2023), the upper bound
of this term is
                                           XT                    p
                                       tr((    ρt Nt Nt⊤ )1/2 ) ≤ d(d − τ )ρ1:T .
                                                  t=1

                                          1/2
Then we can derive the bound of tr(G̃T ).


                                                                                    T
                                           1/2       1/2
                                                                                    X
                                      tr(G̃T ) ≤ tr(GT ) + tr((                            ρt Nt Nt⊤ )1/2 )
                                                                                    t=1
                                                                 1/2
                                                                               p
                                                        ≤ tr(GT ) +                d(d − τ )ρ1:T .

               D1
By setting η = √ 2
                   , we have

                                              T
                                              X                  T
                                                                 X
                                R(T ) =             ft (xt ) −         ft (x∗ )
                                              t=1                t=1
                                                  T                                               T
                                                1 X                    2                      ηX         2
                                          ≤              ∥xt − x∗ ∥G̃1/2 −G̃1/2 +                   ∥gt ∥G̃−1/2
                                                2η t=1                     t         t−1      2 t=1        t


                                            D12       1/2
                                                          p                        1/2
                                          ≤     (tr(GT ) + d(d − τ )ρ1:T ) + η tr(GT )
                                            2η
                                                                       
                                                     1/2
                                                          p
                                          ≤ O tr(GT ) + d(d − τ )ρ1:T .


A.6. Proof of Theorem 4.4
In the following, we give the proof of Theorem 4.4.
Due to the update in Algorithm 5 is performed on the matrix space, it poses challenges for the analysis. Therefore, we first
introduce an equivalent update in vector form.
                                                     −1/4    X     −1/4                                 1/4       1/4
Recall the update in Algorithm 5, Xt = −η L̃t     Gt R̃t    . We define H̃t = L̃t ⊗ R̃t ∈ Rmn×mn , Lt = L̂t L̂⊤      t ∈
  m×m               ⊤     n×n             X
R      , Rt = R̂t R̂t ∈ R     , gt = vec(Gt ) and xt = vec(Xt ), where vec denotes the row-major vectorization of a given
matrix. Kronecker product ⊗ obeys the following properties as shown in Gupta et al. (2018).

                                                                        19
                              Dimension-Free Adaptive Subgradient Methods with Frequent Directions

Lemma A.7. (Lemma 3,4 in Gupta et al. (2018)) For matrices A, A′ , B, B ′ of appropriate dimensions and vectors x, y,
L ∈ Rm×m , R ∈ Rn×n , G ∈ Rm×n , the following properties hold:

  1. (A ⊗ B)(A′ ⊗ B ′ ) = (AA′ ) ⊗ (BB ′ ).
  2. (A ⊗ B)⊤ = A⊤ ⊗ B ⊤ .
  3. A, B ⪰ 0, (A ⊗ B)−1 = A−1 ⊗ B −1 .
  4. A ⪰ A′ , B ⪰ B ′ , then A ⊗ B ⪰ A′ ⊗ B ′ .
  5. tr(A ⊗ B) = tr(A) tr(B).
  6. vec(xy⊤ ) = x ⊗ y.
 7. (L ⊗ R⊤ )vec(G) = vec(LGR).
                Pt
By defining gt = i=1 gi , we can rewrite the update in Algorithm 5 as
                                                           xt+1 = −η H̃t−1 gt ,
which is equal to
                                                                                1    2
                                                 xt+1 = arg min η ⟨gt , x⟩ +      ∥x∥H̃t .
                                                           x∈Rmn                2

As L̃t and R̃t is monotonically increasing with t, it is not hard to find that H̃t is also monotonically increasing with t. Thus,
by using Lemma A.1, we have the similar inequality:
                                                                           T
                                                           1            ηX
                                                 R(T ) ≤     ΨT (x∗ ) +       ∥gt ∥2H̃ −1 ,                                         (11)
                                                           η            2 t=1         t−1
                                                           | {z } |           {z         }
                                                              R D
                                                                               RG
                      D              E
where ΨT (x∗ ) = 21       x∗ , H̃T x∗ .

We first give the bound of RD .
                                                         1D ∗        E 1
                                                                                   2
                                            ΨT (x∗ ) =     x , H̃T x∗ ≤   H̃T ∥x∗ ∥ .
                                                         2              2
Then we introduce a lemma to give an equality about the norm of Kronecker product.
Lemma A.8. (Theorem 8 in Lancaster & Farahat (1972)) For two matrices A and B, the following equality holds
                                                         ∥A ⊗ B∥ = ∥A∥ ∥B∥ .

                                                                                          1/4      1/4            1/4    1/4
We have ∥x∗ ∥ = ∥X ∗ ∥F ≤ DM . According to Lemma A.8, H̃T                          =   L̃T     ⊗ R̃T        =   L̃T    R̃T    , then we
                                    1/4            1/4                                        X ⊤ X
                                                                                                        PT
need to give the bound of L̃T    and R̃T , respectively. We first define LT =           t=1 (Gt ) Gt + ϵIm×m and
      PT          ⊤ X
RT = t=1 (GX   t ) Gt + ϵIn×n . Using Lemma A.3, it is not hard to verify that Lt + ϵIm×m ⪯ Lt , Rt + ϵIn×n ⪯ Rt .

Therefore, we have
                                           1/4
                                          L̃T    = (LT + ϵIm×m + ρL
                                                                  1:T Im×m )
                                                                             1/4


                                                 ≤ (LT + ϵIm×m )1/4 + (ρL
                                                                        1:T Im×m )
                                                                                   1/4


                                                 ≤ (LT + ϵIm×m )1/4 + (ρL
                                                                        1:T Im×m )
                                                                                  1/4


                                                 ≤ (LT + ϵIm×m )1/4 + (ρL
                                                                        1:T )
                                                                             1/4


                                                 ≤ tr((LT + ϵIm×m )1/4 ) + (ρL
                                                                             1:T )
                                                                                   1/4

                                                         1/4
                                                 ≤ tr(LT ) + (ρL
                                                               1:T )
                                                                    1/4
                                                                        ,

                                                                    20
                           Dimension-Free Adaptive Subgradient Methods with Frequent Directions

where the fourth inequality is due to have for positive semidefinite matrices tr(·) ≥ ∥·∥ and last inequality is due to the
monotonicity of tr(·).
We also have
                                        1/4
                                      R̃T      = (RT + ϵIn×n + ρR
                                                                1:T In×n )
                                                                          1/4


                                               ≤ (RT + ϵIn×n )1/4 + (ρR
                                                                      1:T In×n )
                                                                                 1/4


                                               ≤ (RT + ϵIn×n )1/4 + (ρR
                                                                      1:T )
                                                                           1/4
                                                                               In×n

                                               ≤ (RT + ϵIn×n )1/4 + (ρR
                                                                      1:T )
                                                                            1/4


                                               ≤ tr((RT + ϵIn×n )1/4 ) + (ρR
                                                                           1:T )
                                                                                1/4

                                                       1/4
                                               ≤ tr(RT ) + (ρR
                                                             1:T )
                                                                  1/4
                                                                      .

Therefore, we can get
                                 1           D2      1/4                    1/4
                         RD =      ΨT (x∗ ) ≤ M (tr(LT ) + (ρL
                                                             1:T )
                                                                  1/4
                                                                      )(tr(RT ) + (ρR
                                                                                    1:T )
                                                                                          1/4
                                                                                              ).                            (12)
                                 η            2η

To give the bound of RG , we first introduce a lemma.
Lemma A.9. (Lemma 8 in Gupta et al. (2018)) If GX
                                                t ∈R
                                                      m×n
                                                           with rank at most r, and gt = vec(GX
                                                                                              t ), then ∀ϵ ≥ 0, ∀t,

                       t                         t
                                                              !1/2                 t
                                                                                                 !1/2
                    1X        ⊤
                                                X
                                                     X   X ⊤
                                                                                  X
                                                                                        X ⊤   X
        ϵImn×mn +         gi gi ⪯ ϵIm×m +           Gi (Gi )       ⊗ ϵIn×n +          (Gi ) (Gi )      .
                    r i=1                       i=1                               i=1


Then we utilize a lemma in Feinberg et al. (2023).
                                                                      ⊤                     X ⊤
Lemma A.10. (Lemma 14 in Feinberg et al. (2023)) Let Vt ΣL                            X
                                                                  t Vt = Lt−1 + Gt (Gt ) be the eigendecomposition of
the un-deflated sketch. We assume rank(ΣL    t ) = k, k ∈ [τ −  1, τ −  1 + r]. Write V t =  [Vt∗ , Vt⊥ ], where Vt∗ contains the
                                                              ⊤                 X ⊤ X
first k columns of Vt . And for the right conditioner Wt ΣR
                                                          t W t   =  R t−1 + (G t )  G t  . Write  Wt = [Wt∗ , Wt⊥ ], where Wt∗
contains the first k columns of Wt . Define NtL = Vt⊥ (Vt⊥ )⊤ and NtR = Wt⊥ (Wt⊥ )⊤ , then we have
                                             t
                                             X                  t
                                                                X
                                                        X ⊤
                                    et ⪰
                                    L              GX
                                                    i (Gi ) +         ρL  L            L
                                                                       i Ni + ϵIm×m = Mt ,
                                             i=1                i=1
                                         t
                                         X            t
                                                      X
                                                ⊤ X
                                    et ⪰
                                    R      (GX
                                             i ) Gi +   ρR  R            R
                                                         i Ni + ϵIn×n = Mt .
                                             i=1                i=1

                                                              Pt         X ⊤
According to Lemma A.3 and Lemma A.10, we have MtL ⪰ ϵIm×m + i=1 GX  i (Gi )  and MtR ⪰ ϵIn×n +
Pt      X ⊤ X
  i=1 (Gi ) Gi . Using Lemma A.7, we can derive

                        t
                                   !                        t
                                                                       !
                       X                                    X
                            X ⊤ X               R              X   X ⊤
    Im×m ⊗ ϵIn×n +        (Gi ) Gi    ⪯ Im×m ⊗ Mt , ϵIm×m +   Gi (Gi )   ⊗ In×n ⪯ MtL ⊗ In×n .
                          i=1                                                    i=1


Therefore, we have
                                         t
                                     1X                      1/4       1/4     1/4   1/4
                      (ϵImn×mn +           gi gi⊤ )1/2 ⪯ MtL      ⊗ MtR      ⪯ L̃t ⊗ R̃t = H̃t .
                                     r i=1

                                        1/2
               b t = rϵImn×mn + Pt gi g⊤
Then we define H                              , and can have
                                 i=1   i

                                                                    √
                                                             bt ⪯
                                                             H          rH̃t .

                                                                 21
                             Dimension-Free Adaptive Subgradient Methods with Frequent Directions

We want to give the lower bound of Ĥt−1 . By defining ct = ∥g ∥rϵ2 +rϵ , we have
                                                                               t

                                                                       t−1
                                                                       X
                                         2
                                       Ĥt−1 = rϵImn×mn +                    gi gi⊤
                                                                       i=1
                                                                               t−1
                                                                               X
                                                             2
                                             ⪰ ct (∥g∥t Imn×mn +                       gi gi⊤ + rϵImn×mn )
                                                                            i=1
                                                                          t
                                                                          X
                                             ⪰ ct (rϵImn×mn +                      gi gi⊤ )
                                                                          i=1

                                             = ct Ĥt2 .

                       √                              √                           −1      −1
Define A1 = mint∈[T ] ( ct ). We have A1 Ĥt ⪯ Ĥt−1 ⪯ rH̃t−1 , which means √1r H̃t−1 ⪯ Ĥt−1 ⪯ A11 Ĥt−1 .
We can derive
                                 T
                                 X                      T D
                                                        X               E √ XT D               E
                                                                  −1                    −1
                                       ∥gt ∥2H̃ −1 =       gt , H̃t−1 gt ≤ r     gt , Ĥt−1 gt
                                                t−1
                                 t=1                    t=1                                       t=1
                                                        √ X T D
                                                         r                   E
                                                      ≤         gt , Ĥt−1 gt .
                                                        A1 t=1

Based on the proof of Theorem 5 in Feinberg et al. (2023), we obtain the following inequality.
                                                       T D
                                                       X                      E
                                                                 gt , Ĥt−1 gt ≤ 2 tr(ĤT ).
                                                       t=1


Therefore, we have
                                   T                         √ X T D
                                   X                          r                  E  2 √
                                         ∥gt ∥2H̃ −1 ≤              gt , Ĥt−1 gt ≤     r tr(ĤT ).
                                   t=1
                                                 t−1         A1 t=1                 A1

Then, we need to bound the term ĤT .
                       T                                     T
                                                                                    !1/2                     T
                                                                                                                              !1/2
                                                                                                                                         1/2      1/2
                       X                                     X                                               X
Ĥt2 = (rϵImn×mn +           gi gi⊤ ) ⪯ r ϵIm×m +                  GX   X ⊤
                                                                    i (Gi )                   ⊗    ϵIn×n +         (GX  ⊤ X
                                                                                                                     i ) Gi          = rLT     ⊗ RT ,
                       i=1                                   i=1                                             i=1
                     √     1/4  1/4
which means Ĥt ⪯        rLT ⊗ RT .
By defining C3 = A11 , we can derive the bound of RG .
                                                              T
                                                        ηX                     √
                                             RG =             ∥gt ∥2H̃ −1 ≤ ηC3 r tr(ĤT )
                                                        2 t=1         t−1


                                                                       1/4            1/4
                                                      ≤ ηC3 r tr(LT ) tr(RT ).

By setting η = D√M
                 r
                   , the final regret bound is
   T                                                   2
   X                                      1/4       DM 1/4      1/4                         1/4
         ft (xt ) − ft (x∗ ) ≤ ηC3 r tr(LT ) tr RT ) +    (tr(LT ) + (ρL  1:T )
                                                                                1/4
                                                                                    )(tr(RT ) + (ρR  1:T )
                                                                                                          1/4
                                                                                                              )
   t=1
                                                     2η
                                                           √
                           √             1/4      1/4        rDM          1/4                        1/4                                         (13)
                          ≤ rDM C3 tr(LT ) tr(RT ) +                (tr(LT ) + (ρL    1:T )
                                                                                           1/4
                                                                                               )(tr(RT ) + (ρR  1:T )
                                                                                                                      1/4
                                                                                                                          )
                             √                               2                     
                                      1/4                     1/4
                          =O    r(tr(LT ) + (ρL
                                              1:T )
                                                    1/4
                                                        )(tr(RT ) + (ρR  1:T )
                                                                              1/4
                                                                                  ) .

                                                                          22
                            Dimension-Free Adaptive Subgradient Methods with Frequent Directions

B. Online to Batch Reduction

Algorithm 6 Online to Batch Conversion
 1: Input: Time horizon T , rounds N , smoothness parameter L, OCO method A
 2: Initialize x1 to be any point in the domain
 3: for t = 1 to T do
                                                  2
 4:    Construct ft (x) = f (x) + L ∥x − xt ∥
 5:    Set x1t = xt and pass x1t to A
 6:    for i = 1 to N do
 7:       Play xit , derive the gradient ∇ft (xt ; ξt ), and construct gti (x) = ∇ft (xt ; ξt )⊤ x
 8:       Send gti (x) to A and receive xi+1
                                          t
 9:    end for               PN
10:    Update xt+1 = N1 i=1 xit
11: end for
12: Return xk = arg mink∈[T +1] ∥∇f (xt )∥


In this section, we give some details for the reduction of non-convex stochastic optimization to online convex optimization
for completeness. We use the framework of Agarwal et al. (2019), which Feinberg et al. (2023) also adopt before.
Under this framework, we optimize a non-convex loss function f (x) through construcing a new loss function ft (x) =
                     2
f (x) + L ∥x − xt ∥ , which is strongly convex. In each round, we pass the loss function ft (x) to any OCO method, A,
(it can be any algorithm in this paper), and use A to optimize it for N rounds. When deriving the stochastic gradient, we
                                                                                                                       2
use a batch ξt to derive ∇ft (xt ; ξt ), which satisfy E[∇ft (xt ; ξt )] = ∇ft (xt ) and E[∥∇ft (xt ; ξt ) − ∇ft (xt )∥ ] ≤ σ 2 . The
algorithm is stated in Algorithm 6, and we provide the convergence guarantees in the following. We first define the adaptive
ratio.
Definition B.1. We denote xA be the output of an OCO method A and x∗ ∈ arg minx∈Rd f (x), we define the adaptive
ratio of A as
                                                      f (xA ) − f (x∗ )
                                            µA (f ) =
                                                        ∥x1 − x∗ ∥ Tσ

Then we provide the convergence of this reduction.
Theorem B.2. (Theorem A.2 in Agarwal et al. (2019)) We assume f (x) is L-smooth, ∇2 f (x) ≤ L, maxx,y f (x) −
                                             2                                                                             2   2
f (y) ≤ F , E[∥∇ft (xt ; ξt ) − ∇ft (xt )∥ ] ≤ σ 2 , and µ = maxt µA (ft ). By setting T = 12M
                                                                                             ϵ2
                                                                                                L
                                                                                                  and N = 48µϵ2 σ , the
output of Algorithm 6 satisfies
                                                         E [∥∇f (x∗t )∥] ≤ ϵ.

It is evident that the total number of queries to the stochastic gradient oracle is O(µ2 σ 2 /ϵ4 ).
By using this framework, we can translate the regret bound of an OCO algorithm into convergence guarantees for stochastic
optimization.

C. Full experiments
In this section, we conduct empirical studies to evaluate our proposed algorithms. In online classification task, we compare
our methods with ADA-DIAG (Duchi et al., 2011), RADAGRAD (Krummenacher et al., 2016), FD-SON (Luo et al.,
2018), ADA-FFD under two frameworks (Wan & Zhang, 2022) and S-ADA (Feinberg et al., 2023). In image classification
task and language modeling task, we compare our methods with ADA-DIAG, ADA-FFD under two frameworks, S-
ADA, Shampoo (Gupta et al., 2018), S-Shampoo (Feinberg et al., 2023). When it comes to hyper-parameter tuning, we
either set the hyper-parameters as recommended in the original papers or tune them by grid search. For example, for
learning rate η and regularizer parameter ϵ, we search them from the set {1e − 5, 1e − 4, 1e − 3, 1e − 2, 1e − 1, 1, 5} and
{1e − 5, 1e − 4, 1e − 3, 1e − 2, 1e − 1, 1, 5}, respectively, and select the best one. All experiments are conducted on 8
NVIDIA 3090 GPUs.

                                                                  23
                                                           Dimension-Free Adaptive Subgradient Methods with Frequent Directions

                                                                                                      200
           98
                                                                                                      150                                                                                     100
           96
Accuracy




                                                                                                                                                                                      Time
                                                                                               Loss
           94                                                                                         100
                                                                                                                                                                                              50
           92                                                                                          50

           900                                                                                          00                                                                                       0
                                       500        1000         1500               2000                              500          1000                              1500       2000                0               500           1000       1500          2000
                                             # of iterations                                                          # of iterations                                                                                    # of iterations

                        ADA-DIAG                      RADAGRAD                               FD-SON            ADA-FFD (M)                                          ADA-FFD (P)                S-ADA                       Fast S-ADA                  FTFSL


                                                                                                      Figure 3. Results for Gisette dataset.


                    90
                    88                                                                                1500                                                                                  60
    Accuracy




                    86                                                                                                                                                                      40




                                                                                                                                                                                     Time
                                                                                                      1000
                                                                                              Loss




                    84
                                                                                                       500                                                                                  20
                    82
                    800                                                                                  00                                                                                   0
                                                2000             4000                                                      2000                                        4000                    0                         2000                   4000
                                              # of iterations                                                             # of iterations                                                                             # of iterations

                        ADA-DIAG                      RADAGRAD                               FD-SON            ADA-FFD (M)                                          ADA-FFD (P)                S-ADA                       Fast S-ADA                  FTFSL


                                                                                                      Figure 4. Results for Epsilon dataset.

                              95
                                                                                                                                                                                                                 5 1e4
                                                                                                                                 Training loss (log scale)




                                                                                                                                                             0.0
           Testing accuracy




                              90                                                      1.0                                                                                                                        4
                                                                       Testing loss




                                                                                                                                                             2.5                                                 3
                              85                                                      0.8
                                                                                                                                                                                                          Time




                                                                                                                                                             5.0                                                 2
                              80                                                      0.6
                                                                                                                                                             7.5                                                 1
                                                                                      0.4
                              750       50      100      150     200                     0       50      100    150        200                                                                                   00
                                                                                                                                                               0        50     100      150         200                    50      100      150        200
                                         # of iterations                                          # of iterations                                                         # of iterations                                     # of iterations

                                   ADA-DIAG            ADA-FFD (M)                            ADA-FFD (P)             S-ADA                                        Shampoo           S-Shampoo                        FTFSL              FTSL-Shampoo


                                                                                                 Figure 5. Results for CIFAR-10 dataset.



C.1. Online Classification
First, we perform online classification to evaluate the performance of our methods with two real world datasets from
LIBSVM (Chang & Lin, 2011) repository: Gisette and Epsilon, which are high-dimensional and dense. Particularly, Gisette
contains 6000 training samples and 1000 testing samples, with 5000 features. Epsilon dataset consists of 400, 000 training
samples and 100, 000 testing samples, with 2000 features. Let T denote the number of total rounds. In each round t ∈ [T ],
                                                                                                           d
                                                                                                       Pn1] × {−1, 1}, i = ⊤1, . . . , n.
a batch of training examples {(wt,1 , yt,1 ) , . . . , (wt,n , yt,n )} arrive, where (wt,i , yt,i ) ∈ [−1,
                                                                                                     1
The online learner aims to predict a linear model xt and suffers the hinge loss ft (xt ) = n i=1 max{0, 1 − yt xt wt,i }.
Setup. For Gisette, we set the batch size n = 32, the τ = 50 to be 1% of the original dimensionality, and T = 2000. For

                                                                                                                            24
                                                        Dimension-Free Adaptive Subgradient Methods with Frequent Directions

                         75                                                                                                                                                                            10 1e4




                                                                                                                           Training loss (log scale)
                         70
      Testing accuracy
                                                                                 3.0                                                                   0.0                                               8




                                                                  Testing loss
                         65                                                                                                                                                                              6
                                                                                 2.5




                                                                                                                                                                                                Time
                                                                                                                                                       2.5
                         60                                                                                                                                                                              4
                                                                                 2.0                                                                   5.0
                         55                                                                                                                                                                              2
                                                                                 1.5                                                                   7.5
                         500       50     100      150     200                      0     50     100      150     200                                                                                    00
                                                                                                                                                          0       50       100      150   200                     50        100      150     200
                                     # of iterations                                        # of iterations                                                           # of iterations                                 # of iterations

                               ADA-DIAG           ADA-FFD (M)                           ADA-FFD (P)             S-ADA                                         Shampoo             S-Shampoo                   FTFSL               FTSL-Shampoo


                                                                                          Figure 6. Results for CIFAR-100 dataset.


Epsilon, we set the batch size n = 128, the τ = 20 and T = 5000 to pass through all the training data.
Results. Following Duchi et al. (2011), we adopt the performance of accuracy on the testing data to compare different
methods. To better demonstrate the improvements of our methods, we additionally plot the loss and runtime (measured in
seconds) of various methods. From Figure 3 and Figure 4, we observe that FTFSL outperforms all other methods in both
loss and testing accuracy, aligning with its superior regret bound. Moreover, FTFSL and Fast S-ADA exhibit significantly
lower runtimes compared to S-ADA, owing to their superior time complexities.

C.2. Image Classification
In this section, we conduct numerical experiments on multi-class image classification tasks to evaluate the performance of
the proposed methods, we compare FTFSL and FTSL-Shampoo with several baseline methods. The experiments involve
training ResNet18 and ResNet34 models (He et al., 2016) on the CIFAR-10 and CIFAR-100 datasets (Krizhevsky, 2009),
respectively, for 200 iterations with batch size of 128.
Setup. For ADA-FFD, S-ADA, FTFSL, the sketching size τ is determined based on the dimensionality of the flattened
gradient, which is defined as:
                                        τ = min{⌈d × 0.1⌉, 100},
where d represents the total elements of parameters in each layer. We dynamically set the upper bound of the sketching
size based on the dimensionality of each layer. For S-Shampoo and FTSL-Shampoo, due to its memory efficiency, we set
τ = ⌈0.1 × di ⌉, where di is the dimensionality of the i-th dimension of a gradient. For the sake of fairness, we do not
employ momentum trick.
Results. We plot the loss value and the accuracy against the iterations on the CIFAR-10 and CIFAR-100 in Figure 5 and
Figure 6, respectively. It is observed that, for training loss and testing accuracy, our FTSL-Shampoo achieves comparable
performance with respect to Shampoo, while significantly improving memory efficiency and reducing running time, which
aligns with the theoretical guarantees. Additionally, our FTFSL converges more quickly than other sketching based
algorithms, indicating the effectiveness of the proposed method. Moreover, we also present the running time of each method.
FTFSL demonstrates a significant reduction in running time compared to S-ADA, owing to its improved time complexity.

                       400                                                                                                                                                                             1.5 1e4
                                                                               6.00
                                                                                                                                               6.0
  Testing perplexity




                                                                                                                        Training loss




                                                                               5.75                                                                                                                    1.0
                                                                Testing loss




                       300                                                                                                                     5.5
                                                                                                                                                                                                Time




                                                                               5.50
                                                                                                                                               5.0                                                     0.5
                       200                                                     5.25
                                                                                                                                               4.5
                                                                               5.00                                                                                                                    0.00
                              0    10      20      30      40                      0      10      20      30      40                                   0         10        20       30    40                      10         20         30    40
                                     # of iterations                                        # of iterations                                                       # of iterations                                      # of iterations

                               ADA-DIAG           ADA-FFD (M)                           ADA-FFD (P)             S-ADA                                         Shampoo             S-Shampoo                   FTFSL               FTSL-Shampoo


                                                                                           Figure 7. Results for WikiText-2 dataset.



                                                                                                                       25
                         Dimension-Free Adaptive Subgradient Methods with Frequent Directions

C.3. Language Modeling Task
In this section, we perform experiments on language modeling task. Concretely, we train a 2-layer Transformer (Vaswani
et al., 2017) over the WiKi-Text2 dataset (Merity, 2016). We use 256 dimensional word embeddings, 256 hidden unites
and 2 heads. We also clip the gradients by norm 0.5 in case of the exploding gradient. The batch size is set as 64 and all
methods are trained for 40 epochs with dropout rate 0.1.
Setup. The experimental setup follows that of image classification. For computational efficiency, we do not employ a
preconditioning matrix in the embedding layer.
Results. We report the loss, perplexity and the run time in Figure 7. As can be seen, FTFSL and FTSL-Shampoo suffer
lower loss and obtain better perplexity compared to other sketching based algorithms, indicating the effectiveness of the
proposed methods. Moreover, FTFSL exhibits markedly improved efficiency over S-ADA.




                                                           26
