Generalized Convexity and Smoothness via Conjugate Duality: Optimization Theory for Deep Neural Networks
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Generalized Convexity and Smoothness via Conjugate Duality: Optimization Theory for Deep Neural Networks Binchuan Qi
2080068@tongji.edu.cn
College of Electronics and Information Engineering Tongji University Shanghai, 200092, China Sihao Street Zhejiang Yuying College of Vocational Technology Zhejiang, 310018, China
arXiv:2608.09523v1 [cs.LG] 10 Aug 2026
Abstract Deep neural network (DNN) training with stochastic gradient descent (SGD) and its variants achieves strong empirical performance, yet classical optimization theory does not fully explain this success. This limitation arises because conventional analyses rely on assumptions such as differentiability, convexity, or smoothness, which are often violated by DNN objectives. In this paper, we establish a unified optimization framework for DNN training by generalizing classical convexity and smoothness through Legendre functions and convex conjugation. Specifically, we introduce H(ψ)-convexity and H(Ψ)-smoothness, which unify convex and non-convex as well as smooth and non-smooth objectives within a single formalism and reveal a natural duality between generalized smoothness and convexity. Building on these generalized properties, we introduce generalized gradient descent (GD) and generalized SGD through convex conjugation. We theoretically prove that generalized GD admits an optimal learning rate of exactly 1, and derive rigorous gradient-energy-based convergence rates for both proposed optimizers. We further reformulate DNN training as a composite optimization problem, demonstrating that its convergence relies on jointly reducing the gradient energy and controlling the induced norm of the network Jacobian. To characterize the practical influences of network architectures and training configurations, we introduce the gradient correlation factor and model capacity risk, and quantitatively analyze how architectural designs, batch size, and model capacity shape training convergence. Extensive experiments across diverse network architectures, datasets, optimizers, and loss functions validate our theoretical bounds and demonstrate precise alignment between our theoretical predictions and empirical training dynamics. Keywords: non-convex optimization, non-Lipschitz smoothness, convex conjugate duality, deep neural networks
1 Introduction Training deep neural networks (DNNs) yields highly non-convex, non-smooth empirical risk objectives, yet stochastic gradient descent (SGD) and its variants consistently converge to high-quality solutions with low empirical risk, despite the absence of the convexity or regularity assumptions required for classical theoretical guarantees (Zhang et al., 2021). This empirical success stands in sharp contrast to classical non-convex optimization theory, which typically only guarantees convergence to stationary points (Jentzen et al., 2021); indeed, even simple non-convex problems are NP-hard in general (Nesterov, 2008). This gap between theory and practice motivates the development of new optimization-theoretic frameworks that can characterize DNN training. ©2024 Binchuan Qi. License: CC-BY 4.0, see https://creativecommons.org/licenses/by/4.0/.
Qi
To address this problem, current research primarily follows two main directions: 1. The first direction exploits special structural properties of DNNs. The Neural Tangent Kernel (NTK) framework (Jacot et al., 2018) analyzes training dynamics in the lazy regime where parameters change minimally, but struggles to capture the optimization dynamics during feature learning in finite-width networks of practical interest. Fenchel–Young-loss-based approaches (Qi et al., 2025a) link gradient norms to distribution fitting errors by restricting the loss to the Fenchel–Young loss family, but are limited to the convergence of conditional label distributions under MSE loss for supervised classification and, by construction, lack generality across loss functions. As detailed in Section 9, both approaches have significant limitations in scope and applicability. 2. The second direction extends classical strong convexity and Lipschitz smoothness. For convexity, higher-order strong convexity has been explored in various domains (Lin and Fukushima, 2003; Mohsen et al., 2019; Alabdali et al., 2019; Noor and Noor, 2020, 2021). For smoothness, Zhang et al. (Zhang et al., 2020b) introduced (L0 , L1 )smoothness, which was subsequently analyzed in convex and non-convex settings (Zhang et al., 2020a; Qian et al., 2021; Zhao et al., 2021; Crawshaw et al., 2022) and combined with variance reduction techniques (Reisizadeh et al., 2023). Chen et al. (Chen et al., 2023) proposed α-symmetric generalized smoothness, and Li et al. (Li et al., 2023a) introduced the more general ℓ-smoothness condition. Most recently, Qi et al. (2025b) extended strong convexity and Lipschitz smoothness using norm power functions, proving DNN trainability under convexity and differentiability of the loss. Nevertheless, restricting to norm-power functions introduces restrictive assumptions and complicates the analysis of gradient descent (GD) and SGD. Despite this progress, all existing generalizations either still require convexity or differentiability assumptions for SGD to converge to global optima, or yield intractable analytical complexity that limits their practical utility, and these requirements are inconsistent with the non-convex, non-smooth objectives typical of DNN training. These two directions share a common limitation: they still rely on assumptions such as infinite width, convexity, or differentiability, which are often violated by practical DNN objectives and often lead to substantial analytical complexity. Our starting point is the wellknown duality between strong convexity and Lipschitz smoothness (Lemma 8.2) (Kakade et al., 2009; Zhou, 2018; Qi et al., 2025b). Both classical properties, at their core, bound how fast a function can vary through the quadratic term ∥ · ∥22 . This suggests a natural generalization: if the quadratic energy is replaced by a broader family of functions built from Legendre functions and convex conjugates, the same duality may extend far beyond the convex, smooth setting. Following this line of reasoning, we develop generalized notions of convexity and smoothness, together with the corresponding generalized GD and SGD, and use them to formulate DNN training as a composite optimization problem. The formal definitions, the precise duality, and the resulting convergence guarantees are presented in the following sections, while the main consequences for optimization are summarized in the Contributions below. Contributions
The main contributions of this work are summarized as follows: 2
Generalized Convexity and Smoothness
• We generalize classical strong convexity and Lipschitz smoothness to H(ψ)-convexity and H(Ψ)-smoothness using Legendre functions, and investigate their mathematical properties. This framework unifies convex and non-convex, smooth and non-smooth functions and reveals a duality between smoothness and convexity. • We define generalized GD and SGD via convex conjugation and prove their convergence with respect to the gradient energy under the generalized conditions. Notably, the optimal learning rate of generalized GD is identically 1, thereby eliminating the need to tune the learning rate as in classical GD and SGD. • We construct a composite optimization framework that encompasses DNN training. We prove that such problems can be solved by jointly reducing the gradient energy and controlling the induced norm of the model’s Jacobian matrix, which together provide tight bounds on the optimization objective. • We apply the framework to DNN optimization, demonstrating theoretically and empirically that SGD effectively reduces the gradient energy, while architectural techniques such as skip connections, random initialization, and over-parameterization control the Jacobian’s induced norm. Comprehensive experiments across multiple datasets and architectures support the generality and robustness of the framework. Organization
The remainder of this paper is organized as follows:
• Section 2 introduces the foundational concepts and definitions used throughout the paper. • Section 3 presents the key tools introduced in this work, H(ψ)-convexity and H(Ψ)smoothness, along with their fundamental properties. • Section 4 reformulates the problem of training DNNs and establishes the theoretical foundation for non-convex optimization in deep learning. • Section 5 extends the framework to composite optimization problems and analyzes their convergence properties. • Section 6 details the experimental setup and reports the empirical results. • Section 7 summarizes the main contributions and outlines potential directions for future research. • Section 8 presents supporting lemmas from convex analysis and information theory. • Section 9 reviews related work. Supplementary material is provided in the appendix: • Appendix A contains detailed proofs of all theoretical results. 3
Qi
Generalized Convexity and Smoothness
Def.3.1: Energy Function Prop.3.1: core properties
Def.3.2:
-Convexity
Def.3.2:
, Unifies convex & nonconvex
-Smoothness
, Unifies smooth & nonsmooth
Prop.3.2: Duality & Structural Props -convex
Prop.3.3: General Universe DNN objective is both
-smooth &
-smooth, Scaling & Fenchel–Young inheritance
Prop.3.5: Special Cases
-convex
Prop.3.4: Construction Principles
Hessian eigen; MSE; Softmax CE
Minimize
; tight bounds
Thm.3.1: Gradient–Optimality Bound Cor.3.1: recovers classical convex/smooth bounds
Generalized GD and SGD
Def.4.1: Generalized GD , Grad energy:
Thm.4.1 + Cor.4.1: GenGD Convergence
Prop.4.1 & 4.2: GD Equivalence
Optimal ; Cor.4.1: recovers classical GD convergence
Prop.4.1: Classical GD is special case of GenGD Prop.4.2: Time-varying LR ↔ Generalized GD
Def.4.3 + Prop.4.3: Gradient Correlation
Def.4.2: Generalized SGD , Grad energy:
Prop.4.3:
on minimizes variance
Def.4.4 + Prop.4.4: Model Capacity Risk
Thm.4.2 + Cor.4.2: GenSGD Convergence
Prop.4.4: Non-increasing in
Cor.4.2: recovers classical SGD convergence
Composite Optimization Problem
Def.5.1: Composite Opt. Problem Thm.5.1 + Cor.5.1: Composite Risk Bound
Def.5.2: Induced Norm of Jacobian ,
,
:
, Cor.5.1:
-norm version with
Def.5.3: ERM W Problem Cor.5.2: ERM Bound
Cor.5.3: KL/MSE/Fenchel Bound MSE, Softmax CE, Fenchel loss bounds
Prop.5.1: Random Init
Prop.5.2: Skip Connections
,
Preserve
, prevent depth decay
Fig. 1: An overview of the logical relationships among the key definitions and conclusions. The logical relationships among the core results are shown in Fig. 1. The energy function (Definition 3.1) is the core tool used by this framework to construct generalized convexity and smoothness, and we investigate its key properties (Proposition 3.1). Using the energy function, this framework defines generalized smoothness (H(Ψ)-smoothness) and generalized convexity (H(ψ)-convexity) in Definition 3.2. It then investigates the generality of these notions (Proposition 3.3), their behavior under conjugation, scaling, translation, and 4
Generalized Convexity and Smoothness
Fenchel–Young loss construction (Proposition 3.2), the relationship between gradients and optimal solutions (Theorem 3.1 and Corollary 3.1), and their construction and determination (Proposition 3.4 and Proposition 3.5). Based on generalized smoothness and convexity, we define generalized GD and its gradient energy (Definition 4.1), as well as generalized SGD and its gradient energy (Definition 4.2). We also investigate their relationships with classical GD and SGD (Proposition 4.1 and Proposition 4.2). To study the influence of model structure and data properties on optimization, we define the Gradient Correlation Factor (Definition 4.3) and the Model Capacity Risk (Definition 4.4), and investigate their relationships with batch size (Proposition 4.3 and Proposition 4.4). Building on these definitions, we derive convergence results for generalized GD (Theorem 4.1 and Corollary 4.1) and for generalized SGD (Theorem 4.2 and Corollary 4.2). Using generalized convexity and generalized smoothness, we define a class of composite optimization problems that encompasses DNN training (Definition 5.1), and define the key quantity for optimizing such problems, namely the induced norm of the Jacobian matrix (Definition 5.2). Theorem 5.1 and its corollary, Corollary 5.1, prove that composite optimization problems can be solved by reducing the gradient energy and controlling the induced norm of the model’s Jacobian. For DNN training, Empirical Risk Minimization (ERM) is formulated in Definition 5.3. Corollary 5.2 provides an upper bound constructed from the energy and the extreme singular values of the model’s Jacobian matrix, and Corollary 5.3 provides upper and lower bounds on the empirical risk under MSE, Softmax CrossEntropy, and Fenchel–Young loss. Furthermore, Proposition 5.1 characterizes the influence of random parameter initialization and the number of parameters on the extreme singular values of the Jacobian matrix, while Proposition 5.2 characterizes the influence of skip connections. Together with the established result that generalized SGD reduces the gradient energy, these results jointly characterize the non-convex optimization mechanism of deep learning.
2 Preliminaries This section establishes the foundational concepts, notation and basic assumptions used throughout the paper. 2.1 Notation • For a differentiable function fθ (x) with parameters θ ∈ Rm and outputs in Rd , we adopt the denominator layout convention. Thus, the Jacobian matrix of f with respect to θ is denoted by
Jθ fθ (x) :=
∂fθ (x) ∈ Rm×d , ∂θ
∂fθ (x) ∂θ
= ij
∂fj , ∂θi
where i = 1, . . . , m indexes the parameters and j = 1, . . . , d indexes the outputs. In the scalar case (d = 1), this reduces to a row vector, and we denote its transpose (the column gradient) by ∇θ fθ (x) ∈ Rm . 5
Qi
• The convex conjugate (Legendre–Fenchel conjugate) of a function Ψ is defined as Ψ∗ (ν) := sup ⟨µ, ν⟩ − Ψ(µ) , (1) µ∈dom(Ψ)
where ⟨·, ·⟩ denotes the standard inner product (Todd, 2003). When Ψ is strictly convex and differentiable, its gradient with respect to µ is denoted by ∇Ψ(µ). We define the conjugate dual of µ with respect to Ψ as µ∗Ψ := ∇Ψ(µ). When Ψ(·) = 12 ∥·∥22 , we have µ∗Ψ = µ. • The Fenchel–Young loss induced by a convex function G is defined as dG (µ, ν) := G(µ) + G∗ (ν) − ⟨µ, ν⟩,
(2)
where µ ∈ dom(G) and ν ∈ dom(G∗ ) (Blondel et al., 2020). This formulation plays a central role in our analysis. • The maximum and minimum singular values of a matrix A are denoted by σmax (A) and σmin (A), respectively. The maximum and minimum eigenvalues of a matrix A are denoted by λmax (A) and λmin (A), respectively. • The random pair Z = (X, Y ) follows the distribution qX Y (abbreviated as q) and takes values in the product space Z = X × Y, where X denotes the input feature space and Y is a finite set of targets (labels). The cardinality of Z is denoted by |Z|. Throughout this paper, we assume that |X | is finite, a condition that aligns with practical machine learning scenarios. Since |Y| is finite, |Z| is finite whenever |X | is finite. • Let ∥ · ∥ be a vector norm on Rn , and let ∥A∥ := supx̸=0 ∥Ax∥/∥x∥ denote its upper induced norm (abbreviated as the induced matrix norm). Define the lower induced norm of A ∈ Rm×n as m(A) := inf x̸=0 ∥Ax∥ ∥x∥ . • When A is not square or is singular, the Moore–Penrose pseudoinverse A+ provides a natural generalization of the inverse. qP P n m 2 • ∥·∥F : The Frobenius norm of a matrix A ∈ Rm×n , defined as ∥A∥F = j=1 Aij = i=1 p tr(A⊤ A), where tr(·) denotes the trace. 2.2 Basic Assumptions Since maximizing a function is equivalent to minimizing its negative counterpart, we exclusively consider the minimization of real-valued functions without loss of generality. All functions investigated in this work are continuous, proper, and defined over convex domains. At any non-differentiable point, we set the surrogate gradient to zero.
3 Generalized Convexity and Smoothness In this section, we introduce the concept of an energy function and use it to generalize the classical notions of convexity and Lipschitz smoothness. This generalization gives rise to the concepts of H(ψ)-convexity and H(Ψ)-smoothness. We further analyze their properties and implications in optimization theory. 6
Generalized Convexity and Smoothness
3.1 Energy Functions We begin with the formal definition of an energy function. Definition 3.1 (Energy Function) A function Ψ : Rm → R is called an energy function if it is a Legendre function with its unique minimum attained at the origin, i.e., Ψ(0) is the minimal value, and it admits the radial representation: Ψ(µ) = Ψ◦ (∥µ∥),
(3)
where ∥ · ∥ denotes an arbitrary norm on Rm . If the norm is restricted to the L2 -norm, we refer to it as an L2 -norm energy function. We first present the properties of energy functions. Proposition 3.1 tion, and
1. If Ψ(µ) is an energy function, then Ψ∗ (ν) is also an energy funcΨ∗ (ν) = Ψ∗◦ (∥ν∥∗ ), Ψ(0) + Ψ∗ (0) = 0,
(4)
µ⊤ µ∗Ψ ≥ 0, where Ψ∗◦ is the one-dimensional convex conjugate of Ψ◦ . 2. If Ψ(µ) = ∥aΨ µ∥r2Ψ /rΨ + cΨ is an energy function with parameters aΨ ∈ R>0 , rΨ > 1, r ∗ and cΨ ∈ R, then its convex conjugate Ψ∗ (ν) = ∥aΨ∗ ν∥2Ψ /rΨ∗ + cΨ∗ is also an energy function, where 1/rΨ + 1/rΨ∗ = 1, aΨ aΨ∗ = 1,
(5)
cΨ∗ + cΨ = 0. 3. Let Ψ(µ) be an energy function. For any µ ∈ Rm , F (a) = Ψ(aµ) is monotonically non-decreasing on [0, ∞); if µ ̸= 0, then F is strictly increasing and convex. The proof of this proposition is provided in Appendix A.1. 3.2 Generalized Convexity and Smoothness To handle potential non-differentiable points in DNNs, we generalize the classical gradient. Let G : Rm → R̄ be a function with finitely many non-differentiable points. For any point µ ∈ Rm , the meaning of ∇G(µ) is extended as follows: 1. If G is differentiable at µ, then ∇G(µ) reduces to the classical gradient; 2. If G is not differentiable at µ, then ∇G(µ) := 0. Under this definition, all operations involving gradients (such as the first-order Taylor remainder and the gradient descent update rule) are well-defined, providing a foundation for subsequent theoretical analysis. This setting is designed to encompass more general optimization scenarios and to provide theoretical support for analyzing neural networks with 7
Qi
non-smooth units such as the Rectified Linear Unit (ReLU). In deep learning practice, the gradient at non-differentiable points of ReLU is set to zero, so this convention is consistent with real-world applications. Moreover, it ensures that the assumption of zero gradient at the global optimum is satisfied. Using energy functions and the extended gradient, we introduce generalized notions of convexity and smoothness. Throughout, uppercase energy functions (Ψ, Φ) characterize smoothness and lowercase ones (ψ, ϕ) characterize convexity. Definition 3.2 (Generalized Convexity and Smoothness) Define the first-order Taylor remainder SG (µ, ν) = G(µ) − G(ν) − ⟨∇G(ν), µ − ν⟩. Note that SG (µ, ν) is the residual of the first-order expansion of G around ν evaluated at µ. We define the following notions of generalized convexity and smoothness. • H(Ψ)-smooth function. A real-valued function G(·) is said to be H(Ψ)-smooth if SG (µ, ν) ≤ Ψ(µ − ν),
∀µ, ν ∈ dom(G),
(6)
where Ψ is an energy function. • H(ψ)-convex function. A function G(·) is said to be H(ψ)-convex if SG (µ, ν) ≥ ψ(µ − ν),
∀µ, ν ∈ dom(G),
(7)
where ψ is an energy function. Since SG (µ, µ) = 0, these inequalities imply Ψ(0) ≥ 0 and ψ(0) ≤ 0. Generalized smoothness and convexity further satisfy the following properties: Proposition 3.2 1. Let G and its convex conjugate G∗ be differentiable on their domains. Then the following statements are equivalent: (i) G is H(Ψ)-smooth; (ii) G∗ is H(Ψ∗ )-convex. 2. For constants a > 0, b > 0, and c ∈ R, define F (x) := aG(bx) + c on the domain {x : bx ∈ domG}. If G is H(Ψ)-smooth, then F is H(aΨ(b ·))-smooth. If G is H(ψ)convex, then F is H(aψ(b ·))-convex. 3. Let the random variable Z take values in Z. If G(θ, z) has the same generalized convexity and smoothness properties with respect to θ for all z ∈ Z, then G(θ, s) also shares the same properties with respect to θ. 4. Let s be a fixed constant vector. If G(·) is H(ψ)-convex, then dG (·, s) has the same generalized convexity and smoothness properties as G(·), and dG (s, ·) has the same generalized convexity and smoothness properties as G∗ (·). The proof of this proposition is provided in Appendix A.3. Item 1 reflects the conjugacy between generalized convexity and generalized smoothness. Item 2 reveals the scaling and vertical-shift invariance of generalized convexity and smoothness. Item 3 shows that the generalized convexity and smoothness of the dataset 8
Generalized Convexity and Smoothness
are identical to those at the sample level. Item 4 reveals the relationship between the generalized convexity and smoothness of the Fenchel–Young loss and those of its generating function. It is well established that a wide range of commonly used loss functions in statistics and machine learning, including CrossEntropy loss, mean squared error (MSE) loss, and perceptron loss, can be expressed as Fenchel–Young losses dF (y, fθ (x)) through an appropriate choice of F (Blondel et al., 2020). Proposition 4 demonstrates that the generalized smoothness and convexity of the Fenchel–Young loss can be analyzed through its generating function. More generally, for a general function G(µ), the inequality SG (µ, ν) ≤ (aΨ ∥µ − ν∥2 )rΨ + cΨ can be satisfied by increasing aΨ , rΨ , and cΨ , so that G(µ) is H(Ψ)-smooth. The construction of ψ under H(ψ)-convexity is analogous. Thus, H(ψ)-convexity and H(Ψ)smoothness provide a unified framework that encompasses a wide range of loss functions. From this, we obtain the following proposition: Proposition 3.3 The objective function corresponding to neural network training is both H(Ψ)-smooth and H(ψ)-convex with respect to the parameters. According to the definitions of H(ψ)-convexity and H(Ψ)-smoothness, G need not be convex nor smooth. Specifically, when ψ(0) = 0, G is convex; however, when ψ(0) ̸= 0, G need not be convex. The constant term ψ(0) of the energy function thus unifies convex and non-convex functions, with different values corresponding to different degrees of convexity. In the following, we no longer distinguish between convex and non-convex functions, but instead use H(ψ)-convexity for unified analysis. Similarly, H(Ψ)-smoothness also generalizes smoothness. The constant term Ψ(0) of the energy function unifies smooth and non-smooth functions, with different values corresponding to different degrees of smoothness. In the following, we no longer distinguish between smooth and non-smooth functions, but instead use H(Ψ)-smoothness for unified analysis. 3.3 Connecting Gradients and Optimal Solutions The following theorem bounds the suboptimality G(µ) − G∗ in terms of the gradient energy, connecting gradient dynamics to global optimality without requiring classical convexity or smoothness. Theorem 3.1 Let G∗ = minµ G(µ), G∗ = {µ | G(µ) = G∗ }, and µ∗ ∈ G∗ . The following results hold: 1. If G(µ) is H(Ψ)-smooth, then: Ψ∗ (∇G(µ)) ≤ G(µ) − G∗ ≤ Ψ(µ − µ∗ ).
(8)
2. If G(µ) is H(ψ)-convex, then: ψ(µ − µ∗ ) ≤ G(µ) − G∗ ≤ ψ ∗ (∇G(µ)).
(9)
3. If G(µ) is both H(Ψ)-smooth and H(ψ)-convex, then: Ψ∗ (∇G(µ)) ≤ G(µ) − G∗ ≤ ψ ∗ (∇G(µ)). 9
(10)
Qi
The proof of this theorem is provided in Appendix A.4. This theorem shows that H(ψ)-convexity and H(Ψ)-smoothness symmetrically relate global optimality to gradient behavior, without requiring classical convexity or smoothness. This relationship provides a flexible yet rigorous framework for analyzing the optimization dynamics of gradient-based algorithms in complex settings. Building upon Theorem 3.1, we derive the following corollary: Corollary 3.1 If G(µ) is both H(ψ)-convex and H(Ψ)-smooth, with Ψ(µ) = k2Ψ ∥µ∥22 and k ψ(µ) = 2ψ ∥µ∥22 , where kΨ ≥ kψ > 0, the following holds: ∥∇G(µ)∥22 ∥∇G(µ)∥22 ≤ G(µ) − G∗ ≤ . 2kΨ 2kψ
(11)
This recovers the classical bounds under Lipschitz smoothness and strong convexity (Lemma 8.2), verifying the generality of Theorem 3.1. 3.4 Determining Generalized Convexity and Smoothness The definitions of H(ψ)-convexity and H(Ψ)-smoothness are general and can be applied to virtually any neural network objective. However, this generality introduces a challenge: a single objective function may admit multiple valid choices of (ψ, Ψ). To illustrate, consider an H(Ψ)-smooth function G(θ); one can construct Ψ′ (·) = Ψ(·) + c, where c > 0. Clearly, G(θ) is also H(Ψ′ )-smooth. An analogous issue exists for H(ψ)-convexity. While different constructions of Ψ still satisfy the gradient-value inequalities in Theorem 3.1, they may render the resulting bounds on the global optimum too loose to offer practical guidance for optimization. This is analogous to classical GD/SGD convergence analysis under the Lipschitz smoothness assumption: if the employed Lipschitz constant is excessively large (which is indeed the case for DNNs, where the constant is often nonexistent or extremely large (Virmaux and Scaman, 2018; Liu et al., 2022)), the resulting optimal learning rate approaches zero. Such a prediction fails to reflect the actual convergence behavior observed with realistic learning rates. Therefore, the construction of the core parameters for H(ψ)-convexity and H(Ψ)-smoothness directly impacts the practical utility of the theory. According to Theorem 3.1, the gradient energy controls the distance between stationary points and the global optimum. When the objective function is both H(Ψ)-smooth and H(ψ)-convex, the minimum values attainable by the upper and lower bounds are Ψ∗ (0) and ψ ∗ (0), respectively. By Proposition 3.1, we have Ψ(0) + Ψ∗ (0) = 0. Therefore, the minimum values of the upper and lower bounds are −Ψ(0) and −ψ(0), respectively, and the gap between them is Ψ(0) − ψ(0), where Ψ(0) ≥ 0 and ψ(0) ≤ 0. To minimize this gap, both Ψ(0) and ψ(0) should be chosen as close to zero as possible. Under the H(Ψ)-smooth setting, Theorems 4.1 and 4.2 prove that the minimum value to which the gradient energy can theoretically converge is determined by Ψ(0), which represents the optimization limit of gradient descent–type algorithms. Since generalized convexity and smoothness are intrinsic properties of the optimization objective, they control the optimization limit achievable by directly applying gradient descent–type algorithms. However, as we will show in Section 5, by constructing a benign composite optimization problem, gradient descent–type algorithms 10
Generalized Convexity and Smoothness
can be used to approach the global optimum. We therefore state the following proposition characterizing the construction principles for generalized convexity and smoothness: Proposition 3.4 For (ψ, Ψ) to be useful in optimization analysis, the following two construction principles should be satisfied: 1. ψ(0) and Ψ(0) should be as close to 0 as possible; 2. The pair (Ψ, ψ) should provide tight upper and lower bounds for the remainder SG (θ, η). According to the finite-dimensional norm-equivalence Lemma 8.3, in finite-dimensional settings, norms are equivalent, i.e., there exist positive real numbers such that a∥µ∥2 ≤ ∥µ∥ ≤ b∥µ∥2 . If G(·) is H(Ψ)-smooth, then it is also necessarily H(Ψ◦ (b∥·∥2 ))-smooth, where Ψ(µ) = Ψ◦ (∥µ∥). Similarly, H(ψ)-convexity also implies H(ψ◦ (a∥ · ∥2 ))-convexity. This substitution of an arbitrary norm by the L2 -norm still captures the essence of generalized convexity and smoothness, namely, using energy functions to bound the first-order Taylor remainder. Therefore, in general, when constructing generalized convexity and smoothness, we preferentially use the L2 -norm for the norm component of the energy function. We acknowledge that precisely computing the globally optimal Ψ for complex DNNs is extremely challenging. We conjecture that computing the globally optimal Ψ for a given DNN is NP-hard, consistent with the established NP-hardness of computing global Lipschitz constants for DNNs (Virmaux and Scaman, 2018; Liu et al., 2022). However, as demonstrated below, this computational challenge does not negate the theoretical or practical value of our framework. Theoretically, the H(ψ)-convexity and H(Ψ)-smoothness framework generalizes classical strictly convex and Lipschitz smooth frameworks. It provides relationships between gradients and global optima for non-convex and non-differentiable problems, alleviating the difficulties classical frameworks face when analyzing DNNs. In Section 4, we utilize this to explain the non-convex optimization mechanism of SGD for DNNs. Practically, the convergence properties under these generalized conditions guide architectural design towards better optimization landscapes. By adhering to the construction principles (Proposition 3.4), one can design modules for DNNs with provably favorable spectral properties, enhancing trainability without explicit computation of the global constants. For several important special cases, we derive the following criteria for generalized convexity and smoothness. Proposition 3.5 1. Suppose G is a continuously differentiable function defined on a closed convex set, twice differentiable on the interior of its domain, and with a positive definite Hessian matrix. Let λmin and λmax denote the smallest and largest eigenvalues of the Hessian matrix ∇2 G(µ) for all µ in the domain of G. Then G is both H(λmax ∥ · ∥22 /2)-smooth and H(λmin ∥ · ∥22 /2)-convex. 2. The MSE loss 21 ∥fθ (x) − y∥22 with respect to fθ (x) is both H(∥ · ∥22 /2)-convex and H(∥ · ∥22 /2)-smooth. 3. The Softmax CrossEntropy loss CrossEntropy(q, Softmax(fθ (x))) with respect to fθ (x) is both H(mini pi ∥ · ∥22 )-convex and H(2 ln 2∥ · ∥22 )-smooth, where p = Softmax(fθ (x)) and q is the target distribution. The proof of this proposition is provided in Appendix A.2. 11
Qi
4 Generalized GD and SGD In this section, we present a more general form of gradient-based optimization algorithms, which we refer to as generalized GD and generalized SGD. We analyze their convergence rates under the framework of generalized convexity and generalized smoothness. Unlike classical GD and SGD, the generalized GD and SGD proposed in this paper do not require learning rate tuning, as the optimal learning rate is consistently 1. 4.1 Generalized GD 4.1.1 Definitions Definition 4.1 (Generalized GD) Consider the deterministic optimization problem min G(θ), θ
(12)
where G is an H(Ψ)-smooth objective. We define its gradient energy as Ψ∗ (∇G(θ)),
(13)
with Ψ an arbitrary energy function. The generalized GD method with constant step size α then follows the update rule θk+1 := θk − α(∇G(θk ))∗Ψ∗ ,
(14)
where (∇G(θk ))∗Ψ∗ := ∇Ψ∗ (∇G(θk )). The gradient energy measures the distance of the gradient from the origin, and from a conceptual viewpoint it characterizes the stability of the objective function with respect to the model parameters. Generalized GD no longer proceeds strictly along the gradient direction; instead, it follows the dual variable direction of ∇G(θk ) with respect to Ψ∗ . We now present a proposition showing that the update direction coincides with the gradient direction if and only if Ψ(·) = Ψ◦ (∥ · ∥2 ). The formal statement is as follows. Proposition 4.1 If, for any nonzero vector x, the gradient ∇∥x∥ is collinear with the original vector x, i.e., there exists a scalar-valued function λ(x) such that ∇∥x∥ = λ(x) · x,
(15)
then there exists a positive constant c > 0 such that, for all x ∈ Rn , we have ∥x∥ = c · ∥x∥2 , i.e., the norm must be a positive scalar multiple of the Euclidean (L2 ) norm. Conversely, all positive scalar multiples of the Euclidean norm satisfy the property that the gradient is collinear with the original vector. The proof of this proposition can be found in Appendix A.5. When the smoothness energy is Ψ(·) = L2 ∥ · ∥22 , generalized GD reduces to classical GD. For comparison, the classical GD method with a constant step size α is defined by the following update rule: θk+1 = θk − α∇G(θk ). (16) 12
Generalized Convexity and Smoothness
4.1.2 Convergence Analysis Next, we establish the convergence rates of generalized GD for the deterministic optimization problem and the stochastic optimization problem. Theorem 4.1 Consider the deterministic optimization problem in Definition 4.1. Suppose G(θ) is H(Ψ)-smooth. Then the generalized GD algorithm satisfies the following properties: 1. The optimal learning rate is given by α = 1. Substituting this value into the update rule yields G(θk+1 ) ≤ G(θk ) − Ψ∗ (∇G(θk )). (17) 2. The number of iterations required to satisfy the convergence criterion Ψ∗ (0) ≤ Ψ∗ ∇G(θk ) ≤ Ψ∗ (ε) is bounded by T = O 1/Ψ∗ (ε) .
(18)
3. If G(θ) is both H(ψ)-convex and H(Ψ)-smooth, the number of iterations required for the generalized GD algorithm to achieve the error bound G(θk ) − G∗ ≤ ψ ∗ (ε)
(19)
is bounded by T = O(1/Ψ∗ (ε)). 4. Assume that G(θ) is both H(ψ)-convex and H(Ψ)-smooth, where Ψ and ψ satisfy Ψ∗ (µ) ≥ tψ ∗ (µ) + b, 0 < t < 1 and b ∈ R. The number of iterations for the generalized GD algorithm to reach G(θk ) − G∗ ≤ ψ ∗ (ε) − ψ ∗ (0) −
b t
(20)
1 is bounded by T = O κ log ψ∗ (ε)−ψ ∗ (0) , where the condition number is defined as κ = −1/log(1 − t). The proof of this theorem can be found in Appendix A.6. The above theorem provides the following insight: if we use the gradient energy to control the distance between the current solution and the optimal solution, then smaller ψ ∗ (0) (i.e., ψ(0) closer to zero) gives tighter control. In particular, when the gradient norm is zero, ψ ∗ (0) serves as an upper bound on the distance between the current solution and the optimal solution. Specifically, when ψ ∗ (0) is zero, if the gradient norm is zero, then the current solution coincides with the optimal solution. Different forms of energy functions yield different approximation performance. From the above theorem, we know that the smaller the absolute values of ψ(0) and Ψ(0), the better the achievable result. The order of the energy function determines the convergence rate. We now use the above theorem to derive the convergence of classical GD under the Lipschitz smoothness assumption. When G(θ) is Lipschitz smooth with constant L, this condition is equivalent to the function being bounded above by a quadratic: G(y) ≤ G(x) + ∇G(x)⊤ (y − x) + L2 ∥y − x∥22 . Therefore, according to the definition of H(Ψ)-smoothness, 13
Qi
1 we have Ψ(·) = L2 ∥ · ∥22 and Ψ∗ (·) = 2L ∥ · ∥22 . In this case, generalized GD and classical GD are identical. Similarly, if G(θ) is σ-strongly convex, then according to the definition 1 of H(ψ)-convexity, we have ψ(·) = σ2 ∥ · ∥22 and ψ ∗ (·) = 2σ ∥ · ∥22 . By Theorem 4.1, we obtain the following corollary.
Corollary 4.1 Assume that G(θ) is both H(ψ)-convex and H(Ψ)-smooth with Ψ(·) = L2 ∥·∥22 and ψ(·) = σ2 ∥ · ∥22 . 1. For the equivalent classical GD update, the optimal learning rate is α = L1 , and any α ≤ L2 guarantees descent at each step. 2. The number of iterations required for the GD algorithm to reach the convergence condition ε2 G(θk+1 ) − G∗ ≤ (21) 2σ 1 is T = O(κ log 2σ ), where the condition number is defined as κ = − log(1−t) and t = Lσ . ε2
This is consistent with the classical convergence rate under strong convexity and Lipschitz smoothness, which indirectly verifies the correctness and generality of the framework proposed in this paper. We now show that classical GD is a special case of generalized GD, and that its standard convergence guarantees rely on Lipschitz smoothness. Proposition 4.2 Given that G(θ) is H(Ψ)-smooth but not Lipschitz smooth, classical GD as described in Equation (16) is adopted to optimize G(θ). It follows that: 1. There exists no constant step size that is universally optimal for this optimization process. 2. If a time-varying learning rate is employed, the classical GD is equivalent to generalized GD. The proof of this proposition can be found in Appendix A.7. The above proposition shows that if a function is H(Ψ)-smooth but not Lipschitz smooth, then classical GD no longer admits a universally optimal constant learning rate, and its convergence guarantees no longer apply in the same way. In addition to being more general than classical GD, generalized GD offers several advantages over classical GD under the generalized convexity and smoothness framework: 1. It provides convergence rates for non-convex optimization objectives, where the achievable error relative to the optimal solution is controlled by ψ(0). If ψ(0) is close to 0 (i.e., the function is nearly convex), the upper bound provides effective control; we refer to such problems as approximately convex optimization problems. However, if ψ(0) is very negative (i.e., ψ ∗ (0) is large), the resulting upper bound becomes too loose to guarantee convergence to the global optimum, motivating the composite optimization framework introduced below. 14
Generalized Convexity and Smoothness
2. Under the general H(Ψ)-smooth setting, classical GD does not have a constant optimal learning rate; to achieve its optimal convergence rate, the learning rate must be carefully computed at each iteration. In contrast, for generalized GD, the optimal learning rate is inherently determined to be 1, eliminating the need for manual tuning of the learning rate. This simplicity is a direct consequence of the H(Ψ)-smooth property encapsulated in the algorithm’s design. 4.2 Generalized SGD While generalized GD provides convergence guarantees for deterministic problems, the stochastic setting of DNN training introduces two additional phenomena that must be captured: (1) Parameter coupling: gradient updates computed on a batch affect the loss or risk associated with samples outside the batch; (2) Limited model capacity: when the complexity of the data exceeds the model capacity, no optimization algorithm can drive the empirical risk to zero, regardless of the choice of algorithm. Without accounting for these factors, one cannot characterize how model structure and capacity affect optimization, making it difficult to systematically elucidate SGD’s optimization mechanism in DNNs. To address these issues, we propose generalized SGD together with the gradient correlation factor and the model capacity risk; generalized SGD not only encompasses classical SGD but also captures parameter coupling and model capacity limitations. 4.2.1 Definitions Definition 4.2 (Generalized SGD) Let s denote a sampled dataset whose elements take values in the space Z. We consider the stochastic optimization problem min G(θ, s) = θ
1 X G(θ, z) = EZ∼q̂ [G(θ, Z)], |s| z∈s
(22)
where G(θ, z) is H(Ψ)-smooth with respect to θ for all z ∈ Z, and q̂ is the empirical distribution induced by the sample set s. We define its gradient energy as EZ∼q̂ Ψ∗ (∇θ G(θ, Z)).
(23)
The generalized SGD method with constant step size α is given by the update rule θk+1 = θk − α(g(θk , sk ))∗Ψ∗ ,
(24)
where g(θk , sk ) = ∇θ G(θk , sk ) is the stochastic gradient at iteration k, (g(θk , sk ))∗Ψ∗ := ∇Ψ∗ (g(θk , sk )), θk denotes the parameter value at iteration k, and sk ⊆ s is the mini-batch sampled at iteration k with cardinality |sk |. We write s \ sk for the complement of sk in s, so that |s \ sk | = |s| − |sk |. We note that the gradient energy is defined through the per-sample gradient ∇θ G(θ, Z) rather than the mini-batch gradient ∇θ G(θ, s); this distinction is essential because the energy averages over the empirical distribution q̂ instead of a single batch. The deterministic optimization problem is recovered as the special case in which Z follows a Dirac distribution δz . Since most machine learning training problems based on sampled data admit such a 15
Qi
stochastic formulation, the stochastic setting and its primary algorithm, SGD, constitute the main focus of this work. Similar to generalized GD, generalized SGD does not move strictly along the gradient direction; rather, it follows the conjugate direction of g(θk , sk ) with respect to Ψ∗ . This update direction coincides with the mini-batch gradient direction if and only if Ψ(·) = Ψ◦ (∥ · ∥2 ), in which case generalized SGD reduces exactly to classical SGD. To characterize the coupling among model parameters, i.e., the impact of a single minibatch update on samples not included in that batch, we introduce the following concept: Definition 4.3 (Gradient Correlation Factor) We define the gradient correlation factor M as: (25) M = max G(θk+1 , s \ sk ) − G(θk , s \ sk ), k,sk
where k denotes the iteration index and sk denotes the randomly sampled mini-batch at the k-th iteration. The gradient correlation factor M is introduced to formally characterize this model-dependent coupling. Specifically, even when an optimal update is performed on sk , the loss on s \ sk may still change; M provides an upper bound on the magnitude of this change. It depends on the following factors: 1. Data consistency: When samples and labels are highly consistent, the batches sk and s \ sk exhibit high similarity, leading to similar gradient directions. This causes M to become small, or even negative. 2. Parameter coupling: If the coupling among model parameters is low, updates on sk affect only a subset of parameters with minimal impact on others. A typical example is embedding models, where each feature has its own mapping vector/parameters; changes to one vector do not affect the losses of other features or samples. 3. Batch size: The closer the distributions of sk and s \ sk , the higher the similarity between the surrogate gradient ∇θ G(θk , sk ) computed on sk and the gradient ∇θ G(θk , s \ sk ) corresponding to s \ sk . Consequently, ∇θ G(θk , sk ) more closely approximates the direction of steepest descent of G(θk , s \ sk ), yielding a smaller M . A quantitative evaluation of the effect of batch size is provided by the following proposition: when m = ⌊n/2⌋ (or m = n/2 when n is even), the distributions of sk and s \ sk are closest. P Proposition 4.3 For any fixed value a, define pa := n1 ni=1 1{G(θk , zi ) = a} as the true proportion of the population taking the value a. The empirical probability mass function 1 P (PMF) values at a for the two groups are p̂a,m := m zi ∈sk 1{G(θk , zi ) = a}, p̂a,n−m := 1 P 1{G(θ , z ) = a}. Then the variance of their difference is k i zi ∈s\sk n−m Var (p̂a,m − p̂a,n−m ) = pa (1 − pa ) ·
n2 . m(n − m)(n − 1)
(26)
Consequently, the variance is minimized when m(n − m) is maximized, i.e., at m = ⌊n/2⌋ (or m = n/2 when n is even). 16
Generalized Convexity and Smoothness
The proof of this proposition can be found in Appendix A.8. M depends on the network architecture and data distribution. For DNNs, computing M exactly is generally impractical, just as exactly estimating the variance of stochastic gradients or the Lipschitz constant (Ghadimi and Lan, 2013; Bottou et al., 2018). In classical SGD analysis, the variance bound σ 2 is a theoretical quantity whose existence is assumed to derive convergence rates; in practice, it is rarely computed exactly. Similarly, M serves as a theoretical construct that enables principled convergence analysis while explicitly accounting for the influence of architecture. In addition to the gradient correlation factor arising from parameter coupling, the capacity of the model also affects the final convergence result during DNN training. If the model capacity is sufficiently large, we can expect the model to fit all samples, driving the gradient energy toward zero. Conversely, when the capacity is insufficient, the model cannot fully fit all samples, and the gradient energy remains positive. The model capacity risk is defined as follows: Definition 4.4 (Model Capacity Risk) Let sm be a batch of size m randomly sampled from s. Let G(s)∗ = minθ G(θ, s) and G(sm )∗ = minθ G(θ, sm ) denote the global minima of G(θ, s) and G(θ, sm ), respectively. The model capacity risk is defined as RG (s, m) = G(s)∗ − E G(sm )∗ . (27) The model capacity risk characterizes the discrepancy, arising from insufficient model capacity, between the optimal solution achievable on the full sample set and the expected optimal solution achievable on individual batches. Consider the MSE loss as an example: a simple linear model can achieve zero fitting error for a single sample, but due to bounded model capacity, it generally cannot achieve zero fitting error for all samples. This is independent of the optimization algorithm and is determined by the model’s own capacity. To facilitate the analysis of this model-intrinsic property, we abstract it as the model capacity risk. 4.2.2 Convergence Analysis We now prove an important property of the model capacity risk, namely that RG (s, m) is monotonically non-increasing in m: Proposition 4.4 RG (s, m) is monotonically non-increasing in batch size m: RG (s, m + 1) ≤ RG (s, m).
(28)
Consequently, RG (s, m) attains its maximum at m = 1 and minimum at m = |s|. The proof of this proposition is detailed in Appendix A.9. The following theorem delineates the convergence behavior of generalized SGD within the H(Ψ)-smooth setting. Theorem 4.2 Let n = |s|, m = |sk |, and M be the gradient correlation factor. Applying generalized SGD yields the following convergence properties: 17
Qi
1. Setting the learning rate to 1, the number of iterations T required for generalized SGD to achieve max Ψ∗ (∇θ G(θk , sk )) ≤ Ψ∗ (ε) (29) sk ⊆s
n is O( mΨ∗ (ε)−(n−m)M ), provided mΨ∗ (ε) > (n − m)M .
2. Assume that G(θ, z) is both H(ψ)-convex and H(Ψ)-smooth. Setting the learning rate to 1, the number of iterations required to satisfy G(θ, s) − G(s)∗ ≤ ψ ∗ (ε) − RG (s, m) n is O( mΨ∗ (ε)−(n−m)M ), provided mΨ∗ (ε) > (n − m)M .
3. Assume that G(θ, sk ) is both H(ψ)-convex and H(Ψ)-smooth, where Ψ and ψ satisfy Ψ∗ (µ) ≥ tψ ∗ (µ) + b, 0 < t < 1 and b ∈ R. Setting the learning rate to 1, the number of iterations for the generalized SGD algorithm to reach Esk G(θk , s) − G(s)∗ ≤ ψ ∗ (ε) − RG (s, m) −
b n−m − M t tm
(30)
1 is bounded by T = O κ log ψ∗ (ε)−ψ ∗ (0) , where the condition number is defined as κ = −1/ log(1 − mt/n), which is well defined since 0 < mt/n < 1. For small t, κ ≈ 1/t, analogous to the classical condition number L/σ. The proof of this theorem is detailed in Appendix A.10. We now use the above theorem to derive the convergence of classical SGD under Lipschitz smoothness. When G(θ, z) is Lipschitz smooth with constant L, by the definition of H(Ψ)1 smoothness, we have Ψ(·) = L2 ∥ · ∥22 and Ψ∗ (·) = 2L ∥ · ∥22 . According to Theorem 4.2, we obtain the following corollary. Corollary 4.2 Let n = |s|, m = |sk |, and M be the gradient correlation factor. If G(θ, z) is Lipschitz smooth with constant L, applying generalized SGD yields the following convergence properties: 1. The number of iterations T required for generalized SGD to achieve ε2 E ∥∇θ G(θk , sk )∥22 ≤ 2L
(31)
2Ln is T = O( mε2 −2L(n−m)M ).
2. Assume that G(θ) is also σ-strongly convex. Define the constant t = σ/L. If t ≤ 1, the number of iterations required for the SGD algorithm with batch size m to reach the convergence condition G(θk , s) − G(s)∗ ≤
ε2 n−m − RG (s, m) − M 2σ tm
1 is T = O(κ log 2σ ), where the condition number is defined as κ = − log(1−mt/n) . ε2
18
(32)
Generalized Convexity and Smoothness
We now analyze Theorem 4.2. Theorem 4.2 implies that if maxsk ⊆s Ψ∗ (∇θ G(θk , sk )) ≤
Ψ∗ (ε) is achievable by SGD, then ε must satisfy:
n−m M, m ψ ∗ (ε) ≥ RG (s, m).
Ψ∗ (ε) ≥
(33)
First, this indicates that the gradient energy does not necessarily converge to zero; ε is required to satisfy the above conditions. These two conditions describe the influence of model structure and capacity on the achievable optimum in optimization: (1) A smaller gradient correlation factor M facilitates convergence to a better gradient energy level; (2) A larger model capacity facilitates convergence toward the global optimum. The effect of batch size on the final convergence result is complex: a larger m (typically less than ⌊n/2⌋) is more favorable for reducing both n−m m M and RG (s, m). However, notably, the tightest upper bound on G(θk , s) − G(s)∗ is always ψ ∗ (0) − RG (s, m). When ψ ∗ (0) is large (i.e., ψ(0) is small), meaning that G(θ, s) is highly non-convex, this upper bound becomes too loose to enable convergence toward the global optimum. This is consistent with the issue encountered in classical convex optimization, where convexity is a prerequisite for GD/SGD to find the global optimum. As a result, large ψ ∗ (0) values render the existing bounds too loose to precisely characterize the non-convex optimization mechanism of SGD training in DNNs. This constitutes the core motivation for formulating the composite optimization problem introduced in the subsequent section.
5 Composite Optimization Problem This section provides a theoretical solution method for a special class of non-convex and non-smooth optimization problems represented by DNN training. The training objective of DNNs typically possesses a composite structure: a nonlinear mapping (e.g., a neural network) maps the input through parameters θ to produce a predicted output, which is then evaluated by a task-specific loss function. This two-tier “model–loss” structure naturally forms a composite function. However, traditional optimization theory is primarily designed for smooth or convex functions and cannot directly capture the complex geometric properties of such composite objectives. To more accurately model the optimization problem of DNNs, this section formally defines composite optimization problems based on the generalized convexity and generalized smoothness introduced earlier, and presents an optimization mechanism based on gradient energy and the induced norms of the model’s Jacobian matrix. 5.1 Definitions We define the composite optimization problem as follows: Definition 5.1 (Composite Optimization Problem) The deterministic composite optimization problem is defined as follows: min G(θ),
θ∈Rm
where G(θ) = F (h(θ)), and for almost all samples z, the following conditions hold: 19
(34)
Qi
• The outer function F : Rd → R̄ maintains H(ϕ)-convexity and H(Φ)-smoothness; • The composite function G(θ) is H(Ψ)-smooth with respect to θ; The stochastic composite optimization problem is defined as follows: minm EZ∼q G(θ, Z) ,
(35)
θ∈R
where G(θ, z) = F (hθ (z)), and for almost all samples z, the following conditions hold: • The outer function F : Rd → R̄ maintains H(ϕ)-convexity and H(Φ)-smoothness; • The composite function G(θ, z) is H(Ψ)-smooth with respect to θ; For consistency with the deterministic case, we also use G(θ, s) to denote the stochastic composite optimization problem, where s ∼ q n . Since the deterministic composite optimization problem can be viewed as a special case of the stochastic composite optimization problem when q is a Dirac delta at z or s = {z}, we focus on the stochastic case for brevity. Definition 5.2 (Jacobian Matrix and Its Induced Norm) For a stochastic composite optimization problem, let hθ (z) : Rm → Rd be a differentiable mapping parameterized by θ ∈ Rm . The Jacobian matrix of hθ (z) with respect to θ is denoted by Jθ hθ (z) ∈ Rd×m , and its induced norm is ∥Jθ hθ (z)∥. By Lemma 8.5, the lower induced norm of a full-column-rank Jacobian (i.e., d ≥ m) satisfies 1 m(Jθ hθ (z)) = , (36) ∥Jθ hθ (z)+ ∥ where (·)+ denotes the Moore–Penrose pseudoinverse. For a dataset s, the surrogate upper and lower induced norms are defined as ∥Jθ h(θ, s)∥ := max ∥Jθ hθ (z)∥,
(37)
z∈s
m(Jθ h(θ, s)) := min m(Jθ hθ (z)) = min
1
z∈s ∥Jθ hθ (z)+ ∥
z∈s
.
(38)
In the special case where the norm is the Euclidean (L2 ) induced norm, the above quantities reduce to the largest and smallest singular values: ∥Jθ hθ (z)∥2 = σmax (Jθ hθ (z)),
(39)
m(Jθ hθ (z)) = σmin (Jθ hθ (z)),
(40)
∥Jθ h(θ, s)∥2 = max σmax (Jθ hθ (z)),
(41)
m(Jθ h(θ, s)) = min σmin (Jθ hθ (z)).
(42)
z∈s
z∈s
20
Generalized Convexity and Smoothness
5.2 Convergence Analysis Theorem 5.1 For the stochastic composite optimization objective G(θ, s) (Definition 5.1), the following statements hold: 1. For any sample z: Φ∗ (
∇θ G(θ, z) ) ≤ G(θ, z) − G(z)∗ ≤ ϕ∗ (∇θ G(θ, z)∥Jθ hθ (z)+ ∥). ∥Jθ hθ (z)∥
2. For the dataset s: EΦ∗ (
∇θ G(θ, Z) ) ≤ G(θ, s) − G(s)∗ + RG (s, 1) ≤ Eϕ∗ (∇θ G(θ, Z)∥Jθ hθ (Z)+ ∥). ∥Jθ hθ (Z)∥
The proof can be found in Appendix A.11. When the energy function is based on the L2 -norm, the induced norm and the lower induced norm correspond to the largest and smallest singular values of the matrix, respectively. Therefore, the following corollary follows from the above theorem. Corollary 5.1 For the stochastic composite optimization objective G(θ, s) (Definition 5.1), if the energy function is based on the L2 -norm, the following statements hold: 1. For any sample z: ∇θ G(θ, z) ∇θ G(θ, z) ∗ ∗ Φ ≤ G(θ, z) − G(z)∗ ≤ ϕ . σmax (Jθ hθ (z)) σmin (Jθ hθ (z)) 2. For the dataset s: ∇θ G(θ, Z) ∇θ G(θ, Z) ∗ ∗ ≤ G(θ, s) − G(s)∗ + RG (s, 1) ≤ Eϕ . EΦ σmax (Jθ hθ (Z)) σmin (Jθ hθ (Z)) The above theorem indicates that G(θ, s) can be optimized by reducing the gradient energy and increasing the induced norm of the model’s Jacobian matrix. Since G(θ, z) is H(Ψ)-smooth, Theorem 4.2 implies that generalized SGD reduces the gradient energy, consequently reducing G(θ, s). The fact that generalized SGD achieves a reduction in gradient energy without directly reducing the induced norm provides a theoretical basis for solving composite optimization problems. According to Theorem 4.2, under the H(Ψ)-smoothness setting, the final convergence result of generalized SGD is constrained by the batch size m, the gradient correlation factor M , and the model capacity risk RG (s, m). Below, we analyze the impact of these factors on the convergence speed and solution quality for the composite optimization problem. 1. Impact of batch size. According to Theorem 4.2, increasing m helps reduce the gradient correlation factor M and the model capacity risk RG (s, m), thereby enabling EΨ∗ (∇θ G(θ, sk )) to converge to a smaller value at a faster rate. By Theorem 5.1, the suboptimality gap in the composite optimization problem is controlled by the gradient energy EΨ∗ (∇θ G(θ, Z)). Since E[Ψ∗ (∇θ G(θk , sk ))] is itself a mini-batch estimate of 21
Qi
the gradient energy, smaller batch sizes allow finer control over it. Thus, the choice of batch size in SGD represents a fundamental tradeoff between two key objectives: (1) small batches enhance the precision of gradient energy control (enabling convergence to better solutions) and (2) moderately larger batches improve convergence speed. Therefore, for generalized SGD, the preferred strategy is to first use a larger m to quickly converge to a reasonably good solution, and then reduce m to further decrease the gradient energy and obtain a better solution. This is consistent with the batch size scheduling strategy commonly employed in practice for training DNNs. 2. Impact of the gradient correlation factor M . A smaller M yields a smaller achievable upper bound for E[Ψ∗ (∇θ G(θk , sk ))] and a faster convergence rate. M characterizes the coupling among model parameters; therefore, for a fixed batch size, lower parameter coupling is more favorable for convergence to a better solution. Since low coupling is equivalent to parameter sparsity, this provides a novel perspective on how model architecture and parameterization influence a model’s capacity to fit the data, and it theoretically links model sparsity to trainability (optimizability). 3. Impact of model capacity risk. By Theorem 5.1, the suboptimality gap in the composite optimization problem is controlled by RG (s, 1). A larger model capacity risk RG (s, 1) tightens the upper bound on G(θ, s) − G(s)∗ , meaning that for the same gradient energy level, the distance to the global optimum is more tightly constrained. However, a larger RG (s, 1) also implies that the global optimum G(s)∗ is further from the per-sample optima, indicating greater difficulty in fitting all samples simultaneously. Thus, while a larger model capacity risk facilitates convergence to the (worse) global optimum, it reflects a fundamental limitation of model capacity rather than an advantage. As shown in Theorem 5.1, the induced norms of the model’s Jacobian matrix are another key factor controlling the optimization objective. Since ∇θ G(θ, z) = Jθ hθ (z)∇h F (hθ (z)), the gradient energy and the induced norms are coupled: as the gradient energy decreases, the loss gradient ∇h F diminishes, which may in turn affect the conditioning of the Jacobian matrix. Therefore, while reducing the gradient energy, it is essential to maintain or control the magnitude of the induced norms of the model’s Jacobian matrix. • Direct optimization. Increasing these induced norms directly can thus contribute to further reduction of the objective function. Notably, these induced norms are computed solely from parameter gradients and do not require detailed knowledge of the model architecture or higher-order derivatives such as the Hessian. However, computing the induced norms of a matrix, for instance, computing the induced norms via singular value decomposition, costs O(min{md2 , dm2 }) for an m × d matrix, making direct computation of the extreme singular values impractical for large-scale neural networks. • Structural design and control. As a more practical alternative, the method proposed to solve composite optimization problems only requires that the induced norm be nonzero, and that larger values are more favorable for optimization. This condition can be satisfied by controlling or designing the functional structure. A typical 22
Generalized Convexity and Smoothness
approach is to use skip connections (He et al., 2016), i.e., to set fθ (x) = x + gθ (x) with ∥∇x gθ (x)∥22 ≪ 1. In this construction, the singular values of the Jacobian matrix are close to 1, ensuring that ∥∇θ fθ (x)∥ remains bounded away from zero. In the following section, we demonstrate that the skip connection technique is a concrete realization of this design principle in deep learning. 5.3 Applications in Explaining DNN Trainability In this section, we analyze the optimization mechanisms underlying the trainability of DNNs. 5.3.1 Bounds on Empirical Risk In the field of deep learning, training DNNs is formulated as an ERM problem. In this section, we reformulate the ERM problem by incorporating the concepts of composite optimization problems. This allows us to provide theoretical support from our framework for gradient descent–type algorithms in optimizing DNN training. We define the ERM problem and the constraints considered in this paper as follows: Definition 5.3 (ERM problem) Let ℓ be the loss function. The ERM problem on the dataset s = {(X (i) , Y (i) )}ni=1 is defined as: min L(θ, s) = EXY ℓ(fθ (x), Y ) = EZ L(θ, Z). θ
(43)
The loss function ℓ(·, ·) and the model fθ (x) satisfy the following conditions: • Condition 1: ℓ(fθ (x), y) (i.e., L(θ, z)) is H(ϕ)-convex and H(Φ)-smooth with respect to the model’s output fθ (x), where ϕ(0) is close to 0, and both ϕ and Φ are L2 -norm energy functions. • Condition 2: ℓ(fθ (x), y) is H(Ψ)-smooth with respect to θ, where Ψ is an L2 -norm energy function. Define L(z)∗ = minθ L(θ, z) and L(s)∗ = minθ L(θ, s). Since the generalized convexity and generalized smoothness assumptions hold for common objective functions, we focus on interpreting the requirement in Condition 1 that ϕ(0) is close to 0. This condition implies that the loss function is convex or nearly convex with respect to the model prediction. Indeed, practical supervised-learning loss functions are typically constructed to be convex (or strictly convex) in the model’s output prediction to facilitate tractable optimization. Let ŷ = fθ (x) denote the model prediction. Several standard loss functions satisfying this convexity property include MSE, Mean Absolute Error (MAE), Binary CrossEntropy (Log Loss), Hinge Loss, and Softmax CrossEntropy Loss. Accordingly, ϕ(0) stays close to 0 for widely-used deep-learning losses, meaning the conditions within our ERM formulation are reasonable and align with practical settings. In deep learning, ERM is a prototypical composite optimization problem involving two fundamental components: the loss function and the model output. In the following sections, we will leverage the tools introduced in this section to characterize both the loss function 23
Qi
and the model architecture. This allows us to derive a principled understanding of the optimization mechanisms underlying deep learning. According to Theorem 5.1, the following corollary establishes bounds that characterize the global optimum of the ERM problem defined in Definition 5.3. Corollary 5.2 For the ERM problem, the following results hold: 1. For any sample z: ∇θ L(θ, z) ∇θ L(θ, z) ∗ ∗ ≤ L(θ, z) − L(z)∗ ≤ ϕ . Φ σmax (Jθ fθ (z)) σmin (Jθ fθ (z)) 2. For the dataset s: ∇θ L(θ, Z) ∇θ L(θ, Z) ∗ ∗ EΦ ≤ L(θ, s) − L(s)∗ + RL (s, 1) ≤ Eϕ . σmax (Jθ fθ (Z)) σmin (Jθ fθ (Z)) The above corollary indicates that training DNNs only requires reducing the gradient energy while controlling the induced norm of the model’s Jacobian matrix. Theorem 4.2 demonstrates that SGD can reduce the gradient energy. This provides a theoretical explanation for the optimizability of DNNs using SGD. The most widely used losses in deep learning are MSE loss for regression tasks and Softmax CrossEntropy loss for classification tasks, both of which belong to the Fenchel– Young loss family. The former is the Fenchel–Young loss generated by Ω(µ) = 12 ∥µ∥22 , in which case µ∗Ω∗ = µ. The latter is the Fenchel–Young loss corresponding to Ω(p) = −H(p), where p ∈ ∆, in which case µ∗Ω∗ = Softmax(µ). To ground these general bounds in practical settings, we specialize them to two widely used loss functions in machine learning: MSE and Softmax CrossEntropy. Corollary 5.3 Assume that the model fθ (x) can fit any single sample, i.e., L(z)∗ = 0 for all z ∈ Z. Then the following results hold: 1. For the MSE loss L(θ, z) = 21 ∥y − fθ (x)∥22 , we have ∥∇θ L(θ, z)∥22 ∥∇θ L(θ, z)∥22 ≤ L(θ, z) ≤ 2 (J f (z)) , 2 (J f (z)) 2σmax 2σmin θ θ θ θ E∥∇θ L(θ, Z)∥22 E∥∇θ L(θ, Z)∥22 ≤ L(θ, s) ≤ 2 (J f (s)) . 2 (J f (s)) 2σmax 2σmin θ θ θ θ 2. For the Softmax CrossEntropy loss L(θ, z) = CrossEntropy(y, Softmax(fθ (x))), where y is a one-hot label, we have ∥∇θ L(θ, z)∥22 ∥∇θ L(θ, z)∥22 ≤ L(θ, z) ≤ 2 (J f (z)) , 2 (J f (z)) 8 ln 2σmax 4 mini pi (x)σmin θ θ θ θ E∥∇θ L(θ, Z)∥22 E∥∇θ L(θ, Z)∥22 ≤ L(θ, s) ≤ 2 (J f (s)) , 2 (J f (s)) 8 ln 2σmax 4 mini pi (s)σmin θ θ θ θ where p(x) = Softmax(fθ (x)) is the Softmax output, mini pi (s) = minx∈s mini pi (x) is the minimum value of p, and y is a one-hot label. 24
Generalized Convexity and Smoothness
3. Fenchel Loss Bound: Suppose Ω is a function defined on a closed convex domain, continuously differentiable and twice differentiable on its domain, with a positive definite Hessian matrix. Let λmin and λmax denote the smallest and largest eigenvalues of the Hessian matrix ∇2 Ω(µ) for all µ in the domain of Ω. Then we have ∥∇θ L(θ, z)∥22 ∥∇θ L(θ, z)∥22 ≤ L(θ, z) ≤ 2 (J f (z)) , 2 2λmin σmax (Jθ fθ (z)) 2λmax σmin θ θ E∥∇θ L(θ, Z)∥22 E∥∇θ L(θ, Z)∥22 ≤ L(θ, s) ≤ 2 (J f (s)) . 2 (J f (s)) 2λmin σmax 2λmax σmin θ θ θ θ The proof of Corollary 5.3 is provided in Appendix A.12. The above corollary establishes the relationship between the empirical risk in DNN training and both the gradient energy and the induced norm, i.e., the singular values, of the model’s Jacobian matrix. Compared to Corollary 5.2, this form is more concise because we have made an assumption: the model fθ (x) can fit any single sample, i.e., L(z)∗ = 0 for all z ∈ Z. In practice, this assumption is reasonable, since the loss function can generally be driven close to zero when there is only a single training sample, as is the case for MSE and Softmax CrossEntropy loss. Furthermore, according to Theorem 4.2, generalized SGD has been shown to reduce the gradient energy without directly affecting the induced norm of the model’s Jacobian matrix, thereby providing a theoretical explanation for SGD-based training of DNNs. 5.3.2 Induced Norm Control through Random Parameter Initialization We first introduce an idealized assumption characterizing gradient properties of randomly initialized DNNs. For DNNs with randomly initialized parameters (e.g., He or Xavier initialization), the gradients of each output dimension with respect to model parameters are approximately statistically independent. That is, each column of the Jacobian matrix Jθ f (x) is independently and uniformly sampled from the ball Bϵm = {v ∈ Rm : ∥v∥2 ≤ ϵ}. We refer to this as the approximate gradient independence assumption. Under this assumption, we can prove the following result that connects model parameter dimensionality to the condition number of the Jacobian matrix: Proposition 5.1 Let d denote the dimension of the model output and m denote the number of model parameters, with d ≤ m−1. If each column of the Jacobian matrix Jθ f (x) is drawn independently and uniformly from the ball Bϵm = {v ∈ Rm : ∥v∥2 ≤ ϵ}, then with probability at least 1 − O(1/d), it follows that: σmin (Jθ f (x)) ≥ (1 −
2 log d )ϵ, m
2 (J f (x)) σmax θ 2 (J f (x)) ≤ ζ(m, d) + 1, σmin θ
(44)
−2 √ 6 log d d where ζ(m, d) = 2d√m−1 1 − 2 log . For fixed d and sufficiently large m, ζ(m, d) is m decreasing in m; for fixed m, it is increasing in d. 25
Qi
The proof of Proposition 5.1 is provided in Appendix A.13. Proposition 5.1 shows that increasing m relative to d makes the extreme singular values more balanced and larger, so the risk bounds tighten and gradient-energy reduction translates directly into risk reduction. 5.3.3 Induced Norm Control through Skip Connections We next explain how skip connections preserve Jacobian singular values. Corollary 5.3 requires controlling both the gradient energy and the Jacobian singular values; skip connections prevent the latter from decaying with depth. For quantitative analysis, we decompose the model fθ (x) into a sequence of k stacked blocks, with the output of the i-th block denoted h(i) (and h(0) = x, h(k) = fθ (x)). Let θ(j) denote the parameters of the j-th block, I the identity matrix of appropriate dimension, ∇h(i) h(i+1) the Jacobian of the (i + 1)-th block’s output with respect to its input, and ∇θ(j) fθ (x) the Jacobian of the final output with respect to the j-th block’s parameters. For a standard feedforward network (no skip connections), applying this convention gives: k−1 Y ∇θ(j) fθ (x) = ∇θ(j) h(j) · ∇h(i) h(i+1) , (45) i=j
where the product is taken in the natural left-to-right order, i.e., the Jacobian of block j + 1 is multiplied after that of block j. Under standard random initialization, parameter norms are small (e.g., He initialization for ReLU networks). Consequently, the entries of ∇h(i) h(i+1) are smaller than 1 with high probability. The product of these Jacobians decays exponentially with the number of blocks k − j, causing ∥∇θ(j) fθ (x)∥F to vanish as depth increases. This leads to the singular values of the Jacobian approaching zero, which weakens the risk-gradient energy bounds (Corollary 5.3) and impairs trainability. Residual blocks with skip connections address this decay by adding an identity skip path to each block. For a residual network gθ (x), the chain rule becomes: k−1 Y ∇θ(j) gθ (x) = ∇θ(j) h(j) · ∇h(i) h(i+1) + I . (46) i=j
Since the entries of ∇h(i) h(i+1) are much smaller than 1, we have ∇h(i) h(i+1) + I ≈ I, so ∇θ(j) gθ (x) ≈ ∇θ(j) h(j) . This prevents the Jacobian norm from decaying with depth, preserving the induced norm of the model’s Jacobian matrix. We formalize this insight in the following proposition: Proposition 5.2 (Role of Skip Connections) For ERM optimization: 1. Skip connections mitigate the exponential decay of the Jacobian matrix’s induced norm with increasing network depth, preserving the tightness of the risk-gradient energy bounds (Corollary 5.3) and maintaining trainability. 2. If skip connections ensure the singular values of ∇h(i) h(i+1) + I are greater than 1 (a mild condition satisfied by standard residual blocks with ReLU activations), increasing network depth increases the induced norm of the model’s Jacobian matrix, strengthening the risk-gradient energy bounds and improving trainability. 26
Generalized Convexity and Smoothness
This proposition provides a theoretical justification for the empirical success of residual networks: skip connections not only prevent vanishing gradients (a well-known benefit) but also preserve the conditioning of the model’s Jacobian matrix, ensuring gradient energy minimization translates directly to empirical risk reduction, even for extremely deep networks.
6 Empirical Validation This section presents an empirical validation of the core theoretical conclusions established in this paper through a series of targeted experiments. 6.1 Experimental Configuration The experiments are implemented in Python 3.7 with PyTorch 2.2.2 and executed on a GeForce RTX 2080 Ti GPU. 6.2 Verification of GD/SGD Convergence 6.2.1 Experimental Designs Because the convergence analysis of generalized SGD builds on the result that the optimal learning rate of generalized GD is one, we first verify under H(Φ)-smoothness that the optimal learning rate of generalized GD is α∗ = 1. Because the case Φ(·) = a∥ · ∥22 reduces generalized GD to classical GD, which has been extensively studied, we instead evaluate the framework on a family of non-Lipschitz objectives whose corresponding Φ is tractable: F (x) = ∥x∥r2 ,
r ∈ {1.1, 1.2, . . . , 2.0},
(47)
where r is the polynomial exponent. We first establish the following technical lemma to determine the tightest energy function Φ: Lemma 6.1 Let G(θ) = ∥θ∥r2 with 1 < r < 2. Then G satisfies H(Φ)-smoothness, where Φ(θ − η) = 22−r ∥θ − η∥r2 constitutes a tight upper bound for SG (η, θ). The proof is provided in Appendix A.14. In our experiments, we initialize 100-dimensional parameters from N (0, 1) and optimize using generalized GD with learning rate α ∈ {0.1, 0.3, 0.5, 0.7, 1.0, 1.5, 1.8, 2.0, 3.0}. We monitor the gradient energy log2 ∥∇F (θk )∥22 to quantify convergence behavior. 6.2.2 Experimental Results Experimental Results and Discussion The convergence curves in Figs. 2 and 3 show consistent empirical patterns across the tested non-Lipschitz-smooth functions. The best convergence performance is persistently attained at α = 1; convergence degrades monotonically as α deviates from 1, optimization stagnates at α = 2, and divergence occurs for α > 2. These trends hold uniformly over all examined exponent values r ∈ {1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0}, offering direct empirical evidence for the optimal learning-rate condition and stability boundary stated 27
Qi
=