Implicit Regularization in Deep Learning May Not Be Explainable by Norms
Noam Razin, Nadav Cohen
Introduction
A standard test-bed for studying implicit regularization in deep learning is matrix completion (cf. ): given a randomly chosen subset of entries from an unknown matrix , the task is to recover the unseen entries. This may be viewed as a prediction problem, where each entry in stands for a data point: observed entries constitute the training set, and the average reconstruction error over the unobserved entries is the test error, quantifying generalization. Fitting the observed entries is obviously an underdetermined problem with multiple solutions. However, an extensive body of work (see for a survey) has shown that if is low-rank, certain technical assumptions (e.g. “incoherence”) are satisfied and sufficiently many entries are observed, then various algorithms can achieve approximate or even exact recovery. Of these, a well-known method based upon convex optimization finds the minimal nuclear norm The nuclear norm (also known as trace norm) of a matrix is the sum of its singular values, regarded as a convex relaxation of rank. matrix among those fitting observations (see ).
One may try to solve matrix completion using shallow neural networks. A natural approach, matrix factorization, boils down to parameterizing the solution as a product of two matrices — — and optimizing the resulting (non-convex) objective for fitting observations. Formally, this can be viewed as training a depth linear neural network. It is possible to explicitly constrain the rank of the produced solution by limiting the shared dimension of and . However, Gunasekar et al. have shown in that in practice, even when the rank is unconstrained, running gradient descent with small learning rate (step size) and initialization close to the origin (zero) tends to produce low-rank solutions, and thus allows accurate recovery if is low-rank. Accordingly, they conjectured that the implicit regularization in matrix factorization boils down to minimization of nuclear norm:
With small enough learning rate and initialization close enough to the origin, gradient descent on a full-dimensional matrix factorization converges to a minimal nuclear norm solution.
Given a (shallow or deep) matrix factorization, for any norm (or quasi-norm) , there exists a set of observed entries with which small learning rate and initialization close to the origin can not ensure convergence of gradient descent to a minimal (in terms of ) solution.
Conjectures 1 and 2 contrast each other, and more broadly, represent opposing perspectives on the question of whether norms may be able to explain implicit regularization in deep learning. In this paper, we resolve the tension between the two conjectures by affirming the latter. In particular, we prove that there exist natural matrix completion problems where fitting observations via gradient descent on a depth matrix factorization leads — with probability or more over (arbitrarily small) random initialization — all norms (and quasi-norms) to grow towards infinity, while the rank essentially decreases towards its minimum. This result is in fact stronger than the one suggested by Conjecture 2, in the sense that: (i) not only is each norm (or quasi-norm) disqualified by some setting, but there are actually settings that jointly disqualify all norms (and quasi-norms); and (ii) not only are norms (and quasi-norms) not necessarily minimized, but they can grow towards infinity. We corroborate the analysis with empirical demonstrations.
The remainder of the paper is organized as follows. Section 2 reviews related work. Section 3 presents the deep matrix factorization model. Section 4 delivers our analysis, showing that its implicit regularization can drive all norms to infinity. Experiments, with both the analyzed setting and tensor factorization, are given in Section 5. Finally, Section 6 summarizes.
Related work
Theoretical analysis of implicit regularization in deep learning is a highly active area of research. Our work extends the bulk of literature concerning mathematical characterization of the implicit regularization induced by gradient-based optimization. As opposed to works studying the relation between implicit regularization and generalization (cf. ), or ones analyzing other sources of implicit regularization such as dropout (e.g. ). Existing characterizations focus on different aspects of learning, for example: dynamics of optimization (); curvature (“flatness”) of obtained minima (); frequency spectrum of learned input-output mappings (); invariant quantities throughout training (); and statistical properties imported from data (). A ubiquitous approach, arguably more prevalent than the aforementioned, is to demonstrate that learned input-output mappings minimize some notion of norm, or analogously, maximize some notion of margin. Works along this line have treated various models, Limiting such treatments to particular models is necessary, as in general one can not expect a gradient-based optimizer to yield minimal norm solutions over all possible objectives. Indeed, and have shown that there exist (carefully crafted) objectives over which variants of gradient descent do not produce minimal norm solutions. This accords with the conventional wisdom by which implicit regularization does not stem from an optimizer alone, but from its combination with a model (class of objectives). including: linear (single-layer) predictors (); normalized linear models (); certain polynomially parameterized linear models (); homogeneous (and sum of homogeneous) models (); ultra-wide neural networks (); linear neural networks with a single output (); and matrix factorization — the subject of our inquiry.
Matrix factorization is perhaps the most extensively studied model in the context of implicit regularization induced by non-convex gradient-based optimization. It corresponds to linear neural networks with multiple inputs and outputs, typically trained to recover low-rank linear mappings. The literature on matrix factorization for low-rank matrix recovery is far too broad to cover here — we refer to for a recent survey, while mentioning that the technique is often attributed to . Notable works proving successful recovery of a low-rank matrix via matrix factorization trained by gradient descent with no explicit regularization are . Of these, can be viewed as affirming Conjecture 1 (from ) for a certain special case. For a case related to (yet different from) that of , it was shown in that the set of matrices fitting observations is in fact a singleton, meaning Conjecture 1 holds trivially. has affirmed Conjecture 1 under different assumptions, but nonetheless argued empirically that it does not hold true in general, resonating with Conjecture 2 (from ). To the best of our knowledge, no theoretical support for the latter was provided prior to its proof in this paper. We note that the proof relies on technical results derived in and (restated in Subappendix D.2.1 for completeness).
Extending the research on matrix factorization, the use of tensor factorization for recovering low-rank tensors is a frequent topic of investigation (cf. ). Nevertheless, the experiments reported in this paper provide the first evidence we are aware of for such use to be successful under gradient-based optimization with no explicit regularization (in particular without imposing low-rank on the tensor factorization).
Deep matrix factorization
referred to as the product matrix of the factorization. Our interest lies on the implicit regularization of gradient descent, i.e. on the type of product matrices (Equation (3)) it will find when applied to the overparameterized objective (Equation (2)). Accordingly, and in line with prior work (cf. ), we focus on the case in which the search space is unconstrained, meaning (rank is not limited by the parameterization).
As a theoretical surrogate for gradient descent with small learning rate and near-zero initialization, similarly to and (as well as other works analyzing linear neural networks, e.g. ), we study gradient flow (gradient descent with infinitesimally small learning rate): A technical subtlety of optimization in continuous time is that in principle, it is possible to asymptote (diverge to infinity) after finite time. In such a case, the asymptote is regarded as the end of optimization, and time tending to infinity () is to be interpreted as tending towards that point.
and assume balancedness at initialization, i.e.:
In particular, when considering random initialization, we assume that are drawn from a joint probability distribution by which Equation (5) holds almost surely. This is an idealization of standard random near-zero initializations, e.g. Xavier () and He (), by which Equation (5) holds approximately with high probability (note that the equation holds exactly in the standard “residual” setting of identity initialization — cf. ). The condition of balanced initialization (Equation (5)) played an important role in the analysis of , facilitating derivation of a differential equation governing the product matrix of a linear neural network (see Lemma 4 in Subappendix D.2.1). It was shown in empirically (and will be demonstrated again in Section 5) that there is an excellent match between the theoretical predictions of gradient flow with balanced initialization, and its practical realization via gradient descent with small learning rate and near-zero initialization. Other works (e.g. ) have supported this match theoretically, and we provide additional support in Appendix A by extending our theory to the case of unbalanced initialization (Equation (5) holding approximately).
Implicit regularization can drive all norms to infinity
In this section we prove that for matrix factorization of depth , there exist observations with which optimizing the overparameterized objective (Equation (2)) via gradient flow (Equations (4) and (5)) leads — with probability or more over random (“symmetric”) initialization — all norms and quasi-norms of the product matrix (Equation (3)) to grow towards infinity, while its rank essentially decreases towards minimum. By this we not only affirm Conjecture 2, but in fact go beyond it in the following sense: (i) the conjecture allows chosen observations to depend on the norm or quasi-norm under consideration, while we show that the same set of observations can apply jointly to all norms and quasi-norms; and (ii) the conjecture requires norms and quasi-norms to be larger than minimal, while we establish growth towards infinity.
For simplicity of presentation, the current section delivers our construction and analysis in the setting (i.e. -by- matrix completion) — extension to different dimensions is straightforward (see Appendix B). We begin (Subsection 4.1) by introducing our chosen observations and discussing their properties. Subsequently (Subsection 4.2), we show that with these observations, decreasing loss often increases all norms and quasi-norms while lowering rank. Minimization of loss is treated thereafter (Subsection 4.3). Finally (Subsection 4.4), robustness of our construction to perturbations is established.
Consider the problem of completing a -by- matrix based on the following observations:
The solution set for this problem (i.e. the set of matrices obtaining zero loss) is:
The (weakened) triangle inequality allows us to lower bound by (up to multiplicative and additive constants). Thus, the set of values corresponding to -minimizers must be bounded. If is a Schatten- (quasi-)norm, a straightforward analysis shows it is monotonically increasing with respect to , implying it is minimized if and only if . ∎
In addition to norms and quasi-norms, we are also interested in the evolution of rank throughout optimization of a deep matrix factorization. More specifically, we are interested in the prospect of rank being implicitly minimized, as demonstrated empirically in . The discrete nature of rank renders its direct analysis unfavorable from a dynamical perspective (the rank of a matrix implies little about its proximity to low-rank), thus we consider the following surrogate measures: (i) effective rank (Definition 1 below; from ) — a continuous extension of rank used for numerical analyses; and (ii) distance from infimal rank (Definition 2 below) — (Frobenius) distance from the minimal rank that a given set of matrices may approach. According to Proposition 2 below, these measures independently imply that, although all solutions to our matrix completion problem — i.e. all (see Equation (7)) — have rank , it is possible to essentially minimize the rank to by taking . Recalling Proposition 1, we conclude that in our setting, there is a direct contradiction between minimizing norms or quasi-norms and minimizing rank — the former requires confinement to some bounded interval, whereas the latter demands divergence towards infinity. This is the critical feature of our construction, allowing us to deem whether the implicit regularization in deep matrix factorization favors norms (or quasi-norms) over rank or vice versa.
The effective rank (Definition 1) takes the values along (Equation (7)). For , it is maximized when , and monotonically decreases to as grows. Correspondingly, the infimal rank (Definition 2) of is , and the distance of from this infimal rank is maximized when , monotonically decreasing to as grows.
Analyzing the singular values of — — reveals that: (i) attains a minimal value of when , monotonically increasing to as grows; and (ii) attains a maximal value of when , monotonically decreasing to as grows. The results for effective rank, infimal rank and distance from infimal rank readily follow from this characterization. ∎
2 Decreasing loss increases norms
Consider the process of solving our matrix completion problem (Subsection 4.1) with gradient flow over a depth matrix factorization (Section 3). Theorem 1 below states that if the product matrix (Equation (3)) has positive determinant at initialization, lowering the loss leads norms and quasi-norms to increase, while the rank essentially decreases.
An immediate consequence of Theorem 1 is that, if the product matrix (Equation (3)) has positive determinant at initialization, convergence to zero loss leads all norms and quasi-norms to grow to infinity, while the rank is essentially minimized. This is formalized in Corollary 1 below.
where is the product matrix of the deep factorization (Equation (3)) at time of optimization. On the other hand:
Theorem 1 and Corollary 1 imply that in our setting (Subsection 4.1), where minimizing norms (or quasi-norms) and minimizing rank contradict each other, the implicit regularization of deep matrix factorization is willing to completely give up on the former in favor of the latter, at least on the condition that the product matrix (Equation (3)) has positive determinant at initialization. How probable is this condition? By Proposition 3 below, it holds with probability if the product matrix is initialized by any one of a wide array of common distributions, including matrix Gaussian distribution with zero mean and independent entries, and a product of such. We note that rescaling (multiplying by ) initialization does not change the sign of product matrix’s determinant, therefore as postulated by Conjecture 2, initialization close to the origin (along with small learning rate Recall that gradient flow corresponds to gradient descent with infinitesimally small learning rate. ) can not ensure convergence to solution with minimal norm or quasi-norm.
Multiplying a row of by keeps its distribution intact while flipping the sign of its determinant. This implies . The first result then follows from the fact that a matrix drawn from a continuous distribution is almost surely non-singular. The second result is an outcome of the same fact, as well as the multiplicativity of determinant and the law of total probability. ∎
3 Convergence to zero loss
It is customary in the theory of deep learning (cf. ) to distinguish between implicit regularization — which concerns the type of solutions found in training — and the complementary question of whether training loss is globally optimized. We supplement our implicit regularization analysis (Subsection 4.2) by addressing this complementary question in two ways: (i) in Section 5 we empirically demonstrate that on the matrix completion problem we analyze (Subsection 4.1), gradient descent over deep matrix factorizations (Section 3) indeed drives training loss towards global optimum, i.e. towards zero; and (ii) in Proposition 4 below we theoretically establish convergence to zero loss for the special case of depth and scaled identity initialization (treatment of additional depths and initialization schemes is left for future work). We note that when combined with Corollary 1, Proposition 4 affirms that in the latter special case, all norms and quasi-norms indeed grow to infinity while rank is essentially minimized. Notice that under (positively) scaled identity initialization the determinant of the product matrix (Equation (3)) is positive, as required by Corollary 1.
We first establish that the product matrix is positive definite for all . This simplifies a dynamical characterization from (restated as Lemma 4 in Subappendix D.2), yielding lucid differential equations governing the entries of the product matrix. Careful analysis of these equations then completes the proof. ∎
4 Robustness to perturbations
Our analysis (Subsection 4.2) has shown that when applying a deep matrix factorization (Section 3) to the matrix completion problem defined in Subsection 4.1, if the product matrix (Equation (3)) has positive determinant at initialization — a condition that holds with probability under the wide variety of random distributions specified by Proposition 3 — then the implicit regularization drives all norms and quasi-norms towards infinity, while rank is essentially driven towards its minimum. A natural question is how common this phenomenon is, and in particular, to what extent does it persist if the observed entries we defined (Equation (6)) are perturbed. Theorem 2 below generalizes Theorem 1 (from Subsection 4.2) to the case of arbitrary non-zero values for the off-diagonal observations , and an arbitrary value for the diagonal observation . In this generalization, the assumption (from Theorem 1) of the product matrix’s determinant at initialization being positive is modified to an assumption of it having the same sign as (the probability of which is also under the random distributions covered by Proposition 3). Conditioned on the modified assumption, the smaller is compared to , the higher the implicit regularization is guaranteed to drive norms and quasi-norms, and the lower it is guaranteed to essentially drive the rank. Two immediate implications of Theorem 2 are: (i) if the diagonal observation is unperturbed (), the off-diagonal ones () can take on any non-zero values, and the phenomenon of implicit regularization driving norms and quasi-norms towards infinity (while essentially driving rank towards its minimum) will persist; and (ii) this phenomenon gracefully recedes as the diagonal observation is perturbed away from zero. We note that Theorem 2 applies even if the unobserved entry is repositioned, thus our construction is robust not only to perturbations in observed values, but also to an arbitrary change in the observed locations. See Subappendix C.1 for empirical demonstrations.
Consider the setting of Theorem 1 subject to the following changes: (i) the observations from Equation (6) are generalized to:
leading to the following solution set in place of that from Equation (7):
The proof follows a line similar to that of Theorem 1, with slightly more involved derivations. ∎
Experiments
This section presents our empirical evaluations. We begin in Subsection 5.1 with deep matrix factorization (Section 3) applied to the settings we analyzed (Section 4). Then, we turn to Subsection 5.2 and experiment with an extension to tensor (multi-dimensional array) factorization. For brevity, many details behind our implementation, as well as some experiments, are deferred to Appendix C.
In , Gunasekar et al. experimented with matrix factorization, arriving at Conjecture 1. In the following work , Arora et al. empirically evaluated additional settings, ultimately arguing against Conjecture 1, and raising Conjecture 2. Our analysis (Section 4) affirmed Conjecture 2, by providing a setting in which gradient descent (with infinitesimally small learning rate and initialization arbitrarily close to the origin) over (shallow or deep) matrix factorization provably drives all norms (and quasi-norms) towards infinity. Specifically, we established that running gradient descent on the overparameterized matrix completion objective in Equation (2), where the observed entries are those defined in Equation (6), leads the unobserved entry to diverge to infinity as loss converges to zero. Figure 1 demonstrates this phenomenon empirically. Figures 4 and 5 in Subappendix C.1 extend the experiment by considering, respectively: different matrix dimensions (see Appendix B); and perturbations and repositionings applied to observations (cf. Subsection 4.4). The figures confirm that the inability of norms (and quasi-norms) to explain implicit regularization in matrix factorization translates from theory to practice.
2 From matrix to tensor factorization
At the heart of our analysis (Section 4) lies a matrix completion problem whose solution set (Equation (7)) entails a direct contradiction between minimizing norms (or quasi-norms) and minimizing rank. We have shown that on this problem, gradient descent over (shallow or deep) matrix factorization is willing to completely give up on the former in favor of the latter. This suggests that, rather than viewing implicit regularization in matrix factorization through the lens of norms (or quasi-norms), a potentially more useful interpretation is minimization of rank. Indeed, while global minimization of rank is in the worst case computationally hard (cf. ), it has been shown in (theoretically as well as empirically) that the dynamics of gradient descent over matrix factorization promote sparsity of singular values, and thus they may be interpreted as searching for low rank locally. As a step towards assessing the generality of this interpretation, we empirically explore an extension of matrix factorization to tensor factorization. The reader is referred to and for an introduction to tensor factorizations.
Figure 2 displays results of tensor completion experiments, in which tensor factorization (optimization of loss in Equation (16) via gradient descent over parameterization in Equation (17)) is applied to observations (i.e. ) drawn from a low-rank ground truth tensor. As can be seen in terms of both reconstruction error (distance from ground truth tensor) and (tensor) rank of the produced solutions, tensor factorizations indeed exhibit an implicit regularization towards low rank. The phenomenon thus goes beyond the special case of matrix (order tensor) factorization. Theoretically supporting this finding is regarded as a promising direction for future research.
As discussed in Section 1, matrix completion can be seen as a prediction problem, Observed entries in the matrix to recover stand for training examples, and unobserved entries for test set. and matrix factorization as its solution with a linear neural network. In a similar vein, tensor completion may be viewed as a prediction problem, and tensor factorization as its solution with a convolutional arithmetic circuit — see Figure 3. Convolutional arithmetic circuits form a class of non-linear neural networks that has been studied extensively in theory (cf. ), and has also demonstrated promising results in practice (see ). Analogously to how the input-output mapping of a linear neural network is naturally represented by a matrix, that of a convolutional arithmetic circuit admits a natural representation as a tensor. Our experiments (Figure 2 and Figure 6 in Subappendix C.1) show that (at least in some settings) when learned via gradient descent, this tensor tends to have low rank. We thus obtain a second exemplar of a neural network architecture whose implicit regularization strives to lower a notion of rank for its input-output mapping. This leads us to believe that the phenomenon may be general, and formalizing notions of rank for input-output mappings of contemporary models may be key to explaining generalization in deep learning.
Summary
The extent to which norms (and quasi-norms) can explain the implicit regularization induced by gradient-based optimization is a central question in the theory of deep learning. A standard test-bed for its study is matrix factorization — matrix completion via linear neural networks trained by gradient descent — which in practice tends to produce low-rank solutions. It is an open problem whether the implicit regularization in matrix factorization can be characterized as minimization of a norm (or quasi-norm) — Conjecture 1 from supports this supposition, whereas Conjecture 2 from opposes it. We presented a simple (and robust to perturbations) matrix completion setting for which, with probability or more over random initialization of gradient descent, the implicit regularization in matrix factorization provably drives all norms (and quasi-norms) to grow towards infinity, while rank is essentially minimized. This affirms Conjecture 2, and although it does not formally refute Conjecture 1 (the latter’s technical assumptions are not necessarily satisfied by our setting), we believe that in essence our result implies that norm (or quasi-norm) minimization cannot explain implicit regularization in matrix factorization, let alone in deep learning altogether.
The crux behind the matrix completion setting we defined is that its solution set entails a direct contradiction between minimizing norms (or quasi-norms) and minimizing rank. The fact that the former is given up on in favor of the latter suggests that, rather than viewing implicit regularization in matrix factorization through the lens of norms (or quasi-norms), a potentially more useful interpretation is minimization of rank. As a step towards assessing the generality of this interpretation, we experimented with an extension of matrix factorization to tensor factorization, and found that it too exhibits an implicit regularization towards low rank, where rank is defined in the context of tensors. Similarly to how matrix factorization corresponds to a linear neural network whose input-output mapping is represented by a matrix, tensor factorization corresponds to a convolutional arithmetic circuit (certain type of non-linear neural network) whose input-output mapping is represented by a tensor. We thus obtain a second exemplar of a neural network architecture whose implicit regularization strives to lower a notion of rank for its input-output mapping. Theoretical investigation of the implicit regularization in tensor factorization is regarded as a promising direction for future research. More broadly, we believe that neural networks minimizing notions of rank for their input-output mappings may be a general phenomenon, and hypothesize that formalizing such notions in the context of contemporary models may be key to explaining generalization in deep learning.
Broader Impact
The application of deep learning in practice is based primarily on trial and error, conventional wisdom and intuition, often leading to suboptimal performance, as well as compromise in important aspects such as safety, privacy and fairness. Developing rigorous theoretical foundations behind deep learning may facilitate a more principled use of the technology, alleviating aforementioned shortcomings. The current paper takes a step along this vein, by addressing the central question of implicit regularization induced by gradient-based optimization. While theoretical advances — particularly those concerned with explaining widely observed empirical phenomena — oftentimes do not pose apparent societal threats, a potential risk they introduce is misinterpretation by scientific readership. We have therefore made utmost efforts to present our results as transparently as possible.
Acknowledgments and Disclosure of Funding
This work was supported by Len Blavatnik and the Blavatnik Family foundation, as well as the Yandex Initiative in Machine Learning. The authors thank Nathan Srebro and Jason D. Lee for their illuminating comments which helped improve the manuscript.
References
References
Appendix A Extension to unbalanced initialization
The following definition quantifies unbalancedness.
We will present two approaches for showing that approximate versions of our main theoretical results (Theorems 1 and 2) hold if unbalancedness magnitude at initialization is small: (i) using continuity of optimizer trajectory with respect to its initialization (Subappendix A.1); and (ii) employing conservation of unbalancedness magnitude throughout optimization (Subappendix A.2). Both approaches rely on the fact that small unbalancedness magnitude implies proximity to perfect balancedness, as stated formally in the following lemma.
Based on singular value decompositions of , the proof provides an explicit construction for . Starting with , for the matrices are defined such that: (i) ; and (ii) . The former ensures that are balanced, whereas the latter implies for all . ∎
Trajectories of gradient flow over a smooth objective are Lipschitz continuous with respect to their initialization, in the sense that for any , the location at time of optimization is a Lipschitz continuous function of the initial point. This fact is established by Lemma 2 below.
Then, for any it holds that:
Specializing Lemma 2 to deep matrix factorization (Section 3) yields the following result.
Consider the overparameterized objective corresponding to a depth matrix factorization applied to an arbitrary matrix completion task (see Equations (2) and (3)). Let and be two (arbitrary) curves born from gradient flow over this objective (cf. Equation (4)). Given , denote . The Frobenius norm of a matrix tuple is defined as the Euclidean norm of their concatenation as a vector, so for example . Then, for any it holds that:
where , with standing for the observed matrix entries.
The proof follows from Lemma 2, and the fact that for any the overparameterized objective is -smooth over . ∎
Combining Proposition 5 with Lemma 1 makes it possible to derive extensions of Theorems 1 and 2 in which the assumption of initialization being perfectly balanced (Equation (5)) is relaxed to a requirement for small unbalancedness magnitude (Definition 3). The underlying idea is as follows. An initialization with small unbalancedness magnitude is close to one which is balanced (Lemma 1), and for the latter Theorems 1 and 2 may be applied. The distance between gradient flow trajectories emanating from the two initializations is controlled (Proposition 5), therefore results of Theorems 1 and 2 (bounds on norms, quasi-norms, effective rank and distance from infimal rank) carry over — with additional error terms — to the trajectory originating from the unbalanced initialization. A drawback of this approach is that the bounds on distance between trajectories, and accordingly the error terms incurred, grow exponentially with time (see Equation (20)). In the next subappendix we present a different approach that takes into account specific properties of gradient flow over deep matrix factorization, allowing one to overcome this exponential growth (for depth ).
A.2 Second approach: conservation of unbalancedness magnitude
Lemma 3 below shows that unbalancedness magnitude (Definition 3) is a conserved quantity of gradient flow over deep matrix factorization (Section 3).
Consider the overparameterized objective corresponding to a depth matrix factorization applied to an arbitrary matrix completion task (see Equations (2) and (3)). Let be a curve born from gradient flow over this objective (cf. Equation (4)), and for any , denote by the associated unbalancedness magnitude (Equation (18)). Then, is constant through time, i.e. for all .
For , using the dynamics of and under gradient flow, we show that:
This implies for all . The proof concludes by taking nuclear norm of both sides of the latter equality, followed by maximization over . ∎
Combining Lemma 3 with Lemma 1 implies that if unbalancedness magnitude is small at initialization, it remains that way throughout, and thus for every point along the optimization trajectory there exists some nearby point which is balanced (i.e. has unbalancedness magnitude zero). We may imagine a gradient flow trajectory emanating from such balanced point, and import certain characteristics from this imaginary trajectory to the original one. The idea of using imaginary balancedly-initialized trajectories for analyzing the unbalanced case also appears in the approach laid out in Subappendix A.1. However, whereas there only one such trajectory was employed, here there are infinitely many — one for each point in time. This allows us to maintain small distance from an imaginary trajectory (as opposed to a distance that grows exponentially with time — see Proposition 5), facilitating import of characteristics during which incurred error terms are small.
In the context of Theorems 1 and 2, the critical characteristic of trajectories originating from balanced initializations is that they do not allow the product matrix’s (Equation (3)) determinant to change sign, or more specifically, its smallest singular value to cross zero. Using the aforementioned technique (proximity to imaginary balancedly-initialized trajectories), we may import an approximate version of this characteristic into trajectories whose initializations have small unbalancedness magnitude. This amounts to a bound on the rate at which the smallest singular value of the product matrix can approach zero, yielding a guaranteed time throughout which the results of Theorems 1 and 2 hold.
Theorem 3 below formalizes the logic outlined above, extending Theorem 1 to the case of unbalanced initialization (we omit here the formal extension of Theorem 2, as it is essentially the same).
(Quasi-)norms, effective rank and distance from infimal rank are jointly bounded as follows:
By the proof of Theorem 1 (given in Subappendix D.5), its results (Equations (8), (9) and (10)) hold for any with . Bearing in mind that by assumption , we let be the initial time at which (if no such exists, the proof concludes). Fixing an arbitrary time , Lemmas 3 and 1 imply that there exists a point which meets the balancedness condition (i.e. has unbalancedness magnitude zero), and is within (Frobenius) distance from . Imagining a gradient flow path that emanates from , one may employ Lemma 5 from Subappendix D.2.1, to characterize the movement of the singular values of . Continuity arguments then imply that the singular values of move similarly (at time ), allowing us to obtain an upper bound on the rate at which the minimal singular value of can decay. Integrating this upper bound yields a lower bound on , specified in Equation (21) as one of the possible outcomes. The continuity arguments employed require , , to be bounded by a certain constant. If this is not the case then necessarily at some time the unobserved entry of is large, leading to the bounds on (quasi-)norms, effective rank and distance from infimal rank in the alternative outcome (Equations (22), (23) and (24) respectively). ∎
Theorem 3 states that if initialization has unbalancedness magnitude (Definition 3), then the results of Theorem 1 — bounds on (quasi-)norms, effective rank and distance from infimal rank (Equations (8), (9) and (10) respectively) — are guaranteed to hold for a certain period of time (Equation (21)), or until certain terminal bounds (Equations (22), (23) and (24)) are jointly satisfied. Taking , the aforementioned period of time tends to infinity, and the terminal bounds tend to the limits (as loss goes to zero) of the bounds in Theorem 1, meaning we effectively converge to the latter. The rate of this convergence highly depends on the depth of the matrix factorization — roughly speaking, it is proportional to a fractional power of for depth , and to a fractional power of for depth or more. Disregarding constants (terms that do not depend on ), We did not attempt to optimize those; doing so is regarded as a potential direction for future work. this implies that in order to get comparable guarantees, the unbalancedness magnitude of initialization needs to be exponentially smaller with depth than with depth or more. We thus have a theoretical reasoning that resonates with the empirical phenomenon reported in Figure 1, by which in practical settings (gradient descent with small learning rate and near-zero initialization), the prediction of Theorem 1 — unobserved entry increasing (and therefore norms and quasi-norms increasing, with effective rank and distance from infimal rank decreasing) as loss decreases — sustains for much longer with depth or more than it does with depth . Note that this phenomenon takes place even when initializations are perfectly balanced (i.e. have unbalancedness magnitude zero), the reason being the discrepancy between gradient descent with small learning rate and gradient flow. Specifically, while the latter would have conserved the balancedness throughout (Lemma 3), the former will (generically) lead to positive unbalancedness magnitude immediately after its commencement.
Appendix B Extension to different matrix dimensions
In this appendix we outline an extension of the construction and analysis given in Subsections 4.1 and 4.2 respectively, to completion of matrices with dimensions beyond -by-. The extension presented here is not unique, but rather one simple option out of many. It is demonstrated empirically in Subappendix C.1 (Figure 4).
Observing , while comparing to the solution set in our original construction (Equation (7)), we see that the former has a -by- block diagonal structure, with the top-left block holding the latter, and the bottom-right block set to identity. This implies that of the singular values along are fixed to one, and the remaining two are identical to the singular values along . Results analogous to Propositions 1 and 2 can therefore easily be proven. Since the determinant along is bounded below and away from zero (it is equal to ), approaching while having positive determinant necessarily means that absolute value of unobserved entry (i.e. of the entry in location ) grows towards infinity. Combining this with the fact that the product matrix (Equation (3)) of a depth matrix factorization maintains the sign of its determinant (see Lemma 6 in Subappendix D.2.1), results analogous to Theorem 1 and Corollary 1 may readily be established. That is, one may show that, with probability or more over random near-zero initialization, gradient descent with small learning rate drives all norms (and quasi-norms) towards infinity, while essentially driving rank towards its minimum.
Appendix C Further experiments and implementation details
Figures 4 and 5 supplement Figure 1 from Subsection 5.1, by demonstrating empirically that the phenomenon of implicit regularization in matrix factorization driving all norms (and quasi-norms) towards infinity is, respectively: (i) applicable to arbitrary matrix dimensions, as outlined in Appendix B; and (ii) robust to perturbations, as proven in Subsection 4.4. Figure 6 supplements Figure 2 from Subsection 5.2, further demonstrating that gradient descent over tensor factorization exhibits an implicit regularization towards low (tensor) rank.
C.2 Implementation details
Below we provide a full description of implementation details omitted from our experimental reports (Section 5 and Subappendix C.1). Source code for reproducing our results and figures, based on the PyTorch framework (), can be found at https://github.com/noamrazin/imp_reg_dl_not_norms.
In all experiments with deep matrix factorization, hidden dimensions were set to the minimal value ensuring unconstrained search space, i.e. to the minimum between the number of rows and the number of columns in the matrix to complete. Gradient descent was run with fixed learning rate until loss (Equation (1)) reached a value lower than or iterations elapsed. Both balanced (Equation (5)) and unbalanced (layer-wise independent) random initializations were calibrated according to a desired standard deviation for the entries of the initial product matrix (Equation (3)). Namely: (i) under unbalanced initialization, entries of all weight matrices were sampled independently from a Gaussian distribution with zero mean and standard deviation , where stands for the depth of the factorization, and for the size of its hidden dimensions; and (ii) under balanced initialization, we used Procedure 1 from , based on a Gaussian distribution with independent entries, zero mean and standard deviation . In accordance with the description in Appendix B, if the matrix to complete was rectangular, we ensured that excess rows or columns of the initial product matrix held zeros, by clearing (setting to zero) corresponding rows or columns of the initial leftmost or rightmost (respectively) matrix in the factorization. That is, if the matrix to complete had size -by- with , we cleared rows to of if , and columns to of if . Random initializations were repeated until the determinant of the initial product matrix (or of its top-left -by- submatrix if its size was -by- with ) was of the necessary sign, Positive for the experiments reported by Figures 1 and 4, and negative for those reported by Figure 5. taking two attempts on average. In the experiment reported by Figure 1, runs with matrix factorization depths and were carried out with learning rates and corresponding standard deviations for initialization . Factorizations of depth were slightly more sensitive to changes in learning rate, thus we refined attempted values to , with corresponding standard deviations for initialization .
C.2.2 Tensor factorization (Figures 2 and 6)
with drawn independently from the standard normal distribution. After every such generation, we estimated the rank of the obtained tensor (its construction only ensures a rank of at most ), and repeated the process if it was smaller than . For convenience, we subsequently normalized the ground truth tensor to be of unit Frobenius norm.
Appendix D Deferred proofs
D.2 Useful lemmas
For completeness, we include the following result from , which characterizes the evolution of the product matrix under gradient flow on a deep matrix factorization:
Suppose we run gradient flow over the factorization:
Then, the product matrix obeys the following dynamics:
Additionally, recall from the following characterization for the singular values of :
i.e. are the singular values of , and are corresponding left and right (respectively) singular vectors. Furthermore, the singular values evolve by:
We rely on this result to establish that for square product matrices the sign of does not change throughout time.
We prove an analogous claim for the singular values of , from which the lemma readily follows. That is, for , the singular value is identically zero if , and is positive if .
As before, if , then for all . If , divergence in finite time of is possible, however, its positivity is preserved until that occurs nonetheless.
Turning our attention to the determinant of , suppose . Then, has a singular value which is , and for all that singular value and the determinant remain . If , the product matrix remains full rank for all . The proof then immediately follows from the continuity of . ∎
We will also make use of the following lemmas:
That is, is a singular value decomposition of , and for all .
Fix and . If , for any with , by our construction it holds that . Hence, recalling that by convention if , we may conclude that . Otherwise, if , the fact that for all implies that . ∎
D.2.2 Technical
Included below are a few technical lemmas used in our analyses.
We present a tighter inequality, , from which the proof immediately follows since for .
Define the function over the open interval . Differentiating it with respect to we have:
Introducing , we show that for all . It is easily verified that is concave on the interval (second derivative is negative). Since for and we have exactly , it holds that and for all . Noticing , it follows that is monotonically non-decreasing on . Due to the fact that , it is non-increasing on , and attains its maximal value over at . Putting it all together, for we have:
and for there is exact equality, completing the proof. ∎
Replacing with its singular value decomposition and choosing :
Recalling that for any unit vector the quadratic form of a symmetric matrix is bounded by the maximal and minimal eigenvalues completes the proof:
The proof concludes by applying the inductive assumption for . ∎
for any , with the remaining diagonal entries of and being ; and
, i.e. is a singular value decomposition of .
Therefore, we may conclude . ∎
Let be such that , and fix some . Define . Continuity of , along with the intermediate value theorem, imply that is well defined (maximum of a closed non-empty set bounded from above). Assume by contradiction that . Then, is monotonically increasing on some neighborhood of . Thus, by the intermediate value theorem, there exists such that , in contradiction to the definition of . An identical argument establishes the analogous result for the case . ∎
By way of contradiction let us assume that does not converge to . Let be such that for all there exists with .
We claim that for all there exists such that . Otherwise, we have a contradiction to the bound on the integral of . Combined with our assumption, this means that for all we can find an interval , with , where transitions from to . We now examine one such interval. Formally, for with , we define:
Due to the fact that is continuous, and are well defined as they are the minimum and maximum, respectively, of closed non-empty sets bounded from below and above, respectively. Furthermore, notice that . From the mean value theorem and the bound on the derivative of we have . Since over the interval , this gives us . Recall there are infinitely many such occurrences, implying that , in contradiction to the bound on the integral. ∎
Since is continuous over , and positive over , it is non-negative at . In the case where , we have that . Dividing both sides by (positive since and ), and integrating over , we have that:
The lower bound on readily follows by rearranging the inequality above.
Dividing by (positive since and ), and integrating over :
Rearranging the inequality above establishes the desired result. ∎
Then, is monotonically non-increasing with respect to .
The proof immediately follows from the fact that for any :
D.3 Proof of Proposition 1
For a quasi-norm , the weakened triangle inequality (see Footnote 2) implies that there exists a constant for which
Starting with , the corresponding norm is the spectral norm . When , we have that . If , then . Similarly, if , then . Therefore, attains its minimal value of if and only if .
Moving to the case of , the corresponding quasi-norm is . We now examine for :
Differentiating with respect to , we arrive at:
where in the first transition we used the fact that both and are positive (as well as ). It then directly follows that and thus are monotonically increasing with respect to on .
Similar arguments show that when the Schatten- quasi-norm of is monotonically decreasing with respect to , implying that is minimized if and only if . The claim relies on the fact that the Schatten- quasi-norm of is continuous with respect to for all . We note, however, that quasi-norms in general may be discontinuous. ∎
D.4 Proof of Proposition 2
As in the proof of Proposition 1 (Subappendix D.3), we denote by the solution matrix with . We begin by analyzing the behavior of and with respect to . When the singular values are simply . When is positive, the singular values may be written as:
Taking the derivative with respect to , we arrive at:
Since , we have that and . In other words, is monotonically increasing, while is monotonically decreasing, when . It can easily be verified that and are even functions of , i.e. and . It then follows that is monotonically decreasing (conversely is monotonically increasing) when . Noticing that and (accordingly and ), we have a characterization of the behavior of and .
We are now in a position to obtain the desired results for effective and infimal ranks. The effective rank (Definition 1) of can be written as
The binary entropy function is bounded by , hence, the effective rank over is bounded by . This upper bound is attained at . According to the singular values analysis, when we have that monotonically increases towards , starting from the value . Noticing that this implies the entropy function and effective rank monotonically decrease towards and , respectively, completes the effective rank analysis.
Next, we analyze the infimal rank of and the distance of from that infimal rank. The distance of from is . Since , we have . Clearly , leading to the conclusion that the infimal rank of is . Finally, the analysis of directly implies that the distance of from the infimal rank of is maximized when , monotonically tending to as . ∎
D.5 Proof of Theorem 1
In the following, as stated in Subappendix D.1, for results that hold for all or when clear from the context, we omit the time index . Furthermore, we denote the entries of the product matrix by .
We begin by deriving loss-dependent bounds for and . Writing the loss explicitly:
we can upper bound each of the non-negative terms separately. Multiplying by and taking the square root of both sides yields:
The following lemma characterizes the relation between and the loss.
From Lemma 6, the determinant of does not change signs and remains positive, i.e.:
An immediate consequence of the lemma above is that decreasing the loss towards zero drives towards infinity.
With this bound in hand, Lemma 19 below establishes bounds on the singular values of . In turn, they will allow us to obtain the necessary results for effective rank (Definition 1) and distance from infimal rank of (Definition 2).
The singular values of fulfill:
Define , the orthogonal projection of onto the solution set . By Corollary 8.6.2 in we have that:
One can easily verify that is a symmetric indefinite matrix with eigenvalues
Suppose that . We thus have:
By similar arguments, Equations (32) and (33) hold for as well. ∎
We turn to lower bound the quasi-norm of the product matrix. It holds that:
Plugging the inequality above and the lower bound on (Lemma 18) into Equation (35), we have:
Since is trivially lower bounded by zero, defining the constants
allows us, on the one hand, to arrive at a bound of the form:
D.5.2 Proof of Equation (9) (upper bound for effective rank)
D.5.3 Proof of Equation (10) (upper bound for distance from infimal rank)
According to Proposition 2, the infimal rank of is . The quantity we seek to upper bound is therefore . By Equation (32) in Lemma 19, for all we have
D.6 Proof of Proposition 3
Define to be the matrix obtained from by multiplying its first row by . On the one hand, symmetry around the origin implies that and follow the same distribution. On the other hand, . Due to the fact that the set of matrices with zero determinant has probability under continuous distributions (see, e.g., Remark 2.5 in ), we may conclude .
For random matrices drawn independently, let be the index such that . Since for any , the proof readily follows from determinant multiplicativity and the law of total probability:
An identical computation yields . ∎
D.7 Proof of Proposition 4
The proof makes use of the following lemma, proven in Subappendix D.7.1.
According to Lemma 20, the product matrix is symmetric and positive definite. Thus, we may write the loss and its gradient with respect to as:
where are the entries of . Since the factors and are balanced at initialization (Equation (5)), the differential equation governing the product matrix (Lemma 4) for depth gives:
where the transition is by positive definiteness of . Writing the differential equation of each entry separately, we have:
Let us characterize the behavior of these entries throughout time.
and is monotonically non-decreasing.
Since is positive definite, it follows that and are positive. Examining the behavior of (Equation (39)): on the one hand, when then , and on the other hand, when then . Because is initialized at , it stays in the interval $\dot{w}_{1,2}w_{1,2}=0w_{1,2}=1w_{2,2}>\frac{1}{2}\dot{w}_{2,2}<2w_{1,2}(1-w_{1,2})-\frac{1}{2}\leq 0w_{2,2}(0)=\alpha\leq 11w_{1,2}\dot{w}_{1,1}\geq 0w_{1,1}$ is monotonically non-decreasing. ∎
We turn our focus to the derivative of the loss with respect to :
Plugging in Equation (38) and recalling the fact that for matrices of the same size:
where in the penultimate transition we bounded the square root of a sum by the sum of square roots. Returning to Equation (40) we have:
for . We are now in a position to prove that as tends to infinity. Integrating both sides with respect to time:
Going back to the differential equation of (Equation (39)), by applying the bounds on and (Lemma 21) we have that . Defining , it then holds that . Since is non-negative and has an upper bounded integral and derivative, from Lemma 15, we can conclude that and .
Such exists since all terms above converge to . Returning to the differential equation of (Equation (39)):
Recalling that (Lemma 21), it follows that there exists with (otherwise goes to as , in contradiction to the positivity of ). For the above , by rearranging the terms in Equation (42) we achieve . Finally, combined with Equation (41), the result readily follows:
The proof proceeds as follows. We initially consider initializations where form a symmetric factorization of (Definition 4), and show that this ensures the product matrix stays symmetric. Then, we establish that for every balanced initial factors (Equation (5)) with a positive definite product matrix there exist alternative balanced factors such that: (i) the initial product matrix is the same; and (ii) the factors form a symmetric factorization of the product matrix. Since the product matrices for the original and the constructed initializations obey the exact same dynamics (Lemma 4), the proof concludes.
A straightforward result is that matrices with a symmetric factorization are symmetric themselves.
where and for . Taking the transpose of both sides we have:
Turning our attention to , we may write it explicitly as:
where are the entries of . For , note that when is symmetric so is . With this in hand, the inductive assumption (Equation (43)) implies that is symmetric (for all ). Combined with Equation (44) (for , from the inductive assumption), we may write Equation (45) for as:
Reordering the sum according to and noticing that , we conclude:
It remains to show that is symmetric. Similarly to before, we take the ’th derivative of using the product rule:
where and for . For convenience, we denote . Pairing up elements in the sum with indices that are a reverse order of each other, i.e. is paired with :
With Equation (46) in place, we can conclude the proof by showing is a sum of symmetric matrices. By the inductive assumption for Equation (44), which was established in the first part of the proof for as well, we have:
for each . Therefore, the matrix is symmetric. Plugging Equation (47) into Equation (46) with , we arrive at a representation of as a sum of symmetric matrices. Thus, is symmetric, completing the proof. ∎
Under the setting of Lemma 20, assume that the matrices form a symmetric factorization of (Definition 4). Then, is symmetric for all .
By Lemmas 23 and 10, we may conclude that for all :
In words, form a symmetric factorization of , and therefore is symmetric (Lemma 22). ∎
Going back to the setting of Lemma 20 — initialization is balanced (Equation (5)), but does not necessarily comprise a symmetric factorization — we show that here too the product matrix remains symmetric throughout optimization. To do so, we first construct a factorization of that is both balanced and symmetric, for which Lemma 24 ensures the product matrix stays symmetric throughout optimization. We then prove that the trajectories of the product matrix for the original and the modified initializations coincide.
Recall that and define for . It is easily verified that:
.
for .
for .
Meaning, are balanced, and form a symmetric factorization of . Suppose the factors follow the gradient flow dynamics, with initial values , and let be the induced product matrix. From Lemma 24, it follows that is symmetric for all .
As characterized in (restated as Lemma 4), if the initial factors are balanced, the product matrix trajectory depends only on its initial value . Since both the original and modified initializations are balanced and have the same product matrix, they lead to the exact same trajectory. Thus, for all , and specifically, is symmetric.
The last step is to see that is not only symmetric, but positive definite as well. Since its initial value is positive definite, it suffices to show that its eigenvalues do not change sign. By Lemma 6, the determinant of is positive for all . Specifically, the product matrix does not have zero eigenvalues. Recalling that is an analytic function of (Lemma 7), Theorem 6.1 in implies that its eigenvalues are continuous in . Therefore, they can not change sign, as that would require them to pass through zero, concluding the proof. ∎
D.8 Proof of Theorem 2
The proof follows a similar line to that of Theorem 1 (Subappendix D.5), where the differences mostly stem from the fact that the solution set (Equation (12)) is not confined to symmetric matrices, as opposed to the original (Equation (7)), slightly complicating the computation of singular values. For the sake of the proof, as mentioned in Subappendix D.1, we omit the time index when stating results for all or when clear from context. We also let denote the entries of the product matrix .
We begin by deriving loss-dependent bounds for and . The entries of can be trivially bounded by the loss as follows:
Lemma 25 below, analogous to Lemma 18 from the proof of Theorem 1, characterizes the relation between and the loss.
We are now able to see that, indeed, the smaller is compared to , the higher will be driven when the loss is minimized. With Lemma 25 in place, we are now able to bound the singular values of .
The singular values of fulfill:
Define , the orthogonal projection of onto the solution set . From Corollary 8.6.2 in we know that:
This means that any bound on the singular values of can be transferred to those of (up to an additive loss-dependent term). It is straightforwardly verified that the squared singular values of are
Note that the term inside the square roots is non-negative for all . Since all elements in the expression for are non-negative, we have . Combining this with Equation (51) completes the lower bound for .
where in the second transition we applied the inequality , and in the third made use of the bound on (Lemma 25). Applying Corollary 8.6.2 from twice, once for the matrices and , and another for and , we have:
Turning our attention to , following the same steps as in the proof of Theorem 1 (Subappendix D.5.1) will lead to a generalized bound. By the triangle inequality:
Returning to Equation (54), applying the inequality above and the bound on (Lemma 25) we have:
Since is trivially lower bounded by zero, defining the constants
allows us, on the one hand, to arrive at a bound of the form:
D.8.2 Proof of Equation (14) (upper bound for effective rank)
The bounds on and in Lemma 26 give:
Combining the last two inequalities we have:
From Lemma 9 it holds that . Plugging this into the inequality above leads to:
D.8.3 Proof of Equation (15) (upper bound for distance from infimal rank)
The distance of the product matrix from the infimal rank of is therefore . From Lemma 26 we have
D.8.4 Robustness to change in observed locations
Lastly, we prove that the established bounds (Equations (13), (14) and (15)) are robust to a change in observed locations. Let be the unobserved entry’s location. Following proof steps analogous to those in Lemmas 25 and 26 — while recalling our assumption of having same sign as if and opposite sign otherwise — yields identical bounds on the unobserved entry and singular values of . Since the derivations of Equations (13), (14) and (15) in Subappendices D.8.1, D.8.2 and D.8.3, respectively, rely solely on the aforementioned bounds, the proof concludes. ∎
D.9 Proof of Lemma 1
i.e. are balanced.
Second, by induction over , we prove that . For this is trivial, as by definition. Assume that the bound holds for all . Expressing and in terms of yields:
The Frobenius norm is invariant to multiplication by orthogonal matrices. Thus, we may multiply by from the left:
Since the unbalancedness magnitude of is , from the Powers-Størmer inequality (Lemma 4.1 in ) we know that:
Additionally, multiplying by from the right:
where the last inequality is by the inductive assumption. Going back to Equation (55), we conclude:
D.10 Proof of Lemma 2
By the Cauchy-Schwartz inequality and smoothness of , we have:
Let , and suppose that there exists for which . Consider the initial value problem induced by gradient flow over starting from the point . Since its solution on the interval is unique (by the definition of there exist a solution lying within , and it not being unique would contradict, e.g., Theorem 2.2 in ), it holds that for any . That is, Equation (19) trivially holds. Now assume that . Then:
Taking the square root of both sides in the latter inequality concludes the proof. ∎
D.11 Proof of Proposition 5
We note that the following proof does not depend on the dimensions of the deep matrix factorization (; see Section 3). That is, Proposition 5 holds for arbitrary dimensions, and is not limited to the square case where .
Let , and define . For any and in :
Plugging the inequality above into Equation (56), we conclude:
where the second inequality is by . That is, the objective is -smooth over . For any , from Lemma 2 we have that:
Notice that is finite (it is the supremum of a continuous function over a closed domain). Since the inequality above holds for all , taking the limit yields Equation (20). ∎
D.12 Proof of Lemma 3
Adding the transpose of the latter equality to itself, we have:
Hence, for all . Taking the nuclear norm of both sides and maximizing over yields the desired result. ∎
D.13 Proof of Theorem 3
The proof of Theorem 1 (Subappendix D.5) relies solely on the fact that remains positive through time. In particular, it establishes that the bounds on (quasi-)norms, effective rank and distance from infimal rank (Equations (8), (9) and (10) respectively) are guaranteed to hold for any for which . Therefore, if for all , the proof concludes. Otherwise, let be the initial time for which . Formally, define:
Since is continuous in , the set on the right hand side is non-empty, closed, and bounded from below. Thus, is well defined (i.e. ), , and for any (recall that by assumption the determinant is positive at initialization). That is, the results of Theorem 1 hold over . Let:
The proof proceeds in two parts. First, assuming that for any , Subappendix D.13.1 establishes Equation (21) by deriving a lower bound on . Otherwise, if there exists with , Subappendix D.13.2 shows that Equations (22), (23) and (24) jointly hold for some , completing the proof.
Fix an arbitrary . For conciseness, we hereinafter omit the time index in functions of at , e.g. will be shorthand for . We now seek to derive a lower bound on . Integrating said bound will yield the desired result. By Lemmas 3 and 1, there exist balanced matrices satisfying:
Applying Lemma 12, and noticing that , we bound the distance between the induced product matrices:
We turn our attention to . Recalling that is a -by- matrix, its minimal squared singular value can be written as:
Differentiating with respect to time, while noticing that , we obtain:
with . The same derivation holds for , with in place of . Applying the triangle inequality, is upper bounded by the sum of the expressions in Equations (62), (63) and (64) below:
Lemmas 28, 29 and 30 (with the aid of Lemma (27)) derive upper bounds for the expressions in Equations (62), (63) and (64), respectively. Then, putting it all together, we arrive at:
Going back to Equation (61), this implies that:
We are now in a position to achieve the sought-after lower bound on . If , according to Lemma 16:
Similarly, for depth , Lemma 16 gives the following lower bound:
Noticing that , and replacing with their explicit expressions, we arrive at:
In the context of the proof for Equation (21) (Subappendix D.13.1), the following inequalities hold:
Starting with Equation (65), the derivative of with respect to time is:
Next, Equation (67) is straightforwardly derived using a perturbation bound on the singular values (Corollary 8.6.2 in ):
where the last transition is by Equation (60). The same derivation shows that a similar inequality holds for , establishing Equation (67):
In the context of the proof for Equation (21) (Subappendix D.13.1):
Starting with the former inequality, adding and subtracting , followed by the triangle and Cauchy-Schwartz inequalities, we have that is bounded by:
From Equation (60) we know that . Additionally, by sub-multiplicativity of the Frobenius norm, . Applying Equations (65) and (66) from Lemma 27, we conclude:
For , similar proof steps establish the same upper bound since and . ∎
In the context of the proof for Equation (21) (Subappendix D.13.1):
By Equation (68), it suffices to show that:
where , and is defined similarly for . Focusing on the expression in absolute value, adding and subtracting , and applying the triangle inequality, leads to:
We consider each of these terms separately. From Equation (67) in Lemma 27 we know that . Equation (65) and the Cauchy-Schwartz inequality give:
Additionally, . By adding and subtracting , we may upper bound by:
where the third transition is due to Equations (60), (65), and Lemma 28. Putting it all together, the expression in Equation (69) is upper bounded by:
In the context of the proof for Equation (21) (Subappendix D.13.1):
The proof follows a line similar to that of Lemma 29. Applying the bound from Equation (68) in Lemma 27, we arrive at the following upper bound for the left hand side above:
where , and is defined similarly for . Focusing on the expression in absolute value, we add and subtract and apply the triangle inequality:
We treat each of the four terms separately. From Equation (67) in Lemma 27 we know that:
Since , the Cauchy-Schwartz inequality and Equation (65) from Lemma 27 give:
Furthermore, . The remaining term is . Adding and subtracting , it can be upper bounded by:
From Lemma 28 we have that . Furthermore, Theorem 2.12 in implies that:
Thus, with the use of Equations (60) and (65), we have:
Put together, the expression in Equation (70) is upper bounded by:
D.13.2 Proof of Equations (22), (23) and (24) (if weight matrices are not bounded by R𝑅R)
Assume that there exists with . We examine the initial time at which the Frobenius norm of one of the weight matrices reaches . Formally, define:
Since — implied by the assumption on — and are continuous functions of , the set on the right hand side is non-empty and compact. Hence, is well defined (i.e. ), with .
Next, we derive a lower bound on — the absolute value of the unobserved entry. According to Lemmas 3 and 1, there exist balanced matrices satisfying:
Applying Lemma 12, and noticing that , we bound the distance between the induced product matrices:
Since are balanced, they have the same singular values. In particular, this means that for any . Additionally, by Lemma 8 we know that . Thus:
where the last transition is by Equation (71) and the fact that . The inequality above, combined with Equation (72), leads to:
From the definition of it holds that , and therefore:
Combined with Equation (73), we have that:
We are now in a position to establish Equations (22), (23) and (24). Starting with Equation (22), for any quasi-norm it holds that:
where is a constant for which satisfies the weakened triangle inequality (see Footnote 2). Subsequent applications of the weakened triangle inequality, together with homogeneity of and the bounds on the observed entries (Equation (74)), give:
Plugging the inequality above into Equation (76), and lower bounding according to Equation (75), we have:
The assumption on the size of implies that . Hence:
Applying Equation (78) to Equation (77), we obtain:
For clarity, we simplify the exponents in the lower bound above. In the case of , we use the fact that . For , noticing that and completes the proof of Equation (22).
We now lower bound as follows:
Applying the lower bound on from Equation (78), we arrive at:
In the case of , we simplify the upper bound using the fact that . For , noticing that and establishes Equation (23).
Finally, we turn our attention to the upper bound for distance from infimal rank (Equation (24)). By Proposition 2, the infimal rank of is . Therefore, Lemma 31 yields:
Applying the lower bound on from Equation (78), we arrive at:
In the case of , we simplify the upper bound using the fact that . For , noticing that and concludes the proof of Equation (24). ∎
In the context of the proof for Equations (22), (23) and (24) (Subappendix D.13.2), the singular values of fulfill:
Define , the orthogonal projection of onto the solution set (Equation (7)). Suppose that . The largest singular value of can be written as:
Thus, lower bounding with Equation (75), and noticing that , leads to . Analogously, for the smallest singular value of we have:
By similar arguments, Equation (80) holds when as well. ∎