arXiv:2610.39717cs.LGOct 2026

Manuscript Offprint

arXiv:2610.39717

Implicit Bias of (Stochastic) Gradient Descent on Deep Linear Diagonal Networks

Wiebke Bartolomaeus, Holger Rauhut

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Modern machine learning models are often overparameterized, i.e., have more parameters than training data. This typically implies that the loss function admits multiple minimizers so that training methods (and their hyperparameter choices) have significant influence on the computed solution. We study this so-called implicit bias phenomenon in the context of training deep linear diagonal networks. Previous work has shown that the gradient flow for learning such networks converges to (almost) sparse solutions when initialized small. For an arbitrary number of layers, we extend this analysis to the practically more realistic (stochastic) gradient descent iterations. Our approach identifies (stochastic) gradient descent as a perturbed (stochastic) mirror gradient descent. This allows us to establish convergence and characterize the limiting solution, relating it to weighted ℓ1\ell_{1}-minimization. Moreover, we provide sufficient conditions on the step sizes and quantify the influence of the step sizes on the implicit bias.

Keywords: gradient descent; implicit bias; linear diagonal networks; ℓ1\ell_{1}-minimization; mirror gradient descent, stochastic gradient descent

1 Introduction

In recent years the size of machine learning models has increased dramatically. Typically, the amount of parameters is larger than the number of available training data so that many neural networks exist which interpolate the data exactly and therefore give zero loss – even for training data with random labels [1]. It is surprising that nevertheless training often produces networks that generalize well to unseen data – in contrast to classical statistics which would predict overfitting and poor generalization.

In the situation of many global minimizers the optimization algorithm and its hyperparameter choices such as initialization have significant impact on the computed solution. Understanding such implicit bias (also called implicit regularization) and why it leads to good generalization property is key for understanding and further developing modern machine learning methods. One popular hypothesis is that training methods such as (stochastic) gradient descent and its variants promote neural network models of low complexity, e.g. in the form of sparsity and low rank, for suitable (small enough) initialization. Following Occam's razor principle that reality prefers simple solutions, sparsity and other low complexity models should intuitively lead to models that generalize better than models of high complexity. (Of course, suitable notions of low complexity may depend on the precise machine learning task at hand.) In the context of signal processing, this idea has been exploited very successfully in the last decades in compressed sensing [2], [3].

In order to gain understanding on the implicit bias phenomenon in deep learning, the community has started to analyze simplified network models in recent years. While these toy models are far from what is used in realistic scenarios, the corresponding theoretical results could indeed establish that sparsity may arise during the training. One line of works has studied linear networks in regression (see, for example, [4], [5], [6], [7], [8], [9], [10], [11], [12]) and (in terms of max-margin solutions for) classification tasks [13], [14]. Another line of research relates gradient descent – or its continuous analogue (gradient flow) – to mirror descent methods [15], [16], [17] or studied the implicit bias of mirror descent methods directly [18].

Somewhat unexpectedly, these works have revealed direct connections between learning linear networks to the theory of compressed sensing [2], [3]. In particular, gradient flow/descent may even be taken as an alternative algorithm for compressed sensing [7].

Most of these works consider gradient flow as an approximation of gradient descent (by letting the step size go to zero), which allows the use of analytic tools, e.g., ODE theory, but considerably fewer works studied the more realistic discrete gradient descent methods. For instance, the authors in [19] and [14] analyzed (stochastic) gradient descent for two layer linear diagonal networks. In [12] the authors considered an alternating gradient descent approach for linear diagonal networks (among other architectures), also yielding a saddle-to-saddle analysis and therefore connecting to sparsity if the initialization is chosen small enough. Gradient descent for this architecture from the perspective of analyzing the role of the step size parameter was discussed in [20], focusing on the properties of Lyapunov stable solutions with respect to the step size. But it did not deal with convergence of the algorithm itself.

The objective of this paper is to close the gap between the theoretical analysis of gradient flow and gradient descent as well as stochastic gradient descent for deep (more than two layers) linear networks, which to the best of our knowledge has not been done before. Our results described below are stronger than those in [21] obtained by using the standard forward Euler method to carry the results from continuous to discrete, as they either need an exponentially small step size or have an exponentially large error.

Our approach consists in introducing a perturbed (stochastic) mirror gradient descent that accounts for the discrepancy between the discrete and continuous dynamics. Using this method, we prove convergence not only of the loss but also of the iterates themselves. In general, convergence of the loss does not imply convergence of the iterates and convergence of the iterates can be difficult to establish [22]. The implicit bias is then identified similarly as in the gradient flow case [7]. However, in comparison to the gradient flow case where the implicit bias is described by a parameterized minimization problem with parameter being the initialization, the parameter of the corresponding optimization problem in the (stochastic) gradient descent case is the initialization modified by a perturbation term that depends on the step size and the full trajectory of the iterates. We characterize the limit as a solution of this perturbed minimization problem and give a bound on the perturbation in terms of the step sizes – showing that the perturbation vanishes when the step sizes go to zero. Similarly as in [7], we relate this minimization problem to a weighted ℓ1\ell_{1}-minimization problem, where the weight depends on the perturbed initialization.

This paper is organized as follows. In Section 1.2 we give an overview of the regression problem setting and formally introduce our diagonal linear networks and start with a warm-up on gradient flows for one-layer diagonal networks (Section 2). Our main analysis is presented in Section 3, where we define a suitable perturbed mirror gradient descent. This enables us to establish convergence of the iterates under a suitable (but realistic) bound on the step size. In Section 3.1 we cover the case that all parameter coefficients are initialized positively (and then remain positive throughout training). In Section 3.2 we then extend this analysis to the setting where the linear network is parameterized as a difference of two factorizations. This allows also convergence to vectors with negative entries. Section 4 extends our analysis the deterministic gradient descent to stochastic gradient descent. In Section 5 we relate our characterization of the limit as minimizers of a certain Bregman divergence to a weighted ℓ1\ell_{1}-minimization problem. We conclude by illustrating our results with numerical experiments in Section 6.

References (38)