Introduction
Given the complexity of the underlying systems, from protein folding [17 , 36 ] to the mechanisms of human cognition [46 ] , pinning down a probabilistic model of the sequences that emerge in nature seems intractable. We therefore rely on the statistical models learned from data. To this end, the next-token prediction task defines a choice of objective for training statistical models that can approximate the Bayes-optimal one-step-ahead predictor1 of the underlying dynamical system that generates the sequences we train on.
Designing sequence models that can effectively process arbitrarily long sequences is challenging. Although transformers have dominated sequence modeling, the quadratic cost of attention makes processing arbitrarily long sequences prohibitively expensive [77 ] . This has motivated the development of modern recurrent architectures whose per-token inference cost is constant, such as linear attention [42 , 11 Peng et al.,] 2021, Qin et al., 2022] and its gated [76 , 43 , 65 , 61 , 16 , 7 ] (Yang et al. 2023) and delta-rule variants [83 ] (Yang et al. 2024; Yang et al. 2025; Irie et al., Siems et al. 2026), state-space models (SSMs) [Gu et al., 2020, 2021b,a, Gupta et al., 2022, Smith et al., 2022, Fu et al., 2022, Orvieto et al., 2023, Gu and Dao, 2023, Dao and Gu, 2024, Lahoti et al., 2026], fast weight programmers [30 , 69 , 4 ] , and test-time training layers [74 , 75 , 8 , 9 ] (Zhang et al. 2026). However, these models often fail to length generalize, which undermines the main advantage that motivated them [66 ] (Zhong et al. 2026). For instance, as shown in Figure 1 [see also 66 Fig. 1] , when the context length exceeds the training horizon, the performance of the state-of-the-art SSMs degrades substantially. Unfortunately, our theoretical understanding of why these models fail beyond the training horizon remains limited.
Figure 1. The performance of (a) Mamba-1, (b) Mamba-2, and (c) Mamba-3 at different model sizes (shown in different colors) on sequences from the Pile validation set that are longer than those seen during training. The dotted vertical line marks the training horizon T = 2048 T = 2048 T = 2048 . The evaluation metric is the position-wise perplexity , which is the exponential of the per-step prediction error under the cross-entropy loss [66 ] . See Appendix § 14 for the details.
In classical statistical learning theory, generalization is defined as the ability of a statistical model to predict outcomes for previously unseen data. Length generalization is a special case of this notion that arises in sequence modeling. In sequence modeling, unlike classical machine learning problems such as classification and regression, the learned map is defined on inputs and outputs of varying length rather than on a fixed-dimensional domain and codomain.2
Numerous empirical studies have reported that training with large learning rates improves generalization [33 , 49 , 73 , 2 , 53 , 6 ] . Most notably, Anil et al. [ [3 ] observed that large learning rates lead to better length generalization when training transformer-based models. This effect is commonly attributed to the implicit regularization of gradient-based training, which has been investigated in several works [44 , 72 , 5 , 48 , 1 , 55 , 22 ] (Sadt\rdtinov et al. 2024; Wang and Roberts 2025). For instance, Wang et al. [ [81 ] showed that, in depth-2 matrix factorization, gradient descent (GD) with a large learning rate balances the Frobenius norms of the factors in the limit, even when these norms are significantly imbalanced at initialization. This balancing effect can be viewed as an implicit bias of GD towards certain solutions. Note that an implicit bias mechanism does not necessarily explain or cause an implicit regularization unless the global minima favored by the bias have been shown to be benign or malign solutions. To the best of our knowledge, the implicit regularization induced by the learning rate has not previously been investigated in the context of length generalization in recurrent architectures.
In this paper, we investigate how the learning rate shapes the implicit bias of GD when it selects among global minimizers that differ in their length-generalization ability. Motivated by the length-generalization failure of linear recurrent models such as Mamba, we study a single-layer linear recurrent neural network (RNN) trained with the squared-error loss on a next-token prediction task in which tokens are drawn from a vector-valued random process. In other words, the network is trained to predict the next token in the minimum-mean-square-error (MMSE) sense.
In recurrent architectures, memory is built incrementally: It consists of a fixed-size hidden state that is updated recurrently over time. Due to its fixed size, the information from the history that is pertinent to predicting the next token can be attenuated or lost entirely as it propagates through the forward pass during training. We therefore hypothesize that training may not effectively teach the recurrent model to generalize to longer sequences. To eliminate this effect in training, we choose a parameterization regime in which the linear RNN is able to store its entire context in its hidden state.
Furthermore, we show in § 3 that, in this regime, if the zero-padded history matrix Z Z Z (see Lemma 1) has full rank, all global minimizers realize the same Markov parameters within the training horizon. We further show how global minimizers differ in their length-generalization ability beyond the training horizon, even though they realize the same Markov parameters within the training horizon. This allows us to eliminate other generalization effects and study how the learning rate shapes the implicit bias of GD among minima that differ only in their length-generalization performance.
We present our main results in § 3 and § 4 . In § 5 , we discuss our main results, and we conclude in § 6 .
Contributions
In this paper, motivated by the length-generalization failure of linear recurrent models, we study how the learning rate determines which global minimizer GD converges to, when these minima differ in their ability to generalize to arbitrarily long sequences, in a single-layer linear RNN trained with squared-error loss on a next-token prediction task. At a glance, our contributions are as follows:
We identify a parameterization regime where the linear RNN can realize any sequence of Markov parameters within the training horizon. In this regime, for every monic polynomial of degree d d d , there exists a global minimizer whose recurrent weight matrix W 1 ∈ R d × d W_1 \in\mathbb{R}^{d \times d} W 1 ∈ R d × d has this polynomial as its characteristic polynomial (Lemma 9 and Theorem 10 ).
Figure 2. (a) Training loss gap across iterations where L ^ ( θ ∗ ) \widehat{\mathcal{L}}(\theta^*) L ( θ ∗ ) is computed by Lemma 9 . T ∈ { 4 , 8 , 16 } T \in\{4,8,16\} T ∈ { 4 , 8 , 16 } (left to right). (b) The maximum eigenvalue of the Hessian of the training loss across iterations. T ∈ { 4 , 8 , 16 } T \in\{4,8,16\} T ∈ { 4 , 8 , 16 } (left to right). Figure 2: Training of the single-layer linear RNN with d = 128 d = 128 d = 128 at different learning rates (shown in different colors) for the training horizons T ∈ { 4 , 8 , 16 } T \in\{4,8,16\} T ∈ { 4 , 8 , 16 } . (a) The training loss gap L ^ ( θ k ) − L ^ ( θ ∗ ) \widehat{\mathcal{L}}(\theta_k) - \widehat{\mathcal{L}}(\theta^*) L ( θ k ) − L ( θ ∗ ) , where the optimal loss is computed by Lemma 9 . The dashed horizontal line marks the machine precision ϵ \epsilon ϵ . (b) The maximum eigenvalue of the Hessian of the training loss. The dashed horizontal lines mark 2 / η 2/\eta 2/ η for the learning rate shown in the same color.
Our experiments show that sufficiently large learning rates induce edge-of-stability dynamics, and the resulting global minima exhibit worse length generalization than those reached at smaller learning rates, for which the dynamics remain outside this regime (Figure 2 b and Figure 3 a). This implies that, given that length generalization is a special case of the notion of generalization, a relatively flat minimum need not generalize better.
Figure 3. (a) The per-step prediction error computed by 1 / N t e s t ∑ i = 1 N t e s t ∥ y ^ k ( i ) − y k ( i ) ∥ 2 2 1/N_{\mathrm{test}} \sum_{i=1}^{N_{\mathrm{test}}} \lVert\hat{\mathbf{y}}_{k}^{(i)}-\mathbf{y}_{k}^{(i)}\rVert_{2}^{2} 1/ N test ∑ i = 1 N test ∥ y ^ k ( i ) − y k ( i ) ∥ 2 2 . T ∈ { 4 , 8 , 16 } T \in\{4,8,16\} T ∈ { 4 , 8 , 16 } (left to right). (b) The average ℓ 2 \ell^{2} ℓ 2 -norm of the hidden state h k \mathbf{h}_{k} h k during inference. T ∈ { 4 , 8 , 16 } T \in\{4,8,16\} T ∈ { 4 , 8 , 16 } (left to right). (c) The Frobenius norm of the Markov parameter at time step k k k , i.e., ∥ M k ( θ K ) ∥ F \lVert\mathbf{M}_{k}(\theta_{K})\rVert_{F} ∥ M k ( θ K ) ∥ F , where θ K \theta_{K} θ K is the last iterate in Figure 2 . T ∈ { 4 , 8 , 16 } T \in\{4,8,16\} T ∈ { 4 , 8 , 16 } (left to right). Figure 3: The performance of the linear RNNs trained in Figure 2 on test sequences that are longer than those seen during training. The dotted vertical line marks the training horizon T T T . (a) The dashed black curve is the Bayes-optimal error. The vertical axis is linear below the dashed horizontal line and logarithmic above it. The colored dashed horizontal lines mark the level at which the per-step prediction error settles.
Figure 4. The spectral radius restricted to controllable and observable modes of the recurrent weight matrix obtained from training, ρ c o \rho_{\mathrm{co}} ρ co , as a function of the learning rate η \eta η for (a) T = 4 T=4 T = 4 and (b) T = 8 T=8 T = 8 . Filled circles are the runs that converged to a global minimum, and hollow circles are the runs that did not converge in finite time. The gray region marks the learning rates whose runs end training at the edge of stability, and the red region marks the learning rates for which GD diverges.
As we observe in § 4 and several works in the literature have shown, larger learning rates converge to relatively flat minima. To understand the relationship between the sharpness of a global minimum and the spectral radius of its recurrent weight matrix restricted to the controllable and observable modes, denoted by ρ c o \rho_{\mathrm{co}} ρ co , we derive a closed-form expression for the maximum Hessian eigenvalue of the training loss at any global minimum (Theorem 11 ). We show that, for every global minimum, there exists a global minimum with the same ρ c o \rho_{\mathrm{co}} ρ co that is arbitrarily sharp (Proposition 12) and that ρ c o ( ⋅ ) \rho_{\mathrm{co}}(\cdot) ρ co ( ⋅ ) is unbounded over the set of global minima (Proposition 13 ). Therefore, through the lens of dynamical stability, we hypothesize that the sharpness of flat minima among the global minima with a given ρ c o = r \rho_{\mathrm{co}} = r ρ co = r is a non-increasing and non-constant function of r r r (Hypothesis 1). Under this hypothesis, linear stability excludes only the values of ρ c o \rho_{\mathrm{co}} ρ co below a threshold that does not decrease as the learning rate increases.
Ruiz and Gu [ [66 ] hypothesized that linear recurrent models fail to length generalize since they are trained only on a subset of the state distributions determined by the training horizon. Our results, however, demonstrate that although all global minima realize the same Markov parameters within the training horizon, their behavior beyond it can differ arbitrarily. Therefore, the training horizon alone does not determine length generalization, and a theory of length generalization should account for the optimization dynamics of gradient-based training.
Related Work
Linear RNNs and Modern Recurrent Architectures. Most linear recurrent architectures admit the general form
h k = A k h k − 1 + B k u k , o k = C k h k , \mathbf{h}_k = \mathbf{A}_k\mathbf{h}_{k-1} + \mathbf{B}_k\mathbf{u}_k,\quad\mathbf{o}_k = \mathbf{C}_k\mathbf{h}_k, h k = A k h k − 1 + B k u k , o k = C k h k ,
where u k \mathbf{u}_k u k is the input token and o k \mathbf{o}_k o k is the output token. These architectures compress the history into a fixed-size recurrent memory that is updated at every time step. Conceptually, they differ in how A k \mathbf{A}_k A k , B k \mathbf{B}_k B k , and C k \mathbf{C}_k C k are parameterized and how they depend on the input [66 Section 2.2] . For instance, linear attention projects each token onto a key k k = W K u k ∈ R d \mathbf{k}_k = \mathbf{W}_K\mathbf{u}_k \in\mathbb{R}^d k k = W K u k ∈ R d , a value v k = W V u k ∈ R v \mathbf{v}_k = \mathbf{W}_V\mathbf{u}_k \in\mathbb{R}^v v k = W V u k ∈ R v , and a query q k = W Q u k ∈ R d \mathbf{q}_k = \mathbf{W}_Q\mathbf{u}_k \in\mathbb{R}^d q k = W Q u k ∈ R d , and then stores their associations in a recurrent matrix memory S k = S k − 1 + v k k k T \mathbf{S}_k = \mathbf{S}_{k-1} + \mathbf{v}_k\mathbf{k}_k^{\mathsf{T}} S k = S k − 1 + v k k k T . Subsequently, its recall is simply the matrix-vector product o k = S k q k = ∑ i ≤ k ( k i T q k ) v i \mathbf{o}_k = \mathbf{S}_k\mathbf{q}_k = \sum_{i \leq k}(\mathbf{k}_i^{\mathsf{T}}\mathbf{q}_k)\mathbf{v}_i o k = S k q k = ∑ i ≤ k ( k i T q k ) v i , which retrieves each stored value weighted by the dot-product similarity between its key and the query. Note that if h k = vec ( S k ) \mathbf{h}_k = \operatorname{vec}(\mathbf{S}_k) h k = vec ( S k ) , this corresponds to A k = I \mathbf{A}_k = \mathbf{I} A k = I , B k = k k ⊗ W V \mathbf{B}_k = \mathbf{k}_k \otimes\mathbf{W}_V B k = k k ⊗ W V and C k = q k T ⊗ I d \mathbf{C}_k = \mathbf{q}_k^{\mathsf{T}} \otimes\mathbf{I}_d C k = q k T ⊗ I d by using the properties of the Kronecker product. Since vanilla linear attention suffers from a linear memory, its gated [citep][Yang et al., 2023, Sun et al., 2023, Katsch, 2023, Qin et al., 2023, Peng et al., 2023, De et al., 2024] and delta-rule variants [68 , 70 ] (Yang et al. 2024; Yang et al. 2025) have been proposed. Its gated variants replace A k \mathbf{A}_k A k with a data-dependent decay γ k A k \gamma_k\mathbf{A}_k γ k A k , while its delta-rule variants instead choose A k = ( I − β k k k k k T ) ⊗ I d \mathbf{A}_k = (\mathbf{I} - \beta_k\mathbf{k}_k\mathbf{k}_k^{\mathsf{T}}) \otimes\mathbf{I}_d A k = ( I − β k k k k k T ) ⊗ I d and B k = β k ( k k ⊗ W V ) \mathbf{B}_k = \beta_k(\mathbf{k}_k \otimes\mathbf{W}_V) B k = β k ( k k ⊗ W V ) with a learning rate β k \beta_k β k .
On the other hand, the recurrent memory of an SSM is chosen a priori. HiPPO [25 ] derives the state and input matrices of a continuous-time linear system so that its state stores the coefficients of the optimal projection of the history onto a basis of orthogonal polynomials. S4 discretizes this continuous-time system into matrices ( A ˉ , B ˉ , C ˉ ) (\bar{\mathbf{A}}, \bar{\mathbf{B}}, \bar{\mathbf{C}}) ( A ˉ , B ˉ , C ˉ ) , after initializing the continuous-time recurrent matrix A \mathbf{A} A with HiPPO [27 a] . Since the resulting system is time-invariant, its output is the convolution of the input with the kernel ( C ˉ B ˉ , C ˉ A ˉ B ˉ , C ˉ A ˉ 2 B ˉ , … ) (\bar{\mathbf{C}}\bar{\mathbf{B}}, \bar{\mathbf{C}}\bar{\mathbf{A}}\bar{\mathbf{B}}, \bar{\mathbf{C}}\bar{\mathbf{A}}^{2}\bar{\mathbf{B}}, \ldots) ( C ˉ B ˉ , C ˉ A ˉ B ˉ , C ˉ A ˉ 2 B ˉ , … ) . This convolution can be evaluated in parallel by the fast Fourier transform in O ( T log T ) O(T \log T) O ( T log T ) time rather than through T T T sequential recurrent updates, which makes training substantially faster than that of nonlinear RNNs, whose recurrence cannot be parallelized over time. Subsequent works restrict the state matrix to be diagonal [28 , 71 , 59 ] . In particular, Orvieto et al. [ [59 ] showed that a linear RNN matches the performance of S4 without discretization or HiPPO, provided its recurrence is diagonal and complex-valued with eigenvalues parameterized to lie inside the unit disk.
Online Test-Time Regression. Recently, a unifying perspective for sequence models has been proposed [79 ] . In this view, during inference, sequence models form a memory from the key–value pairs computed from each token processed so far, approximately solve a regression problem that maps these keys to their corresponding values, and then evaluate the fitted regressor at a query to produce its output. The regression is online because the memory is updated as each token arrives and it is performed at test time . From this point of view, softmax attention, linear attention and its gated and delta-rule variants, state-space models, fast weight programmers, and test-time training layers differ in how the associations are weighted, whether the regressor is parametric or non-parametric, and the algorithm that solves the regression [42 , 68 , 75 , 52 , 8 , 78 , 54 ] (Yang et al. 2024; Wang et al. 2025).
Edge of Stability and Progressive Sharpening. Cohen et al. [ [12 ] reported that neural networks trained with GD generally enter a regime called the edge of stability , in which the maximum eigenvalue of the Hessian of the training loss hovers around 2 / η 2/\eta 2/ η , where η \eta η is the learning rate, while the training loss is decreasing non-monotonically. They also reported that this regime is preceded by a phase called progressive sharpening , during which the maximum Hessian eigenvalue steadily increases until it reaches 2 / η 2/\eta 2/ η [34 ] . Furthermore, a decrease in the maximum Hessian eigenvalue, followed by a temporary plateau, has been observed early in training and called sharpness reduction [38 , 39 ] . This has raised the question of whether these phenomena occur universally in neural network training under certain conditions. To this end, Wang et al. [ [82 ] and Zhu et al. [2022] analyzed two-layer linear networks. Cohen et al. [ [12 ] reported that progressive sharpening is weak for shallow networks trained with gradient flow or, at a fixed depth, for small datasets. Moreover, Yoo et al. [2025] reported that, in stochastic gradient descent (SGD) with a small batch size, progressive sharpening is weaker for large learning rates. Recently, Galli et al. [ [22 ] showed that GD with large adaptive step sizes operates at the edge of stability from the start of training.
Flat Minima and Generalization. One of the mechanisms that give rise to the implicit bias of GD has been characterized in terms of dynamical stability . Conceptually, dynamical stability describes the ability of GD to converge stably to a minimum, and it is closely related to the sharpness of the loss landscape near that minimum. We recall that an implicit bias mechanism does not necessarily explain an implicit regularization unless the global minima favored by an algorithm have been shown to be benign or margin solutions relative to others. For instance, it has been shown that sharp minima can be dynamically unstable for gradient-based methods; therefore, gradient iterates avoid sharp minima and converge to flat minima [84 , 57 ] Nacson et al., [58 ] . However, the relationship between flatness and generalization remains unclear: In a large-scale empirical analysis, Jiang et al. [ [35 ] evaluated a set of complexity measures for deep networks and observed that sharpness-based measures were most strongly correlated with generalization. However, this correlation does not establish a causal relationship between flatness and generalization. Nonetheless, there exists theoretical evidence for this phenomenon in low-rank matrix recovery [18 ] and two-layer neural networks [63 , 50 , 51 ] . On the other hand, Dinh et al. [ [19 ] demonstrated that even good minima in deep neural networks can be arbitrarily sharp, and Xu et al. [2026] showed that SGD does not seek flat minima. Therefore, the implicit bias of gradient-based methods toward flat minima has not yet been characterized as an implicit regularization mechanism, although the two terms are used interchangeably in the literature.
Notation, Problem Setup, and Preliminaries
We use the following notation throughout the paper. We denote the Kronecker product by ⊗ \otimes ⊗ , the ℓ 2 \ell^2 ℓ 2 norm by ∥ ⋅ ∥ 2 \lVert\cdot\rVert_2 ∥ ⋅ ∥ 2 , the spectral norm by σ max ( ⋅ ) \sigma_{\max}(\cdot) σ m a x ( ⋅ ) , and the Frobenius norm by ∥ ⋅ ∥ F \lVert\cdot\rVert_F ∥ ⋅ ∥ F . We write [ L ] : = { 1 , 2 , … , L } [L] := \{1,2,\ldots,L\} [ L ] := { 1 , 2 , … , L } for the set of natural numbers up to L L L and [ L ] 0 : = { 0 , 1 , 2 , … , L } [L]_0 := \{0,1,2,\ldots,L\} [ L ] 0 := { 0 , 1 , 2 , … , L } for the set of natural numbers up to L L L including 0. We denote by 1 : = [ 1 1 ⋯ 1 ] ⊤ ∈ R n \mathbf{1}:=[1\ \ 1\ \ \cdots\ \ 1]^\top\in\mathbb{R}^n 1 := [ 1 1 ⋯ 1 ] ⊤ ∈ R n the vector whose entries are all equal to 1 and by R + n \mathbb{R}_+^n R + n the non-negative orthant of R n \mathbb{R}^n R n . Furthermore, we denote a scalar by a ∈ R a\in\mathbb{R} a ∈ R , an n n n -dimensional vector by a ∈ R n \mathbf{a}\in\mathbb{R}^n a ∈ R n , and an m × n m\times n m × n matrix by A ∈ R m × n \mathbf{A}\in\mathbb{R}^{m\times n} A ∈ R m × n . We denote the range (column space) of a matrix A \mathbf{A} A by ran ( A ) \operatorname{ran}(\mathbf{A}) ran ( A ) and its kernel (null space) by ker ( A ) \operatorname{ker}(\mathbf{A}) ker ( A ) . We denote an n n n -by-n n n identity matrix by I n ∈ R n × n \mathbf{I}_n\in\mathbb{R}^{n\times n} I n ∈ R n × n and denote an m m m -by-n n n zero matrix by 0 m × n ∈ R m × n \mathbf{0}_{m\times n}\in\mathbb{R}^{m\times n} 0 m × n ∈ R m × n . Moreover, we denote random variables by capital letters, e.g., Y ∈ R Y\in\mathbb{R} Y ∈ R , and n n n -dimensional random vectors by bold and calligraphic letters, e.g., Y ∈ R n \mathcal{Y}\in\mathbb{R}^n Y ∈ R n . Finally, we denote a sequence by { x i } i ≥ 0 \{x_i\}_{i\geq0} { x i } i ≥ 0 and a sequence indexed by [ t ] 0 [t]_0 [ t ] 0 by either { x i } i ≤ t \{x_i\}_{i\leq t} { x i } i ≤ t or x t x^t x t .
Problem Setup
We consider a partially observed linear dynamical system governed by white Gaussian noise sequences,
X k + 1 = A X k + W k , Y k = C X k + V k , (1) \begin{aligned}
\mathcal{X}_{k+1} &= \mathbf{A}\mathcal{X}_k+\mathcal{W}_k,\\
\mathcal{Y}_k &= \mathbf{C}\mathcal{X}_k+\mathcal{V}_k, \tag*{(1)}
\end{aligned} X k + 1 Y k = A X k + W k , = C X k + V k , (1)
where X k ∈ R n \mathcal{X}_k\in\mathbb{R}^n X k ∈ R n is the hidden state , Y k ∈ R m \mathcal{Y}_k\in\mathbb{R}^m Y k ∈ R m is the observation , A ∈ R n × n \mathbf{A}\in\mathbb{R}^{n\times n} A ∈ R n × n is the state transition matrix , and C ∈ R m × n \mathbf{C}\in\mathbb{R}^{m\times n} C ∈ R m × n is the observation matrix . The process noise { W k } k ≥ 0 \{\mathcal{W}_k\}_{k\geq0} { W k } k ≥ 0 and the measurement noise { V k } k ≥ 0 \{\mathcal{V}_k\}_{k\geq0} { V k } k ≥ 0 are mutually independent, vector-valued random sequences with W k ∼ i . i . d . N ( 0 , Q ) \mathcal{W}_k\overset{\mathrm{i.i.d.}}{\sim}\mathcal{N}(\mathbf{0},\mathbf{Q}) W k ∼ i.i.d. N ( 0 , Q ) and V k ∼ i . i . d . N ( 0 , R ) \mathcal{V}_k\overset{\mathrm{i.i.d.}}{\sim}\mathcal{N}(\mathbf{0},\mathbf{R}) V k ∼ i.i.d. N ( 0 , R ) , where R \mathbf{R} R is assumed to be positive definite. We further assume that X 0 ∼ N ( x ˉ 0 , P 0 ) \mathcal{X}_0\sim\mathcal{N}(\bar{\mathbf{x}}_0,\mathbf{P}_0) X 0 ∼ N ( x ˉ 0 , P 0 ) and that X 0 \mathcal{X}_0 X 0 , { W k } k ≥ 0 \{\mathcal{W}_k\}_{k\geq0} { W k } k ≥ 0 , and { V k } k ≥ 0 \{\mathcal{V}_k\}_{k\geq0} { V k } k ≥ 0 are mutually independent.
After having observed the system up to time step k ∈ N k\in\mathbb{N} k ∈ N , we wish to make a prediction for Y k + 1 ∈ R m \mathcal{Y}_{k+1}\in\mathbb{R}^m Y k + 1 ∈ R m in the MMSE sense.3 Accordingly, we fix a training horizon T ∈ N T\in\mathbb{N} T ∈ N , observe N ∈ N N\in\mathbb{N} N ∈ N i.i.d. trajectories of the system, denoted by { ( y 0 ( i ) , y 1 ( i ) , … , y T ( i ) ) } i = 1 N \{(\mathbf{y}^{(i)}_0,\mathbf{y}^{(i)}_1,\ldots,\mathbf{y}^{(i)}_T)\}_{i=1}^N {( y 0 ( i ) , y 1 ( i ) , … , y T ( i ) ) } i = 1 N , and train a single-layer linear RNN of the form
h k + 1 = W 1 h k + W 2 y k , y ^ k + 1 = W 3 h k + 1 , (2) \begin{aligned}
\mathbf{h}_{k+1} &= \mathbf{W}_1\mathbf{h}_k+\mathbf{W}_2\mathbf{y}_k,\\
\hat{\mathbf{y}}_{k+1} &= \mathbf{W}_3\mathbf{h}_{k+1}, \tag*{(2)}
\end{aligned} h k + 1 y ^ k + 1 = W 1 h k + W 2 y k , = W 3 h k + 1 , (2)
where h k ∈ R d \mathbf{h}_k \in\mathbb{R}^d h k ∈ R d is the hidden state , W 1 ∈ R d × d \mathbf{W}_1 \in\mathbb{R}^{d \times d} W 1 ∈ R d × d is the recurrent weight matrix , W 2 ∈ R d × m \mathbf{W}_2 \in\mathbb{R}^{d \times m} W 2 ∈ R d × m is the input matrix , and W 3 ∈ R m × d \mathbf{W}_3 \in\mathbb{R}^{m \times d} W 3 ∈ R m × d is the output matrix . We denote by y ^ k + 1 \hat{\mathbf{y}}_{k+1} y ^ k + 1 our prediction for y k + 1 \mathbf{y}_{k+1} y k + 1 for every k ∈ N k \in\mathbb{N} k ∈ N . Then, we train the linear RNN by minimizing the averaged squared-error loss L ^ : Θ → R + \hat{\mathcal{L}}: \Theta\to\mathbb{R}_+ L ^ : Θ → R + , defined as
L ^ ( θ ) : = 1 N T ∑ i = 1 N ∑ k = 0 T − 1 ∥ y k + 1 ( i ) − y ^ k + 1 ( i ) ( θ ) ∥ 2 2 , (3) \hat{\mathcal{L}}(\theta) := \frac{1}{NT} \sum_{i=1}^{N} \sum_{k=0}^{T-1} \left\lVert\mathbf{y}_{k+1}^{(i)} - \hat{\mathbf{y}}_{k+1}^{(i)}(\theta) \right\rVert_2^2, \tag*{(3)} L ^ ( θ ) := N T 1 i = 1 ∑ N k = 0 ∑ T − 1 y k + 1 ( i ) − y ^ k + 1 ( i ) ( θ ) 2 2 , (3)
where θ : = ( W 1 , W 2 , W 3 ) ∈ Θ : = R d × d × R d × m × R m × d \theta:= (\mathbf{W}_1, \mathbf{W}_2, \mathbf{W}_3) \in\Theta:= \mathbb{R}^{d \times d} \times\mathbb{R}^{d \times m} \times\mathbb{R}^{m \times d} θ := ( W 1 , W 2 , W 3 ) ∈ Θ := R d × d × R d × m × R m × d . Without loss of generality, we initialize the linear RNN with the zero hidden state, i.e., h 0 = 0 \mathbf{h}_0 = \mathbf{0} h 0 = 0 , which is a common initialization in modern recurrent models [66 ] . Furthermore, we denote the set of global minimizers of L ^ \hat{\mathcal{L}} L ^ by
Ω : = arg min θ ∈ Θ L ^ ( θ ) . (4) \Omega:= \underset{\theta\in\Theta}{\operatorname{arg\,min}} \hat{\mathcal{L}}(\theta). \tag*{(4)} Ω := θ ∈ Θ arg min L ^ ( θ ) . (4)
Lemma 1. Consider the training objective in (3) . Define the history matrix by Y k : = [ y k ( 1 ) ⋯ y k ( N ) ] ∈ R m × N \mathbf{Y}_k := [\mathbf{y}_k^{(1)} \ \cdots\ \mathbf{y}_k^{(N)}] \in\mathbb{R}^{m \times N} Y k := [ y k ( 1 ) ⋯ y k ( N ) ] ∈ R m × N . Then, under zero initialization, i.e., h 0 = 0 \mathbf{h}_0 = \mathbf{0} h 0 = 0 , we can rewrite the optimization objective equivalently as
L ^ ( θ ) = 1 N T ∥ vec ( Y + ) − ( Z T ⊗ I m ) vec ( Φ T ( θ ) ) ∥ 2 2 , (5) \hat{\mathcal{L}}(\theta) = \frac{1}{NT} \left\lVert\operatorname{vec}(\mathbf{Y}_+) - (\mathbf{Z}^{\mathsf{T}} \otimes\mathbf{I}_m)\operatorname{vec}(\boldsymbol{\Phi}_T(\theta)) \right\rVert_2^2, \tag*{(5)} L ^ ( θ ) = N T 1 vec ( Y + ) − ( Z T ⊗ I m ) vec ( Φ T ( θ )) 2 2 , (5) where
Z : = [ Y 0 Y 1 ⋯ Y T − 1 0 Y 0 ⋯ Y T − 2 ⋮ ⋱ ⋱ ⋮ 0 ⋯ 0 Y 0 ] ∈ R m T × N T and Y + : = [ Y 1 ⋯ Y T ] ∈ R m × N T (6) \mathbf{Z} := \begin{bmatrix}
\mathbf{Y}_0 & \mathbf{Y}_1 & \cdots& \mathbf{Y}_{T-1} \\
\mathbf{0} & \mathbf{Y}_0 & \cdots& \mathbf{Y}_{T-2} \\
\vdots& \ddots& \ddots& \vdots\\
\mathbf{0} & \cdots& \mathbf{0} & \mathbf{Y}_0
\end{bmatrix} \in\mathbb{R}^{mT \times NT}
\quad\text{and} \quad
\mathbf{Y}_+ := [\mathbf{Y}_1 \ \cdots\ \mathbf{Y}_T] \in\mathbb{R}^{m \times NT} \tag*{(6)} Z := Y 0 0 ⋮ 0 Y 1 Y 0 ⋱ ⋯ ⋯ ⋯ ⋱ 0 Y T − 1 Y T − 2 ⋮ Y 0 ∈ R m T × N T and Y + := [ Y 1 ⋯ Y T ] ∈ R m × N T (6) are the zero-padded history matrix and the corresponding target matrix, respectively.
Proof. With zero initialization, y ^ k + 1 \hat{\mathbf{y}}_{k+1} y ^ k + 1 can be written as a discrete convolution of the input sequence with its Markov parameters
y ^ k + 1 = ∑ i = 0 k M i ( θ ) y k − i , (7) \hat{\mathbf{y}}_{k+1} = \sum_{i=0}^{k} \mathbf{M}_i(\theta)\mathbf{y}_{k-i}, \tag*{(7)} y ^ k + 1 = i = 0 ∑ k M i ( θ ) y k − i , (7)
where M i ( θ ) : = W 3 W 1 i W 2 \mathbf{M}_i(\theta) := \mathbf{W}_3\mathbf{W}_1^i\mathbf{W}_2 M i ( θ ) := W 3 W 1 i W 2 . Furthermore, we can define a dynamic, matrix-valued map Φ k ( θ ) : = [ M 0 ( θ ) ⋯ M k − 1 ( θ ) ] ∈ R m × m k \boldsymbol{\Phi}_k(\theta) := [\mathbf{M}_0(\theta) \ \cdots\ \mathbf{M}_{k-1}(\theta)] \in\mathbb{R}^{m \times mk} Φ k ( θ ) := [ M 0 ( θ ) ⋯ M k − 1 ( θ )] ∈ R m × mk to express y ^ k + 1 \hat{\mathbf{y}}_{k+1} y ^ k + 1 as a linear regression on the history as
y ^ k + 1 = Φ k + 1 ( θ ) [ y k T y k − 1 T ⋯ y 0 T ] T (8) \hat{\mathbf{y}}_{k+1} = \boldsymbol{\Phi}_{k+1}(\theta)
\begin{bmatrix}
\mathbf{y}_k^{\mathsf{T}} & \mathbf{y}_{k-1}^{\mathsf{T}} & \cdots& \mathbf{y}_0^{\mathsf{T}}
\end{bmatrix}^{\mathsf{T}} \tag*{(8)} y ^ k + 1 = Φ k + 1 ( θ ) [ y k T y k − 1 T ⋯ y 0 T ] T (8)
for every k ≥ 0 k \ge0 k ≥ 0 . Consequently,
L ^ ( θ ) = 1 N T ∥ Y + − Φ T ( θ ) Z ∥ F 2 = 1 N T ∥ vec ( Y + ) − ( Z T ⊗ I m ) vec ( Φ T ( θ ) ) ∥ 2 2 , (9) \hat{\mathcal{L}}(\theta) = \frac{1}{NT} \left\lVert\mathbf{Y}_+ - \boldsymbol{\Phi}_T(\theta)\mathbf{Z} \right\rVert_F^2 = \frac{1}{NT} \left\lVert\operatorname{vec}(\mathbf{Y}_+) - (\mathbf{Z}^{\mathsf{T}} \otimes\mathbf{I}_m)\operatorname{vec}(\boldsymbol{\Phi}_T(\theta)) \right\rVert_2^2, \tag*{(9)} L ^ ( θ ) = N T 1 ∥ Y + − Φ T ( θ ) Z ∥ F 2 = N T 1 vec ( Y + ) − ( Z T ⊗ I m ) vec ( Φ T ( θ )) 2 2 , (9)
by using the identity vec ( A X B ) = ( B T ⊗ A ) vec ( X ) \operatorname{vec}(\mathbf{A}\mathbf{X}\mathbf{B}) = (\mathbf{B}^{\mathsf{T}} \otimes\mathbf{A})\operatorname{vec}(\mathbf{X}) vec ( AXB ) = ( B T ⊗ A ) vec ( X ) . Thus, L ^ \hat{\mathcal{L}} L ^ is a convex quadratic function of the Markov parameters restricted to the range of the map θ ↦ Φ T ( θ ) \theta\mapsto\boldsymbol{\Phi}_T(\theta) θ ↦ Φ T ( θ ) . □
Lemma 1 provides a key insight into how the linear RNN predicts the next token: It performs a regression on its history. This regression is online because Φ k \boldsymbol{\Phi}_k Φ k is updated at each time step k k k by a function of the parameters learned from training. Note that if the range of the map θ ↦ Φ T \theta\mapsto\boldsymbol{\Phi}_T θ ↦ Φ T does not contain the optimal Markov parameters for the least-squares regression of the history to predict the next token, the training is suboptimal. This is due to the limited memory capacity of the linear RNN as we mention in § 3 . Moreover, the optimization landscape is non-convex; hence, it may contain spurious minima and non-strict saddle points. Therefore, even with a linear RNN that possesses sufficient memory capacity to realize optimal Markov parameters, we might not be able to reach them since we rely on gradient-based methods for the training, and they can be trapped by these points.
Preliminaries
We note that the linear RNN in (2) is itself a linear dynamical system with input y k y_k y k , state h k \mathbf{h}_k h k , and output y ^ k + 1 \hat{y}_{k+1} y ^ k + 1 . Therefore, before delving into the main results, we review the fundamental concepts of linear system theory. Throughout this section, we assume that h 0 = 0 \mathbf{h}_0 = 0 h 0 = 0 . Furthermore, we fix θ = ( W 1 , W 2 , W 3 ) ∈ Θ \theta= (\mathbf{W}_1,\mathbf{W}_2,\mathbf{W}_3) \in\Theta θ = ( W 1 , W 2 , W 3 ) ∈ Θ and recall that M i ( θ ) = W 3 W 1 i W 2 M_i(\theta) = \mathbf{W}_3\mathbf{W}_1^i\mathbf{W}_2 M i ( θ ) = W 3 W 1 i W 2 for every i ≥ 0 i \ge0 i ≥ 0 . We denote by GL d ( R ) \operatorname{GL}_d(\mathbb{R}) GL d ( R ) the group of invertible d × d d \times d d × d real matrices. We define the spectral radius as follows:
Definition 2 (Horn and Johnson, [31 ] , Definition 1.2.9). Suppose A ∈ R n × n \mathbf{A} \in\mathbb{R}^{n \times n} A ∈ R n × n is an arbitrary square matrix, and let spec ( A ) : = { λ ∈ C : A v = λ v for some v ∈ C n ∖ { 0 } } \operatorname{spec}(\mathbf{A}) := \{\lambda\in\mathbb{C} : \mathbf{A}\mathbf{v} = \lambda\mathbf{v}\ \text{for some }\mathbf{v} \in\mathbb{C}^n \setminus\{0\}\} spec ( A ) := { λ ∈ C : Av = λ v for some v ∈ C n ∖ { 0 }} denote its spectrum. Then, we define the spectral radius of A \mathbf{A} A by
ρ ( A ) : = max { ∣ λ ∣ ∈ R : λ ∈ spec ( A ) } . (10) \rho(\mathbf{A}) := \max\{|\lambda| \in\mathbb{R} : \lambda\in\operatorname{spec}(\mathbf{A})\}. \tag*{(10)} ρ ( A ) := max { ∣ λ ∣ ∈ R : λ ∈ spec ( A )} . (10)
By Lemma 1, the prediction of the linear RNN, and hence L ^ \hat{\mathcal{L}} L ^ , depends on θ \theta θ only through its Markov parameters. This motivates the following definition.
Definition 3 (Chen and Chen, [10 ] , Theorem 4.1). Let { M i } i ≥ 0 ⊂ R m × m \{\mathbf{M}_i\}_{i\geq0} \subset\mathbb{R}^{m \times m} { M i } i ≥ 0 ⊂ R m × m . A parameterization θ = ( W 1 , W 2 , W 3 ) ∈ R d × d × R d × m × R m × d \theta= (\mathbf{W}_1,\mathbf{W}_2,\mathbf{W}_3) \in\mathbb{R}^{d \times d} \times\mathbb{R}^{d \times m} \times\mathbb{R}^{m \times d} θ = ( W 1 , W 2 , W 3 ) ∈ R d × d × R d × m × R m × d is a realization of order d d d of { M i } i ≥ 0 \{\mathbf{M}_i\}_{i\geq0} { M i } i ≥ 0 if M i = W 3 W 1 i W 2 \mathbf{M}_i = \mathbf{W}_3\mathbf{W}_1^i\mathbf{W}_2 M i = W 3 W 1 i W 2 for every i ≥ 0 i \geq0 i ≥ 0 . Two parameterizations, possibly of different orders, are input-output equivalent if they realize the same sequence of Markov parameters.
Proposition 4. For every S ∈ GL d ( R ) \mathbf{S} \in\operatorname{GL}_d(\mathbb{R}) S ∈ GL d ( R ) , the parameterization θ S : = ( S W 1 S − 1 , S W 2 , W 3 S − 1 ) \theta_{\mathbf{S}} := (\mathbf{S}\mathbf{W}_1\mathbf{S}^{-1},\mathbf{S}\mathbf{W}_2,\mathbf{W}_3\mathbf{S}^{-1}) θ S := ( S W 1 S − 1 , S W 2 , W 3 S − 1 ) satisfies M i ( θ S ) = M i ( θ ) \mathbf{M}_i(\theta_{\mathbf{S}}) = \mathbf{M}_i(\theta) M i ( θ S ) = M i ( θ ) for every i ≥ 0 i \geq0 i ≥ 0 . Consequently, L ^ ( θ S ) = L ^ ( θ ) \hat{\mathcal{L}}(\theta_{\mathbf{S}}) = \hat{\mathcal{L}}(\theta) L ^ ( θ S ) = L ^ ( θ ) , and Ω \Omega Ω is invariant under GL d ( R ) \operatorname{GL}_d(\mathbb{R}) GL d ( R ) . Furthermore, the orbit { θ S : S ∈ GL d ( R ) } \{\theta_{\mathbf{S}} : \mathbf{S} \in\operatorname{GL}_d(\mathbb{R})\} { θ S : S ∈ GL d ( R )} is a singleton if and only if W 2 = 0 \mathbf{W}_2 = 0 W 2 = 0 , W 3 = 0 \mathbf{W}_3 = 0 W 3 = 0 , and W 1 = λ I d \mathbf{W}_1 = \lambda\mathbf{I}_d W 1 = λ I d for some λ ∈ R \lambda\in\mathbb{R} λ ∈ R .
We defer the proof of Proposition 4 to Appendix § 8 .§ 1 . This implies that, apart from this degenerate case, no global minimizer is isolated, and its parameterization θ ∗ \theta^* θ ∗ cannot be identified from the training data. We now introduce two important notions from linear systems and control theory, which have direct interpretations in terms of recurrent memory in linear RNNs.
Definition 5 (Chen and Chen, [10 ] , Theorems 6.1 and 6.01). For every k ≥ 1 k \geq1 k ≥ 1 , the controllability matrix and the observability matrix of θ \theta θ are
C k ( θ ) : = [ W 2 W 1 W 2 ⋯ W 1 k − 1 W 2 ] ∈ R d × m k and O k ( θ ) : = [ W 3 W 3 W 1 ⋮ W 3 W 1 k − 1 ] ∈ R m k × d , (11) \mathcal{C}_k(\theta) := \begin{bmatrix}\mathbf{W}_2 & \mathbf{W}_1\mathbf{W}_2 & \cdots& \mathbf{W}_1^{k-1}\mathbf{W}_2\end{bmatrix} \in\mathbb{R}^{d \times mk}
\quad\text{and}\quad
\mathcal{O}_k(\theta) := \begin{bmatrix}
\mathbf{W}_3 \\
\mathbf{W}_3\mathbf{W}_1 \\
\vdots\\
\mathbf{W}_3\mathbf{W}_1^{k-1}
\end{bmatrix} \in\mathbb{R}^{mk \times d}, \tag*{(11)} C k ( θ ) := [ W 2 W 1 W 2 ⋯ W 1 k − 1 W 2 ] ∈ R d × mk and O k ( θ ) := W 3 W 3 W 1 ⋮ W 3 W 1 k − 1 ∈ R mk × d , (11)
respectively. The pair ( W 1 , W 2 ) (\mathbf{W}_1,\mathbf{W}_2) ( W 1 , W 2 ) is controllable if rank ( C d ( θ ) ) = d \operatorname{rank}(\mathcal{C}_d(\theta)) = d rank ( C d ( θ )) = d , and the pair ( W 3 , W 1 ) (\mathbf{W}_3,\mathbf{W}_1) ( W 3 , W 1 ) is observable if rank ( O d ( θ ) ) = d \operatorname{rank}(\mathcal{O}_d(\theta)) = d rank ( O d ( θ )) = d .
These notions have a direct interpretation in terms of the operations a recurrent unit performs at each time step: reading the previous hidden state h k h_k h k and generating h k + 1 h_{k+1} h k + 1 . Unrolling (2) from h 0 = 0 h_0=0 h 0 = 0 gives
h k = ∑ j = 0 k − 1 W 1 k − 1 − j W 2 y j = C k ( θ ) [ y k − 1 T y k − 2 T ⋯ y 0 T ] T and Φ k ( θ ) = W 3 C k ( θ ) (12) \mathbf{h}_k=\sum_{j=0}^{k-1}\mathbf{W}_1^{k-1-j}\mathbf{W}_2\mathbf{y}_j=\mathbf{C}_k(\theta)\left[\begin{array}{c}\mathbf{y}_{k-1}^{\mathsf{T}}&\mathbf{y}_{k-2}^{\mathsf{T}}&\cdots&\mathbf{y}_0^{\mathsf{T}}\end{array}\right]^{\mathsf{T}}\quad\text{and}\quad\mathbf{\Phi}_k(\theta)=\mathbf{W}_3\mathbf{C}_k(\theta) \tag*{(12)} h k = j = 0 ∑ k − 1 W 1 k − 1 − j W 2 y j = C k ( θ ) [ y k − 1 T y k − 2 T ⋯ y 0 T ] T and Φ k ( θ ) = W 3 C k ( θ ) (12)
for every k ≥ 1 k\ge1 k ≥ 1 . Thus, the hidden state is a linear encoding of the m k mk mk -dimensional history into d d d dimensions, and it always lies in ran ( C k ( θ ) ) \operatorname{ran}(\mathbf{C}_k(\theta)) ran ( C k ( θ )) . If there exists a direction u ∈ R d \mathbf{u}\in\mathbb{R}^d u ∈ R d such that u T C k ( θ ) = 0 \mathbf{u}^{\mathsf{T}}\mathbf{C}_k(\theta)=0 u T C k ( θ ) = 0 , then the hidden state cannot be excited in the direction of u \mathbf{u} u within k k k steps for any input sequence. Therefore, controllability means that the hidden state h k \mathbf{h}_k h k can be excited in every direction in R d \mathbb{R}^d R d by some input sequence. On the other hand, observability means that, for a fixed sequence of inputs, every nonzero perturbation z ∈ R d \mathbf{z}\in\mathbb{R}^d z ∈ R d of the hidden state h k 0 \mathbf{h}_{k_0} h k 0 changes the prediction within k k k steps. To see this, suppose that the hidden state is perturbed at time step k 0 ∈ N k_0\in\mathbb{N} k 0 ∈ N in the direction of z ∈ R d \mathbf{z}\in\mathbb{R}^d z ∈ R d . Then
h k 0 + 1 = W 1 h k 0 + W 2 y k 0 , (13) \mathbf{h}_{k_0+1}=\mathbf{W}_1\mathbf{h}_{k_0}+\mathbf{W}_2\mathbf{y}_{k_0}, \tag*{(13)} h k 0 + 1 = W 1 h k 0 + W 2 y k 0 , (13)
h k 0 + 1 z = W 1 h k 0 z + W 2 y k 0 , (14) \mathbf{h}_{k_0+1}^{\mathbf{z}}=\mathbf{W}_1\mathbf{h}_{k_0}^{\mathbf{z}}+\mathbf{W}_2\mathbf{y}_{k_0}, \tag*{(14)} h k 0 + 1 z = W 1 h k 0 z + W 2 y k 0 , (14)
where h k 0 z = h k 0 + z \mathbf{h}_{k_0}^{\mathbf{z}}=\mathbf{h}_{k_0}+\mathbf{z} h k 0 z = h k 0 + z . This means that y ^ k 0 z − y ^ k 0 = W 3 z \hat{\mathbf{y}}_{k_0}^{\mathbf{z}}-\hat{\mathbf{y}}_{k_0}=\mathbf{W}_3\mathbf{z} y ^ k 0 z − y ^ k 0 = W 3 z and y ^ k 0 + 1 z − y ^ k 0 + 1 = W 3 W 1 z \hat{\mathbf{y}}_{k_0+1}^{\mathbf{z}}-\hat{\mathbf{y}}_{k_0+1}=\mathbf{W}_3\mathbf{W}_1\mathbf{z} y ^ k 0 + 1 z − y ^ k 0 + 1 = W 3 W 1 z . By unrolling the recursion, we see that y ^ k 0 + j z − y ^ k 0 + j = W 3 W 1 j z \hat{\mathbf{y}}_{k_0+j}^{\mathbf{z}}-\hat{\mathbf{y}}_{k_0+j}=\mathbf{W}_3\mathbf{W}_1^j\mathbf{z} y ^ k 0 + j z − y ^ k 0 + j = W 3 W 1 j z for all j ∈ N j\in\mathbb{N} j ∈ N . This implies that if ker ( O k ( θ ) ) = { 0 } \operatorname{ker}(\mathbf{O}_k(\theta))=\{\mathbf{0}\} ker ( O k ( θ )) = { 0 } , then for any nonzero z \mathbf{z} z , there exists i ∈ [ k − 1 ] 0 i\in[k-1]_0 i ∈ [ k − 1 ] 0 such that W 3 W 1 i z ≠ 0 \mathbf{W}_3\mathbf{W}_1^i\mathbf{z}\ne0 W 3 W 1 i z = 0 .
We now show that if the hidden state cannot be excited in a direction u ∈ R d \mathbf{u}\in\mathbb{R}^d u ∈ R d within the first d d d steps, then it cannot be excited in that direction at any later time. Similarly, for a fixed input sequence, if a perturbation of the hidden state leads to no change in the predictions within the first d d d steps after the perturbation, then it cannot be observed at any later time. This shows that the behavior of the linear RNN beyond the training horizon is determined by the spectrum of the recurrent weight matrix of the parameterization obtained from training.
Lemma 6. Let χ ( s ) : = det ( s I d − W 1 ) = s d + ∑ j = 0 d − 1 a j s j \chi(s):=\det(s\mathbf{I}_d-\mathbf{W}_1)=s^d+\sum_{j=0}^{d-1}a_js^j χ ( s ) := det ( s I d − W 1 ) = s d + ∑ j = 0 d − 1 a j s j be the characteristic polynomial of W 1 \mathbf{W}_1 W 1 . Then,
(i) M i + d ( θ ) = − ∑ j = 0 d − 1 a j M i + j ( θ ) \mathbf{M}_{i+d}(\theta)=-\sum_{j=0}^{d-1}a_j\mathbf{M}_{i+j}(\theta) M i + d ( θ ) = − ∑ j = 0 d − 1 a j M i + j ( θ ) for every i ≥ 0 i\ge0 i ≥ 0 .
(ii) ran ( C k ( θ ) ) = ran ( C d ( θ ) ) \operatorname{ran}(\mathbf{C}_k(\theta))=\operatorname{ran}(\mathbf{C}_d(\theta)) ran ( C k ( θ )) = ran ( C d ( θ )) and ker ( O k ( θ ) ) = ker ( O d ( θ ) ) \operatorname{ker}(\mathbf{O}_k(\theta))=\operatorname{ker}(\mathbf{O}_d(\theta)) ker ( O k ( θ )) = ker ( O d ( θ )) for every k ≥ d k\ge d k ≥ d .
Proof. By the Cayley–Hamilton theorem [20 ] , W 1 d = − ∑ j = 0 d − 1 a j W 1 j \mathbf{W}_1^d=-\sum_{j=0}^{d-1}a_j\mathbf{W}_1^j W 1 d = − ∑ j = 0 d − 1 a j W 1 j . Multiplying from the left by W 3 W 1 i \mathbf{W}_3\mathbf{W}_1^i W 3 W 1 i and from the right by W 2 \mathbf{W}_2 W 2 gives (i). By induction, we can show that W 1 k ∈ span { I d , W 1 , … , W 1 d − 1 } \mathbf{W}_1^k\in\operatorname{span}\{\mathbf{I}_d,\mathbf{W}_1,\ldots,\mathbf{W}_1^{d-1}\} W 1 k ∈ span { I d , W 1 , … , W 1 d − 1 } for every k ≥ 0 k\ge0 k ≥ 0 . Hence, every column of W 1 k W 2 \mathbf{W}_1^k\mathbf{W}_2 W 1 k W 2 lies in ran ( C d ( θ ) ) \operatorname{ran}(\mathbf{C}_d(\theta)) ran ( C d ( θ )) , and this means that ran ( C k ( θ ) ) ⊆ ran ( C d ( θ ) ) \operatorname{ran}(\mathbf{C}_k(\theta))\subseteq\operatorname{ran}(\mathbf{C}_d(\theta)) ran ( C k ( θ )) ⊆ ran ( C d ( θ )) . Since C d ( θ ) \mathbf{C}_d(\theta) C d ( θ ) consists of the first m d md m d columns of C k ( θ ) \mathbf{C}_k(\theta) C k ( θ ) , we have ran ( C d ( θ ) ) ⊆ ran ( C k ( θ ) ) \operatorname{ran}(\mathbf{C}_d(\theta))\subseteq\operatorname{ran}(\mathbf{C}_k(\theta)) ran ( C d ( θ )) ⊆ ran ( C k ( θ )) . Therefore, ran ( C k ( θ ) ) = ran ( C d ( θ ) ) \operatorname{ran}(\mathbf{C}_k(\theta))=\operatorname{ran}(\mathbf{C}_d(\theta)) ran ( C k ( θ )) = ran ( C d ( θ )) . The claim for ker ( O k ( θ ) ) \operatorname{ker}(\mathbf{O}_k(\theta)) ker ( O k ( θ )) follows by the same argument applied to the rows of O k ( θ ) \mathbf{O}_k(\theta) O k ( θ ) .
Remark 7. This means that the Markov parameters of a linear RNN with hidden dimension d d d obey a linear recurrence of order d d d . Hence, the entire sequence { M i ( θ ) } i ≥ 0 \{\mathbf{M}_i(\theta)\}_{i\ge0} { M i ( θ ) } i ≥ 0 , including its behavior beyond the training horizon T T T , is determined by { M i ( θ ) } i ≤ d − 1 \{\mathbf{M}_i(\theta)\}_{i\le d-1} { M i ( θ ) } i ≤ d − 1 and the coefficients of the characteristic polynomial of W 1 \mathbf{W}_1 W 1 .
Using the Hautus lemma [29 ] , also known as the Popov–Belevitch–Hautus test, we define the spectral radius restricted to controllable and observable modes as follows:
Definition 8. We denote the spectral radius restricted to controllable and observable modes (eigenvalues) of W 1 \mathbf{W}_1 W 1 as
ρ c o ( θ ) : = max { ∣ λ ∣ : λ ∈ spec ( W 1 ) , rank ( [ λ I d − W 1 W 2 ] ) = d , rank ( [ λ I d − W 1 W 3 ] ) = d } , (15) \rho_{\mathrm{co}}(\theta) := \max\left\{ |\lambda| : \lambda\in\operatorname{spec}(\mathbf{W}_1),\ \operatorname{rank}\left(\begin{bmatrix}\lambda\mathbf{I}_d-\mathbf{W}_1 & \mathbf{W}_2\end{bmatrix}\right)=d,\ \operatorname{rank}\left(\begin{bmatrix}\lambda\mathbf{I}_d-\mathbf{W}_1 \\ \mathbf{W}_3\end{bmatrix}\right)=d \right\}, \tag*{(15)} ρ co ( θ ) := max { ∣ λ ∣ : λ ∈ spec ( W 1 ) , rank ( [ λ I d − W 1 W 2 ] ) = d , rank ( [ λ I d − W 1 W 3 ] ) = d } , (15) where we set ρ c o ( θ ) : = 0 \rho_{\mathrm{co}}(\theta) := 0 ρ co ( θ ) := 0 if this set is empty.
Within Training Horizon
To isolate length generalization from other generalization effects, we consider a setting in which all global minimizers realize the same Markov parameters within the training horizon. This allows us to study how the learning rate shapes the implicit bias of GD among minimizers that differ only in their length-generalization ability. To this end, the following lemma provides a sufficient condition for the single-layer linear RNN that is independent of the sequential data.
Lemma 9. Consider the zero-initialized single-layer linear RNN defined in § 2.1 . If d ≥ m T d \ge mT d ≥ m T , then the optimal training loss L ^ ( θ ∗ ) \hat{\mathcal{L}}(\theta^*) L ^ ( θ ∗ ) can be computed by solving4 the equation Y + = Φ T ( θ ) Z \mathbf{Y}_{+}=\mathbf{\Phi}_T(\theta)\mathbf{Z} Y + = Φ T ( θ ) Z for Φ T ( θ ) \mathbf{\Phi}_T(\theta) Φ T ( θ ) . Furthermore, if Z Z T \mathbf{Z}\mathbf{Z}^{\mathsf{T}} Z Z T is nonsingular, then every pair θ 1 ∗ , θ 2 ∗ ∈ Ω \theta_1^*,\theta_2^* \in\Omega θ 1 ∗ , θ 2 ∗ ∈ Ω satisfies
Φ T ( θ 1 ∗ ) = Φ T ( θ 2 ∗ ) = Y + Z T ( Z Z T ) − 1 . (16) \mathbf{\Phi}_T(\theta_1^*)=\mathbf{\Phi}_T(\theta_2^*)=\mathbf{Y}_{+}\mathbf{Z}^{\mathsf{T}}(\mathbf{Z}\mathbf{Z}^{\mathsf{T}})^{-1}. \tag*{(16)} Φ T ( θ 1 ∗ ) = Φ T ( θ 2 ∗ ) = Y + Z T ( Z Z T ) − 1 . (16)
We defer the full proof to Appendix B. The proof relies on the fact that θ ↦ Φ T ( θ ) \theta\mapsto\mathbf{\Phi}_T(\theta) θ ↦ Φ T ( θ ) is surjective when d ≥ m T d \ge mT d ≥ m T . Therefore, to establish the uniqueness of the optimal Markov parameters, it suffices to have sequences such that Z Z T \mathbf{Z}\mathbf{Z}^{\mathsf{T}} Z Z T is nonsingular. Note that, in our setting, Y k \mathbf{Y}_k Y k is a Gaussian random vector with a positive-definite covariance matrix. Consequently, if N ≥ m N \ge m N ≥ m , then Z Z T \mathbf{Z}\mathbf{Z}^{\mathsf{T}} Z Z T is nonsingular almost surely. For the proof, see Lemma 15 .
In this regime, the linear RNN can stack its context in its hidden state by updating it recursively like a shift register. Furthermore, since we can compute the optimal loss L ^ ( θ ∗ ) \hat{\mathcal{L}}(\theta^*) L ^ ( θ ∗ ) when d ≥ m T d \ge mT d ≥ m T as shown in Lemma 9 , we can train the linear RNN until its training loss gap L ^ ( θ k ) − L ^ ( θ ∗ ) \hat{\mathcal{L}}(\theta_k)-\hat{\mathcal{L}}(\theta^*) L ^ ( θ k ) − L ^ ( θ ∗ ) reaches machine precision to obtain a global minimizer.
As we showed in Lemma 6 , the Markov parameters beyond the training horizon are determined by { M i ( θ ) } i ≤ d − 1 \{\mathbf{M}_i(\theta)\}_{i\le d-1} { M i ( θ ) } i ≤ d − 1 and the coefficients of the characteristic polynomial of W 1 \mathbf{W}_1 W 1 . In the following, we show that when d ≥ m T d \ge mT d ≥ m T , there exists a global minimum whose recurrent weight matrix has a characteristic polynomial with arbitrary coefficients.
Theorem 10. Consider the single-layer linear RNN defined in § 2.1 . If d ≥ m T d \ge mT d ≥ m T , then for every ( a 0 , a 1 , … , a d − 1 ) ∈ R d (a_0,a_1,\ldots,a_{d-1})\in\mathbb{R}^d ( a 0 , a 1 , … , a d − 1 ) ∈ R d , there exists a global minimizer θ ∗ = ( W 1 ∗ , W 2 ∗ , W 3 ∗ ) ∈ Ω \theta^*=(\mathbf{W}_1^*,\mathbf{W}_2^*,\mathbf{W}_3^*)\in\Omega θ ∗ = ( W 1 ∗ , W 2 ∗ , W 3 ∗ ) ∈ Ω such that
det ( s I d − W 1 ∗ ) = s d + ∑ j = 0 d − 1 a j s j . (17) \det(s\mathbf{I}_d-\mathbf{W}_1^*)=s^d+\sum_{j=0}^{d-1}a_js^j. \tag*{(17)} det ( s I d − W 1 ∗ ) = s d + j = 0 ∑ d − 1 a j s j . (17)
We defer the proof to Appendix § 10 . The proof combines the shift-register realization used in the proof of Lemma 9 with a companion matrix of a monic polynomial with arbitrary coefficients (Definition 26 ).
Experiments: Beyond Training Horizon
In this section, we empirically investigate how the learning rate determines which global minimum GD converges to and how these minima perform beyond the training horizon. Recall that, by Lemma 9 , we can compute the optimal training loss L ^ ( θ ∗ ) \widehat{\mathcal{L}}(\theta^*) L ( θ ∗ ) by solving the normal equation in Lemma 9 when d ≥ m T d \ge mT d ≥ m T . Therefore, we can train the linear RNN until its training loss gap L ^ ( θ k ) − L ^ ( θ ∗ ) \widehat{\mathcal{L}}(\theta_k) - \widehat{\mathcal{L}}(\theta^*) L ( θ k ) − L ( θ ∗ ) reaches the machine precision ϵ \epsilon ϵ , where θ k \theta_k θ k denotes the k k k th iterate of GD.
For the experiments in Figure 2 to Figure 4 , we generate N t o t = 20480 N_{\mathrm{tot}} = 20480 N tot = 20480 trajectories of length 10000 i.i.d. from the linear dynamical system in (1) with n = 4 n = 4 n = 4 and m = 2 m = 2 m = 2 , where the eigenvalues of A A A are 0.96, 0.97, 0.98, and 0.99. Moreover, the entries of C C C are drawn i.i.d. from N ( 0 , 1 ) \mathcal{N}(0,1) N ( 0 , 1 ) , Q = I n Q = I_n Q = I n , R = I m R = I_m R = I m , x ˉ 0 = 0 \bar{x}_0 = 0 x ˉ 0 = 0 , and P 0 = I n P_0 = I_n P 0 = I n . We use the first T + 1 T + 1 T + 1 observations of N = 16384 N = 16384 N = 16384 trajectories for training and the remaining N t e s t = 4096 N_{\mathrm{test}} = 4096 N test = 4096 trajectories for testing. We fix the hidden dimension to d = 128 d = 128 d = 128 and consider the training horizons T ∈ { 4 , 8 , 16 } T \in\{4,8,16\} T ∈ { 4 , 8 , 16 } . We initialize the entries of W 1 W_1 W 1 , W 2 W_2 W 2 , and W 3 W_3 W 3 i.i.d. from the uniform distribution on [ − 1 / d , 1 / d ] [-1/\sqrt{d},1/\sqrt{d}] [ − 1/ d , 1/ d ] and use the same initialization for every learning rate. We train the linear RNN using full-batch GD with a constant learning rate η \eta η in single-precision arithmetic, whose machine precision is ϵ ≈ 1.19 × 10 − 7 \epsilon\approx1.19 \times10^{-7} ϵ ≈ 1.19 × 1 0 − 7 , until the training loss gap reaches ϵ \epsilon ϵ . Furthermore, we compute the maximum eigenvalue of the Hessian of the training loss λ max ( ∇ 2 L ^ ( θ k ) ) \lambda_{\max}(\nabla^2\widehat{\mathcal{L}}(\theta_k)) λ m a x ( ∇ 2 L ( θ k )) at every iteration through the Lanczos iteration [47 ] .
As shown in Figure 2 b, we observe progressive sharpening during training. Following this regime, the training dynamics enter the edge of stability, i.e., the maximum Hessian eigenvalue hovers around 2 / η 2/\eta 2/ η while the training loss decreases non-monotonically. This demonstrates that even single-layer linear RNNs trained with the squared-error loss on a next-token prediction task operate at the edge of stability. To the best of our knowledge, this has not been observed before.
During inference, we run the trained linear RNNs as one-step-ahead predictors rather than autoregressively, which eliminates the exposure bias that can be catastrophic for a next-token prediction task on a continuous vocabulary. We test them on sequences of length 10 4 10^{4} 1 0 4 . As in training, the initial hidden state is set to zero.
To investigate the length-generalization capability of the trained models, we compare the per-step prediction error of the linear RNNs with that of the Kalman predictor, which is the Bayes-optimal one-step-ahead predictor in the MMSE sense for the underlying linear dynamical system in (1) . Furthermore, we define length-generalization failure as the case in which the per-step prediction error either settles at a higher value than the Bayes-optimal error or diverges. When we compare two global minima in terms of their length-generalization capabilities, we use the following conceptual binary relation: For two global minima whose per-step prediction errors settle to finite values, if the per-step prediction error of one settles to a lower level than that of the other, we say that the first length generalizes better than the second. Furthermore, for two global minima whose per-step prediction errors diverge, if the per-step prediction error of one grows faster than that of the other, we say that the latter length generalizes better than the former even though they are both unstable systems.
Under this relation, we observe that sufficiently large learning rates induce edge-of-stability dynamics, and the resulting global minima exhibit worse length generalization than those reached at smaller learning rates, for which the dynamics remain outside this regime. To determine whether a run is at the edge of stability, we check the median of the maximum Hessian eigenvalue over the last 10% of training. If it is at least 0.99 ⋅ 2 / η 0.99 \cdot2/\eta 0.99 ⋅ 2/ η , we consider the run to be at the edge of stability. As shown in Figure 3 a, the runs with η = 0.016 \eta= 0.016 η = 0.016 and η = 0.017 \eta= 0.017 η = 0.017 , which remain outside the edge-of-stability regime, perform close to the Kalman predictor. In contrast, every run that enters the edge-of-stability regime fails to generalize beyond the training horizon. Note that the runs at the edge of stability converge to relatively flat minima as shown in Figure 2 . Given that length generalization is a special case of the notion of generalization, this means a relatively flat minimum need not generalize better than a sharper one.
We observe that for the runs whose per-step prediction error diverges, the Markov parameters also diverge exponentially, and the rate of divergence is higher for larger learning rates. To understand this behavior, we investigate the effect of the learning rate on the controllable and observable modes of the recurrent weight matrix W 1 W_1 W 1 at the converged global minimum, as shown in Figure 4 . We observe that among the runs that enter the edge of stability, the larger learning rates favor global minima whose recurrent weight matrices have a larger spectral radius restricted to the controllable and observable modes. To the best of our knowledge, this implicit bias mechanism has not been characterized in the literature for linear recurrent models.
Discussion
Sharpness and Spectrum of W1 _1 1 . We observe in Figure 4 that, among the runs that enter the edge-of-stability regime, larger learning rates favor global minima whose recurrent weight matrices have a larger ρ c o \rho_{\mathrm{co}} ρ co . Since the maximum Hessian eigenvalue at the end of these runs hovers around 2 / η 2/\eta 2/ η as shown in Figure 2 b, larger learning rates also converge to relatively flat minima. To understand the relationship between the sharpness of a global minimum and ρ c o \rho_{\mathrm{co}} ρ co , we derive a closed-form expression for the maximum Hessian eigenvalue of the training loss at any global minimum.
Theorem 11. Consider the single-layer linear RNN in (2) with d ≥ m T d \ge mT d ≥ m T , and define the sample autocorrelation matrix of the zero-padded history by Σ ^ T : = 1 N T Z Z T \widehat{\Sigma}_{T} := \frac{1}{NT}\mathbf{Z}\mathbf{Z}^{\mathsf{T}} Σ T := N T 1 Z Z T . Then, for any θ ∗ ∈ Ω \theta^{*} \in\Omega θ ∗ ∈ Ω , we have
λ max ( ∇ 2 L ^ ( θ ∗ ) ) = 2 σ max 2 ( ( Σ ^ T 1 / 2 ⊗ I m ) K ∗ ) (18) \lambda_{\max}\left(\nabla^{2}\widehat{\mathcal{L}}(\theta^{*})\right) = 2\sigma_{\max}^{2}\left(\left(\widehat{\Sigma}_{T}^{1/2}\otimes I_{m}\right)K^{*}\right) \tag*{(18)} λ m a x ( ∇ 2 L ( θ ∗ ) ) = 2 σ m a x 2 ( ( Σ T 1/2 ⊗ I m ) K ∗ ) (18) where K ∗ K^{*} K ∗ is defined by
K ∗ : = ∂ vec ( Φ T ( θ ) ) ∂ vec ( θ ) ∣ θ = θ ∗ = [ K 1 , 0 ∗ K 2 , 0 ∗ K 3 , 0 ∗ K 1 , 1 ∗ K 2 , 1 ∗ K 3 , 1 ∗ ⋮ ⋮ ⋮ K 1 , T − 1 ∗ K 2 , T − 1 ∗ K 3 , T − 1 ∗ ] (19) K^{*}:=\left.\frac{\partial\operatorname{vec}\left(\Phi_{T}(\theta)\right)}{\partial\operatorname{vec}(\theta)}\right|_{\theta=\theta^{*}}=
\begin{bmatrix}
K^{*}_{1,0} & K^{*}_{2,0} & K^{*}_{3,0}\\
K^{*}_{1,1} & K^{*}_{2,1} & K^{*}_{3,1}\\
\vdots& \vdots& \vdots\\
K^{*}_{1,T-1} & K^{*}_{2,T-1} & K^{*}_{3,T-1}
\end{bmatrix} \tag*{(19)} K ∗ := ∂ vec ( θ ) ∂ vec ( Φ T ( θ ) ) θ = θ ∗ = K 1 , 0 ∗ K 1 , 1 ∗ ⋮ K 1 , T − 1 ∗ K 2 , 0 ∗ K 2 , 1 ∗ ⋮ K 2 , T − 1 ∗ K 3 , 0 ∗ K 3 , 1 ∗ ⋮ K 3 , T − 1 ∗ (19) with
K 1 , k ∗ = ∑ ℓ = 0 k − 1 ( ( W 1 ∗ ) k − 1 − ℓ W 2 ∗ ) T ⊗ W 3 ∗ ( W 1 ∗ ) ℓ (20) K^{*}_{1,k}=\sum_{\ell=0}^{k-1}\left(\left(W^{*}_{1}\right)^{k-1-\ell}W^{*}_{2}\right)^{\mathsf{T}}\otimes W^{*}_{3}\left(W^{*}_{1}\right)^{\ell} \tag*{(20)} K 1 , k ∗ = ℓ = 0 ∑ k − 1 ( ( W 1 ∗ ) k − 1 − ℓ W 2 ∗ ) T ⊗ W 3 ∗ ( W 1 ∗ ) ℓ (20) K 2 , k ∗ = I m ⊗ W 3 ∗ ( W 1 ∗ ) k , K 3 , k ∗ = ( ( W 1 ∗ ) k W 2 ∗ ) T ⊗ I m (21) K^{*}_{2,k}=I_{m}\otimes W^{*}_{3}\left(W^{*}_{1}\right)^{k},\qquad K^{*}_{3,k}=\left(\left(W^{*}_{1}\right)^{k}W^{*}_{2}\right)^{\mathsf{T}}\otimes I_{m} \tag*{(21)} K 2 , k ∗ = I m ⊗ W 3 ∗ ( W 1 ∗ ) k , K 3 , k ∗ = ( ( W 1 ∗ ) k W 2 ∗ ) T ⊗ I m (21) for all k ∈ [ T − 1 ] 0 k\in[T-1]_{0} k ∈ [ T − 1 ] 0 , and K 1 , 0 ∗ = 0 K^{*}_{1,0}=0 K 1 , 0 ∗ = 0 .
The proof relies on an explicit expression for the second directional derivative of L ^ \widehat{\mathcal{L}} L that simplifies at an arbitrary global minimizer due to the surjectivity of θ ↦ Φ T ( θ ) \theta\mapsto\Phi_{T}(\theta) θ ↦ Φ T ( θ ) and the convexity of L ^ \widehat{\mathcal{L}} L with respect to Φ T ( θ ) \Phi_{T}(\theta) Φ T ( θ ) . We defer the relevant technical preliminaries to Appendix § 8 .§ 2 and the full proof to Appendix D. Our analysis is inspired by Mulayoff and Michaeli [ [56 ] , Kamber and Parhi [ [40 , 41 ] , and Xu et al. [2026] who study the worst-case sharpness of the loss landscape in the vicinity of a minimizer in deep linear models.
Note that, by Theorem 11 , the sharpness of a global minimum depends on its parameterization through K ∗ K^{*} K ∗ , which is a function over the set of global minima. Similar to the observation of Dinh et al. [ [19 ] that the sharpness of a deep neural network can be changed arbitrarily by a reparameterization that does not change the end-to-end function it represents, the following result shows that the global minima with the same recurrent weight matrices can be arbitrarily sharp.
Proposition 12. Consider the single-layer linear RNN given in (2) with d ≥ m T d \ge mT d ≥ m T . Suppose that Σ ^ T \widehat{\Sigma}_{T} Σ T has full rank. For every θ ∗ = ( W 1 ∗ , W 2 ∗ , W 3 ∗ ) ∈ Ω \theta^{*}=(W^{*}_{1},W^{*}_{2},W^{*}_{3})\in\Omega θ ∗ = ( W 1 ∗ , W 2 ∗ , W 3 ∗ ) ∈ Ω and c ∈ R ∖ { 0 } c\in\mathbb{R}\setminus\{0\} c ∈ R ∖ { 0 } , define θ c ∗ : = ( W 1 ∗ , c W 2 ∗ , c − 1 W 3 ∗ ) \theta^{*}_{c}:=(W^{*}_{1},cW^{*}_{2},c^{-1}W^{*}_{3}) θ c ∗ := ( W 1 ∗ , c W 2 ∗ , c − 1 W 3 ∗ ) . Then, θ c ∗ ∈ Ω \theta^{*}_{c}\in\Omega θ c ∗ ∈ Ω , M i ( θ c ∗ ) = M i ( θ ∗ ) M_{i}(\theta^{*}_{c})=M_{i}(\theta^{*}) M i ( θ c ∗ ) = M i ( θ ∗ ) for every i ≥ 0 i\ge0 i ≥ 0 , ρ c o ( θ c ∗ ) = ρ c o ( θ ∗ ) \rho_{\mathrm{co}}(\theta^{*}_{c})=\rho_{\mathrm{co}}(\theta^{*}) ρ co ( θ c ∗ ) = ρ co ( θ ∗ ) , and
λ max ( ∇ 2 L ^ ( θ c ∗ ) ) ≥ 2 λ min ( Σ ^ T ) max { c 2 σ max 2 ( C T ( θ ∗ ) ) , c − 2 σ max 2 ( O T ( θ ∗ ) ) } . (22) \lambda_{\max}\left(\nabla^{2}\widehat{\mathcal{L}}(\theta^{*}_{c})\right)\ge2\lambda_{\min}(\widehat{\Sigma}_{T})\max\left\{c^{2}\sigma_{\max}^{2}\left(\mathcal{C}_{T}(\theta^{*})\right),c^{-2}\sigma_{\max}^{2}\left(\mathcal{O}_{T}(\theta^{*})\right)\right\}. \tag*{(22)} λ m a x ( ∇ 2 L ( θ c ∗ ) ) ≥ 2 λ m i n ( Σ T ) max { c 2 σ m a x 2 ( C T ( θ ∗ ) ) , c − 2 σ m a x 2 ( O T ( θ ∗ ) ) } . (22)
We defer the proof to Appendix E. This means that when Φ ∗ ≠ 0 \Phi^{*}\ne0 Φ ∗ = 0 , the right-hand side of (22) tends to infinity as c → ∞ c\to\infty c → ∞ . Therefore, a condition on ρ c o \rho_{\mathrm{co}} ρ co alone cannot imply that a global minimum is flat. Furthermore, as we show in the following proposition, ρ c o \rho_{\mathrm{co}} ρ co is unbounded on Ω \Omega Ω .
Proposition 13. Consider the single-layer linear RNN given in (2) with d ≥ m T d \ge mT d ≥ m T . Suppose that Σ ^ T \widehat{\Sigma}_T Σ T has full rank and Φ ∗ ≠ 0 \Phi^* \ne0 Φ ∗ = 0 . Then, for every λ ∈ R ∖ { 0 } \lambda\in\mathbb{R} \setminus\{0\} λ ∈ R ∖ { 0 } , there exists θ ∗ ∈ Ω \theta^* \in\Omega θ ∗ ∈ Ω such that ρ c o ( θ ∗ ) = ∣ λ ∣ \rho_{\mathrm{co}}(\theta^*) = |\lambda| ρ co ( θ ∗ ) = ∣ λ ∣ .
We defer the proof to Appendix F. This means that sup θ ∈ Ω ρ c o ( θ ) = ∞ \sup_{\theta\in\Omega} \rho_{\mathrm{co}}(\theta) = \infty sup θ ∈ Ω ρ co ( θ ) = ∞ . Therefore, we investigate the flat minima that attain a given value of ρ c o \rho_{\mathrm{co}} ρ co . For every r ∈ ρ c o ( Ω ) : = { ρ c o ( θ ∗ ) : θ ∗ ∈ Ω } r \in\rho_{\mathrm{co}}(\Omega) := \{\rho_{\mathrm{co}}(\theta^*) : \theta^* \in\Omega\} r ∈ ρ co ( Ω ) := { ρ co ( θ ∗ ) : θ ∗ ∈ Ω } , define s : ρ c o ( Ω ) → R + s : \rho_{\mathrm{co}}(\Omega) \to\mathbb{R}_+ s : ρ co ( Ω ) → R + by
s ( r ) : = inf { λ max ( ∇ 2 L ^ ( θ ∗ ) ) : θ ∗ ∈ Ω , ρ c o ( θ ∗ ) = r } . (23) s(r) := \inf\left\{ \lambda_{\max}\left(\nabla^2 \widehat{\mathcal{L}}(\theta^*)\right) : \theta^* \in\Omega,\ \rho_{\mathrm{co}}(\theta^*) = r \right\}. \tag*{(23)} s ( r ) := inf { λ m a x ( ∇ 2 L ( θ ∗ ) ) : θ ∗ ∈ Ω , ρ co ( θ ∗ ) = r } . (23)
We showed in Proposition 12 that the supremum of the same set is infinite for every r ∈ ρ c o ( Ω ) r \in\rho_{\mathrm{co}}(\Omega) r ∈ ρ co ( Ω ) . Through the lens of dynamical stability, we hypothesize the following.
Hypothesis 1. Suppose that d ≥ m T d \ge mT d ≥ m T , T ≥ 2 T \ge2 T ≥ 2 , and Σ ^ T \widehat{\Sigma}_T Σ T has full rank. Then, s s s is non-increasing and non-constant on ρ c o ( Ω ) \rho_{\mathrm{co}}(\Omega) ρ co ( Ω ) .
Hypothesis 1 relates ρ c o ( θ ∗ ) \rho_{\mathrm{co}}(\theta^*) ρ co ( θ ∗ ) to the sharpness λ max ( ∇ 2 L ^ ( θ ∗ ) ) \lambda_{\max}\left(\nabla^2 \widehat{\mathcal{L}}(\theta^*)\right) λ m a x ( ∇ 2 L ( θ ∗ ) ) and, in turn, to the learning rate as follows: A global minimum θ ∗ ∈ Ω \theta^* \in\Omega θ ∗ ∈ Ω is linearly stable for GD with learning rate η \eta η if and only if λ max ( ∇ 2 L ^ ( θ ∗ ) ) ≤ 2 / η \lambda_{\max}\left(\nabla^2 \widehat{\mathcal{L}}(\theta^*)\right) \le2/\eta λ m a x ( ∇ 2 L ( θ ∗ ) ) ≤ 2/ η [[84 ] ]. Let us define for every η > 0 \eta> 0 η > 0 ,
A η : = { r ∈ ρ c o ( Ω ) : s ( r ) ≤ 2 / η } and r η : = inf A η , (24) A_\eta:= \{r \in\rho_{\mathrm{co}}(\Omega) : s(r) \le2/\eta\} \quad\text{and} \quad r_\eta:= \inf A_\eta, \tag*{(24)} A η := { r ∈ ρ co ( Ω ) : s ( r ) ≤ 2/ η } and r η := inf A η , (24)
where inf ∅ : = ∞ \inf\varnothing:= \infty inf ∅ := ∞ . If θ ∗ \theta^* θ ∗ is linearly stable for GD with learning rate η \eta η , then s ( ρ c o ( θ ∗ ) ) ≤ λ max ( ∇ 2 L ^ ( θ ∗ ) ) ≤ 2 / η s(\rho_{\mathrm{co}}(\theta^*)) \le\lambda_{\max}\left(\nabla^2 \widehat{\mathcal{L}}(\theta^*)\right) \le2/\eta s ( ρ co ( θ ∗ )) ≤ λ m a x ( ∇ 2 L ( θ ∗ ) ) ≤ 2/ η by (23) . Hence, ρ c o ( θ ∗ ) ∈ A η \rho_{\mathrm{co}}(\theta^*) \in A_\eta ρ co ( θ ∗ ) ∈ A η , and thus ρ c o ( θ ∗ ) ≥ r η \rho_{\mathrm{co}}(\theta^*) \ge r_\eta ρ co ( θ ∗ ) ≥ r η . Moreover, if η 1 < η 2 \eta_1 < \eta_2 η 1 < η 2 , then A η 2 ⊆ A η 1 A_{\eta_2} \subseteq A_{\eta_1} A η 2 ⊆ A η 1 ; therefore, r η 1 ≤ r η 2 r_{\eta_1} \le r_{\eta_2} r η 1 ≤ r η 2 . Under Hypothesis 1, if r ∈ A η r \in A_\eta r ∈ A η , then s ( r ′ ) ≤ s ( r ) ≤ 2 / η s(r') \le s(r) \le2/\eta s ( r ′ ) ≤ s ( r ) ≤ 2/ η for every r ′ ∈ ρ c o ( Ω ) r' \in\rho_{\mathrm{co}}(\Omega) r ′ ∈ ρ co ( Ω ) with r ′ ≥ r r' \ge r r ′ ≥ r . Hence, A η A_\eta A η contains every r ∈ ρ c o ( Ω ) r \in\rho_{\mathrm{co}}(\Omega) r ∈ ρ co ( Ω ) with r > r η r > r_\eta r > r η , i.e., linear stability excludes only the values of ρ c o \rho_{\mathrm{co}} ρ co below r η r_\eta r η , and this threshold does not decrease as the learning rate increases. Furthermore, since s s s is non-constant, there exist r 1 , r 2 ∈ ρ c o ( Ω ) r_1, r_2 \in\rho_{\mathrm{co}}(\Omega) r 1 , r 2 ∈ ρ co ( Ω ) with r 1 < r 2 r_1 < r_2 r 1 < r 2 and s ( r 1 ) > s ( r 2 ) s(r_1) > s(r_2) s ( r 1 ) > s ( r 2 ) . Then, for every η \eta η with s ( r 2 ) ≤ 2 / η < s ( r 1 ) s(r_2) \le2/\eta< s(r_1) s ( r 2 ) ≤ 2/ η < s ( r 1 ) , every r ∈ ρ c o ( Ω ) r \in\rho_{\mathrm{co}}(\Omega) r ∈ ρ co ( Ω ) with r ≤ r 1 r \le r_1 r ≤ r 1 is excluded, i.e., the threshold is nontrivial. This agrees with the phenomenon we observe in Figure 4 . We leave open the question of whether s s s is non-increasing and non-constant over ρ c o ( Ω ) \rho_{\mathrm{co}}(\Omega) ρ co ( Ω ) .
Unexplored State Hypothesis. Ruiz and Gu [ [66 ] argued that recurrent models fail to length generalize when applied to long sequences whose hidden-state distributions were not encountered during training. As we observe empirically in Figure 3 a, the implicit bias of GD toward certain global minima can also lead to length-generalization failure when the models are trained within the same training horizon. Therefore, to understand length generalization, we need to understand the optimization dynamics of the gradient-based algorithms.
Conclusion
In this paper, we empirically demonstrated that single-layer linear RNNs trained with squared-error loss on the next-token prediction task operate at the edge of stability following a progressive sharpening regime. Our experiments demonstrated that sufficiently large learning rates induce the edge-of-stability dynamics, and the resulting global minima exhibit worse performance than those reached at smaller learning rates, which did not enter the edge of stability. This implies that a relatively flat minimum need not generalize better than a sharper one. Furthermore, we demonstrated that among the runs that enter the edge-of-stability regime, larger learning rates further degrade length generalization. We empirically characterized an implicit bias of GD in the training of linear RNNs: Larger learning rates favor global minima whose recurrent weight matrices have a larger spectral radius restricted to the controllable and observable modes. To understand this implicit bias, we provided a closed-form expression for the maximum Hessian eigenvalue of the training loss at any global minimizer, and we showed that the global minima with the same ρ c o \rho_{\mathrm{co}} ρ co can be arbitrarily sharp and that this spectral radius is unbounded on the set of global minima. Therefore, through the lens of dynamical stability, we hypothesized that the sharpness of the flat minima among the global minima with a given ρ c o \rho_{\mathrm{co}} ρ co is a non-increasing and non-constant function of this spectral radius. We leave this as an open question.
Acknowledgments
The experiment shown in Figure 1 was designed and executed by Claude Opus 5.5. The parameterization regime d ≥ m T d \ge mT d ≥ m T , in which Φ T ( ⋅ ) \Phi_T(\cdot) Φ T ( ⋅ ) is surjective, was proposed by Claude Fable 5.1. Theorem 10 and Proposition 13 were formulated and proved by Claude Opus 5.5. The characterization of K ∗ K^* K ∗ via a multivariate Taylor expansion and the Jacobian in the proof of Theorem 11 was suggested by the authors, and Claude Opus 5.5 provided a complete proof. Furthermore, Hypothesis 1 was formalized with the assistance of Claude Opus 5.5. The authors take full responsibility for the correctness of all results. Beyond this, GPT-5.6 and Claude Opus 5.5 were used as spell checkers, grammar-suggestion tools, editing aids, and code assistants.
Technical Preliminaries
Lemma 14. Let Y ∈ R m × n \mathbf{Y} \in\mathbb{R}^{m \times n} Y ∈ R m × n and A ∈ R p × n \mathbf{A} \in\mathbb{R}^{p \times n} A ∈ R p × n . Then, Y = X A \mathbf{Y} = \mathbf{X}\mathbf{A} Y = XA admits a solution X ∈ R m × p \mathbf{X} \in\mathbb{R}^{m \times p} X ∈ R m × p if and only if
ran ( Y T ) ⊆ ran ( A T ) (25) \operatorname{ran}(\mathbf{Y}^{\mathsf{T}}) \subseteq\operatorname{ran}(\mathbf{A}^{\mathsf{T}}) \tag*{(25)} ran ( Y T ) ⊆ ran ( A T ) (25)
Proof. Suppose there exists X ∈ R m × p \mathbf{X} \in\mathbb{R}^{m \times p} X ∈ R m × p such that Y = X A \mathbf{Y} = \mathbf{X}\mathbf{A} Y = XA . Taking transposes yields
Y T = A T X T . (26) \mathbf{Y}^{\mathsf{T}} = \mathbf{A}^{\mathsf{T}}\mathbf{X}^{\mathsf{T}}. \tag*{(26)} Y T = A T X T . (26)
Thus, every column of Y T \mathbf{Y}^{\mathsf{T}} Y T is a linear combination of the columns of A T \mathbf{A}^{\mathsf{T}} A T , which implies
ran ( Y T ) ⊆ ran ( A T ) (27) \operatorname{ran}(\mathbf{Y}^{\mathsf{T}}) \subseteq\operatorname{ran}(\mathbf{A}^{\mathsf{T}}) \tag*{(27)} ran ( Y T ) ⊆ ran ( A T ) (27)
Conversely, suppose that ran ( Y T ) ⊆ ran ( A T ) \operatorname{ran}(\mathbf{Y}^{\mathsf{T}}) \subseteq\operatorname{ran}(\mathbf{A}^{\mathsf{T}}) ran ( Y T ) ⊆ ran ( A T ) . Then, every column y i \mathbf{y}_i y i of Y T \mathbf{Y}^{\mathsf{T}} Y T belongs to the column space of A T \mathbf{A}^{\mathsf{T}} A T . Consequently, for each i ∈ [ m ] i \in[m] i ∈ [ m ] , there exists x i ∈ R p \mathbf{x}_i \in\mathbb{R}^{p} x i ∈ R p such that
y i = A T x i . (28) \mathbf{y}_i = \mathbf{A}^{\mathsf{T}}\mathbf{x}_i. \tag*{(28)} y i = A T x i . (28)
Stacking these x i \mathbf{x}_i x i ’s horizontally, we define
X T = [ x 1 ⋯ x m ] (29) \mathbf{X}^{\mathsf{T}} = \begin{bmatrix} \mathbf{x}_1 & \cdots& \mathbf{x}_m \end{bmatrix} \tag*{(29)} X T = [ x 1 ⋯ x m ] (29)
and obtain
Y ⊤ = A ⊤ X ⊤ . (30) \mathbf{Y}^{\top}=\mathbf{A}^{\top}\mathbf{X}^{\top}. \tag*{(30)} Y ⊤ = A ⊤ X ⊤ . (30)
Therefore, X \mathbf{X} X is a solution to Y = X A \mathbf{Y}=\mathbf{X}\mathbf{A} Y = XA .
Lemma 15. Suppose that we partially observe N N N independent trajectories of the linear dynamical system given in (1) up to the time horizon T T T . Recall the zero-padded history matrix Z \mathbf{Z} Z , defined in Lemma 1 and formed from the N N N independent trajectories { ( y 0 ( i ) , y 1 ( i ) , … , y T ( i ) ) } i = 1 N \{(\mathbf{y}^{(i)}_0,\mathbf{y}^{(i)}_1,\ldots,\mathbf{y}^{(i)}_T)\}_{i=1}^N {( y 0 ( i ) , y 1 ( i ) , … , y T ( i ) ) } i = 1 N . If N ≥ m N\ge m N ≥ m , then Z Z ⊤ \mathbf{Z}\mathbf{Z}^{\top} Z Z ⊤ is nonsingular almost surely.
Proof. Note that Z ∈ R m T × N T \mathbf{Z}\in\mathbb{R}^{mT\times NT} Z ∈ R m T × N T ; therefore, Z Z ⊤ ∈ R m T × m T \mathbf{Z}\mathbf{Z}^{\top}\in\mathbb{R}^{mT\times mT} Z Z ⊤ ∈ R m T × m T . By using the identity rank ( A B ) ≤ min { rank ( A ) , rank ( B ) } \operatorname{rank}(\mathbf{A}\mathbf{B})\le\min\{\operatorname{rank}(\mathbf{A}),\operatorname{rank}(\mathbf{B})\} rank ( AB ) ≤ min { rank ( A ) , rank ( B )} ,
rank ( Z Z ⊤ ) ≤ rank ( Z ) ≤ min { m T , N T } . (31) \operatorname{rank}(\mathbf{Z}\mathbf{Z}^{\top})\le\operatorname{rank}(\mathbf{Z})\le\min\{mT,NT\}. \tag*{(31)} rank ( Z Z ⊤ ) ≤ rank ( Z ) ≤ min { m T , N T } . (31)
If N < m N<m N < m , then rank ( Z Z ⊤ ) < m T \operatorname{rank}(\mathbf{Z}\mathbf{Z}^{\top})<mT rank ( Z Z ⊤ ) < m T . Therefore, we need N ≥ m N\ge m N ≥ m for the nonsingularity of Z Z ⊤ \mathbf{Z}\mathbf{Z}^{\top} Z Z ⊤ with
rank ( Z Z ⊤ ) = rank ( Z ) = m T . (32) \operatorname{rank}(\mathbf{Z}\mathbf{Z}^{\top})=\operatorname{rank}(\mathbf{Z})=mT. \tag*{(32)} rank ( Z Z ⊤ ) = rank ( Z ) = m T . (32)
This implies that Z \mathbf{Z} Z must have full rank, in particular full row rank.
Recall that Z \mathbf{Z} Z is a block upper-triangular matrix such that
Z : = [ Y 0 Y 1 ⋯ Y T − 1 0 Y 0 ⋯ Y T − 2 ⋮ ⋱ ⋱ ⋮ 0 ⋯ 0 Y 0 ] ∈ R m T × N T , (33) \mathbf{Z}:=
\begin{bmatrix}
\mathbf{Y}_0 & \mathbf{Y}_1 & \cdots& \mathbf{Y}_{T-1}\\
\mathbf{0} & \mathbf{Y}_0 & \cdots& \mathbf{Y}_{T-2}\\
\vdots& \ddots& \ddots& \vdots\\
\mathbf{0} & \cdots& \mathbf{0} & \mathbf{Y}_0
\end{bmatrix}\in\mathbb{R}^{mT\times NT}, \tag*{(33)} Z := Y 0 0 ⋮ 0 Y 1 Y 0 ⋱ ⋯ ⋯ ⋯ ⋱ 0 Y T − 1 Y T − 2 ⋮ Y 0 ∈ R m T × N T , (33)
where Y k : = [ y k ( 1 ) ⋯ y k ( N ) ] ∈ R m × N \mathbf{Y}_k:=[\mathbf{y}^{(1)}_k\ \cdots\ \mathbf{y}^{(N)}_k]\in\mathbb{R}^{m\times N} Y k := [ y k ( 1 ) ⋯ y k ( N ) ] ∈ R m × N . Suppose that Y 0 \mathbf{Y}_0 Y 0 has full rank, i.e., rank ( Y 0 ) = m \operatorname{rank}(\mathbf{Y}_0)=m rank ( Y 0 ) = m . Define u : = [ u 0 ⊤ ⋯ u T − 1 ⊤ ] ⊤ ∈ R m T \mathbf{u}:=[\mathbf{u}_0^{\top}\ \cdots\ \mathbf{u}_{T-1}^{\top}]^{\top}\in\mathbb{R}^{mT} u := [ u 0 ⊤ ⋯ u T − 1 ⊤ ] ⊤ ∈ R m T such that u ⊤ Z = 0 \mathbf{u}^{\top}\mathbf{Z}=0 u ⊤ Z = 0 , where u j ∈ R m \mathbf{u}_j\in\mathbb{R}^m u j ∈ R m for all j ∈ [ T − 1 ] 0 j\in[T-1]_0 j ∈ [ T − 1 ] 0 . By the block structure of Z \mathbf{Z} Z , its ( k + 1 ) (k+1) ( k + 1 ) st block column gives
∑ j = 0 k u j ⊤ Y k − j = 0 , (34) \sum_{j=0}^{k}\mathbf{u}_j^{\top}\mathbf{Y}_{k-j}=0, \tag*{(34)} j = 0 ∑ k u j ⊤ Y k − j = 0 , (34)
for all k ∈ [ T − 1 ] 0 k\in[T-1]_0 k ∈ [ T − 1 ] 0 . For k = 0 k=0 k = 0 , since Y 0 \mathbf{Y}_0 Y 0 is full rank and N ≥ m N\ge m N ≥ m , ker ( Y 0 ⊤ ) = { 0 } \operatorname{ker}(\mathbf{Y}_0^{\top})=\{0\} ker ( Y 0 ⊤ ) = { 0 } . This implies that u 0 = 0 \mathbf{u}_0=0 u 0 = 0 . For k = 1 k=1 k = 1 ,
u 0 ⊤ Y 1 + u 1 ⊤ Y 0 = u 1 ⊤ Y 0 = 0 , (35) \mathbf{u}_0^{\top}\mathbf{Y}_1+\mathbf{u}_1^{\top}\mathbf{Y}_0=\mathbf{u}_1^{\top}\mathbf{Y}_0=0, \tag*{(35)} u 0 ⊤ Y 1 + u 1 ⊤ Y 0 = u 1 ⊤ Y 0 = 0 , (35)
which implies that u 1 = 0 \mathbf{u}_1=0 u 1 = 0 . By induction, u = 0 \mathbf{u}=0 u = 0 . Therefore, ker ( Z ⊤ ) = { 0 } \operatorname{ker}(\mathbf{Z}^{\top})=\{0\} ker ( Z ⊤ ) = { 0 } , and Z \mathbf{Z} Z has full rank.
Conversely, if Y 0 \mathbf{Y}_0 Y 0 does not have full row rank, choose a nonzero vector a ∈ R m \mathbf{a}\in\mathbb{R}^m a ∈ R m such that a ⊤ Y 0 = 0 \mathbf{a}^{\top}\mathbf{Y}_0=0 a ⊤ Y 0 = 0 . Since the last block row of Z \mathbf{Z} Z is [ 0 ⋯ 0 Y 0 ] [\mathbf{0}\ \cdots\ \mathbf{0}\ \mathbf{Y}_0] [ 0 ⋯ 0 Y 0 ] , the vector u = [ 0 ⊤ ⋯ 0 ⊤ a ⊤ ] ⊤ \mathbf{u}=[\mathbf{0}^{\top}\ \cdots\ \mathbf{0}^{\top}\ \mathbf{a}^{\top}]^{\top} u = [ 0 ⊤ ⋯ 0 ⊤ a ⊤ ] ⊤ is a nonzero left-null vector of Z \mathbf{Z} Z . Therefore, Z \mathbf{Z} Z is rank-deficient. By contraposition, this proves that Z \mathbf{Z} Z has full rank if and only if rank ( Y 0 ) = m \operatorname{rank}(\mathbf{Y}_0)=m rank ( Y 0 ) = m .
Under the assumptions in § 2.1 ,
y 0 ∼ N ( C x ˉ 0 , C P 0 C ⊤ + R ) and C P 0 C ⊤ + R ≻ 0. (36) \mathbf{y}_0\sim\mathcal{N}\left(\mathbf{C}\bar{\mathbf{x}}_0,\mathbf{C}\mathbf{P}_0\mathbf{C}^{\top}+\mathbf{R}\right)\quad\text{and}\quad\mathbf{C}\mathbf{P}_0\mathbf{C}^{\top}+\mathbf{R}\succ0. \tag*{(36)} y 0 ∼ N ( C x ˉ 0 , C P 0 C ⊤ + R ) and C P 0 C ⊤ + R ≻ 0. (36)
The columns of Y 0 \mathbf{Y}_0 Y 0 are independent samples from a nondegenerate multivariate Gaussian distribution. If N ≥ m N\ge m N ≥ m , the first m m m columns therefore have a joint density on R m × m \mathbb{R}^{m\times m} R m × m . The set of singular m × m m\times m m × m matrices has Lebesgue measure zero. Hence, these columns form a nonsingular matrix almost surely, and rank ( Y 0 ) = m \operatorname{rank}(\mathbf{Y}_0)=m rank ( Y 0 ) = m almost surely. Therefore, Z \mathbf{Z} Z has full row rank almost surely, and thus Z Z ⊤ \mathbf{Z}\mathbf{Z}^{\top} Z Z ⊤ is nonsingular almost surely.
Proof of prop:similarity
Proof. For every i ≥ 0 i \ge0 i ≥ 0 , we have
M i ( θ S ) = ( W 3 S − 1 ) ( S W 1 S − 1 ) i ( S W 2 ) (37) \mathbf{M}_i(\theta_{\mathbf{S}}) = \left(\mathbf{W}_3\mathbf{S}^{-1}\right)\left(\mathbf{S}\mathbf{W}_1\mathbf{S}^{-1}\right)^i\left(\mathbf{S}\mathbf{W}_2\right) \tag*{(37)} M i ( θ S ) = ( W 3 S − 1 ) ( S W 1 S − 1 ) i ( S W 2 ) (37)
= W 3 S − 1 S W 1 i S − 1 S W 2 (38) = \mathbf{W}_3\mathbf{S}^{-1}\mathbf{S}\mathbf{W}_1^i\mathbf{S}^{-1}\mathbf{S}\mathbf{W}_2 \tag*{(38)} = W 3 S − 1 S W 1 i S − 1 S W 2 (38)
= W 3 W 1 i W 2 (39) = \mathbf{W}_3\mathbf{W}_1^i\mathbf{W}_2 \tag*{(39)} = W 3 W 1 i W 2 (39)
= M i ( θ ) . (40) = \mathbf{M}_i(\theta). \tag*{(40)} = M i ( θ ) . (40)
Since L ^ \hat{\mathcal{L}} L ^ depends on the parameters only through the Markov parameters { M i } i = 0 T − 1 \{\mathbf{M}_i\}_{i=0}^{T-1} { M i } i = 0 T − 1 , L ^ ( θ S ) = L ^ ( θ ) \hat{\mathcal{L}}(\theta_{\mathbf{S}})=\hat{\mathcal{L}}(\theta) L ^ ( θ S ) = L ^ ( θ ) . Consequently, if θ ∈ Ω \theta\in\Omega θ ∈ Ω , then θ S ∈ Ω \theta_{\mathbf{S}} \in\Omega θ S ∈ Ω for every S ∈ G L d ( R ) \mathbf{S} \in\mathrm{GL}_d(\mathbb{R}) S ∈ GL d ( R ) .
We now characterize when the orbit { θ S : S ∈ G L d ( R ) } \{\theta_{\mathbf{S}}:\mathbf{S} \in\mathrm{GL}_d(\mathbb{R})\} { θ S : S ∈ GL d ( R )} is a singleton. Fix a parameterization θ ∈ Θ \theta\in\Theta θ ∈ Θ and suppose that θ S = θ \theta_{\mathbf{S}}=\theta θ S = θ for every S ∈ G L d ( R ) \mathbf{S} \in\mathrm{GL}_d(\mathbb{R}) S ∈ GL d ( R ) . Then
S W 1 S − 1 = W 1 , S W 2 = W 2 , W 3 S − 1 = W 3 . (41) \mathbf{S}\mathbf{W}_1\mathbf{S}^{-1}=\mathbf{W}_1,\quad\mathbf{S}\mathbf{W}_2=\mathbf{W}_2,\quad\mathbf{W}_3\mathbf{S}^{-1}=\mathbf{W}_3. \tag*{(41)} S W 1 S − 1 = W 1 , S W 2 = W 2 , W 3 S − 1 = W 3 . (41)
Taking S = 2 I d \mathbf{S}=2\mathbf{I}_d S = 2 I d in the last two identities yields W 2 = 0 \mathbf{W}_2=0 W 2 = 0 and W 3 = 0 \mathbf{W}_3=0 W 3 = 0 . Moreover, the first identity implies that W 1 \mathbf{W}_1 W 1 commutes with every invertible matrix. Let S 1 = diag ( γ 1 , γ 2 , ⋯ , γ d ) ∈ G L d ( R ) \mathbf{S}_1=\operatorname{diag}(\gamma_1,\gamma_2,\cdots,\gamma_d) \in\mathrm{GL}_d(\mathbb{R}) S 1 = diag ( γ 1 , γ 2 , ⋯ , γ d ) ∈ GL d ( R ) be an invertible diagonal matrix with distinct diagonal entries, i.e., γ i ≠ γ j \gamma_i \ne\gamma_j γ i = γ j for i ≠ j i \ne j i = j . Since W 1 S 1 = S 1 W 1 \mathbf{W}_1\mathbf{S}_1=\mathbf{S}_1\mathbf{W}_1 W 1 S 1 = S 1 W 1 ,
( W 1 S 1 ) i j = w i j γ j = ( S 1 W 1 ) i j = γ i w i j , (42) (\mathbf{W}_1\mathbf{S}_1)_{ij}=w_{ij}\gamma_j=(\mathbf{S}_1\mathbf{W}_1)_{ij}=\gamma_iw_{ij}, \tag*{(42)} ( W 1 S 1 ) ij = w ij γ j = ( S 1 W 1 ) ij = γ i w ij , (42)
for every ( i , j ) ∈ [ d ] × [ d ] (i,j) \in[d]\times[d] ( i , j ) ∈ [ d ] × [ d ] , where the ( i , j ) (i,j) ( i , j ) th entry of W 1 \mathbf{W}_1 W 1 is denoted by w i j w_{ij} w ij . Consequently, for every ( i , j ) ∈ [ d ] × [ d ] (i,j) \in[d]\times[d] ( i , j ) ∈ [ d ] × [ d ] ,
( γ i − γ j ) w i j = 0. (43) (\gamma_i-\gamma_j)w_{ij}=0. \tag*{(43)} ( γ i − γ j ) w ij = 0. (43)
Note that γ i ≠ γ j \gamma_i \ne\gamma_j γ i = γ j for i ≠ j i \ne j i = j . Therefore,
w i j = 0 (44) w_{ij}=0 \tag*{(44)} w ij = 0 (44)
for all off-diagonal entries. This implies that W 1 \mathbf{W}_1 W 1 must be a diagonal matrix. Furthermore, let S 2 ∈ G L d ( R ) \mathbf{S}_2 \in\mathrm{GL}_d(\mathbb{R}) S 2 ∈ GL d ( R ) be a permutation matrix that swaps i i i th and j j j th coordinates. By definition, S 2 − 1 = S 2 \mathbf{S}_2^{-1}=\mathbf{S}_2 S 2 − 1 = S 2 . Therefore, the fact that W 1 \mathbf{W}_1 W 1 commutes with every permutation matrix implies that
S 2 W 1 S 2 − 1 = S 2 W 1 S 2 = W 1 . (45) \mathbf{S}_2\mathbf{W}_1\mathbf{S}_2^{-1}=\mathbf{S}_2\mathbf{W}_1\mathbf{S}_2=\mathbf{W}_1. \tag*{(45)} S 2 W 1 S 2 − 1 = S 2 W 1 S 2 = W 1 . (45)
This holds if and only if w i i = w j j w_{ii}=w_{jj} w ii = w j j . Hence, W 1 = λ I d \mathbf{W}_1=\lambda\mathbf{I}_d W 1 = λ I d for some λ ∈ R \lambda\in\mathbb{R} λ ∈ R .
Conversely, suppose that W 1 = λ I d \mathbf{W}_1=\lambda\mathbf{I}_d W 1 = λ I d , W 2 = 0 \mathbf{W}_2=0 W 2 = 0 , and W 3 = 0 \mathbf{W}_3=0 W 3 = 0 . Then, for every S ∈ G L d ( R ) \mathbf{S} \in\mathrm{GL}_d(\mathbb{R}) S ∈ GL d ( R ) ,
θ S = ( λ I d , 0 , 0 ) = θ . (46) \theta_{\mathbf{S}}=(\lambda\mathbf{I}_d,0,0)=\theta. \tag*{(46)} θ S = ( λ I d , 0 , 0 ) = θ . (46)
Matrix Calculus
Let L : R K × L → R \mathcal{L}:\mathbb{R}^{K\times L}\to\mathbb{R} L : R K × L → R be a differentiable function with continuous first and second order derivatives on R K × L \mathbb{R}^{K\times L} R K × L . Our objective is to derive closed-form expressions for the first and second order directional derivatives of L \mathcal{L} L in the direction of U ∈ R K × L \mathbf{U}\in\mathbb{R}^{K\times L} U ∈ R K × L , where ∥ U ∥ F < ∞ \|\mathbf{U}\|_F<\infty ∥ U ∥ F < ∞ , denoted by D U L ( X ) D_{\mathbf{U}}\mathcal{L}(\mathbf{X}) D U L ( X ) and D U 2 L ( X ) D_{\mathbf{U}}^2\mathcal{L}(\mathbf{X}) D U 2 L ( X ) , respectively. By the limit definition of the derivative, the first derivative of L ( X ) \mathcal{L}(\mathbf{X}) L ( X ) with respect to each entry of X \mathbf{X} X can be expressed as follows:
∂ L ( X ) ∂ X i j = lim Δ t → 0 L ( X + Δ t e i e j T ) − L ( X ) Δ t . (47) \frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{ij}}=\lim_{\Delta t\to0}\frac{\mathcal{L}\left(\mathbf{X}+\Delta t e_i e_j^\mathsf{T}\right)-\mathcal{L}(\mathbf{X})}{\Delta t}. \tag*{(47)} ∂ X ij ∂ L ( X ) = Δ t → 0 lim Δ t L ( X + Δ t e i e j T ) − L ( X ) . (47)
where e i \mathbf{e}_i e i is the i i i th standard basis vector of R K \mathbb{R}^K R K and e j \mathbf{e}_j e j is the j j j th standard basis vector of R L \mathbb{R}^L R L . If the limit in (47) exists, then by substitution of variables
∂ L ( X ) ∂ X i j U i j = lim Δ t → 0 L ( X + Δ t U i j e i e j T ) − L ( X ) Δ t . (48) \frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{ij}}U_{ij}=\lim_{\Delta t\to0}\frac{\mathcal{L}\left(\mathbf{X}+\Delta tU_{ij}\mathbf{e}_i\mathbf{e}_j^{\mathsf{T}}\right)-\mathcal{L}(\mathbf{X})}{\Delta t}. \tag*{(48)} ∂ X ij ∂ L ( X ) U ij = Δ t → 0 lim Δ t L ( X + Δ t U ij e i e j T ) − L ( X ) . (48)
By definition, the total change in L ( X ) \mathcal{L}(\mathbf{X}) L ( X ) in the direction of U \mathbf{U} U is the sum of changes due to each entry of X \mathbf{X} X . Then
D U L ( X ) = ∑ i , j ∈ [ K ] × [ L ] ∂ L ( X ) ∂ X i j U i j (49) D_{\mathbf{U}}\mathcal{L}(\mathbf{X})=\sum_{i,j\in[K]\times[L]}\frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{ij}}U_{ij} \tag*{(49)} D U L ( X ) = i , j ∈ [ K ] × [ L ] ∑ ∂ X ij ∂ L ( X ) U ij (49)
= ∑ i , j ∈ [ K ] × [ L ] lim Δ t → 0 L ( X + Δ t U i j e i e j T ) − L ( X ) Δ t (50) =\sum_{i,j\in[K]\times[L]}\lim_{\Delta t\to0}\frac{\mathcal{L}\left(\mathbf{X}+\Delta tU_{ij}\mathbf{e}_i\mathbf{e}_j^{\mathsf{T}}\right)-\mathcal{L}(\mathbf{X})}{\Delta t} \tag*{(50)} = i , j ∈ [ K ] × [ L ] ∑ Δ t → 0 lim Δ t L ( X + Δ t U ij e i e j T ) − L ( X ) (50)
= lim Δ t → 0 L ( X + Δ t U ) − L ( X ) Δ t (51) =\lim_{\Delta t\to0}\frac{\mathcal{L}(\mathbf{X}+\Delta t\mathbf{U})-\mathcal{L}(\mathbf{X})}{\Delta t} \tag*{(51)} = Δ t → 0 lim Δ t L ( X + Δ t U ) − L ( X ) (51)
= lim Δ t → 0 L ( X + ( Δ t + t ) U ) − L ( X + t U ) Δ t ∣ t = 0 (52) =\left.\lim_{\Delta t\to0}\frac{\mathcal{L}\left(\mathbf{X}+(\Delta t+t)\mathbf{U}\right)-\mathcal{L}(\mathbf{X}+t\mathbf{U})}{\Delta t}\right|_{t=0} \tag*{(52)} = Δ t → 0 lim Δ t L ( X + ( Δ t + t ) U ) − L ( X + t U ) t = 0 (52)
= ∂ L ( X + t U ) ∂ t ∣ t = 0 . (53) =\left.\frac{\partial\mathcal{L}(\mathbf{X}+t\mathbf{U})}{\partial t}\right|_{t=0}. \tag*{(53)} = ∂ t ∂ L ( X + t U ) t = 0 . (53)
This is known as the Gâteaux derivative , which represents the change in L ( X ) \mathcal{L}(\mathbf{X}) L ( X ) under a perturbation in the direction of U \mathbf{U} U [15 ] . By the same reasoning, we obtain the following result.
Lemma 16 [15 ] . The second directional derivative of L \mathcal{L} L at X \mathbf{X} X in the direction U ∈ R K × L \mathbf{U}\in\mathbb{R}^{K\times L} U ∈ R K × L is given by
D U 2 L ( X ) = ∂ 2 ∂ t 2 L ( X + t U ) ∣ t = 0 . (54) D_{\mathbf{U}}^2\mathcal{L}(\mathbf{X})=\left.\frac{\partial^2}{\partial t^2}\mathcal{L}(\mathbf{X}+t\mathbf{U})\right|_{t=0}. \tag*{(54)} D U 2 L ( X ) = ∂ t 2 ∂ 2 L ( X + t U ) t = 0 . (54)
Proof. We can express the derivative of ∂ L ( X ) ∂ X i j \frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{ij}} ∂ X ij ∂ L ( X ) with respect to each entry of X \mathbf{X} X using the limit definition of the derivative as follows:
∂ 2 L ( X ) ∂ X k l ∂ X i j = ∂ ∂ X k l ( ∂ L ( X ) ∂ X i j ) = lim Δ t → 0 ∂ L ( X + Δ t e i e j T ) ∂ X i j − ∂ L ( X ) ∂ X i j Δ t (55) \frac{\partial^2\mathcal{L}(\mathbf{X})}{\partial X_{kl}\partial X_{ij}}=\frac{\partial}{\partial X_{kl}}\left(\frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{ij}}\right)=\lim_{\Delta t\to0}\frac{\frac{\partial\mathcal{L}\left(\mathbf{X}+\Delta t\mathbf{e}_i\mathbf{e}_j^{\mathsf{T}}\right)}{\partial X_{ij}}-\frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{ij}}}{\Delta t} \tag*{(55)} ∂ X k l ∂ X ij ∂ 2 L ( X ) = ∂ X k l ∂ ( ∂ X ij ∂ L ( X ) ) = Δ t → 0 lim Δ t ∂ X ij ∂ L ( X + Δ t e i e j T ) − ∂ X ij ∂ L ( X ) (55)
for all ( k , l ) ∈ [ K ] × [ L ] (k,l)\in[K]\times[L] ( k , l ) ∈ [ K ] × [ L ] . Then, we can rewrite it as
lim Δ h , Δ t → 0 L ( X + Δ t e i e j T + Δ h e k e l T ) − L ( X + Δ t e i e j T ) − L ( X + Δ h e k e l T ) + L ( X ) Δ h Δ t . (56) \lim_{\Delta h,\Delta t\to0}\frac{\mathcal{L}\left(\mathbf{X}+\Delta t\mathbf{e}_i\mathbf{e}_j^{\mathsf{T}}+\Delta h\mathbf{e}_k\mathbf{e}_l^{\mathsf{T}}\right)-\mathcal{L}\left(\mathbf{X}+\Delta t\mathbf{e}_i\mathbf{e}_j^{\mathsf{T}}\right)-\mathcal{L}\left(\mathbf{X}+\Delta h\mathbf{e}_k\mathbf{e}_l^{\mathsf{T}}\right)+\mathcal{L}(\mathbf{X})}{\Delta h\Delta t}. \tag*{(56)} Δ h , Δ t → 0 lim Δ h Δ t L ( X + Δ t e i e j T + Δ h e k e l T ) − L ( X + Δ t e i e j T ) − L ( X + Δ h e k e l T ) + L ( X ) . (56)
By using the substitution of variables as in (48) ,
∂ 2 L ( X ) ∂ X k l ∂ X i j U i j U k l = ∂ ∂ X k l ( ∂ L ( X ) ∂ X i j U i j ) U k l = lim Δ t → 0 ∂ L ( X + Δ t U i j e i e j T ) ∂ X k l − ∂ L ( X ) ∂ X k l Δ t U k l . (57) \frac{\partial^2\mathcal{L}(\mathbf{X})}{\partial X_{kl}\partial X_{ij}}U_{ij}U_{kl}=\frac{\partial}{\partial X_{kl}}\left(\frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{ij}}U_{ij}\right)U_{kl}=\lim_{\Delta t\to0}\frac{\frac{\partial\mathcal{L}\left(\mathbf{X}+\Delta tU_{ij}\mathbf{e}_i\mathbf{e}_j^{\mathsf{T}}\right)}{\partial X_{kl}}-\frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{kl}}}{\Delta t}U_{kl}. \tag*{(57)} ∂ X k l ∂ X ij ∂ 2 L ( X ) U ij U k l = ∂ X k l ∂ ( ∂ X ij ∂ L ( X ) U ij ) U k l = Δ t → 0 lim Δ t ∂ X k l ∂ L ( X + Δ t U ij e i e j T ) − ∂ X k l ∂ L ( X ) U k l . (57)
Equivalently,
lim Δ h , Δ t → 0 1 Δ h Δ t [ L ( X + Δ t U i j e i e j T + Δ h U k l e k e l T ) − L ( X + Δ t U i j e i e j T ) − L ( X + Δ h U k l e k e l T ) + L ( X ) ] , (58) \lim_{\Delta h,\Delta t\to0}\frac{1}{\Delta h\Delta t}\left[\mathcal{L}\left(\mathbf{X}+\Delta tU_{ij}\mathbf{e}_i\mathbf{e}_j^{\mathsf{T}}+\Delta hU_{kl}\mathbf{e}_k\mathbf{e}_l^{\mathsf{T}}\right)-\mathcal{L}\left(\mathbf{X}+\Delta tU_{ij}\mathbf{e}_i\mathbf{e}_j^{\mathsf{T}}\right)-\mathcal{L}\left(\mathbf{X}+\Delta hU_{kl}\mathbf{e}_k\mathbf{e}_l^{\mathsf{T}}\right)+\mathcal{L}(\mathbf{X})\right], \tag*{(58)} Δ h , Δ t → 0 lim Δ h Δ t 1 [ L ( X + Δ t U ij e i e j T + Δ h U k l e k e l T ) − L ( X + Δ t U ij e i e j T ) − L ( X + Δ h U k l e k e l T ) + L ( X ) ] , (58)
which can be proved by substitution of variables in (57) . In turn, the second-order differential along any U ∈ R K × L \mathbf{U} \in\mathbb{R}^{K \times L} U ∈ R K × L is
D U 2 L ( X ) = ∑ i , j ∑ k , l ∂ 2 L ( X ) ∂ X k l ∂ X i j U i j U k l = ⟨ ∇ ⟨ ∇ L ( X ) , U ⟩ , U ⟩ (59) D_{\mathbf{U}}^2\mathcal{L}(\mathbf{X}) = \sum_{i,j}\sum_{k,l} \frac{\partial^2\mathcal{L}(\mathbf{X})}{\partial X_{kl}\partial X_{ij}}U_{ij}U_{kl} = \langle\nabla\langle\nabla\mathcal{L}(\mathbf{X}),\mathbf{U}\rangle,\mathbf{U}\rangle \tag*{(59)} D U 2 L ( X ) = i , j ∑ k , l ∑ ∂ X k l ∂ X ij ∂ 2 L ( X ) U ij U k l = ⟨ ∇ ⟨ ∇ L ( X ) , U ⟩ , U ⟩ (59)
where
∇ L ( X ) = [ ∂ L ( X ) ∂ X 11 ∂ L ( X ) ∂ X 12 ⋯ ∂ L ( X ) ∂ X 1 L ∂ L ( X ) ∂ X 21 ∂ L ( X ) ∂ X 22 ⋯ ∂ L ( X ) ∂ X 2 L ⋮ ⋱ ⋯ ⋮ ∂ L ( X ) ∂ X K 1 ∂ L ( X ) ∂ X K 2 ⋯ ∂ L ( X ) ∂ X K L ] ∈ R K × L . (60) \nabla\mathcal{L}(\mathbf{X}) =
\begin{bmatrix}
\frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{11}} & \frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{12}} & \cdots& \frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{1L}} \\
\frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{21}} & \frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{22}} & \cdots& \frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{2L}} \\
\vdots& \ddots& \cdots& \vdots\\
\frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{K1}} & \frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{K2}} & \cdots& \frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{KL}}
\end{bmatrix} \in\mathbb{R}^{K \times L}. \tag*{(60)} ∇ L ( X ) = ∂ X 11 ∂ L ( X ) ∂ X 21 ∂ L ( X ) ⋮ ∂ X K 1 ∂ L ( X ) ∂ X 12 ∂ L ( X ) ∂ X 22 ∂ L ( X ) ⋱ ∂ X K 2 ∂ L ( X ) ⋯ ⋯ ⋯ ⋯ ∂ X 1 L ∂ L ( X ) ∂ X 2 L ∂ L ( X ) ⋮ ∂ X K L ∂ L ( X ) ∈ R K × L . (60)
Equivalently,
D U 2 L ( X ) = ∑ k , l lim Δ t → 0 ∂ L ( X + Δ t U ) − ∂ L ( X ) ∂ X k l Δ t U k l (61) D_{\mathbf{U}}^2\mathcal{L}(\mathbf{X}) = \sum_{k,l}\lim_{\Delta t\to0}\frac{\partial\mathcal{L}(\mathbf{X}+\Delta t\mathbf{U})-\partial\mathcal{L}(\mathbf{X})}{\partial X_{kl}\Delta t}U_{kl} \tag*{(61)} D U 2 L ( X ) = k , l ∑ Δ t → 0 lim ∂ X k l Δ t ∂ L ( X + Δ t U ) − ∂ L ( X ) U k l (61)
= lim Δ t → 0 L ( X + 2 Δ t U ) − 2 L ( X + Δ t U ) + L ( X ) Δ t 2 (62) = \lim_{\Delta t\to0}\frac{\mathcal{L}(\mathbf{X}+2\Delta t\mathbf{U})-2\mathcal{L}(\mathbf{X}+\Delta t\mathbf{U})+\mathcal{L}(\mathbf{X})}{\Delta t^2} \tag*{(62)} = Δ t → 0 lim Δ t 2 L ( X + 2Δ t U ) − 2 L ( X + Δ t U ) + L ( X ) (62)
= ∂ 2 ∂ t 2 L ( X + t U ) ∣ t = 0 . (63) = \left.\frac{\partial^2}{\partial t^2}\mathcal{L}(\mathbf{X}+t\mathbf{U})\right|_{t=0}. \tag*{(63)} = ∂ t 2 ∂ 2 L ( X + t U ) t = 0 . (63)
Remark 17. As we showed in (49) and (59) ,
D U L ( X ) = ∑ i , j ∈ [ K ] × [ L ] ∂ L ( X ) ∂ X i j U i j = ⟨ ∇ L ( X ) , U ⟩ F , (64) D_{\mathbf{U}}\mathcal{L}(\mathbf{X}) = \sum_{i,j\in[K]\times[L]}\frac{\partial\mathcal{L}(\mathbf{X})}{\partial X_{ij}}U_{ij} = \langle\nabla\mathcal{L}(\mathbf{X}),\mathbf{U}\rangle_{\mathrm{F}}, \tag*{(64)} D U L ( X ) = i , j ∈ [ K ] × [ L ] ∑ ∂ X ij ∂ L ( X ) U ij = ⟨ ∇ L ( X ) , U ⟩ F , (64)
D U 2 L ( X ) = ⟨ ∇ ⟨ ∇ L ( X ) , U ⟩ , U ⟩ = vec ( U ) T ∇ vec ( X ) 2 L ( X ) vec ( U ) , (65) D_{\mathbf{U}}^2\mathcal{L}(\mathbf{X}) = \langle\nabla\langle\nabla\mathcal{L}(\mathbf{X}),\mathbf{U}\rangle,\mathbf{U}\rangle= \operatorname{vec}(\mathbf{U})^{\mathsf{T}}\nabla^2_{\operatorname{vec}(\mathbf{X})}\mathcal{L}(\mathbf{X})\operatorname{vec}(\mathbf{U}), \tag*{(65)} D U 2 L ( X ) = ⟨ ∇ ⟨ ∇ L ( X ) , U ⟩ , U ⟩ = vec ( U ) T ∇ vec ( X ) 2 L ( X ) vec ( U ) , (65)
respectively. Consequently, by the definition of the Rayleigh quotient5 , the maximum eigenvalue of the Hessian can be obtained as follows:
λ max ( ∇ 2 L ( X ) ) = max ∥ U ∥ F = 1 D U 2 L ( X ) . (66) \lambda_{\max}\left(\nabla^2\mathcal{L}(\mathbf{X})\right) = \max_{\lVert\mathbf{U}\rVert_{\mathrm{F}}=1}D_{\mathbf{U}}^2\mathcal{L}(\mathbf{X}). \tag*{(66)} λ m a x ( ∇ 2 L ( X ) ) = ∥ U ∥ F = 1 max D U 2 L ( X ) . (66)
Remark 18. Let F : R K × L ⟶ R M × N \mathbf{F}:\mathbb{R}^{K\times L}\longrightarrow\mathbb{R}^{M\times N} F : R K × L ⟶ R M × N be a twice continuously differentiable matrix-valued function of a matrix variable. Unlike the scalar-valued case, the first derivative of F \mathbf{F} F at X \mathbf{X} X is a linear map D F ( X ) : R K × L ⟶ R M × N D\mathbf{F}(\mathbf{X}):\mathbb{R}^{K\times L}\longrightarrow\mathbb{R}^{M\times N} D F ( X ) : R K × L ⟶ R M × N , whereas the second derivative is a symmetric bilinear map D 2 F ( X ) : R K × L × R K × L ⟶ R M × N D^2\mathbf{F}(\mathbf{X}):\mathbb{R}^{K\times L}\times\mathbb{R}^{K\times L}\longrightarrow\mathbb{R}^{M\times N} D 2 F ( X ) : R K × L × R K × L ⟶ R M × N . Accordingly, for any perturbation Δ ∈ R K × L \Delta\in\mathbb{R}^{K\times L} Δ ∈ R K × L , the second-order Taylor expansion of F \mathbf{F} F around X \mathbf{X} X is
F ( X + Δ ) = F ( X ) + D F ( X ) [ Δ ] + 1 2 D 2 F ( X ) [ Δ , Δ ] + o ( ∥ Δ ∥ F 2 ) . (67) \mathbf{F}(\mathbf{X}+\Delta)=\mathbf{F}(\mathbf{X})+D\mathbf{F}(\mathbf{X})[\Delta]+\frac{1}{2}D^2\mathbf{F}(\mathbf{X})[\Delta,\Delta]+o\left(\lVert\Delta\rVert_{\mathrm{F}}^2\right). \tag*{(67)} F ( X + Δ ) = F ( X ) + D F ( X ) [ Δ ] + 2 1 D 2 F ( X ) [ Δ , Δ ] + o ( ∥ Δ ∥ F 2 ) . (67)
For a fixed perturbation direction U ∈ R K × L \mathbf{U}\in\mathbb{R}^{K\times L} U ∈ R K × L , our derivations for first and second directional derivatives in (53) and (54) generalize to a matrix-valued function F \mathbf{F} F as follows:
D U F ( X ) : = ∂ ∂ t F ( X + t U ) ∣ t = 0 = [ ∂ F 11 ( X + t U ) ∂ t ∣ t = 0 ∂ F 12 ( X + t U ) ∂ t ∣ t = 0 ⋯ ∂ F 1 N ( X + t U ) ∂ t ∣ t = 0 ∂ F 21 ( X + t U ) ∂ t ∣ t = 0 ∂ F 22 ( X + t U ) ∂ t ∣ t = 0 ⋯ ∂ F 2 N ( X + t U ) ∂ t ∣ t = 0 ⋮ ⋮ ⋱ ⋮ ∂ F M 1 ( X + t U ) ∂ t ∣ t = 0 ∂ F M 2 ( X + t U ) ∂ t ∣ t = 0 ⋯ ∂ F M N ( X + t U ) ∂ t ∣ t = 0 ] . (68) \mathbf{D}_{\mathbf{U}}\mathbf{F}(\mathbf{X}) := \left.\frac{\partial}{\partial t}\mathbf{F}(\mathbf{X}+t\mathbf{U})\right|_{t=0} =
\begin{bmatrix}
\left.\frac{\partial F_{11}(\mathbf{X}+t\mathbf{U})}{\partial t}\right|_{t=0} & \left.\frac{\partial F_{12}(\mathbf{X}+t\mathbf{U})}{\partial t}\right|_{t=0} & \cdots& \left.\frac{\partial F_{1N}(\mathbf{X}+t\mathbf{U})}{\partial t}\right|_{t=0} \\
\left.\frac{\partial F_{21}(\mathbf{X}+t\mathbf{U})}{\partial t}\right|_{t=0} & \left.\frac{\partial F_{22}(\mathbf{X}+t\mathbf{U})}{\partial t}\right|_{t=0} & \cdots& \left.\frac{\partial F_{2N}(\mathbf{X}+t\mathbf{U})}{\partial t}\right|_{t=0} \\
\vdots& \vdots& \ddots& \vdots\\
\left.\frac{\partial F_{M1}(\mathbf{X}+t\mathbf{U})}{\partial t}\right|_{t=0} & \left.\frac{\partial F_{M2}(\mathbf{X}+t\mathbf{U})}{\partial t}\right|_{t=0} & \cdots& \left.\frac{\partial F_{MN}(\mathbf{X}+t\mathbf{U})}{\partial t}\right|_{t=0}
\end{bmatrix}. \tag*{(68)} D U F ( X ) := ∂ t ∂ F ( X + t U ) t = 0 = ∂ t ∂ F 11 ( X + t U ) t = 0 ∂ t ∂ F 21 ( X + t U ) t = 0 ⋮ ∂ t ∂ F M 1 ( X + t U ) t = 0 ∂ t ∂ F 12 ( X + t U ) t = 0 ∂ t ∂ F 22 ( X + t U ) t = 0 ⋮ ∂ t ∂ F M 2 ( X + t U ) t = 0 ⋯ ⋯ ⋱ ⋯ ∂ t ∂ F 1 N ( X + t U ) t = 0 ∂ t ∂ F 2 N ( X + t U ) t = 0 ⋮ ∂ t ∂ F M N ( X + t U ) t = 0 . (68)
D U 2 F ( X ) : = ∂ 2 ∂ t 2 F ( X + t U ) ∣ t = 0 = [ ∂ 2 F 11 ( X + t U ) ∂ t 2 ∣ t = 0 ∂ 2 F 12 ( X + t U ) ∂ t 2 ∣ t = 0 ⋯ ∂ 2 F 1 N ( X + t U ) ∂ t 2 ∣ t = 0 ∂ 2 F 21 ( X + t U ) ∂ t 2 ∣ t = 0 ∂ 2 F 22 ( X + t U ) ∂ t 2 ∣ t = 0 ⋯ ∂ 2 F 2 N ( X + t U ) ∂ t 2 ∣ t = 0 ⋮ ⋮ ⋱ ⋮ ∂ 2 F M 1 ( X + t U ) ∂ t 2 ∣ t = 0 ∂ 2 F M 2 ( X + t U ) ∂ t 2 ∣ t = 0 ⋯ ∂ 2 F M N ( X + t U ) ∂ t 2 ∣ t = 0 ] . (69) \mathbf{D}_{\mathbf{U}}^{2}\mathbf{F}(\mathbf{X}) := \left.\frac{\partial^{2}}{\partial t^{2}}\mathbf{F}(\mathbf{X}+t\mathbf{U})\right|_{t=0} =
\begin{bmatrix}
\left.\frac{\partial^{2} F_{11}(\mathbf{X}+t\mathbf{U})}{\partial t^{2}}\right|_{t=0} & \left.\frac{\partial^{2} F_{12}(\mathbf{X}+t\mathbf{U})}{\partial t^{2}}\right|_{t=0} & \cdots& \left.\frac{\partial^{2} F_{1N}(\mathbf{X}+t\mathbf{U})}{\partial t^{2}}\right|_{t=0} \\
\left.\frac{\partial^{2} F_{21}(\mathbf{X}+t\mathbf{U})}{\partial t^{2}}\right|_{t=0} & \left.\frac{\partial^{2} F_{22}(\mathbf{X}+t\mathbf{U})}{\partial t^{2}}\right|_{t=0} & \cdots& \left.\frac{\partial^{2} F_{2N}(\mathbf{X}+t\mathbf{U})}{\partial t^{2}}\right|_{t=0} \\
\vdots& \vdots& \ddots& \vdots\\
\left.\frac{\partial^{2} F_{M1}(\mathbf{X}+t\mathbf{U})}{\partial t^{2}}\right|_{t=0} & \left.\frac{\partial^{2} F_{M2}(\mathbf{X}+t\mathbf{U})}{\partial t^{2}}\right|_{t=0} & \cdots& \left.\frac{\partial^{2} F_{MN}(\mathbf{X}+t\mathbf{U})}{\partial t^{2}}\right|_{t=0}
\end{bmatrix}. \tag*{(69)} D U 2 F ( X ) := ∂ t 2 ∂ 2 F ( X + t U ) t = 0 = ∂ t 2 ∂ 2 F 11 ( X + t U ) t = 0 ∂ t 2 ∂ 2 F 21 ( X + t U ) t = 0 ⋮ ∂ t 2 ∂ 2 F M 1 ( X + t U ) t = 0 ∂ t 2 ∂ 2 F 12 ( X + t U ) t = 0 ∂ t 2 ∂ 2 F 22 ( X + t U ) t = 0 ⋮ ∂ t 2 ∂ 2 F M 2 ( X + t U ) t = 0 ⋯ ⋯ ⋱ ⋯ ∂ t 2 ∂ 2 F 1 N ( X + t U ) t = 0 ∂ t 2 ∂ 2 F 2 N ( X + t U ) t = 0 ⋮ ∂ t 2 ∂ 2 F M N ( X + t U ) t = 0 . (69)
Then, the second-order Taylor expansion of F \mathbf{F} F around X \mathbf{X} X along the line X + t U \mathbf{X}+t\mathbf{U} X + t U reduces to
F ( X + t U ) = F ( X ) + t D U F ( X ) + t 2 2 D U 2 F ( X ) + o ( t 2 ) . (70) \mathbf{F}(\mathbf{X}+t\mathbf{U})=\mathbf{F}(\mathbf{X})+t\mathbf{D}_{\mathbf{U}}\mathbf{F}(\mathbf{X})+\frac{t^{2}}{2}\mathbf{D}_{\mathbf{U}}^{2}\mathbf{F}(\mathbf{X})+o(t^{2}). \tag*{(70)} F ( X + t U ) = F ( X ) + t D U F ( X ) + 2 t 2 D U 2 F ( X ) + o ( t 2 ) . (70)
Equivalently, define f ( x ) : = vec ( F ( X ) ) ∈ R M N \mathbf{f}(\mathbf{x}):=\operatorname{vec}(\mathbf{F}(\mathbf{X}))\in\mathbb{R}^{MN} f ( x ) := vec ( F ( X )) ∈ R M N , x : = vec ( X ) ∈ R K L \mathbf{x}:=\operatorname{vec}(\mathbf{X})\in\mathbb{R}^{KL} x := vec ( X ) ∈ R K L , and h : = vec ( Δ ) ∈ R K L \mathbf{h}:=\operatorname{vec}(\mathbf{\Delta})\in\mathbb{R}^{KL} h := vec ( Δ ) ∈ R K L . Then, the vectorized second-order Taylor expansion is
f ( x + h ) = f ( x ) + J F ( X ) h + 1 2 [ h T ∇ 2 f 1 ( x ) h ⋮ h T ∇ 2 f M N ( x ) h ] + o ( ∥ h ∥ 2 2 ) , (71) \mathbf{f}(\mathbf{x}+\mathbf{h})=\mathbf{f}(\mathbf{x})+\mathbf{J}_{\mathbf{F}}(\mathbf{X})\mathbf{h}+\frac{1}{2}
\begin{bmatrix}
\mathbf{h}^{\mathsf{T}}\nabla^{2}f_{1}(\mathbf{x})\mathbf{h}\\
\vdots\\
\mathbf{h}^{\mathsf{T}}\nabla^{2}f_{MN}(\mathbf{x})\mathbf{h}
\end{bmatrix}
+o(\lVert\mathbf{h}\rVert_{2}^{2}), \tag*{(71)} f ( x + h ) = f ( x ) + J F ( X ) h + 2 1 h T ∇ 2 f 1 ( x ) h ⋮ h T ∇ 2 f M N ( x ) h + o (∥ h ∥ 2 2 ) , (71)
where
J F ( X ) : = ∂ vec ( F ( X ) ) ∂ vec ( X ) ∈ R M N × K L (72) \mathbf{J}_{\mathbf{F}}(\mathbf{X}):=\frac{\partial\operatorname{vec}(\mathbf{F}(\mathbf{X}))}{\partial\operatorname{vec}(\mathbf{X})}\in\mathbb{R}^{MN\times KL} \tag*{(72)} J F ( X ) := ∂ vec ( X ) ∂ vec ( F ( X )) ∈ R M N × K L (72)
is the Jacobian of the vectorized map, and ∇ 2 f i ( x ) ∈ R K L × K L \nabla^{2}f_{i}(\mathbf{x})\in\mathbb{R}^{KL\times KL} ∇ 2 f i ( x ) ∈ R K L × K L for all i ∈ [ M N ] i\in[MN] i ∈ [ M N ] . Hence,
vec ( D U F ( X ) ) = J F ( X ) vec ( U ) . (73) \operatorname{vec}\left(\mathbf{D}_{\mathbf{U}}\mathbf{F}(\mathbf{X})\right)=\mathbf{J}_{\mathbf{F}}(\mathbf{X})\operatorname{vec}(\mathbf{U}). \tag*{(73)} vec ( D U F ( X ) ) = J F ( X ) vec ( U ) . (73)
Lemma 19. Let A : R → R m × n \mathbf{A}:\mathbb{R}\to\mathbb{R}^{m\times n} A : R → R m × n be a continuously differentiable matrix-valued function. For any constant matrices B ∈ R p × m \mathbf{B}\in\mathbb{R}^{p\times m} B ∈ R p × m and C ∈ R n × q \mathbf{C}\in\mathbb{R}^{n\times q} C ∈ R n × q , we have
d d t ( B A ( t ) C ) = B d A ( t ) d t C . (74) \frac{d}{dt}\left(\mathbf{B}\mathbf{A}(t)\mathbf{C}\right)=\mathbf{B}\frac{d\mathbf{A}(t)}{dt}\mathbf{C}. \tag*{(74)} d t d ( BA ( t ) C ) = B d t d A ( t ) C . (74)
Proof. By the limit definition of the derivative, we have
d d t ( B A ( t ) C ) = lim h → 0 B A ( t + h ) C − B A ( t ) C h = lim h → 0 B ( A ( t + h ) − A ( t ) h ) C = B ( lim h → 0 A ( t + h ) − A ( t ) h ) C = B d A ( t ) d t C . (75) \begin{aligned}
\frac{d}{dt}\left(\mathbf{B}\mathbf{A}(t)\mathbf{C}\right)
&=\lim_{h\to0}\frac{\mathbf{B}\mathbf{A}(t+h)\mathbf{C}-\mathbf{B}\mathbf{A}(t)\mathbf{C}}{h}\\
&=\lim_{h\to0}\mathbf{B}\left(\frac{\mathbf{A}(t+h)-\mathbf{A}(t)}{h}\right)\mathbf{C}\\
&=\mathbf{B}\left(\lim_{h\to0}\frac{\mathbf{A}(t+h)-\mathbf{A}(t)}{h}\right)\mathbf{C}\\
&=\mathbf{B}\frac{d\mathbf{A}(t)}{dt}\mathbf{C}. \tag*{(75)}
\end{aligned} d t d ( BA ( t ) C ) = h → 0 lim h BA ( t + h ) C − BA ( t ) C = h → 0 lim B ( h A ( t + h ) − A ( t ) ) C = B ( h → 0 lim h A ( t + h ) − A ( t ) ) C = B d t d A ( t ) C . (75)
□
Remark 20. Let A : R → R m × n \mathbf{A}:\mathbb{R}\to\mathbb{R}^{m\times n} A : R → R m × n be a continuously differentiable matrix-valued function, and define f ( t ) : = A T ( t ) A ( t ) \mathbf{f}(t):=\mathbf{A}^{\mathsf{T}}(t)\mathbf{A}(t) f ( t ) := A T ( t ) A ( t ) . By the product rule and the fact that differentiation commutes with transposition, we have
d f ( t ) d t = ( d A ( t ) d t ) T A ( t ) + A T ( t ) d A ( t ) d t . (76) \frac{d\mathbf{f}(t)}{dt}=\left(\frac{d\mathbf{A}(t)}{dt}\right)^{\mathsf{T}}\mathbf{A}(t)+\mathbf{A}^{\mathsf{T}}(t)\frac{d\mathbf{A}(t)}{dt}. \tag*{(76)} d t d f ( t ) = ( d t d A ( t ) ) T A ( t ) + A T ( t ) d t d A ( t ) . (76)
Lower Shift Matrices
Definition 21. A lower shift matrix L n ∈ R n × n \mathbf{L}_n \in\mathbb{R}^{n \times n} L n ∈ R n × n is a binary matrix with ones on the subdiagonal and zeros elsewhere. For instance, an n × n n \times n n × n lower shift matrix L n \mathbf{L}_n L n takes the form
L n : = [ 0 0 0 ⋯ 0 1 0 0 ⋯ 0 0 1 0 ⋯ 0 ⋮ ⋱ ⋱ ⋱ ⋮ 0 0 ⋯ 1 0 ] ∈ R n × n . (77) \mathbf{L}_n := \begin{bmatrix}
0 & 0 & 0 & \cdots& 0 \\
1 & 0 & 0 & \cdots& 0 \\
0 & 1 & 0 & \cdots& 0 \\
\vdots& \ddots& \ddots& \ddots& \vdots\\
0 & 0 & \cdots& 1 & 0
\end{bmatrix} \in\mathbb{R}^{n \times n}. \tag*{(77)} L n := 0 1 0 ⋮ 0 0 0 1 ⋱ 0 0 0 0 ⋱ ⋯ ⋯ ⋯ ⋯ ⋱ 1 0 0 0 ⋮ 0 ∈ R n × n . (77)
Definition 24. A square matrix N ∈ R n × n \mathbf{N} \in\mathbb{R}^{n \times n} N ∈ R n × n is nilpotent if there exists k ∈ N k \in\mathbb{N} k ∈ N such that N k = 0 \mathbf{N}^k = 0 N k = 0 .
By Remark 23 , every lower shift matrix is nilpotent.
Lemma 25. Let N ∈ R n × n \mathbf{N} \in\mathbb{R}^{n \times n} N ∈ R n × n be a nilpotent matrix. Then, spec ( N ) = { 0 } \operatorname{spec}(\mathbf{N}) = \{0\} spec ( N ) = { 0 } .
Proof. Suppose N k = 0 \mathbf{N}^k = 0 N k = 0 for some k ∈ N k \in\mathbb{N} k ∈ N . Let λ ∈ spec ( N ) \lambda\in\operatorname{spec}(\mathbf{N}) λ ∈ spec ( N ) , and let v ∈ C n ∖ { 0 } \mathbf{v} \in\mathbb{C}^{n} \setminus\{0\} v ∈ C n ∖ { 0 } satisfy N v = λ v \mathbf{N}\mathbf{v} = \lambda\mathbf{v} Nv = λ v . Then, for any j ∈ N j \in\mathbb{N} j ∈ N , we have
N j v = λ j v . (83) \mathbf{N}^j\mathbf{v} = \lambda^j\mathbf{v}. \tag*{(83)} N j v = λ j v . (83) Taking j = k j = k j = k yields
0 = N k v = λ k v . (84) 0 = \mathbf{N}^k\mathbf{v} = \lambda^k\mathbf{v}. \tag*{(84)} 0 = N k v = λ k v . (84) Since v ≠ 0 \mathbf{v} \ne0 v = 0 , we have λ k = 0 \lambda^k = 0 λ k = 0 , and hence λ = 0 \lambda= 0 λ = 0 . □ \square □
Companion Matrix
Definition 26 ([31 Equation 3.3.12] ). For a degree-n n n monic polynomial p ( x ) = c 0 + c 1 x + ⋯ + c n − 1 x n − 1 + x n p(x)=c_0+c_1x+\cdots+c_{n-1}x^{n-1}+x^n p ( x ) = c 0 + c 1 x + ⋯ + c n − 1 x n − 1 + x n , the companion matrix is defined as a square matrix
H ( p ) : = [ 0 0 ⋯ 0 − c 0 1 0 ⋯ 0 − c 1 0 1 ⋯ 0 − c 2 ⋮ ⋮ ⋱ ⋮ ⋮ 0 0 ⋯ 1 − c n − 1 ] ∈ R n × n . (85) H(p):=\begin{bmatrix}
0 & 0 & \cdots& 0 & -c_0\\
1 & 0 & \cdots& 0 & -c_1\\
0 & 1 & \cdots& 0 & -c_2\\
\vdots& \vdots& \ddots& \vdots& \vdots\\
0 & 0 & \cdots& 1 & -c_{n-1}
\end{bmatrix}\in\mathbb{R}^{n\times n}. \tag*{(85)} H ( p ) := 0 1 0 ⋮ 0 0 0 1 ⋮ 0 ⋯ ⋯ ⋯ ⋱ ⋯ 0 0 0 ⋮ 1 − c 0 − c 1 − c 2 ⋮ − c n − 1 ∈ R n × n . (85)
Proof of lemma:uniqueness
Proof. We first show that any prescribed sequence of Markov parameters within the training horizon can be realized by Φ T ( θ ) \Phi_T(\theta) Φ T ( θ ) when d ≥ m T d\ge mT d ≥ m T . This means that θ ↦ Φ T ( θ ) \theta\mapsto\Phi_T(\theta) θ ↦ Φ T ( θ ) is surjective.
Let Φ = [ M 0 ⋯ M T − 1 ] ∈ R m × m T \Phi=[M_0\ \cdots\ M_{T-1}]\in\mathbb{R}^{m\times mT} Φ = [ M 0 ⋯ M T − 1 ] ∈ R m × m T be arbitrary, where M k ∈ R m × m M_k\in\mathbb{R}^{m\times m} M k ∈ R m × m for every k ∈ [ T − 1 ] 0 k\in[T-1]_0 k ∈ [ T − 1 ] 0 . Let e 1 , … , e T \mathbf{e}_1,\ldots,\mathbf{e}_T e 1 , … , e T denote the standard basis vectors of R T \mathbb{R}^T R T , and define a lower shift matrix L T ∈ R T × T L_T\in\mathbb{R}^{T\times T} L T ∈ R T × T . As we showed in Remark 22 , L T e i = e i + 1 L_T\mathbf{e}_i=\mathbf{e}_{i+1} L T e i = e i + 1 for all i ∈ [ T − 1 ] i\in[T-1] i ∈ [ T − 1 ] .
For d = m T d=mT d = m T , we can choose a particular parameterization θ ˉ = ( W ‾ 1 , W ‾ 2 , W ‾ 3 ) ∈ Θ \bar{\theta}=(\overline{W}_1,\overline{W}_2,\overline{W}_3)\in\Theta θ ˉ = ( W 1 , W 2 , W 3 ) ∈ Θ such that
W ‾ 1 = L T ⊗ I m , W ‾ 2 = e 1 ⊗ I m , W ‾ 3 = Φ . (86) \overline{W}_1=L_T\otimes I_m,\qquad\overline{W}_2=\mathbf{e}_1\otimes I_m,\qquad\overline{W}_3=\Phi. \tag*{(86)} W 1 = L T ⊗ I m , W 2 = e 1 ⊗ I m , W 3 = Φ. (86)
For this particular parameterization θ ˉ \bar{\theta} θ ˉ , we have
W ‾ 1 k W ‾ 2 = ( L T k e 1 ) ⊗ I m = e k + 1 ⊗ I m , (87) \overline{W}_1^k\overline{W}_2=(L_T^k\mathbf{e}_1)\otimes I_m=\mathbf{e}_{k+1}\otimes I_m, \tag*{(87)} W 1 k W 2 = ( L T k e 1 ) ⊗ I m = e k + 1 ⊗ I m , (87)
for every k ∈ [ T − 1 ] 0 k\in[T-1]_0 k ∈ [ T − 1 ] 0 , where the last equality follows from (79) . Note that
e k + 1 ⊗ I m = [ 0 m k × m I m 0 ( T − k − 1 ) m × m ] . (88) \mathbf{e}_{k+1}\otimes I_m=
\begin{bmatrix}
0_{mk\times m}\\
I_m\\
0_{(T-k-1)m\times m}
\end{bmatrix}. \tag*{(88)} e k + 1 ⊗ I m = 0 mk × m I m 0 ( T − k − 1 ) m × m . (88)
Hence,
W ‾ 3 W ‾ 1 k W ‾ 2 = Φ ( e k + 1 ⊗ I m ) = [ M 0 M 1 ⋯ M T − 1 ] [ 0 m k × m I m 0 ( T − k − 1 ) m × m ] = M k . (89) \overline{W}_3\overline{W}_1^k\overline{W}_2=\Phi(\mathbf{e}_{k+1}\otimes I_m)=
\begin{bmatrix}M_0&M_1&\cdots&M_{T-1}\end{bmatrix}
\begin{bmatrix}
0_{mk\times m}\\
I_m\\
0_{(T-k-1)m\times m}
\end{bmatrix}
=M_k. \tag*{(89)} W 3 W 1 k W 2 = Φ ( e k + 1 ⊗ I m ) = [ M 0 M 1 ⋯ M T − 1 ] 0 mk × m I m 0 ( T − k − 1 ) m × m = M k . (89)
Since M k ∈ R m × m M_k\in\mathbb{R}^{m\times m} M k ∈ R m × m was arbitrary, Φ T ( θ ) \Phi_T(\theta) Φ T ( θ ) can represent any Φ ∈ R m × m T \Phi\in\mathbb{R}^{m\times mT} Φ ∈ R m × m T . Therefore, the map θ ↦ Φ T ( θ ) \theta\mapsto\Phi_T(\theta) θ ↦ Φ T ( θ ) is surjective.
If d > m T d>mT d > m T , let r = d − m T r=d-mT r = d − m T and append r r r unused hidden coordinates by setting
W 1 = [ W ‾ 1 0 0 0 r × r ] , W 2 = [ W ‾ 2 0 r × m ] , W 3 = [ W ‾ 3 0 m × r ] . (90) W_1=\begin{bmatrix}\overline{W}_1&0\\0&0_{r\times r}\end{bmatrix},\qquad
W_2=\begin{bmatrix}\overline{W}_2\\0_{r\times m}\end{bmatrix},\qquad
W_3=\begin{bmatrix}\overline{W}_3&0_{m\times r}\end{bmatrix}. \tag*{(90)} W 1 = [ W 1 0 0 0 r × r ] , W 2 = [ W 2 0 r × m ] , W 3 = [ W 3 0 m × r ] . (90)
The additional coordinates do not change the Markov parameters, so W 3 W 1 k W 2 = M k W_3W_1^kW_2=M_k W 3 W 1 k W 2 = M k for every k ∈ [ T − 1 ] 0 k\in[T-1]_0 k ∈ [ T − 1 ] 0 . Consequently, in either case there exists θ ∈ Θ \theta\in\Theta θ ∈ Θ such that Φ T ( θ ) = Φ \Phi_T(\theta)=\Phi Φ T ( θ ) = Φ . Since Φ \Phi Φ was arbitrary, the map θ ↦ Φ T ( θ ) \theta\mapsto\Phi_T(\theta) θ ↦ Φ T ( θ ) is surjective onto R m × m T \mathbb{R}^{m\times mT} R m × m T . This lower-shift matrix realization was also leveraged by Cohen-Karlik et al. [ [13 ] in linear RNNs.
Note that
L ^ ( θ ) = 1 N T ∥ Y + − Φ T ( θ ) Z ∥ F 2 = 1 N T ∥ vec ( Y + ) − ( Z ⊤ ⊗ I m ) vec ( Φ T ( θ ) ) ∥ 2 2 , (91) \widehat{\mathcal{L}}(\theta)=\frac{1}{NT}\left\|\mathbf{Y}_{+}-\boldsymbol{\Phi}_{T}(\theta)\mathbf{Z}\right\|_{F}^{2}=\frac{1}{NT}\left\|\operatorname{vec}(\mathbf{Y}_{+})-(\mathbf{Z}^{\top}\otimes\mathbf{I}_{m})\operatorname{vec}(\boldsymbol{\Phi}_{T}(\theta))\right\|_{2}^{2}, \tag*{(91)} L ( θ ) = N T 1 ∥ Y + − Φ T ( θ ) Z ∥ F 2 = N T 1 vec ( Y + ) − ( Z ⊤ ⊗ I m ) vec ( Φ T ( θ )) 2 2 , (91)
by (9) . Since θ ↦ Φ T ( θ ) \theta\mapsto\boldsymbol{\Phi}_{T}(\theta) θ ↦ Φ T ( θ ) is surjective when d ≥ m T d\ge mT d ≥ m T , the optimization objective min θ ∈ Θ L ^ ( θ ) \min_{\theta\in\Theta}\widehat{\mathcal{L}}(\theta) min θ ∈ Θ L ( θ ) is equivalent to
min Φ ∈ R m × m T { f ( Φ ) : = 1 N T ∥ Y + − Φ Z ∥ F 2 } , (92) \min_{\boldsymbol{\Phi}\in\mathbb{R}^{m\times mT}}\left\{f(\boldsymbol{\Phi}):=\frac{1}{NT}\left\|\mathbf{Y}_{+}-\boldsymbol{\Phi}\mathbf{Z}\right\|_{F}^{2}\right\}, \tag*{(92)} Φ ∈ R m × m T min { f ( Φ ) := N T 1 ∥ Y + − Φ Z ∥ F 2 } , (92)
in the sense that for every θ ∗ ∈ Ω \theta^{*}\in\Omega θ ∗ ∈ Ω , Φ T ( θ ∗ ) \boldsymbol{\Phi}_{T}(\theta^{*}) Φ T ( θ ∗ ) minimizes f f f . Furthermore, for every Φ ∗ \boldsymbol{\Phi}^{*} Φ ∗ that minimizes f f f , there exists θ ∗ \theta^{*} θ ∗ such that Φ T ( θ ∗ ) = Φ ∗ \boldsymbol{\Phi}_{T}(\theta^{*})=\boldsymbol{\Phi}^{*} Φ T ( θ ∗ ) = Φ ∗ due to the surjectivity of θ ↦ Φ T ( θ ) \theta\mapsto\boldsymbol{\Phi}_{T}(\theta) θ ↦ Φ T ( θ ) .
Note that when d ≥ m T d\ge mT d ≥ m T , f f f is a differentiable convex quadratic with gradient
∇ Φ f ( Φ ) = 2 N T ( Φ Z Z ⊤ − Y + Z ⊤ ) . (93) \nabla_{\boldsymbol{\Phi}}f(\boldsymbol{\Phi})=\frac{2}{NT}\left(\boldsymbol{\Phi}\mathbf{Z}\mathbf{Z}^{\top}-\mathbf{Y}_{+}\mathbf{Z}^{\top}\right). \tag*{(93)} ∇ Φ f ( Φ ) = N T 2 ( Φ Z Z ⊤ − Y + Z ⊤ ) . (93)
Hence, Φ ∗ \boldsymbol{\Phi}^{*} Φ ∗ minimizes f f f if and only if it satisfies the normal equation
Φ ∗ Z Z ⊤ = Y + Z ⊤ . (94) \boldsymbol{\Phi}^{*}\mathbf{Z}\mathbf{Z}^{\top}=\mathbf{Y}_{+}\mathbf{Z}^{\top}. \tag*{(94)} Φ ∗ Z Z ⊤ = Y + Z ⊤ . (94)
The equation Y + = Φ Z \mathbf{Y}_{+}=\boldsymbol{\Phi}\mathbf{Z} Y + = Φ Z has an exact solution precisely when ran ( Y + ⊤ ) ⊆ ran ( Z ⊤ ) \operatorname{ran}(\mathbf{Y}_{+}^{\top})\subseteq\operatorname{ran}(\mathbf{Z}^{\top}) ran ( Y + ⊤ ) ⊆ ran ( Z ⊤ ) , as shown in Lemma 14 . In that case, the optimal training loss is zero. Otherwise, (94) gives the least-squares solutions. When Z Z ⊤ \mathbf{Z}\mathbf{Z}^{\top} Z Z ⊤ is nonsingular, the right multiplication of (94) by its inverse shows that the unique minimizer of f f f is
Φ ∗ = Y + Z ⊤ ( Z Z ⊤ ) − 1 . (95) \boldsymbol{\Phi}^{*}=\mathbf{Y}_{+}\mathbf{Z}^{\top}(\mathbf{Z}\mathbf{Z}^{\top})^{-1}. \tag*{(95)} Φ ∗ = Y + Z ⊤ ( Z Z ⊤ ) − 1 . (95)
Therefore, every θ ∗ ∈ Ω \theta^{*}\in\Omega θ ∗ ∈ Ω must satisfy
Φ T ( θ ∗ ) = Y + Z ⊤ ( Z Z ⊤ ) − 1 . (96) \boldsymbol{\Phi}_{T}(\theta^{*})=\mathbf{Y}_{+}\mathbf{Z}^{\top}(\mathbf{Z}\mathbf{Z}^{\top})^{-1}. \tag*{(96)} Φ T ( θ ∗ ) = Y + Z ⊤ ( Z Z ⊤ ) − 1 . (96)
Proof of thm:arbitrary-charpoly
Proof. Let { a 0 , a 1 , … , a d − 1 } \{a_{0},a_{1},\ldots,a_{d-1}\} { a 0 , a 1 , … , a d − 1 } be an arbitrary set of real coefficients. Moreover, let Φ ∗ = [ M 0 ∗ ⋯ M T − 1 ∗ ] ∈ R m × m T \boldsymbol{\Phi}^{*}=[\mathbf{M}_{0}^{*}\ \cdots\ \mathbf{M}_{T-1}^{*}]\in\mathbb{R}^{m\times mT} Φ ∗ = [ M 0 ∗ ⋯ M T − 1 ∗ ] ∈ R m × m T be a minimizer of f f f defined in (92) , where M k ∗ ∈ R m × m \mathbf{M}_{k}^{*}\in\mathbb{R}^{m\times m} M k ∗ ∈ R m × m for every k ∈ [ T − 1 ] 0 k\in[T-1]_{0} k ∈ [ T − 1 ] 0 . As we showed in the proof of Lemma 9 , when d ≥ m T d\ge mT d ≥ m T , every θ ∈ Θ \theta\in\Theta θ ∈ Θ that satisfies Φ T ( θ ) = Φ ∗ \boldsymbol{\Phi}_{T}(\theta)=\boldsymbol{\Phi}^{*} Φ T ( θ ) = Φ ∗ is a global minimizer of L ^ \widehat{\mathcal{L}} L . Therefore, to show that there exists a global minimizer whose recurrent weight matrix has a characteristic polynomial with arbitrary coefficients, it suffices to construct a parameterization θ ~ = ( W ~ 1 , W ~ 2 , W ~ 3 ) ∈ Θ \widetilde{\theta}=(\widetilde{\mathbf{W}}_{1},\widetilde{\mathbf{W}}_{2},\widetilde{\mathbf{W}}_{3})\in\Theta θ = ( W 1 , W 2 , W 3 ) ∈ Θ such that Φ T ( θ ~ ) = Φ ∗ \boldsymbol{\Phi}_{T}(\widetilde{\theta})=\boldsymbol{\Phi}^{*} Φ T ( θ ) = Φ ∗ and the coefficients of the characteristic polynomial of W ~ 1 \widetilde{\mathbf{W}}_{1} W 1 are { a 0 , a 1 , … , a d − 1 } \{a_{0},a_{1},\ldots,a_{d-1}\} { a 0 , a 1 , … , a d − 1 } .
First, we denote the sets of standard basis vectors of R T \mathbb{R}^{T} R T , R m \mathbb{R}^{m} R m , and R d \mathbb{R}^{d} R d by { e 1 , … , e T } \{\mathbf{e}_{1},\ldots,\mathbf{e}_{T}\} { e 1 , … , e T } , { v 1 , … , v m } \{\mathbf{v}_{1},\ldots,\mathbf{v}_{m}\} { v 1 , … , v m } , and { u 1 , … , u d } \{\mathbf{u}_{1},\ldots,\mathbf{u}_{d}\} { u 1 , … , u d } , respectively. Now, for every k ∈ [ T ] k\in[T] k ∈ [ T ] , we define
E k : = [ I m ⊗ e k 0 r × m ] ∈ R d × m , (97) \mathbf{E}_{k}:=\begin{bmatrix}\mathbf{I}_{m}\otimes\mathbf{e}_{k}\\ \mathbf{0}_{r\times m}\end{bmatrix}\in\mathbb{R}^{d\times m}, \tag*{(97)} E k := [ I m ⊗ e k 0 r × m ] ∈ R d × m , (97)
where r : = d − m T r:=d-mT r := d − m T , and choose a particular parameterization θ ~ ∈ Θ \widetilde{\theta}\in\Theta θ ∈ Θ such that
W ~ 1 = L d − a u d ⊤ = [ 0 0 ⋯ 0 − a 0 1 0 ⋯ 0 − a 1 0 1 ⋯ 0 − a 2 ⋮ ⋮ ⋱ ⋮ ⋮ 0 0 ⋯ 1 − a d − 1 ] , W ~ 2 = E 1 , W ~ 3 = ∑ k = 0 T − 1 M k ∗ E k + 1 ⊤ . (98) \widetilde{\mathbf{W}}_{1}=\mathbf{L}_{d}-\mathbf{a}\mathbf{u}_{d}^{\top}=
\begin{bmatrix}
0&0&\cdots&0&-a_{0}\\
1&0&\cdots&0&-a_{1}\\
0&1&\cdots&0&-a_{2}\\
\vdots&\vdots&\ddots&\vdots&\vdots\\
0&0&\cdots&1&-a_{d-1}
\end{bmatrix},
\qquad
\widetilde{\mathbf{W}}_{2}=\mathbf{E}_{1},
\qquad
\widetilde{\mathbf{W}}_{3}=\sum_{k=0}^{T-1}\mathbf{M}_{k}^{*}\mathbf{E}_{k+1}^{\top}. \tag*{(98)} W 1 = L d − a u d ⊤ = 0 1 0 ⋮ 0 0 0 1 ⋮ 0 ⋯ ⋯ ⋯ ⋱ ⋯ 0 0 0 ⋮ 1 − a 0 − a 1 − a 2 ⋮ − a d − 1 , W 2 = E 1 , W 3 = k = 0 ∑ T − 1 M k ∗ E k + 1 ⊤ . (98)
where L d ∈ R d × d \mathbf{L}_d \in\mathbb{R}^{d \times d} L d ∈ R d × d is a lower shift matrix and a : = [ a 0 a 1 ⋯ a d − 1 ] T ∈ R d \mathbf{a} := [a_0\ a_1\ \cdots\ a_{d-1}]^{\mathsf{T}} \in\mathbb{R}^d a := [ a 0 a 1 ⋯ a d − 1 ] T ∈ R d . Note that W ~ 1 \widetilde{\mathbf{W}}_1 W 1 is a companion matrix. Therefore, its characteristic polynomial is given by
det ( s I d − W ~ 1 ) = s d + ∑ j = 0 d − 1 a j s j (99) \det\left(s\mathbf{I}_d-\widetilde{\mathbf{W}}_1\right)=s^d+\sum_{j=0}^{d-1}a_js^j \tag*{(99)} det ( s I d − W 1 ) = s d + j = 0 ∑ d − 1 a j s j (99)
[37 , 31 ] . In particular, when a = 0 \mathbf{a}=\mathbf{0} a = 0 , W ~ 1 \widetilde{\mathbf{W}}_1 W 1 reduces to a lower shift matrix.
Now, we show that Φ T ( θ ~ ) = Φ ∗ \Phi_T(\widetilde{\theta})=\Phi^* Φ T ( θ ) = Φ ∗ . As we showed in Remark 22 , L d u i = u i + 1 \mathbf{L}_d\mathbf{u}_i=\mathbf{u}_{i+1} L d u i = u i + 1 for all i ∈ [ d − 1 ] i\in[d-1] i ∈ [ d − 1 ] . Since u d T u i = 0 \mathbf{u}_d^{\mathsf{T}}\mathbf{u}_i=0 u d T u i = 0 for all i ∈ [ d − 1 ] i\in[d-1] i ∈ [ d − 1 ] , we have
W ~ 1 u i = u i + 1 (100) \widetilde{\mathbf{W}}_1\mathbf{u}_i=\mathbf{u}_{i+1} \tag*{(100)} W 1 u i = u i + 1 (100)
for all i ∈ [ d − 1 ] i\in[d-1] i ∈ [ d − 1 ] . This means that the last column of W ~ 1 \widetilde{\mathbf{W}}_1 W 1 is not involved unless W ~ 1 \widetilde{\mathbf{W}}_1 W 1 is applied to u d \mathbf{u}_d u d . By (97) , the j j j th column of E k \mathbf{E}_k E k is
E k v j = [ v j ⊗ e k 0 r ] = u ( j − 1 ) T + k (101) \mathbf{E}_k\mathbf{v}_j=
\begin{bmatrix}
\mathbf{v}_j\otimes\mathbf{e}_k\\
\mathbf{0}_r
\end{bmatrix}
=\mathbf{u}_{(j-1)T+k} \tag*{(101)} E k v j = [ v j ⊗ e k 0 r ] = u ( j − 1 ) T + k (101)
for every j ∈ [ m ] j\in[m] j ∈ [ m ] and k ∈ [ T ] k\in[T] k ∈ [ T ] . Furthermore, for every k ∈ [ T − 1 ] k\in[T-1] k ∈ [ T − 1 ] , we have ( j − 1 ) T + k ≤ m T − 1 ≤ d − 1 (j-1)T+k\leq mT-1\leq d-1 ( j − 1 ) T + k ≤ m T − 1 ≤ d − 1 . Hence, by (100) , we have
W ~ 1 E k v j = u ( j − 1 ) T + k + 1 (102) \widetilde{\mathbf{W}}_1\mathbf{E}_k\mathbf{v}_j=\mathbf{u}_{(j-1)T+k+1} \tag*{(102)} W 1 E k v j = u ( j − 1 ) T + k + 1 (102)
for every j ∈ [ m ] j\in[m] j ∈ [ m ] . Moreover, by leveraging (101) , we obtain
E k + 1 v j = u ( j − 1 ) T + k + 1 = W ~ 1 E k v j (103) \mathbf{E}_{k+1}\mathbf{v}_j=\mathbf{u}_{(j-1)T+k+1}=\widetilde{\mathbf{W}}_1\mathbf{E}_k\mathbf{v}_j \tag*{(103)} E k + 1 v j = u ( j − 1 ) T + k + 1 = W 1 E k v j (103)
for every $j\in[m]. This means that W ~ 1 E k = E k + 1 \widetilde{\mathbf{W}}_1\mathbf{E}_k=\mathbf{E}_{k+1} W 1 E k = E k + 1 for every k ∈ [ T − 1 ] k\in[T-1] k ∈ [ T − 1 ] . Recall that W ~ 2 : = E 1 \widetilde{\mathbf{W}}_2:=\mathbf{E}_1 W 2 := E 1 . Then, by induction,
W ~ 1 k W ~ 2 = E k + 1 (104) \widetilde{\mathbf{W}}_1^k\widetilde{\mathbf{W}}_2=\mathbf{E}_{k+1} \tag*{(104)} W 1 k W 2 = E k + 1 (104)
for every k ∈ [ T − 1 ] 0 k\in[T-1]_0 k ∈ [ T − 1 ] 0 . Using the mixed-product property of the Kronecker product, we show that
E k T E ℓ = ( I m ⊗ e k T ) ( I m ⊗ e ℓ ) = I m ⊗ ( e k T e ℓ ) = { I m , k = ℓ , 0 , k ≠ ℓ , (105) \mathbf{E}_k^{\mathsf{T}}\mathbf{E}_{\ell}=(\mathbf{I}_m\otimes\mathbf{e}_k^{\mathsf{T}})(\mathbf{I}_m\otimes\mathbf{e}_{\ell})=\mathbf{I}_m\otimes(\mathbf{e}_k^{\mathsf{T}}\mathbf{e}_{\ell})=
\begin{cases}
\mathbf{I}_m, & k=\ell,\\
\mathbf{0}, & k\ne\ell,
\end{cases} \tag*{(105)} E k T E ℓ = ( I m ⊗ e k T ) ( I m ⊗ e ℓ ) = I m ⊗ ( e k T e ℓ ) = { I m , 0 , k = ℓ , k = ℓ , (105)
for every k , ℓ ∈ [ T ] k,\ell\in[T] k , ℓ ∈ [ T ] . Consequently,
W ~ 3 W ~ 1 k W ~ 2 = ∑ ℓ = 0 T − 1 M ℓ ∗ E ℓ + 1 T E k + 1 = M k ∗ (106) \widetilde{\mathbf{W}}_3\widetilde{\mathbf{W}}_1^k\widetilde{\mathbf{W}}_2=\sum_{\ell=0}^{T-1}\mathbf{M}_{\ell}^*\mathbf{E}_{\ell+1}^{\mathsf{T}}\mathbf{E}_{k+1}=\mathbf{M}_k^* \tag*{(106)} W 3 W 1 k W 2 = ℓ = 0 ∑ T − 1 M ℓ ∗ E ℓ + 1 T E k + 1 = M k ∗ (106)
for every k ∈ [ T − 1 ] 0 k\in[T-1]_0 k ∈ [ T − 1 ] 0 . Therefore, Φ T ( θ ~ ) = Φ ∗ \Phi_T(\widetilde{\theta})=\Phi^* Φ T ( θ ) = Φ ∗ , and hence θ ~ ∈ Ω \widetilde{\theta}\in\Omega θ ∈ Ω .
Proof of thm:exact-sharpness
Proof. To simplify subsequent derivations, we define the vector of all trainable parameters as w : = [ vec ( W 1 ) T vec ( W 2 ) T vec ( W 3 ) T ] T ∈ R d 2 + 2 d m \mathbf{w}:=[\operatorname{vec}(\mathbf{W}_1)^{\mathsf{T}}\ \operatorname{vec}(\mathbf{W}_2)^{\mathsf{T}}\ \operatorname{vec}(\mathbf{W}_3)^{\mathsf{T}}]^{\mathsf{T}}\in\mathbb{R}^{d^2+2dm} w := [ vec ( W 1 ) T vec ( W 2 ) T vec ( W 3 ) T ] T ∈ R d 2 + 2 d m . Furthermore, we showed in Lemma 9 that θ ↦ Φ T ( θ ) \theta\mapsto\Phi_T(\theta) θ ↦ Φ T ( θ ) is surjective when d ≥ m T d \ge mT d ≥ m T . Therefore, the optimization objective min θ L ^ ( θ ) \min_\theta\widehat{\mathcal{L}}(\theta) min θ L ( θ ) is equivalent to
min Φ ∈ R m × m T 1 N T ∥ Y + − Φ Z ∥ F 2 (107) \min_{\Phi\in\mathbb{R}^{m \times mT}} \frac{1}{NT}\lVert\mathbf{Y}_+ - \Phi\mathbf{Z}\rVert_F^2 \tag*{(107)} Φ ∈ R m × m T min N T 1 ∥ Y + − Φ Z ∥ F 2 (107)
in the sense that for any θ ∗ ∈ Ω \theta^* \in\Omega θ ∗ ∈ Ω , there exists a minimizer Φ ∗ ∈ a r g m i n Φ ∈ R m × m T ∥ Y + − Φ Z ∥ F 2 \Phi^* \in\mathop{\rm arg\,min}_{\Phi\in\mathbb{R}^{m \times mT}} \lVert\mathbf{Y}_+ - \Phi\mathbf{Z}\rVert_F^2 Φ ∗ ∈ arg min Φ ∈ R m × m T ∥ Y + − Φ Z ∥ F 2 such that Φ ∗ = Φ T ( θ ∗ ) \Phi^* = \Phi_T(\theta^*) Φ ∗ = Φ T ( θ ∗ ) ; and for any Φ ∗ ∈ a r g m i n Φ ∈ R m × m T ∥ Y + − Φ Z ∥ F 2 \Phi^* \in\mathop{\rm arg\,min}_{\Phi\in\mathbb{R}^{m \times mT}} \lVert\mathbf{Y}_+ - \Phi\mathbf{Z}\rVert_F^2 Φ ∗ ∈ arg min Φ ∈ R m × m T ∥ Y + − Φ Z ∥ F 2 , there exists a θ ∗ ∈ Ω \theta^* \in\Omega θ ∗ ∈ Ω such that Φ ∗ = Φ T ( θ ∗ ) \Phi^* = \Phi_T(\theta^*) Φ ∗ = Φ T ( θ ∗ ) . Therefore, for any θ ∗ ∈ Ω \theta^* \in\Omega θ ∗ ∈ Ω
Φ T ( θ ∗ ) Z Z ⊤ − Y + Z ⊤ = 0 , (108) \Phi_T(\theta^*)\mathbf{Z}\mathbf{Z}^{\top} - \mathbf{Y}_+\mathbf{Z}^{\top} = 0, \tag*{(108)} Φ T ( θ ∗ ) Z Z ⊤ − Y + Z ⊤ = 0 , (108)
by the convexity of the Frobenius norm.
As we showed in Remark 17,
λ max ( ∇ 2 L ( X ) ) = max ∥ U ∥ F = 1 D U 2 L ( X ) . (109) \lambda_{\max}\left(\nabla^2\mathcal{L}(\mathbf{X})\right) = \max_{\lVert\mathbf{U}\rVert_F=1} D^2_{\mathbf{U}}\mathcal{L}(\mathbf{X}). \tag*{(109)} λ m a x ( ∇ 2 L ( X ) ) = ∥ U ∥ F = 1 max D U 2 L ( X ) . (109)
Hence, let us define an arbitrary perturbation U : = ( U 1 , U 2 , U 3 ) \mathbf{U} := (\mathbf{U}_1, \mathbf{U}_2, \mathbf{U}_3) U := ( U 1 , U 2 , U 3 ) in the parameter space Θ \Theta Θ , where U 1 ∈ R d × d \mathbf{U}_1 \in\mathbb{R}^{d \times d} U 1 ∈ R d × d , U 2 ∈ R d × m \mathbf{U}_2 \in\mathbb{R}^{d \times m} U 2 ∈ R d × m and U 3 ∈ R m × d \mathbf{U}_3 \in\mathbb{R}^{m \times d} U 3 ∈ R m × d . Furthermore, we also define its vectorized form as u : = [ vec ( U 1 ) ⊤ vec ( U 2 ) ⊤ vec ( U 3 ) ⊤ ] ⊤ ∈ R d 2 + 2 m d \mathbf{u} := [\operatorname{vec}(\mathbf{U}_1)^{\top}\ \operatorname{vec}(\mathbf{U}_2)^{\top}\ \operatorname{vec}(\mathbf{U}_3)^{\top}]^{\top} \in\mathbb{R}^{d^2+2md} u := [ vec ( U 1 ) ⊤ vec ( U 2 ) ⊤ vec ( U 3 ) ⊤ ] ⊤ ∈ R d 2 + 2 m d . For any θ ∗ ∈ Ω \theta^* \in\Omega θ ∗ ∈ Ω , we can define the parameterized path along the perturbation direction U \mathbf{U} U as θ ∗ ( t ) : = ( W 1 ∗ + t U 1 , W 2 ∗ + t U 2 , W 3 ∗ + t U 3 ) \theta^*(t) := (\mathbf{W}_1^* + t\mathbf{U}_1, \mathbf{W}_2^* + t\mathbf{U}_2, \mathbf{W}_3^* + t\mathbf{U}_3) θ ∗ ( t ) := ( W 1 ∗ + t U 1 , W 2 ∗ + t U 2 , W 3 ∗ + t U 3 ) . Then, as we showed in (53) and (54) , the first and second directional derivatives are defined by
Φ ˙ U : = ∂ ∂ t Φ T ( θ ∗ ( t ) ) ∣ t = 0 and Φ ¨ U : = ∂ 2 ∂ t 2 Φ T ( θ ∗ ( t ) ) ∣ t = 0 , (110) \dot{\Phi}_{\mathbf{U}} := \left.\frac{\partial}{\partial t}\Phi_T(\theta^*(t))\right|_{t=0}
\quad\text{and}\quad
\ddot{\Phi}_{\mathbf{U}} := \left.\frac{\partial^2}{\partial t^2}\Phi_T(\theta^*(t))\right|_{t=0}, \tag*{(110)} Φ ˙ U := ∂ t ∂ Φ T ( θ ∗ ( t )) t = 0 and Φ ¨ U := ∂ t 2 ∂ 2 Φ T ( θ ∗ ( t )) t = 0 , (110)
respectively. Leveraging Lemma 16 , for any θ ∗ ∈ Ω \theta^* \in\Omega θ ∗ ∈ Ω ,
D U 2 L ^ ( θ ∗ ) = ∂ 2 ∂ t 2 L ^ ( θ ∗ ( t ) ) ∣ t = 0 (111) D^2_{\mathbf{U}}\widehat{\mathcal{L}}(\theta^*) = \left.\frac{\partial^2}{\partial t^2}\widehat{\mathcal{L}}(\theta^*(t))\right|_{t=0} \tag*{(111)} D U 2 L ( θ ∗ ) = ∂ t 2 ∂ 2 L ( θ ∗ ( t )) t = 0 (111)
= 1 N T ∂ 2 ∂ t 2 ∥ Y + − Φ T ( θ ∗ ( t ) ) Z ∥ F 2 ∣ t = 0 (112) = \left.\frac{1}{NT}\frac{\partial^2}{\partial t^2}\lVert\mathbf{Y}_+ - \Phi_T(\theta^*(t))\mathbf{Z}\rVert_F^2\right|_{t=0} \tag*{(112)} = N T 1 ∂ t 2 ∂ 2 ∥ Y + − Φ T ( θ ∗ ( t )) Z ∥ F 2 t = 0 (112)
= 1 N T ∂ 2 ∂ t 2 tr ( ( Y + − Φ T ( θ ∗ ( t ) ) Z ) ⊤ ( Y + − Φ T ( θ ∗ ( t ) ) Z ) ) ∣ t = 0 (113) = \left.\frac{1}{NT}\frac{\partial^2}{\partial t^2}\operatorname{tr}\left((\mathbf{Y}_+ - \Phi_T(\theta^*(t))\mathbf{Z})^{\top}(\mathbf{Y}_+ - \Phi_T(\theta^*(t))\mathbf{Z})\right)\right|_{t=0} \tag*{(113)} = N T 1 ∂ t 2 ∂ 2 tr ( ( Y + − Φ T ( θ ∗ ( t )) Z ) ⊤ ( Y + − Φ T ( θ ∗ ( t )) Z ) ) t = 0 (113)
= 1 N T ∂ 2 ∂ t 2 ( ∥ Y + ∥ F 2 − 2 tr ( Y + ⊤ Φ T ( θ ∗ ( t ) ) Z ) + tr ( Z ⊤ Φ T ( θ ∗ ( t ) ) ⊤ Φ T ( θ ∗ ( t ) ) Z ) ) ∣ t = 0 (114) = \left.\frac{1}{NT}\frac{\partial^2}{\partial t^2}\left(\lVert\mathbf{Y}_+\rVert_F^2 - 2\operatorname{tr}(\mathbf{Y}_+^{\top}\Phi_T(\theta^*(t))\mathbf{Z}) + \operatorname{tr}(\mathbf{Z}^{\top}\Phi_T(\theta^*(t))^{\top}\Phi_T(\theta^*(t))\mathbf{Z})\right)\right|_{t=0} \tag*{(114)} = N T 1 ∂ t 2 ∂ 2 ( ∥ Y + ∥ F 2 − 2 tr ( Y + ⊤ Φ T ( θ ∗ ( t )) Z ) + tr ( Z ⊤ Φ T ( θ ∗ ( t ) ) ⊤ Φ T ( θ ∗ ( t )) Z ) ) t = 0 (114)
= − 2 N T tr ( Y + ⊤ Φ ¨ U Z ) + 1 N T tr ( Z ⊤ ∂ 2 ∂ t 2 ( Φ T ( θ ∗ ( t ) ) ⊤ Φ T ( θ ∗ ( t ) ) ) ∣ t = 0 Z ) , (115) = -\frac{2}{NT}\operatorname{tr}(\mathbf{Y}_+^{\top}\ddot{\Phi}_{\mathbf{U}}\mathbf{Z}) + \frac{1}{NT}\operatorname{tr}\left(\mathbf{Z}^{\top}\left.\frac{\partial^2}{\partial t^2}\left(\Phi_T(\theta^*(t))^{\top}\Phi_T(\theta^*(t))\right)\right|_{t=0}\mathbf{Z}\right), \tag*{(115)} = − N T 2 tr ( Y + ⊤ Φ ¨ U Z ) + N T 1 tr ( Z ⊤ ∂ t 2 ∂ 2 ( Φ T ( θ ∗ ( t ) ) ⊤ Φ T ( θ ∗ ( t )) ) t = 0 Z ) , (115)
by using the identity ∥ A ∥ F 2 = tr ( A ⊤ A ) \lVert\mathbf{A}\rVert_F^2 = \operatorname{tr}(\mathbf{A}^{\top}\mathbf{A}) ∥ A ∥ F 2 = tr ( A ⊤ A ) , Lemma 19 , and the fact that differentiation and trace operations commute. Then, by Remark 20, we have
∂ ∂ t { Φ T ( θ ∗ ( t ) ) ⊤ Φ T ( θ ∗ ( t ) ) } = ( ∂ Φ T ( θ ∗ ( t ) ) ∂ t ) ⊤ Φ T ( θ ∗ ( t ) ) + Φ T ( θ ∗ ( t ) ) ⊤ ∂ Φ T ( θ ∗ ( t ) ) ∂ t , (116) \frac{\partial}{\partial t}\left\{\Phi_T(\theta^*(t))^{\top}\Phi_T(\theta^*(t))\right\}
= \left(\frac{\partial\Phi_T(\theta^*(t))}{\partial t}\right)^{\top}\Phi_T(\theta^*(t)) + \Phi_T(\theta^*(t))^{\top}\frac{\partial\Phi_T(\theta^*(t))}{\partial t}, \tag*{(116)} ∂ t ∂ { Φ T ( θ ∗ ( t ) ) ⊤ Φ T ( θ ∗ ( t )) } = ( ∂ t ∂ Φ T ( θ ∗ ( t )) ) ⊤ Φ T ( θ ∗ ( t )) + Φ T ( θ ∗ ( t ) ) ⊤ ∂ t ∂ Φ T ( θ ∗ ( t )) , (116)
∂ 2 ∂ t 2 { Φ T ( θ ∗ ( t ) ) ⊤ Φ T ( θ ∗ ( t ) ) } = ( ∂ 2 Φ T ( θ ∗ ( t ) ) ∂ t 2 ) ⊤ Φ T ( θ ∗ ( t ) ) (117) \frac{\partial^2}{\partial t^2}\left\{\Phi_T(\theta^*(t))^{\top}\Phi_T(\theta^*(t))\right\}
= \left(\frac{\partial^2\Phi_T(\theta^*(t))}{\partial t^2}\right)^{\top}\Phi_T(\theta^*(t)) \tag*{(117)} ∂ t 2 ∂ 2 { Φ T ( θ ∗ ( t ) ) ⊤ Φ T ( θ ∗ ( t )) } = ( ∂ t 2 ∂ 2 Φ T ( θ ∗ ( t )) ) ⊤ Φ T ( θ ∗ ( t )) (117)
+ 2 ( ∂ Φ T ( θ ∗ ( t ) ) ∂ t ) ⊤ ∂ Φ T ( θ ∗ ( t ) ) ∂ t + Φ T ( θ ∗ ( t ) ) ⊤ ∂ 2 Φ T ( θ ∗ ( t ) ) ∂ t 2 . (118) + 2\left(\frac{\partial\Phi_T(\theta^*(t))}{\partial t}\right)^{\top}\frac{\partial\Phi_T(\theta^*(t))}{\partial t} + \Phi_T(\theta^*(t))^{\top}\frac{\partial^2\Phi_T(\theta^*(t))}{\partial t^2}. \tag*{(118)} + 2 ( ∂ t ∂ Φ T ( θ ∗ ( t )) ) ⊤ ∂ t ∂ Φ T ( θ ∗ ( t )) + Φ T ( θ ∗ ( t ) ) ⊤ ∂ t 2 ∂ 2 Φ T ( θ ∗ ( t )) . (118)
Therefore,
∂ 2 ∂ t 2 { Φ T ⊤ ( θ ∗ ( t ) ) Φ T ( θ ∗ ( t ) ) } ∣ t = 0 = Φ ¨ U ⊤ Φ T ( θ ∗ ) + 2 Φ ˙ U ⊤ Φ ˙ U + Φ T ⊤ ( θ ∗ ) Φ ¨ U . (119) \left.\frac{\partial^2}{\partial t^2}\left\{\Phi_T^\top(\theta^*(t))\Phi_T(\theta^*(t))\right\}\right|_{t=0}
= \ddot{\Phi}_U^\top\Phi_T(\theta^*) + 2\dot{\Phi}_U^\top\dot{\Phi}_U + \Phi_T^\top(\theta^*)\ddot{\Phi}_U. \tag*{(119)} ∂ t 2 ∂ 2 { Φ T ⊤ ( θ ∗ ( t )) Φ T ( θ ∗ ( t )) } t = 0 = Φ ¨ U ⊤ Φ T ( θ ∗ ) + 2 Φ ˙ U ⊤ Φ ˙ U + Φ T ⊤ ( θ ∗ ) Φ ¨ U . (119)
Consequently,
D U 2 L ^ ( θ ∗ ) = − 2 N T tr ( Y + ⊤ Φ ¨ U Z ) + 1 N T tr ( Z ⊤ ( Φ ¨ U ⊤ Φ T ( θ ∗ ) + 2 Φ ˙ U ⊤ Φ ˙ U + Φ T ⊤ ( θ ∗ ) Φ ¨ U ) Z ) (120) D_U^2\widehat{\mathcal{L}}(\theta^*) = -\frac{2}{NT}\operatorname{tr}\left(Y_+^\top\ddot{\Phi}_U Z\right) + \frac{1}{NT}\operatorname{tr}\left(Z^\top\left(\ddot{\Phi}_U^\top\Phi_T(\theta^*) + 2\dot{\Phi}_U^\top\dot{\Phi}_U + \Phi_T^\top(\theta^*)\ddot{\Phi}_U\right)Z\right) \tag*{(120)} D U 2 L ( θ ∗ ) = − N T 2 tr ( Y + ⊤ Φ ¨ U Z ) + N T 1 tr ( Z ⊤ ( Φ ¨ U ⊤ Φ T ( θ ∗ ) + 2 Φ ˙ U ⊤ Φ ˙ U + Φ T ⊤ ( θ ∗ ) Φ ¨ U ) Z ) (120)
= − 2 N T tr ( Y + ⊤ Φ ¨ U Z ) + 2 N T tr ( Z ⊤ Φ ¨ U ⊤ Φ T ( θ ∗ ) Z ) + 2 N T tr ( Z ⊤ ( Φ ˙ U ⊤ Φ ˙ U ) Z ) (121) = -\frac{2}{NT}\operatorname{tr}\left(Y_+^\top\ddot{\Phi}_U Z\right) + \frac{2}{NT}\operatorname{tr}\left(Z^\top\ddot{\Phi}_U^\top\Phi_T(\theta^*)Z\right) + \frac{2}{NT}\operatorname{tr}\left(Z^\top(\dot{\Phi}_U^\top\dot{\Phi}_U)Z\right) \tag*{(121)} = − N T 2 tr ( Y + ⊤ Φ ¨ U Z ) + N T 2 tr ( Z ⊤ Φ ¨ U ⊤ Φ T ( θ ∗ ) Z ) + N T 2 tr ( Z ⊤ ( Φ ˙ U ⊤ Φ ˙ U ) Z ) (121)
= 2 N T ∥ Φ ¨ U Z ∥ F 2 − 2 N T tr ( Z ( Y + ⊤ − Z ⊤ Φ T ( θ ∗ ) ) Φ ¨ U ) , (122) = \frac{2}{NT}\|\ddot{\Phi}_U Z\|_F^2 - \frac{2}{NT}\operatorname{tr}\left(Z(Y_+^\top-Z^\top\Phi_T(\theta^*))\ddot{\Phi}_U\right), \tag*{(122)} = N T 2 ∥ Φ ¨ U Z ∥ F 2 − N T 2 tr ( Z ( Y + ⊤ − Z ⊤ Φ T ( θ ∗ )) Φ ¨ U ) , (122)
by using the identities tr ( A ⊤ B ) = tr ( B ⊤ A ) \operatorname{tr}(A^\top B)=\operatorname{tr}(B^\top A) tr ( A ⊤ B ) = tr ( B ⊤ A ) and the fact that the trace operator is linear and invariant under cyclic shifts. As we showed in (108) , Z ( Y + ⊤ − Z ⊤ Φ T ( θ ∗ ) ) = 0 Z(Y_+^\top-Z^\top\Phi_T(\theta^*))=0 Z ( Y + ⊤ − Z ⊤ Φ T ( θ ∗ )) = 0 due to the convexity of Frobenius norm. Therefore, the second term on the right-hand side of (122) vanishes exactly. Consequently, the second directional derivative of L ^ \widehat{\mathcal{L}} L at any minimizer θ ∗ ∈ Ω \theta^*\in\Omega θ ∗ ∈ Ω along U U U simplifies to
D U 2 L ^ ( θ ∗ ) = 2 N T ∥ Φ ˙ U Z ∥ F 2 . (123) D_U^2\widehat{\mathcal{L}}(\theta^*)=\frac{2}{NT}\|\dot{\Phi}_U Z\|_F^2. \tag*{(123)} D U 2 L ( θ ∗ ) = N T 2 ∥ Φ ˙ U Z ∥ F 2 . (123)
Moreover,
D U 2 L ^ ( θ ∗ ) = 2 N T ∥ vec ( Φ ˙ U Z ) ∥ 2 = 2 N T ∥ ( Z ⊤ ⊗ I ) vec ( Φ ˙ U ) ∥ 2 , (124) D_U^2\widehat{\mathcal{L}}(\theta^*)=\frac{2}{NT}\|\operatorname{vec}(\dot{\Phi}_U Z)\|^2=\frac{2}{NT}\|(Z^\top\otimes I)\operatorname{vec}(\dot{\Phi}_U)\|^2, \tag*{(124)} D U 2 L ( θ ∗ ) = N T 2 ∥ vec ( Φ ˙ U Z ) ∥ 2 = N T 2 ∥ ( Z ⊤ ⊗ I ) vec ( Φ ˙ U ) ∥ 2 , (124)
by using the identity vec ( Φ ˙ U Z ) = ( Z ⊤ ⊗ I ) vec ( Φ ˙ U ) \operatorname{vec}(\dot{\Phi}_U Z)=(Z^\top\otimes I)\operatorname{vec}(\dot{\Phi}_U) vec ( Φ ˙ U Z ) = ( Z ⊤ ⊗ I ) vec ( Φ ˙ U ) . As shown in (73) , the vectorized, first-order directional derivative of a continuously differentiable matrix-valued function of a matrix variable, which is taken in the direction vec ( U ) \operatorname{vec}(U) vec ( U ) , can be expressed in terms of its Jacobian. Consequently,
vec ( Φ ˙ U ) = K ∗ u , (125) \operatorname{vec}(\dot{\Phi}_U)=K^*u, \tag*{(125)} vec ( Φ ˙ U ) = K ∗ u , (125)
where K ∗ K^* K ∗ is the Jacobian of vec ( Φ T ( θ ) ) \operatorname{vec}(\Phi_T(\theta)) vec ( Φ T ( θ )) with respect to vec ( θ ) \operatorname{vec}(\theta) vec ( θ ) calculated at θ ∗ ∈ Ω \theta^*\in\Omega θ ∗ ∈ Ω , i.e., K ∗ = ∂ ∂ vec ( θ ) vec ( Φ T ( θ ) ) ∣ θ = θ ∗ K^*=\left.\frac{\partial}{\partial\operatorname{vec}(\theta)}\operatorname{vec}(\Phi_T(\theta))\right|_{\theta=\theta^*} K ∗ = ∂ vec ( θ ) ∂ vec ( Φ T ( θ )) θ = θ ∗ . Hence,
D U 2 L ^ ( θ ∗ ) = 2 N T u ⊤ K ∗ ⊤ ( Z ⊗ I ) ( Z ⊤ ⊗ I ) K ∗ u (126) D_U^2\widehat{\mathcal{L}}(\theta^*)=\frac{2}{NT}u^\top K^{*\top}(Z\otimes I)(Z^\top\otimes I)K^*u \tag*{(126)} D U 2 L ( θ ∗ ) = N T 2 u ⊤ K ∗ ⊤ ( Z ⊗ I ) ( Z ⊤ ⊗ I ) K ∗ u (126)
= 2 N T u ⊤ K ∗ ⊤ ( Z Z ⊤ ⊗ I ) K ∗ u (127) =\frac{2}{NT}u^\top K^{*\top}(ZZ^\top\otimes I)K^*u \tag*{(127)} = N T 2 u ⊤ K ∗ ⊤ ( Z Z ⊤ ⊗ I ) K ∗ u (127)
= 2 u ⊤ K ∗ ⊤ ( Σ ^ T ⊗ I ) K ∗ u . (128) =2u^\top K^{*\top}(\widehat{\Sigma}_T\otimes I)K^*u. \tag*{(128)} = 2 u ⊤ K ∗ ⊤ ( Σ T ⊗ I ) K ∗ u . (128)
Note that, by (65) , D U 2 L ^ ( θ ∗ ) = u ⊤ ∇ vec ( θ ) 2 L ^ ( θ ∗ ) u D_U^2\widehat{\mathcal{L}}(\theta^*)=u^\top\nabla^2_{\operatorname{vec}(\theta)}\widehat{\mathcal{L}}(\theta^*)u D U 2 L ( θ ∗ ) = u ⊤ ∇ vec ( θ ) 2 L ( θ ∗ ) u for every u ∈ R d 2 + 2 m d u\in\mathbb{R}^{d^2+2md} u ∈ R d 2 + 2 m d . Since (128) holds for every u ∈ R d 2 + 2 m d u\in\mathbb{R}^{d^2+2md} u ∈ R d 2 + 2 m d , we conclude that
∇ vec ( θ ) 2 L ^ ( θ ∗ ) = 2 K ∗ ⊤ ( Σ ^ T ⊗ I ) K ∗ , (129) \nabla^2_{\operatorname{vec}(\theta)}\widehat{\mathcal{L}}(\theta^*)=2K^{*\top}(\widehat{\Sigma}_T\otimes I)K^*, \tag*{(129)} ∇ vec ( θ ) 2 L ( θ ∗ ) = 2 K ∗ ⊤ ( Σ T ⊗ I ) K ∗ , (129)
where λ max ( ∇ vec ( θ ) 2 L ^ ( θ ) ) = λ max ( ∇ θ 2 L ^ ( θ ) ) \lambda_{\max}(\nabla^2_{\operatorname{vec}(\theta)}\widehat{\mathcal{L}}(\theta))=\lambda_{\max}(\nabla^2_\theta\widehat{\mathcal{L}}(\theta)) λ m a x ( ∇ vec ( θ ) 2 L ( θ )) = λ m a x ( ∇ θ 2 L ( θ )) for all θ ∈ Θ \theta\in\Theta θ ∈ Θ . This implies that for any θ ∗ ∈ Ω \theta^*\in\Omega θ ∗ ∈ Ω ,
λ max ( ∇ vec ( θ ) 2 L ^ ( θ ∗ ) ) = 2 λ max ( K ∗ ⊤ ( Σ ^ T ⊗ I ) K ∗ ) = 2 σ max 2 ( ( Σ ^ T 1 / 2 ⊗ I ) K ∗ ) . (130) \lambda_{\max}\left(\nabla^2_{\operatorname{vec}(\theta)}\widehat{\mathcal{L}}(\theta^*)\right)=2\lambda_{\max}\left(K^{*\top}(\widehat{\Sigma}_T\otimes I)K^*\right)=2\sigma_{\max}^2\left((\widehat{\Sigma}_T^{1/2}\otimes I)K^*\right). \tag*{(130)} λ m a x ( ∇ vec ( θ ) 2 L ( θ ∗ ) ) = 2 λ m a x ( K ∗ ⊤ ( Σ T ⊗ I ) K ∗ ) = 2 σ m a x 2 ( ( Σ T 1/2 ⊗ I ) K ∗ ) . (130)
As we defined in Lemma 1, M k ( θ ) : = W 3 W 1 k W 2 \mathbf{M}_k(\theta) := \mathbf{W}_3\mathbf{W}_1^k\mathbf{W}_2 M k ( θ ) := W 3 W 1 k W 2 for all k ∈ [ T − 1 ] 0 k \in[T-1]_0 k ∈ [ T − 1 ] 0 . By using (68) , the first directional derivative of M k ( θ ) \mathbf{M}_k(\theta) M k ( θ ) along U \mathbf{U} U is
D U M k ( θ ) = U 3 W 1 k W 2 + W 3 W 1 k U 2 + ∑ ℓ = 0 k − 1 W 3 W 1 ℓ U 1 W 1 k − 1 − ℓ W 2 . (131) D_{\mathbf{U}}\mathbf{M}_k(\theta)=\mathbf{U}_3\mathbf{W}_1^k\mathbf{W}_2+\mathbf{W}_3\mathbf{W}_1^k\mathbf{U}_2+\sum_{\ell=0}^{k-1}\mathbf{W}_3\mathbf{W}_1^\ell\mathbf{U}_1\mathbf{W}_1^{k-1-\ell}\mathbf{W}_2. \tag*{(131)} D U M k ( θ ) = U 3 W 1 k W 2 + W 3 W 1 k U 2 + ℓ = 0 ∑ k − 1 W 3 W 1 ℓ U 1 W 1 k − 1 − ℓ W 2 . (131)
If we vectorize the first directional derivative of M k ( θ ) \mathbf{M}_k(\theta) M k ( θ ) along U \mathbf{U} U , we obtain
vec ( D U M k ( θ ) ) = K 1 , k vec ( U 1 ) + K 2 , k vec ( U 2 ) + K 3 , k vec ( U 3 ) , (132) \operatorname{vec}\left(D_{\mathbf{U}}\mathbf{M}_k(\theta)\right)=\mathbf{K}_{1,k}\operatorname{vec}(\mathbf{U}_1)+\mathbf{K}_{2,k}\operatorname{vec}(\mathbf{U}_2)+\mathbf{K}_{3,k}\operatorname{vec}(\mathbf{U}_3), \tag*{(132)} vec ( D U M k ( θ ) ) = K 1 , k vec ( U 1 ) + K 2 , k vec ( U 2 ) + K 3 , k vec ( U 3 ) , (132)
by using the identity vec ( A X B ) = ( B T ⊗ A ) vec ( X ) \operatorname{vec}(\mathbf{AXB})=(\mathbf{B}^{\mathsf{T}}\otimes\mathbf{A})\operatorname{vec}(\mathbf{X}) vec ( AXB ) = ( B T ⊗ A ) vec ( X ) , where
K 1 , k = ∑ ℓ = 0 k − 1 [ ( W 1 k − 1 − ℓ W 2 ) T ⊗ W 3 W 1 ℓ ] , K 2 , k = I ⊗ W 3 W 1 k , K 3 , k = ( W 1 k W 2 ) T ⊗ I . (133) \mathbf{K}_{1,k}=\sum_{\ell=0}^{k-1}\left[\left(\mathbf{W}_1^{k-1-\ell}\mathbf{W}_2\right)^{\mathsf{T}}\otimes\mathbf{W}_3\mathbf{W}_1^\ell\right],\quad\mathbf{K}_{2,k}=\mathbf{I}\otimes\mathbf{W}_3\mathbf{W}_1^k,\quad\mathbf{K}_{3,k}=\left(\mathbf{W}_1^k\mathbf{W}_2\right)^{\mathsf{T}}\otimes\mathbf{I}. \tag*{(133)} K 1 , k = ℓ = 0 ∑ k − 1 [ ( W 1 k − 1 − ℓ W 2 ) T ⊗ W 3 W 1 ℓ ] , K 2 , k = I ⊗ W 3 W 1 k , K 3 , k = ( W 1 k W 2 ) T ⊗ I . (133)
Note that K ∗ = ∂ ∂ vec ( θ ) vec ( Φ T ( θ ) ) ∣ θ = θ ∗ \mathbf{K}^*=\left.\frac{\partial}{\partial\operatorname{vec}(\theta)}\operatorname{vec}\left(\boldsymbol{\Phi}_{T}(\theta)\right)\right|_{\theta=\theta^*} K ∗ = ∂ vec ( θ ) ∂ vec ( Φ T ( θ ) ) θ = θ ∗ such that
K = ∂ vec ( Φ T ( θ ) ) ∂ vec ( θ ) = [ ∂ vec ( M 0 ( θ ) ) ∂ vec ( θ ) ∂ vec ( M 1 ( θ ) ) ∂ vec ( θ ) ⋮ ∂ vec ( M T − 1 ( θ ) ) ∂ vec ( θ ) ] . (134) \mathbf{K}=\frac{\partial\operatorname{vec}\left(\boldsymbol{\Phi}_{T}(\theta)\right)}{\partial\operatorname{vec}(\theta)}=
\begin{bmatrix}
\frac{\partial\operatorname{vec}(\mathbf{M}_0(\theta))}{\partial\operatorname{vec}(\theta)}\\
\frac{\partial\operatorname{vec}(\mathbf{M}_1(\theta))}{\partial\operatorname{vec}(\theta)}\\
\vdots\\
\frac{\partial\operatorname{vec}(\mathbf{M}_{T-1}(\theta))}{\partial\operatorname{vec}(\theta)}
\end{bmatrix}. \tag*{(134)} K = ∂ vec ( θ ) ∂ vec ( Φ T ( θ ) ) = ∂ vec ( θ ) ∂ vec ( M 0 ( θ )) ∂ vec ( θ ) ∂ vec ( M 1 ( θ )) ⋮ ∂ vec ( θ ) ∂ vec ( M T − 1 ( θ )) . (134)
As we showed in Remark 18,
vec ( D U M k ( θ ) ) = ∂ vec ( M k ( θ ) ) ∂ vec ( θ ) u . (135) \operatorname{vec}\left(D_{\mathbf{U}}\mathbf{M}_k(\theta)\right)=\frac{\partial\operatorname{vec}(\mathbf{M}_k(\theta))}{\partial\operatorname{vec}(\theta)}\mathbf{u}. \tag*{(135)} vec ( D U M k ( θ ) ) = ∂ vec ( θ ) ∂ vec ( M k ( θ )) u . (135)
Therefore, if we stack K i , k \mathbf{K}_{i,k} K i , k vertically for every k ∈ [ T − 1 ] 0 k\in[T-1]_0 k ∈ [ T − 1 ] 0 and repeat it for every i ∈ { 1 , 2 , 3 } i\in\{1,2,3\} i ∈ { 1 , 2 , 3 } , we can form K \mathbf{K} K . Then, evaluating at θ = θ ∗ \theta=\theta^* θ = θ ∗ gives
K ∗ = [ K 1 , 0 ∗ K 2 , 0 ∗ K 3 , 0 ∗ K 1 , 1 ∗ K 2 , 1 ∗ K 3 , 1 ∗ ⋮ ⋮ ⋮ K 1 , T − 1 ∗ K 2 , T − 1 ∗ K 3 , T − 1 ∗ ] , (136) \mathbf{K}^*=
\begin{bmatrix}
\mathbf{K}_{1,0}^* & \mathbf{K}_{2,0}^* & \mathbf{K}_{3,0}^*\\
\mathbf{K}_{1,1}^* & \mathbf{K}_{2,1}^* & \mathbf{K}_{3,1}^*\\
\vdots& \vdots& \vdots\\
\mathbf{K}_{1,T-1}^* & \mathbf{K}_{2,T-1}^* & \mathbf{K}_{3,T-1}^*
\end{bmatrix}, \tag*{(136)} K ∗ = K 1 , 0 ∗ K 1 , 1 ∗ ⋮ K 1 , T − 1 ∗ K 2 , 0 ∗ K 2 , 1 ∗ ⋮ K 2 , T − 1 ∗ K 3 , 0 ∗ K 3 , 1 ∗ ⋮ K 3 , T − 1 ∗ , (136)
with K 1 , 0 ∗ = 0 \mathbf{K}_{1,0}^*=0 K 1 , 0 ∗ = 0 .
Proof of prop:rescaling
Proof. Let θ ∗ = ( W 1 ∗ , W 2 ∗ , W 3 ∗ ) ∈ Ω \theta^*=(\mathbf{W}_1^*,\mathbf{W}_2^*,\mathbf{W}_3^*)\in\Omega θ ∗ = ( W 1 ∗ , W 2 ∗ , W 3 ∗ ) ∈ Ω and c ∈ R ∖ { 0 } c\in\mathbb{R}\setminus\{0\} c ∈ R ∖ { 0 } . Note that θ c ∗ = θ S ∗ \theta_c^*=\theta_S^* θ c ∗ = θ S ∗ with S = c I d ∈ GL d ( R ) S=c\mathbf{I}_d\in\operatorname{GL}_d(\mathbb{R}) S = c I d ∈ GL d ( R ) . Therefore, by Proposition 4, M i ( θ c ∗ ) = M i ( θ ∗ ) \mathbf{M}_i(\theta_c^*)=\mathbf{M}_i(\theta^*) M i ( θ c ∗ ) = M i ( θ ∗ ) for every i ≥ 0 i\ge0 i ≥ 0 , and θ c ∗ ∈ Ω \theta_c^*\in\Omega θ c ∗ ∈ Ω .
We now show that ρ co ( θ c ∗ ) = ρ co ( θ ∗ ) \rho_{\operatorname{co}}(\theta_c^*)=\rho_{\operatorname{co}}(\theta^*) ρ co ( θ c ∗ ) = ρ co ( θ ∗ ) . Since the recurrent weight matrix of θ c ∗ \theta_c^* θ c ∗ is W 1 ∗ \mathbf{W}_1^* W 1 ∗ , the two parameterizations have the same spectrum. Furthermore, for every λ ∈ spec ( W 1 ∗ ) \lambda\in\operatorname{spec}(\mathbf{W}_1^*) λ ∈ spec ( W 1 ∗ ) ,
[ λ I d − W 1 ∗ c W 2 ∗ ] = [ λ I d − W 1 ∗ W 2 ∗ ] [ I d 0 0 c I m ] , (137) \left[\lambda\mathbf{I}_d-\mathbf{W}_1^*\quad c\mathbf{W}_2^*\right]
=
\left[\lambda\mathbf{I}_d-\mathbf{W}_1^*\quad\mathbf{W}_2^*\right]
\begin{bmatrix}
\mathbf{I}_d & 0\\
0 & c\mathbf{I}_m
\end{bmatrix}, \tag*{(137)} [ λ I d − W 1 ∗ c W 2 ∗ ] = [ λ I d − W 1 ∗ W 2 ∗ ] [ I d 0 0 c I m ] , (137)
\begin{bmatrix}
\lambda\mathbf{I}_d-\mathbf{W}_1^*\\
c^{-1}\mathbf{W}_3^*
\end{bmatrix}
=
\begin{bmatrix}
\mathbf{I}_d & 0\\
0 & c^{-1}\mathbf{I}_m
\end{bmatrix}
\begin{bmatrix}
\lambda\mathbf{I}_d-\mathbf{W}_1^*\\
\mathbf{W}_3^*
\end{bmatrix}. \tag*{(138)}\end{bmatrix}
Since the block-diagonal matrices on the right-hand sides have full rank,
rank ( [ λ I d − W 1 ∗ c W 2 ∗ ] ) = rank ( [ λ I d − W 1 ∗ W 2 ∗ ] ) (139) \operatorname{rank}\left(\begin{bmatrix}\lambda I_d-W_1^{*} & cW_2^{*}\end{bmatrix}\right)=\operatorname{rank}\left(\begin{bmatrix}\lambda I_d-W_1^{*} & W_2^{*}\end{bmatrix}\right) \tag*{(139)} rank ( [ λ I d − W 1 ∗ c W 2 ∗ ] ) = rank ( [ λ I d − W 1 ∗ W 2 ∗ ] ) (139)
and
rank ( [ λ I d − W 1 ∗ c − 1 W 3 ∗ ] ) = rank ( [ λ I d − W 1 ∗ W 3 ∗ ] ) . (140) \operatorname{rank}\left(\begin{bmatrix}\lambda I_d-W_1^{*}\\ c^{-1}W_3^{*}\end{bmatrix}\right)=\operatorname{rank}\left(\begin{bmatrix}\lambda I_d-W_1^{*}\\ W_3^{*}\end{bmatrix}\right). \tag*{(140)} rank ( [ λ I d − W 1 ∗ c − 1 W 3 ∗ ] ) = rank ( [ λ I d − W 1 ∗ W 3 ∗ ] ) . (140)
Hence, ρ c o ( θ c ∗ ) = ρ c o ( θ ∗ ) \rho_{\mathrm{co}}(\theta_c^{*})=\rho_{\mathrm{co}}(\theta^{*}) ρ co ( θ c ∗ ) = ρ co ( θ ∗ ) .
Next, we compute the Jacobian of vec ( Φ T ( θ ) ) \operatorname{vec}(\Phi_T(\theta)) vec ( Φ T ( θ )) at θ c ∗ \theta_c^{*} θ c ∗ . Since θ c ∗ ∈ Ω \theta_c^{*}\in\Omega θ c ∗ ∈ Ω , Theorem 11 gives its blocks as
∑ ℓ = 0 k − 1 [ ( W 1 ∗ k − 1 − ℓ c W 2 ∗ ) T ⊗ c − 1 W 3 ∗ W 1 ∗ ℓ ] = K 1 , k ∗ , (141) \sum_{\ell=0}^{k-1}\left[\left(W_1^{*\,k-1-\ell}cW_2^{*}\right)^{\mathsf{T}}\otimes c^{-1}W_3^{*}W_1^{*\,\ell}\right]=K_{1,k}^{*}, \tag*{(141)} ℓ = 0 ∑ k − 1 [ ( W 1 ∗ k − 1 − ℓ c W 2 ∗ ) T ⊗ c − 1 W 3 ∗ W 1 ∗ ℓ ] = K 1 , k ∗ , (141)
I m ⊗ c − 1 W 3 ∗ W 1 ∗ k = c − 1 K 2 , k ∗ , (142) I_m\otimes c^{-1}W_3^{*}W_1^{*\,k}=c^{-1}K_{2,k}^{*}, \tag*{(142)} I m ⊗ c − 1 W 3 ∗ W 1 ∗ k = c − 1 K 2 , k ∗ , (142)
( W 1 ∗ k c W 2 ∗ ) T ⊗ I m = c K 3 , k ∗ (143) \left(W_1^{*\,k}cW_2^{*}\right)^{\mathsf{T}}\otimes I_m=cK_{3,k}^{*} \tag*{(143)} ( W 1 ∗ k c W 2 ∗ ) T ⊗ I m = c K 3 , k ∗ (143)
for every k ∈ [ T − 1 ] 0 k\in[T-1]_0 k ∈ [ T − 1 ] 0 . Hence, the Jacobian at θ c ∗ \theta_c^{*} θ c ∗ is K ∗ D c K^{*}D_c K ∗ D c , where D c : = diag ( I d 2 , c − 1 I d m , c I d m ) D_c:=\operatorname{diag}(I_{d^2},c^{-1}I_{dm},cI_{dm}) D c := diag ( I d 2 , c − 1 I d m , c I d m ) . By (129) ,
∇ vec ( θ ) 2 L ^ ( θ c ∗ ) = 2 D c K ∗ T ( Σ ^ T ⊗ I m ) K ∗ D c . (144) \nabla_{\operatorname{vec}(\theta)}^{2}\widehat{\mathcal{L}}(\theta_c^{*})=2D_cK^{*\mathsf{T}}\left(\widehat{\Sigma}_T\otimes I_m\right)K^{*}D_c. \tag*{(144)} ∇ vec ( θ ) 2 L ( θ c ∗ ) = 2 D c K ∗ T ( Σ T ⊗ I m ) K ∗ D c . (144)
Let U 3 ∈ R m × d U_3\in\mathbb{R}^{m\times d} U 3 ∈ R m × d satisfy ∥ U 3 ∥ F = 1 \lVert U_3\rVert_F=1 ∥ U 3 ∥ F = 1 , and define u : = [ 0 T 0 T vec ( U 3 ) T ] T \mathbf{u}:=[0^{\mathsf{T}}\ 0^{\mathsf{T}}\ \operatorname{vec}(U_3)^{\mathsf{T}}]^{\mathsf{T}} u := [ 0 T 0 T vec ( U 3 ) T ] T . Then, D c u = c u D_c\mathbf{u}=c\mathbf{u} D c u = c u . Moreover, K 3 , k ∗ vec ( U 3 ) = vec ( U 3 W 1 ∗ k W 2 ∗ ) K_{3,k}^{*}\operatorname{vec}(U_3)=\operatorname{vec}(U_3W_1^{*\,k}W_2^{*}) K 3 , k ∗ vec ( U 3 ) = vec ( U 3 W 1 ∗ k W 2 ∗ ) for every k ∈ [ T − 1 ] 0 k\in[T-1]_0 k ∈ [ T − 1 ] 0 by the identity vec ( A X B ) = ( B T ⊗ A ) vec ( X ) \operatorname{vec}(AXB)=(B^{\mathsf{T}}\otimes A)\operatorname{vec}(X) vec ( A X B ) = ( B T ⊗ A ) vec ( X ) . Stacking these vectors vertically gives K ∗ u = vec ( U 3 C T ( θ ∗ ) ) K^{*}\mathbf{u}=\operatorname{vec}(U_3C_T(\theta^{*})) K ∗ u = vec ( U 3 C T ( θ ∗ )) . Therefore, by (144) ,
u T ∇ vec ( θ ) 2 L ^ ( θ c ∗ ) u = 2 c 2 vec ( U 3 C T ( θ ∗ ) ) T ( Σ ^ T ⊗ I m ) vec ( U 3 C T ( θ ∗ ) ) (145) \mathbf{u}^{\mathsf{T}}\nabla_{\operatorname{vec}(\theta)}^{2}\widehat{\mathcal{L}}(\theta_c^{*})\mathbf{u}=2c^2\operatorname{vec}(U_3C_T(\theta^{*}))^{\mathsf{T}}\left(\widehat{\Sigma}_T\otimes I_m\right)\operatorname{vec}(U_3C_T(\theta^{*})) \tag*{(145)} u T ∇ vec ( θ ) 2 L ( θ c ∗ ) u = 2 c 2 vec ( U 3 C T ( θ ∗ ) ) T ( Σ T ⊗ I m ) vec ( U 3 C T ( θ ∗ )) (145)
= 2 c 2 tr ( U 3 C T ( θ ∗ ) Σ ^ T C T ( θ ∗ ) T U 3 T ) (146) =2c^2\operatorname{tr}\left(U_3C_T(\theta^{*})\widehat{\Sigma}_TC_T(\theta^{*})^{\mathsf{T}}U_3^{\mathsf{T}}\right) \tag*{(146)} = 2 c 2 tr ( U 3 C T ( θ ∗ ) Σ T C T ( θ ∗ ) T U 3 T ) (146)
≥ 2 c 2 λ min ( Σ ^ T ) ∥ U 3 C T ( θ ∗ ) ∥ F 2 , (147) \ge2c^2\lambda_{\min}(\widehat{\Sigma}_T)\lVert U_3C_T(\theta^{*})\rVert_F^2, \tag*{(147)} ≥ 2 c 2 λ m i n ( Σ T ) ∥ U 3 C T ( θ ∗ ) ∥ F 2 , (147)
where we use the identity vec ( A ) T ( B ⊗ I m ) vec ( A ) = tr ( A B A T ) \operatorname{vec}(A)^{\mathsf{T}}(B\otimes I_m)\operatorname{vec}(A)=\operatorname{tr}(ABA^{\mathsf{T}}) vec ( A ) T ( B ⊗ I m ) vec ( A ) = tr ( A B A T ) for every symmetric matrix B B B .
Now, let x ∈ R d \mathbf{x}\in\mathbb{R}^d x ∈ R d be a unit left singular vector of C T ( θ ∗ ) C_T(\theta^{*}) C T ( θ ∗ ) associated with its largest singular value, let a ∈ R m \mathbf{a}\in\mathbb{R}^m a ∈ R m be a unit vector, and choose U 3 = a x T U_3=\mathbf{a}\mathbf{x}^{\mathsf{T}} U 3 = a x T . Note that for any vectors a \mathbf{a} a and b \mathbf{b} b ,
∥ a b T ∥ F 2 = tr ( a b T b a T ) = tr ( a T a b T b ) = ∥ a ∥ 2 2 ∥ b ∥ 2 2 . (148) \lVert\mathbf{a}\mathbf{b}^{\mathsf{T}}\rVert_F^2=\operatorname{tr}(\mathbf{a}\mathbf{b}^{\mathsf{T}}\mathbf{b}\mathbf{a}^{\mathsf{T}})=\operatorname{tr}(\mathbf{a}^{\mathsf{T}}\mathbf{a}\mathbf{b}^{\mathsf{T}}\mathbf{b})=\lVert\mathbf{a}\rVert_2^2\lVert\mathbf{b}\rVert_2^2. \tag*{(148)} ∥ a b T ∥ F 2 = tr ( a b T b a T ) = tr ( a T a b T b ) = ∥ a ∥ 2 2 ∥ b ∥ 2 2 . (148)
Then, ∥ U 3 ∥ F = 1 \lVert U_3\rVert_F=1 ∥ U 3 ∥ F = 1 and ∥ U 3 C T ( θ ∗ ) ∥ F = ∥ C T ( θ ∗ ) T x ∥ 2 = σ max ( C T ( θ ∗ ) ) \lVert U_3C_T(\theta^{*})\rVert_F=\lVert C_T(\theta^{*})^{\mathsf{T}}\mathbf{x}\rVert_2=\sigma_{\max}(C_T(\theta^{*})) ∥ U 3 C T ( θ ∗ ) ∥ F = ∥ C T ( θ ∗ ) T x ∥ 2 = σ m a x ( C T ( θ ∗ )) . By the Rayleigh-quotient characterization in Remark 17,
λ max ( ∇ 2 L ^ ( θ c ∗ ) ) ≥ 2 c 2 λ min ( Σ ^ T ) σ max 2 ( C T ( θ ∗ ) ) . (149) \lambda_{\max}\left(\nabla^2\widehat{\mathcal{L}}(\theta_c^{*})\right)\ge2c^2\lambda_{\min}(\widehat{\Sigma}_T)\sigma_{\max}^2(C_T(\theta^{*})). \tag*{(149)} λ m a x ( ∇ 2 L ( θ c ∗ ) ) ≥ 2 c 2 λ m i n ( Σ T ) σ m a x 2 ( C T ( θ ∗ )) . (149)
Similarly, let U 2 ∈ R d × m U_2\in\mathbb{R}^{d\times m} U 2 ∈ R d × m satisfy ∥ U 2 ∥ F = 1 \lVert U_2\rVert_F=1 ∥ U 2 ∥ F = 1 , and define u : = [ 0 T vec ( U 2 ) T 0 T ] T \mathbf{u}:=[0^{\mathsf{T}}\ \operatorname{vec}(U_2)^{\mathsf{T}}\ 0^{\mathsf{T}}]^{\mathsf{T}} u := [ 0 T vec ( U 2 ) T 0 T ] T . Then, D c u = c − 1 u D_c\mathbf{u}=c^{-1}\mathbf{u} D c u = c − 1 u , and K ∗ u = vec ( Γ ) K^{*}\mathbf{u}=\operatorname{vec}(\Gamma) K ∗ u = vec ( Γ ) , where
Γ : = [ W 3 ∗ U 2 W 3 ∗ W 1 ∗ U 2 ⋯ W 3 ∗ W 1 ∗ T − 1 U 2 ] ∈ R m × m T . (150) \Gamma:=\begin{bmatrix}W_3^{*}U_2 & W_3^{*}W_1^{*}U_2 & \cdots& W_3^{*}W_1^{*\,T-1}U_2\end{bmatrix}\in\mathbb{R}^{m\times mT}. \tag*{(150)} Γ := [ W 3 ∗ U 2 W 3 ∗ W 1 ∗ U 2 ⋯ W 3 ∗ W 1 ∗ T − 1 U 2 ] ∈ R m × m T . (150)
By the same argument,
u T ∇ 2 L ^ ( θ ∗ ) u ≥ 2 c − 2 λ min ( Σ ^ T ) ∥ Γ ∥ F 2 (151) \mathbf{u}^{\mathsf{T}}\nabla^{2}\widehat{\mathcal{L}}(\theta^{*})\mathbf{u} \ge2c^{-2}\lambda_{\min}(\widehat{\Sigma}_{T})\lVert\boldsymbol{\Gamma}\rVert_{F}^{2} \tag*{(151)} u T ∇ 2 L ( θ ∗ ) u ≥ 2 c − 2 λ m i n ( Σ T ) ∥ Γ ∥ F 2 (151)
= 2 c − 2 λ min ( Σ ^ T ) ∑ k = 0 T − 1 ∥ W ^ 3 W ^ 1 k U 2 ∥ F 2 (152) = 2c^{-2}\lambda_{\min}(\widehat{\Sigma}_{T})\sum_{k=0}^{T-1}\lVert\widehat{W}_{3}\widehat{W}_{1}^{k}U_{2}\rVert_{F}^{2} \tag*{(152)} = 2 c − 2 λ m i n ( Σ T ) k = 0 ∑ T − 1 ∥ W 3 W 1 k U 2 ∥ F 2 (152)
= 2 c − 2 λ min ( Σ ^ T ) ∥ O T ( θ ∗ ) U 2 ∥ F 2 . (153) = 2c^{-2}\lambda_{\min}(\widehat{\Sigma}_{T})\lVert\mathcal{O}_{T}(\theta^{*})U_{2}\rVert_{F}^{2}. \tag*{(153)} = 2 c − 2 λ m i n ( Σ T ) ∥ O T ( θ ∗ ) U 2 ∥ F 2 . (153)
Again, by the same argument, let y ∈ R d \mathbf{y} \in\mathbb{R}^{d} y ∈ R d be a unit right singular vector of O T ( θ ∗ ) \mathcal{O}_{T}(\theta^{*}) O T ( θ ∗ ) associated with its largest singular value, and choose U 2 = y a T U_{2}=\mathbf{y}\mathbf{a}^{\mathsf{T}} U 2 = y a T . Then, ∥ U 2 ∥ F = 1 \lVert U_{2}\rVert_{F}=1 ∥ U 2 ∥ F = 1 and ∥ O T ( θ ∗ ) U 2 ∥ F = σ max ( O T ( θ ∗ ) ) \lVert\mathcal{O}_{T}(\theta^{*})U_{2}\rVert_{F}=\sigma_{\max}(\mathcal{O}_{T}(\theta^{*})) ∥ O T ( θ ∗ ) U 2 ∥ F = σ m a x ( O T ( θ ∗ )) . Therefore,
λ max ( ∇ 2 L ^ ( θ ∗ ) ) ≥ 2 λ min ( Σ ^ T ) max { c 2 σ max 2 ( C T ( θ ∗ ) ) , c − 2 σ max 2 ( O T ( θ ∗ ) ) } . (154) \lambda_{\max}\left(\nabla^{2}\widehat{\mathcal{L}}(\theta^{*})\right) \ge2\lambda_{\min}(\widehat{\Sigma}_{T})\max\left\{c^{2}\sigma_{\max}^{2}\left(\mathcal{C}_{T}(\theta^{*})\right),c^{-2}\sigma_{\max}^{2}\left(\mathcal{O}_{T}(\theta^{*})\right)\right\}. \tag*{(154)} λ m a x ( ∇ 2 L ( θ ∗ ) ) ≥ 2 λ m i n ( Σ T ) max { c 2 σ m a x 2 ( C T ( θ ∗ ) ) , c − 2 σ m a x 2 ( O T ( θ ∗ ) ) } . (154)
Proof of prop:unbounded-rho
Proof. Let λ ∈ R ∖ { 0 } \lambda\in\mathbb{R}\setminus\{0\} λ ∈ R ∖ { 0 } . Since Σ ^ T \widehat{\Sigma}_{T} Σ T has full rank, Φ ∗ = [ M 0 ∗ ⋯ M T − 1 ∗ ] ∈ R m × m T \Phi^{*}=[M_{0}^{*}\ \cdots\ M_{T-1}^{*}]\in\mathbb{R}^{m\times mT} Φ ∗ = [ M 0 ∗ ⋯ M T − 1 ∗ ] ∈ R m × m T is the unique minimizer of f f f defined in (92) . As we showed in the proof of Lemma 9 , when d ≥ m T d\ge mT d ≥ m T , every θ ∈ Θ \theta\in\Theta θ ∈ Θ that satisfies Φ T ( θ ) = Φ ∗ \Phi_{T}(\theta)=\Phi^{*} Φ T ( θ ) = Φ ∗ is a global minimizer of L ^ \widehat{\mathcal{L}} L . Furthermore, we denote the standard basis vectors of R T \mathbb{R}^{T} R T and R m \mathbb{R}^{m} R m by { e 1 , … , e T } \{\mathbf{e}_{1},\ldots,\mathbf{e}_{T}\} { e 1 , … , e T } and { v 1 , … , v m } \{\mathbf{v}_{1},\ldots,\mathbf{v}_{m}\} { v 1 , … , v m } , respectively. We consider the cases d > m T d>mT d > m T and d = m T d=mT d = m T separately.
Case d > m T d>mT d > m T . Let r : = d − m T ≥ 1 r:=d-mT\ge1 r := d − m T ≥ 1 . Let us define
Ψ : = [ v 1 v 1 T λ v 1 v 1 T ⋯ λ T − 1 v 1 v 1 T ] ∈ R m × m T , (155) \Psi:=\left[\mathbf{v}_{1}\mathbf{v}_{1}^{\mathsf{T}}\ \ \lambda\mathbf{v}_{1}\mathbf{v}_{1}^{\mathsf{T}}\ \ \cdots\ \ \lambda^{T-1}\mathbf{v}_{1}\mathbf{v}_{1}^{\mathsf{T}}\right]\in\mathbb{R}^{m\times mT}, \tag*{(155)} Ψ := [ v 1 v 1 T λ v 1 v 1 T ⋯ λ T − 1 v 1 v 1 T ] ∈ R m × m T , (155)
to choose a particular parameterization θ ^ = ( W ^ 1 , W ^ 2 , W ^ 3 ) ∈ Θ \widehat{\theta}=(\widehat{W}_{1},\widehat{W}_{2},\widehat{W}_{3})\in\Theta θ = ( W 1 , W 2 , W 3 ) ∈ Θ such that
W ^ 1 = [ L T ⊗ I m 0 0 0 λ 0 0 0 0 ( r − 1 ) × ( r − 1 ) ] , W ^ 2 = [ e 1 ⊗ I m v 1 T 0 ( r − 1 ) × m ] , W ^ 3 = [ Φ ∗ − Ψ v 1 0 m × ( r − 1 ) ] , (156) \widehat{W}_{1}=
\begin{bmatrix}
L_{T}\otimes I_{m} & 0 & 0\\
0 & \lambda& 0\\
0 & 0 & 0_{(r-1)\times(r-1)}
\end{bmatrix},
\qquad
\widehat{W}_{2}=
\begin{bmatrix}
\mathbf{e}_{1}\otimes I_{m}\\
\mathbf{v}_{1}^{\mathsf{T}}\\
0_{(r-1)\times m}
\end{bmatrix},
\qquad
\widehat{W}_{3}=
\left[\Phi^{*}-\Psi\ \ \mathbf{v}_{1}\ \ 0_{m\times(r-1)}\right], \tag*{(156)} W 1 = L T ⊗ I m 0 0 0 λ 0 0 0 0 ( r − 1 ) × ( r − 1 ) , W 2 = e 1 ⊗ I m v 1 T 0 ( r − 1 ) × m , W 3 = [ Φ ∗ − Ψ v 1 0 m × ( r − 1 ) ] , (156)
where the last block row and block column are omitted if r = 1 r=1 r = 1 .
We first show that θ ^ ∈ Ω \widehat{\theta}\in\Omega θ ∈ Ω . Since W ^ 1 \widehat{W}_{1} W 1 is block diagonal, ( L T ⊗ I m ) k = L T k ⊗ I m (L_{T}\otimes I_{m})^{k}=L_{T}^{k}\otimes I_{m} ( L T ⊗ I m ) k = L T k ⊗ I m by the mixed-product property of the Kronecker product. Furthermore, L T k e 1 = e k + 1 L_{T}^{k}\mathbf{e}_{1}=\mathbf{e}_{k+1} L T k e 1 = e k + 1 by Remark 22 , and we have
W ^ 1 k W ^ 2 = [ e k + 1 ⊗ I m λ k v 1 T 0 ( r − 1 ) × m ] (157) \widehat{W}_{1}^{k}\widehat{W}_{2}=
\begin{bmatrix}
\mathbf{e}_{k+1}\otimes I_{m}\\
\lambda^{k}\mathbf{v}_{1}^{\mathsf{T}}\\
0_{(r-1)\times m}
\end{bmatrix} \tag*{(157)} W 1 k W 2 = e k + 1 ⊗ I m λ k v 1 T 0 ( r − 1 ) × m (157)
for every k ∈ [ T − 1 ] 0 k\in[T-1]_{0} k ∈ [ T − 1 ] 0 . Hence,
W ^ 3 W ^ 1 k W ^ 2 = ( Φ ∗ − Ψ ) ( e k + 1 ⊗ I m ) + λ k v 1 v 1 T = M k ∗ − λ k v 1 v 1 T + λ k v 1 v 1 T = M k ∗ (158) \widehat{W}_{3}\widehat{W}_{1}^{k}\widehat{W}_{2}=(\Phi^{*}-\Psi)(\mathbf{e}_{k+1}\otimes I_{m})+\lambda^{k}\mathbf{v}_{1}\mathbf{v}_{1}^{\mathsf{T}}=M_{k}^{*}-\lambda^{k}\mathbf{v}_{1}\mathbf{v}_{1}^{\mathsf{T}}+\lambda^{k}\mathbf{v}_{1}\mathbf{v}_{1}^{\mathsf{T}}=M_{k}^{*} \tag*{(158)} W 3 W 1 k W 2 = ( Φ ∗ − Ψ ) ( e k + 1 ⊗ I m ) + λ k v 1 v 1 T = M k ∗ − λ k v 1 v 1 T + λ k v 1 v 1 T = M k ∗ (158)
for every k ∈ [ T − 1 ] 0 k\in[T-1]_{0} k ∈ [ T − 1 ] 0 . Therefore, Φ T ( θ ^ ) = Φ ∗ \Phi_{T}(\widehat{\theta})=\Phi^{*} Φ T ( θ ) = Φ ∗ , and hence θ ^ ∈ Ω \widehat{\theta}\in\Omega θ ∈ Ω .
We now show that ρ c o ( θ ^ ) = ∣ λ ∣ \rho_{\mathrm{co}}(\widehat{\theta})=|\lambda| ρ co ( θ ) = ∣ λ ∣ . Since the T T T th power of L T ⊗ I m L_{T}\otimes I_{m} L T ⊗ I m is L T T ⊗ I m = 0 L_{T}^{T}\otimes I_{m}=0 L T T ⊗ I m = 0 by Remark 23 , the matrix L T ⊗ I m L_{T}\otimes I_{m} L T ⊗ I m is nilpotent. Hence, by Lemma 25 , its only eigenvalue is 0 0 0 . Consequently, since W ^ 1 \widehat{W}_{1} W 1 is a block-diagonal matrix, spec ( W ^ 1 ) = { 0 , λ } \operatorname{spec}(\widehat{W}_{1})=\{0,\lambda\} spec ( W 1 ) = { 0 , λ } . Let q = [ q 1 T q 2 q 3 T ] T ∈ R d \mathbf{q} = [\mathbf{q}_1^{\mathsf{T}}\quad q_2\quad\mathbf{q}_3^{\mathsf{T}}]^{\mathsf{T}} \in\mathbb{R}^{d} q = [ q 1 T q 2 q 3 T ] T ∈ R d be a vector, where q 1 ∈ R m T \mathbf{q}_1 \in\mathbb{R}^{mT} q 1 ∈ R m T , q 2 ∈ R q_2 \in\mathbb{R} q 2 ∈ R , and q 3 ∈ R r − 1 \mathbf{q}_3 \in\mathbb{R}^{r-1} q 3 ∈ R r − 1 , that satisfies q T [ λ I d − W ^ 1 W ^ 2 ] = 0 \mathbf{q}^{\mathsf{T}}[\lambda I_d-\widehat{W}_1\ \widehat{W}_2]=0 q T [ λ I d − W 1 W 2 ] = 0 . Note that λ I m T − L T ⊗ I m \lambda I_{mT}-L_T\otimes I_m λ I m T − L T ⊗ I m is nonsingular for any λ ≠ 0 \lambda\ne0 λ = 0 . Then, q 1 T ( λ I m T − L T ⊗ I m ) = 0 \mathbf{q}_1^{\mathsf{T}}(\lambda I_{mT}-L_T\otimes I_m)=0 q 1 T ( λ I m T − L T ⊗ I m ) = 0 and λ q 3 T = 0 \lambda\mathbf{q}_3^{\mathsf{T}}=0 λ q 3 T = 0 imply that q 1 = 0 \mathbf{q}_1=0 q 1 = 0 and q 3 = 0 \mathbf{q}_3=0 q 3 = 0 . Consequently, q T W ^ 2 = q 2 v 1 T = 0 \mathbf{q}^{\mathsf{T}}\widehat{W}_2=q_2\mathbf{v}_1^{\mathsf{T}}=0 q T W 2 = q 2 v 1 T = 0 , which implies q 2 = 0 q_2=0 q 2 = 0 . Therefore, rank ( [ λ I d − W ^ 1 W ^ 2 ] ) = d \operatorname{rank}([\lambda I_d-\widehat{W}_1\ \widehat{W}_2])=d rank ([ λ I d − W 1 W 2 ]) = d . Similarly, let p = [ p 1 p 2 p 3 ] T ∈ R d \mathbf{p}=[\mathbf{p}_1\ p_2\ \mathbf{p}_3]^{\mathsf{T}}\in\mathbb{R}^{d} p = [ p 1 p 2 p 3 ] T ∈ R d satisfy ( λ I d − W ^ 1 ) p = 0 (\lambda I_d-\widehat{W}_1)\mathbf{p}=0 ( λ I d − W 1 ) p = 0 and W ^ 3 p = 0 \widehat{W}_3\mathbf{p}=0 W 3 p = 0 . Then, p 1 = 0 \mathbf{p}_1=0 p 1 = 0 and p 3 = 0 \mathbf{p}_3=0 p 3 = 0 by the same argument, and W ^ 3 p = p 2 v 1 = 0 \widehat{W}_3\mathbf{p}=p_2\mathbf{v}_1=0 W 3 p = p 2 v 1 = 0 implies p 2 = 0 p_2=0 p 2 = 0 . Therefore, rank ( [ ( λ I d − W ^ 1 ) T W ^ 3 T ] T ) = d \operatorname{rank}([(\lambda I_d-\widehat{W}_1)^{\mathsf{T}}\ \widehat{W}_3^{\mathsf{T}}]^{\mathsf{T}})=d rank ([( λ I d − W 1 ) T W 3 T ] T ) = d . This means that λ \lambda λ is a controllable and observable mode of W ^ 1 \widehat{W}_1 W 1 by the Hautus lemma [29 ] . Since the only other eigenvalue of W ^ 1 \widehat{W}_1 W 1 is 0 0 0 , we have ρ c o ( θ ^ ) = ∣ λ ∣ \rho_{\mathrm{co}}(\hat{\theta})=|\lambda| ρ co ( θ ^ ) = ∣ λ ∣ .
Case d = m T d=mT d = m T . Since Φ ∗ ≠ 0 \Phi^{*}\ne0 Φ ∗ = 0 , there exists ( k , j ) ∈ [ T − 1 ] 0 × [ m ] (k,j)\in[T-1]_0\times[m] ( k , j ) ∈ [ T − 1 ] 0 × [ m ] such that M k ∗ v j ≠ 0 M_k^{*}\mathbf{v}_j\ne0 M k ∗ v j = 0 . We denote the standard basis vectors of R d \mathbb{R}^{d} R d by { u 1 , … , u d } \{\mathbf{u}_1,\ldots,\mathbf{u}_d\} { u 1 , … , u d } and define ι ( k , j ) : = ( j − 1 ) T + k \iota(k,j):=(j-1)T+k ι ( k , j ) := ( j − 1 ) T + k for every k ∈ [ T − 1 ] 0 k\in[T-1]_0 k ∈ [ T − 1 ] 0 and j ∈ [ m ] j\in[m] j ∈ [ m ] . Since d = m T d=mT d = m T , the map ( k , j ) ↦ ι ( k , j ) (k,j)\mapsto\iota(k,j) ( k , j ) ↦ ι ( k , j ) is a bijection from [ T − 1 ] 0 × [ m ] [T-1]_0\times[m] [ T − 1 ] 0 × [ m ] onto [ d − 1 ] 0 [d-1]_0 [ d − 1 ] 0 , and ι ( T − 1 , m ) = d − 1 \iota(T-1,m)=d-1 ι ( T − 1 , m ) = d − 1 .
Let us define a monic polynomial g ( s ) : = ∑ i = 0 d − 1 t i s i g(s):=\sum_{i=0}^{d-1}t_i s^i g ( s ) := ∑ i = 0 d − 1 t i s i with t d − 1 = 1 t_{d-1}=1 t d − 1 = 1 as follows:
(a) If M T − 1 ∗ v m ≠ 0 M_{T-1}^{*}\mathbf{v}_m\ne0 M T − 1 ∗ v m = 0 , then g ( s ) : = s d − 1 g(s):=s^{d-1} g ( s ) := s d − 1 , i.e., t i = 0 t_i=0 t i = 0 for every i ∈ [ d − 2 ] 0 i\in[d-2]_0 i ∈ [ d − 2 ] 0 .
(b) Otherwise, we choose ( k 0 , j 0 ) ∈ [ T − 1 ] 0 × [ m ] (k_0,j_0)\in[T-1]_0\times[m] ( k 0 , j 0 ) ∈ [ T − 1 ] 0 × [ m ] such that M k 0 ∗ v j 0 ≠ 0 M_{k_0}^{*}\mathbf{v}_{j_0}\ne0 M k 0 ∗ v j 0 = 0 and let i 0 : = ι ( k 0 , j 0 ) i_0:=\iota(k_0,j_0) i 0 := ι ( k 0 , j 0 ) . Note that since M T − 1 ∗ v m = 0 M_{T-1}^{*}\mathbf{v}_m=0 M T − 1 ∗ v m = 0 , we have ( k 0 , j 0 ) ≠ ( T − 1 , m ) (k_0,j_0)\ne(T-1,m) ( k 0 , j 0 ) = ( T − 1 , m ) , and hence i 0 ≤ d − 2 i_0\le d-2 i 0 ≤ d − 2 . Then, g ( s ) : = s d − 1 + δ s i 0 g(s):=s^{d-1}+\delta s^{i_0} g ( s ) := s d − 1 + δ s i 0 with δ : = ( ∣ λ ∣ / 2 ) d − 1 − i 0 > 0 \delta:=(|\lambda|/2)^{d-1-i_0}>0 δ := ( ∣ λ ∣/2 ) d − 1 − i 0 > 0 , i.e., t i 0 = δ t_{i_0}=\delta t i 0 = δ , t d − 1 = 1 t_{d-1}=1 t d − 1 = 1 , and t i = 0 t_i=0 t i = 0 otherwise.
Now, let χ ( s ) : = ( s − λ ) g ( s ) = s d + ∑ ℓ = 0 d − 1 a ℓ s ℓ \chi(s):=(s-\lambda)g(s)=s^d+\sum_{\ell=0}^{d-1}a_\ell s^\ell χ ( s ) := ( s − λ ) g ( s ) = s d + ∑ ℓ = 0 d − 1 a ℓ s ℓ and a : = [ a 0 ⋯ a d − 1 ] T ∈ R d \mathbf{a}:=[a_0\ \cdots\ a_{d-1}]^{\mathsf{T}}\in\mathbb{R}^{d} a := [ a 0 ⋯ a d − 1 ] T ∈ R d . We choose the particular parameterization θ ~ = ( W ~ 1 , W ~ 2 , W ~ 3 ) ∈ Θ \widetilde{\theta}=(\widetilde{W}_1,\widetilde{W}_2,\widetilde{W}_3)\in\Theta θ = ( W 1 , W 2 , W 3 ) ∈ Θ as in (98) :
W ~ 1 = L d − a u d T , W ~ 2 = E 1 , W ~ 3 = ∑ k = 0 T − 1 M k ∗ E k + 1 T , (159) \widetilde{W}_1=L_d-\mathbf{a}\mathbf{u}_d^{\mathsf{T}},\qquad\widetilde{W}_2=E_1,\qquad\widetilde{W}_3=\sum_{k=0}^{T-1}M_k^{*}E_{k+1}^{\mathsf{T}}, \tag*{(159)} W 1 = L d − a u d T , W 2 = E 1 , W 3 = k = 0 ∑ T − 1 M k ∗ E k + 1 T , (159)
where E k = I m ⊗ e k E_k=I_m\otimes\mathbf{e}_k E k = I m ⊗ e k is defined in (97) with r = 0 r=0 r = 0 . As we showed in the proof of Theorem 10 , Φ T ( θ ~ ) = Φ ∗ \Phi_T(\widetilde{\theta})=\Phi^{*} Φ T ( θ ) = Φ ∗ for every a ∈ R d \mathbf{a}\in\mathbb{R}^{d} a ∈ R d . Hence, θ ~ ∈ Ω \widetilde{\theta}\in\Omega θ ∈ Ω .
We now show that ρ c o ( θ ~ ) = ∣ λ ∣ \rho_{\mathrm{co}}(\widetilde{\theta})=|\lambda| ρ co ( θ ) = ∣ λ ∣ . Since W ~ 1 \widetilde{W}_1 W 1 is the companion matrix of χ \chi χ , its characteristic polynomial is χ \chi χ as in the proof of Theorem 10 . Hence, spec ( W ~ 1 ) \operatorname{spec}(\widetilde{W}_1) spec ( W 1 ) consists of λ \lambda λ and the roots of g g g . In (a), every root of g g g is 0 0 0 . In (b), g ( s ) = s i 0 ( s d − 1 − i 0 + δ ) g(s)=s^{i_0}(s^{d-1-i_0}+\delta) g ( s ) = s i 0 ( s d − 1 − i 0 + δ ) ; hence, every root of g g g is either 0 0 0 or a root of s d − 1 − i 0 = − δ s^{d-1-i_0}=-\delta s d − 1 − i 0 = − δ , whose modulus is δ 1 / ( d − 1 − i 0 ) = ∣ λ ∣ / 2 \delta^{1/(d-1-i_0)}=|\lambda|/2 δ 1/ ( d − 1 − i 0 ) = ∣ λ ∣/2 . Therefore, every eigenvalue of W ~ 1 \widetilde{W}_1 W 1 other than λ \lambda λ has modulus smaller than ∣ λ ∣ |\lambda| ∣ λ ∣ .
To show that λ \lambda λ is controllable, let q ∈ R d \mathbf{q}\in\mathbb{R}^{d} q ∈ R d satisfy q T [ λ I d − W ~ 1 W ~ 2 ] = 0 \mathbf{q}^{\mathsf{T}}[\lambda I_d-\widetilde{W}_1\ \widetilde{W}_2]=0 q T [ λ I d − W 1 W 2 ] = 0 . Then, q T W ~ 1 = λ q T \mathbf{q}^{\mathsf{T}}\widetilde{W}_1=\lambda\mathbf{q}^{\mathsf{T}} q T W 1 = λ q T and q T W ~ 2 = 0 \mathbf{q}^{\mathsf{T}}\widetilde{W}_2=0 q T W 2 = 0 , which imply that q T W ~ 1 k W ~ 2 = λ k q T W ~ 2 = 0 \mathbf{q}^{\mathsf{T}}\widetilde{W}_1^k\widetilde{W}_2=\lambda^k\mathbf{q}^{\mathsf{T}}\widetilde{W}_2=0 q T W 1 k W 2 = λ k q T W 2 = 0 for every k ≥ 0 k\ge0 k ≥ 0 . Furthermore, note that W ~ 2 v 1 = E 1 v 1 = u 1 \widetilde{W}_2\mathbf{v}_1=E_1\mathbf{v}_1=\mathbf{u}_1 W 2 v 1 = E 1 v 1 = u 1 by (101) , and W ~ 1 u i = u i + 1 \widetilde{W}_1\mathbf{u}_i=\mathbf{u}_{i+1} W 1 u i = u i + 1 for every i ∈ [ d − 1 ] i\in[d-1] i ∈ [ d − 1 ] by (100) . Hence, W ~ 1 k W ~ 2 v 1 = u k + 1 \widetilde{W}_1^k\widetilde{W}_2\mathbf{v}_1=\mathbf{u}_{k+1} W 1 k W 2 v 1 = u k + 1 , and thus q T u k + 1 = 0 \mathbf{q}^{\mathsf{T}}\mathbf{u}_{k+1}=0 q T u k + 1 = 0 for every k ∈ [ d − 1 ] 0 k\in[d-1]_0 k ∈ [ d − 1 ] 0 . This implies q = 0 \mathbf{q}=0 q = 0 . Therefore, rank ( [ λ I d − W ~ 1 W ~ 2 ] ) = d \operatorname{rank}([\lambda I_d-\widetilde{W}_1\ \widetilde{W}_2])=d rank ([ λ I d − W 1 W 2 ]) = d . This means that λ \lambda λ is a controllable mode of W ~ 1 \widetilde{W}_1 W 1 by the Hautus lemma [29 ] .
Now, let w : = [ t 0 t 1 ⋯ t d − 1 ] T ∈ R d \mathbf{w}:=[t_0\ t_1\ \cdots\ t_{d-1}]^{\mathsf{T}}\in\mathbb{R}^{d} w := [ t 0 t 1 ⋯ t d − 1 ] T ∈ R d , which is the vector of the coefficients of g ( s ) g(s) g ( s ) . Comparing them with the coefficients of χ ( s ) = ( s − λ ) g ( s ) \chi(s)=(s-\lambda)g(s) χ ( s ) = ( s − λ ) g ( s ) gives a 0 = − λ t 0 a_0=-\lambda t_0 a 0 = − λ t 0 and a i = t i − 1 − λ t i a_i=t_{i-1}-\lambda t_i a i = t i − 1 − λ t i for every i ∈ [ d − 1 ] i\in[d-1] i ∈ [ d − 1 ] . Then, we have
W ~ 1 w = L d w − a = [ − a 0 t 0 − a 1 ⋮ t d − 2 − a d − 1 ] = [ λ t 0 λ t 1 ⋮ λ t d − 1 ] = λ w . (160) \widetilde{W}_1\mathbf{w}=L_d\mathbf{w}-\mathbf{a}=
\begin{bmatrix}
-a_0\\
t_0-a_1\\
\vdots\\
t_{d-2}-a_{d-1}
\end{bmatrix}
=
\begin{bmatrix}
\lambda t_0\\
\lambda t_1\\
\vdots\\
\lambda t_{d-1}
\end{bmatrix}
=\lambda\mathbf{w}. \tag*{(160)} W 1 w = L d w − a = − a 0 t 0 − a 1 ⋮ t d − 2 − a d − 1 = λ t 0 λ t 1 ⋮ λ t d − 1 = λ w . (160)
since u d ⊤ w = t d − 1 = 1 \mathbf{u}_d^\top\mathbf{w}=t_{d-1}=1 u d ⊤ w = t d − 1 = 1 . Furthermore, the term a u d ⊤ \mathbf{a}\mathbf{u}_d^\top a u d ⊤ changes only the last column of λ I d − W ~ 1 \lambda I_d-\widetilde{W}_1 λ I d − W 1 . Hence, deleting the first row and the last column of λ I d − W ~ 1 \lambda I_d-\widetilde{W}_1 λ I d − W 1 yields a ( d − 1 ) × ( d − 1 ) (d-1)\times(d-1) ( d − 1 ) × ( d − 1 ) upper triangular matrix whose diagonal entries are − 1 -1 − 1 and whose superdiagonal entries are λ \lambda λ . Consequently, rank ( λ I d − W ~ 1 ) ≥ d − 1 \operatorname{rank}(\lambda I_d-\widetilde{W}_1)\ge d-1 rank ( λ I d − W 1 ) ≥ d − 1 , and since λ I d − W ~ 1 \lambda I_d-\widetilde{W}_1 λ I d − W 1 is singular, ker ( λ I d − W ~ 1 ) = span { w } \operatorname{ker}(\lambda I_d-\widetilde{W}_1)=\operatorname{span}\{\mathbf{w}\} ker ( λ I d − W 1 ) = span { w } . Now, let p ∈ R d \mathbf{p}\in\mathbb{R}^d p ∈ R d satisfy ( λ I d − W ~ 1 ) p = 0 (\lambda I_d-\widetilde{W}_1)\mathbf{p}=0 ( λ I d − W 1 ) p = 0 and W ~ 3 p = 0 \widetilde{W}_3\mathbf{p}=0 W 3 p = 0 . Then, this holds if and only if p = α w \mathbf{p}=\alpha\mathbf{w} p = α w for some α ∈ R \alpha\in\mathbb{R} α ∈ R , and α W ~ 3 w = 0 \alpha\widetilde{W}_3\mathbf{w}=0 α W 3 w = 0 . Since v j ⊤ E k + 1 ⊤ w = u ι ( k , j ) + 1 ⊤ w = t ι ( k , j ) \mathbf{v}_j^\top E_{k+1}^\top\mathbf{w}=\mathbf{u}_{\iota(k,j)+1}^\top\mathbf{w}=t_{\iota(k,j)} v j ⊤ E k + 1 ⊤ w = u ι ( k , j ) + 1 ⊤ w = t ι ( k , j ) by (101) , we have
W ~ 3 w = ∑ k = 0 T − 1 M k ∗ E k + 1 ⊤ w = ∑ k = 0 T − 1 ∑ j = 1 m t ι ( k , j ) M k ∗ v j . (161) \widetilde{W}_3\mathbf{w}=\sum_{k=0}^{T-1}M_k^*E_{k+1}^\top\mathbf{w}=\sum_{k=0}^{T-1}\sum_{j=1}^{m}t_{\iota(k,j)}M_k^*\mathbf{v}_j. \tag*{(161)} W 3 w = k = 0 ∑ T − 1 M k ∗ E k + 1 ⊤ w = k = 0 ∑ T − 1 j = 1 ∑ m t ι ( k , j ) M k ∗ v j . (161)
In (a), the only nonzero coefficient of g g g is t d − 1 = 1 t_{d-1}=1 t d − 1 = 1 , and d − 1 = ι ( T − 1 , m ) d-1=\iota(T-1,m) d − 1 = ι ( T − 1 , m ) ; hence, W ~ 3 w = M T − 1 ∗ v m ≠ 0 \widetilde{W}_3\mathbf{w}=M_{T-1}^*\mathbf{v}_m\ne0 W 3 w = M T − 1 ∗ v m = 0 . In (b), the only nonzero coefficients of g g g are t i 0 = δ t_{i_0}=\delta t i 0 = δ and t d − 1 = 1 t_{d-1}=1 t d − 1 = 1 ; hence, W ~ 3 w = δ M k 0 ∗ v j 0 + M T − 1 ∗ v m = δ M k 0 ∗ v j 0 ≠ 0 \widetilde{W}_3\mathbf{w}=\delta M_{k_0}^*\mathbf{v}_{j_0}+M_{T-1}^*\mathbf{v}_m=\delta M_{k_0}^*\mathbf{v}_{j_0}\ne0 W 3 w = δ M k 0 ∗ v j 0 + M T − 1 ∗ v m = δ M k 0 ∗ v j 0 = 0 . In both cases, α = 0 \alpha=0 α = 0 , and hence p = 0 \mathbf{p}=0 p = 0 . Therefore, rank ( [ ( λ I d − W ~ 1 ) ⊤ W ~ 3 ⊤ ] ⊤ ) = d \operatorname{rank}([(\lambda I_d-\widetilde{W}_1)^\top\ \widetilde{W}_3^\top]^\top)=d rank ([( λ I d − W 1 ) ⊤ W 3 ⊤ ] ⊤ ) = d . This means that λ \lambda λ is a controllable and observable mode of W ~ 1 \widetilde{W}_1 W 1 by the Hautus lemma [29 ] . Since every other eigenvalue of W ~ 1 \widetilde{W}_1 W 1 has modulus smaller than ∣ λ ∣ |\lambda| ∣ λ ∣ , we have ρ c o ( θ ~ ) = ∣ λ ∣ \rho_{\mathrm{co}}(\widetilde{\theta})=|\lambda| ρ co ( θ ) = ∣ λ ∣ .
Details of the Experiment in Figure 1
In this section, we explain the experiment we ran on Mamba architectures in Figure 1 . We note that Figure 1 a and Figure 1 b are reproductions of Ruiz and Gu [ [66 ] , Fig. 1a and 1b, respectively, without any training intervention that improves length generalization. On the other hand, to the best of our knowledge, the experiment for Mamba-3 in Figure 1 c has not been reported previously.
Models. We use the pretrained checkpoints released by the authors of the corresponding architectures6 without any fine-tuning. For Mamba-1 [24 ] , we use the checkpoints with 130M and 370M parameters. For Mamba-2 [14 ] , we use the checkpoints with 130M, 370M, 780M, and 1.3B parameters. These models were trained on 300B tokens of the Pile [23 ] with the GPT-NeoX-20B tokenizer. For Mamba-3 [45 ] , we use the checkpoints of its multi-input multi-output (MIMO) variant with 187M, 444M, 894M, and 1.5B parameters. These models were trained on 100B tokens of FineWeb-Edu [60 ] with the Llama-3.1 tokenizer. Note that all of these models were trained on sequences of T = 2048 T=2048 T = 2048 tokens.
Test Sequences. We test all models on the validation data of the Pile dataset, which consists of 214,670 documents. The training dataset Mamba-1 and Mamba-2 encompasses the training dataset of the Pile dataset. On the other hand, Mamba-3 is not trained on the Pile. Note that this mismatch makes the prediction harder at every position for Mamba-3. Furthermore, the perplexity values in Figure 1 c are not comparable with those in Figure 1 a and Figure 1 b, since both the training data and the tokenizer differ.
Most documents in the Pile are far shorter than the context lengths we are interested in. The median document has only 438 tokens. Therefore, we construct long test sequences as follows: We tokenize each document with the tokenizer of the model under test, shuffle the documents with a fixed seed, and concatenate them into a single stream in which each document is followed by an end-of-sequence token. Then, we cut the stream into non-overlapping sequences of fixed length. In this way, we obtain 256 sequences of 131072 tokens, which is 64 times the training horizon. Furthermore, to reduce the noise at the early positions, we obtain 4096 additional sequences of 8192 tokens from the part of the stream that follows the long sequences. Hence, the two sets of sequences do not share any tokens.
Evaluation. We process each test sequence in a single forward pass from its first token to its last token. As in training, the hidden state of each model is initialized to zero at the beginning of the sequence.
Let m m m denote the size of the vocabulary and Δ m : = { p ∈ R + m : p T 1 = 1 } \Delta_m := \{\mathbf{p} \in\mathbb{R}_{+}^{m} : \mathbf{p}^{\mathsf{T}}\mathbf{1} = 1\} Δ m := { p ∈ R + m : p T 1 = 1 } denote the probability simplex. We denote by y k ( i ) ∈ Δ m \mathbf{y}^{(i)}_k \in\Delta_m y k ( i ) ∈ Δ m the one-hot encoding of the token at position k k k of the i i i th test sequence and by y ^ k ( i ) ∈ Δ m \hat{\mathbf{y}}^{(i)}_k \in\Delta_m y ^ k ( i ) ∈ Δ m the distribution that the model predicts for this token after having observed ( y 0 ( i ) , … , y k − 1 ( i ) ) (\mathbf{y}^{(i)}_0,\ldots,\mathbf{y}^{(i)}_{k-1}) ( y 0 ( i ) , … , y k − 1 ( i ) ) . Then, the cross-entropy loss incurred at position k k k of the i i i th test sequence is − log ( y k ( i ) T y ^ k ( i ) ) -\log\left(\mathbf{y}^{(i)\mathsf{T}}_k\hat{\mathbf{y}}^{(i)}_k\right) − log ( y k ( i ) T y ^ k ( i ) ) .
Definition 27 ([66 ] ). Let N k N_k N k denote the number of test sequences that are longer than k k k tokens. For every k ≥ 1 k \ge1 k ≥ 1 , we define the position-wise perplexity at position k k k by
P P L k : = exp ( − 1 N k ∑ i = 1 N k log ( y k ( i ) T y ^ k ( i ) ) ) . (162) \mathrm{PPL}_k := \exp\left(-\frac{1}{N_k}\sum_{i=1}^{N_k}\log\left(\mathbf{y}^{(i)\mathsf{T}}_k\hat{\mathbf{y}}^{(i)}_k\right)\right). \tag*{(162)} PPL k := exp ( − N k 1 i = 1 ∑ N k log ( y k ( i ) T y ^ k ( i ) ) ) . (162)
In other words, the position-wise perplexity is the exponential of the empirical per-step prediction risk under the cross-entropy loss, where the average is taken over the test sequences rather than over the positions. Ideally, the position-wise perplexity should not increase beyond the training horizon, since a longer context can only provide more information about the next token. We plot P P L k \mathrm{PPL}_k PPL k for every k ∈ [ 131071 ] k \in[131071] k ∈ [ 131071 ] in Figure 1 , where N k = 4352 N_k = 4352 N k = 4352 if k < 8192 k < 8192 k < 8192 and N k = 256 N_k = 256 N k = 256 otherwise.
For Mamba-1 and Mamba-2, the position-wise perplexity increases beyond the training horizon for every model size, and it grows by orders of magnitude for both Mamba-1 models and for the Mamba-2 model with 780M parameters, which agrees with the observations of Ruiz and Gu [ [66 ] . On the other hand, the degradation of Mamba-3 is considerably milder: Over the 256 long test sequences, the perplexity averaged over the positions k ∈ [ 65536 , 131071 ] k \in[65536, 131071] k ∈ [ 65536 , 131071 ] is 8% to 12% higher than the perplexity averaged over the positions k ∈ [ 1024 , 2047 ] k \in[1024, 2047] k ∈ [ 1024 , 2047 ] , depending on the model size. We note that, with only 256 long test sequences, this increase is not large enough to be distinguished from the noise with confidence.