Gradient Descent Learns Linear Dynamical Systems
Moritz Hardt, Tengyu Ma, Benjamin Recht
Introduction
Many learning problems are by their nature sequence problems where the goal is to fit a model that maps a sequence of input words to a corresponding sequence of observations Text translation, speech recognition, time series prediction, video captioning and question answering systems, to name a few, are all sequence to sequence learning problems. For a sequence model to be both expressive and parsimonious in its parameterization, it is crucial to equip the model with memory thus allowing its prediction at time to depend on previously seen inputs.
Recurrent neural networks form an expressive class of non-linear sequence models. Through their many variants, such as long-short-term-memory Hochreiter and Schmidhuber (1997), recurrent neural networks have seen remarkable empirical success in a broad range of domains. At the core, neural networks are typically trained using some form of (stochastic) gradient descent. Even though the training objective is non-convex, it is widely observed in practice that gradient descent quickly approaches a good set of model parameters. Understanding the effectiveness of gradient descent for non-convex objectives on theoretical grounds is a major open problem in this area.
If we remove all non-linear state transitions from a recurrent neural network, we are left with the state transition representation of a linear dynamical system. Notwithstanding, the natural training objective for linear systems remains non-convex due to the composition of multiple linear operators in the system. If there is any hope of eventually understanding recurrent neural networks, it will be inevitable to develop a solid understanding of this special case first.
To be sure, linear dynamical systems are important in their own right and have been studied for many decades independently of machine learning within the control theory community. Control theory provides a rich set techniques for identifying and manipulating linear systems. The learning problem in this context corresponds to “linear dynamical system identification”. Maximum likelihood estimation with gradient descent is a popular heuristic for dynamical system identification Ljung (1998). In the context of machine learning, linear systems play an important role in numerous tasks. For example, their estimation arises as subroutines of reinforcement learning in robotics Levine and Koltun (2013), location and mapping estimation in robotic systems Durrant-Whyte and Bailey (2006), and estimation of pose from video Rahimi et al. (2005).
In this work, we show that gradient descent efficiently minimizes the maximum likelihood objective of an unknown linear system given noisy observations generated by the system. More formally, we receive noisy observations generated by the following time-invariant linear system:
Here, are linear transformations with compatible dimensions and we denote by the parameters of the system. The vector represents the hidden state of the model at time Its dimension is called the order of the system. The stochastic noise variables perturb the output of the system which is why the model is called an output error model in control theory. We assume the variables are drawn i.i.d. from a distribution with mean and variance
Throughout the paper we focus on controllable and externally stable systems. A linear system is externally stable (or equivalently bounded-input bounded-output stable) if and only if the spectral radius of , denoted is strictly bounded by Controllability is a mild non-degeneracy assumption that we formally define later. Without loss of generality, we further assume that the transformations , and have bounded Frobenius norm. This can be achieved by a rescaling of the output variables. We assume we have pairs of sequences as training examples,
Our goal is to fit a linear system to the observations. We parameterize our model in exactly the same way as (1.1). That is, for linear mappings , the trained model is defined as:
The (population) risk of the model is obtained by feeding the learned system with the correct initial states and comparing its predictions with the ground truth in expectation over inputs and errors. Denoting by the -th prediction of the trained model starting from the correct initial state that generated , and using as a short hand for , we formally define population risk as:
Note that even though the prediction is generated from the correct initial state, the learning algorithm does not have access to the correct initial state for its training sequences.
While the squared loss objective turns out to be non-convex, it has many appealing properties. Assuming the inputs and errors are drawn independently from a Gaussian distribution, the corresponding population objective corresponds to maximum likelihood estimation. In this work, we make the weaker assumption that the inputs and errors are drawn independently from possibly different distributions. The independence assumption is certainly idealized for some learning applications. However, in control applications the inputs can often be chosen by the controller rather than by nature. Moreover, the outputs of the system at various time steps are correlated through the unknown hidden state and therefore not independent even if the inputs are.
2 Proper learning
Under our assumption, projected stochastic gradient descent, when given sample sequence of length , returns parameters with population risk
Here the expectation on LHS is with respect to the randomness of the algorithm. Recall that is the population risk of the optimal system, and refers to the variance of the noise variables. We also assume that the inputs are drawn from a pairwise independent distribution with mean and variance Note, however, that this does not imply independence of the outputs as these are correlated by a common hidden state. The stated version of our result glosses over the fact that we need our assumption to hold with a small amount of slack; a precise version follows in Section 4. Our theorem establishes a polynomial convergence rate for stochastic gradient descent. Since each iteration of the algorithm only requires a sequence of matrix operations and an efficient projection step, the running time is polynomial, as well. Likewise, the sample requirements are polynomial since each iteration requires only a single fresh example. An important feature of this result is that the error decreases with both the length and the number of samples . The dependency on the dimension , on the other hand, is likely to be quite loose, and tighter bounds are left for future work.
The algorithm requires a (polynomial-time) projection step to a convex set at every iteration (formally defined in Section 4 and Algorithm 1). Computationally, it can be a bottleneck, although it is unlikely to be required in practice and may be an artifact of our analysis.
3 The power of over-parameterization
Endowing the model with additional parameters compared to the ground truth turns out to be surprisingly powerful. We show that we can essentially remove the assumption we previously made in proper learning. The idea is simple. If is the characteristic polynomial of of degree . We can find a system of order such that the characteristic polynomial of its transition matrix becomes for some polynomial of order This means that to apply our result we only need the polynomial to satisfy our assumption. At this point, we can choose to be an approximation of the inverse . For sufficiently good approximation, the resulting polynomial is close to and therefore satisfies our assumption. Such an approximation exists generically for under mild non-degeneracy assumptions on the roots of . In particular, any small random perturbation of the roots would suffice.
Under a mild non-degeneracy assumption, stochastic gradient descent returns parameters corresponding to a system of order with population risk
when given sample sequences of length .
We remark that the idea we sketched also shows that, in the extreme, improper learning of linear dynamical systems becomes easy in the sense that the problem can be solved using linear regression against the outputs of the system. However, our general result interpolates between the proper case and the regime where linear regression works. We discuss in more details in Section 6.3.
4 Multi-input multi-output systems
Both results we saw immediately extend to single-input multi-output (SIMO) systems as the dimensionality of and are irrelevant for us. The case of multi-input multi-output (MIMO) systems is more delicate. Specifically, our results carry over to a broad family of multi-input multi-output systems. However, in general MIMO systems no longer enjoy canonical forms like SISO systems. In Section 7, we introduce a natural generalization of controllable canonical form for MIMO systems and extend our results to this case.
5 Related work
System identification is a core problem in dynamical systems and has been studied in depth for many years. The most popular reference on this topic is the text by Ljung Ljung (1998). Nonetheless, the list of non-asymptotic results on identifying linear systems from noisy data is surprisingly short. Several authors have recently tried to estimate the sample complexity of dynamical system identification using machine learning tools Vidyasagar and Karandikar (2008); Campi and Weyer (2002); Weyer and Campi (1999). All of these result are rather pessimistic with sample complexity bounds that are exponential in the degree of the linear system and other relevant quantities. Contrastingly, we prove that gradient descent has an associated polynomial sample complexity in all of these parameters. Moreover, all of these papers only focus on how well empirical risk approximates the true population risk and do not provide guarantees about any algorithmic schemes for minimizing the empirical risk.
The only result to our knowledge which provides polynomial sample complexity for identifying linear dynamical systems is in Shah et al Shah et al. (2012). Here, the authors show that if certain frequency domain information about the linear dynamical system is observed, then the linear system can be identified by solving a second-order cone programming problem. This result is about improper learning only, and the size of the resulting system may be quite large, scaling as the . As we describe in this work, very simple algorithms work in the improper setting when the system degree is allowed to be polynomial in . Moreover, it is not immediately clear how to translate the frequency-domain results to the time-domain identification problem discussed above.
Our main assumption about the image of the polynomial is an appeal to the theory of passive systems. A system is passive if the dot product between the input sequence and output sequence are strictly positive. Physically, this notion corresponds to systems that cannot create energy. For example, a circuit made solely of resistors, capacitors, and inductors would be a passive electrical system. If one added an amplifier to the internals of the system, then it would no longer be passive. The set of passive systems is a subset of the set of stable systems, and the subclass is somewhat easier to work with mathematically. Indeed, Megretski used tools from passive systems to provide a relaxation technique for a family of identification problems in dynamical systems Megretski (2008). His approach is to lower bound a nonlinear least-squares cost with a convex functional. However, he does not prove that his technique can identify any of the systems, even asymptotically. Söderström and Stoica (1982); Stoica and Söderström (1982, 1984) and later Bazanella et al. (2008); Eckhard and Bazanella (2011) prove the quasi-convexity of a cost function under a passivity condition in the context of system identification, but no sample complexity or global convergence proofs are provided.
6 Proof overview
Our results on improper learning in Section 6 rely on a surprisingly simple but powerful insight. We can extend the degree of the transfer function by extending both numerator and denominator with a polynomial such that While this results in an equivalent system in terms of input-output behavior, it can dramatically change the geometry of the optimization landscape. In particular, we can see that only has to satisfy the assumption of our proper learning algorithm. This allows us, for example, to put so that hence trivially satisfying our assumption. A suitable inverse approximation exists under light assumptions and requires degree no more than Algorithmically, there is almost no change. We simply run stochastic gradient descent with model parameters rather than model parameters.
7 Preliminaries
A SISO of order is in controllable canonical form if and have the following form
We will parameterize accordingly. We will write for brevity, where is used to denote the unknown last row of matrix . We will use to denote the corresponding training variables for . Since here is known, so is no longer a trainable parameter, and is forced to be equal to . Moreover, is a row vector and we use to denote its coordinates (and similarly for ).
A SISO is controllable if and only if the matrix has rank This statement corresponds to the condition that all hidden states should be reachable from some initial condition and input trajectory. Any controllable system admits a controllable canonical form Heij et al. (2007). For vector , let denote the polynomial
Gradient descent and quasi-convexity
It is known that under certain mild conditions (stochastic) gradient descent converges even on non-convex functions to local minimum Ge et al. (2015); Lee et al. (2016). Though usually for concrete problems the challenge is to prove that there is no spurious local minimum other than the target solution. Here we introduce a condition similar to the quasi-convexity notion in Hazan et al. (2015), which ensures that any point with vanishing gradient is the optimal solution . Roughly speaking, the condition says that at any point the negative of the gradient should be positively correlated with direction pointing towards the optimum. Our condition is slightly weaker than that in Hazan et al. (2015) since we only require quasi-convexity and smoothness with respect to the optimum, and this (simple) extension will be necessary for our analysis.
We say an objective function is -weakly-quasi-convex (-WQC) over a domain with respect to global minimum if there is a positive constant such that for all ,
We further say is -weakly-smooth if for for any point , .
Projected stochastic gradient descent over some closed convex set with learning rate refers to the following algorithm in which denotes the Euclidean projection onto :
The following Proposition is well known for convex objective functions (corresponding to -weakly-quasi-convex functions). We extend it (straightforwardly) to the case when -WQC holds with any positive constant .
Suppose the objective function is -weakly-quasi-convex and -weakly-smooth, and is an unbiased estimator for with variance . Moreover, suppose the global minimum belongs to , and the initial point satisfies . Then projected gradient descent (2.2) with a proper learning rate returns in iterations with expected error
We defer the proof of Proposition 2.3 to Appendix A which is a simple variation of the standard convergence analysis of stochastic gradient descent (see, for example, Bottou (1998)). Finally, we note that the sum of two quasi-convex functions may no longer be quasi-convex. However, if a sequence functions is -WQC with respect to a common point , then their sum is also -WQC. This follows from the linearity of gradient operation.
Suppose functions are individually -weakly-quasi-convex in with respect to a common global minimum , then for non-negative the linear combination is also -weakly-quasi-convex with respect to in .
Population risk in frequency domain
We next establish conditions under which risk is weakly-quasi-convex. Our strategy is to first approximate the risk functional by what we call idealized risk. This approximation of the objective function is fairly straightforward; we justify it toward the end of the section. We can show that
The leading term is convex in which appears nowhere else in the objective. It therefore doesn’t affect the convergence of the algorithm (up to lower order terms) by virtue of Proposition 2.5, and we restrict our attention to the remaining terms.
We now use basic concepts from control theory (see Heij et al. (2007); Hespanha (2009) for more background) to express the idealized risk (3.2) in Fourier domain. The transfer function of the linear system is
Note that is a rational function over the complex numbers of degree and hence we can find polynomials and such that with the convention that the leading coefficient of is . In controllable canonical form (1.4), the coefficients of will correspond to the last row of the while the coefficients of correspond to the entries of . Also note that
The sequence is called the impulse response of the linear system. The behavior of a linear system is uniquely determined by the impulse response and therefore by Analogously, we denote the transfer function of the learned system by The idealized risk (3.2) is only a function of the impulse response of the learned system, and therefore it is only a function of .
Recall that is defined in Section 1.7. For future reference, we note that by some elementary calculation (see Lemma B.1), we have
which implies that and .
With these definitions in mind, we are ready to express idealized risk in Fourier domain.
Suppose has all its roots inside unit circle, then the idealized risk can be written in the Fourier domain as
Proof Note that is the Fourier transform of the sequence and so is the Fourier transformThe Fourier transform exists since where doesn’t depend on and . of . Therefore by Parseval’ Theorem, we have that
Now that we have a convenient expression for risk in Fourier domain, we can prove that the idealized risk is weakly-quasi-convex when is not so far from the true in the sense that and have an angle less than for every on the unit circle. We will use the convention that and refer to the parameters that specify and respectively.
For and every , the idealized risk is -weakly-quasi-convex over the domain
Proof We first analyze a single term . Recall that where . Note that is fixed and is a function of and . Then it is straightforward to see that
Since and are linear in and respectively, by chain rule we have that
Plugging the formulas (3.7) and (3.8) for and into the equation above, we obtain that
Hence is -weakly-quasi-convex with . This implies our claim, since by Proposition 3.2, the idealized risk is convex combination of functions of the form for . Moreover, Proposition 2.5 shows that convex combination preserves weak quasi-convexity.
For future reference, we also prove that the idealized risk is -weakly smooth.
The idealized risk is -weakly smooth with .
Proof By equation (3.8) and the chain rule we get that
therefore we can bound the norm of the gradient by
Similarly, we could show that .
2 Justifying idealized risk
We need to justify the approximation we made in Equation (3.1).
Assume that and are drawn i.i.d. from an arbitrary distribution with mean and variance Then the population risk can be written as,
The idealized risk is upper bound of the population risk according to equation (3.1) and (3.9). We don’t have to quantify the gap between them because later in Algorithm 1, we will directly optimize the idealized risk by constructing an estimator of its gradient, and thus the optimization will guarantee a bounded idealized risk which translates to a bounded population risk. See Section 5 for details.
Proof [Proof of Lemma 3.5] Under the distributional assumptions on and we can calculate the objective functions above analytically. We write out in terms of the inputs,
Therefore, using the fact that ’s are independent and with mean 0 and covariance , the expectation of the error can be calculated (formally by Claim B.2),
Recall that under the controllable canonical form (1.4), is known and therefore is no longer a variable. Then the expected objective function (3.11) simplifies to
The previous lemma does not yet control higher order contributions present in the idealized risk. This requires additional structure that we introduce in the next section.
Effective relaxations of spectral radius
The previous section showed quasi-convexity of the idealized risk. However, several steps are missing towards showing finite sample guarantees for stochastic gradient descent. In particular, we will need to control the variance of the stochastic gradient at any system that we encounter in the training. For this purpose we formally introduce our main assumption now and show that it serves as an effective relaxation of spectral radius. This results below will be used for proving convergence of stochastic gradient descent in Section 5.
Consider the following convex region in the complex plane,
We say a polynomial is -acquiescent if A linear system with transfer function is -acquiescent if the denominator is.
Suppose , then the roots of polynomial have magnitudes bounded by . Therefore the controllable canonical form defined by has spectral radius .
Proof Define holomorphic function and . We apply the symmetric form of Rouche’s theorem Estermann (1962) on the circle . For any point on , we have that , and that . Since , we have that for any with . Observe that for any we have that , therefore we have that
Hence, using Rouche’s Theorem, we conclude that and have same number of roots inside circle . Note that function has exactly roots in and therefore have all its roots inside circle .
The following lemma establishes the fact that is a monotone family of sets in . The proof follows from the maximum modulo principle of the harmonic functions and . We defer the short proof to Section C.1. We remark that there are larger convex sets than that ensure bounded spectral radius. However, in order to also guarantee monotonicity and the no blow-up property below, we have to restrict our attention to
For any , we have that .
Our next lemma entails that acquiescent systems have well behaved impulse responses.
Suppose for some . Then the companion matrix satisfies
Moreover, it holds that for any ,
Let be the Fourier transform of the series . Then using Parseval’s Theorem, we have
where at the last step we used the fact that (see Lemma B.1), and that . Since , we have that , and therefore has magnitude at least . Plugging in this into equation (4.4), we conclude that
Finally we establish the bound for . By Lemma 4.3, we have for . Therefore we can pick in equation (4.3) and it still holds. That is, we have that
This also implies that .
Learning acquiescent systems
Next we show that we can learn acquiescent systems.
Suppose the true system is -acquiescent and satisfies . Then with samples of length , stochastic gradient descent (Algorithm 1) with projection set returns parameters with population risk
where -notation hides polynomial dependencies on , , and . The expectation is taken over the randomness of the algorithms and the examples.
Recall that is the length of the sequence and is the number of samples. The first term in the bound (5.1) comes from the smoothness of the population risk and the second comes from the variance of the gradient estimator of population risk (which will be described in detail below). An important (but not surprising) feature here is the variance scale in and therefore for long sequence actually we got convergence instead of (for relatively small ).
Computational complexity: Step 2 in each iteration of the algorithm takes arithmetic operations, and the projection step takes time to solve an linear programming problem. The project step is unlikely to be required in practice and may be an artifact of our analysis.
We can further balance the variance of the estimator with the number of samples by breaking each long sequence of length into short sequences of length , and then run back-propagation (1) on these shorter sequences. This leads us to the following bound which gives the right dependency in and as we expected: should be counted as the true number of samples for the sequence-to-sequence model.
Under the assumption of Theorem 5.1, Algorithm 2 returns parameters with population risk
where -notation hides polynomial dependencies on , , and
We remark the the gradient computation procedure takes time linear in since one can use chain-rule (also called back-propagation) to compute the gradient efficiently . For completeness, Algorithm 3 gives a detailed implementation. Finally and importantly, we remark that although we defined the population risk as the expected error with respected to sequence of length , actually our error bound generalizes to any longer (or shorter) sequences of length . By the explicit formula for (Lemma 3.5) and the fact that decays exponentially for (Lemma 4.4), we can bound the population risk on sequences of different lengths. Concretely, let denote the population risk on sequence of length , we have for all ,
We note that generalization to longer sequence does deserve attention. Indeed in practice, it’s usually difficult to train non-linear recurrent networks that generalize to longer sequences than the training data.
We could hope to achieve linear convergence by showing that the empirical risk also satisfies the weakly-quasi-convexity. Then, we can re-use the samples and hope to use strong optimization tools (such as SVRG) to achieve the linear convergence. This is beyond the scope of this paper and left to future work.
Our proof of Theorem 5.1 simply consists of three parts: a) showing the idealized risk is weakly quasi-convex in the convex set (Lemma 5.3); b) designing an (almost) unbiased estimator of the gradient of the idealized risk (Lemma 5.4); c) variance bounds of the gradient estimator (Lemma 5.5).
Proof [Proof of Lemma 5.3] It suffices to show that for all , it satisfies for . Indeed, by the monotonicity of the family of sets (Lemma 4.3), we have that , which by definition means for every on unit circle, . By definition of , for any point , the angle between and is at most and ratio of the magnitude is at least , which implies that . Therefore , and we conclude that . The smoothness bound was established in Lemma 3.4.
Towards designing an unbiased estimator of the gradient, we note that there is a small caveat here that prevents us to just use the gradient of the empirical risk, as commonly done for other (static) problems. Recall that the population risk is defined as the expected risk with known initial state , while in the training we don’t have access to the initial states and therefore using the naive approach we couldn’t even estimate population risk from samples without knowing the initial states.
We argue that being able to handle the missing initial states is indeed desired: in most of the interesting applications is unknown (or even to be learned). Moreover, the ability of handling unknown allows us to break a long sequence into shorter sequences, which helps us to obtain Corollary 5.2. Here the difficulty is essentially that we have a supervised learning problem with missing data . We get around it by simply ignoring first outputs of the system and setting the corresponding errors to 0. Since the influence of to any outputs later than time is inverse exponentially small, we could safely assume when the error earlier than time is not taken into account.
This small trick also makes our algorithm suitable to the cases when these early outputs are actually not observed. This is indeed an interesting setting, since in many sequence-to-sequence model Sutskever et al. (2014), there is no output in the first half fraction of iterations (of course these models have non-linear operation that we cannot handle).
The proof of the correctness of the estimator is almost trivial and deferred to Section C.
Under the assumption of Theorem 5.1, suppose . Then in Algorithm 1, at each iteration, are unbiased estimators of the gradient of the idealized risk (3.2) in the sense that:
Finally, we control the variance of the gradient estimator.
The (almost) unbiased estimator of the gradient of has variance bounded by
where .
We bound directly the variance instead. It’s tedious but simple in spirit. We mainly need Lemma 4.4 to control various difference sums that shows up from calculating the expectation. The only tricky part is to obtain the dependency which corresponds to the cancellation of the contribution from the cross terms. In the proof we will basically write out the variance as a (complicated) function of which consists of sums of terms involving and . We control these sums using Lemma 4.4. The proof is deferred to Section C.
Finally we are ready to prove Theorem 5.1. We essentially just combine Lemma 5.3, Lemma 5.4 and Lemma 5.5 with the generic convergence Proposition 2.3. This will give us low error in idealized risk and then we relate the idealized risk to the population risk.
Proof [Proof of Theorem 5.1] We consider , an extended version of the idealized risk which takes the contribution of into account. By Lemma 5.4 we have that Algorithm 1 computes which are almost unbiased estimators of the gradients of up to negligible error , and by Lemma C.2 we have is an unbiased estimator of with respect to . Moreover by Lemma 5.5, these unbiased estimator has total variance where hides dependency on and . Applying Proposition 2.3 (which only requires an unbiased estimator of the gradient of ), we obtain that after iterations, we converge to a point with . Then, by Lemma 3.5 we have which completes the proof.
The power of improper learning
We observe an interesting and important fact about the theory in Section 5: it solely requires a condition on the characteristic function . This suggests that the geometry of the training objective function depends mostly on the denominator of the transfer function, even though the system is uniquely determined by the transfer function . This might seem to be an undesirable discrepancy between the behavior of the system and our analysis of the optimization problem.
However, we can actually exploit this discrepancy to design improper learning algorithms that succeed under much weaker assumptions. We rely on the following simple observation about the invariance of a system . For an arbitrary polynomial of leading coefficient 1, we can write as
Our discussion motivates the following definition.
A polynomial of degree is -acquiescent by extension of degree if there exists a polynomial of degree and leading coefficient 1 such that is -acquiescent.
For a transfer function , we define it’s norm as
We assume (with loss of generality) that the true transfer function has bounded norm, that is, . This can be achieve by a rescalingIn fact, this is a natural scaling that makes comparing error easier. Recall that the population risk is essentially , therefore rescaling so that implies that when error we achieve non-trivial performance. of the matrix .
Suppose the true system has transfer function with a characteristic function that is -acquiescent by extension of degree , and , then projected stochastic gradient descent with states (that is, Algorithm 2 with states) returns a system with population risk
where the notation hides polynomial dependencies on .
The theorem follows directly from Corollary 5.2 (with some additional care about the scaling.
In the rest of this section, we discuss in subsection 6.1 the instability of the minimum representation in subsection, and in subsection 6.2 we show several examples where the characteristic function is not -acquiescent but is -acquiescent by extension with small degree .
As a final remark, the examples illustrated in the following sub-sections may be far from optimally analyzed. It is beyond the scope of this paper to understand the optimal condition under which is acquiescent by extension.
We begin by constructing a contrived example where the minimum representation of is not stable at all and as a consequence one can’t hope to recover the minimum representation of .
Consider and . Clearly these are the minimum representations of the and , which also both satisfy acquiescence. On the one hand, the characteristic polynomial and are very different. On the other hand, the transfer functions and have almost the same values on unit circle up to exponentially small error,
Moreover, the transfer functions and are on the order of on unit circle. These suggest that from an (inverse polynomially accurate) approximation of the transfer function , we cannot hope to recover the minimum representation in any sense, even if the minimum representation satisfies acquiescence.
2 Power of improper learning in various cases
We illustrate the use of improper learning through various examples below.
We consider a simple contrived example where improper learning can help us learn the transfer function dramatically. We will show an example of characteristic function which is not -acquiescent but --acquiescent by extension of degree .
Let be a large enough integer and be a constant. Let and , and then define . Therefore we have that
Taking we have that has argument (phase) roughly , and therefore it’s not in , which implies that is not -acquiescent. On the other hand, picking as the helper function, from equation (6.1) we have takes values inverse exponentially close to on the circle with radius . Therefore is -acquiescent.
2.2 Example: characteristic function with separated roots
A characteristic polynomial with well separated roots will be acquiescent by extension. Our bound will depend on the following quantity of that characterizes the separateness of the roots.
For a polynomial of degree with roots inside unit circle, define the quantity of the polynomial as:
Suppose is a polynomial of degree with distinct roots inside circle with radius . Let , then is -acquiescent by extension of degree .
Our main idea to extend by multiplying some polynomial that approximates (in a relatively weak sense) and therefore will always take values in the set . We believe the following lemma should be known though for completeness we provide the proof in Section D.
Suppose is a polynomial of degree and leading coefficient 1 with distinct roots inside circle with radius , and . Then for , there exists a polynomial of degree and leading coefficient 1 such that for all on unit circle,
Proof [Proof of Lemma 6.4] Let . Using Lemma 6.5 with , we have that there exists polynomial of degree such that
Therefore for constant . Finally noting that for degree polynomial we have , which completes the proof.
2.3 Example: Characteristic polynomial with random roots
We consider the following generative model for characteristic polynomial of degree . We generate complex numbers uniformly randomly on circle with radius , and take for as the roots of . That is, . We show that with good probability (over the randomness of ’s), polynomial will satisfy the condition in subsection 6.2.2 so that it can be learned efficiently by our improper learning algorithm.
Towards proving Theorem 6.6, we need the following lemma about the expected distance of two random points with radius and in log-space.
Proof When , let be an integer and . Then we have that
2.4 Example: Passive systems
We will show that with improper learning we can learn almost all passive systems, an important class of stable linear dynamical system as we discussed earlier. We start off with the definition of a strict-input passive system.
A SISO linear system is strict-input passive if and only if for some and any on unit circle,
In order to learn the passive system, we need to add assumptions in the definition of strict passivity. To make it precise, we define the following subsets of complex plane: For positive constant , define
We say a transfer function is -strict input passive if for any on unit circle we have . Note that for small constant and large constant , this basically means the system is strict-input passive.
Now we are ready to state our main theorem in this subsection. We will prove that passive systems could be learned improperly with a constant factor more states (dimensions), assuming has all its roots strictly inside unit circles and .
Suppose is -strict-input passive. Moreover, suppose the roots of have magnitudes inside circle with radius and and . Then is -acquiescent by extension of degree , and as a consequence we can learn with states in polynomial time.
Moreover, suppose in addition we assume that for every on unit circle. Then is -acquiescent by extension of degree .
The proof of Theorem 6.9 is similar in spirit to that of Lemma 6.4, and is deferred to Section D.
3 Improper learning using linear regression
In this subsection, we show that under stronger assumption than -acquiescent by extension, we can improperly learn a linear dynamical system with linear regression, up to some fixed bias.
A polynomial of degree is extremely-acquiescent by extension of degree with bias if there exists a polynomial of degree and leading coefficient 1 such that for all on unit circle,
We remark that if is -acquiescent by extension of degree , then there exists such that . Therefore, equation (6.4) above is a much stronger requirement than acquiescence by extension.We need -acquiescence by extension in previous subsections for small , though this is merely additional technicality needed for the sample complexity. We ignore this difference between -acquiescence and -acquiescence and for the purpose of this subsection
Learning multi-input multi-output (MIMO) systems
We consider multi-input multi-output systems with the transfer functions that have a common denominator ,
Let’s define the risk function in the frequency domain as,
The following lemma is an analog of Lemma 3.3 for the MIMO case. Itss proof actually follows from a straightforward extension of the proof of Lemma 3.3 by observing that matrix (or ) commute with scalar and , and that are linear in .
The risk function defined in (7.2) is -weakly-quasi-convex in the domain
Finally, as alluded before, we use a particular state space representation for learning the system in time domain with example sequences. It is known that any transfer function of the form (7.1) can be realized uniquely by the state space system of the following special case of Brunovsky normal form Brunovsky (1970),
The following Theorem is a straightforward extension of Corollary 5.2 and Theorem 6.2 to the MIMO case.
Suppose transfer function of a MIMO system takes form (7.1), and has norm . If the common denominator is -acquiescent by extension of degree then projected stochastic gradient descent over the state space representation (7.3) will return with risk
Simulations
In this section, we provide proof-of-concepts experiments on synthetic data. We will demonstrate that
plain SGD tends to blow up even with relatively small learning rate, especially on hard instances
SGD with our projection step converges with reasonably large learning rate, and with over-parameterization the final error is competitive
SGD with gradient clipping has the strongest performance in terms both of the convergence speed and the final error
Here gradient clipping refers to the technique of using a normalized gradient instead of the true gradient. Specifically, for some positive hyper parameter , we follow the approximate gradient
This method is commonly applied in training recurrent neural networks Pascanu et al. (2013).
Bullet 1) suggests that stability is indeed a real concern. Bullet 2) corroborates our theoretical study. Finding 3) suggests the instability of SGD partly arises from the noise in the batches, and such noise is reduced by the gradient clipping. Our experiments suggest that the landscape of the objective function may be even nicer than what is predicted by our theoretical development. It remains possible that the objective has no non-global local minima, possibly even outside the convex set to which our algorithm projects.
We generate the true system with state dimension by randomly picking the conjugate pairs of roots of the characteristic polynomial inside the circle with radius and randomly generating the vector from standard normal distribution. The distribution of the norm of the impulse response (defined in Section 3) of such systems has a heavy-tail. When the norm of is several magnitudes larger than the median it’s difficult to learn the system. Thus we select systems with reasonable for experiments, and we observe that the difficulty of learning increases as increases. The inputs of the dynamical model are generated from standard normal distribution with length . We note that we generate new fresh inputs and outputs at every iterations and therefore the training loss is equal to the test loss (in expectation.) We use initial learning rate 0.01 in the projected gradient descent and SGD with gradient clipping. We use batch size 100 for all experiments, and decay the learning rate at 200K and 250K iteration by a factor of 10 in all experiments.
Acknowledgments
We thank Amir Globerson, Alexandre Megretski, Pablo A. Parrilo, Yoram Singer, Peter Stoica, and Ruixiang Zhang for helpful discussions. We are indebted to Mark Tobenkin for pointers to relevant prior work. We also thank Alexandre Megretski for helpful feedback, insights into passive systems and suggestions on how to organize Section 3.
References
A Background on optimization
The proof below uses the standard analysis of gradient descent for non-smooth objectives and demonstrates that the argument still works for weakly-quasi-convex functions.
Proof [Proof of Proposition 2.3] We start by using the weakly-quasi-convex condition and then the rest follows a variant of the standard analysis of non-smooth projected sub-gradient descentAlthough we used weak smoothness to get a slightly better bound. We conditioned on , and have that
where the first inequality uses weakly-quasi-convex and the rest of lines are simply algebraic manipulations. Since is the projection of to and belongs to , we have . Together with (A.1), and
Taking expectation over all the randomness and summing over we obtain that
where we use the assumption that . Suppose , then we take . Therefore we have that and therefore
On the other hand, if , we pick and obtain that
Therefore using equation (A.3) and (A.2) we obtain that when choosing properly according to as above,
B Toolbox
where is the characteristic polynomial of .
Proof let then we have . Note that , and is of the form
Therefore we obtain that for . That is, for . Using the fact that , we obtain that where is the polynomial . Then we have that
Suppose are independent variables with mean 0 and covariance matrices and , are fixed matrices, then
C Missing proofs in Sections 4 and 5
For any , we have that .
Proof Let . Note that . Therefore we note that . Suppose , then for any with . Since is the real part of the holomorphic function , its a harmonic function. By maximum (minimum) principle of the harmonic functions, we have that for any , . In particular, it holds that for , . Similarly we can prove that for with , , and other conditions for being in .
C.2 Proof of Lemma 5.4
In algorithm 3 the values of are equal to the gradients of with respect to , and up to inverse exponentially small error.
This can be seen simply from similar calculation to the proof of Lemma 3.5. Note that
Therefore noting that when , we have that and therefore the effect of is negligible. Then we have that
where the first line use the fact that , the second uses equation (3.10) and the last line uses the no-blowing up property of (Lemma 4.4).
C.3 Proof of Lemma 5.5
Proof [Proof of Lemma 5.5] Both and can be written in the form of a quadratic form (with vector coefficients) of and . That is, we will write
where and are vectors that will be calculated later. By Lemma C.3, we have that
Therefore in order to bound from above , it suffices to bound and , and similarly for .
We begin by writing out for fixed and bounding its norm. We use the same set of notations as int the proof of Lemma 5.4. Recall that we set and , and . Moreover, let . We note that the sums of and can be controlled. By the assumption of the Lemma, we have that
which will be used many times in the proof that follows.
We calculate the explicit form of using the explicit back-propagation Algorithm 3. We have that in Algorithm 3,
Then using and equation (C.5) and equation (C.6) above, we have that
Towards bounding , we consider four different cases. Let be a threshold.
When , we rewrite by rearranging equation (C.7),
We could bound the contribution from ssing equation (C.4), and it remains to bound terms and . Using the tail bounds for (equation (C.3)) and the fact that , we have that
We bound the inner sum of RHS of (C.10) using the fact that and obtain that,
Plugging equation (C.12) and (C.11) into equation (C.10), we have that
For the second term in equation (C.9), we bound similarly,
Therefore using the bounds for and we obtain that,
When , we tighten equation (C.13) by observing that,
where we used equation (C.11). Similarly we can prove that
Therefore, we have when ,
When , we can rewrite and use the Cauchy-Schwartz inequality and obtain that
Using almost the same arguments as in equation (C.11) and (C.12), we that
Then using a same type of argument as equation (C.13), we can have that
It follows that in this case can be bounded with the same bound in (C.15).
When , we use a different simplification of from above. First of all, it follows (C.7) that
Since and it follows that
Therefore, using the bound for obtained in the four cases above, taking sum over , we obtain that
We finished the bounds for and now we turn to bound . Using the formula for (equation C.8), we have that for , . For , we have that by Cauchy-Schwartz inequality,
On the other hand, for , by the bound that , we have,
Therefore taking sum over , similarly to equation (C.19),
Then using equation (C.2) and equation (C.19) and (C.20), we obtain that
We can prove the bound for similarly.
Let be independent random variables with mean 0 and variance 1 and 4-th moment bounded by , and be vectors for . Moreover, let be independent random variables with mean 0 and variance and be vectors for . Then,
Note that the two sums in the target are independent with mean 0, therefore we only need to bound the variance of both sums individually. The proof follows the linearity of expectation and the independence of ’s:
Similarly, we can control by .
D Missing proofs in Section 6
Towards proving Lemma 6.5, we use the following lemma to express the inverse of a polynomial as a sum of inverses of degree-1 polynomials.
Let where ’s are distinct. Then we have that
Proof [Proof of Lemma D.1] By interpolating constant function at points using Lagrange interpolating formula, we have that
Dividing on both sides we obtain equation (D.1).
The following lemma computes the Fourier transform of function .
Proof [Proof of Lemma D.2] For , since is a holomorphic function, by Cauchy’s integral formula, we have that
For , by changing of variable we have that
since , then we by Taylor expansion we have,
Since the series is dominated by which converges, we can switch the integral with the sum. Note that is holomorphic for , and therefore we conclude that
Proof [Proof of Lemma 6.5] Let . We compute the Fourier transform of . That is, we write
Indeed these can be obtained by writing out the lagrange interpolation for polynomial with and compare the leading coefficient. Therefore, we further simplify to
Let . Then we have that is a polynomial with degree and leading term 1. Moreover, for our choice of
D.2 Proof of Theorem 6.9
Theorem 6.9 follows directly from a combination of Lemma D.3 and Lemma D.4 below. Lemma D.3 shows that the denominator of a function (under the stated assumptions) can be extended to a polynomial that takes values in on unit circle. Lemma D.4 shows that it can be further extended to another polynomial that takes values in .
Suppose the roots of are inside circle with radius , and . If transfer function satisfies that (or ) for any on unit circle, then there exists of degree such that (or respectively) for , where hide the polynomial dependencies on .
Proof [Proof of Lemma D.3] By the fact that , we have that for some that polynomially depend on . Using Lemma 6.5, there exists of degree such that
where we set . Then we have that
It follows from equation (D.5) implies that that , where polynomially depends on . The same proof still works when we replace by .
Suppose of degree and leading coefficient 1 satisfies that for any on unit circle. Then there exists of degree such that for any on unit circle with and , where hide the dependencies on .
Proof [Proof of Lemma D.4] We fix on unit circle first. Let’s defined be the square root of with principle value. Let’s write and we take Taylor expansion for . Note that since , we have that . Therefore truncating the Taylor series at we obtain a polynomial a rational function of the form
which approximates with precision , that is, Therefore, we obtain that Note that since , we have that for some constants . Therefore . Note that is not a polynomial yet. Let and then is polynomial of degree at most and for any on unit circle.
E Back-propagation implementation
In order to have a fast projection algorithm to the convex set , we consider a grid of size over the circle with radius . We will show that will be enough to approximate the set in the sense that projecting to the approximating set suffices for the convergence.
We will first show that with , we can make to be sandwiched within to two sets and .
For any , we have that for , there exists that polynomially depend on ’s such that
Before proving the lemma, we demonstrate how to use the lemma in our algorithm: We will pick , and , and find ’s guaranteed in the lemma above. Then we use as the projection set in the algorithm (instead of ). First of all, the ground-truth solution is in the set . Moreover, since , we will guarantee that the iterates will remain in the set and therefore the quasi-convexity of the objective function still holdswith a slightly worse parameter up to constant factor since ’s are different from ’s up to constant factors.
Note that the set contains linear constraints and therefore we can use linear programming to solve the projection problem. Moreover, since the points on the grid forms a Fourier basis and therefore Fast Fourier transform can be potentially used to speed up the projection. Finally, we will prove Lemma F.1. We need S. Bernstein’s inequality for polynomials.
Let be any polynomial of degree with complex coefficients. Then,
We will use the following corollary of Bernstein’s inequality.
Let be any polynomial of degree with complex coefficients. Then, for ,
Proof For simplicity let , and let . If then we are done by Bernstein’s inequality. Now let’s assume that . Suppose . Then there exists such that and . Therefore by Cauchy mean-value theorem we have that there exists that lies between and such that , which contradicts Bernstein’s inequality.
Suppose a polynomial of degree satisfies that for every for some . Then for every with there exists such that .
Proof Let by a polynomial of degree at most . Therefore we have . Let such that . Then we have
Proof [Proof of Lemma F.1] We choose .The first inequality is trivial. We prove the second one. Consider such that . We wil show that . Let . By Lemma F.4, for every with , we have that there exists for some integer such that . Therefore let for sufficiently large (which depends on ’s), we have that for every with , . This completes the proof.