Introduction
Adaptive optimization methods have been extensively studied over the past decade, owing to their ability to reduce the need for laborious learning-rate tuning while retaining theoretical guarantees comparable to those of carefully tuned algorithms ([46 , 13 , 25 , 35 , 3 ] ). The pioneering work of Duchi et al. [14 ] introduces adaptive subgradient methods with full matrices (ADA-FULL) within both the mirror descent framework Duchi et al., [15 ] and the primal-dual framework Xiao, [64 ] . However, ADA-FULL requires maintaining a preconditioning matrix of shape d × d d \times d d × d , resulting in O ( d 2 ) O(d^2) O ( d 2 ) space complexity and O ( d 3 ) O(d^3) O ( d 3 ) time complexity per round, where d d d is the dimensionality. Consequently, ADA-FULL is impractical for large-scale machine learning tasks involving high-dimensional data.
Meanwhile, in many modern machine learning applications, especially in deep learning tasks, the optimization variables are naturally matrix-valued LeCun et al., [39 ] , i.e., X t ∈ R m × n X_t \in\mathbb{R}^{m \times n} X t ∈ R m × n . Directly applying ADA-FULL requires vectorizing the parameter matrix, which overlooks the matrix structure and still incurs excessive space and time complexities. This limitation has motivated a growing body of work on structured preconditioners that exploit the geometry of matrix-valued variables [26 , 6 , 59 , 65 , 5 ] . As a representative example, Shampoo Gupta et al., [26 ] constructs a Kronecker-factored preconditioner along each axis of the gradient matrix, which lowers the memory and computational cost of ADA-FULL. Nevertheless, its regret guarantee depends on the rank of the gradients. In addition, maintaining a separate preconditioner for each axis can still incur considerable overhead. Thus, a natural question arises: can we develop efficient preconditioned optimization methods while retaining the performance of full-matrix methods?
In this paper, we provide an affirmative answer to this question by systematically investigating computationally efficient preconditioned optimization methods via frequent directions (FD) Ghashami et al., [22 ] . Let G T G_T G T denote the sum of gradient outer products over T T T rounds, τ ≪ d \tau\ll d τ ≪ d denote the sketching size, and ρ t \rho_t ρ t denote the eigenvalue discarded by FD in round t t t . Although several studies have developed efficient variants of ADA-FULL with FD [62 , 61 , 19 ] , the state-of-the-art algorithm, S-ADA Feinberg et al., [19 ] , still suffers from two drawbacks: ( i ) (i) ( i ) its regret bound of O ( tr ( G T 1 / 2 ) + d ( d − τ ) ρ 1 : T ) O(\operatorname{tr}(G_T^{1/2}) + \sqrt{d(d-\tau)}\rho_{1:T}) O ( tr ( G T 1/2 ) + d ( d − τ ) ρ 1 : T ) grows linearly with d d d ; ( i i ) (ii) ( ii ) its O ( τ 2 d ) O(\tau^2d) O ( τ 2 d ) time complexity depends quadratically on the sketching size τ \tau τ . To overcome these drawbacks, we first develop an algorithm termed Follow-the-Sketchy-Leader (FTSL). The key idea is to integrate FD with ADA-FULL under the primal-dual framework and add the cumulative discarded eigenvalues back into the preconditioner. FTSL attains a dimension-free regret bound of O ( tr ( G T 1 / 2 ) + ρ 1 : T ) O(\operatorname{tr}(G_T^{1/2}) + \sqrt{\rho_{1:T}}) O ( tr ( G T 1/2 ) + ρ 1 : T ) . We further propose an accelerated variant named FFTSL, which doubles the sketching size to lower the frequency of expensive SVD computations. FFTSL retains the same regret bound and the space complexity of FTSL, while reducing the per-round time complexity to O ( τ d ) O(\tau d) O ( τ d ) when τ ≤ d \tau\le\sqrt{d} τ ≤ d . This acceleration technique can also be applied to S-ADA, though its regret bound remains inferior to that of FFTSL. We summarize our results in Table 1 and Table 2 .
Table 1. Comparison of ADA-FULL and its FD-based variants, where (M) and (P) represent the primal-dual framework and the mirror descent framework, respectively.
Table 2. Comparison of FD-based variants of ADA-FULL, where (M) and (P) represent the primal-dual framework and the mirror descent framework, respectively.
Second, we consider optimization over matrix-valued decision variables, a scenario commonly encountered in deep learning tasks. Let G t X ∈ R m × n G_t^X \in\mathbb{R}^{m \times n} G t X ∈ R m × n be the gradient at round t t t , r r r be the upper bound on the rank of G t X G_t^X G t X , L T = ∑ t = 1 T G t X ( G t X ) ⊤ L_T = \sum_{t=1}^{T} G_t^X(G_t^X)^\top L T = ∑ t = 1 T G t X ( G t X ) ⊤ and R T = ∑ t = 1 T ( G t X ) ⊤ G t X R_T = \sum_{t=1}^{T}(G_t^X)^\top G_t^X R T = ∑ t = 1 T ( G t X ) ⊤ G t X be its left and right covariance matrices. Feinberg et al. [19 ] applies FD to Shampoo and reduces its space complexity to O ( τ ( m + n ) ) O(\tau(m+n)) O ( τ ( m + n )) . Nevertheless, its regret bound of O ( r ( tr ( L T 1 / 4 ) + m ( ρ 1 : T L ) 1 / 4 ) tr ( R T 1 / 4 ) + n ( ρ 1 : T R ) 1 / 4 ) ) O(\sqrt{r(\operatorname{tr}(L_T^{1/4}) + m(\rho_{1:T}^L)^{1/4})\operatorname{tr}(R_T^{1/4}) + n(\rho_{1:T}^R)^{1/4})}) O ( r ( tr ( L T 1/4 ) + m ( ρ 1 : T L ) 1/4 ) tr ( R T 1/4 ) + n ( ρ 1 : T R ) 1/4 ) ) again depends on the dimensions m m m and n n n , where ρ 1 : T L \rho_{1:T}^L ρ 1 : T L and ρ 1 : T R \rho_{1:T}^R ρ 1 : T R denote the cumulative eigenvalues discarded by FD when sketching L T L_T L T and R T R_T R T , respectively. To eliminate this dimension dependence, we develop FTSL-Shampoo by combining FD with a primal-dual variant of Shampoo and provide a novel analysis. FTSL-Shampoo attains a dimension-free regret bound of O ( r ( tr ( L T 1 / 4 ) + ( ρ 1 : T L ) 1 / 4 ) ( tr ( R T 1 / 4 ) + ( ρ 1 : T R ) 1 / 4 ) ) O\left(\sqrt{r}\left(\operatorname{tr}\left(L_T^{1/4}\right)+\left(\rho_{1:T}^{L}\right)^{1/4}\right)\left(\operatorname{tr}\left(R_T^{1/4}\right)+\left(\rho_{1:T}^{R}\right)^{1/4}\right)\right) O ( r ( tr ( L T 1/4 ) + ( ρ 1 : T L ) 1/4 ) ( tr ( R T 1/4 ) + ( ρ 1 : T R ) 1/4 ) ) , while preserving the same space complexity. Despite this improvement, FTSL-Shampoo still maintains a separate preconditioner for each axis. Consequently, when extended to higher order parameters, its memory and computational overhead grows with the number of axes.
To handle the aforementioned limitations, we incorporate FD into ASGO ([65 , 5 ] ) and propose Sketchy ASGO (S-ASGO). Instead of keeping the preconditioner for each axis, S-ASGO maintains a low-rank approximation of the preconditioner only along the smaller dimension, which reduces the space complexity of FTSL-Shampoo from O ( τ ( m + n ) ) O(\tau(m+n)) O ( τ ( m + n )) to O ( τ m ) O(\tau m) O ( τ m ) . We provide a novel analysis of S-ASGO under both the mirror descent and the primal-dual frameworks and establish the regret bounds O ( tr ( L T 1 / 2 ) + m ρ 1 : T L ) O\left(\operatorname{tr}\left(L_T^{1/2}\right)+m\sqrt{\rho_{1:T}^{L}}\right) O ( tr ( L T 1/2 ) + m ρ 1 : T L ) and O ( tr ( L T 1 / 2 ) + ρ 1 : T L ) O\left(\operatorname{tr}\left(L_T^{1/2}\right)+\sqrt{\rho_{1:T}^{L}}\right) O ( tr ( L T 1/2 ) + ρ 1 : T L ) , respectively. Both bounds are independent of the rank r r r , and their leading term O ( tr ( L T 1 / 2 ) ) O(\operatorname{tr}(L_T^{1/2})) O ( tr ( L T 1/2 )) is no larger than that of FTSL-Shampoo, which indicates that a single preconditioner already suffices to capture the dominant curvature information. Furthermore, we extend all of the above methods to the offline stochastic convex optimization setting. We provide convergence rates for both non-smooth and smooth objectives, and exploit the smoothness of the objective to attain a faster rate. A detailed comparison with prior methods ([26 , 19 , 5 ] ) is given in Table 3 . To reduce the runtime overhead of SVD in practice, we adopt a more efficient singular-value computation procedure ([24 ] ) and develop a practical variant of S-ASGO for large-scale model training. Extensive experiments demonstrate that our methods attain performance comparable to that of existing approaches while consistently reducing computational cost.
Table 3. Comparison of adaptive methods when the decision has a matrix structure X t ∈ R m × n X_t \in\mathbb{R}^{m \times n} X t ∈ R m × n , where (M) and (P) represent the primal-dual framework and the mirror descent framework, respectively. Without loss of generality, we assume m ≤ n m \le n m ≤ n . We denote the gradient by G t X ∈ R m × n G_t^X \in\mathbb{R}^{m \times n} G t X ∈ R m × n and let r r r be the largest rank of G t X G_t^X G t X .
A preliminary version of this paper was presented at the 42nd International Conference on Machine Learning (ICML 2025) ([68 ] ). The conference version focused on the online setting and primarily built on ADA-FULL, developing FTSL, FTFSL and Fast S-ADA for vector-valued decisions, together with FTSL-Shampoo for matrix-valued decisions. In this paper, we significantly expand the conference version in terms of algorithm design, theoretical analysis, and empirical studies. The main extensions are summarized as follows.
We propose S-ASGO by incorporating FD into ASGO under both the mirror descent and the primal-dual frameworks (Algorithm 7). S-ASGO reduces the space complexity of FTSL-Shampoo from O ( τ ( m + n ) ) O(\tau(m+n)) O ( τ ( m + n )) to O ( τ m ) O(\tau m) O ( τ m ) , while attaining tighter regret bounds (Theorems 7 and 8 ).
We extend all of our methods to the offline stochastic convex optimization setting and establish convergence rates for both non-smooth and smooth objectives (Theorems 4,
5, 9, and 10). The dimension-free advantage of our online analysis carries over to the offline setting, and our methods attain faster rates on smooth objectives.
We develop a practical variant of S-ASGO tailored to large-scale model pretraining (Algorithm 8). This variant substantially improves the efficiency of S-ASGO while preserving its empirical effectiveness.
We conduct extensive experiments to validate the effectiveness and efficiency of our methods, in particular on large language model pretraining tasks.
Organization. The remainder of the paper is structured as follows. Section 2 briefly reviews related work. Section 3 presents the preliminaries, including the notation, assumptions, as well as the technical tools that underpin our analysis. Section 4 illustrates our main results, together with their extension to offline stochastic optimization. Section 5 establishes our results for optimization with matrix structure. Section 6 provides the analysis of all theorems. Section 7 empirically validates the efficiency of our algorithms through experiments on a variety of tasks. Section 8 concludes the paper and discusses future work.
Related Work
In this section, we briefly review the related work on adaptive subgradient methods, their efficient variants based on matrix sketching, and optimization with matrix structure.
Online Convex Optimization and Adaptive Subgradient Methods
Online convex optimization (OCO) is a powerful paradigm for solving sequential decision-making problems [28 , 51 , 71 , 72 ] . Specifically, it is typically formulated as an iterative game between a player and an adversary. In each round t ∈ [ T ] t \in[T] t ∈ [ T ] , the player begins by selecting a decision x t ∈ R d x_t \in\mathbb{R}^{d} x t ∈ R d . After that, the adversary chooses a convex loss function f t ( ⋅ ) : R d ↦ R f_t(\cdot): \mathbb{R}^{d} \mapsto\mathbb{R} f t ( ⋅ ) : R d ↦ R , and the player incurs a loss f t ( x t ) f_t(x_t) f t ( x t ) . The goal of the player is to minimize the cumulative loss ∑ t = 1 T f t ( x t ) \sum_{t=1}^{T} f_t(x_t) ∑ t = 1 T f t ( x t ) over T T T rounds, which is equivalent to minimizing the regret [75 ]
R ( T ) = ∑ t = 1 T f t ( x t ) − ∑ t = 1 T f t ( x ∗ ) , (1) R(T) = \sum_{t=1}^{T} f_t(x_t) - \sum_{t=1}^{T} f_t(x^*), \tag*{(1)} R ( T ) = t = 1 ∑ T f t ( x t ) − t = 1 ∑ T f t ( x ∗ ) , (1)
defined as the excess loss suffered by the player compared to the loss of the fixed optimal choice x ∗ ∈ arg min x ∈ R d ∑ t = 1 T f t ( x ) x^* \in\arg\min_{x \in\mathbb{R}^{d}} \sum_{t=1}^{T} f_t(x) x ∗ ∈ arg min x ∈ R d ∑ t = 1 T f t ( x ) . Although Zinkevich [75 ] establishes the optimal regret bound of O ( T ) O(\sqrt{T}) O ( T ) for convex loss functions, it is data-independent. In the following, we will introduce ADAGRAD [13 , 14 ] , a widely-used adaptive subgradient method, in both the primal-dual subgradient framework [64 ] and the mirror descent framework [15 ] , which achieves a data-dependent regret bound.
ADAGRAD can be categorized into two forms based on how the preconditioner G ~ t \widetilde{G}_t G t is computed: ADAGRAD with full matrices (ADA-FULL) and ADAGRAD with diagonal matrices (ADA-DIAG). Let g t g_t g t be a particular vector in the subdifferential set ∂ f t ( x t ) \partial f_t(x_t) ∂ f t ( x t ) . Since we do not require the loss function to be smooth, we will not explicitly distinguish subgradients and gradients in the subsequent discussion. ADA-FULL first calculates the outer product matrix of the past gradients G t = ∑ i = 1 t g i g i ⊤ G_t = \sum_{i=1}^{t} g_i g_i^\top G t = ∑ i = 1 t g i g i ⊤ , and further defines a symmetric matrix G ~ t = ϵ I d × d + G t 1 / 2 \widetilde{G}_t=\epsilon I_{d\times d}+G_t^{1/2} G t = ϵ I d × d + G t 1/2 , where ϵ > 0 \epsilon>0 ϵ > 0 is a hyper-parameter introduced to ensure the invertibility of G t G_t G t . According to the primal-dual framework, the update rule is given by
x t + 1 = arg min x ∈ R d { η ⟨ 1 t g ˉ t , x ⟩ + 1 t Ψ t ( x ) } = − η G ~ t − 1 g ˉ t x_{t+1}=\underset{x\in\mathbb{R}^d}{\arg\min}\left\{\eta\left\langle\frac{1}{t}\bar{g}_t,x\right\rangle+\frac{1}{t}\Psi_t(x)\right\}
=-\eta\widetilde{G}_t^{-1}\bar{g}_t x t + 1 = x ∈ R d arg min { η ⟨ t 1 g ˉ t , x ⟩ + t 1 Ψ t ( x ) } = − η G t − 1 g ˉ t
where η \eta η is the learning rate, g ˉ t = ∑ i = 1 t g i \bar{g}_t=\sum_{i=1}^{t}g_i g ˉ t = ∑ i = 1 t g i is the sum of the received gradients and Ψ t ( x ) = 1 2 ⟨ x , G ~ t x ⟩ \Psi_t(x)=\frac{1}{2}\langle x,\widetilde{G}_t x\rangle Ψ t ( x ) = 2 1 ⟨ x , G t x ⟩ is the proximal term. The mirror descent version updates the decision as follows
x t + 1 = arg min x ∈ R d { η ⟨ g t , x ⟩ + B Ψ t ( x , x t ) } = x t − η G ~ t − 1 g t x_{t+1}=\underset{x\in\mathbb{R}^d}{\arg\min}\left\{\eta\langle g_t,x\rangle+B_{\Psi_t}(x,x_t)\right\}
=x_t-\eta\widetilde{G}_t^{-1}g_t x t + 1 = x ∈ R d arg min { η ⟨ g t , x ⟩ + B Ψ t ( x , x t ) } = x t − η G t − 1 g t
where B Ψ t ( x , y ) = Ψ t ( x ) − Ψ t ( y ) − ⟨ ∇ Ψ t ( y ) , x − y ⟩ B_{\Psi_t}(x,y)=\Psi_t(x)-\Psi_t(y)-\langle\nabla\Psi_t(y),x-y\rangle B Ψ t ( x , y ) = Ψ t ( x ) − Ψ t ( y ) − ⟨ ∇ Ψ t ( y ) , x − y ⟩ is the Bregman divergence associated with Ψ t ( ⋅ ) \Psi_t(\cdot) Ψ t ( ⋅ ) . ADA-FULL achieves an O ( tr ( G T 1 / 2 ) ) O(\operatorname{tr}(G_T^{1/2})) O ( tr ( G T 1/2 )) regret bound within both frameworks. However, ADA-FULL stores the past gradient outer products, i.e., G t G_t G t , and computes G t − 1 / 2 G_t^{-1/2} G t − 1/2 , resulting in O ( d 2 ) O(d^2) O ( d 2 ) and O ( d 3 ) O(d^3) O ( d 3 ) space and time complexities, respectively. The high computational cost of ADA-FULL prohibits its out-of-the-box use in typical machine learning problems, such as training neural networks ([57 , 23 , 58 ] ).
Different from ADA-FULL, ADA-DIAG only utilizes the diagonal elements of the gradient outer product matrix, i.e., redefining G ~ t = ϵ I d × d + diag ( G t ) 1 / 2 \widetilde{G}_t=\epsilon I_{d\times d}+\operatorname{diag}(G_t)^{1/2} G t = ϵ I d × d + diag ( G t ) 1/2 , which thus is computationally more efficient. However, since the preconditioning matrix of ADA-DIAG only contains limited information, the regret bound of ADA-DIAG is worse than that of ADA-FULL when high-dimensional data is dense and has a low-rank structure.
Adaptive Subgradient Methods with Matrix Sketching
To alleviate the computational burden of ADA-FULL, several works have employed the sketching techniques to reduce its space and time complexities ([37 , 61 , 19 ] (Wan and Zhang 2018; Wan et al. 2018)). Krummenacher et al. [37 ] propose ADA-LR to enhance the computational efficiency of ADA-FULL by using random projection ([32 , 1 ] ). While ADA-LR reduces the time complexity to O ( τ d 2 ) O(\tau d^2) O ( τ d 2 ) , its space complexity remains at O ( d 2 ) O(d^2) O ( d 2 ) , where τ ≪ d \tau\ll d τ ≪ d is the sketching size. To further improve the efficiency, they develop RADAGRAD, which incorporates a more randomized approximation, achieving space and time complexities of O ( τ d ) O(\tau d) O ( τ d ) and O ( τ 2 d ) O(\tau^2d) O ( τ 2 d ) , respectively. However, RADAGRAD is not supported by rigorous theoretical analysis. Later, Wan and Zhang (2018) develop ADA-DP based on random projection, which achieves space and time complexities of O ( τ d ) O(\tau d) O ( τ d ) and O ( τ 2 d ) O(\tau^2d) O ( τ 2 d ) , while providing theoretical guarantees.
Another class of sketching-based adaptive subgradient methods adopts frequent directions (FD) ([22 ] ), a stable matrix sketching technique. Wan et al. [62 ] first apply FD with ADA-FULL under both the primal-dual subgradient framework and the mirror descent framework by maintaining a matrix B t ∈ R d × τ B_t\in\mathbb{R}^{d\times\tau} B t ∈ R d × τ , such that B t B t T ≈ G t ∈ R d × d B_tB_t^{\mathsf{T}}\approx G_t\in\mathbb{R}^{d\times d} B t B t T ≈ G t ∈ R d × d . Their approach, ADA-FD, obtains space and time complexities of O ( τ d ) O(\tau d) O ( τ d ) and O ( τ 2 d ) O(\tau^2d) O ( τ 2 d ) , respectively.
ADA-FD achieves regret bounds of O ( tr ( G T 1 / 2 ) + ∑ t = 1 T ρ t ) O(\operatorname{tr}(G_{T}^{1/2})+\sum_{t=1}^{T}\sqrt{\rho_t}) O ( tr ( G T 1/2 ) + ∑ t = 1 T ρ t ) and O ( tr ( G T 1 / 2 ) + ∑ t = 1 T τ ρ t ) O(\operatorname{tr}(G_{T}^{1/2})+\sum_{t=1}^{T}\tau\sqrt{\rho_t}) O ( tr ( G T 1/2 ) + ∑ t = 1 T τ ρ t ) under the primal-dual subgradient framework and the mirror descent framework, where ρ t \rho_t ρ t is the removed eigenvalue of FD in round t t t . Furthermore, Wan and Zhang [61 ] introduce a fast variant of ADA-FD, named ADA-FFD, by doubling the sketching size. ADA-FFD improves the time complexity to O ( τ d ) O(\tau d) O ( τ d ) while keeping the same regret bounds. Although ADA-FD and ADA-FFD enjoy better space and time complexities, as mentioned by Feinberg et al. [19 ] , their regret bounds are Ω ( T 3 / 4 ) \Omega(T^{3/4}) Ω ( T 3/4 ) in some cases. For this reason, Feinberg et al. [19 ] propose S-ADA by adding back the discarded information of FD to the FD-based preconditioner instead of utilizing a fixed diagonal regularization. While S-ADA enjoys an O ( tr ( G T 1 / 2 ) + d ( d − τ ) ρ 1 : T ) O(\operatorname{tr}(G_{T}^{1/2})+\sqrt{d(d-\tau)}\rho_{1:T}) O ( tr ( G T 1/2 ) + d ( d − τ ) ρ 1 : T ) regret bound, it suffers from a linear dependence on the dimensionality d d d . Moreover, it only achieves an unsatisfactory time complexity of O ( τ 2 d ) O(\tau^{2}d) O ( τ 2 d ) .
Additionally, FD has been utilized to accelerate the online Newton step (ONS) algorithm ([29 ] ) for exponentially concave functions, and the LinUCB algorithm ([10 ] ) in the linear contextual bandit setting, both of which also need to maintain a covariance matrix. Luo et al. [44 ] first apply FD in ONS to construct a low-rank approximation of the matrix. To reduce the approximation error of FD, Luo et al. [45 ] develop a new sketching scheme called robust frequent directions (RFD), which is the first method that compensates the discarded singular values back into the second-order matrix. They utilize RFD to propose a hyperparameter-free variant of ONS, which is more robust than FD-SON. In the linear contextual bandit setting, Chen et al. [9 ] design spectral compensation frequent directions (SCFD) to approximate the covariance matrices, which adds up the total mass of subtracted values during the FD procedure. SCFD can approximate a sequence of incremental covariance matrices while keeping the positive definite monotonicity.
Adaptive Preconditioned Optimization with Matrix Structure
Optimization over matrix-valued decision variables has emerged as a central topic in modern machine learning, owing to the ubiquity of matrix-structured parameters in deep neural networks ([39 ] ). Shampoo ([26 ] ) is an adaptive optimization method that first takes the structure of the parameter space into consideration and thus is more efficient than ADA-FULL in scenarios where the decision is a matrix. Shampoo has attracted significant attention due to its Kronecker-factored preconditioning strategy. Specifically, Shampoo maintains a set of preconditioning matrices, each of which operates on one dimension, while aggregating information across the remaining dimensions. For example, for a parameter matrix X t ∈ R m × n X_t \in\mathbb{R}^{m \times n} X t ∈ R m × n and its gradient G t X ∈ R m × n G_t^{X} \in\mathbb{R}^{m \times n} G t X ∈ R m × n , ADA-FULL treats the matrix-shaped gradient as a vector of size m n mn mn and its preconditioner G ~ t \widetilde{G}_t G t has size m n × m n mn \times mn mn × mn , which leads to O ( m 2 n 2 ) O(m^{2}n^{2}) O ( m 2 n 2 ) and O ( m 3 n 3 ) O(m^{3}n^{3}) O ( m 3 n 3 ) space and time complexities, respectively. In contrast, Shampoo constructs two smaller matrices, L t ∈ R m × m L_t \in\mathbb{R}^{m \times m} L t ∈ R m × m and R t ∈ R n × n R_t \in\mathbb{R}^{n \times n} R t ∈ R n × n , to precondition the rows and columns of G t X G_t^{X} G t X , respectively, which only requires an O ( m 2 + n 2 ) O(m^{2}+n^{2}) O ( m 2 + n 2 ) memory cost and an O ( m 3 + n 3 ) O(m^{3}+n^{3}) O ( m 3 + n 3 ) computational complexity. Since the parameters in deep learning tasks often have matrix structures, Shampoo has strong empirical performance and has received much attention ([6 , 40 , 17 ] ).
In recent years, a growing body of work has sought to improve Shampoo from complementary perspectives. CASPR ([16 ] ) designs a new preconditioning matrix to improve the regret bound of Shampoo. Vyas et al. [59 ] introduce SOAP, which performs Adam (Kingma and Ba, [35 ] ) in the eigenspace of the gradient, achieving better performance than Adam and Shampoo. Another line of research focuses on reducing optimizer-state memory through low-rank gradient projection. GaLore (Zhao et al., [74 ] ) projects gradients onto a low-rank subspace and maintains the preconditioner only within this reduced space to reduce the memory cost. However, as highlighted by He et al. [31 ] , GaLore provably fails to converge in the regime of large stochastic noise. To address this limitation, they propose GoLore, which replaces the SVD-based projection in GaLore with a random projection, thereby restoring convergence guarantees. From a different perspective, Muon (Jordan et al., [33 ] ) formulates the update as steepest descent under the spectral norm and has been successfully applied to training large foundation models at scale. Building on low-rank gradient projection, Pan et al. [54 ] reduce the memory requirements of Muon by applying layerwise low-rank projections (Pan et al., [53 ] ). Nguyen et al. [50 ] propose AdaDiag, which can be viewed as a simplified variant of SOAP that performs singular value decomposition without accumulating gradient covariance statistics.
However, the memory demands of Shampoo may still be prohibitive for large-scale neural networks. Anil et al. [6 ] address the memory cost of Shampoo by introducing two variants. The first variant partitions the variable X t X_t X t into several blocks but it depends on the specific ordering of neurons in the hidden layers. The second variant relies on one-sided covariance upper bounds, which cannot effectively handle vector parameters. Feinberg et al. [19 ] first incorporate FD into Shampoo and reduce its memory to O ( τ ( m + n ) ) O(\tau(m+n)) O ( τ ( m + n )) . Their method, named S-Shampoo, uses two low-rank matrices L ^ t ∈ R m × τ \hat{L}_t \in\mathbb{R}^{m \times\tau} L ^ t ∈ R m × τ and R ^ t ∈ R n × τ \hat{R}_t \in\mathbb{R}^{n \times\tau} R ^ t ∈ R n × τ to approximate the preconditioning matrices L t L_t L t and R t R_t R t , respectively. While S-Shampoo improves the space complexity of Shampoo, its regret bound relies on the dimensions m m m , n n n , leading to the unsatisfactory performance when the dimensions are high. More recently, two concurrent works ([65 , 5 ] ) independently developed ASGO (also referred to as One-Sided Shampoo), which maintains a preconditioner for only one axis of the gradient matrix. Despite this simpler structure, ASGO achieves improved regret bounds compared to Shampoo at a lower computational cost.
Preliminaries
We begin by introducing the notation, followed by the assumptions underlying our analysis and the sketching technique that serves as the algorithmic foundation of our methods.
Notation. We use x ∈ R d \mathbf{x} \in\mathbb{R}^{d} x ∈ R d to denote a vector and X ∈ R m × n X \in\mathbb{R}^{m \times n} X ∈ R m × n to represent a matrix. Without loss of generality, we assume m ≤ n m \le n m ≤ n . For simplicity, we use ∥ ⋅ ∥ \lVert\cdot\rVert ∥ ⋅ ∥ for the ℓ 2 \ell_2 ℓ 2 norm by default. For any vector x ∈ R d \mathbf{x} \in\mathbb{R}^{d} x ∈ R d and a positive semi-definite matrix A ∈ R d × d A \in\mathbb{R}^{d \times d} A ∈ R d × d , ∥ x ∥ A 2 = ⟨ x , A x ⟩ \lVert\mathbf{x} \rVert_A^2 = \langle\mathbf{x}, A\mathbf{x}\rangle ∥ x ∥ A 2 = ⟨ x , A x ⟩ . We use [ x ] i [\mathbf{x}]_i [ x ] i to represent the i i i -th element of a vector x \mathbf{x} x . For a matrix A A A , A − 1 A^{-1} A − 1 is the inverse of A A A if A A A is full rank; otherwise, A − 1 A^{-1} A − 1 is taken to be the Moore-Penrose pseudoinverse. We denote by ∥ A ∥ 2 \lVert A \rVert_2 ∥ A ∥ 2 the spectral norm of a matrix A A A , by ∥ A ∥ F \lVert A \rVert_F ∥ A ∥ F the Frobenius norm of A A A , and by ∥ A ∥ ∗ \lVert A \rVert_* ∥ A ∥ ∗ the trace norm of A A A . For two symmetric matrices A , B A, B A , B , A ⪯ B A \preceq B A ⪯ B if and only if B − A B-A B − A is positive semi-definite. For two matrices of the same size, we denote their Frobenius inner product by ⟨ A , B ⟩ = tr ( A ⊤ B ) \langle A,B\rangle= \operatorname{tr}(A^\top B) ⟨ A , B ⟩ = tr ( A ⊤ B ) . We use A ⊗ B A \otimes B A ⊗ B to denote Kronecker product (Petersen and Pedersen, [55 ] ) and vec ( A ) \operatorname{vec}(A) vec ( A ) to denote row-major order vectorization of matrix A A A . We define the space complexity and time complexity as the memory and time usage in each round, respectively. λ [ 1 : τ ] \lambda_{[1:\tau]} λ [ 1 : τ ] is a sequence containing τ \tau τ elements, and max { λ [ 1 : τ ] , a } \max\{\lambda_{[1:\tau]},a\} max { λ [ 1 : τ ] , a } represents a new sequence, where each element is the maximum of λ i \lambda_i λ i and a a a , and diag ( λ [ 1 : τ ] ) \operatorname{diag}(\lambda_{[1:\tau]}) diag ( λ [ 1 : τ ] ) is a diagonal matrix where the i i i -th diagonal element is λ i \lambda_i λ i , 1 ≤ i ≤ τ 1 \leq i \leq\tau 1 ≤ i ≤ τ .
We adopt a standard assumption of online convex optimization (Hazan, [28 ] ).
Assumption 1 (Convexity). All loss functions f t ( ⋅ ) f_t(\cdot) f t ( ⋅ ) are convex.
We then briefly introduce the key technique behind our methods.
Frequent Directions. Frequent directions (FD) (Ghashami et al., [22 ] ) is a deterministic matrix sketching technique that extends the well-known algorithm for approximating item frequencies in online data streams (Misra and Gries, [47 ] ). For a given matrix A ∈ R d × t A \in\mathbb{R}^{d \times t} A ∈ R d × t , FD aims to generate a matrix B ∈ R d × τ B \in\mathbb{R}^{d \times\tau} B ∈ R d × τ such that B B T ≈ A A T BB^{\mathsf{T}} \approx AA^{\mathsf{T}} B B T ≈ A A T , where τ ≪ min { t , d } \tau\ll\min\{t,d\} τ ≪ min { t , d } is the sketching size. The procedure is summarized in Algorithm 1. In each round t t t , we denote the low-rank matrix B t − 1 = [ b 1 , b 2 , … , b τ − 1 , 0 d ] ∈ R d × τ B_{t-1} = [\mathbf{b}_1,\mathbf{b}_2,\ldots,\mathbf{b}_{\tau-1},\mathbf{0}_d] \in\mathbb{R}^{d \times\tau} B t − 1 = [ b 1 , b 2 , … , b τ − 1 , 0 d ] ∈ R d × τ , where the last column is 0 d \mathbf{0}_d 0 d . Upon receiving the new gradient g t ∈ R d \mathbf{g}_t \in\mathbb{R}^d g t ∈ R d , it is inserted into the last column. Next, we perform singular value decomposition (SVD) on B t − 1 = U t diag ( λ [ 1 : τ ] ( t ) ) V t T B_{t-1} = U_t\sqrt{\operatorname{diag}(\lambda_{[1:\tau]}^{(t)})}V_t^{\mathsf{T}} B t − 1 = U t diag ( λ [ 1 : τ ] ( t ) ) V t T , and the matrix B t B_t B t is computed as B t = U t diag ( λ [ 1 : τ ] ( t ) − λ τ ( t ) ) B_t = U_t\sqrt{\operatorname{diag}(\lambda_{[1:\tau]}^{(t)}-\lambda_{\tau}^{(t)})} B t = U t diag ( λ [ 1 : τ ] ( t ) − λ τ ( t ) ) with its last column set to 0 d \mathbf{0}_d 0 d . The time complexity of FD is O ( τ 2 d ) O(\tau^2d) O ( τ 2 d ) for each iteration, which is dominated by computing the SVD of B t − 1 B_{t-1} B t − 1 , causing a quadratic dependence on the sketching size τ \tau τ .
To further reduce the time complexity of FD, Ghashami et al. [22 ] propose fast frequent directions (FFD) by expanding the space of B t B_t B t . Specifically, FFD maintains a matrix B 0 = 0 d × 2 τ ∈ R d × 2 τ B_0 = \mathbf{0}_{d \times2\tau} \in\mathbb{R}^{d \times2\tau} B 0 = 0 d × 2 τ ∈ R d × 2 τ . In each round t t t , we insert the received gradient g t \mathbf{g}_t g t into the first all-zero column of B t − 1 B_{t-1} B t − 1 . Once B t B_t B t no longer contains any all-zero columns, we perform SVD and obtain B t = U t diag ( λ [ 1 : 2 τ ] ( t ) ) V t T B_t = U_t\sqrt{\operatorname{diag}(\lambda_{[1:2\tau]}^{(t)})}V_t^{\mathsf{T}} B t = U t diag ( λ [ 1 : 2 τ ] ( t ) ) V t T . B t B_t B t is then updated as B t = U t diag ( max { λ [ 1 : 2 τ ] ( t ) − λ τ ( t ) , 0 } ) B_t = U_t\sqrt{\operatorname{diag}(\max\{\lambda_{[1:2\tau]}^{(t)}-\lambda_{\tau}^{(t)},0\})} B t = U t diag ( max { λ [ 1 : 2 τ ] ( t ) − λ τ ( t ) , 0 }) , ensuring that the last τ + 1 \tau+1 τ + 1 columns are set to 0 d \mathbf{0}_d 0 d . As we only need to update B t B_t B t every τ + 1 \tau+1 τ + 1 rounds, the time complexity of FFD is O ( τ d ) O(\tau d) O ( τ d ) .
Since FD removes a singular value per round, the matrix B t B t T B_tB_t^{\mathsf{T}} B t B t T does not preserve monotonicity. To resolve this limitation, Chen et al. [9 ] propose spectral compensation frequent directions (SCFD), which adds up the total mass of subtracted values ∑ i = 1 t λ τ ( i ) \sum_{i=1}^{t}\lambda_{\tau}^{(i)} ∑ i = 1 t λ τ ( i ) during the FD procedure. SCFD is able to approximate a sequence of high-dimensional matrices while preserving positive definite monotonicity.
Efficient Preconditioned Methods for Vector-Valued Decisions
In this section, we first present FTSL, which enjoys a better dimension-free regret bound. Furthermore, we accelerate FTSL by employing a doubling trick for FD, achieving enhanced computational efficiency. We demonstrate that this technique can be applied to expedite S-ADA. Finally, we apply our methods to offline stochastic optimization.
Our Improved Results
Before introducing our algorithms, we first briefly discuss why the regret bound of S-ADA (Feinberg et al., [19 ] ) relies on the dimensionality d d d , offering motivation for the methods we design. Since S-ADA is under the mirror descent framework, its regret bound contains the
Figure 1.
Bregman divergence term, that is,
O ( ∑ t = 0 T − 1 [ B Ψ t + 1 ( x ∗ , x t + 1 ) − B Ψ t ( x ∗ , x t + 1 ) ] ) = O ( ∑ t = 0 T − 1 ∥ x t + 1 − x ∗ ∥ G ~ t + 1 1 / 2 − G ~ t 1 / 2 2 ) , O\left(\sum_{t=0}^{T-1}\left[B_{\Psi_{t+1}}(x^*,x_{t+1})-B_{\Psi_t}(x^*,x_{t+1})\right]\right)=O\left(\sum_{t=0}^{T-1}\left\|x_{t+1}-x^*\right\|_{\widetilde{G}_{t+1}^{1/2}-\widetilde{G}_t^{1/2}}^2\right), O ( t = 0 ∑ T − 1 [ B Ψ t + 1 ( x ∗ , x t + 1 ) − B Ψ t ( x ∗ , x t + 1 ) ] ) = O ( t = 0 ∑ T − 1 ∥ x t + 1 − x ∗ ∥ G t + 1 1/2 − G t 1/2 2 ) ,
where Ψ t ( x ) = 1 2 ⟨ x , G ~ t 1 / 2 x ⟩ \Psi_t(x)=\frac{1}{2}\langle x,\widetilde{G}_t^{1/2}x\rangle Ψ t ( x ) = 2 1 ⟨ x , G t 1/2 x ⟩ is the proximal term, G ~ t \widetilde{G}_t G t is the preconditioning matrix and B Ψ t ( x , y ) = Ψ t ( x ) − Ψ t ( y ) − ⟨ ∇ Ψ t ( y ) , x − y ⟩ B_{\Psi_t}(x,y)=\Psi_t(x)-\Psi_t(y)-\langle\nabla\Psi_t(y),x-y\rangle B Ψ t ( x , y ) = Ψ t ( x ) − Ψ t ( y ) − ⟨ ∇ Ψ t ( y ) , x − y ⟩ . To facilitate summation, they upper bound this term by O ( ∑ t = 0 T − 1 tr ( G ~ t + 1 1 / 2 − G ~ t 1 / 2 ) ) O\left(\sum_{t=0}^{T-1}\operatorname{tr}\left(\widetilde{G}_{t+1}^{1/2}-\widetilde{G}_t^{1/2}\right)\right) O ( ∑ t = 0 T − 1 tr ( G t + 1 1/2 − G t 1/2 ) ) and then exploit the additivity of the trace, which yields a bound of O ( tr ( G T 1 / 2 ) ) O\left(\operatorname{tr}\left(G_T^{1/2}\right)\right) O ( tr ( G T 1/2 ) ) . Feinberg et al. [19 ] add the cumulative removed eigenvalues of FD into G ~ t \widetilde{G}_t G t . Consequently, the Bregman divergence term is O ( tr ( ( B T B T ⊤ + ρ 1 : T I d × d ) 1 / 2 ) ) O\left(\operatorname{tr}\left((B_TB_T^\top+\rho_{1:T}I_{d\times d})^{1/2}\right)\right) O ( tr ( ( B T B T ⊤ + ρ 1 : T I d × d ) 1/2 ) ) , which is further bounded by O ( tr ( G T 1 / 2 ) + d ( d − τ ) ρ 1 : T ) O\left(\operatorname{tr}\left(G_T^{1/2}\right)+\sqrt{d(d-\tau)\rho_{1:T}}\right) O ( tr ( G T 1/2 ) + d ( d − τ ) ρ 1 : T ) , where B T ∈ R d × τ B_T\in\mathbb{R}^{d\times\tau} B T ∈ R d × τ is the sketching matrix and G T = ∑ t = 1 T g t g t ⊤ G_T=\sum_{t=1}^{T}g_tg_t^\top G T = ∑ t = 1 T g t g t ⊤ . As a result, the regret bound of S-ADA exhibits a linear dependence on d d d , resulting in an unsatisfactory performance in high-dimensional problems.
To overcome this issue, we integrate FD with ADA-FULL under the primal-dual framework . Our method, which we call FTSL, is outlined in Algorithm 2. Specifically, we employ FD to construct a low-rank approximation of the outer product matrix of gradients, aiming to reduce the computational complexity. To ensure the monotonicity of the preconditioning matrix G ~ t \widetilde{G}_t G t , we also add back the cumulative escaped masses ρ 1 : t \rho_{1:t} ρ 1 : t into G ~ t \widetilde{G}_t G t . Under the primal-dual framework, we update the decision as follows
x t + 1 = arg min x ∈ R d { η ⟨ g ˉ t , x ⟩ + Ψ t ( x ) } = − η G ~ t − 1 / 2 g ˉ t , (2) x_{t+1}=\arg\min_{x\in\mathbb{R}^d}\left\{\eta\langle\bar{g}_t,x\rangle+\Psi_t(x)\right\}
=-\eta\widetilde{G}_t^{-1/2}\bar{g}_t, \tag*{(2)} x t + 1 = arg x ∈ R d min { η ⟨ g ˉ t , x ⟩ + Ψ t ( x ) } = − η G t − 1/2 g ˉ t , (2)
where g ˉ t = ∑ i = 1 t g i \bar{g}_t=\sum_{i=1}^{t}g_i g ˉ t = ∑ i = 1 t g i is the sum of the past gradients. According to the analysis under the primal-dual framework, the regret of FTSL is upper bounded by the term O ( ∥ G ~ T 1 / 2 ∥ 2 ) = O ( ∥ ( B T B T ⊤ + ρ 1 : T I d × d ) 1 / 2 ∥ 2 ) ≤ O ( ∥ G T 1 / 2 ∥ 2 + ρ 1 : T ) O\left(\left\|\widetilde{G}_T^{1/2}\right\|_2\right)=O\left(\left\|(B_TB_T^\top+\rho_{1:T}I_{d\times d})^{1/2}\right\|_2\right)\leq O\left(\left\|G_T^{1/2}\right\|_2+\sqrt{\rho_{1:T}}\right) O ( G T 1/2 2 ) = O ( ( B T B T ⊤ + ρ 1 : T I d × d ) 1/2 2 ) ≤ O ( G T 1/2 2 + ρ 1 : T ) , thereby avoiding the dependence on d d d .
Formally, we present the theoretical guarantee of FTSL.
Theorem 1 Under Assumption 1, by setting the learning rate η = D 2 \eta=\frac{D}{\sqrt{2}} η = 2 D , where D ≥ ∥ x ∗ ∥ D\geq\|x^*\| D ≥ ∥ x ∗ ∥ is the upper bound on the norm of the optimal decision x ∗ ∈ arg min x ∈ R d ∑ t = 1 T f t ( x ) x^*\in\arg\min_{x\in\mathbb{R}^d}\sum_{t=1}^{T}f_t(x) x ∗ ∈ arg min x ∈ R d ∑ t = 1 T f t ( x ) , FTSL ensures
R ( T ) ≤ O ( D ( tr ( G T 1 / 2 ) + ρ 1 : T ) ) , R(T)\leq O\left(D\left(\operatorname{tr}(G_T^{1/2})+\sqrt{\rho_{1:T}}\right)\right), R ( T ) ≤ O ( D ( tr ( G T 1/2 ) + ρ 1 : T ) ) , where G T = ∑ t = 1 T g t g t ⊤ G_T=\sum_{t=1}^{T}g_tg_t^\top G T = ∑ t = 1 T g t g t ⊤ .
Algorithm 2 Follow-the-Sketchy-Leader (FTSL)
Input: Learning rate η \eta η , sketching size τ \tau τ
Initialize x 1 = 0 d \mathbf{x}_1 = \mathbf{0}_d x 1 = 0 d , g ˉ 0 = 0 d \bar{\mathbf{g}}_0 = \mathbf{0}_d g ˉ 0 = 0 d , G ~ 0 = 0 d × d \widetilde{G}_0 = \mathbf{0}_{d \times d} G 0 = 0 d × d , B 0 = 0 d × τ B_0 = \mathbf{0}_{d \times\tau} B 0 = 0 d × τ
for t = 1 t = 1 t = 1 to T T T do
Play the decision x t \mathbf{x}_t x t and suffer the loss f t ( x t ) f_t(\mathbf{x}_t) f t ( x t )
Query the gradient g t = ∇ f t ( x t ) \mathbf{g}_t = \nabla f_t(\mathbf{x}_t) g t = ∇ f t ( x t ) and calculate g ˉ t = g ˉ t − 1 + g t \bar{\mathbf{g}}_t = \bar{\mathbf{g}}_{t-1} + \mathbf{g}_t g ˉ t = g ˉ t − 1 + g t
Send B t − 1 B_{t-1} B t − 1 and g t \mathbf{g}_t g t to Algorithm 1
Receive B t B_t B t and set ρ t = λ ( t ) \rho_t = \lambda^{(t)} ρ t = λ ( t )
Calculate G ~ t = B t B t T + ρ 1 : t I d × d \widetilde{G}_t = B_tB_t^{\mathsf{T}} + \rho_{1:t}I_{d \times d} G t = B t B t T + ρ 1 : t I d × d and derive G ~ t − 1 / 2 \widetilde{G}_t^{-1/2} G t − 1/2
Update x t + 1 \mathbf{x}_{t+1} x t + 1 according to (2)
end for
Remark 1 In contrast to the previous regret bound of O ( tr ( G T 1 / 2 ) + d ( d − τ ) ρ 1 : T ) O(\operatorname{tr}(G_T^{1/2}) + \sqrt{d(d-\tau)\rho_{1:T}}) O ( tr ( G T 1/2 ) + d ( d − τ ) ρ 1 : T ) [19 ] , the regret bound of FTSL is dimension-free , a benefit realized from the primal-dual framework.
Remark 2 Since we only maintain a sketching matrix B t ∈ R d × τ B_t \in\mathbb{R}^{d \times\tau} B t ∈ R d × τ , the space complexity of FTSL is O ( τ d ) O(\tau d) O ( τ d ) . Its time complexity is O ( τ 2 d ) O(\tau^2d) O ( τ 2 d ) per round, which arises from the SVD of B t B_t B t and the calculation of the matrix G ~ t − 1 / 2 \widetilde{G}_t^{-1/2} G t − 1/2 . While the time complexity of FTSL is linear with respect to the dimensionality d d d , it still suffers from the quadratic dependence on the sketching size τ \tau τ . To further alleviate its computational burden, we develop a fast variant of FTSL in the next section.
Our Accelerated Variant
The time complexity of FTSL exhibits a quadratic dependence on the sketching size τ \tau τ , which arises from the SVD of B t ∈ R d × τ B_t \in\mathbb{R}^{d \times\tau} B t ∈ R d × τ performed in every round of FD. To reduce this cost, drawing inspiration from previous work [9 , 61 ] , we adopt a more efficient strategy for computing the SVD of B t B_t B t . The resulting method, termed FTFSL, is summarized in Algorithm 3.
In the matrix-approximation literature, Ghashami et al. [22 ] develop fast FD to reduce the number of SVD computations in FD from one per round to one every τ + 1 \tau+ 1 τ + 1 rounds, while maintaining the same order of space complexity. FFD expands the sketching matrix B t B_t B t from R d × τ \mathbb{R}^{d \times\tau} R d × τ to R d × 2 τ \mathbb{R}^{d \times2\tau} R d × 2 τ . FTFSL adopts this approach but, instead of maintaining B t B_t B t explicitly, represents it through two matrices V t V_t V t and M t M_t M t . Specifically, V t = [ v t 1 , ⋯ , v t 2 τ ] ∈ R d × 2 τ V_t = [\mathbf{v}_t^1, \cdots, \mathbf{v}_t^{2\tau}] \in\mathbb{R}^{d \times2\tau} V t = [ v t 1 , ⋯ , v t 2 τ ] ∈ R d × 2 τ consists of r t r_t r t orthonormal vectors (r t ≤ 2 τ r_t \le2\tau r t ≤ 2 τ ) and the remaining columns are zero vectors, and M t ∈ R 2 τ × 2 τ M_t \in\mathbb{R}^{2\tau\times2\tau} M t ∈ R 2 τ × 2 τ is a symmetric matrix. We require that V t V_t V t and M t M_t M t satisfy the condition V t M t 1 / 2 = B t ∈ R d × 2 τ V_tM_t^{1/2} = B_t \in\mathbb{R}^{d \times2\tau} V t M t 1/2 = B t ∈ R d × 2 τ . In each round t t t , after receiving the gradient g t \mathbf{g}_t g t , we first check whether this vector lies within the subspace spanned by V t − 1 V_{t-1} V t − 1 . If the vector is not contained within the subspace, we normalize it and subsequently add it to V t − 1 V_{t-1} V t − 1 , thereby enlarging the span of the subspace and ensuring V t − 1 V t − 1 T g t = g t V_{t-1}V_{t-1}^{\mathsf{T}}\mathbf{g}_t = \mathbf{g}_t V t − 1 V t − 1 T g t = g t (Steps 6-8). Then we have the following identity:
V t − 1 M t − 1 V t − 1 T + g t g t T = V t − 1 ( M t − 1 + V t − 1 T g t g t T V t − 1 ) V t − 1 T . V_{t-1}M_{t-1}V_{t-1}^{\mathsf{T}} + \mathbf{g}_t\mathbf{g}_t^{\mathsf{T}} = V_{t-1}\left(M_{t-1} + V_{t-1}^{\mathsf{T}}\mathbf{g}_t\mathbf{g}_t^{\mathsf{T}}V_{t-1}\right)V_{t-1}^{\mathsf{T}}. V t − 1 M t − 1 V t − 1 T + g t g t T = V t − 1 ( M t − 1 + V t − 1 T g t g t T V t − 1 ) V t − 1 T .
Algorithm 3 Follow-the-Fast-Sketchy-Leader (FTFSL)
Input: Learning rate η \eta η , sketching size τ \tau τ
Initialize x 1 = 0 d \mathbf{x}_1 = \mathbf{0}_d x 1 = 0 d , G ~ 0 = 0 d × d \widetilde{G}_0 = \mathbf{0}_{d \times d} G 0 = 0 d × d , r 0 = 0 r_0 = 0 r 0 = 0 , M 0 = 0 2 τ × 2 τ M_0 = \mathbf{0}_{2\tau\times2\tau} M 0 = 0 2 τ × 2 τ , V 0 = 0 d × 2 τ V_0 = \mathbf{0}_{d \times2\tau} V 0 = 0 d × 2 τ , g ˉ 0 = 0 d \bar{\mathbf{g}}_0 = \mathbf{0}_d g ˉ 0 = 0 d , ρ 1 = 0 \rho_1 = 0 ρ 1 = 0
for t = 1 t = 1 t = 1 to T T T do
Play the decision x t \mathbf{x}_t x t and suffer the loss f t ( x t ) f_t(\mathbf{x}_t) f t ( x t )
Query the gradient g t = ∇ f t ( x t ) \mathbf{g}_t = \nabla f_t(\mathbf{x}_t) g t = ∇ f t ( x t ) and compute g t ′ = V t − 1 ( V t − 1 T g t ) \mathbf{g}'_t = V_{t-1}(V_{t-1}^{\mathsf{T}}\mathbf{g}_t) g t ′ = V t − 1 ( V t − 1 T g t ) , g ˉ t = g ˉ t − 1 + g t ′ \bar{\mathbf{g}}_t = \bar{\mathbf{g}}_{t-1} + \mathbf{g}'_t g ˉ t = g ˉ t − 1 + g t ′
if g t ′ ≠ g t \mathbf{g}'_t \ne\mathbf{g}_t g t ′ = g t then
Set r t − 1 = r t − 1 + 1 r_{t-1} = r_{t-1} + 1 r t − 1 = r t − 1 + 1 , calculate v r t − 1 t − 1 = g t − g t ′ ∥ g t − g t ′ ∥ \mathbf{v}_{r_{t-1}}^{t-1} = \frac{\mathbf{g}_t-\mathbf{g}'_t}{\lVert\mathbf{g}_t-\mathbf{g}'_t\rVert} v r t − 1 t − 1 = ∥ g t − g t ′ ∥ g t − g t ′ and set the r t − 1 r_{t-1} r t − 1 -th column of V t − 1 V_{t-1} V t − 1 as v r t − 1 t − 1 \mathbf{v}_{r_{t-1}}^{t-1} v r t − 1 t − 1
end if
Set r t = r t − 1 r_t = r_{t-1} r t = r t − 1 , V t = V t − 1 V_t = V_{t-1} V t = V t − 1
Compute M t = M t − 1 + ( V t − 1 T g t ) ( V t − 1 T g t ) T M_t = M_{t-1} + (V_{t-1}^{\mathsf{T}}\mathbf{g}_t)(V_{t-1}^{\mathsf{T}}\mathbf{g}_t)^{\mathsf{T}} M t = M t − 1 + ( V t − 1 T g t ) ( V t − 1 T g t ) T
Perform SVD decomposition on M t M_t M t , which is U t Σ t U t T = U t diag ( λ [ 1 : 2 τ ] ( t ) ) U t T = M t U_t\Sigma_tU_t^{\mathsf{T}} = U_t\operatorname{diag}(\lambda_{[1:2\tau]}^{(t)})U_t^{\mathsf{T}} = M_t U t Σ t U t T = U t diag ( λ [ 1 : 2 τ ] ( t ) ) U t T = M t
Calculate G ~ t = ρ 1 : t I d × d + V t U t Σ t U t T V t T \widetilde{G}_t = \rho_{1:t}I_{d \times d} + V_tU_t\Sigma_tU_t^{\mathsf{T}}V_t^{\mathsf{T}} G t = ρ 1 : t I d × d + V t U t Σ t U t T V t T
Update x t + 1 \mathbf{x}_{t+1} x t + 1 according to (2) and set ρ t + 1 = 0 \rho_{t+1} = 0 ρ t + 1 = 0
if r t = 2 τ r_t = 2\tau r t = 2 τ then
Set ρ t + 1 = λ τ ( t ) \rho_{t+1} = \lambda_{\tau}^{(t)} ρ t + 1 = λ τ ( t ) , M t = diag ( max { λ [ 1 : 2 τ ] ( t ) − λ τ ( t ) , 0 } ) M_t = \operatorname{diag}(\max\{\lambda_{[1:2\tau]}^{(t)} - \lambda_{\tau}^{(t)}, 0\}) M t = diag ( max { λ [ 1 : 2 τ ] ( t ) − λ τ ( t ) , 0 }) and V t = V t U t V_t = V_tU_t V t = V t U t
Set r t = τ − 1 r_t = \tau- 1 r t = τ − 1 and set the τ \tau τ -th to 2 τ 2\tau 2 τ -th columns of V t V_t V t to 0 d \mathbf{0}_d 0 d
end if
end for
This implies that we only need to perform an SVD decomposition on the matrix M t − 1 + ( V t − 1 T g t ) ( V t − 1 T g t ) T ∈ R 2 τ × 2 τ M_{t-1} + (V_{t-1}^{\mathsf{T}}\mathbf{g}_t)(V_{t-1}^{\mathsf{T}}\mathbf{g}_t)^{\mathsf{T}} \in\mathbb{R}^{2\tau\times2\tau} M t − 1 + ( V t − 1 T g t ) ( V t − 1 T g t ) T ∈ R 2 τ × 2 τ , which only takes a time complexity of O ( τ 3 ) O(\tau^3) O ( τ 3 ) . Next, we incorporate the escaped masses to keep the monotonicity of the preconditioning matrix G ~ t \widetilde{G}_t G t . When r t = 2 τ r_t = 2\tau r t = 2 τ , we need to set r t = τ − 1 r_t = \tau- 1 r t = τ − 1 and set the last τ + 1 \tau+ 1 τ + 1 columns of the sketching matrix B t B_t B t to be zero (Steps 14-17). Given the decomposition M t = U t diag ( λ [ 1 : 2 τ ] ( t ) ) U t T M_t = U_t\operatorname{diag}(\lambda_{[1:2\tau]}^{(t)})U_t^{\mathsf{T}} M t = U t diag ( λ [ 1 : 2 τ ] ( t ) ) U t T and the relationship V t M t 1 / 2 = B t V_tM_t^{1/2} = B_t V t M t 1/2 = B t , this can be efficiently achieved by updating M t M_t M t as diag ( max { λ [ 1 : 2 τ ] ( t ) − λ τ ( t ) , 0 } ) \operatorname{diag}(\max\{\lambda_{[1:2\tau]}^{(t)} - \lambda_{\tau}^{(t)},0\}) diag ( max { λ [ 1 : 2 τ ] ( t ) − λ τ ( t ) , 0 }) , calculating V t = V t U t V_t = V_tU_t V t = V t U t , and setting the last τ + 1 \tau+ 1 τ + 1 columns of V t V_t V t to zero.
In the following, we provide the theoretical guarantee of FTFSL.
Theorem 2 Under Assumption 1 , by setting the learning rate η = D 2 \eta= \frac{D}{\sqrt{2}} η = 2 D , where D ≥ ∥ x ∗ ∥ D \ge\lVert\mathbf{x}^* \rVert D ≥ ∥ x ∗ ∥ is the upper bound on the norm of the optimal decision x ∗ ∈ arg min x ∈ R d ∑ t = 1 T f t ( x ) \mathbf{x}^* \in\arg\min_{\mathbf{x}\in\mathbb{R}^d}\sum_{t=1}^{T} f_t(\mathbf{x}) x ∗ ∈ arg min x ∈ R d ∑ t = 1 T f t ( x ) , FTFSL ensures
R ( T ) ≤ O ( D ( tr ( G T 1 / 2 ) + ρ 1 : T ) ) . R(T) \le O\left(D\left(\operatorname{tr}(G_T^{1/2})+\sqrt{\rho_{1:T}}\right)\right). R ( T ) ≤ O ( D ( tr ( G T 1/2 ) + ρ 1 : T ) ) .
Remark 3 In each round, FTFSL computes g t ′ \mathbf{g}'_t g t ′ , v r t − 1 t − 1 \mathbf{v}_{r_{t-1}}^{t-1} v r t − 1 t − 1 , M t M_t M t , the SVD of M t M_t M t and updates x t \mathbf{x}_t x t , with respective time complexities of O ( τ d ) O(\tau d) O ( τ d ) , O ( d ) O(d) O ( d ) , O ( τ d ) O(\tau d) O ( τ d ) , O ( τ 3 ) O(\tau^3) O ( τ 3 ) and O ( τ d ) O(\tau d) O ( τ d ) . Additionally, we only compute V t = V t U t V_t = V_tU_t V t = V t U t every τ + 1 \tau+ 1 τ + 1 rounds, incurring a time complexity of O ( τ 2 d ) O(\tau^2d) O ( τ 2 d ) . When τ ≤ O ( d ) \tau\le O(\sqrt{d}) τ ≤ O ( d ) , the time complexity of FTFSL is O ( τ d ) O(\tau d) O ( τ d ) per round.
Notably, we can also reduce the time complexity of S-ADA [19 ] by adopting this technique. We replace the update rule for the decision variable x t \mathbf{x}_t x t of FTFSL
Table 4.
(Step 13) with the following
x t + 1 = x t − η G ~ t − 1 / 2 g t , \mathbf{x}_{t+1}=\mathbf{x}_t-\eta\widetilde{G}_t^{-1/2}\mathbf{g}_t, x t + 1 = x t − η G t − 1/2 g t ,
and analyze it under the mirror descent framework. Then we provide the theoretical guarantee of Fast S-ADA.
Theorem 3 Under Assumption 1, by setting the learning rate η = D 1 2 \eta= \frac{D_1}{\sqrt{2}} η = 2 D 1 , where D 1 = max t ∈ [ T ] ∥ x t − x ∗ ∥ D_1 = \max_{t\in[T]}\|\mathbf{x}_t-\mathbf{x}^*\| D 1 = max t ∈ [ T ] ∥ x t − x ∗ ∥ , Fast S-ADA ensures
R ( T ) ≤ O ( D 1 ( tr ( G T 1 / 2 ) + d ( d − τ ) ρ 1 : T ) ) . R(T)\leq O\left(D_1\left(\operatorname{tr}(G_T^{1/2})+\sqrt{d(d-\tau)\rho_{1:T}}\right)\right). R ( T ) ≤ O ( D 1 ( tr ( G T 1/2 ) + d ( d − τ ) ρ 1 : T ) ) .
Remark 4 Compared to S-ADA [19 ] , Fast S-ADA obtains a better O ( τ d ) O(\tau d) O ( τ d ) time complexity when τ ≤ O ( d ) \tau\leq O(\sqrt{d}) τ ≤ O ( d ) , while preserving the same regret bound.
Application to Offline Optimization
In this section, we extend our methods to the offline stochastic convex optimization setting. Formally, we consider the problem
min x ∈ R d f ( x ) = E [ f ( x ; ξ ) ] , (3) \min_{\mathbf{x}\in\mathbb{R}^{d}} f(\mathbf{x})=\mathbb{E}[f(\mathbf{x};\xi)], \tag*{(3)} x ∈ R d min f ( x ) = E [ f ( x ; ξ )] , (3)
where f ( ⋅ ) f(\cdot) f ( ⋅ ) is convex and only noisy gradient estimates ∇ f ( x ; ξ ) \nabla f(\mathbf{x};\xi) ∇ f ( x ; ξ ) are accessible. The random sample ξ \xi ξ is drawn from a stochastic oracle satisfying E [ ∇ f ( x ; ξ ) ] = ∇ f ( x ) \mathbb{E}[\nabla f(\mathbf{x};\xi)]=\nabla f(\mathbf{x}) E [ ∇ f ( x ; ξ )] = ∇ f ( x ) .
We adopt the standard online-to-batch conversion [7 ] , as summarized in Algorithm 4. At each round t t t , the learner receives the decision x t \mathbf{x}_t x t produced by the online algorithm A \mathcal{A} A , samples a mini-batch of size M M M , and computes the stochastic gradient g t = 1 M ∑ i = 1 M ∇ f ( x t ; ξ t , i ) \mathbf{g}_t=\frac{1}{M}\sum_{i=1}^{M}\nabla f(\mathbf{x}_t;\xi_{t,i}) g t = M 1 ∑ i = 1 M ∇ f ( x t ; ξ t , i ) , which is fed back to A \mathcal{A} A as the gradient of round t t t .
Non-smooth theory. We first establish the convergence rates for non-smooth loss functions.
Theorem 4 Under Assumption 1, by setting the learning rate η = D 2 \eta=\frac{D}{\sqrt{2}} η = 2 D and M = 1 M=1 M = 1 , where D ≥ ∥ x ∗ ∥ D\geq\|\mathbf{x}^*\| D ≥ ∥ x ∗ ∥ is the upper bound on the norm of the optimal decision x ∗ ∈ arg min x ∈ R d f ( x ) \mathbf{x}^*\in\arg\min_{\mathbf{x}\in\mathbb{R}^{d}} f(\mathbf{x}) x ∗ ∈ arg min x ∈ R d f ( x ) , FTFSL ensures
1 T ∑ t = 1 T E [ f ( x t ) − f ( x ∗ ) ] ≤ O ( D tr ( G T 1 / 2 ) T + D ρ 1 : T T ) . \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}[f(\mathbf{x}_t)-f(\mathbf{x}^*)]\leq O\left(\frac{D\operatorname{tr}(G_T^{1/2})}{T}+\frac{D\sqrt{\rho_{1:T}}}{T}\right). T 1 t = 1 ∑ T E [ f ( x t ) − f ( x ∗ )] ≤ O ( T D tr ( G T 1/2 ) + T D ρ 1 : T ) .
Under Assumption 1, by setting the learning rate η = D 1 2 \eta= \frac{D_1}{\sqrt{2}} η = 2 D 1 and M = 1 M = 1 M = 1 , where D 1 = max t ∈ [ T ] ∥ x t − x ∗ ∥ D_1 = \max_{t\in[T]}\lVert x_t - x^* \rVert D 1 = max t ∈ [ T ] ∥ x t − x ∗ ∥ , Fast S-ADA ensures
1 T ∑ t = 1 T E [ f ( x t ) − f ( x ∗ ) ] ≤ O ( D 1 tr ( G T 1 / 2 ) T + D 1 d ( d − τ ) ρ 1 : T T ) . (4) \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(x_t)-f(x^*)\right] \le O\left(\frac{D_1\operatorname{tr}(G_T^{1/2})}{T}+\frac{D_1\sqrt{d(d-\tau)\rho_{1:T}}}{T}\right). \tag*{(4)} T 1 t = 1 ∑ T E [ f ( x t ) − f ( x ∗ ) ] ≤ O ( T D 1 tr ( G T 1/2 ) + T D 1 d ( d − τ ) ρ 1 : T ) . (4)
Remark 5 Under the standard bounded-gradient assumption ∥ g t ∥ ≤ G \lVert g_t\rVert\le G ∥ g t ∥ ≤ G for all t ∈ [ T ] t \in[T] t ∈ [ T ] , both FTFSL and Fast S-ADA obtain the optimal O ( 1 / T ) O(1/\sqrt{T}) O ( 1/ T ) convergence rate for convex non-smooth loss functions [2 ] .
Smooth theory. Many objectives in modern machine learning are smooth, in the sense that their gradients are Lipschitz continuous, as exemplified by logistic regression and networks with smooth activations. Previous work has shown that smoothness can be exploited to obtain faster convergence rates [48 , 12 , 70 , 18 , 63 , 42 , 69 ] . Despite this progress, the analysis of memory-efficient full-matrix adaptive methods on smooth objectives remains absent. To fill this gap, we extend our analysis to the smooth setting. Following prior work on adaptive optimization methods [42 ] , we impose two standard assumptions.
Assumption 2 (Anisotropic smoothness) There exists a positive diagonal matrix L = diag ( L 1 , … , L d ) \mathbf{L} = \operatorname{diag}(L_1,\ldots,L_d) L = diag ( L 1 , … , L d ) such that
∥ ∇ f ( x ) − ∇ f ( y ) ∥ L − 1 ≤ ∥ x − y ∥ L , ∀ x , y ∈ R d , \lVert\nabla f(\mathbf{x})-\nabla f(\mathbf{y})\rVert_{\mathbf{L}^{-1}} \le\lVert\mathbf{x}-\mathbf{y}\rVert_{\mathbf{L}}, \qquad\forall\mathbf{x},\mathbf{y}\in\mathbb{R}^{d}, ∥ ∇ f ( x ) − ∇ f ( y ) ∥ L − 1 ≤ ∥ x − y ∥ L , ∀ x , y ∈ R d , when f ( ⋅ ) f(\cdot) f ( ⋅ ) is twice differentiable, it is equivalent to ∇ 2 f ( x ) ⪯ L \nabla^2 f(\mathbf{x}) \preceq\mathbf{L} ∇ 2 f ( x ) ⪯ L , ∀ x ∈ R d \forall\mathbf{x}\in\mathbb{R}^{d} ∀ x ∈ R d .
Remark 6 Assumption 2 refines the standard smoothness condition by capturing the coordinate-wise curvature of f ( ⋅ ) f(\cdot) f ( ⋅ ) . Specifically, it reduces to the classical L L L -smoothness with L = ∥ L ∥ ∞ L = \lVert\mathbf{L}\rVert_{\infty} L = ∥ L ∥ ∞ [49 ] , while allowing a much tighter characterization when the Hessian spectrum is imbalanced across coordinates. In such regimes, the diagonal bound ∥ L ∥ 1 \lVert\mathbf{L}\rVert_1 ∥ L ∥ 1 can be substantially smaller than the uniform bound L d Ld L d [56 , 52 ] .
Assumption 3 (Bounded noise variance) Let n t = ∇ f ( x t ; ξ t ) − ∇ f ( x t ) \mathbf{n}_t = \nabla f(\mathbf{x}_t;\xi_t)-\nabla f(\mathbf{x}_t) n t = ∇ f ( x t ; ξ t ) − ∇ f ( x t ) denote the stochastic gradient noise at round t t t . There exists a vector v = [ v 1 , … , v d ] ∈ R d \mathbf{v} = [v_1,\ldots,v_d]\in\mathbb{R}^{d} v = [ v 1 , … , v d ] ∈ R d such that E [ n t ] = 0 \mathbb{E}[\mathbf{n}_t] = 0 E [ n t ] = 0 and
E [ [ n t ] i 2 ] ≤ [ v ] i 2 , ∀ i ∈ [ d ] . \mathbb{E}\left[[\mathbf{n}_t]_i^2\right] \le[\mathbf{v}]_i^2,\qquad\forall i\in[d]. E [ [ n t ] i 2 ] ≤ [ v ] i 2 , ∀ i ∈ [ d ] .
Remark 7 Assumption 3 implies the standard bounded noise assumption by E [ ∥ n t ∥ 2 ] ≤ ∥ v ∥ 2 \mathbb{E}\left[\lVert\mathbf{n}_t\rVert^2\right] \le\lVert\mathbf{v}\rVert^2 E [ ∥ n t ∥ 2 ] ≤ ∥ v ∥ 2 . Intuitively, it bounds each coordinate of n t \mathbf{n}_t n t rather than only its norm, thereby providing finer-grained information about the noise scale.
In the following, we present our analysis for smooth loss functions.
Theorem 5 Under Assumptions 1, 2 and 3, by setting the learning rate η = D 2 \eta= \frac{D}{\sqrt{2}} η = 2 D , where D ≥ ∥ x ∗ ∥ D \ge\lVert\mathbf{x}^{*} \rVert D ≥ ∥ x ∗ ∥ is the bound on the optimal decision x ∗ ∈ arg min x ∈ R d f ( x ) \mathbf{x}^{*} \in\operatorname*{arg\,min}_{\mathbf{x}\in\mathbb{R}^{d}} f(\mathbf{x}) x ∗ ∈ arg min x ∈ R d f ( x ) , FTFSL ensures
1 T ∑ t = 1 T E [ f ( x t ) − f ( x ∗ ) ] ≤ O ( D 2 tr ( L ) T + D ∥ v ∥ M T + D ρ 1 : T T ) . \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}[f(\mathbf{x}_{t}) - f(\mathbf{x}^{*})] \le O\left(\frac{D^{2}\operatorname{tr}(\mathbf{L})}{T} + \frac{D\lVert\mathbf{v}\rVert}{\sqrt{MT}} + \frac{D\sqrt{\rho_{1:T}}}{T}\right). T 1 t = 1 ∑ T E [ f ( x t ) − f ( x ∗ )] ≤ O ( T D 2 tr ( L ) + M T D ∥ v ∥ + T D ρ 1 : T ) . Under Assumptions 1, 2 and 3, by setting the learning rate η = D 1 2 \eta= \frac{D_{1}}{\sqrt{2}} η = 2 D 1 , where D 1 = max t ∈ [ T ] ∥ x t − x ∗ ∥ D_{1} = \max_{t\in[T]} \lVert\mathbf{x}_{t} - \mathbf{x}^{*}\rVert D 1 = max t ∈ [ T ] ∥ x t − x ∗ ∥ , Fast S-ADA ensures
1 T ∑ t = 1 T E [ f ( x t ) − f ( x ∗ ) ] ≤ O ( D 1 2 tr ( L ) T + D 1 ∥ v ∥ M T + D 1 d ( d − τ ) ρ 1 : T T ) . \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}[f(\mathbf{x}_{t}) - f(\mathbf{x}^{*})] \le O\left(\frac{D_{1}^{2}\operatorname{tr}(\mathbf{L})}{T} + \frac{D_{1}\lVert\mathbf{v}\rVert}{\sqrt{MT}} + \frac{D_{1}\sqrt{d(d-\tau)}\sqrt{\rho_{1:T}}}{T}\right). T 1 t = 1 ∑ T E [ f ( x t ) − f ( x ∗ )] ≤ O ( T D 1 2 tr ( L ) + M T D 1 ∥ v ∥ + T D 1 d ( d − τ ) ρ 1 : T ) .
Remark 8 Both bounds can be decomposed into three terms: a deterministic term of order O ( tr ( L ) / T ) O(\operatorname{tr}(\mathbf{L})/T) O ( tr ( L ) / T ) , a stochastic noise term of order O ( ∥ v ∥ / M T ) O(\lVert\mathbf{v}\rVert/\sqrt{MT}) O (∥ v ∥ / M T ) , and a sketching error term involving O ( ρ 1 : T / T ) O(\sqrt{\rho_{1:T}}/T) O ( ρ 1 : T / T ) . The first two terms match the convergence rate of their non-sketched counterparts, while the third term quantifies the additional error introduced by FD. Notably, FTFSL achieves a dimension-free sketching error term, whereas that of Fast S-ADA scales linearly with d d d .
Efficient Preconditioned Methods for Matrix-Valued Decisions
In this section, we consider a practical scenario where the decision variable is a matrix X t ∈ R m × n \mathbf{X}_{t} \in\mathbb{R}^{m\times n} X t ∈ R m × n , which is common for parameters in deep learning tasks [39 ] .
Our Proposed Methods
A direct application of the optimization methods developed in the vector setting requires vectorizing the gradient G t X G_{t}^{X} G t X as g t ∈ R m n \mathbf{g}_{t} \in\mathbb{R}^{mn} g t ∈ R mn . However, such a reduction incurs prohibitive memory costs. In particular, ADA-FULL maintains an m n × m n mn \times mn mn × mn preconditioner with O ( ( m n ) 2 ) O((mn)^{2}) O (( mn ) 2 ) memory, while even the FD-sketched variants developed in § 4 reduce this to O ( τ m n ) O(\tau mn) O ( τ mn ) , which remains impractical for large m m m and n n n . Additionally, if we consider the matrix structure of gradients in deep neural networks, it has been widely observed that these structured gradients are usually low-rank [73 , 67 , 11 ] .
To exploit the structure information, Gupta et al. [26 ] propose Shampoo, which retains the matrix structure of the gradient and maintains two matrices as preconditioners of the rows and columns of G t X G_{t}^{X} G t X , yielding a space complexity of O ( m 2 + n 2 ) O(m^{2} + n^{2}) O ( m 2 + n 2 ) . While S-Shampoo [19 ] improves the space complexity of Shampoo to O ( τ ( m + n ) ) O(\tau(m+n)) O ( τ ( m + n )) , its regret bound again relies on the dimensionality m , n m,n m , n . To further reduce its regret bound, we propose FTSL-Shampoo by integrating FD with Shampoo under the primal-dual framework. Our method achieves a superior dimension-free guarantee while obtaining an O ( τ ( m + n ) ) O(\tau(m+n)) O ( τ ( m + n )) space complexity, which is presented in Algorithm 6.
Specifically, we utilize FD to approximate the left and right preconditioning matrices for Shampoo. We maintain two matrices L ^ t ∈ R m × τ , R ^ t ∈ R n × τ \widehat{\mathbf{L}}_{t} \in\mathbb{R}^{m\times\tau}, \widehat{\mathbf{R}}_{t} \in\mathbb{R}^{n\times\tau} L t ∈ R m × τ , R t ∈ R n × τ to ensure that L ^ t L ^ t T ≈ ∑ i = 1 t G i X ( G i X ) T , R ^ t R ^ t T ≈ ∑ i = 1 t ( G i X ) T G i X \widehat{\mathbf{L}}_{t}\widehat{\mathbf{L}}_{t}^{\mathsf{T}} \approx\sum_{i=1}^{t}G_{i}^{X}(G_{i}^{X})^{\mathsf{T}}, \widehat{\mathbf{R}}_{t}\widehat{\mathbf{R}}_{t}^{\mathsf{T}} \approx\sum_{i=1}^{t}(G_{i}^{X})^{\mathsf{T}}G_{i}^{X} L t L t T ≈ ∑ i = 1 t G i X ( G i X ) T , R t R t T ≈ ∑ i = 1 t ( G i X ) T G i X . We track the cumulative escaped masses ρ 1 : t L \rho_{1:t}^{L} ρ 1 : t L and ρ 1 : t R \rho_{1:t}^{R} ρ 1 : t R of the left and right preconditioning matrices separately, and then add them back into Algorithm 5 Frequent Directions in General Form
Input: Sketching matrix B t − 1 ∈ R d × τ B_{t-1} \in\mathbb{R}^{d \times\tau} B t − 1 ∈ R d × τ , a new symmetric PSD matrix M t ∈ R d × d M_t \in\mathbb{R}^{d \times d} M t ∈ R d × d
Eigendecompose U ‾ diag ( λ ( t ) ) U ‾ ⊤ = B t − 1 B t − 1 ⊤ + M t \overline{U}\operatorname{diag}(\lambda^{(t)})\overline{U}^{\top} = B_{t-1}B_{t-1}^{\top} + M_t U diag ( λ ( t ) ) U ⊤ = B t − 1 B t − 1 ⊤ + M t , let U t ∈ R d × τ U_t \in\mathbb{R}^{d \times\tau} U t ∈ R d × τ be the first τ \tau τ columns of U ‾ \overline{U} U and λ [ 1 : τ ] ( t ) \lambda_{[1:\tau]}^{(t)} λ [ 1 : τ ] ( t ) be the corresponding eigenvalues
Compute B t = U t diag ( λ [ 1 : τ ] ( t ) − λ τ ( t ) ) B_t = U_t\sqrt{\operatorname{diag}(\lambda_{[1:\tau]}^{(t)}-\lambda_{\tau}^{(t)})} B t = U t diag ( λ [ 1 : τ ] ( t ) − λ τ ( t ) )
Return: B t B_t B t and λ τ ( t ) \lambda_{\tau}^{(t)} λ τ ( t )
Algorithm 6 FTSL-Shampoo
Require: Learning rate η \eta η , sketching size τ \tau τ , ϵ > 0 \epsilon> 0 ϵ > 0
Initialize X 1 = 0 m × n , L ^ 0 = 0 m × τ , R ^ 0 = 0 n × τ , L ~ 0 = 0 m × m , R ~ 0 = 0 n × n , G ‾ 0 X = 0 m × n X_1 = 0_{m \times n}, \widehat{L}_0 = 0_{m \times\tau}, \widehat{R}_0 = 0_{n \times\tau}, \widetilde{L}_0 = 0_{m \times m}, \widetilde{R}_0 = 0_{n \times n}, \overline{G}_0^X = 0_{m \times n} X 1 = 0 m × n , L 0 = 0 m × τ , R 0 = 0 n × τ , L 0 = 0 m × m , R 0 = 0 n × n , G 0 X = 0 m × n
for t = 1 t = 1 t = 1 to T T T do
Play the decision X t X_t X t and suffer the loss f t ( X t ) f_t(X_t) f t ( X t )
Query the gradient G t X = ∇ f t ( X t ) ∈ R m × n G_t^X = \nabla f_t(X_t) \in\mathbb{R}^{m \times n} G t X = ∇ f t ( X t ) ∈ R m × n and calculate G ‾ t X = G ‾ t − 1 X + G t X \overline{G}_t^X = \overline{G}_{t-1}^X + G_t^X G t X = G t − 1 X + G t X
Send L ^ t − 1 \widehat{L}_{t-1} L t − 1 and ( G t X ) ⊤ (G_t^X)^\top ( G t X ) ⊤ to Algorithm 5 and receive L ^ t , ρ 1 : t L \widehat{L}_t,\rho_{1:t}^L L t , ρ 1 : t L
Send R ^ t − 1 \widehat{R}_{t-1} R t − 1 and G t X G_t^X G t X to Algorithm 5 and receive R ^ t , ρ 1 : t R \widehat{R}_t,\rho_{1:t}^R R t , ρ 1 : t R
Update L ~ t = L ^ t L ^ t ⊤ + ( ϵ + ρ 1 : t L ) I m × m \widetilde{L}_t = \widehat{L}_t\widehat{L}_t^\top+ (\epsilon+ \rho_{1:t}^L)I_{m \times m} L t = L t L t ⊤ + ( ϵ + ρ 1 : t L ) I m × m
Update R ~ t = R ^ t R ^ t ⊤ + ( ϵ + ρ 1 : t R ) I n × n \widetilde{R}_t = \widehat{R}_t\widehat{R}_t^\top+ (\epsilon+ \rho_{1:t}^R)I_{n \times n} R t = R t R t ⊤ + ( ϵ + ρ 1 : t R ) I n × n
Update X t + 1 X_{t+1} X t + 1 according to (5)
end for
L ~ t \widetilde{L}_t L t and R ~ t \widetilde{R}_t R t to uphold the monotonicity. To achieve a dimension-free regret bound with FD, we update the parameters as follows:
X t + 1 = − η L ~ t − 1 / 4 G ‾ t X R ~ t − 1 / 4 , (5) X_{t+1}=-\eta\widetilde{L}_t^{-1/4}\overline{G}_t^X\widetilde{R}_t^{-1/4}, \tag*{(5)} X t + 1 = − η L t − 1/4 G t X R t − 1/4 , (5)
where G ‾ t X = ∑ i = 1 t G i X \overline{G}_t^X=\sum_{i=1}^{t}G_i^X G t X = ∑ i = 1 t G i X is the sum of the past gradients, and we conduct the analysis under the primal-dual framework . Before we present the regret bound for FTSL-Shampoo, we introduce a standard assumption that is specific to Shampoo-based methods, which has also been used in prior works [26 , 19 ] .
Assumption 4 (Bounded rank) The rank of gradient matrix G t X G_t^X G t X is bounded by r r r , i.e., max t ∈ [ T ] rank ( G t X ) ≤ r \max_{t \in[T]}\operatorname{rank}(G_t^X) \le r max t ∈ [ T ] rank ( G t X ) ≤ r .
Then we establish the guarantee for FTSL-Shampoo.
Theorem 6 Under Assumptions 1 and 4 , by setting the learning rate η = D F r \eta= \frac{D_F}{\sqrt{r}} η = r D F , where D F = ∥ X ∗ ∥ F D_F = \lVert X^* \rVert_F D F = ∥ X ∗ ∥ F is the Frobenius norm of the optimal decision X ∗ X^* X ∗ , FTSL-Shampoo ensures
R ( T ) ≤ O ( D F r ( tr ( ( L T 1 / 4 ) ) + ( ρ 1 : T L ) 1 / 4 ) ( tr ( ( R T 1 / 4 ) ) + ( ρ 1 : T R ) 1 / 4 ) ) . R(T) \le O\left(D_F\sqrt{r}\left(\operatorname{tr}\left((L_T^{1/4})\right)+(\rho_{1:T}^L)^{1/4}\right)\left(\operatorname{tr}\left((R_T^{1/4})\right)+(\rho_{1:T}^R)^{1/4}\right)\right). R ( T ) ≤ O ( D F r ( tr ( ( L T 1/4 ) ) + ( ρ 1 : T L ) 1/4 ) ( tr ( ( R T 1/4 ) ) + ( ρ 1 : T R ) 1/4 ) ) . where L T = ∑ t = 1 T G t X ( G t X ) ⊤ L_T=\sum_{t=1}^{T}G_t^X(G_t^X)^\top L T = ∑ t = 1 T G t X ( G t X ) ⊤ , R T = ∑ t = 1 T ( G t X ) ⊤ G t X R_T=\sum_{t=1}^{T}(G_t^X)^\top G_t^X R T = ∑ t = 1 T ( G t X ) ⊤ G t X , and ρ 1 : T L \rho_{1:T}^L ρ 1 : T L and ρ 1 : T R \rho_{1:T}^R ρ 1 : T R represent the sum of the removed eigenvalues of FD during the approximation of ∑ t = 1 T G t X ( G t X ) ⊤ \sum_{t=1}^{T}G_t^X(G_t^X)^\top ∑ t = 1 T G t X ( G t X ) ⊤ and ∑ t = 1 T ( G t X ) ⊤ G t X \sum_{t=1}^{T}(G_t^X)^\top G_t^X ∑ t = 1 T ( G t X ) ⊤ G t X , respectively.
Algorithm 7 S-ASGO
Require: Learning rate $\eta$, sketching size $\tau$, $\epsilon > 0$
1: Initialize $X_1 = \mathbf{0}_{m \times n}, \hat{L}_0 = \mathbf{0}_{m \times \tau}, \tilde{L}_0 = \mathbf{0}_{m \times m}, G_0^X = \mathbf{0}_{m \times n}$
2: for $t = 1$ to $T$ do
3: Play the decision $X_t$ and suffer the loss $f_t(X_t)$
4: Query the gradient $G_t^X = \nabla f_t(X_t)$ and calculate $\overline{G}_t^X = \overline{G}_{t-1}^X + G_t^X$
5: Send $\hat{L}_{t-1}$ and $G_t^X (G_t^X)^\top$ to {xref}`Algorithm 5` and receive $\hat{L}_t, \rho_t^L$
6: Denote $\tilde{L}_t = \hat{L}_t \hat{L}_t^\top + (\epsilon + \rho_{1:t}^L)I_{m \times m}$
7: Update $X_{t+1}$ according to {xref}`(7)` or {xref}`(6)`
8: end for
Remark 9 In comparison to the previous O ( τ ( tr ( L T 1 / 4 ) + m ( ρ 1 : T L ) 1 / 4 ) ( tr ( R T 1 / 4 ) + n ( ρ 1 : T R ) 1 / 4 ) ) O\left(\sqrt{\tau}(\operatorname{tr}(L_T^{1/4})+m(\rho_{1:T}^L)^{1/4})(\operatorname{tr}(R_T^{1/4})+n(\rho_{1:T}^R)^{1/4})\right) O ( τ ( tr ( L T 1/4 ) + m ( ρ 1 : T L ) 1/4 ) ( tr ( R T 1/4 ) + n ( ρ 1 : T R ) 1/4 ) ) regret bound of S-Shampoo [19 ] , we achieve a dimension-free regret bound while enjoying the same O ( τ ( m + n ) ) O(\tau(m+n)) O ( τ ( m + n )) space complexity.
Although FTSL-Shampoo achieves an O ( τ ( m + n ) ) O(\tau(m+n)) O ( τ ( m + n )) space complexity, it requires maintaining a separate preconditioner for each axis of the gradient matrix. For convolutional neural networks, where a single layer may involve parameters with multiple dimensions, this necessitates storing and updating multiple preconditioners per layer. Beyond this overhead, the benefit obtained from such axis-wise preconditioning is itself limited. When the dimension is large, the theoretical guarantee of Shampoo can be worse than those of ADA-FULL or even SGD. Recently, ASGO [65 , 5 ] demonstrates that maintaining a preconditioner along only a single axis suffices to achieve better theoretical guarantees.
Therefore, to address the above limitations, we integrate FD with ASGO to propose Sketchy ASGO (S-ASGO) under both the mirror descent and primal-dual frameworks, which is summarized in Algorithm 7. Without loss of generality, we assume m ≤ n m \le n m ≤ n . S-ASGO maintains only a single sketching matrix L ^ t ∈ R m × τ \hat{L}_t \in\mathbb{R}^{m \times\tau} L ^ t ∈ R m × τ to approximate the matrix ∑ i = 1 t G i X ( G i X ) ⊤ \sum_{i=1}^{t}G_i^X(G_i^X)^\top ∑ i = 1 t G i X ( G i X ) ⊤ along the smaller axis, reducing the space complexity from O ( τ ( m + n ) ) O(\tau(m+n)) O ( τ ( m + n )) to O ( τ m ) O(\tau m) O ( τ m ) . In each round t t t , the learner first plays the decision X t X_t X t and receives the gradient G t X = ∇ f t ( X t ) G_t^X = \nabla f_t(X_t) G t X = ∇ f t ( X t ) . Then we send G t X G_t^X G t X and the previous sketching matrix L ^ t − 1 \hat{L}_{t-1} L ^ t − 1 to Algorithm 5 to obtain the updated sketching matrix L ^ t \hat{L}_t L ^ t and the discarded eigenvalue ρ t L \rho_t^L ρ t L . Similar to FTSL-Shampoo, we add back the cumulative escaped mass ρ 1 : t L \rho_{1:t}^L ρ 1 : t L to preserve the positive definite monotonicity, and construct the preconditioner as
L ~ t = L ^ t L ^ t ⊤ + ( ϵ + ρ 1 : t L ) I m × m . \tilde{L}_t = \hat{L}_t\hat{L}_t^\top+ (\epsilon+\rho_{1:t}^L)I_{m \times m}. L ~ t = L ^ t L ^ t ⊤ + ( ϵ + ρ 1 : t L ) I m × m .
Under the primal-dual framework, the learner updates the decision as
X t + 1 = − η L ~ t − 1 / 2 G t X . (6) X_{t+1} = -\eta\tilde{L}_t^{-1/2}G_t^X. \tag*{(6)} X t + 1 = − η L ~ t − 1/2 G t X . (6)
We now present the regret bound of S-ASGO under the primal-dual framework.
Theorem 7 Under Assumption 1, by setting the learning rate η = D F 2 \eta= \frac{D_F}{\sqrt{2}} η = 2 D F , where D F = ∥ X ∗ ∥ F D_F = \lVert X^* \rVert_F D F = ∥ X ∗ ∥ F is the Frobenius norm of the optimal decision X ∗ X^* X ∗ , S-ASGO under the primal-dual framework ensures
R ( T ) ≤ O ( D F ( tr ( L T 1 / 2 ) + ρ 1 : T L ) ) . R(T) \le O\left(D_F\left(\operatorname{tr}(L_T^{1/2})+\sqrt{\rho_{1:T}^L}\right)\right). R ( T ) ≤ O ( D F ( tr ( L T 1/2 ) + ρ 1 : T L ) ) .
We next study S-ASGO under the mirror descent framework, where the learner updates the decision as
X t + 1 = X t − η L ~ t − 1 / 2 G t X . (7) X_{t+1}=X_t-\eta\widetilde{L}_t^{-1/2}G_t^X. \tag*{(7)} X t + 1 = X t − η L t − 1/2 G t X . (7)
We present its theoretical guarantee in the following theorem.
Theorem 8 Under Assumption 1 , by setting the learning rate η = D 2 2 \eta=\frac{D_2}{\sqrt{2}} η = 2 D 2 , where D 2 = max t ∈ [ T ] ∥ X t − X ∗ ∥ 2 D_2=\max_{t\in[T]}\lVert X_t-X^*\rVert_2 D 2 = max t ∈ [ T ] ∥ X t − X ∗ ∥ 2 , S-ASGO under the mirror descent framework ensures
R ( T ) ≤ O ( D 2 ( tr ( L T 1 / 2 ) + m ρ 1 : T L ) ) . R(T)\leq O\left(D_2\left(\operatorname{tr}(L_T^{1/2})+m\sqrt{\rho_{1:T}^L}\right)\right). R ( T ) ≤ O ( D 2 ( tr ( L T 1/2 ) + m ρ 1 : T L ) ) .
Remark 10 Compared with FTSL-Shampoo, S-ASGO not only reduces the space complexity from O ( τ ( m + n ) ) O(\tau(m+n)) O ( τ ( m + n )) to O ( τ m ) O(\tau m) O ( τ m ) , but also achieves a tighter regret bound. Specifically, for any positive semi-definite matrix A A A , it holds that tr ( A ) ≤ tr ( A 1 / 2 ) \sqrt{\operatorname{tr}(A)}\leq\operatorname{tr}(A^{1/2}) tr ( A ) ≤ tr ( A 1/2 ) . Applying this inequality yields
tr ( L T 1 / 4 ) tr ( R T 1 / 4 ) ≥ tr ( L T 1 / 4 ) tr ( R T ) 1 / 4 = tr ( L T 1 / 4 ) tr ( L T ) 1 / 4 ≥ tr ( L T 1 / 4 ) ∥ L T ∥ 2 1 / 4 ≥ tr ( L T 1 / 2 ) . \begin{aligned}
\operatorname{tr}(L_T^{1/4})\operatorname{tr}(R_T^{1/4})\geq\operatorname{tr}(L_T^{1/4})\operatorname{tr}(R_T)^{1/4}=\operatorname{tr}(L_T^{1/4})\operatorname{tr}(L_T)^{1/4} \\
&\geq\operatorname{tr}(L_T^{1/4})\lVert L_T\rVert_2^{1/4}\geq\operatorname{tr}(L_T^{1/2}).
\end{aligned} tr ( L T 1/4 ) tr ( R T 1/4 ) ≥ tr ( L T 1/4 ) tr ( R T ) 1/4 = tr ( L T 1/4 ) tr ( L T ) 1/4 ≥ tr ( L T 1/4 ) ∥ L T ∥ 2 1/4 ≥ tr ( L T 1/2 ) .
Therefore, the leading term O ( tr ( L T 1 / 2 ) ) O(\operatorname{tr}(L_T^{1/2})) O ( tr ( L T 1/2 )) of S-ASGO is no larger than O ( tr ( L T 1 / 4 ) tr ( R T 1 / 4 ) ) O(\operatorname{tr}(L_T^{1/4})\operatorname{tr}(R_T^{1/4})) O ( tr ( L T 1/4 ) tr ( R T 1/4 )) of FTSL-Shampoo. Moreover, the regret bound of S-ASGO does not depend on the rank of the gradient.
Remark 11 The two versions of S-ASGO offer a trade-off between the regret bound and the problem-dependent constant. The mirror descent variant achieves a regret bound with the smaller constant D 2 D_2 D 2 , but incurs a dimension-dependent term O ( m ρ 1 : T L ) O(m\sqrt{\rho_{1:T}^L}) O ( m ρ 1 : T L ) arising from the Bregman divergence analysis. In contrast, the primal-dual variant eliminates this dimension dependence and achieves a fully dimension-free regret bound, at the cost of a larger constant D F D_F D F that bounds the norm of the optimal decision.
Application to Offline Optimization
In parallel with § 4.3 , we extend S-ASGO to the offline stochastic setting. Formally, we consider the following stochastic optimization problem
min X ∈ R m × n f ( X ) = E [ f ( X ; ξ ) ] . (8) \min_{X\in\mathbb{R}^{m\times n}} f(X)=\mathbb{E}[f(X;\xi)]. \tag*{(8)} X ∈ R m × n min f ( X ) = E [ f ( X ; ξ )] . (8)
where f ( ⋅ ) f(\cdot) f ( ⋅ ) is a convex loss function. We assume that only noisy estimates of its gradient ∇ f ( X ; ξ ) \nabla f(X;\xi) ∇ f ( X ; ξ ) can be accessed, where ξ \xi ξ is the random sample drawn from a stochastic oracle such that E [ ∇ f ( X ; ξ ) ] = ∇ f ( X ) \mathbb{E}[\nabla f(X;\xi)]=\nabla f(X) E [ ∇ f ( X ; ξ )] = ∇ f ( X ) .
In each round t t t , the learner receives the decision X t X_t X t from the online algorithm A \mathcal{A} A . It samples a mini-batch of M M M samples and queries the gradient G ^ t X = 1 M ∑ i = 1 M ∇ f ( X t ; ξ t , i ) \widehat{G}_t^X=\frac{1}{M}\sum_{i=1}^{M}\nabla f(X_t;\xi_{t,i}) G t X = M 1 ∑ i = 1 M ∇ f ( X t ; ξ t , i ) . Then it sends the stochastic gradient to A \mathcal{A} A as the gradient in round t t t .
We first establish the convergence rate for convex non-smooth loss functions.
Theorem 9 Under Assumption 1, by setting the learning rate η = D F 2 \eta= \frac{D_{\mathrm{F}}}{\sqrt{2}} η = 2 D F and M = 1 M = 1 M = 1 , where D F = ∥ X ∗ ∥ F D_{\mathrm{F}} = \lVert X^{*}\rVert_{\mathrm{F}} D F = ∥ X ∗ ∥ F is the Frobenius norm of the optimal decision X ∗ ∈ arg min X ∈ R m × n f ( X ) X^{*} \in\arg\min_{X\in\mathbb{R}^{m\times n}} f(X) X ∗ ∈ arg min X ∈ R m × n f ( X ) , S-ASGO under the primal-dual framework ensures
1 T ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] ≤ O ( D F tr ( L T 1 / 2 ) T + D F ρ 1 : T L T ) . \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^{*})\right] \le O\left(\frac{D_{\mathrm{F}}\operatorname{tr}(L_T^{1/2})}{T}+\frac{D_{\mathrm{F}}\sqrt{\rho_{1:T}^{L}}}{T}\right). T 1 t = 1 ∑ T E [ f ( X t ) − f ( X ∗ ) ] ≤ O T D F tr ( L T 1/2 ) + T D F ρ 1 : T L . Under Assumption 1, by setting the learning rate η = D 2 2 \eta= \frac{D_2}{\sqrt{2}} η = 2 D 2 and M = 1 M = 1 M = 1 , where D 2 = max t ∈ [ T ] ∥ X t − X ∗ ∥ 2 D_2 = \max_{t\in[T]}\lVert X_t-X^{*}\rVert_2 D 2 = max t ∈ [ T ] ∥ X t − X ∗ ∥ 2 , S-ASGO under the mirror descent framework ensures
1 T ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] ≤ O ( D 2 tr ( L T 1 / 2 ) T + D 2 m ρ 1 : T L T ) . \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^{*})\right] \le O\left(\frac{D_2\operatorname{tr}(L_T^{1/2})}{T}+\frac{D_2m\sqrt{\rho_{1:T}^{L}}}{T}\right). T 1 t = 1 ∑ T E [ f ( X t ) − f ( X ∗ ) ] ≤ O T D 2 tr ( L T 1/2 ) + T D 2 m ρ 1 : T L .
We next turn to smooth losses. In line with An et al. [5 ] , we impose two standard assumptions.
Assumption 5 (Smoothness) The loss function is 1-smooth with respect to ∥ ⋅ ∥ L \lVert\cdot\rVert_L ∥ ⋅ ∥ L , where L ∈ R m × m \mathbf{L}\in\mathbb{R}^{m\times m} L ∈ R m × m is a symmetric positive definite matrix and ∥ X ∥ L = tr ( X T L X ) \lVert X\rVert_L=\sqrt{\operatorname{tr}(X^{\mathsf{T}}\mathbf{L}X)} ∥ X ∥ L = tr ( X T L X ) .
Assumption 6 (Bounded noise variance) Let N t = ∇ f ( X t ; ξ t ) − ∇ f ( X t ) N_t=\nabla f(X_t;\xi_t)-\nabla f(X_t) N t = ∇ f ( X t ; ξ t ) − ∇ f ( X t ) be the stochastic gradient noise. We assume E [ N t ] = 0 \mathbb{E}[N_t]=0 E [ N t ] = 0 and there exists a symmetric positive definite matrix V \mathbf{V} V such that
E [ N t N t T ] ⪯ V 2 . \mathbb{E}[N_tN_t^{\mathsf{T}}]\preceq\mathbf{V}^{2}. E [ N t N t T ] ⪯ V 2 .
Then, we establish the convergence rate for smooth loss functions.
Theorem 10 Under Assumptions 1, 5 and 6, by setting the learning rate η = D F 2 \eta= \frac{D_{\mathrm{F}}}{\sqrt{2}} η = 2 D F and the batch size M M M , where D F = ∥ X ∗ ∥ F D_{\mathrm{F}} = \lVert X^{*}\rVert_{\mathrm{F}} D F = ∥ X ∗ ∥ F is the Frobenius norm of the optimal decision X ∗ X^{*} X ∗ , S-ASGO under the primal-dual framework ensures
1 T ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] ≤ O ( D F 2 tr ( L ) T + D F ∥ V ∥ ∗ M T + D F ρ 1 : T L T ) . \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^{*})\right] \le O\left(\frac{D_{\mathrm{F}}^{2}\operatorname{tr}(\mathbf{L})}{T}+\frac{D_{\mathrm{F}}\lVert\mathbf{V}\rVert_{*}}{\sqrt{MT}}+\frac{D_{\mathrm{F}}\sqrt{\rho_{1:T}^{L}}}{T}\right). T 1 t = 1 ∑ T E [ f ( X t ) − f ( X ∗ ) ] ≤ O T D F 2 tr ( L ) + M T D F ∥ V ∥ ∗ + T D F ρ 1 : T L . Under Assumptions 1, 5 and 6, by setting the learning rate η = D 2 2 \eta= \frac{D_2}{\sqrt{2}} η = 2 D 2 and the batch size M M M , where D 2 = max t ∈ [ T ] ∥ X t − X ∗ ∥ 2 D_2 = \max_{t\in[T]}\lVert X_t-X^{*}\rVert_2 D 2 = max t ∈ [ T ] ∥ X t − X ∗ ∥ 2 , S-ASGO under the mirror descent framework ensures
1 T ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] ≤ O ( D 2 2 tr ( L ) T + D 2 ∥ V ∥ ∗ M T + m D 2 ρ 1 : T L T ) . \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^{*})\right] \le O\left(\frac{D_2^{2}\operatorname{tr}(\mathbf{L})}{T}+\frac{D_2\lVert\mathbf{V}\rVert_{*}}{\sqrt{MT}}+\frac{mD_2\sqrt{\rho_{1:T}^{L}}}{T}\right). T 1 t = 1 ∑ T E [ f ( X t ) − f ( X ∗ ) ] ≤ O T D 2 2 tr ( L ) + M T D 2 ∥ V ∥ ∗ + T m D 2 ρ 1 : T L .
Remark 12 Both bounds contain three terms: a smooth term of order O ( tr ( L ) / T ) O(\operatorname{tr}(\mathbf{L})/T) O ( tr ( L ) / T ) , a stochastic noise term of order O ( ∥ V ∥ ∗ / M T ) O(\lVert\mathbf{V}\rVert_{*}/\sqrt{MT}) O (∥ V ∥ ∗ / M T ) , and a sketching error term of order O ( ρ 1 : T L / T ) O(\sqrt{\rho_{1:T}^{L}/T}) O ( ρ 1 : T L / T ) . The first two terms match the convergence rate of their non-sketched counterparts, while the third quantifies the additional error introduced by FD. When the gradient covariance is approximately low-rank, both methods recover the optimal O ( ∥ V ∥ ∗ / M T ) O(\lVert\mathbf{V}\rVert_{*}/\sqrt{MT}) O (∥ V ∥ ∗ / M T ) rate dictated by the stochastic noise. Moreover, a faster convergence rate can be obtained by choosing a large batch size M M M .
Analysis
In this section, we present the proofs of the main theorems.
Proof of Theorem 1
Before giving the proof of Theorem 1, we first introduce some supporting lemmas.
Lemma 11 (Duchi et al., [14 ] , Proposition 2) Let { x t } \{\mathbf{x}_t\} { x t } be the decisions of Algorithm 2 2 2 and x ∗ ∈ arg min x ∈ R d ∑ t = 1 T f t ( x ) \mathbf{x}^* \in\arg\min_{\mathbf{x}\in\mathbb{R}^d} \sum_{t=1}^{T} f_t(\mathbf{x}) x ∗ ∈ arg min x ∈ R d ∑ t = 1 T f t ( x ) . Then we have
∑ t = 1 T f t ( x t ) − ∑ t = 1 T f t ( x ∗ ) ≤ 1 η Ψ T ( x ∗ ) + η 2 ∑ t = 1 T ∥ g t ∥ G ~ t − 1 − 1 / 2 2 \sum_{t=1}^{T} f_t(\mathbf{x}_t)-\sum_{t=1}^{T} f_t(\mathbf{x}^*) \leq\frac{1}{\eta}\Psi_T(\mathbf{x}^*)+\frac{\eta}{2}\sum_{t=1}^{T}\lVert\mathbf{g}_t\rVert_{\widetilde{G}_{t-1}^{-1/2}}^2 t = 1 ∑ T f t ( x t ) − t = 1 ∑ T f t ( x ∗ ) ≤ η 1 Ψ T ( x ∗ ) + 2 η t = 1 ∑ T ∥ g t ∥ G t − 1 − 1/2 2 where Ψ T ( x ∗ ) = 1 2 ⟨ x ∗ , G ~ T 1 / 2 x ∗ ⟩ \Psi_T(\mathbf{x}^*)=\frac{1}{2}\langle\mathbf{x}^*,\widetilde{G}_T^{1/2}\mathbf{x}^*\rangle Ψ T ( x ∗ ) = 2 1 ⟨ x ∗ , G T 1/2 x ∗ ⟩ .
Lemma 12 (Duchi et al., [14 ] , Lemma 10) Define G t = ∑ i = 1 t g i g i T G_t=\sum_{i=1}^{t}\mathbf{g}_i\mathbf{g}_i^{\mathsf{T}} G t = ∑ i = 1 t g i g i T . Then we have
∑ t = 1 T ⟨ g t , ( G t 1 / 2 ) − 1 g t ⟩ ≤ 2 ∑ t = 1 T ⟨ g t , ( G T 1 / 2 ) − 1 g t ⟩ = 2 tr ( G T 1 / 2 ) . \sum_{t=1}^{T}\left\langle\mathbf{g}_t,\left(G_t^{1/2}\right)^{-1}\mathbf{g}_t\right\rangle\leq2\sum_{t=1}^{T}\left\langle\mathbf{g}_t,\left(G_T^{1/2}\right)^{-1}\mathbf{g}_t\right\rangle=2\operatorname{tr}\left(G_T^{1/2}\right). t = 1 ∑ T ⟨ g t , ( G t 1/2 ) − 1 g t ⟩ ≤ 2 t = 1 ∑ T ⟨ g t , ( G T 1/2 ) − 1 g t ⟩ = 2 tr ( G T 1/2 ) .
Then, we illustrate how FD approximates the original matrix.
Lemma 13 (Feinberg et al., [19 ] , Remark 11) By defining G t = ∑ i = 1 t g i g i T G_t=\sum_{i=1}^{t}\mathbf{g}_i\mathbf{g}_i^{\mathsf{T}} G t = ∑ i = 1 t g i g i T , for the FD sketch maintained in FTSL, we have
B t B t T ⪯ G t ⪯ G ~ t = ρ 1 : t I d × d + B t B t T . B_tB_t^{\mathsf{T}}\preceq G_t\preceq\widetilde{G}_t=\rho_{1:t}I_{d\times d}+B_tB_t^{\mathsf{T}}. B t B t T ⪯ G t ⪯ G t = ρ 1 : t I d × d + B t B t T .
Using Lemma 11, we can bound the regret of Algorithm 2 by
∑ t = 1 T f t ( x t ) − ∑ t = 1 T f t ( x ∗ ) ≤ 1 η Ψ T ( x ∗ ) ⏟ R D + η 2 ∑ t = 1 T ∥ g t ∥ G ~ t − 1 − 1 / 2 2 ⏟ R G . (9) \sum_{t=1}^{T}f_t(\mathbf{x}_t)-\sum_{t=1}^{T}f_t(\mathbf{x}^*)\leq\underbrace{\frac{1}{\eta}\Psi_T(\mathbf{x}^*)}_{R_D}+\underbrace{\frac{\eta}{2}\sum_{t=1}^{T}\lVert\mathbf{g}_t\rVert_{\widetilde{G}_{t-1}^{-1/2}}^2}_{R_G}. \tag*{(9)} t = 1 ∑ T f t ( x t ) − t = 1 ∑ T f t ( x ∗ ) ≤ R D η 1 Ψ T ( x ∗ ) + R G 2 η t = 1 ∑ T ∥ g t ∥ G t − 1 − 1/2 2 . (9)
Then we bound the terms R D R_D R D and R G R_G R G , respectively. As for R D R_D R D , we have
Ψ T ( x ∗ ) = 1 2 ⟨ x ∗ , G ~ T 1 / 2 x ∗ ⟩ = 1 2 ⟨ x ∗ , ( B T B T T + ρ 1 : T I d × d ) 1 / 2 x ∗ ⟩ ≤ 1 2 ⟨ x ∗ , ( B T B T T ) 1 / 2 x ∗ ⟩ + 1 2 ⟨ x ∗ , ( ρ 1 : T I d × d ) 1 / 2 x ∗ ⟩ ≤ 1 2 ρ 1 : T ∥ x ∗ ∥ 2 + 1 2 ⟨ x ∗ , ( G T ) 1 / 2 x ∗ ⟩ ≤ 1 2 D 2 ρ 1 : T + 1 2 D 2 λ max ( ( G T ) 1 / 2 ) ≤ 1 2 D 2 ρ 1 : T + 1 2 D 2 tr ( G T 1 / 2 ) , \begin{aligned}
\Psi_T(\mathbf{x}^*)&=\frac{1}{2}\left\langle\mathbf{x}^*,\widetilde{G}_T^{1/2}\mathbf{x}^*\right\rangle\\
&=\frac{1}{2}\left\langle\mathbf{x}^*,\left(B_TB_T^{\mathsf{T}}+\rho_{1:T}I_{d\times d}\right)^{1/2}\mathbf{x}^*\right\rangle\\
&\leq\frac{1}{2}\left\langle\mathbf{x}^*,\left(B_TB_T^{\mathsf{T}}\right)^{1/2}\mathbf{x}^*\right\rangle+\frac{1}{2}\left\langle\mathbf{x}^*,\left(\rho_{1:T}I_{d\times d}\right)^{1/2}\mathbf{x}^*\right\rangle\\
&\leq\frac{1}{2}\sqrt{\rho_{1:T}}\lVert\mathbf{x}^*\rVert^2+\frac{1}{2}\left\langle\mathbf{x}^*,\left(G_T\right)^{1/2}\mathbf{x}^*\right\rangle\\
&\leq\frac{1}{2}D^2\sqrt{\rho_{1:T}}+\frac{1}{2}D^2\lambda_{\max}\left(\left(G_T\right)^{1/2}\right)\\
&\leq\frac{1}{2}D^2\sqrt{\rho_{1:T}}+\frac{1}{2}D^2\operatorname{tr}\left(G_T^{1/2}\right),
\end{aligned} Ψ T ( x ∗ ) = 2 1 ⟨ x ∗ , G T 1/2 x ∗ ⟩ = 2 1 ⟨ x ∗ , ( B T B T T + ρ 1 : T I d × d ) 1/2 x ∗ ⟩ ≤ 2 1 ⟨ x ∗ , ( B T B T T ) 1/2 x ∗ ⟩ + 2 1 ⟨ x ∗ , ( ρ 1 : T I d × d ) 1/2 x ∗ ⟩ ≤ 2 1 ρ 1 : T ∥ x ∗ ∥ 2 + 2 1 ⟨ x ∗ , ( G T ) 1/2 x ∗ ⟩ ≤ 2 1 D 2 ρ 1 : T + 2 1 D 2 λ m a x ( ( G T ) 1/2 ) ≤ 2 1 D 2 ρ 1 : T + 2 1 D 2 tr ( G T 1/2 ) ,
where the first inequality is due to a + b ≤ a + b \sqrt{a+b} \le\sqrt{a}+\sqrt{b} a + b ≤ a + b and we assume ∥ x ∗ ∥ ≤ D \lVert x^{*}\rVert\le D ∥ x ∗ ∥ ≤ D . Therefore, we have
R D = 1 η ψ T ( x ∗ ) ≤ 1 2 η ( D 2 ρ 1 : T + D 2 tr ( G T 1 / 2 ) ) . (10) R_D = \frac{1}{\eta}\psi_T(x^{*}) \le\frac{1}{2\eta}\left(D^2\sqrt{\rho_{1:T}}+D^2\operatorname{tr}\left(G_T^{1/2}\right)\right). \tag*{(10)} R D = η 1 ψ T ( x ∗ ) ≤ 2 η 1 ( D 2 ρ 1 : T + D 2 tr ( G T 1/2 ) ) . (10)
To give the bound for R G R_G R G , we first give the lower bound of G ~ t − 1 \widetilde{G}_{t-1} G t − 1 , which connects G ~ t − 1 \widetilde{G}_{t-1} G t − 1 with G t G_t G t . We denote a t = min { ρ 1 : t − 1 ∥ g t ∥ 2 + ρ 1 : t − 1 , 1 } ≤ 1 a_t=\min\left\{\frac{\rho_{1:t-1}}{\lVert g_t\rVert^2+\rho_{1:t-1}},1\right\}\le1 a t = min { ∥ g t ∥ 2 + ρ 1 : t − 1 ρ 1 : t − 1 , 1 } ≤ 1 , and we have
G ~ t − 1 = B t − 1 B t − 1 T + ρ 1 : t − 1 I d × d ⪰ a t ( ∥ g t ∥ 2 I d × d + ρ 1 : t − 1 I d × d + B t − 1 B t − 1 T ) ⪰ a t ( ∥ g t ∥ 2 I d × d + G t − 1 ) ⪰ a t G t , \begin{aligned}
\widetilde{G}_{t-1} &= B_{t-1}B_{t-1}^{\mathsf{T}}+\rho_{1:t-1}I_{d\times d}\\
&\succeq a_t\left(\lVert g_t\rVert^2I_{d\times d}+\rho_{1:t-1}I_{d\times d}+B_{t-1}B_{t-1}^{\mathsf{T}}\right)\\
&\succeq a_t\left(\lVert g_t\rVert^2I_{d\times d}+G_{t-1}\right)\\
&\succeq a_tG_t,
\end{aligned} G t − 1 = B t − 1 B t − 1 T + ρ 1 : t − 1 I d × d ⪰ a t ( ∥ g t ∥ 2 I d × d + ρ 1 : t − 1 I d × d + B t − 1 B t − 1 T ) ⪰ a t ( ∥ g t ∥ 2 I d × d + G t − 1 ) ⪰ a t G t ,
which means G ~ t − 1 − 1 ⪯ 1 a t G t − 1 \widetilde{G}_{t-1}^{-1}\preceq\frac{1}{a_t}G_t^{-1} G t − 1 − 1 ⪯ a t 1 G t − 1 . Then, letting C 1 = max t ∈ [ T ] 1 a t C_1=\max_{t\in[T]}\frac{1}{\sqrt{a_t}} C 1 = max t ∈ [ T ] a t 1 , we have
∑ t = 1 T ∥ g t ∥ G ~ t − 1 − 1 / 2 2 = ∑ t = 1 T ⟨ g t , ( G ~ t − 1 1 / 2 ) − 1 g t ⟩ ≤ ∑ t = 1 T 1 a t ⟨ g t , ( G t 1 / 2 ) − 1 g t ⟩ ≤ C 1 ∑ t = 1 T ⟨ g t , ( G t 1 / 2 ) − 1 g t ⟩ ≤ 2 C 1 tr ( G T 1 / 2 ) , \begin{aligned}
\sum_{t=1}^{T}\lVert g_t\rVert_{\widetilde{G}_{t-1}^{-1/2}}^2
&=\sum_{t=1}^{T}\left\langle g_t,\left(\widetilde{G}_{t-1}^{1/2}\right)^{-1}g_t\right\rangle\\
&\le\sum_{t=1}^{T}\frac{1}{\sqrt{a_t}}\left\langle g_t,\left(G_t^{1/2}\right)^{-1}g_t\right\rangle\\
&\le C_1\sum_{t=1}^{T}\left\langle g_t,\left(G_t^{1/2}\right)^{-1}g_t\right\rangle
\le2C_1\operatorname{tr}\left(G_T^{1/2}\right),
\end{aligned} t = 1 ∑ T ∥ g t ∥ G t − 1 − 1/2 2 = t = 1 ∑ T ⟨ g t , ( G t − 1 1/2 ) − 1 g t ⟩ ≤ t = 1 ∑ T a t 1 ⟨ g t , ( G t 1/2 ) − 1 g t ⟩ ≤ C 1 t = 1 ∑ T ⟨ g t , ( G t 1/2 ) − 1 g t ⟩ ≤ 2 C 1 tr ( G T 1/2 ) ,
where the last inequality is due to Lemma 12 . Therefore, we have
R G = η 2 ∑ t = 1 T ∥ g t ∥ G ~ t − 1 − 1 / 2 2 ≤ η C 1 tr ( G T 1 / 2 ) . (11) R_G=\frac{\eta}{2}\sum_{t=1}^{T}\lVert g_t\rVert_{\widetilde{G}_{t-1}^{-1/2}}^2\le\eta C_1\operatorname{tr}\left(G_T^{1/2}\right). \tag*{(11)} R G = 2 η t = 1 ∑ T ∥ g t ∥ G t − 1 − 1/2 2 ≤ η C 1 tr ( G T 1/2 ) . (11)
By combining equations (10) and (11) , and setting η = D 2 \eta=\frac{D}{\sqrt{2}} η = 2 D , we obtain
∑ t = 1 T f t ( x t ) − ∑ t = 1 T f t ( x ∗ ) ≤ η C 1 tr ( G T 1 / 2 ) + 1 2 η ( D 2 ρ 1 : T + D 2 tr ( G T 1 / 2 ) ) ≤ D 2 ρ 1 : T + ( C 1 + 1 2 ) D tr ( G T 1 / 2 ) = O ( D ( tr ( G T 1 / 2 ) + ρ 1 : T ) ) . \begin{aligned}
\sum_{t=1}^{T}f_t(x_t)-\sum_{t=1}^{T}f_t(x^{*})
&\le\eta C_1\operatorname{tr}\left(G_T^{1/2}\right)+\frac{1}{2\eta}\left(D^2\sqrt{\rho_{1:T}}+D^2\operatorname{tr}\left(G_T^{1/2}\right)\right)\\
&\le D\sqrt{2\rho_{1:T}}+\left(\frac{C_1+1}{\sqrt{2}}\right)D\operatorname{tr}\left(G_T^{1/2}\right)\\
&=O\left(D\left(\operatorname{tr}\left(G_T^{1/2}\right)+\sqrt{\rho_{1:T}}\right)\right).
\end{aligned} t = 1 ∑ T f t ( x t ) − t = 1 ∑ T f t ( x ∗ ) ≤ η C 1 tr ( G T 1/2 ) + 2 η 1 ( D 2 ρ 1 : T + D 2 tr ( G T 1/2 ) ) ≤ D 2 ρ 1 : T + ( 2 C 1 + 1 ) D tr ( G T 1/2 ) = O ( D ( tr ( G T 1/2 ) + ρ 1 : T ) ) .
Proof of Theorem 2
We first introduce some guarantees of the fast frequent directions technique. In Algorithm 3, we do not perform SVD on the sketching matrix B t B_t B t every round. Instead, we maintain two matrices M t M_t M t and V t V_t V t , which approximate the sketching matrix B t B_t B t in Algorithm 2, that is
V t M t 1 / 2 = B t ∈ R d × 2 τ . V_tM_t^{1/2}=B_t\in\mathbb{R}^{d\times2\tau}. V t M t 1/2 = B t ∈ R d × 2 τ .
In each round t t t , after receiving a new gradient g t \mathbf{g}_t g t , we first check whether this vector lies within the subspace spanned by V t − 1 V_{t-1} V t − 1 . If the vector is not contained within the subspace, we normalize it and subsequently add it to V t − 1 V_{t-1} V t − 1 , thereby enlarging the span of the subspace and ensuring V t − 1 V t − 1 ⊤ g t = g t V_{t-1}V_{t-1}^{\top}\mathbf{g}_t=\mathbf{g}_t V t − 1 V t − 1 ⊤ g t = g t . In our algorithm design, we require the matrix V t V_t V t only contain orthonormal vectors, therefore we add g t − g ′ ∥ g t − g ′ ∥ 2 \frac{\mathbf{g}_t-\mathbf{g}^{\prime}}{\lVert\mathbf{g}_t-\mathbf{g}^{\prime}\rVert_2} ∥ g t − g ′ ∥ 2 g t − g ′ to the first all zero column. In round t t t , we have
V t − 1 M t − 1 V t − 1 ⊤ + g t g t ⊤ = V t − 1 M t − 1 V t − 1 ⊤ + V t − 1 V t − 1 ⊤ g t g t ⊤ V t − 1 V t − 1 ⊤ = V t − 1 ( M t − 1 + V t − 1 ⊤ g t g t ⊤ V t − 1 ) V t − 1 ⊤ = V t ( M t − 1 + V t ⊤ g t g t ⊤ V t ) V t ⊤ . V_{t-1}M_{t-1}V_{t-1}^{\top}+\mathbf{g}_t\mathbf{g}_t^{\top}
=V_{t-1}M_{t-1}V_{t-1}^{\top}+V_{t-1}V_{t-1}^{\top}\mathbf{g}_t\mathbf{g}_t^{\top}V_{t-1}V_{t-1}^{\top}
\\
=V_{t-1}\left(M_{t-1}+V_{t-1}^{\top}\mathbf{g}_t\mathbf{g}_t^{\top}V_{t-1}\right)V_{t-1}^{\top}
\\
=V_t\left(M_{t-1}+V_t^{\top}\mathbf{g}_t\mathbf{g}_t^{\top}V_t\right)V_t^{\top}. V t − 1 M t − 1 V t − 1 ⊤ + g t g t ⊤ = V t − 1 M t − 1 V t − 1 ⊤ + V t − 1 V t − 1 ⊤ g t g t ⊤ V t − 1 V t − 1 ⊤ = V t − 1 ( M t − 1 + V t − 1 ⊤ g t g t ⊤ V t − 1 ) V t − 1 ⊤ = V t ( M t − 1 + V t ⊤ g t g t ⊤ V t ) V t ⊤ .
According to Lemma 13 , we can derive
V t M t V t ⊤ = B t B t ⊤ ⪯ G t . V_tM_tV_t^{\top}=B_tB_t^{\top}\preceq G_t. V t M t V t ⊤ = B t B t ⊤ ⪯ G t .
In the following, we will prove G t ⪯ G ~ t G_t\preceq\widetilde{G}_t G t ⪯ G t .
Assume that we delete the eigenvalues of M k M_k M k in round k k k . Note that in our method, we calculate G ~ k \widetilde{G}_k G k before we delete the eigenvalues of M k M_k M k . In round k k k , before we update V k V_k V k , we have V k = V k − 1 V_k=V_{k-1} V k = V k − 1 , and we let V k V_k V k represent the matrix before we delete its columns.
As we perform SVD on V k M k 1 / 2 ∈ R d × 2 τ V_kM_k^{1/2}\in\mathbb{R}^{d\times2\tau} V k M k 1/2 ∈ R d × 2 τ , we delete the eigenvalues of M k M_k M k , update V k = V k U k V_k=V_kU_k V k = V k U k and set the last τ + 1 \tau+1 τ + 1 columns to zero. In round k + 1 k+1 k + 1 , we have G ~ k + 1 = V k + 1 ( diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) + V k + 1 ⊤ g k + 1 ( V k + 1 ⊤ g k + 1 ) ⊤ ) V k + 1 ⊤ + ρ 1 : k + 1 I d × d \widetilde{G}_{k+1}=V_{k+1}\left(\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_{\tau}^{(k)},0\right\}\right)+V_{k+1}^{\top}\mathbf{g}_{k+1}(V_{k+1}^{\top}\mathbf{g}_{k+1})^{\top}\right)V_{k+1}^{\top}+\rho_{1:k+1}I_{d\times d} G k + 1 = V k + 1 ( diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) + V k + 1 ⊤ g k + 1 ( V k + 1 ⊤ g k + 1 ) ⊤ ) V k + 1 ⊤ + ρ 1 : k + 1 I d × d , and we can derive
V k + 1 ( diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) + V k + 1 ⊤ g k + 1 ( V k + 1 ⊤ g k + 1 ) ⊤ ) V k + 1 ⊤ + ρ k + 1 I d × d = V k + 1 diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) V k + 1 ⊤ + λ τ ( k ) I d × d + g k + 1 g k + 1 ⊤ \begin{aligned}
V_{k+1}\left(\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_{\tau}^{(k)},0\right\}\right)+V_{k+1}^{\top}\mathbf{g}_{k+1}(V_{k+1}^{\top}\mathbf{g}_{k+1})^{\top}\right)V_{k+1}^{\top}+\rho_{k+1}I_{d\times d} \\
&=V_{k+1}\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_{\tau}^{(k)},0\right\}\right)V_{k+1}^{\top}+\lambda_{\tau}^{(k)}I_{d\times d}+\mathbf{g}_{k+1}\mathbf{g}_{k+1}^{\top}
\end{aligned} V k + 1 ( diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) + V k + 1 ⊤ g k + 1 ( V k + 1 ⊤ g k + 1 ) ⊤ ) V k + 1 ⊤ + ρ k + 1 I d × d = V k + 1 diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) V k + 1 ⊤ + λ τ ( k ) I d × d + g k + 1 g k + 1 ⊤
⪰ V k U k diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) U k ⊤ V k ⊤ + λ τ ( k ) ( V k U k ) ( V k U k ) ⊤ + g k + 1 g k + 1 ⊤ = V k U k diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } + λ τ ( k ) ) U k ⊤ V k ⊤ + g k + 1 g k + 1 ⊤ \begin{aligned}
\succeq V_kU_k\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_{\tau}^{(k)},0\right\}\right)U_k^{\top}V_k^{\top}+\lambda_{\tau}^{(k)}(V_kU_k)(V_kU_k)^{\top}+\mathbf{g}_{k+1}\mathbf{g}_{k+1}^{\top} \\
&=V_kU_k\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_{\tau}^{(k)},0\right\}+\lambda_{\tau}^{(k)}\right)U_k^{\top}V_k^{\top}+\mathbf{g}_{k+1}\mathbf{g}_{k+1}^{\top}
\end{aligned} ⪰ V k U k diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) U k ⊤ V k ⊤ + λ τ ( k ) ( V k U k ) ( V k U k ) ⊤ + g k + 1 g k + 1 ⊤ = V k U k diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } + λ τ ( k ) ) U k ⊤ V k ⊤ + g k + 1 g k + 1 ⊤
⪰ V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k ⊤ V k ⊤ + g k + 1 g k + 1 ⊤ = V k M k V k ⊤ + g k + 1 g k + 1 ⊤ , \begin{aligned}
\succeq V_kU_k\operatorname{diag}\left(\lambda_{[1:2\tau]}^{(k)}\right)U_k^{\top}V_k^{\top}+\mathbf{g}_{k+1}\mathbf{g}_{k+1}^{\top} \\
&=V_kM_kV_k^{\top}+\mathbf{g}_{k+1}\mathbf{g}_{k+1}^{\top},
\end{aligned} ⪰ V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k ⊤ V k ⊤ + g k + 1 g k + 1 ⊤ = V k M k V k ⊤ + g k + 1 g k + 1 ⊤ ,
where the second inequality is due to the fact that only the first τ − 1 \tau-1 τ − 1 columns of diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) \operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_{\tau}^{(k)},0\right\}\right) diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) are non-zero and the first τ − 1 \tau-1 τ − 1 columns of V k + 1 V_{k+1} V k + 1 and V k U k V_kU_k V k U k are the same, and that U k U_k U k and V k V_k V k are orthogonal matrices.
If we do not delete the eigenvalues of M k M_k M k in round k k k , we have ρ k + 1 = 0 \rho_{k+1}=0 ρ k + 1 = 0 and
V k + 1 M k + 1 V k + 1 ⊤ + ρ k + 1 I d × d = V k + 1 ( M k + V k + 1 ⊤ g k + 1 ( V k + 1 ⊤ g k + 1 ) ⊤ ) V k + 1 ⊤ = V k + 1 M k V k + 1 ⊤ + g k + 1 g k + 1 ⊤ . \begin{aligned}
V_{k+1}M_{k+1}V_{k+1}^{\top}+\rho_{k+1}I_{d\times d}
=V_{k+1}\left(M_k+V_{k+1}^{\top}\mathbf{g}_{k+1}(V_{k+1}^{\top}\mathbf{g}_{k+1})^{\top}\right)V_{k+1}^{\top} \\
&=V_{k+1}M_kV_{k+1}^{\top}+\mathbf{g}_{k+1}\mathbf{g}_{k+1}^{\top}.
\end{aligned} V k + 1 M k + 1 V k + 1 ⊤ + ρ k + 1 I d × d = V k + 1 ( M k + V k + 1 ⊤ g k + 1 ( V k + 1 ⊤ g k + 1 ) ⊤ ) V k + 1 ⊤ = V k + 1 M k V k + 1 ⊤ + g k + 1 g k + 1 ⊤ .
Assume there are at most ℓ \ell ℓ eigenvalues in M k M_k M k , ℓ ≤ 2 τ − 1 \ell\le2\tau-1 ℓ ≤ 2 τ − 1 , at most ℓ + 1 \ell+1 ℓ + 1 non-zero columns in V k + 1 V_{k+1} V k + 1 , and at most ℓ \ell ℓ non-zero columns in V k V_k V k , and the first ℓ \ell ℓ columns of V k + 1 V_{k+1} V k + 1 and V k V_k V k are the same. We have the following
V k + 1 M k + 1 V k + 1 T + ρ k + 1 I d × d = V k + 1 U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k + 1 T + g k + 1 g k + 1 T + 0 I d × d = V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k T + g k + 1 g k + 1 T = V k M k V k T + g k + 1 g k + 1 T , (12) \begin{aligned}
V_{k+1}M_{k+1}V_{k+1}^{\mathsf{T}}+\rho_{k+1}I_{d\times d}
&=V_{k+1}U_k\operatorname{diag}\left(\lambda_{[1:2\tau]}^{(k)}\right)U_k^{\mathsf{T}}V_{k+1}^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}+0I_{d\times d}\\
&=V_kU_k\operatorname{diag}\left(\lambda_{[1:2\tau]}^{(k)}\right)U_k^{\mathsf{T}}V_k^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}\\
&=V_kM_kV_k^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}, \tag*{(12)}
\end{aligned} V k + 1 M k + 1 V k + 1 T + ρ k + 1 I d × d = V k + 1 U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k + 1 T + g k + 1 g k + 1 T + 0 I d × d = V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k T + g k + 1 g k + 1 T = V k M k V k T + g k + 1 g k + 1 T , (12)
where the second equality is due to the fact that only the first ℓ \ell ℓ elements in λ [ 1 : 2 τ ] ( k ) \lambda_{[1:2\tau]}^{(k)} λ [ 1 : 2 τ ] ( k ) are non-zero and the first ℓ \ell ℓ columns of V k V_k V k and V k + 1 V_{k+1} V k + 1 are the same.
Therefore, we have
G ~ t = V t M t V t T + ρ 1 : t I d × d ⪰ V t − 1 M t − 1 V t − 1 T + ρ 1 : t − 1 I d × d + g t g t T = G ~ t − 1 + g t g t T . \widetilde{G}_t=V_tM_tV_t^{\mathsf{T}}+\rho_{1:t}I_{d\times d}\succeq V_{t-1}M_{t-1}V_{t-1}^{\mathsf{T}}+\rho_{1:t-1}I_{d\times d}+g_tg_t^{\mathsf{T}}=\widetilde{G}_{t-1}+g_tg_t^{\mathsf{T}}. G t = V t M t V t T + ρ 1 : t I d × d ⪰ V t − 1 M t − 1 V t − 1 T + ρ 1 : t − 1 I d × d + g t g t T = G t − 1 + g t g t T .
By summing up, we have
G ~ t ⪰ ∑ i = 1 t g i g i T = G t . \widetilde{G}_t\succeq\sum_{i=1}^{t}g_i g_i^{\mathsf{T}}=G_t. G t ⪰ i = 1 ∑ t g i g i T = G t .
Next, we need to ensure that after FFD, the preconditioning matrix G ~ t \widetilde{G}_t G t is monotone. It is easy to verify that G ~ t \widetilde{G}_t G t remains monotone in the rounds where we do not delete any eigenvalue of M t M_t M t .
Then, we prove that G ~ t \widetilde{G}_t G t remains monotone even if we delete the eigenvalues of M t M_t M t . Assume in round k k k , we delete the eigenvalues of M k M_k M k . In round k k k , the matrix G ~ k = ρ 1 : k I d × d + V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k T \widetilde{G}_k=\rho_{1:k}I_{d\times d}+V_kU_k\operatorname{diag}\left(\lambda_{[1:2\tau]}^{(k)}\right)U_k^{\mathsf{T}}V_k^{\mathsf{T}} G k = ρ 1 : k I d × d + V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k T . Moreover, G ~ k + 1 = ρ 1 : k + 1 I d × d + V k + 1 M k + 1 V k + 1 T \widetilde{G}_{k+1}=\rho_{1:k+1}I_{d\times d}+V_{k+1}M_{k+1}V_{k+1}^{\mathsf{T}} G k + 1 = ρ 1 : k + 1 I d × d + V k + 1 M k + 1 V k + 1 T . In round k + 1 k+1 k + 1 , since we do not delete the eigenvalues of M k + 1 M_{k+1} M k + 1 , the first τ − 1 \tau-1 τ − 1 columns of V k + 1 V_{k+1} V k + 1 of round k + 1 k+1 k + 1 and V k U k V_kU_k V k U k of round k k k are the same (notably, V k V_k V k is different in rounds k k k and k + 1 k+1 k + 1 ). We have M k + 1 = diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) + ( V k + 1 T g k + 1 ) ( V k + 1 T g k + 1 ) T M_{k+1}=\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_{\tau}^{(k)},0\right\}\right)+(V_{k+1}^{\mathsf{T}}g_{k+1})(V_{k+1}^{\mathsf{T}}g_{k+1})^{\mathsf{T}} M k + 1 = diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) + ( V k + 1 T g k + 1 ) ( V k + 1 T g k + 1 ) T . As we set ρ k + 1 = λ τ ( k ) \rho_{k+1}=\lambda_{\tau}^{(k)} ρ k + 1 = λ τ ( k ) , we can ensure
G ~ k + 1 = ρ 1 : k + 1 I d × d + V k + 1 M k + 1 V k + 1 T = ρ 1 : k + 1 I d × d + V k + 1 ( diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) + V k + 1 T g k + 1 ( V k + 1 T g k + 1 ) T ) V k + 1 T ⪰ ρ 1 : k I d × d + λ τ ( k ) I d × d + V k + 1 diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) V k + 1 T ⪰ ρ 1 : k I d × d + V k U k λ τ ( k ) I d × d U k T V k T + V k U k diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) U k T V k T ⪰ ρ 1 : k I d × d + V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k T = G ~ k , \begin{aligned}
\widetilde{G}_{k+1}
&=\rho_{1:k+1}I_{d\times d}+V_{k+1}M_{k+1}V_{k+1}^{\mathsf{T}}\\
&=\rho_{1:k+1}I_{d\times d}+V_{k+1}\left(\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_{\tau}^{(k)},0\right\}\right)+V_{k+1}^{\mathsf{T}}g_{k+1}(V_{k+1}^{\mathsf{T}}g_{k+1})^{\mathsf{T}}\right)V_{k+1}^{\mathsf{T}}\\
&\succeq\rho_{1:k}I_{d\times d}+\lambda_{\tau}^{(k)}I_{d\times d}+V_{k+1}\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_{\tau}^{(k)},0\right\}\right)V_{k+1}^{\mathsf{T}}\\
&\succeq\rho_{1:k}I_{d\times d}+V_kU_k\lambda_{\tau}^{(k)}I_{d\times d}U_k^{\mathsf{T}}V_k^{\mathsf{T}}\\
&\quad+V_kU_k\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_{\tau}^{(k)},0\right\}\right)U_k^{\mathsf{T}}V_k^{\mathsf{T}}\\
&\succeq\rho_{1:k}I_{d\times d}+V_kU_k\operatorname{diag}\left(\lambda_{[1:2\tau]}^{(k)}\right)U_k^{\mathsf{T}}V_k^{\mathsf{T}}=\widetilde{G}_k,
\end{aligned} G k + 1 = ρ 1 : k + 1 I d × d + V k + 1 M k + 1 V k + 1 T = ρ 1 : k + 1 I d × d + V k + 1 ( diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) + V k + 1 T g k + 1 ( V k + 1 T g k + 1 ) T ) V k + 1 T ⪰ ρ 1 : k I d × d + λ τ ( k ) I d × d + V k + 1 diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) V k + 1 T ⪰ ρ 1 : k I d × d + V k U k λ τ ( k ) I d × d U k T V k T + V k U k diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) U k T V k T ⪰ ρ 1 : k I d × d + V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k T = G k ,
where the second inequality is due to the fact that the τ \tau τ -th to 2 τ 2\tau 2 τ -th columns of the matrix diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) \operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_{\tau}^{(k)},0\right\}\right) diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) are zero and the first τ − 1 \tau-1 τ − 1 columns of V k U k V_kU_k V k U k of round k k k and V k + 1 V_{k+1} V k + 1 of round k + 1 k+1 k + 1 are the same, so we can replace V k + 1 V_{k+1} V k + 1 with V k U k V_kU_k V k U k , and V k V_k V k , U k U_k U k are orthogonal matrices.
Therefore, we can ensure G ~ t \widetilde{G}_t G t is monotone in FTFSL. Using Eq. (9) , we have the following
∑ t = 1 T f t ( x t ) − ∑ t = 1 T f t ( x ∗ ) ≤ 1 η Ψ T ( x ∗ ) ⏟ R D + η 2 ∑ t = 1 T ∥ g t ∥ G ~ t − 1 − 1 / 2 2 ⏟ R G . \sum_{t=1}^{T} f_t(\mathbf{x}_t)-\sum_{t=1}^{T} f_t(\mathbf{x}^{*})\leq\underbrace{\frac{1}{\eta}\Psi_T(\mathbf{x}^{*})}_{R_D}+\underbrace{\frac{\eta}{2}\sum_{t=1}^{T}\|\mathbf{g}_t\|_{\widetilde{G}_{t-1}^{-1/2}}^2}_{R_G}. t = 1 ∑ T f t ( x t ) − t = 1 ∑ T f t ( x ∗ ) ≤ R D η 1 Ψ T ( x ∗ ) + R G 2 η t = 1 ∑ T ∥ g t ∥ G t − 1 − 1/2 2 .
As for the term R D R_D R D , we can derive
R D = 1 η Ψ T ( x ∗ ) = 1 2 η ⟨ x ∗ , G ~ T 1 / 2 x ∗ ⟩ = 1 2 η ⟨ x ∗ , ( V T M T V T ⊤ + ρ 1 : T I d × d ) 1 / 2 x ∗ ⟩ ≤ 1 2 η ⟨ x ∗ , ( V T M T V T ⊤ ) 1 / 2 x ∗ ⟩ + 1 2 η ⟨ x ∗ , ( ρ 1 : T I d × d ) 1 / 2 x ∗ ⟩ ≤ 1 2 η ∥ ( ρ 1 : T I d × d ) 1 / 2 ∥ ∥ x ∗ ∥ 2 + 1 2 η ⟨ x ∗ , ( G T ) 1 / 2 x ∗ ⟩ ≤ 1 2 η D 2 ρ 1 : T + 1 2 η D 2 λ max ( G T 1 / 2 ) ≤ 1 2 η D 2 ρ 1 : T + 1 2 η D 2 tr ( G T 1 / 2 ) , (13) \begin{aligned}
R_D&=\frac{1}{\eta}\Psi_T(\mathbf{x}^{*})=\frac{1}{2\eta}\left\langle\mathbf{x}^{*},\widetilde{G}_T^{1/2}\mathbf{x}^{*}\right\rangle\\
&=\frac{1}{2\eta}\left\langle\mathbf{x}^{*},\left(V_TM_TV_T^{\top}+\rho_{1:T}I_{d\times d}\right)^{1/2}\mathbf{x}^{*}\right\rangle\\
&\leq\frac{1}{2\eta}\left\langle\mathbf{x}^{*},\left(V_TM_TV_T^{\top}\right)^{1/2}\mathbf{x}^{*}\right\rangle+\frac{1}{2\eta}\left\langle\mathbf{x}^{*},\left(\rho_{1:T}I_{d\times d}\right)^{1/2}\mathbf{x}^{*}\right\rangle\\
&\leq\frac{1}{2\eta}\left\|\left(\rho_{1:T}I_{d\times d}\right)^{1/2}\right\|\|\mathbf{x}^{*}\|^2+\frac{1}{2\eta}\left\langle\mathbf{x}^{*},\left(G_T\right)^{1/2}\mathbf{x}^{*}\right\rangle\\
&\leq\frac{1}{2\eta}D^2\sqrt{\rho_{1:T}}+\frac{1}{2\eta}D^2\lambda_{\max}\left(G_T^{1/2}\right)\\
&\leq\frac{1}{2\eta}D^2\sqrt{\rho_{1:T}}+\frac{1}{2\eta}D^2\operatorname{tr}\left(G_T^{1/2}\right), \tag*{(13)}
\end{aligned} R D = η 1 Ψ T ( x ∗ ) = 2 η 1 ⟨ x ∗ , G T 1/2 x ∗ ⟩ = 2 η 1 ⟨ x ∗ , ( V T M T V T ⊤ + ρ 1 : T I d × d ) 1/2 x ∗ ⟩ ≤ 2 η 1 ⟨ x ∗ , ( V T M T V T ⊤ ) 1/2 x ∗ ⟩ + 2 η 1 ⟨ x ∗ , ( ρ 1 : T I d × d ) 1/2 x ∗ ⟩ ≤ 2 η 1 ( ρ 1 : T I d × d ) 1/2 ∥ x ∗ ∥ 2 + 2 η 1 ⟨ x ∗ , ( G T ) 1/2 x ∗ ⟩ ≤ 2 η 1 D 2 ρ 1 : T + 2 η 1 D 2 λ m a x ( G T 1/2 ) ≤ 2 η 1 D 2 ρ 1 : T + 2 η 1 D 2 tr ( G T 1/2 ) , (13)
where the second inequality is due to V T M T V T ⊤ = B T B T ⊤ ⪯ G T V_TM_TV_T^{\top}=B_TB_T^{\top}\preceq G_T V T M T V T ⊤ = B T B T ⊤ ⪯ G T and we assume ∥ x ∗ ∥ ≤ D \|\mathbf{x}^{*}\|\leq D ∥ x ∗ ∥ ≤ D . For the term R G R_G R G , we denote b t = min { ρ 1 : t − 1 ∥ g t ∥ 2 + ρ 1 : t − 1 , 1 } ≤ 1 b_t=\min\left\{\frac{\rho_{1:t-1}}{\|\mathbf{g}_t\|^2+\rho_{1:t-1}},1\right\}\leq1 b t = min { ∥ g t ∥ 2 + ρ 1 : t − 1 ρ 1 : t − 1 , 1 } ≤ 1 , we have
G ~ t − 1 = V t − 1 M t − 1 V t − 1 ⊤ + ρ 1 : t − 1 I d × d ⪰ b t ( ∥ g t ∥ 2 I d × d + ρ 1 : t − 1 I d × d + B t − 1 B t − 1 ⊤ ) ⪰ b t ( ∥ g t ∥ 2 I d × d + G t − 1 ) ⪰ b t G t . \begin{aligned}
\widetilde{G}_{t-1}&=V_{t-1}M_{t-1}V_{t-1}^{\top}+\rho_{1:t-1}I_{d\times d}\\
&\succeq b_t\left(\|\mathbf{g}_t\|^2I_{d\times d}+\rho_{1:t-1}I_{d\times d}+B_{t-1}B_{t-1}^{\top}\right)\\
&\succeq b_t\left(\|\mathbf{g}_t\|^2I_{d\times d}+G_{t-1}\right)\succeq b_tG_t.
\end{aligned} G t − 1 = V t − 1 M t − 1 V t − 1 ⊤ + ρ 1 : t − 1 I d × d ⪰ b t ( ∥ g t ∥ 2 I d × d + ρ 1 : t − 1 I d × d + B t − 1 B t − 1 ⊤ ) ⪰ b t ( ∥ g t ∥ 2 I d × d + G t − 1 ) ⪰ b t G t .
Then, letting C 2 = max t ∈ [ T ] 1 b t C_2=\max_{t\in[T]}\frac{1}{\sqrt{b_t}} C 2 = max t ∈ [ T ] b t 1 , we have
∑ t = 1 T ∥ g t ∥ G ~ t − 1 − 1 / 2 2 = ∑ t = 1 T ⟨ g t , ( G ~ t − 1 1 / 2 ) − 1 g t ⟩ ≤ ∑ t = 1 T 1 b t ⟨ g t , ( G t 1 / 2 ) − 1 g t ⟩ ≤ C 2 ∑ t = 1 T ⟨ g t , ( G t 1 / 2 ) − 1 g t ⟩ ≤ 2 C 2 tr ( G T 1 / 2 ) , \begin{aligned}
\sum_{t=1}^{T}\|\mathbf{g}_t\|_{\widetilde{G}_{t-1}^{-1/2}}^2
&=\sum_{t=1}^{T}\left\langle\mathbf{g}_t,\left(\widetilde{G}_{t-1}^{1/2}\right)^{-1}\mathbf{g}_t\right\rangle\\
&\leq\sum_{t=1}^{T}\frac{1}{\sqrt{b_t}}\left\langle\mathbf{g}_t,\left(G_t^{1/2}\right)^{-1}\mathbf{g}_t\right\rangle\\
&\leq C_2\sum_{t=1}^{T}\left\langle\mathbf{g}_t,\left(G_t^{1/2}\right)^{-1}\mathbf{g}_t\right\rangle\leq2C_2\operatorname{tr}\left(G_T^{1/2}\right),
\end{aligned} t = 1 ∑ T ∥ g t ∥ G t − 1 − 1/2 2 = t = 1 ∑ T ⟨ g t , ( G t − 1 1/2 ) − 1 g t ⟩ ≤ t = 1 ∑ T b t 1 ⟨ g t , ( G t 1/2 ) − 1 g t ⟩ ≤ C 2 t = 1 ∑ T ⟨ g t , ( G t 1/2 ) − 1 g t ⟩ ≤ 2 C 2 tr ( G T 1/2 ) ,
where the last inequality is due to Lemma 12 . Therefore, we have
R G = η 2 ∑ t = 1 T ∥ g t ∥ G ~ t − 1 − 1 / 2 2 ≤ η C 2 tr ( G T 1 / 2 ) . (14) R_G=\frac{\eta}{2}\sum_{t=1}^{T}\|\mathbf{g}_t\|_{\widetilde{G}_{t-1}^{-1/2}}^2\leq\eta C_2\operatorname{tr}\left(G_T^{1/2}\right). \tag*{(14)} R G = 2 η t = 1 ∑ T ∥ g t ∥ G t − 1 − 1/2 2 ≤ η C 2 tr ( G T 1/2 ) . (14)
By combining (13) and (14) , and setting η = D 2 \eta=\frac{D}{\sqrt{2}} η = 2 D , we can derive Theorem 2.
R ( T ) ≤ R D + R G ≤ 1 2 η D 2 ρ 1 : T + 1 2 η D 2 tr ( G T 1 / 2 ) + η C 2 tr ( G T 1 / 2 ) ≤ O ( D ( tr ( G T 1 / 2 ) + ρ 1 : T ) ) . R(T) \le R_D + R_G
\le\frac{1}{2\eta}D^2\sqrt{\rho_{1:T}}+\frac{1}{2\eta}D^2\operatorname{tr}\left(G_T^{1/2}\right)+\eta C_2\operatorname{tr}\left(G_T^{1/2}\right)
\le O\left(D\left(\operatorname{tr}\left(G_T^{1/2}\right)+\sqrt{\rho_{1:T}}\right)\right). R ( T ) ≤ R D + R G ≤ 2 η 1 D 2 ρ 1 : T + 2 η 1 D 2 tr ( G T 1/2 ) + η C 2 tr ( G T 1/2 ) ≤ O ( D ( tr ( G T 1/2 ) + ρ 1 : T ) ) .
Proof of Theorem 3
According to the proof of Theorem 2, we have the following properties in FFD:
V t M t 1 / 2 = B t , V_tM_t^{1/2}=B_t, V t M t 1/2 = B t ,
V t U t Σ t U t T V t T ⪯ G t ⪯ G ~ t . V_tU_t\Sigma_tU_t^{\mathsf{T}}V_t^{\mathsf{T}}\preceq G_t\preceq\widetilde{G}_t. V t U t Σ t U t T V t T ⪯ G t ⪯ G t .
Similar to the proof of Theorem 3 in Feinberg et al. [19 ] , we have the following lemma:
Lemma 14 Let { x t } \{\mathbf{x}_t\} { x t } be the decisions of Fast S-ADA and x ∗ ∈ arg min x ∈ R d ∑ t = 1 T f t ( x ) \mathbf{x}^* \in\arg\min_{\mathbf{x}\in\mathbb{R}^d}\sum_{t=1}^{T}f_t(\mathbf{x}) x ∗ ∈ arg min x ∈ R d ∑ t = 1 T f t ( x ) . Then the regret bound of Fast S-ADA is
R ( T ) ≤ 1 2 η ∑ t = 1 T ∥ x t − x ∗ ∥ G ~ t 1 / 2 − G ~ t − 1 1 / 2 2 + η 2 ∑ t = 1 T ∥ g t ∥ G ~ t − 1 / 2 2 . R(T)\le\frac{1}{2\eta}\sum_{t=1}^{T}\left\|\mathbf{x}_t-\mathbf{x}^*\right\|_{\widetilde{G}_t^{1/2}-\widetilde{G}_{t-1}^{1/2}}^2+\frac{\eta}{2}\sum_{t=1}^{T}\left\|\mathbf{g}_t\right\|_{\widetilde{G}_t^{-1/2}}^2. R ( T ) ≤ 2 η 1 t = 1 ∑ T ∥ x t − x ∗ ∥ G t 1/2 − G t − 1 1/2 2 + 2 η t = 1 ∑ T ∥ g t ∥ G t − 1/2 2 .
According to Lemma 14 , we have
R ( T ) ≤ 1 2 η ∑ t = 1 T ∥ x t − x ∗ ∥ G ~ t 1 / 2 − G ~ t − 1 1 / 2 2 + η 2 ∑ t = 1 T ∥ g t ∥ G ~ t − 1 / 2 2 . R(T)\le\frac{1}{2\eta}\sum_{t=1}^{T}\left\|\mathbf{x}_t-\mathbf{x}^*\right\|_{\widetilde{G}_t^{1/2}-\widetilde{G}_{t-1}^{1/2}}^2+\frac{\eta}{2}\sum_{t=1}^{T}\left\|\mathbf{g}_t\right\|_{\widetilde{G}_t^{-1/2}}^2. R ( T ) ≤ 2 η 1 t = 1 ∑ T ∥ x t − x ∗ ∥ G t 1/2 − G t − 1 1/2 2 + 2 η t = 1 ∑ T ∥ g t ∥ G t − 1/2 2 .
We first bound the term η 2 ∑ t = 1 T ∥ g t ∥ G ~ t − 1 / 2 2 \frac{\eta}{2}\sum_{t=1}^{T}\left\|\mathbf{g}_t\right\|_{\widetilde{G}_t^{-1/2}}^2 2 η ∑ t = 1 T ∥ g t ∥ G t − 1/2 2 , which is easier to bound than that in FTFSL, as we can directly apply a lemma to it.
∑ t = 1 T ∥ g t ∥ G ~ t − 1 / 2 2 = ∑ t = 1 T ⟨ g t , ( G ~ t 1 / 2 ) − 1 g t ⟩ ≤ ∑ t = 1 T ⟨ g t , ( G t 1 / 2 ) − 1 g t ⟩ \begin{aligned}
\sum_{t=1}^{T}\left\|\mathbf{g}_t\right\|_{\widetilde{G}_t^{-1/2}}^2=\sum_{t=1}^{T}\left\langle\mathbf{g}_t,\left(\widetilde{G}_t^{1/2}\right)^{-1}\mathbf{g}_t\right\rangle\\
&\le\sum_{t=1}^{T}\left\langle\mathbf{g}_t,\left(G_t^{1/2}\right)^{-1}\mathbf{g}_t\right\rangle
\end{aligned} t = 1 ∑ T ∥ g t ∥ G t − 1/2 2 = t = 1 ∑ T ⟨ g t , ( G t 1/2 ) − 1 g t ⟩ ≤ t = 1 ∑ T ⟨ g t , ( G t 1/2 ) − 1 g t ⟩
≤ 2 tr ( G T 1 / 2 ) , \le2\operatorname{tr}\left(G_T^{1/2}\right), ≤ 2 tr ( G T 1/2 ) ,
where the first inequality is due to G ~ t − 1 ⪯ G t − 1 \widetilde{G}_t^{-1}\preceq G_t^{-1} G t − 1 ⪯ G t − 1 and the last inequality is due to Lemma 12 .
Next, we bound the term 1 2 η ∑ t = 1 T ∥ x t − x ∗ ∥ G ~ t 1 / 2 − G ~ t − 1 1 / 2 2 \frac{1}{2\eta}\sum_{t=1}^{T}\left\|\mathbf{x}_t-\mathbf{x}^*\right\|_{\widetilde{G}_t^{1/2}-\widetilde{G}_{t-1}^{1/2}}^2 2 η 1 ∑ t = 1 T ∥ x t − x ∗ ∥ G t 1/2 − G t − 1 1/2 2 , which introduces the dependence on dimensionality d d d . We have
1 2 η ∑ t = 1 T ∥ x t − x ∗ ∥ G ~ t 1 / 2 − G ~ t − 1 1 / 2 2 ≤ D 1 2 2 η tr ( G ~ T 1 / 2 ) , \frac{1}{2\eta}\sum_{t=1}^{T}\left\|\mathbf{x}_t-\mathbf{x}^*\right\|_{\widetilde{G}_t^{1/2}-\widetilde{G}_{t-1}^{1/2}}^2\le\frac{D_1^2}{2\eta}\operatorname{tr}\left(\widetilde{G}_T^{1/2}\right), 2 η 1 t = 1 ∑ T ∥ x t − x ∗ ∥ G t 1/2 − G t − 1 1/2 2 ≤ 2 η D 1 2 tr ( G T 1/2 ) ,
where this inequality is due to monotonicity of G ~ t \widetilde{G}_t G t and D 1 = max t ∈ [ T ] ∥ x t − x ∗ ∥ D_1=\max_{t\in[T]}\left\|\mathbf{x}_t-\mathbf{x}^*\right\| D 1 = max t ∈ [ T ] ∥ x t − x ∗ ∥ . Then we need to bound the term tr ( G ~ T 1 / 2 ) \operatorname{tr}\left(\widetilde{G}_T^{1/2}\right) tr ( G T 1/2 ) .
Assume that we delete the eigenvalues of M k M_k M k at round k k k . In round k k k , before we update V k V_k V k , V k = V k − 1 V_k = V_{k-1} V k = V k − 1 and we use V k V_k V k to represent the matrix before we delete its columns.
As we perform SVD on V k M k 1 / 2 ∈ R d × 2 τ V_kM_k^{1/2} \in\mathbb{R}^{d \times2\tau} V k M k 1/2 ∈ R d × 2 τ , we denote by V k 1 : τ ∈ R d × τ V_k^{1:\tau} \in\mathbb{R}^{d \times\tau} V k 1 : τ ∈ R d × τ the first τ \tau τ columns of V k U k V_kU_k V k U k before we set the last τ + 1 \tau+1 τ + 1 columns to 0 d \mathbf{0}_d 0 d , and by N k ∈ R d × ( d − τ ) N_k \in\mathbb{R}^{d \times(d-\tau)} N k ∈ R d × ( d − τ ) the complementary subspace of V k 1 : τ V_k^{1:\tau} V k 1 : τ . Note that the first τ − 1 \tau-1 τ − 1 columns of V k + 1 V_{k+1} V k + 1 and V k 1 : τ V_k^{1:\tau} V k 1 : τ are the same, ρ k + 1 = λ τ ( k ) \rho_{k+1} = \lambda_\tau^{(k)} ρ k + 1 = λ τ ( k ) , and [ V k 1 : τ ; N k ] [ V k 1 : τ ; N k ] T = I d × d \left[V_k^{1:\tau};N_k\right]\left[V_k^{1:\tau};N_k\right]^{\mathsf{T}} = I_{d \times d} [ V k 1 : τ ; N k ] [ V k 1 : τ ; N k ] T = I d × d .
In round k + 1 k+1 k + 1 , we have
G ~ k + 1 = V k + 1 ( diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) + V k + 1 T g k + 1 ( V k + 1 T g k + 1 ) T ) V k + 1 T + ρ 1 : k + 1 I d × d , \widetilde{G}_{k+1}=V_{k+1}\left(\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_\tau^{(k)},0\right\}\right)+V_{k+1}^{\mathsf{T}}g_{k+1}\left(V_{k+1}^{\mathsf{T}}g_{k+1}\right)^{\mathsf{T}}\right)V_{k+1}^{\mathsf{T}}+\rho_{1:k+1}I_{d \times d}, G k + 1 = V k + 1 ( diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) + V k + 1 T g k + 1 ( V k + 1 T g k + 1 ) T ) V k + 1 T + ρ 1 : k + 1 I d × d ,
and we can derive
V k + 1 ( diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) + V k + 1 T g k + 1 ( V k + 1 T g k + 1 ) T ) V k + 1 T + ρ k + 1 I d × d = V k + 1 diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) V k + 1 T + λ τ ( k ) I d × d + g k + 1 g k + 1 T = V k U k diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) U k T V k T + λ τ ( k ) ( V k 1 : τ ( V k 1 : τ ) T + N k N k T ) + g k + 1 g k + 1 T ⪯ V k U k diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) U k T V k T + λ τ ( k ) ( V k U k ( V k U k ) T + N k N k T ) + g k + 1 g k + 1 T ⪯ V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k T + λ τ ( k ) N k N k T + g k + 1 g k + 1 T = λ τ ( k ) N k N k T + V k M k V k T + g k + 1 g k + 1 T = ρ k + 1 N k N k T + V k M k V k T + g k + 1 g k + 1 T , \begin{aligned}
&V_{k+1}\left(\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_\tau^{(k)},0\right\}\right)+V_{k+1}^{\mathsf{T}}g_{k+1}\left(V_{k+1}^{\mathsf{T}}g_{k+1}\right)^{\mathsf{T}}\right)V_{k+1}^{\mathsf{T}}+\rho_{k+1}I_{d \times d}\\
&=V_{k+1}\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_\tau^{(k)},0\right\}\right)V_{k+1}^{\mathsf{T}}+\lambda_\tau^{(k)}I_{d \times d}+g_{k+1}g_{k+1}^{\mathsf{T}}\\
&=V_kU_k\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_\tau^{(k)},0\right\}\right)U_k^{\mathsf{T}}V_k^{\mathsf{T}}+\lambda_\tau^{(k)}\left(V_k^{1:\tau}(V_k^{1:\tau})^{\mathsf{T}}+N_kN_k^{\mathsf{T}}\right)+g_{k+1}g_{k+1}^{\mathsf{T}}\\
&\preceq V_kU_k\operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_\tau^{(k)},0\right\}\right)U_k^{\mathsf{T}}V_k^{\mathsf{T}}+\lambda_\tau^{(k)}\left(V_kU_k(V_kU_k)^{\mathsf{T}}+N_kN_k^{\mathsf{T}}\right)+g_{k+1}g_{k+1}^{\mathsf{T}}\\
&\preceq V_kU_k\operatorname{diag}\left(\lambda_{[1:2\tau]}^{(k)}\right)U_k^{\mathsf{T}}V_k^{\mathsf{T}}+\lambda_\tau^{(k)}N_kN_k^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}\\
&=\lambda_\tau^{(k)}N_kN_k^{\mathsf{T}}+V_kM_kV_k^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}\\
&=\rho_{k+1}N_kN_k^{\mathsf{T}}+V_kM_kV_k^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}},
\end{aligned} V k + 1 ( diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) + V k + 1 T g k + 1 ( V k + 1 T g k + 1 ) T ) V k + 1 T + ρ k + 1 I d × d = V k + 1 diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) V k + 1 T + λ τ ( k ) I d × d + g k + 1 g k + 1 T = V k U k diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) U k T V k T + λ τ ( k ) ( V k 1 : τ ( V k 1 : τ ) T + N k N k T ) + g k + 1 g k + 1 T ⪯ V k U k diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) U k T V k T + λ τ ( k ) ( V k U k ( V k U k ) T + N k N k T ) + g k + 1 g k + 1 T ⪯ V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k T + λ τ ( k ) N k N k T + g k + 1 g k + 1 T = λ τ ( k ) N k N k T + V k M k V k T + g k + 1 g k + 1 T = ρ k + 1 N k N k T + V k M k V k T + g k + 1 g k + 1 T ,
where the second equality is due to the fact that only the first τ − 1 \tau-1 τ − 1 columns of the matrix diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) \operatorname{diag}\left(\max\left\{\lambda_{[1:2\tau]}^{(k)}-\lambda_\tau^{(k)},0\right\}\right) diag ( max { λ [ 1 : 2 τ ] ( k ) − λ τ ( k ) , 0 } ) are non-zero and the first τ − 1 \tau-1 τ − 1 columns of V k + 1 V_{k+1} V k + 1 and V k U k V_kU_k V k U k are the same, and the first inequality is due to the fact that V k 1 : τ V_k^{1:\tau} V k 1 : τ contains at most τ \tau τ orthonormal vectors.
If we do not delete the eigenvalues of M k M_k M k in round k k k , we have ρ k + 1 = 0 \rho_{k+1}=0 ρ k + 1 = 0 and can derive
V k + 1 M k + 1 V k + 1 T + ρ k + 1 I d × d = V k + 1 ( M k + V k + 1 T g k + 1 ( V k + 1 T g k + 1 ) T ) V k + 1 T = V k + 1 M k V k + 1 T + g k + 1 g k + 1 T = 0 N k N k T + V k + 1 M k V k + 1 T + g k + 1 g k + 1 T = ρ k + 1 N k N k T + V k + 1 U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k + 1 T + g k + 1 g k + 1 T . \begin{aligned}
V_{k+1}M_{k+1}V_{k+1}^{\mathsf{T}}+\rho_{k+1}I_{d \times d}
&=V_{k+1}\left(M_k+V_{k+1}^{\mathsf{T}}g_{k+1}\left(V_{k+1}^{\mathsf{T}}g_{k+1}\right)^{\mathsf{T}}\right)V_{k+1}^{\mathsf{T}}\\
&=V_{k+1}M_kV_{k+1}^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}\\
&=0N_kN_k^{\mathsf{T}}+V_{k+1}M_kV_{k+1}^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}\\
&=\rho_{k+1}N_kN_k^{\mathsf{T}}+V_{k+1}U_k\operatorname{diag}\left(\lambda_{[1:2\tau]}^{(k)}\right)U_k^{\mathsf{T}}V_{k+1}^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}.
\end{aligned} V k + 1 M k + 1 V k + 1 T + ρ k + 1 I d × d = V k + 1 ( M k + V k + 1 T g k + 1 ( V k + 1 T g k + 1 ) T ) V k + 1 T = V k + 1 M k V k + 1 T + g k + 1 g k + 1 T = 0 N k N k T + V k + 1 M k V k + 1 T + g k + 1 g k + 1 T = ρ k + 1 N k N k T + V k + 1 U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k + 1 T + g k + 1 g k + 1 T .
Assume there are at most ℓ \ell ℓ eigenvalues in M k M_k M k , ℓ ≤ 2 τ − 1 \ell\le2\tau-1 ℓ ≤ 2 τ − 1 . Therefore, there are at most ℓ + 1 \ell+1 ℓ + 1 non-zero columns in V k + 1 V_{k+1} V k + 1 and at most ℓ \ell ℓ non-zero columns in V k V_k V k , and the first ℓ \ell ℓ columns of V k + 1 V_{k+1} V k + 1 and V k V_k V k are the same. We have the following
V k + 1 M k + 1 V k + 1 T + ρ k + 1 I d × d = 0 N k N k T + V k + 1 U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k + 1 T + g k + 1 g k + 1 T = 0 N k N k T + V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k T + g k + 1 g k + 1 T = ρ k + 1 N k N k T + V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k T + g k + 1 g k + 1 T = ρ k + 1 N k N k T + V k M k V k T + g k + 1 g k + 1 T , (15) \begin{aligned}
V_{k+1}M_{k+1}V_{k+1}^{\mathsf{T}}+\rho_{k+1}I_{d \times d}
&=0N_kN_k^{\mathsf{T}}+V_{k+1}U_k\operatorname{diag}\left(\lambda_{[1:2\tau]}^{(k)}\right)U_k^{\mathsf{T}}V_{k+1}^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}\\
&=0N_kN_k^{\mathsf{T}}+V_kU_k\operatorname{diag}\left(\lambda_{[1:2\tau]}^{(k)}\right)U_k^{\mathsf{T}}V_k^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}\\
&=\rho_{k+1}N_kN_k^{\mathsf{T}}+V_kU_k\operatorname{diag}\left(\lambda_{[1:2\tau]}^{(k)}\right)U_k^{\mathsf{T}}V_k^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}\\
&=\rho_{k+1}N_kN_k^{\mathsf{T}}+V_kM_kV_k^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}, \tag*{(15)}
\end{aligned} V k + 1 M k + 1 V k + 1 T + ρ k + 1 I d × d = 0 N k N k T + V k + 1 U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k + 1 T + g k + 1 g k + 1 T = 0 N k N k T + V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k T + g k + 1 g k + 1 T = ρ k + 1 N k N k T + V k U k diag ( λ [ 1 : 2 τ ] ( k ) ) U k T V k T + g k + 1 g k + 1 T = ρ k + 1 N k N k T + V k M k V k T + g k + 1 g k + 1 T , (15)
where the second equality is due to the fact that there are at most ℓ \ell ℓ non-zero elements in λ [ 1 : 2 τ ] ( k ) \lambda_{[1:2\tau]}^{(k)} λ [ 1 : 2 τ ] ( k ) and the first ℓ \ell ℓ columns of V k V_k V k and V k + 1 V_{k+1} V k + 1 are the same, and the third equality is due to ρ k + 1 = 0 \rho_{k+1}=0 ρ k + 1 = 0 .
Therefore, we have
V k + 1 M k + 1 V k + 1 T + ρ k + 1 I d × d ⪯ ρ k + 1 N k N k T + V k M k V k T + g k + 1 g k + 1 T . V_{k+1}M_{k+1}V_{k+1}^{\mathsf{T}}+\rho_{k+1}I_{d\times d}\preceq\rho_{k+1}N_kN_k^{\mathsf{T}}+V_kM_kV_k^{\mathsf{T}}+g_{k+1}g_{k+1}^{\mathsf{T}}. V k + 1 M k + 1 V k + 1 T + ρ k + 1 I d × d ⪯ ρ k + 1 N k N k T + V k M k V k T + g k + 1 g k + 1 T .
By induction, we have
G ~ T = V T M T V T T + ρ 1 : T I d × d ⪯ ρ 1 : T − 1 I d × d + V T − 1 M T − 1 V T − 1 T + ρ T N T N T T + g T g T T … ⪯ ∑ t = 1 T ρ t N t N t T + ∑ t = 1 T g t g t T = ∑ t = 1 T ρ t N t N t T + G T . \begin{aligned}
\widetilde{G}_T &= V_TM_TV_T^{\mathsf{T}}+\rho_{1:T}I_{d\times d}\\
&\preceq\rho_{1:T-1}I_{d\times d}+V_{T-1}M_{T-1}V_{T-1}^{\mathsf{T}}+\rho_TN_TN_T^{\mathsf{T}}+g_Tg_T^{\mathsf{T}}\\
&\ldots\\
&\preceq\sum_{t=1}^{T}\rho_tN_tN_t^{\mathsf{T}}+\sum_{t=1}^{T}g_tg_t^{\mathsf{T}}=\sum_{t=1}^{T}\rho_tN_tN_t^{\mathsf{T}}+G_T.
\end{aligned} G T = V T M T V T T + ρ 1 : T I d × d ⪯ ρ 1 : T − 1 I d × d + V T − 1 M T − 1 V T − 1 T + ρ T N T N T T + g T g T T … ⪯ t = 1 ∑ T ρ t N t N t T + t = 1 ∑ T g t g t T = t = 1 ∑ T ρ t N t N t T + G T .
Then we can rewrite the bound of tr ( G ~ T 1 / 2 ) \operatorname{tr}(\widetilde{G}_T^{1/2}) tr ( G T 1/2 ) as tr ( G T 1 / 2 ) + tr ( ( ∑ t = 1 T ρ t N t N t T ) 1 / 2 ) \operatorname{tr}(G_T^{1/2})+\operatorname{tr}((\sum_{t=1}^{T}\rho_tN_tN_t^{\mathsf{T}})^{1/2}) tr ( G T 1/2 ) + tr (( ∑ t = 1 T ρ t N t N t T ) 1/2 ) . We just need to bound tr ( ( ∑ t = 1 T ρ t N t N t T ) 1 / 2 ) \operatorname{tr}((\sum_{t=1}^{T}\rho_tN_tN_t^{\mathsf{T}})^{1/2}) tr (( ∑ t = 1 T ρ t N t N t T ) 1/2 ) . According to Corollary 4 in Feinberg et al. [19 ] , the upper bound of this term is
tr ( ( ∑ t = 1 T ρ t N t N t T ) 1 / 2 ) ≤ d ( d − τ ) ρ 1 : T . \operatorname{tr}\left(\left(\sum_{t=1}^{T}\rho_tN_tN_t^{\mathsf{T}}\right)^{1/2}\right)\leq\sqrt{d(d-\tau)\rho_{1:T}}. tr ( t = 1 ∑ T ρ t N t N t T ) 1/2 ≤ d ( d − τ ) ρ 1 : T .
Then we can derive the bound of tr ( G ~ T 1 / 2 ) \operatorname{tr}(\widetilde{G}_T^{1/2}) tr ( G T 1/2 ) .
tr ( G ~ T 1 / 2 ) ≤ tr ( G T 1 / 2 ) + tr ( ( ∑ t = 1 T ρ t N t N t T ) 1 / 2 ) ≤ tr ( G T 1 / 2 ) + d ( d − τ ) ρ 1 : T . \begin{aligned}
\operatorname{tr}(\widetilde{G}_T^{1/2})&\leq\operatorname{tr}(G_T^{1/2})+\operatorname{tr}\left(\left(\sum_{t=1}^{T}\rho_tN_tN_t^{\mathsf{T}}\right)^{1/2}\right)\\
&\leq\operatorname{tr}(G_T^{1/2})+\sqrt{d(d-\tau)\rho_{1:T}}.
\end{aligned} tr ( G T 1/2 ) ≤ tr ( G T 1/2 ) + tr ( t = 1 ∑ T ρ t N t N t T ) 1/2 ≤ tr ( G T 1/2 ) + d ( d − τ ) ρ 1 : T .
By setting η = D 1 2 \eta=\frac{D_1}{\sqrt{2}} η = 2 D 1 , we have
R ( T ) = ∑ t = 1 T f t ( x t ) − ∑ t = 1 T f t ( x ∗ ) ≤ 1 2 η ∑ t = 1 T ∥ x t − x ∗ ∥ G ~ t 1 / 2 − G ~ t − 1 1 / 2 2 + η 2 ∑ t = 1 T ∥ g t ∥ G ~ t − 1 / 2 2 ≤ D 1 2 2 η ( tr ( G T 1 / 2 ) + d ( d − τ ) ρ 1 : T ) + η tr ( G T 1 / 2 ) ≤ O ( D 1 ( tr ( G T 1 / 2 ) + d ( d − τ ) ρ 1 : T ) ) . \begin{aligned}
R(T)&=\sum_{t=1}^{T}f_t(x_t)-\sum_{t=1}^{T}f_t(x^*)\\
&\leq\frac{1}{2\eta}\sum_{t=1}^{T}\lVert x_t-x^*\rVert_{\widetilde{G}_t^{1/2}-\widetilde{G}_{t-1}^{1/2}}^2+\frac{\eta}{2}\sum_{t=1}^{T}\lVert g_t\rVert_{\widetilde{G}_t^{-1/2}}^2\\
&\leq\frac{D_1^2}{2\eta}\left(\operatorname{tr}(G_T^{1/2})+\sqrt{d(d-\tau)\rho_{1:T}}\right)+\eta\operatorname{tr}(G_T^{1/2})\\
&\leq O\left(D_1\left(\operatorname{tr}(G_T^{1/2})+\sqrt{d(d-\tau)\rho_{1:T}}\right)\right).
\end{aligned} R ( T ) = t = 1 ∑ T f t ( x t ) − t = 1 ∑ T f t ( x ∗ ) ≤ 2 η 1 t = 1 ∑ T ∥ x t − x ∗ ∥ G t 1/2 − G t − 1 1/2 2 + 2 η t = 1 ∑ T ∥ g t ∥ G t − 1/2 2 ≤ 2 η D 1 2 ( tr ( G T 1/2 ) + d ( d − τ ) ρ 1 : T ) + η tr ( G T 1/2 ) ≤ O ( D 1 ( tr ( G T 1/2 ) + d ( d − τ ) ρ 1 : T ) ) .
Proof of Theorem 5
Before deriving Theorem 5 , we introduce two useful lemmas.
Lemma 15 ([5 Lemma 4] ) For a symmetric positive semidefinite matrix X ∈ R n × n X \in\mathbb{R}^{n \times n} X ∈ R n × n , it holds that
tr ( X 1 / 2 ) ≤ ∑ j = 1 n [ X ] j , j . \operatorname{tr}(X^{1/2}) \le\sum_{j=1}^{n} \sqrt{[X]_{j,j}}. tr ( X 1/2 ) ≤ j = 1 ∑ n [ X ] j , j .
Lemma 16 ([42 Lemma G.5] ) For a non-negative sequence { a j } j = 1 n \{a_j\}_{j=1}^{n} { a j } j = 1 n and a positive sequence { b j } j = 1 n \{b_j\}_{j=1}^{n} { b j } j = 1 n with B = ∑ j = 1 n b j B = \sum_{j=1}^{n} b_j B = ∑ j = 1 n b j , it holds that
1 B ∑ j = 1 n a j ≤ 1 B ∑ j = 1 n a j 2 b j . \frac{1}{B}\sum_{j=1}^{n} a_j \le\sqrt{\frac{1}{B}\sum_{j=1}^{n}\frac{a_j^2}{b_j}}. B 1 j = 1 ∑ n a j ≤ B 1 j = 1 ∑ n b j a j 2 .
Primal-dual framework. We first present the proof under the primal-dual framework. Based on Theorem 4, we have
1 T ∑ t = 1 T E [ f ( x t ) − f ( x ∗ ) ] ≤ 2 D T ( C 2 tr ( G T 1 / 2 ) + ρ 1 : T ) ≤ 2 D T ( C 2 tr ( ( ∑ t = 1 T g t g t T ) 1 / 2 ) + ρ 1 : T ) ≤ 2 D T ( C 2 tr ( ( ∑ t = 1 T 2 ∇ f ( x t ) ∇ f ( x t ) T + 2 n t n t T ) 1 / 2 ) + ρ 1 : T ) ≤ 2 D T ( C 2 tr ( ( ∑ t = 1 T 2 ∇ f ( x t ) ∇ f ( x t ) T ) 1 / 2 ) + C 2 tr ( ( ∑ t = 1 T 2 n t n t T ) 1 / 2 ) + ρ 1 : T ) . (16) \begin{aligned}
\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(x_t)-f(x^*)\right]
&\le\frac{\sqrt{2}D}{T}\left(C_2\operatorname{tr}(G_T^{1/2})+\sqrt{\rho_{1:T}}\right) \\
&\le\frac{\sqrt{2}D}{T}\left(C_2\operatorname{tr}\left(\left(\sum_{t=1}^{T}\mathbf{g}_t\mathbf{g}_t^{\mathsf T}\right)^{1/2}\right)+\sqrt{\rho_{1:T}}\right) \\
&\le\frac{\sqrt{2}D}{T}\left(C_2\operatorname{tr}\left(\left(\sum_{t=1}^{T}2\nabla f(x_t)\nabla f(x_t)^{\mathsf T}+2n_tn_t^{\mathsf T}\right)^{1/2}\right)+\sqrt{\rho_{1:T}}\right) \\
&\le\frac{\sqrt{2}D}{T}\left(C_2\operatorname{tr}\left(\left(\sum_{t=1}^{T}2\nabla f(x_t)\nabla f(x_t)^{\mathsf T}\right)^{1/2}\right)\right. \\
&\qquad\left.+C_2\operatorname{tr}\left(\left(\sum_{t=1}^{T}2n_tn_t^{\mathsf T}\right)^{1/2}\right)+\sqrt{\rho_{1:T}}\right). \tag*{(16)}
\end{aligned} T 1 t = 1 ∑ T E [ f ( x t ) − f ( x ∗ ) ] ≤ T 2 D ( C 2 tr ( G T 1/2 ) + ρ 1 : T ) ≤ T 2 D C 2 tr ( t = 1 ∑ T g t g t T ) 1/2 + ρ 1 : T ≤ T 2 D C 2 tr ( t = 1 ∑ T 2∇ f ( x t ) ∇ f ( x t ) T + 2 n t n t T ) 1/2 + ρ 1 : T ≤ T 2 D C 2 tr ( t = 1 ∑ T 2∇ f ( x t ) ∇ f ( x t ) T ) 1/2 + C 2 tr ( t = 1 ∑ T 2 n t n t T ) 1/2 + ρ 1 : T . (16)
Then we bound each term one by one. As for the first term, we use the smooth assumption and obtain
tr ( ( ∑ t = 1 T 2 ∇ f ( x t ) ∇ f ( x t ) T ) 1 / 2 ) ≤ 2 ∑ j = 1 d ∑ t = 1 T [ ∇ f ( x t ) ] j 2 ≤ 2 ( ∑ j = 1 d L j ) ( ∑ j = 1 d ∑ t = 1 T [ ∇ f ( x t ) ] j 2 / L j ) ≤ 2 tr ( L ) ( ∑ t = 1 T ∑ j = 1 d [ ∇ f ( x t ) ] j 2 / L j ) ≤ 2 tr ( L ) ( ∑ t = 1 T ∥ ∇ f ( x t ) ∥ L − 1 2 ) ≤ 2 tr ( L ) ∑ t = 1 T ( f ( x t ) − f ( x ∗ ) ) , (17) \begin{aligned}
\operatorname{tr}\left(\left(\sum_{t=1}^{T}2\nabla f(\mathbf{x}_t)\nabla f(\mathbf{x}_t)^{\mathsf{T}}\right)^{1/2}\right)
&\le\sqrt{2}\sum_{j=1}^{d}\sqrt{\sum_{t=1}^{T}[\nabla f(\mathbf{x}_t)]_{j}^{2}} \\
&\le\sqrt{2}\sqrt{\left(\sum_{j=1}^{d}L_j\right)\left(\sum_{j=1}^{d}\sum_{t=1}^{T}[\nabla f(\mathbf{x}_t)]_{j}^{2}/L_j\right)} \\
&\le\sqrt{2}\sqrt{\operatorname{tr}(\mathbf{L})\left(\sum_{t=1}^{T}\sum_{j=1}^{d}[\nabla f(\mathbf{x}_t)]_{j}^{2}/L_j\right)} \\
&\le\sqrt{2}\sqrt{\operatorname{tr}(\mathbf{L})\left(\sum_{t=1}^{T}\lVert\nabla f(\mathbf{x}_t)\rVert_{\mathbf{L}^{-1}}^{2}\right)} \\
&\le2\sqrt{\operatorname{tr}(\mathbf{L})\sum_{t=1}^{T}\left(f(\mathbf{x}_t)-f(\mathbf{x}^{*})\right)} , \tag*{(17)}
\end{aligned} tr ( t = 1 ∑ T 2∇ f ( x t ) ∇ f ( x t ) T ) 1/2 ≤ 2 j = 1 ∑ d t = 1 ∑ T [ ∇ f ( x t ) ] j 2 ≤ 2 ( j = 1 ∑ d L j ) ( j = 1 ∑ d t = 1 ∑ T [ ∇ f ( x t ) ] j 2 / L j ) ≤ 2 tr ( L ) ( t = 1 ∑ T j = 1 ∑ d [ ∇ f ( x t ) ] j 2 / L j ) ≤ 2 tr ( L ) ( t = 1 ∑ T ∥ ∇ f ( x t ) ∥ L − 1 2 ) ≤ 2 tr ( L ) t = 1 ∑ T ( f ( x t ) − f ( x ∗ ) ) , (17)
where the first inequality is due to Lemma 15, the second inequality is due to Lemma 16 and the last inequality is based on the properties of smoothness Nesterov, [49 ] .
As for the stochastic noise term, we introduce a lemma.
Lemma 17 Under Assumption 3, it holds that
E [ tr ( n t n t T ) ] = ∥ n t ∥ 2 ≤ ∥ v ∥ 2 M . \mathbb{E}\left[\operatorname{tr}(\mathbf{n}_t\mathbf{n}_t^{\mathsf{T}})\right]=\lVert\mathbf{n}_t\rVert^{2}\le\frac{\lVert\mathbf{v}\rVert^{2}}{M}. E [ tr ( n t n t T ) ] = ∥ n t ∥ 2 ≤ M ∥ v ∥ 2 .
Based on Lemma 17, we have
tr ( ( ∑ t = 1 T 2 n t n t T ) 1 / 2 ) ≤ 2 ∑ j = 1 d ∑ t = 1 T [ n t ] j 2 ≤ 2 ( ∑ j = 1 d [ v ] j 2 ) ( ∑ j = 1 d ∑ t = 1 T [ n t ] j 2 / [ v ] j 2 ) ≤ 2 ∥ v ∥ 2 ( ∑ t = 1 T ∑ j = 1 d [ n t ] j 2 / [ v ] j 2 ) ≤ 2 T M ∥ v ∥ . (18) \begin{aligned}
\operatorname{tr}\left(\left(\sum_{t=1}^{T}2\mathbf{n}_t\mathbf{n}_t^{\mathsf{T}}\right)^{1/2}\right)
&\le\sqrt{2}\sum_{j=1}^{d}\sqrt{\sum_{t=1}^{T}[\mathbf{n}_t]_{j}^{2}} \\
&\le\sqrt{2}\sqrt{\left(\sum_{j=1}^{d}[\mathbf{v}]_{j}^{2}\right)\left(\sum_{j=1}^{d}\sum_{t=1}^{T}[\mathbf{n}_t]_{j}^{2}/[\mathbf{v}]_{j}^{2}\right)} \\
&\le\sqrt{2}\sqrt{\lVert\mathbf{v}\rVert^{2}\left(\sum_{t=1}^{T}\sum_{j=1}^{d}[\mathbf{n}_t]_{j}^{2}/[\mathbf{v}]_{j}^{2}\right)}
\le\sqrt{\frac{2T}{M}}\lVert\mathbf{v}\rVert. \tag*{(18)}
\end{aligned} tr ( t = 1 ∑ T 2 n t n t T ) 1/2 ≤ 2 j = 1 ∑ d t = 1 ∑ T [ n t ] j 2 ≤ 2 ( j = 1 ∑ d [ v ] j 2 ) ( j = 1 ∑ d t = 1 ∑ T [ n t ] j 2 / [ v ] j 2 ) ≤ 2 ∥ v ∥ 2 ( t = 1 ∑ T j = 1 ∑ d [ n t ] j 2 / [ v ] j 2 ) ≤ M 2 T ∥ v ∥ . (18)
Therefore, we can derive the convergence rate for smooth loss functions. By plugging (17) and (18) into (16) , we have
1 T ∑ t = 1 T E [ f ( x t ) − f ( x ∗ ) ] ≤ 2 D T ( C 2 tr ( ( ∑ t = 1 T 2 ∇ f ( x t ) ∇ f ( x t ) T ) 1 / 2 ) + C 2 tr ( ( ∑ t = 1 T 2 n t n t T ) 1 / 2 ) + ρ 1 : T ) ≤ 2 D T ( 2 C 2 tr ( L ) ∑ t = 1 T ( f ( x t ) − f ( x ∗ ) ) + C 2 2 T M ∥ v ∥ + ρ 1 : T ) . (19) \begin{aligned}
\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}[f(\mathbf{x}_t)-f(\mathbf{x}^{*})]
&\leq\frac{\sqrt{2}D}{T}\left(C_{2}\operatorname{tr}\left(\left(\sum_{t=1}^{T}2\nabla f(\mathbf{x}_t)\nabla f(\mathbf{x}_t)^{\mathsf{T}}\right)^{1/2}\right)+C_{2}\operatorname{tr}\left(\left(\sum_{t=1}^{T}2\mathbf{n}_t\mathbf{n}_t^{\mathsf{T}}\right)^{1/2}\right)+\sqrt{\rho_{1:T}}\right)\\
&\leq\frac{\sqrt{2}D}{T}\left(2C_{2}\sqrt{\operatorname{tr}(\mathbf{L})\sum_{t=1}^{T}(f(\mathbf{x}_t)-f(\mathbf{x}^{*}))}+C_{2}\sqrt{\frac{2T}{M}}\lVert\mathbf{v}\rVert+\sqrt{\rho_{1:T}}\right). \tag*{(19)}
\end{aligned} T 1 t = 1 ∑ T E [ f ( x t ) − f ( x ∗ )] ≤ T 2 D C 2 tr ( t = 1 ∑ T 2∇ f ( x t ) ∇ f ( x t ) T ) 1/2 + C 2 tr ( t = 1 ∑ T 2 n t n t T ) 1/2 + ρ 1 : T ≤ T 2 D 2 C 2 tr ( L ) t = 1 ∑ T ( f ( x t ) − f ( x ∗ )) + C 2 M 2 T ∥ v ∥ + ρ 1 : T . (19)
If we denote a = 1 T ∑ t = 1 T ( f ( x t ) − f ( x ∗ ) ) a=\sqrt{\frac{1}{T}\sum_{t=1}^{T}(f(\mathbf{x}_t)-f(\mathbf{x}^{*}))} a = T 1 ∑ t = 1 T ( f ( x t ) − f ( x ∗ )) , we can rewrite (19) as
a 2 ≤ b a + c , (20) a^{2}\leq ba+c, \tag*{(20)} a 2 ≤ ba + c , (20)
where b = 2 2 D C 2 tr ( L ) T b=\frac{2\sqrt{2}DC_{2}\sqrt{\operatorname{tr}(\mathbf{L})}}{\sqrt{T}} b = T 2 2 D C 2 tr ( L ) , c = 2 D C 2 ∥ v ∥ M T + 2 D ρ 1 : T T c=\frac{2DC_{2}\lVert\mathbf{v}\rVert}{\sqrt{MT}}+\frac{\sqrt{2}D\sqrt{\rho_{1:T}}}{T} c = M T 2 D C 2 ∥ v ∥ + T 2 D ρ 1 : T . When a ≥ 0 a\geq0 a ≥ 0 , we have a 2 ≤ 2 b 2 + 2 c a^{2}\leq2b^{2}+2c a 2 ≤ 2 b 2 + 2 c , which means
1 T ∑ t = 1 T E [ f ( x t ) − f ( x ∗ ) ] ≤ 8 D 2 C 2 2 tr ( L ) T + 4 D C 2 ∥ v ∥ M T + 2 2 D ρ 1 : T T , (21) \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}[f(\mathbf{x}_t)-f(\mathbf{x}^{*})]\leq\frac{8D^{2}C_{2}^{2}\operatorname{tr}(\mathbf{L})}{T}+\frac{4DC_{2}\lVert\mathbf{v}\rVert}{\sqrt{MT}}+\frac{2\sqrt{2}D\sqrt{\rho_{1:T}}}{T}, \tag*{(21)} T 1 t = 1 ∑ T E [ f ( x t ) − f ( x ∗ )] ≤ T 8 D 2 C 2 2 tr ( L ) + M T 4 D C 2 ∥ v ∥ + T 2 2 D ρ 1 : T , (21)
which concludes the proof.
Mirror descent framework. To derive the convergence rate for the mirror descent framework, we directly incorporate Theorem 3 into (16) and obtain
1 T ∑ t = 1 T E [ f ( x t ) − f ( x ∗ ) ] ≤ 2 D 1 T ( tr ( ( ∑ t = 1 T 2 ∇ f ( x t ) ∇ f ( x t ) T ) 1 / 2 ) + tr ( ( ∑ t = 1 T 2 n t n t T ) 1 / 2 ) + d ( d − τ ) ρ 1 : T ) ≤ 2 D 1 T ( 2 tr ( L ) ∑ t = 1 T ( f ( x t ) − f ( x ∗ ) ) + 2 T M ∥ v ∥ + d ( d − τ ) ρ 1 : T ) . (22) \begin{aligned}
\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}[f(\mathbf{x}_t)-f(\mathbf{x}^{*})]
&\leq\frac{\sqrt{2}D_{1}}{T}\left(\operatorname{tr}\left(\left(\sum_{t=1}^{T}2\nabla f(\mathbf{x}_t)\nabla f(\mathbf{x}_t)^{\mathsf{T}}\right)^{1/2}\right)+\operatorname{tr}\left(\left(\sum_{t=1}^{T}2\mathbf{n}_t\mathbf{n}_t^{\mathsf{T}}\right)^{1/2}\right)+\sqrt{d(d-\tau)\rho_{1:T}}\right)\\
&\leq\frac{\sqrt{2}D_{1}}{T}\left(2\sqrt{\operatorname{tr}(\mathbf{L})\sum_{t=1}^{T}(f(\mathbf{x}_t)-f(\mathbf{x}^{*}))}+\sqrt{\frac{2T}{M}}\lVert\mathbf{v}\rVert+\sqrt{d(d-\tau)\rho_{1:T}}\right). \tag*{(22)}
\end{aligned} T 1 t = 1 ∑ T E [ f ( x t ) − f ( x ∗ )] ≤ T 2 D 1 tr ( t = 1 ∑ T 2∇ f ( x t ) ∇ f ( x t ) T ) 1/2 + tr ( t = 1 ∑ T 2 n t n t T ) 1/2 + d ( d − τ ) ρ 1 : T ≤ T 2 D 1 2 tr ( L ) t = 1 ∑ T ( f ( x t ) − f ( x ∗ )) + M 2 T ∥ v ∥ + d ( d − τ ) ρ 1 : T . (22)
By using (20) again, we have
1 T ∑ t = 1 T E [ f ( x t ) − f ( x ∗ ) ] ≤ 8 D 1 2 tr ( L ) T + 4 D 1 ∥ v ∥ M T + 2 2 D 1 d ( d − τ ) ρ 1 : T T , \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}[f(\mathbf{x}_t)-f(\mathbf{x}^{*})]\leq\frac{8D_{1}^{2}\operatorname{tr}(\mathbf{L})}{T}+\frac{4D_{1}\lVert\mathbf{v}\rVert}{\sqrt{MT}}+\frac{2\sqrt{2}D_{1}\sqrt{d(d-\tau)\rho_{1:T}}}{T}, T 1 t = 1 ∑ T E [ f ( x t ) − f ( x ∗ )] ≤ T 8 D 1 2 tr ( L ) + M T 4 D 1 ∥ v ∥ + T 2 2 D 1 d ( d − τ ) ρ 1 : T ,
which completes the proof.
Proof of Theorem 6
In the following, we give the proof of Theorem 6 .
Since the update in Algorithm 6 is performed in the matrix space, it poses challenges for the analysis. Therefore, we first introduce an equivalent update in vector form.
Recall the update in Algorithm 6, X t + 1 = − η L ~ t − 1 / 4 G t X R ~ t − 1 / 4 X_{t+1}=-\eta\widetilde{L}_t^{-1/4}G_t^X\widetilde{R}_t^{-1/4} X t + 1 = − η L t − 1/4 G t X R t − 1/4 . We define H ~ t = L ~ t 1 / 4 ⊗ R ~ t 1 / 4 ∈ R m n × m n \widetilde{H}_t=\widetilde{L}_t^{1/4}\otimes\widetilde{R}_t^{1/4}\in\mathbb{R}^{mn\times mn} H t = L t 1/4 ⊗ R t 1/4 ∈ R mn × mn , L ‾ t = L ^ t L ^ t ⊤ ∈ R m × m \overline{L}_t=\widehat{L}_t\widehat{L}_t^{\top}\in\mathbb{R}^{m\times m} L t = L t L t ⊤ ∈ R m × m , R ‾ t = R ^ t R ^ t ⊤ ∈ R n × n \overline{R}_t=\widehat{R}_t\widehat{R}_t^{\top}\in\mathbb{R}^{n\times n} R t = R t R t ⊤ ∈ R n × n , g t = vec ‾ ( G t X ) g_t=\overline{\operatorname{vec}}(G_t^X) g t = vec ( G t X ) and x t = vec ‾ ( X t ) x_t=\overline{\operatorname{vec}}(X_t) x t = vec ( X t ) , where vec ‾ \overline{\operatorname{vec}} vec denotes the row-major vectorization of a given matrix. The Kronecker product ⊗ \otimes ⊗ obeys the following properties.
Lemma 18 ([26 Lemma 3,4] ) For matrices A A A , A ′ A' A ′ , B B B , B ′ B' B ′ of appropriate dimensions and vectors x , y \mathbf{x},\mathbf{y} x , y , L ∈ R m × m L\in\mathbb{R}^{m\times m} L ∈ R m × m , R ∈ R n × n R\in\mathbb{R}^{n\times n} R ∈ R n × n , G ∈ R m × n G\in\mathbb{R}^{m\times n} G ∈ R m × n , the following properties hold:
( A ⊗ B ) ( A ′ ⊗ B ′ ) = ( A A ′ ) ⊗ ( B B ′ ) (A\otimes B)(A'\otimes B')=(AA')\otimes(BB') ( A ⊗ B ) ( A ′ ⊗ B ′ ) = ( A A ′ ) ⊗ ( B B ′ ) .
( A ⊗ B ) ⊤ = A ⊤ ⊗ B ⊤ (A\otimes B)^{\top}=A^{\top}\otimes B^{\top} ( A ⊗ B ) ⊤ = A ⊤ ⊗ B ⊤ .
A , B ⪰ 0 A,B\succeq0 A , B ⪰ 0 , ( A ⊗ B ) − 1 = A − 1 ⊗ B − 1 (A\otimes B)^{-1}=A^{-1}\otimes B^{-1} ( A ⊗ B ) − 1 = A − 1 ⊗ B − 1 .
A ⪰ A ′ A\succeq A' A ⪰ A ′ , B ⪰ B ′ B\succeq B' B ⪰ B ′ , then A ⊗ B ⪰ A ′ ⊗ B ′ A\otimes B\succeq A'\otimes B' A ⊗ B ⪰ A ′ ⊗ B ′ .
tr ( A ⊗ B ) = tr ( A ) tr ( B ) \operatorname{tr}(A\otimes B)=\operatorname{tr}(A)\operatorname{tr}(B) tr ( A ⊗ B ) = tr ( A ) tr ( B ) .
vec ‾ ( x y ⊤ ) = x ⊗ y \overline{\operatorname{vec}}(\mathbf{x}\mathbf{y}^{\top})=\mathbf{x}\otimes\mathbf{y} vec ( x y ⊤ ) = x ⊗ y .
( L ⊗ R ⊤ ) vec ‾ ( G ) = vec ‾ ( L G R ) (L\otimes R^{\top})\overline{\operatorname{vec}}(G)=\overline{\operatorname{vec}}(LGR) ( L ⊗ R ⊤ ) vec ( G ) = vec ( L GR ) .
By defining g ‾ t = ∑ i = 1 t g i \overline{g}_t=\sum_{i=1}^{t}g_i g t = ∑ i = 1 t g i , we can rewrite the update in Algorithm 6 as
x t + 1 = − η H ~ t − 1 g ‾ t . x_{t+1}=-\eta\widetilde{H}_t^{-1}\overline{g}_t. x t + 1 = − η H t − 1 g t .
which is equal to
x t + 1 = arg min x ∈ R m n { η ⟨ g ‾ t , x ⟩ + 1 2 ∥ x ∥ H ~ t 2 } . x_{t+1}=\underset{x\in\mathbb{R}^{mn}}{\arg\min}\left\{\eta\langle\overline{g}_t,x\rangle+\frac{1}{2}\|x\|_{\widetilde{H}_t}^{2}\right\}. x t + 1 = x ∈ R mn arg min { η ⟨ g t , x ⟩ + 2 1 ∥ x ∥ H t 2 } .
As L ~ t \widetilde{L}_t L t and R ~ t \widetilde{R}_t R t are monotonically increasing with t t t , it is not hard to find that H ~ t \widetilde{H}_t H t is also monotonically increasing with t t t . Thus, by using Lemma 11 , we have a similar inequality:
R ( T ) ≤ 1 η Ψ T ( x ∗ ) ⏟ R D + η 2 ∑ t = 1 T ∥ g t ∥ H ~ t − 1 − 1 2 ⏟ R G . (23) R(T)\leq\underbrace{\frac{1}{\eta}\Psi_T(x^*)}_{R_D}+\underbrace{\frac{\eta}{2}\sum_{t=1}^{T}\|g_t\|_{\widetilde{H}_{t-1}^{-1}}^2}_{R_G}. \tag*{(23)} R ( T ) ≤ R D η 1 Ψ T ( x ∗ ) + R G 2 η t = 1 ∑ T ∥ g t ∥ H t − 1 − 1 2 . (23)
where Ψ T ( x ∗ ) = 1 2 ⟨ x ∗ , H ~ T x ∗ ⟩ \Psi_T(x^*)=\frac{1}{2}\langle x^*,\widetilde{H}_Tx^*\rangle Ψ T ( x ∗ ) = 2 1 ⟨ x ∗ , H T x ∗ ⟩ .
We first give the bound of R D R_D R D .
Ψ T ( x ∗ ) = 1 2 ⟨ x ∗ , H ~ T x ∗ ⟩ ≤ 1 2 ∥ H ~ T ∥ ∥ x ∗ ∥ 2 . \Psi_T(x^*)=\frac{1}{2}\langle x^*,\widetilde{H}_Tx^*\rangle\leq\frac{1}{2}\|\widetilde{H}_T\|\|x^*\|^2. Ψ T ( x ∗ ) = 2 1 ⟨ x ∗ , H T x ∗ ⟩ ≤ 2 1 ∥ H T ∥∥ x ∗ ∥ 2 .
Then we introduce a lemma to give a guarantee about the norm of Kronecker product.
Lemma 19 [38 Theorem 8] For two matrices A A A and B B B , the following equality holds
∥ A ⊗ B ∥ = ∥ A ∥ ∥ B ∥ . \lVert A \otimes B \rVert= \lVert A \rVert\lVert B \rVert. ∥ A ⊗ B ∥ = ∥ A ∥ ∥ B ∥ .
We have ∥ x ∗ ∥ = ∥ X ∗ ∥ F ≤ D F \lVert\mathbf{x}^{*} \rVert= \lVert X^{*} \rVert_{F} \le D_{F} ∥ x ∗ ∥ = ∥ X ∗ ∥ F ≤ D F . According to Lemma 19, ∥ H ~ T ∥ = ∥ L ~ T 1 / 4 ⊗ R ~ T 1 / 4 ∥ = ∥ L ~ T 1 / 4 ∥ ∥ R ~ T 1 / 4 ∥ \lVert\widetilde{H}_{T} \rVert= \lVert\widetilde{L}_{T}^{1/4} \otimes\widetilde{R}_{T}^{1/4} \rVert= \lVert\widetilde{L}_{T}^{1/4} \rVert\lVert\widetilde{R}_{T}^{1/4} \rVert ∥ H T ∥ = ∥ L T 1/4 ⊗ R T 1/4 ∥ = ∥ L T 1/4 ∥ ∥ R T 1/4 ∥ , then we need to give the bound of ∥ L ~ T 1 / 4 ∥ \lVert\widetilde{L}_{T}^{1/4} \rVert ∥ L T 1/4 ∥ and ∥ R ~ T 1 / 4 ∥ \lVert\widetilde{R}_{T}^{1/4} \rVert ∥ R T 1/4 ∥ , respectively. We first define L T = ∑ t = 1 T G t X ( G t X ) ⊤ L_{T} = \sum_{t=1}^{T} G_{t}^{X}(G_{t}^{X})^{\top} L T = ∑ t = 1 T G t X ( G t X ) ⊤ and R T = ∑ t = 1 T ( G t X ) ⊤ G t X R_{T} = \sum_{t=1}^{T}(G_{t}^{X})^{\top}G_{t}^{X} R T = ∑ t = 1 T ( G t X ) ⊤ G t X . Using Lemma 13 , it is not hard to verify that L ‾ T + ϵ I m × m ⪯ L T + ϵ I m × m , R ‾ T + ϵ I n × n ⪯ R T + ϵ I n × n \overline{L}_{T} + \epsilon I_{m \times m} \preceq L_{T} + \epsilon I_{m \times m}, \overline{R}_{T} + \epsilon I_{n \times n} \preceq R_{T} + \epsilon I_{n \times n} L T + ϵ I m × m ⪯ L T + ϵ I m × m , R T + ϵ I n × n ⪯ R T + ϵ I n × n .
Therefore, we have
∥ L ~ T 1 / 4 ∥ = ∥ ( L ‾ T + ϵ I m × m + ρ 1 : T L I m × m ) 1 / 4 ∥ ≤ ∥ ( L ‾ T ) 1 / 4 + ( ϵ I m × m + ρ 1 : T L I m × m ) 1 / 4 ∥ ≤ ∥ ( L ‾ T ) 1 / 4 ∥ + ∥ ( ρ 1 : T L I m × m + ϵ I m × m ) 1 / 4 ∥ ≤ ∥ ( L ‾ T ) 1 / 4 ∥ + ( ρ 1 : T L + ϵ ) 1 / 4 ≤ tr ( L T 1 / 4 ) + ( ρ 1 : T L ) 1 / 4 + ϵ 1 / 4 , (24) \begin{aligned}
\lVert\widetilde{L}_{T}^{1/4} \rVert
&= \left\lVert\left(\overline{L}_{T}+\epsilon I_{m \times m}+\rho_{1:T}^{L}I_{m \times m}\right)^{1/4}\right\rVert\\
&\le\left\lVert\left(\overline{L}_{T}\right)^{1/4}+\left(\epsilon I_{m \times m}+\rho_{1:T}^{L}I_{m \times m}\right)^{1/4}\right\rVert\\
&\le\left\lVert\left(\overline{L}_{T}\right)^{1/4}\right\rVert+\left\lVert\left(\rho_{1:T}^{L}I_{m \times m}+\epsilon I_{m \times m}\right)^{1/4}\right\rVert\\
&\le\left\lVert\left(\overline{L}_{T}\right)^{1/4}\right\rVert+\left(\rho_{1:T}^{L}+\epsilon\right)^{1/4} \\
&\le\operatorname{tr}\left(L_{T}^{1/4}\right)+\left(\rho_{1:T}^{L}\right)^{1/4}+\epsilon^{1/4}, \tag*{(24)}
\end{aligned} ∥ L T 1/4 ∥ = ( L T + ϵ I m × m + ρ 1 : T L I m × m ) 1/4 ≤ ( L T ) 1/4 + ( ϵ I m × m + ρ 1 : T L I m × m ) 1/4 ≤ ( L T ) 1/4 + ( ρ 1 : T L I m × m + ϵ I m × m ) 1/4 ≤ ( L T ) 1/4 + ( ρ 1 : T L + ϵ ) 1/4 ≤ tr ( L T 1/4 ) + ( ρ 1 : T L ) 1/4 + ϵ 1/4 , (24)
where the fourth inequality is due to the fact that tr ( ⋅ ) ≥ ∥ ⋅ ∥ \operatorname{tr}(\cdot) \ge\lVert\cdot\rVert tr ( ⋅ ) ≥ ∥ ⋅ ∥ for positive semidefinite matrices, and the last inequality is due to the monotonicity of tr ( ⋅ ) \operatorname{tr}(\cdot) tr ( ⋅ ) .
We also have
∥ R ~ T 1 / 4 ∥ = ∥ ( R ‾ T + ϵ I n × n + ρ 1 : T R I n × n ) 1 / 4 ∥ ≤ ∥ ( R ‾ T ) 1 / 4 ∥ + ∥ ( ρ 1 : T R I n × n + ϵ I n × n ) 1 / 4 ∥ ≤ tr ( ( R ‾ T ) 1 / 4 ) + ( ρ 1 : T R ) 1 / 4 + ϵ 1 / 4 ≤ tr ( R T 1 / 4 ) + ( ρ 1 : T R ) 1 / 4 + ϵ 1 / 4 . \begin{aligned}
\lVert\widetilde{R}_{T}^{1/4} \rVert
&= \left\lVert\left(\overline{R}_{T}+\epsilon I_{n \times n}+\rho_{1:T}^{R}I_{n \times n}\right)^{1/4}\right\rVert\\
&\le\left\lVert\left(\overline{R}_{T}\right)^{1/4}\right\rVert+\left\lVert\left(\rho_{1:T}^{R}I_{n \times n}+\epsilon I_{n \times n}\right)^{1/4}\right\rVert\\
&\le\operatorname{tr}\left(\left(\overline{R}_{T}\right)^{1/4}\right)+\left(\rho_{1:T}^{R}\right)^{1/4}+\epsilon^{1/4} \\
&\le\operatorname{tr}\left(R_{T}^{1/4}\right)+\left(\rho_{1:T}^{R}\right)^{1/4}+\epsilon^{1/4}.
\end{aligned} ∥ R T 1/4 ∥ = ( R T + ϵ I n × n + ρ 1 : T R I n × n ) 1/4 ≤ ( R T ) 1/4 + ( ρ 1 : T R I n × n + ϵ I n × n ) 1/4 ≤ tr ( ( R T ) 1/4 ) + ( ρ 1 : T R ) 1/4 + ϵ 1/4 ≤ tr ( R T 1/4 ) + ( ρ 1 : T R ) 1/4 + ϵ 1/4 .
Therefore, we can get
R D = 1 η Ψ T ( x ∗ ) ≤ D F 2 2 η ( tr ( L T 1 / 4 ) + ( ρ 1 : T L ) 1 / 4 + ϵ 1 / 4 ) ( tr ( R T 1 / 4 ) + ( ρ 1 : T R ) 1 / 4 + ϵ 1 / 4 ) . (25) R_{D}=\frac{1}{\eta}\Psi_{T}(\mathbf{x}^{*})\le\frac{D_{F}^{2}}{2\eta}\left(\operatorname{tr}\left(L_{T}^{1/4}\right)+\left(\rho_{1:T}^{L}\right)^{1/4}+\epsilon^{1/4}\right)\left(\operatorname{tr}\left(R_{T}^{1/4}\right)+\left(\rho_{1:T}^{R}\right)^{1/4}+\epsilon^{1/4}\right). \tag*{(25)} R D = η 1 Ψ T ( x ∗ ) ≤ 2 η D F 2 ( tr ( L T 1/4 ) + ( ρ 1 : T L ) 1/4 + ϵ 1/4 ) ( tr ( R T 1/4 ) + ( ρ 1 : T R ) 1/4 + ϵ 1/4 ) . (25)
To give the bound of R G R_{G} R G , we first introduce a lemma.
Lemma 20 [26 Lemma 8] If G t X ∈ R m × n G_{t}^{X} \in\mathbb{R}^{m \times n} G t X ∈ R m × n has rank at most r r r , and g t = vec ( G t X ) g_{t} = \operatorname{vec}(G_{t}^{X}) g t = vec ( G t X ) , then ∀ ϵ ≥ 0 \forall\epsilon\ge0 ∀ ϵ ≥ 0 , ∀ t \forall t ∀ t ,
ϵ I m n × m n + 1 r ∑ i = 1 t g i g i ⊤ ⪯ ( ϵ I m × m + ∑ i = 1 t G i X ( G i X ) ⊤ ) 1 / 2 ⊗ ( ϵ I n × n + ∑ i = 1 t ( G i X ) ⊤ ( G i X ) ) 1 / 2 . \epsilon I_{mn \times mn}+\frac{1}{r}\sum_{i=1}^{t}g_{i}g_{i}^{\top}
\preceq
\left(\epsilon I_{m \times m}+\sum_{i=1}^{t}G_{i}^{X}(G_{i}^{X})^{\top}\right)^{1/2}
\otimes
\left(\epsilon I_{n \times n}+\sum_{i=1}^{t}(G_{i}^{X})^{\top}(G_{i}^{X})\right)^{1/2}. ϵ I mn × mn + r 1 i = 1 ∑ t g i g i ⊤ ⪯ ( ϵ I m × m + i = 1 ∑ t G i X ( G i X ) ⊤ ) 1/2 ⊗ ( ϵ I n × n + i = 1 ∑ t ( G i X ) ⊤ ( G i X ) ) 1/2 .
Then we utilize a lemma from Feinberg et al. [19 ] .
Lemma 21 ([19 Lemma 14] ) Let V t Σ t L V t ⊤ = L ~ t − 1 + G t X ( G t X ) ⊤ V_t\Sigma_t^L V_t^\top= \tilde{L}_{t-1} + G_t^X(G_t^X)^\top V t Σ t L V t ⊤ = L ~ t − 1 + G t X ( G t X ) ⊤ be the eigendecomposition of the un-deflated sketch. We assume rank ( Σ t L ) = k \operatorname{rank}(\Sigma_t^L)=k rank ( Σ t L ) = k , k ∈ [ τ − 1 , τ − 1 + r ] k \in[\tau-1,\tau-1+r] k ∈ [ τ − 1 , τ − 1 + r ] . Write V t = [ V t ∗ , V t ⊥ ] V_t=[V_t^*,V_t^\perp] V t = [ V t ∗ , V t ⊥ ] , where V t ∗ V_t^* V t ∗ contains the first k k k columns of V t V_t V t . Similarly, for the right preconditioner, let W t Σ t R W t ⊤ = R ~ t − 1 + ( G t X ) ⊤ G t X W_t\Sigma_t^R W_t^\top= \tilde{R}_{t-1}+(G_t^X)^\top G_t^X W t Σ t R W t ⊤ = R ~ t − 1 + ( G t X ) ⊤ G t X . Write W t = [ W t ∗ , W t ⊥ ] W_t=[W_t^*,W_t^\perp] W t = [ W t ∗ , W t ⊥ ] , where W t ∗ W_t^* W t ∗ contains the first k k k columns of W t W_t W t . Define N t L = V t ∗ ( V t ∗ ) ⊤ N_t^L=V_t^*(V_t^*)^\top N t L = V t ∗ ( V t ∗ ) ⊤ and N t R = W t ∗ ( W t ∗ ) ⊤ N_t^R=W_t^*(W_t^*)^\top N t R = W t ∗ ( W t ∗ ) ⊤ , then we have
L ~ t ⪰ ∑ i = 1 t G i X ( G i X ) ⊤ + ∑ i = 1 t ρ i L N i L + ϵ I m × m = M t L , \tilde{L}_t \succeq\sum_{i=1}^{t}G_i^X(G_i^X)^\top+\sum_{i=1}^{t}\rho_i^L N_i^L+\epsilon I_{m\times m}=M_t^L, L ~ t ⪰ i = 1 ∑ t G i X ( G i X ) ⊤ + i = 1 ∑ t ρ i L N i L + ϵ I m × m = M t L , R ~ t ⪰ ∑ i = 1 t ( G i X ) ⊤ G i X + ∑ i = 1 t ρ i R N i R + ϵ I n × n = M t R . \tilde{R}_t \succeq\sum_{i=1}^{t}(G_i^X)^\top G_i^X+\sum_{i=1}^{t}\rho_i^R N_i^R+\epsilon I_{n\times n}=M_t^R. R ~ t ⪰ i = 1 ∑ t ( G i X ) ⊤ G i X + i = 1 ∑ t ρ i R N i R + ϵ I n × n = M t R .
According to Lemma 13 and Lemma 21 , we have M t L ⪰ ϵ I m × m + ∑ i = 1 t G i X ( G i X ) ⊤ M_t^L \succeq\epsilon I_{m\times m}+\sum_{i=1}^{t}G_i^X(G_i^X)^\top M t L ⪰ ϵ I m × m + ∑ i = 1 t G i X ( G i X ) ⊤ and M t R ⪰ ϵ I n × n + ∑ i = 1 t ( G i X ) ⊤ G i X M_t^R \succeq\epsilon I_{n\times n}+\sum_{i=1}^{t}(G_i^X)^\top G_i^X M t R ⪰ ϵ I n × n + ∑ i = 1 t ( G i X ) ⊤ G i X . Using Lemma 18 , we can derive
I m × m ⊗ ( ϵ I n × n + ∑ i = 1 t ( G i X ) ⊤ G i X ) ⪯ I m × m ⊗ M t R , I_{m\times m}\otimes\left(\epsilon I_{n\times n}+\sum_{i=1}^{t}(G_i^X)^\top G_i^X\right)\preceq I_{m\times m}\otimes M_t^R, I m × m ⊗ ( ϵ I n × n + i = 1 ∑ t ( G i X ) ⊤ G i X ) ⪯ I m × m ⊗ M t R ,
( ϵ I m × m + ∑ i = 1 t G i X ( G i X ) ⊤ ) ⊗ I n × n ⪯ M t L ⊗ I n × n . (26) \left(\epsilon I_{m\times m}+\sum_{i=1}^{t}G_i^X(G_i^X)^\top\right)\otimes I_{n\times n}\preceq M_t^L\otimes I_{n\times n}. \tag*{(26)} ( ϵ I m × m + i = 1 ∑ t G i X ( G i X ) ⊤ ) ⊗ I n × n ⪯ M t L ⊗ I n × n . (26)
Therefore, we have
( ϵ I m n × m n + 1 r ∑ i = 1 t g i g i ⊤ ) 1 / 2 ⪯ ( M t L ) 1 / 4 ⊗ ( M t R ) 1 / 4 ⪯ L ~ t 1 / 4 ⊗ R ~ t 1 / 4 = H ~ t . \left(\epsilon I_{mn\times mn}+\frac{1}{r}\sum_{i=1}^{t}g_i g_i^\top\right)^{1/2}\preceq(M_t^L)^{1/4}\otimes(M_t^R)^{1/4}\preceq\tilde{L}_t^{1/4}\otimes\tilde{R}_t^{1/4}=\tilde{H}_t. ( ϵ I mn × mn + r 1 i = 1 ∑ t g i g i ⊤ ) 1/2 ⪯ ( M t L ) 1/4 ⊗ ( M t R ) 1/4 ⪯ L ~ t 1/4 ⊗ R ~ t 1/4 = H ~ t .
Then we define H ^ t = ( r ϵ I m n × m n + ∑ i = 1 t g i g i ⊤ ) 1 / 2 \hat{H}_t=(r\epsilon I_{mn\times mn}+\sum_{i=1}^{t}g_i g_i^\top)^{1/2} H ^ t = ( r ϵ I mn × mn + ∑ i = 1 t g i g i ⊤ ) 1/2 , and have
H ^ t ⪯ r H ~ t . \hat{H}_t\preceq\sqrt{r}\tilde{H}_t. H ^ t ⪯ r H ~ t .
We want to give the lower bound of H ^ t − 1 \hat{H}_{t-1} H ^ t − 1 . By defining c t = r ϵ ∥ g t ∥ 2 + r ϵ c_t=\frac{r\epsilon}{\lVert g_t\rVert^2+r\epsilon} c t = ∥ g t ∥ 2 + r ϵ r ϵ , we have
H ^ t − 1 2 = r ϵ I m n × m n + ∑ i = 1 t − 1 g i g i ⊤ \hat{H}_{t-1}^2=r\epsilon I_{mn\times mn}+\sum_{i=1}^{t-1}g_i g_i^\top H ^ t − 1 2 = r ϵ I mn × mn + i = 1 ∑ t − 1 g i g i ⊤
⪰ c t ( ∥ g t ∥ 2 I m n × m n + ∑ i = 1 t − 1 g i g i ⊤ + r ϵ I m n × m n ) \succeq c_t\left(\lVert g_t\rVert^2 I_{mn\times mn}+\sum_{i=1}^{t-1}g_i g_i^\top+r\epsilon I_{mn\times mn}\right) ⪰ c t ( ∥ g t ∥ 2 I mn × mn + i = 1 ∑ t − 1 g i g i ⊤ + r ϵ I mn × mn )
⪰ c t ( r ϵ I m n × m n + ∑ i = 1 t g i g i ⊤ ) = c t H ^ t 2 . \begin{aligned}
\succeq c_t\left(r\epsilon I_{mn\times mn}+\sum_{i=1}^{t}g_i g_i^\top\right) \\
&=c_t\hat{H}_t^2.
\end{aligned} ⪰ c t ( r ϵ I mn × mn + i = 1 ∑ t g i g i ⊤ ) = c t H ^ t 2 .
Define A 1 = min t ∈ [ T ] { c t } A_1=\min_{t\in[T]}\{\sqrt{c_t}\} A 1 = min t ∈ [ T ] { c t } . We have A 1 H ^ t ⪯ H ^ t − 1 ⪯ r H ~ t − 1 A_1\hat{H}_t\preceq\hat{H}_{t-1}\preceq\sqrt{r}\tilde{H}_{t-1} A 1 H ^ t ⪯ H ^ t − 1 ⪯ r H ~ t − 1 , which means 1 r H ~ t − 1 − 1 ⪯ H ^ t − 1 − 1 ⪯ 1 A 1 H ^ t − 1 \frac{1}{\sqrt{r}}\tilde{H}_{t-1}^{-1}\preceq\hat{H}_{t-1}^{-1}\preceq\frac{1}{A_1}\hat{H}_t^{-1} r 1 H ~ t − 1 − 1 ⪯ H ^ t − 1 − 1 ⪯ A 1 1 H ^ t − 1 . We can derive
∑ t = 1 T ∥ g t ∥ H ~ t − 1 − 1 2 = ∑ t = 1 T ⟨ g t , H ~ t − 1 − 1 g t ⟩ ≤ r ∑ t = 1 T ⟨ g t , H ^ t − 1 − 1 g t ⟩ ≤ r A 1 ∑ t = 1 T ⟨ g t , H ^ t − 1 g t ⟩ . \begin{aligned}
\sum_{t=1}^{T}\lVert g_t\rVert_{\widetilde{H}_{t-1}^{-1}}^2
= \sum_{t=1}^{T}\langle g_t,\widetilde{H}_{t-1}^{-1}g_t\rangle
\le\sqrt{r}\sum_{t=1}^{T}\langle g_t,\widehat{H}_{t-1}^{-1}g_t\rangle\\
&\le\frac{\sqrt{r}}{A_1}\sum_{t=1}^{T}\langle g_t,\widehat{H}_t^{-1}g_t\rangle.
\end{aligned} t = 1 ∑ T ∥ g t ∥ H t − 1 − 1 2 = t = 1 ∑ T ⟨ g t , H t − 1 − 1 g t ⟩ ≤ r t = 1 ∑ T ⟨ g t , H t − 1 − 1 g t ⟩ ≤ A 1 r t = 1 ∑ T ⟨ g t , H t − 1 g t ⟩ .
Based on the proof of Theorem 5 in Feinberg et al. [19 ] , we obtain the following inequality.
∑ t = 1 T ⟨ g t , H ^ t − 1 g t ⟩ ≤ 2 tr ( H ^ T ) . \sum_{t=1}^{T}\langle g_t,\widehat{H}_t^{-1}g_t\rangle\le2\operatorname{tr}(\widehat{H}_T). t = 1 ∑ T ⟨ g t , H t − 1 g t ⟩ ≤ 2 tr ( H T ) .
Therefore, we have
∑ t = 1 T ∥ g t ∥ H ^ t − 1 − 1 2 ≤ r A 1 ∑ t = 1 T ⟨ g t , H ^ t − 1 g t ⟩ ≤ 2 A 1 r tr ( H ^ T ) . \sum_{t=1}^{T}\lVert g_t\rVert_{\widehat{H}_{t-1}^{-1}}^2
\le\frac{\sqrt{r}}{A_1}\sum_{t=1}^{T}\langle g_t,\widehat{H}_t^{-1}g_t\rangle
\le\frac{2}{A_1}\sqrt{r}\operatorname{tr}(\widehat{H}_T). t = 1 ∑ T ∥ g t ∥ H t − 1 − 1 2 ≤ A 1 r t = 1 ∑ T ⟨ g t , H t − 1 g t ⟩ ≤ A 1 2 r tr ( H T ) .
Then, we need to bound the term H ^ T \widehat{H}_T H T .
H ^ T 2 = ( r ϵ I m n × m n + ∑ i = 1 T g i g i T ) ⪯ r ( ϵ I m × m + ∑ i = 1 T G i X ( G i X ) T ) 1 / 2 ⊗ ( ϵ I n × n + ∑ i = 1 T ( G i X ) T G i X ) 1 / 2 = r ( ϵ I m × m + L T ) 1 / 2 ⊗ ( ϵ I n × n + R T ) 1 / 2 , \begin{aligned}
\widehat{H}_T^2
&=\left(r\epsilon I_{mn\times mn}+\sum_{i=1}^{T}g_i g_i^{\mathsf T}\right)
\preceq r\left(\epsilon I_{m\times m}+\sum_{i=1}^{T}G_i^X(G_i^X)^{\mathsf T}\right)^{1/2}\\
&\qquad\otimes\left(\epsilon I_{n\times n}+\sum_{i=1}^{T}(G_i^X)^{\mathsf T}G_i^X\right)^{1/2}\\
&=r(\epsilon I_{m\times m}+L_T)^{1/2}\otimes(\epsilon I_{n\times n}+R_T)^{1/2},
\end{aligned} H T 2 = ( r ϵ I mn × mn + i = 1 ∑ T g i g i T ) ⪯ r ( ϵ I m × m + i = 1 ∑ T G i X ( G i X ) T ) 1/2 ⊗ ( ϵ I n × n + i = 1 ∑ T ( G i X ) T G i X ) 1/2 = r ( ϵ I m × m + L T ) 1/2 ⊗ ( ϵ I n × n + R T ) 1/2 ,
which means H ^ T ⪯ r ( ϵ I m × m + L T ) 1 / 4 ⊗ ( ϵ I n × n + R T ) 1 / 4 \widehat{H}_T\preceq\sqrt{r}(\epsilon I_{m\times m}+L_T)^{1/4}\otimes(\epsilon I_{n\times n}+R_T)^{1/4} H T ⪯ r ( ϵ I m × m + L T ) 1/4 ⊗ ( ϵ I n × n + R T ) 1/4 .
By defining C 3 = 1 A 1 C_3=\frac{1}{A_1} C 3 = A 1 1 , we can derive the bound of R G R_G R G .
R G = η 2 ∑ t = 1 T ∥ g t ∥ H ^ t − 1 − 1 2 ≤ η C 3 r tr ( H ^ T ) ≤ η C 3 r tr ( ( ϵ I m × m + L T ) 1 / 4 ) tr ( ( ϵ I n × n + R T ) 1 / 4 ) . \begin{aligned}
R_G
&=\frac{\eta}{2}\sum_{t=1}^{T}\lVert g_t\rVert_{\widehat{H}_{t-1}^{-1}}^2
\le\eta C_3\sqrt{r}\operatorname{tr}(\widehat{H}_T)\\
&\le\eta C_3r\operatorname{tr}\left((\epsilon I_{m\times m}+L_T)^{1/4}\right)
\operatorname{tr}\left((\epsilon I_{n\times n}+R_T)^{1/4}\right).
\end{aligned} R G = 2 η t = 1 ∑ T ∥ g t ∥ H t − 1 − 1 2 ≤ η C 3 r tr ( H T ) ≤ η C 3 r tr ( ( ϵ I m × m + L T ) 1/4 ) tr ( ( ϵ I n × n + R T ) 1/4 ) .
By setting η = D F r \eta=\frac{D_F}{\sqrt{r}} η = r D F , the final regret bound is
∑ t = 1 T f t ( x t ) − f t ( x ∗ ) ≤ η C 3 r tr ( ( ϵ I m × m + L T ) 1 / 4 ) tr ( ( ϵ I n × n + R T ) 1 / 4 ) + D F 2 2 η ( tr ( L T 1 / 4 ) + ( ρ 1 : T L ) 1 / 4 + ϵ 1 / 4 ) ( tr ( R T 1 / 4 ) + ( ρ 1 : T R ) 1 / 4 + ϵ 1 / 4 ) ≤ r D F C 3 tr ( ( ϵ I m × m + L T ) 1 / 4 ) tr ( ( ϵ I n × n + R T ) 1 / 4 ) + r D F 2 ( tr ( L T 1 / 4 ) + ( ρ 1 : T L ) 1 / 4 + ϵ 1 / 4 ) ( tr ( R T 1 / 4 ) + ( ρ 1 : T R ) 1 / 4 + ϵ 1 / 4 ) = O ( D F r ( tr ( L T 1 / 4 ) + ( ρ 1 : T L ) 1 / 4 ) ( tr ( R T 1 / 4 ) + ( ρ 1 : T R ) 1 / 4 ) ) . (27) \begin{aligned}
\sum_{t=1}^{T}f_t(x_t)-f_t(x^*)
&\le\eta C_3r\operatorname{tr}\left((\epsilon I_{m\times m}+L_T)^{1/4}\right)
\operatorname{tr}\left((\epsilon I_{n\times n}+R_T)^{1/4}\right)\\
&\quad+\frac{D_F^2}{2\eta}\left(\operatorname{tr}(L_T^{1/4})+(\rho_{1:T}^{L})^{1/4}+\epsilon^{1/4}\right)
\left(\operatorname{tr}(R_T^{1/4})+(\rho_{1:T}^{R})^{1/4}+\epsilon^{1/4}\right)\\
&\le\sqrt{r}D_F C_3\operatorname{tr}\left((\epsilon I_{m\times m}+L_T)^{1/4}\right)
\operatorname{tr}\left((\epsilon I_{n\times n}+R_T)^{1/4}\right)\\
&\quad+\frac{\sqrt{r}D_F}{2}\left(\operatorname{tr}(L_T^{1/4})+(\rho_{1:T}^{L})^{1/4}+\epsilon^{1/4}\right)
\left(\operatorname{tr}(R_T^{1/4})+(\rho_{1:T}^{R})^{1/4}+\epsilon^{1/4}\right)\\
&=O\left(D_F\sqrt{r}\left(\operatorname{tr}(L_T^{1/4})+(\rho_{1:T}^{L})^{1/4}\right)
\left(\operatorname{tr}(R_T^{1/4})+(\rho_{1:T}^{R})^{1/4}\right)\right). \tag*{(27)}
\end{aligned} t = 1 ∑ T f t ( x t ) − f t ( x ∗ ) ≤ η C 3 r tr ( ( ϵ I m × m + L T ) 1/4 ) tr ( ( ϵ I n × n + R T ) 1/4 ) + 2 η D F 2 ( tr ( L T 1/4 ) + ( ρ 1 : T L ) 1/4 + ϵ 1/4 ) ( tr ( R T 1/4 ) + ( ρ 1 : T R ) 1/4 + ϵ 1/4 ) ≤ r D F C 3 tr ( ( ϵ I m × m + L T ) 1/4 ) tr ( ( ϵ I n × n + R T ) 1/4 ) + 2 r D F ( tr ( L T 1/4 ) + ( ρ 1 : T L ) 1/4 + ϵ 1/4 ) ( tr ( R T 1/4 ) + ( ρ 1 : T R ) 1/4 + ϵ 1/4 ) = O ( D F r ( tr ( L T 1/4 ) + ( ρ 1 : T L ) 1/4 ) ( tr ( R T 1/4 ) + ( ρ 1 : T R ) 1/4 ) ) . (27)
Proof of Theorem 7
The proof of Theorem 7 follows the same structure as that of Theorem 6 , with a refined analysis of the preconditioning matrix.
Define
H ~ t = L ~ t 1 / 2 ⊗ I n × n ∈ R m n × m n . \widetilde{H}_t=\widetilde{L}_t^{1/2}\otimes I_{n\times n}\in\mathbb{R}^{mn\times mn}. H t = L t 1/2 ⊗ I n × n ∈ R mn × mn .
Applying Lemma 11 yields the decomposition
R ( T ) ≤ 1 η Ψ T ( x ∗ ) ⏟ R D + η 2 ∑ t = 1 T ∥ g t ∥ H ~ t − 1 − 1 2 ⏟ R G . (28) R(T)\leq\underbrace{\frac{1}{\eta}\Psi_T(x^*)}_{R_D}+\underbrace{\frac{\eta}{2}\sum_{t=1}^{T}\lVert g_t\rVert_{\widetilde{H}_{t-1}^{-1}}^2}_{R_G}. \tag*{(28)} R ( T ) ≤ R D η 1 Ψ T ( x ∗ ) + R G 2 η t = 1 ∑ T ∥ g t ∥ H t − 1 − 1 2 . (28)
where Ψ T ( x ∗ ) = 1 2 ⟨ x ∗ , H ~ T x ∗ ⟩ \Psi_T(x^*)=\frac{1}{2}\langle x^*,\widetilde{H}_T x^*\rangle Ψ T ( x ∗ ) = 2 1 ⟨ x ∗ , H T x ∗ ⟩ .
We first bound R D R_D R D . By using the Cauchy-Schwarz inequality,
Ψ T ( x ∗ ) = 1 2 ⟨ x ∗ , H ~ T x ∗ ⟩ ≤ 1 2 ∥ H ~ T ∥ 2 ∥ x ∗ ∥ 2 . \Psi_T(x^*)=\frac{1}{2}\langle x^*,\widetilde{H}_T x^*\rangle\leq\frac{1}{2}\lVert\widetilde{H}_T\rVert_2\lVert x^*\rVert^2. Ψ T ( x ∗ ) = 2 1 ⟨ x ∗ , H T x ∗ ⟩ ≤ 2 1 ∥ H T ∥ 2 ∥ x ∗ ∥ 2 .
Invoking Lemma 19 together with (24) gives
Ψ T ( x ∗ ) ≤ 1 2 ∥ L ~ T 1 / 2 ∥ 2 ∥ I n × n ∥ 2 ∥ x ∗ ∥ 2 ≤ D F 2 2 ( tr ( L T 1 / 2 ) + ρ 1 : T L + ϵ ) . \Psi_T(x^*)\leq\frac{1}{2}\left\lVert\widetilde{L}_T^{1/2}\right\rVert_2\lVert I_{n\times n}\rVert_2\lVert x^*\rVert^2\leq\frac{D_F^2}{2}\left(\operatorname{tr}(L_T^{1/2})+\sqrt{\rho_{1:T}^{L}+\epsilon}\right). Ψ T ( x ∗ ) ≤ 2 1 L T 1/2 2 ∥ I n × n ∥ 2 ∥ x ∗ ∥ 2 ≤ 2 D F 2 ( tr ( L T 1/2 ) + ρ 1 : T L + ϵ ) .
We next turn to R G R_G R G . Using the identity vec ( A ) ⊤ ( I ⊗ B ) vec ( A ) = tr ( A ⊤ B A ) \operatorname{vec}(A)^\top(I\otimes B)\operatorname{vec}(A)=\operatorname{tr}(A^\top BA) vec ( A ) ⊤ ( I ⊗ B ) vec ( A ) = tr ( A ⊤ B A ) , we have
∑ t = 1 T ∥ g t ∥ H ~ t − 1 − 1 2 = ∑ t = 1 T ⟨ g t , H ~ t − 1 − 1 g t ⟩ = ∑ t = 1 T tr ( ( G t X ) ⊤ L ~ t − 1 − 1 / 2 G t X ) . \sum_{t=1}^{T}\lVert g_t\rVert_{\widetilde{H}_{t-1}^{-1}}^2=\sum_{t=1}^{T}\langle g_t,\widetilde{H}_{t-1}^{-1}g_t\rangle=\sum_{t=1}^{T}\operatorname{tr}\left((G_t^X)^\top\widetilde{L}_{t-1}^{-1/2}G_t^X\right). t = 1 ∑ T ∥ g t ∥ H t − 1 − 1 2 = t = 1 ∑ T ⟨ g t , H t − 1 − 1 g t ⟩ = t = 1 ∑ T tr ( ( G t X ) ⊤ L t − 1 − 1/2 G t X ) .
We now establish a lower bound on L t − 1 L_{t-1} L t − 1 in terms of L t L_t L t . Define c t ′ = ϵ ∥ G t X ∥ 2 2 + ϵ c'_t=\frac{\epsilon}{\lVert G_t^X\rVert_2^2+\epsilon} c t ′ = ∥ G t X ∥ 2 2 + ϵ ϵ . Since
c t ′ ∥ G t X ∥ 2 2 I m × m ⪰ c t ′ G t X ( G t X ) ⊤ c'_t\lVert G_t^X\rVert_2^2 I_{m\times m}\succeq c'_tG_t^X(G_t^X)^\top c t ′ ∥ G t X ∥ 2 2 I m × m ⪰ c t ′ G t X ( G t X ) ⊤
and c t ′ ≤ 1 c'_t\leq1 c t ′ ≤ 1 , we obtain
ϵ I m × m + ∑ i = 1 t − 1 G i X ( G i X ) ⊤ ⪰ c t ′ ( ∥ G t X ∥ 2 2 I m × m + ∑ i = 1 t − 1 G i X ( G i X ) ⊤ + ϵ I m × m ) \epsilon I_{m\times m}+\sum_{i=1}^{t-1}G_i^X(G_i^X)^\top\succeq c'_t\left(\lVert G_t^X\rVert_2^2I_{m\times m}+\sum_{i=1}^{t-1}G_i^X(G_i^X)^\top+\epsilon I_{m\times m}\right) ϵ I m × m + i = 1 ∑ t − 1 G i X ( G i X ) ⊤ ⪰ c t ′ ( ∥ G t X ∥ 2 2 I m × m + i = 1 ∑ t − 1 G i X ( G i X ) ⊤ + ϵ I m × m )
⪰ c t ′ ( ϵ I m × m + ∑ i = 1 t G i X ( G i X ) ⊤ ) . \succeq c'_t\left(\epsilon I_{m\times m}+\sum_{i=1}^{t}G_i^X(G_i^X)^\top\right). ⪰ c t ′ ( ϵ I m × m + i = 1 ∑ t G i X ( G i X ) ⊤ ) .
Define A 4 = max t ∈ [ T ] { 1 / c t ′ } A_4=\max_{t\in[T]}\{1/c'_t\} A 4 = max t ∈ [ T ] { 1/ c t ′ } . Combining the above inequality with (26) yields
∑ t = 1 T tr ( ( G t X ) ⊤ L ~ t − 1 − 1 / 2 G t X ) ≤ ∑ t = 1 T tr ( ( G t X ) ⊤ ( ϵ I m × m + L t − 1 ) − 1 / 2 G t X ) ≤ A 4 ∑ t = 1 T tr ( ( G t X ) ⊤ ( ϵ I m × m + L t ) − 1 / 2 G t X ) . (29) \begin{aligned}
\sum_{t=1}^{T}\operatorname{tr}\left((G_t^X)^\top\widetilde{L}_{t-1}^{-1/2}G_t^X\right)\leq\sum_{t=1}^{T}\operatorname{tr}\left((G_t^X)^\top(\epsilon I_{m\times m}+L_{t-1})^{-1/2}G_t^X\right) \\
&\leq A_4\sum_{t=1}^{T}\operatorname{tr}\left((G_t^X)^\top(\epsilon I_{m\times m}+L_t)^{-1/2}G_t^X\right). \tag*{(29)}
\end{aligned} t = 1 ∑ T tr ( ( G t X ) ⊤ L t − 1 − 1/2 G t X ) ≤ t = 1 ∑ T tr ( ( G t X ) ⊤ ( ϵ I m × m + L t − 1 ) − 1/2 G t X ) ≤ A 4 t = 1 ∑ T tr ( ( G t X ) ⊤ ( ϵ I m × m + L t ) − 1/2 G t X ) . (29)
where the first inequality follows from L ~ t − 1 ⪰ ϵ I m × m + L t − 1 \widetilde{L}_{t-1}\succeq\epsilon I_{m\times m}+L_{t-1} L t − 1 ⪰ ϵ I m × m + L t − 1 and the fact that tr ( A ⊤ B A ) ≤ tr ( A ⊤ C A ) \operatorname{tr}(A^\top BA)\leq\operatorname{tr}(A^\top CA) tr ( A ⊤ B A ) ≤ tr ( A ⊤ C A ) if C ⪰ B C\succeq B C ⪰ B . The right-hand side is bounded by the following lemma.
Lemma 22 ([5 Proof of Theorem 1] ) With the notation of Algorithm 7,
∑ t = 1 T tr ( ( G t X ) ⊤ ( ϵ I m × m + L t ) − 1 / 2 G t X ) ≤ 2 tr ( L T 1 / 2 ) . \sum_{t=1}^{T} \operatorname{tr}\left((G_t^X)^\top(\epsilon I_{m\times m}+L_t)^{-1/2}G_t^X\right) \le2\operatorname{tr}\left(L_T^{1/2}\right). t = 1 ∑ T tr ( ( G t X ) ⊤ ( ϵ I m × m + L t ) − 1/2 G t X ) ≤ 2 tr ( L T 1/2 ) .
Substituting Lemma 22 into (28) and setting η = D F 2 \eta= \frac{D_F}{\sqrt{2}} η = 2 D F , we obtain the following guarantee for S-ASGO under the primal-dual framework
R ( T ) ≤ D F 2 2 η ( tr ( L T 1 / 2 ) + ρ 1 : T L + ϵ ) + η A 4 tr ( L T 1 / 2 ) = O ( D F ( tr ( L T 1 / 2 ) + ρ 1 : T L ) ) . \begin{aligned}
R(T) \le\frac{D_F^2}{2\eta}\left(\operatorname{tr}\left(L_T^{1/2}\right)+\sqrt{\rho_{1:T}^L+\epsilon}\right)+\eta A_4\operatorname{tr}\left(L_T^{1/2}\right) \\
&= O\left(D_F\left(\operatorname{tr}\left(L_T^{1/2}\right)+\sqrt{\rho_{1:T}^L}\right)\right).
\end{aligned} R ( T ) ≤ 2 η D F 2 ( tr ( L T 1/2 ) + ρ 1 : T L + ϵ ) + η A 4 tr ( L T 1/2 ) = O ( D F ( tr ( L T 1/2 ) + ρ 1 : T L ) ) .
This completes the proof of Theorem 7 .
Proof of Theorem 8
We now turn to the mirror descent framework. Applying the standard mirror descent analysis yields
R ( T ) ≤ 1 2 η ∑ t = 1 T ( ∥ x t − x ∗ ∥ H ~ t 2 − ∥ x t + 1 − x ∗ ∥ H ~ t 2 ) ⏟ R D + η 2 ∑ t = 1 T ∥ g t ∥ H ~ t − 1 2 ⏟ R G . (30) R(T) \le\underbrace{\frac{1}{2\eta}\sum_{t=1}^{T}\left(\lVert x_t-x^*\rVert_{\widetilde{H}_t}^2-\lVert x_{t+1}-x^*\rVert_{\widetilde{H}_t}^2\right)}_{R_D}+\underbrace{\frac{\eta}{2}\sum_{t=1}^{T}\lVert g_t\rVert_{\widetilde{H}_t^{-1}}^2}_{R_G}. \tag*{(30)} R ( T ) ≤ R D 2 η 1 t = 1 ∑ T ( ∥ x t − x ∗ ∥ H t 2 − ∥ x t + 1 − x ∗ ∥ H t 2 ) + R G 2 η t = 1 ∑ T ∥ g t ∥ H t − 1 2 . (30)
We first derive the bound of R D R_D R D .
∑ t = 1 T ( ∥ x t − x ∗ ∥ H ~ t 2 − ∥ x t + 1 − x ∗ ∥ H ~ t 2 ) = ∑ t = 1 T ∥ x t − x ∗ ∥ H ~ t − H ~ t − 1 2 + ∥ x 1 − x ∗ ∥ H ~ 0 2 = ∑ t = 1 T tr ( ( X t − X ∗ ) ⊤ ( L ~ t 1 / 2 − L ~ t − 1 1 / 2 ) ( X t − X ∗ ) ) + ∥ H ~ 0 ∥ 2 ∥ x 1 − x ∗ ∥ 2 ≤ ∑ t = 1 T tr ( ( X t − X ∗ ) ( X t − X ∗ ) ⊤ ( L ~ t 1 / 2 − L ~ t − 1 1 / 2 ) ) + ϵ D F 2 ≤ ∑ t = 1 T ∥ X t − X ∗ ∥ 2 2 tr ( L ~ t 1 / 2 − L ~ t − 1 1 / 2 ) + ϵ D F 2 ≤ D 2 2 tr ( L T 1 / 2 ) + ϵ D F 2 ≤ D 2 2 ( tr ( L T 1 / 2 ) + m ρ 1 : T L ) + ϵ D F 2 . (31) \begin{aligned}
\sum_{t=1}^{T}\left(\lVert x_t-x^*\rVert_{\widetilde{H}_t}^2-\lVert x_{t+1}-x^*\rVert_{\widetilde{H}_t}^2\right)
&=\sum_{t=1}^{T}\lVert x_t-x^*\rVert_{\widetilde{H}_t-\widetilde{H}_{t-1}}^2+\lVert x_1-x^*\rVert_{\widetilde{H}_0}^2\\
&=\sum_{t=1}^{T}\operatorname{tr}\left((X_t-X^*)^\top(\widetilde{L}_t^{1/2}-\widetilde{L}_{t-1}^{1/2})(X_t-X^*)\right)+\lVert\widetilde{H}_0\rVert_2\lVert x_1-x^*\rVert^2\\
&\le\sum_{t=1}^{T}\operatorname{tr}\left((X_t-X^*)(X_t-X^*)^\top(\widetilde{L}_t^{1/2}-\widetilde{L}_{t-1}^{1/2})\right)+\epsilon D_F^2\\
&\le\sum_{t=1}^{T}\lVert X_t-X^*\rVert_2^2\operatorname{tr}\left(\widetilde{L}_t^{1/2}-\widetilde{L}_{t-1}^{1/2}\right)+\epsilon D_F^2\\
&\le D_2^2\operatorname{tr}\left(L_T^{1/2}\right)+\epsilon D_F^2\\
&\le D_2^2\left(\operatorname{tr}\left(L_T^{1/2}\right)+m\sqrt{\rho_{1:T}^L}\right)+\epsilon D_F^2. \tag*{(31)}
\end{aligned} t = 1 ∑ T ( ∥ x t − x ∗ ∥ H t 2 − ∥ x t + 1 − x ∗ ∥ H t 2 ) = t = 1 ∑ T ∥ x t − x ∗ ∥ H t − H t − 1 2 + ∥ x 1 − x ∗ ∥ H 0 2 = t = 1 ∑ T tr ( ( X t − X ∗ ) ⊤ ( L t 1/2 − L t − 1 1/2 ) ( X t − X ∗ ) ) + ∥ H 0 ∥ 2 ∥ x 1 − x ∗ ∥ 2 ≤ t = 1 ∑ T tr ( ( X t − X ∗ ) ( X t − X ∗ ) ⊤ ( L t 1/2 − L t − 1 1/2 ) ) + ϵ D F 2 ≤ t = 1 ∑ T ∥ X t − X ∗ ∥ 2 2 tr ( L t 1/2 − L t − 1 1/2 ) + ϵ D F 2 ≤ D 2 2 tr ( L T 1/2 ) + ϵ D F 2 ≤ D 2 2 ( tr ( L T 1/2 ) + m ρ 1 : T L ) + ϵ D F 2 . (31)
where the first inequality is due to tr ( A B ) = tr ( B A ) \operatorname{tr}(AB)=\operatorname{tr}(BA) tr ( A B ) = tr ( B A ) and ∥ H ~ 0 ∥ 2 ∥ x 1 − x ∗ ∥ 2 ≤ ϵ D F 2 \lVert\widetilde{H}_0\rVert_2\lVert x_1-x^*\rVert^2\le\epsilon D_F^2 ∥ H 0 ∥ 2 ∥ x 1 − x ∗ ∥ 2 ≤ ϵ D F 2 , and the second inequality is due to tr ( A B ) ≤ ∥ A ∥ 2 tr ( B ) \operatorname{tr}(AB)\le\lVert A\rVert_2\operatorname{tr}(B) tr ( A B ) ≤ ∥ A ∥ 2 tr ( B ) for positive semi-definite matrices.
Combining (29) , (30) and (31) , and setting η = D 2 / 2 \eta= D_2/\sqrt{2} η = D 2 / 2 , we obtain the following guarantee for S-ASGO under the mirror descent framework
R ( T ) ≤ 1 2 η ( D 2 2 ( tr ( L T 1 / 2 ) + m ρ 1 : T L ) + ϵ D F 2 ) + η 2 tr ( L T 1 / 2 ) = O ( D 2 ( tr ( L T 1 / 2 ) + m ρ 1 : T L ) ) . \begin{aligned}
R(T) &\le\frac{1}{2\eta}\left(D_2^2\left(\operatorname{tr}\left(L_T^{1/2}\right)+m\sqrt{\rho_{1:T}^{L}}\right)+\epsilon D_F^2\right)+\frac{\eta}{2}\operatorname{tr}\left(L_T^{1/2}\right)\\
&= O\left(D_2\left(\operatorname{tr}\left(L_T^{1/2}\right)+m\sqrt{\rho_{1:T}^{L}}\right)\right).
\end{aligned} R ( T ) ≤ 2 η 1 ( D 2 2 ( tr ( L T 1/2 ) + m ρ 1 : T L ) + ϵ D F 2 ) + 2 η tr ( L T 1/2 ) = O ( D 2 ( tr ( L T 1/2 ) + m ρ 1 : T L ) ) .
which completes the proof of Theorem 8 .
Proof of Theorem 10
In this section, we present the proof for smooth loss functions. We introduce a lemma from the proof in An et al. [5 ] .
Lemma 23 Under Assumptions 5 and 6, it holds that
E [ ∥ ( ∑ t = 1 T ∇ f ( X t ) ∇ f ( X t ) T ) 1 / 2 ∥ ∗ ] ≤ ∥ L ∥ ∗ ∑ t = 1 T 2 ( f ( X t ) − f ( X ∗ ) ) , E [ ∥ ( ∑ t = 1 T N t N t T ) 1 / 2 ∥ ∗ ] ≤ T M ∥ V ∥ ∗ . \begin{aligned}
\mathbb{E}\left[\left\|\left(\sum_{t=1}^{T}\nabla f(X_t)\nabla f(X_t)^{\mathsf{T}}\right)^{1/2}\right\|_*\right]&\leq\sqrt{\|L\|_*\sum_{t=1}^{T}2\left(f(X_t)-f(X^*)\right)},\\
\mathbb{E}\left[\left\|\left(\sum_{t=1}^{T}N_tN_t^{\mathsf{T}}\right)^{1/2}\right\|_*\right]&\leq\sqrt{\frac{T}{M}}\|V\|_*.
\end{aligned} E ( t = 1 ∑ T ∇ f ( X t ) ∇ f ( X t ) T ) 1/2 ∗ E ( t = 1 ∑ T N t N t T ) 1/2 ∗ ≤ ∥ L ∥ ∗ t = 1 ∑ T 2 ( f ( X t ) − f ( X ∗ ) ) , ≤ M T ∥ V ∥ ∗ .
Primal-dual framework. We first present the proof for the primal-dual framework. We have
\begin{aligned}
\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^*)\right]
&\leq\frac{2A_4D_F}{T}\left(\operatorname{tr}\left(L_T^{1/2}\right)+\frac{\sqrt{2}D_F}{2T}\left(\sqrt{\rho_{1:T}^{L}}+\epsilon\right)\right)\\
&=\frac{2A_4D_F}{T}\left\|\left(\sum_{t=1}^{T}G_t^X(G_t^X)^{\mathsf{T}}\right)^{1/2}\right\|_*+\frac{\sqrt{2}D_F}{2T}\left(\sqrt{\rho_{1:T}^{L}}+\epsilon\right)\\
&\leq\frac{2\sqrt{2}A_4D_F}{T}\left\|\left(\sum_{t=1}^{T}\left(\nabla f(X_t)(\nabla f(X_t))^{\mathsf{T}}+N_tN_t^{\mathsf{T}}\right)\right)^{1/2}\right\|_*+\frac{\sqrt{2}D_F}{2T}\left(\sqrt{\rho_{1:T}^{L}}+\epsilon\right)\\
&\leq\frac{2\sqrt{2}A_4D_F}{T}\left\|\left(\sum_{t=1}^{T}\nabla f(X_t)(\nabla f(X_t))^{\mathsf{T}}\right)^{1/2}\right\|_*+\frac{2\sqrt{2}A_4D_F}{T}\left\|\left(\sum_{t=1}^{T}N_tN_t^{\mathsf{T}}\right)^{1/2}\right\|_*\\
&\qquad+\frac{\sqrt{2}D_F}{2T}\left(\sqrt{\rho_{1:T}^{L}}+\epsilon\right)\\
&\leq\frac{4A_4D_F}{T}\sqrt{\|L\|_*\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^*)\right]+\frac{2\sqrt{2}A_4D_F\|V\|_*}{\sqrt{MT}}+\frac{\sqrt{2}D_F}{2T}\left(\sqrt{\rho_{1:T}^{L}}+\epsilon\right).
\end{aligned}}
If we denote a = 1 T ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] a=\sqrt{\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^*)\right]} a = T 1 ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] , we can rewrite it as
a 2 ≤ b a + c , a^2 \le ba+c, a 2 ≤ ba + c ,
where b = 4 A 4 D F ∥ L ∥ ∗ T b=\frac{4A_4D_F\sqrt{\|L\|_*}}{\sqrt{T}} b = T 4 A 4 D F ∥ L ∥ ∗ , c = 2 2 A 4 D F ∥ V ∥ ∗ M T + D F ( ρ 1 : T L + ϵ ) T c=\frac{2\sqrt{2}A_4D_F\|V\|_*}{\sqrt{MT}}+\frac{D_F\left(\sqrt{\rho^L_{1:T}}+\epsilon\right)}{T} c = M T 2 2 A 4 D F ∥ V ∥ ∗ + T D F ( ρ 1 : T L + ϵ ) . By using a 2 ≤ 2 b 2 + 2 c a^2\le2b^2+2c a 2 ≤ 2 b 2 + 2 c , we can derive
1 T ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] ≤ 16 A 4 2 D F 2 ∥ L ∥ ∗ T + 4 2 A 4 D F ∥ V ∥ ∗ M T + 2 2 D F ( ρ 1 : T L + ϵ ) 2 T . \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^*)\right]\le\frac{16A_4^2D_F^2\|L\|_*}{T}+\frac{4\sqrt{2}A_4D_F\|V\|_*}{\sqrt{MT}}+\frac{2\sqrt{2}D_F\left(\sqrt{\rho^L_{1:T}}+\epsilon\right)}{2T}. T 1 t = 1 ∑ T E [ f ( X t ) − f ( X ∗ ) ] ≤ T 16 A 4 2 D F 2 ∥ L ∥ ∗ + M T 4 2 A 4 D F ∥ V ∥ ∗ + 2 T 2 2 D F ( ρ 1 : T L + ϵ ) .
Mirror-descent framework. It is not hard to verify that, for S-ASGO under the mirror descent framework, by using Theorem 9 , we can obtain
1 T ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] ≤ 2 D 2 T tr ( L T 1 / 2 ) + 2 m D 2 2 T ρ 1 : T L + 2 ϵ D F 2 2 T D 2 ≤ 2 D 2 T ∥ ( ∑ t = 1 T ∇ f ( X t ) ( ∇ f ( X t ) ) ⊤ ) 1 / 2 ∥ ∗ + 2 D 2 T ∥ ( ∑ t = 1 T N t N t ⊤ ) 1 / 2 ∥ ∗ + 2 D 2 m 2 T ρ 1 : T L + 2 ϵ D F 2 2 T D 2 ≤ 2 D 2 T ∥ L ∥ ∗ ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] + 2 D 2 ∥ V ∥ ∗ M T + 2 m D 2 2 T ρ 1 : T L + 2 ϵ D F 2 2 T D 2 . \begin{aligned}
\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^*)\right]
&\le\frac{\sqrt{2}D_2}{T}\operatorname{tr}\left(L_T^{1/2}\right)+\frac{\sqrt{2m}D_2}{2T}\sqrt{\rho^L_{1:T}}+\frac{\sqrt{2}\epsilon D_F^2}{2TD_2}\\
&\le\frac{2D_2}{T}\left\|\left(\sum_{t=1}^{T}\nabla f(X_t)(\nabla f(X_t))^{\top}\right)^{1/2}\right\|_*+\frac{\sqrt{2}D_2}{T}\left\|\left(\sum_{t=1}^{T}N_tN_t^{\top}\right)^{1/2}\right\|_*\\
&\quad+\frac{\sqrt{2}D_2m}{2T}\sqrt{\rho^L_{1:T}}+\frac{\sqrt{2}\epsilon D_F^2}{2TD_2}\\
&\le\frac{2D_2}{T}\sqrt{\|L\|_*\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^*)\right]}+\frac{\sqrt{2}D_2\|V\|_*}{\sqrt{MT}}+\frac{\sqrt{2m}D_2}{2T}\sqrt{\rho^L_{1:T}}+\frac{\sqrt{2}\epsilon D_F^2}{2TD_2}.
\end{aligned} T 1 t = 1 ∑ T E [ f ( X t ) − f ( X ∗ ) ] ≤ T 2 D 2 tr ( L T 1/2 ) + 2 T 2 m D 2 ρ 1 : T L + 2 T D 2 2 ϵ D F 2 ≤ T 2 D 2 ( t = 1 ∑ T ∇ f ( X t ) ( ∇ f ( X t ) ) ⊤ ) 1/2 ∗ + T 2 D 2 ( t = 1 ∑ T N t N t ⊤ ) 1/2 ∗ + 2 T 2 D 2 m ρ 1 : T L + 2 T D 2 2 ϵ D F 2 ≤ T 2 D 2 ∥ L ∥ ∗ t = 1 ∑ T E [ f ( X t ) − f ( X ∗ ) ] + M T 2 D 2 ∥ V ∥ ∗ + 2 T 2 m D 2 ρ 1 : T L + 2 T D 2 2 ϵ D F 2 .
If we denote a = 1 T ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] a=\sqrt{\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^*)\right]} a = T 1 ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] , we can rewrite it as
a 2 ≤ b a + c , a^2\le ba+c, a 2 ≤ ba + c ,
where b = 2 D 2 ∥ L ∥ ∗ T b=\frac{2D_2\sqrt{\|L\|_*}}{\sqrt{T}} b = T 2 D 2 ∥ L ∥ ∗ , c = 2 D 2 ∥ V ∥ ∗ M T + 2 m D 2 ρ 1 : T L T + 2 ϵ D F 2 2 T D 2 c=\frac{\sqrt{2}D_2\|V\|_*}{\sqrt{MT}}+\frac{\sqrt{2m}D_2\sqrt{\rho^L_{1:T}}}{T}+\frac{\sqrt{2}\epsilon D_F^2}{2TD_2} c = M T 2 D 2 ∥ V ∥ ∗ + T 2 m D 2 ρ 1 : T L + 2 T D 2 2 ϵ D F 2 . By using a 2 ≤ 2 b 2 + 2 c a^2\le2b^2+2c a 2 ≤ 2 b 2 + 2 c , we can derive
1 T ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] ≤ O ( D 2 2 ∥ L ∥ ∗ T + D 2 ∥ V ∥ ∗ M T + m D 2 ρ 1 : T L T ) . \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^*)\right]\le O\left(\frac{D_2^2\|L\|_*}{T}+\frac{D_2\|V\|_*}{\sqrt{MT}}+\frac{mD_2\sqrt{\rho^L_{1:T}}}{T}\right). T 1 t = 1 ∑ T E [ f ( X t ) − f ( X ∗ ) ] ≤ O T D 2 2 ∥ L ∥ ∗ + M T D 2 ∥ V ∥ ∗ + T m D 2 ρ 1 : T L .
Experiments
In this section, we assess the performance of the proposed methods via numerical experiments, ranging from online classification and image classification to the pretraining of language models. All experiments are conducted on a server equipped with 4 NVIDIA RTX 4090 GPUs and an Intel Xeon Platinum 8358P CPU (2.60 GHz).
Figure 1 (PDF p. 39). Results for the Gisette dataset.
Online Classification
First, we perform online classification to evaluate the performance of our methods with two real-world datasets from the LIBSVM (Chang and Lin, [8 ] ) repository: Gisette and Epsilon, which are high-dimensional and dense. In particular, the Gisette dataset contains 6000 training samples and 1000 testing samples, each with 5000 features. The Epsilon dataset consists of 400, 000 training samples and 100, 000 testing samples, each with 2000 features.
Experiment Setup. In each round t ∈ [ T ] t \in[T] t ∈ [ T ] , a batch of data { ( w t , 1 , y t , 1 ) , … , ( w t , n , y t , n ) } \{(\mathbf{w}_{t,1}, y_{t,1}), \ldots,(\mathbf{w}_{t,n}, y_{t,n})\} {( w t , 1 , y t , 1 ) , … , ( w t , n , y t , n )} arrives, where ( w t , i , y t , i ) ∈ [ − 1 , 1 ] d × { − 1 , 1 } (\mathbf{w}_{t,i}, y_{t,i}) \in[-1,1]^d \times\{-1,1\} ( w t , i , y t , i ) ∈ [ − 1 , 1 ] d × { − 1 , 1 } , i = 1 , … , n i = 1, \ldots, n i = 1 , … , n . The online learner aims to predict a linear model x t \mathbf{x}_t x t and suffers the hinge loss f t ( x t ) = 1 n ∑ i = 1 n max { 0 , 1 − y t , i x t T w t , i } f_t(\mathbf{x}_t) = \frac{1}{n}\sum_{i=1}^{n}\max\{0,1-y_{t,i}\mathbf{x}_t^{T}\mathbf{w}_{t,i}\} f t ( x t ) = n 1 ∑ i = 1 n max { 0 , 1 − y t , i x t T w t , i } . For the Gisette dataset, we set the batch size n = 32 n = 32 n = 32 , the sketching size τ = 50 \tau= 50 τ = 50 to be 1% of the original dimensionality, and T = 2000 T = 2000 T = 2000 . For the Epsilon dataset, we set the batch size n = 128 n = 128 n = 128 , τ = 20 \tau= 20 τ = 20 and T = 5000 T = 5000 T = 5000 . We compare our methods with ADA-DIAG (Duchi et al., [14 ] ), RADAGRAD (Krummenacher et al., [37 ] ), FD-SON (Luo et al., [44 ] ), ADA-FFD under two frameworks (Wan and Zhang, [61 ] ) and S-ADA (Feinberg et al., [19 ] ).
Experiment Results. Following Duchi et al. [14 ] , we adopt the test accuracy to compare different methods. To better demonstrate the improvements of our methods, we additionally plot the training loss and runtime of various methods. From Figure 1 and Figure 2 , 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.
Figure 2. Results for the Epsilon dataset.
Image Classification
In this section, we conduct numerical experiments on multi-class image classification tasks to evaluate the performance of our proposed methods. We compare FTFSL, FTSL-Shampoo, S-ASGO under the mirror descent framework (S-ASGO (M)) and S-ASGO under the primal-dual framework (S-ASGO (P)) with several baseline methods, including ADA-DIAG (Duchi et al., [14 ] ), ADA-FFD under primal-dual framework (Wan and Zhang, [61 ] ), S-ADA (Feinberg et al., [19 ] ), Shampoo (Gupta et al., [26 ] ), S-Shampoo (Feinberg et al., [19 ] ) and ASGO (An et al., [5 ] ). The experiments involve training ResNet18 and ResNet34 models (He et al., [30 ] ) on the CIFAR-10 and CIFAR-100 datasets (Krizhevsky, [36 ] ), respectively, for 200 epochs with a batch size of 128.
A direct implementation of FD requires a full SVD of the sketching matrix at every round, which becomes the dominant computational bottleneck in high-dimensional regimes. SVD remains notoriously difficult to parallelize on modern accelerators, and its wall-clock cost in practice is often orders of magnitude higher than its theoretical O ( τ 2 d ) O(\tau^{2}d) O ( τ 2 d ) complexity would suggest. To address this, ASGO (An et al., [5 ] ) circumvents the SVD by computing the preconditioner M − 1 / 2 M^{-1/2} M − 1/2 directly through Newton–Schulz iterations or the Polar Express (Amsel et al., [4 ] ), albeit at the cost of additional memory for the intermediate iterates. However, this trick cannot be extended to our method, since our algorithm requires both the eigenvalues and the eigenvectors of the matrix at every round. To render our methods practical at scale, we instead adopt the ARO scheme (Gong et al., [24 ] ), which computes the eigenvectors of the matrix and then recovers the eigenvalues from them. This substantially reduces the per-iteration cost while preserving the empirical performance of our methods.
Consider the problem of computing the leading τ \tau τ left singular vectors of a matrix A ∈ R p × τ A \in\mathbb{R}^{p \times\tau} A ∈ R p × τ with p ≫ τ p \gg\tau p ≫ τ , given a previous approximation U ^ p r e v ∈ R p × τ \hat{U}^{\mathrm{prev}} \in\mathbb{R}^{p \times\tau} U ^ prev ∈ R p × τ from a closely related iterate. Following Gong et al. [24 ] , we approximate the leading left singular subspace by
U ^ = QR ( A ⋅ f R N ( U ^ p r e v ) T A ) T , (32) \hat{U} = \operatorname{QR}\left(A \cdot f_{\mathrm{RN}}\left(\hat{U}^{\mathrm{prev}}\right)^{\mathsf{T}} A\right)^{\mathsf{T}}, \tag*{(32)} U ^ = QR ( A ⋅ f RN ( U ^ prev ) T A ) T , (32)
where QR ( ⋅ ) \operatorname{QR}(\cdot) QR ( ⋅ ) denotes the orthonormal factor of the thin QR decomposition, and f R N ( ⋅ ) : R τ × τ → R τ × τ f_{\mathrm{RN}}(\cdot) : \mathbb{R}^{\tau\times\tau} \to\mathbb{R}^{\tau\times\tau} f RN ( ⋅ ) : R τ × τ → R τ × τ is the row-normalization function defined as
f R N ( X ) = τ Q ( X ) − 1 X , Q ( X ) = Diag ( ∥ X : , 1 ∥ , … , ∥ X : , τ ∥ ) . (33) f_{\mathrm{RN}}(X) = \sqrt{\tau}Q(X)^{-1}X,\qquad Q(X) = \operatorname{Diag}(\lVert X_{:,1}\rVert,\ldots,\lVert X_{:,\tau}\rVert). \tag*{(33)} f RN ( X ) = τ Q ( X ) − 1 X , Q ( X ) = Diag (∥ X : , 1 ∥ , … , ∥ X : , τ ∥) . (33)
After obtaining U ^ \hat{U} U ^ , we rotate A A A into this approximate left singular subspace and compute
X ^ = U ^ T A . (34) \hat{X} = \hat{U}^{\mathsf{T}}A. \tag*{(34)} X ^ = U ^ T A . (34)
Following the same row-norm interpretation as in ARO, the singular values are estimated by
σ ^ i = ∥ X ^ i , : ∥ , i = 1 , … , τ . (35) \hat{\sigma}_{i} = \lVert\hat{X}_{i,:}\rVert,\qquad i=1,\ldots,\tau. \tag*{(35)} σ ^ i = ∥ X ^ i , : ∥ , i = 1 , … , τ . (35)
Two ingredients are central to the efficiency of this scheme. First, the warm start U ^ p r e v \hat{U}^{\mathrm{prev}} U ^ prev allows a single power-iteration step to suffice whenever A A A varies smoothly across consecutive invocations of the procedure. Second, the QR factorization is realized through the Shifted Cholesky-QR (SCQR) [20 ] variant: for an input matrix C ∈ R p × τ C \in\mathbb{R}^{p \times\tau} C ∈ R p × τ , one forms the regularized Gram matrix P = C ⊤ C + λ I τ × τ P = C^{\top}C + \lambda I_{\tau\times\tau} P = C ⊤ C + λ I τ × τ , computes its Cholesky factorization P = L L ⊤ P = LL^{\top} P = L L ⊤ , and obtains the orthonormal basis as Q = C L − 1 Q = CL^{-1} Q = C L − 1 .
Application to FD. We instantiate the above procedure with A = B t A = B_t A = B t and U ^ p r e v = U ^ t − 1 \hat{U}^{\mathrm{prev}} = \hat{U}_{t-1} U ^ prev = U ^ t − 1 , where U ^ t − 1 \hat{U}_{t-1} U ^ t − 1 denotes the approximate left singular subspace maintained from the previous round. The output U ^ t \hat{U}_t U ^ t serves as an approximation of the leading τ \tau τ left singular vectors of B t B_t B t and the FD truncation step proceeds on the recovered singular values Σ ^ t \hat{\Sigma}_t Σ ^ t . Since U ^ t ∈ R d × τ \hat{U}_t \in\mathbb{R}^{d \times\tau} U ^ t ∈ R d × τ has the same shape as B t B_t B t , the additional storage incurred by the procedure is of the same order as that of the sketching matrix itself, and thus does not affect the overall space complexity of FD.
Experimental Setup. For sketching-based methods, we set the sketching size τ \tau τ according to the dimensionality of the gradient,
τ = min { ⌈ d × ω ⌉ , 50 } , \tau= \min\{\lceil d \times\omega\rceil, 50\}, τ = min {⌈ d × ω ⌉ , 50 } ,
where d d d denotes the total number of parameters in the layer and ω \omega ω is the sketching ratio. For methods that exploit the matrix structure, which are more memory-efficient, we set τ = ⌈ ω × d i ⌉ \tau= \lceil\omega\times d_i \rceil τ = ⌈ ω × d i ⌉ along each dimension, where d i d_i d i is the size of the i i i -th dimension of the gradient. We use a sketching ratio of ω = 0.1 \omega= 0.1 ω = 0.1 in all experiments. For a fair comparison, we disable momentum and apply only learning rate decay. We use the original version of ASGO for this task.
Experimental Results. We first examine the wall-clock benefit of the approximate SVD technique. Figure 3 reports the training time during ResNet18 training on CIFAR-10, where the SVD of S-Shampoo is computed via the original PyTorch implementation. Across all training iterations, our approximation delivers a substantial reduction in the per-iteration cost.
Figure 3. Running time of two types of SVD implementation.
Figure 4 and Figure 5 display the training loss and test accuracy against the number of iterations on CIFAR-10 and CIFAR-100, respectively. In both metrics, FTSL-Shampoo attains performance comparable to that of the full Shampoo, while substantially reducing memory consumption and running time, in line with our theoretical guarantees. Meanwhile, FTFSL converges faster than competing sketching-based methods, corroborating the effectiveness of the primal-dual formulation. We further report the per-iteration running time of each method: FTFSL exhibits a clear reduction over S-ADA, consistent with the improved time complexity. Finally, although S-ASGO maintains only a single preconditioner along one axis of the gradient, it remains competitive in both training loss and test accuracy with its two-preconditioner counterpart FTSL-Shampoo, and achieves a further reduction in wall-clock time. This observation is consistent with our theoretical analysis, which predicts that one-sided preconditioning suffices to capture the dominant curvature information while lowering the per-iteration cost.
Figure 4. Results for the CIFAR-10 dataset.
Figure 5. Results for the CIFAR-100 dataset.
Figure 6. Results of the running time.
Algorithm 8 A Practical Implementation of S-ASGO
Require: Learning rate schedule { η t } t \{\eta_t\}_t { η t } t , sketching size τ \tau τ , ϵ > 0 \epsilon> 0 ϵ > 0 , momentum parameters β 1 , β 2 ∈ [ 0 , 1 ) \beta_1,\beta_2 \in[0,1) β 1 , β 2 ∈ [ 0 , 1 ) , batch size M M M
Initialize X 1 = 0 m × n X_1 = \mathbf{0}_{m \times n} X 1 = 0 m × n , L ^ 0 = 0 m × τ \hat{L}_0 = \mathbf{0}_{m \times\tau} L ^ 0 = 0 m × τ , L ~ 0 = 0 m × m \tilde{L}_0 = \mathbf{0}_{m \times m} L ~ 0 = 0 m × m , G 0 X = 0 m × n G_0^X = \mathbf{0}_{m \times n} G 0 X = 0 m × n
for t = 1 t = 1 t = 1 to T T T do
Sample a batch of M M M samples uniformly
Query the gradient G t X = 1 M ∑ i = 1 M ∇ f ( X t ; ξ t , i ) G_t^X = \frac{1}{M}\sum_{i=1}^{M}\nabla f(X_t;\xi_{t,i}) G t X = M 1 ∑ i = 1 M ∇ f ( X t ; ξ t , i )
Update M t = β 1 M t − 1 + ( 1 − β 1 ) G t X M_t = \beta_1 M_{t-1} + (1-\beta_1)G_t^X M t = β 1 M t − 1 + ( 1 − β 1 ) G t X
Send β 2 L ^ t − 1 \beta_2\hat{L}_{t-1} β 2 L ^ t − 1 and ( 1 − β 2 ) ( G t X ) ⊤ (1-\beta_2)(G_t^X)^\top ( 1 − β 2 ) ( G t X ) ⊤ to Algorithm 5 and receive L ^ t , ρ t L \hat{L}_t,\rho_t^L L ^ t , ρ t L
Denote L ~ t = L ^ t L ^ t ⊤ + ( ϵ + ρ t L ) I m × m \tilde{L}_t = \hat{L}_t\hat{L}_t^\top+ (\epsilon+\rho_t^L)I_{m \times m} L ~ t = L ^ t L ^ t ⊤ + ( ϵ + ρ t L ) I m × m
Update X t + 1 = X t − η t 0.2 m n L ~ t − 1 / 2 M t ∥ L ~ t − 1 / 2 M t ∥ F X_{t+1} = X_t - \eta_t \frac{0.2\sqrt{mn}\tilde{L}_t^{-1/2}M_t}{\left\|\tilde{L}_t^{-1/2}M_t\right\|_F} X t + 1 = X t − η t L ~ t − 1/2 M t F 0.2 mn L ~ t − 1/2 M t
end for
Language Model Pretraining
In this section, we empirically evaluate the efficiency of S-ASGO on a large language model (LLM) pretraining task. We compare our method with Muon [33 ] , Shampoo [26 ] , ASGO [5 ] , and AdamW [35 , 43 ] . All experiments are implemented based on the official implementation of ASGO.1
Following prior work [5 , 66 ] , we develop a practical variant of S-ASGO that adopts several modifications commonly used in modern optimizers, presented in Algorithm 8. Specifically, we maintain the preconditioner with an exponential moving average and incorporate momentum. We use an approximate SVD to decompose the sketching matrix, which reduces the per-step computation. Moreover, we normalize the update of S-ASGO by its root mean square (RMS) norm and then multiply it by 0.2, so that its RMS norm matches that of the Adam update [41 ] .
Experimental Setup. We adopt the configuration of the GPT-2 model from Karpathy (2022), which consists of 12 Transformer layers, 12 attention heads, and an embedding dimension of 768. We train on the OpenWebText dataset for a total of 2400 steps, using
Distributed Data Parallel (DDP) across 4 NVIDIA RTX 4090 GPUs. The learning rate follows a linear warmup over the first 200 steps and is then decayed by cosine annealing to a final value of 10 − 5 10^{-5} 1 0 − 5 . We consider two settings, one with a sequence length of 256 tokens, a batch size of 32 and gradient accumulation over 8 steps, and the other with a sequence length of 512 tokens, a batch size of 16 and gradient accumulation over 32 steps. Following common practice [33 , 5 ] , we train the 1D and embedding-layer parameters with AdamW [43 ] . For S-ASGO, we set
τ = max { ⌈ m × ω ⌉ , 2 } , \tau= \max\{\lceil m \times\omega\rceil, 2\}, τ = max {⌈ m × ω ⌉ , 2 } ,
where ω \omega ω is the sketching ratio and ω = 0.2 \omega= 0.2 ω = 0.2 in our experiments. For the other methods, we follow the implementation from An et al. [5 ] . For the hyperparameters, For hyperparameters, we adopt the recommended settings from An et al. [5 ] and perform a grid search for S-ASGO (M). Specifically, we set the learning rate 0.01 for AdamW and 0.005 for S-ASGO (M), with β 1 = 0.9 \beta_1 = 0.9 β 1 = 0.9 and β 2 = 0.8 \beta_2 = 0.8 β 2 = 0.8 .
Experimental Results. We evaluate S-ASGO (M) against several baselines on the GPT-2 pretraining task. As shown in Figure 7 and Figure 8 , S-ASGO (M) attains performance comparable to that of Muon and ASGO. More importantly, S-ASGO (M) maintains a much smaller preconditioner than ASGO, because it keeps only a low-rank preconditioning matrix rather than the full one. Consequently, its optimizer memory is governed by the sketching size τ \tau τ rather than by the full preconditioner dimension, which reduces the memory footprint while leaving the pretraining loss essentially unchanged. These results show that the sketched preconditioner retains the benefit of axis-wise preconditioning at a substantially lower memory cost.
Figure 7. Results for GPT-2 Pretraining with a sequence length of 512.
Figure 8. Results for GPT-2 Pretraining with a sequence length of 256.
Ablation Study on the Sketching Size
In this section, we study the sensitivity of our methods to the sketching size τ \tau τ . As τ \tau τ controls the rank of the FD matrix, it governs a trade-off between approximation quality and cost. On one hand, a larger τ \tau τ yields a smaller discarded mass ρ 1 : T \rho_{1:T} ρ 1 : T and hence a tighter sketching-error term in our regret bounds. On the other hand, a smaller τ \tau τ lowers the per-round memory and running time. To examine this trade-off empirically, we adopt the same experimental setup as the GPT-2 pretraining in § 7.3 .
As shown in Figure 9 , a larger sketching ratio improves the performance on the GPT-2 pretraining task, with the gain becoming marginal once the ratio exceeds 0.2. This indicates that a sketching ratio of 0.2 can capture the principal components of the gradients. Although a smaller ratio of 0.1 performs slightly worse on this task, it is already sufficient on the CIFAR-10 and CIFAR-100 tasks. We conjecture that this difference stems from the rank of the gradients in the two domains. In image classification, only a small portion of each image is relevant to the label, so the gradients tend to be low-rank, and a small τ \tau τ already captures them. In contrast, the gradients in language modeling exhibit a higher effective rank, which calls for a larger τ \tau τ .
Figure 9. Ablation Study on the Sketching Size.
Conclusion and Future Work
In this paper, we investigate adaptive preconditioned optimization methods via frequent directions (FD) and develop several efficient adaptive optimization algorithms. We first introduce FTSL, which achieves a tighter dimension-free regret bound of O ( tr ( G T 1 / 2 ) + ρ 1 : T ) O(\operatorname{tr}(G_T^{1/2})+\sqrt{\rho_{1:T}}) O ( tr ( G T 1/2 ) + ρ 1 : T ) by integrating FD with ADA-FULL under the primal-dual framework. We then propose an accelerated variant of FTSL that reduces the time complexity to O ( τ d ) O(\tau d) O ( τ d ) while preserving the same order regret bound. We next consider a more general setting of optimization over matrix-valued decision variables, where the matrix structure can be exploited to design more efficient adaptive preconditioners. In this setting, we first adapt FD to Shampoo under the primal-dual framework, leading to an improved dimension-free regret bound. We further propose S-ASGO and analyze it under both the mirror descent and primal-dual frameworks, establishing improved regret guarantees with lower computational complexity. Furthermore, we extend our analysis to offline stochastic optimization for convex non-smooth losses and convex smooth losses. Finally, we design practical variants of our methods and verify the effectiveness and efficiency of all methods empirically.
Two directions are particularly worth pursuing in future work. First, for sparse gradient matrices, the sparse frequent directions technique [21 ] attains a better time complexity than standard FD. This suggests a natural way to further accelerate our algorithms when the observed gradients are sparse. Second, our theoretical analysis is developed for convex loss functions in the offline stochastic optimization setting, whereas the loss functions of many practical machine learning applications are inherently non-convex. Developing an analysis for non-convex smooth objectives remains an important question.
Proof of Theorem 4
The proof of Theorem 4 can be derived from the proof of Theorems 2 and 3. According to Assumption 1, we have
1 T ∑ t = 1 T E [ f ( x t ) − f ( x ∗ ) ] ≤ 1 T ∑ t = 1 T E [ ⟨ g t , x t − x ∗ ⟩ ] (36) \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(x_t)-f(x^*)\right]\leq\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[\langle g_t,x_t-x^*\rangle\right] \tag*{(36)} T 1 t = 1 ∑ T E [ f ( x t ) − f ( x ∗ ) ] ≤ T 1 t = 1 ∑ T E [ ⟨ g t , x t − x ∗ ⟩ ] (36)
which means that we can derive the convergence rate by using the regret bound of the online methods. Therefore, by incorporating Theorems 2 and 3 into (36) , we can obtain Theorem 4.
Proof of Theorem 9
The proof of Theorem 9 can be derived from the proofs of Theorems 7 and 8 . According to Assumption 1, we have
1 T ∑ t = 1 T E [ f ( X t ) − f ( X ∗ ) ] ≤ 1 T ∑ t = 1 T E [ ⟨ G ^ t X , X t − X ∗ ⟩ ] (37) \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[f(X_t)-f(X^*)\right]\leq\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\left[\left\langle\widehat{G}_t^X,X_t-X^*\right\rangle\right] \tag*{(37)} T 1 t = 1 ∑ T E [ f ( X t ) − f ( X ∗ ) ] ≤ T 1 t = 1 ∑ T E [ ⟨ G t X , X t − X ∗ ⟩ ] (37)
which means that we can derive the convergence rate by using the regret bound of the online methods. Therefore, by incorporating Theorems 7 and 8 into (37) , we can obtain Theorem 9 .
Calculation of G ~ t − 1 / 2 \widetilde{G}_t^{-1/2} G t − 1/2
In FTSL, we need to calculate G ~ t − 1 / 2 \widetilde{G}_t^{-1/2} G t − 1/2 , which cannot be directly derived from the Woodbury formula [27 ] . We provide the following process.
Assume that U t ⊥ U_t^\perp U t ⊥ is the complementary subspace of U t ∈ R d × τ U_t\in\mathbb{R}^{d\times\tau} U t ∈ R d × τ , then we have I d × d = U t U t ⊤ + U t ⊥ ( U t ⊥ ) ⊤ I_{d\times d}=U_tU_t^\top+U_t^\perp(U_t^\perp)^\top I d × d = U t U t ⊤ + U t ⊥ ( U t ⊥ ) ⊤ . We denote diag ( λ [ 1 : τ ] ( t ) − λ τ ( t ) ) = Σ t ∈ R τ × τ \operatorname{diag}(\lambda_{[1:\tau]}^{(t)}-\lambda_{\tau}^{(t)})=\Sigma_t\in\mathbb{R}^{\tau\times\tau} diag ( λ [ 1 : τ ] ( t ) − λ τ ( t ) ) = Σ t ∈ R τ × τ and have
ρ 1 : t I d × d + U t Σ t U t ⊤ = U t ( Σ t + ρ 1 : t I τ × τ ) U t ⊤ + ρ 1 : t U t ⊥ ( U t ⊥ ) ⊤ \rho_{1:t}I_{d\times d}+U_t\Sigma_tU_t^\top=U_t(\Sigma_t+\rho_{1:t}I_{\tau\times\tau})U_t^\top+\rho_{1:t}U_t^\perp(U_t^\perp)^\top ρ 1 : t I d × d + U t Σ t U t ⊤ = U t ( Σ t + ρ 1 : t I τ × τ ) U t ⊤ + ρ 1 : t U t ⊥ ( U t ⊥ ) ⊤
U t ( Σ t + ρ 1 : t I τ × τ ) U t ⊤ = ρ 1 : t I d × d + U t Σ t U t ⊤ − ρ 1 : t U t ⊥ ( U t ⊥ ) ⊤ . U_t(\Sigma_t+\rho_{1:t}I_{\tau\times\tau})U_t^\top=\rho_{1:t}I_{d\times d}+U_t\Sigma_tU_t^\top-\rho_{1:t}U_t^\perp(U_t^\perp)^\top. U t ( Σ t + ρ 1 : t I τ × τ ) U t ⊤ = ρ 1 : t I d × d + U t Σ t U t ⊤ − ρ 1 : t U t ⊥ ( U t ⊥ ) ⊤ .
Then we can get
ρ 1 : t I d × d + U t Σ t U t ⊤ = U t ( Σ t + ρ 1 : t I τ × τ ) U t ⊤ + ρ 1 : t U t ⊥ ( U t ⊥ ) ⊤ = [ U t ; U t ⊥ ] Σ t ′ [ U t ; U t ⊥ ] ⊤ , \rho_{1:t}I_{d\times d}+U_t\Sigma_tU_t^\top=U_t(\Sigma_t+\rho_{1:t}I_{\tau\times\tau})U_t^\top+\rho_{1:t}U_t^\perp(U_t^\perp)^\top=[U_t;U_t^\perp]\Sigma'_t[U_t;U_t^\perp]^\top, ρ 1 : t I d × d + U t Σ t U t ⊤ = U t ( Σ t + ρ 1 : t I τ × τ ) U t ⊤ + ρ 1 : t U t ⊥ ( U t ⊥ ) ⊤ = [ U t ; U t ⊥ ] Σ t ′ [ U t ; U t ⊥ ] ⊤ ,
where
Σ t ′ = [ Σ t + ρ 1 : t I τ × τ 0 0 ρ 1 : t I d − τ × d − τ ] . \Sigma'_t=
\begin{bmatrix}
\Sigma_t+\rho_{1:t}I_{\tau\times\tau} & 0\\
0 & \rho_{1:t}I_{d-\tau\times d-\tau}
\end{bmatrix}. Σ t ′ = [ Σ t + ρ 1 : t I τ × τ 0 0 ρ 1 : t I d − τ × d − τ ] .
Therefore, we have
ρ 1 : t I d × d + U t Σ t U t T = U t Σ t + ρ 1 : t I τ × τ U t T + ρ 1 : t U t ⊥ ( U t ⊥ ) T = ρ 1 : t I d × d + U t ( Σ t + ρ 1 : t I τ × τ − ρ 1 : t I τ × τ ) U t T . \sqrt{\rho_{1:t} I_{d\times d} + U_t \Sigma_t U_t^{\mathsf T}} = U_t \sqrt{\Sigma_t + \rho_{1:t} I_{\tau\times\tau}} U_t^{\mathsf T} + \sqrt{\rho_{1:t}} U_t^\perp(U_t^\perp)^{\mathsf T}
= \sqrt{\rho_{1:t}} I_{d\times d} + U_t \left(\sqrt{\Sigma_t + \rho_{1:t} I_{\tau\times\tau}} - \sqrt{\rho_{1:t} I_{\tau\times\tau}}\right) U_t^{\mathsf T}. ρ 1 : t I d × d + U t Σ t U t T = U t Σ t + ρ 1 : t I τ × τ U t T + ρ 1 : t U t ⊥ ( U t ⊥ ) T = ρ 1 : t I d × d + U t ( Σ t + ρ 1 : t I τ × τ − ρ 1 : t I τ × τ ) U t T .
By applying the Woodbury formula, we can derive
( ρ 1 : t I d × d + U t Σ t U t T ) − 1 / 2 = 1 ρ 1 : t ( I d × d − U t ( Σ t + ρ 1 : t I τ × τ ) − 1 ( Σ t + ρ 1 : t I τ × τ − ρ 1 : t I τ × τ ) U t T ) . \left(\rho_{1:t} I_{d\times d} + U_t \Sigma_t U_t^{\mathsf T}\right)^{-1/2}
= \frac{1}{\sqrt{\rho_{1:t}}} \left(I_{d\times d} - U_t \left(\sqrt{\Sigma_t + \rho_{1:t} I_{\tau\times\tau}}\right)^{-1} \left(\sqrt{\Sigma_t + \rho_{1:t} I_{\tau\times\tau}} - \sqrt{\rho_{1:t} I_{\tau\times\tau}}\right) U_t^{\mathsf T}\right). ( ρ 1 : t I d × d + U t Σ t U t T ) − 1/2 = ρ 1 : t 1 ( I d × d − U t ( Σ t + ρ 1 : t I τ × τ ) − 1 ( Σ t + ρ 1 : t I τ × τ − ρ 1 : t I τ × τ ) U t T ) .