Learning Two-layer Neural Networks with Symmetric Inputs

Rong Ge, Rohith Kuditipudi, Zhize Li, Xiang Wang

Introduction

Deep neural networks have been extremely successful in many tasks related to images, videos and reinforcement learning. However, the success of deep learning is still far from being understood in theory. In particular, learning a neural network is a complicated non-convex optimization problem, which is hard in the worst-case. The question of whether we can efficiently learn a neural network still remains generally open, even when the data is drawn from a neural network. Despite a lot of recent effort, the class of neural networks that we know how to provably learn in polynomial time is still very limited, and many results require strong assumptions on the input distribution.

In this paper we design a new algorithm that is capable of learning a two-layerThere are different ways to count the number of layers. Here by two-layer network we refer to a fully-connected network with two layers of edges (two weight matrices). This is considered to be a three-layer network if one counts the number of layers for nodes (e.g. in Goel and Klivans, (2017)) or a one-hidden layer network if one just counts the number of hidden layers. neural network for a general class of input distributions. Following standard models for learning neural networks, we assume there is a ground truth neural network. The input data (x,y)(x,y) is generated by first sampling the input xx from an input distribution D\mathcal{D}, then computing yy according to the ground truth network that is unknown to the learner. The learning algorithm will try to find a neural network ff such that f(x)f(x) is as close to yy as possible over the input distribution D\mathcal{D}. Learning a neural network is known to be a hard problem even in some simple settings (Goel et al.,, 2016; Brutzkus and Globerson,, 2017), so we need to make assumptions on the network structure or the input distribution D\mathcal{D}, or both. Many works have worked with a simple input distribution (such as Gaussians) and try to learn more and more complex networks (Tian,, 2017; Brutzkus and Globerson,, 2017; Li and Yuan,, 2017; Soltanolkotabi,, 2017; Zhong et al.,, 2017). However, the input distributions in real life are distributions of very complicated objects such as texts, images or videos. These inputs are highly structured, clearly not Gaussian and do not even have a simple generative model.

We consider a type of two-layer neural network, where the output yy is generated as

When the input distribution is symmetric, we give the first algorithm that can learn a two-layer neural network. Our algorithm is based on the method-of-moments approach: first estimate some correlations between xx and yy, then use these information to recover the model parameters. More precisely we have

If the data is generated according to Equation (1), and the input distribution x∼Dx\sim\mathcal{D} is symmetric. Given exact correlations between x,yx,y of order at most 4, as long as A,WA,W and input distribution are not degenerate, there is an algorithm that runs in \mboxpoly(d)\mbox{poly}(d) time and outputs a network A^,W^\hat{A},\hat{W} of the same size that is effectively the same as the ground-truth network: for any input xx, A^σ(W^x)=Aσ(Wx)\hat{A}\sigma(\hat{W}x)=A\sigma(Wx).

Of course, in practice we only have samples of (x,y)(x,y) and cannot get the exact correlations. However, our algorithm is robust to perturbations, and in particular can work with polynomially many samples.

If the data is generated according to Equation (1), and the input distribution x∼Dx\sim\mathcal{D} is symmetric. As long as the weight matrices A,WA,W and input distributions are not degenerate, there is an algorithm that uses \mboxpoly(d,1/ϵ)\mbox{poly}(d,1/\epsilon) time and number of samples and outputs a network A^,W^\hat{A},\hat{W} of the same size that computes an ϵ\epsilon-approximation function to the ground-truth network: for any input xx, ∥A^σ(W^x)−Aσ(Wx)∥2≤ϵ\|\hat{A}\sigma(\hat{W}x)-A\sigma(Wx)\|^{2}\leq\epsilon.

In fact, the algorithm recovers the original parameters A,WA,W up to scaling and permutations. Here when we say weight matrices are not degenerate, we mean that the matrices A,WA,W should be full rank, and in addition a certain distinguishing matrix that we define later in Section 2 is also full rank. We justify these assumptions using the smoothed analysis framework (Spielman and Teng,, 2004).

In smoothed analysis, the input is not purely controlled by an adversary. Instead, the adversary can first generate an arbitrary instance (in our case, arbitrary weight matrices W,AW,A and symmetric input distribution D\mathcal{D}), and the parameters for this instance will be randomly perturbed to yield a perturbed instance. The algorithm only needs to work with high probability on the perturbed instance. This limits the power of the adversary and prevents it from creating highly degenerate cases (e.g. choosing the weight matrices to be much lower rank than kk). Roughly speaking, we show

There is a simple way to perturb the input distribution, WW and AA such that with high probability, the distance between the perturbed instance and original instance is at most λ\lambda, and our algorithm outputs an ϵ\epsilon-approximation to the perturbed network with \mboxpoly(d,1/λ,1/ϵ)\mbox{poly}(d,1/\lambda,1/\epsilon) time and number of samples.

In the rest of the paper, we will first review related works. Then in Section 2 we formally define the network and introduce some notations. Our algorithm is given in Section 3. Finally in Section 4 we run experiments to show that the algorithm can indeed learn the two-layer network efficiently and robustly. The experiments show that our algorithm works robustly with reasonable number of samples for different (symmetric) input distributions and weight matrices. Due to space constraints, the proof for polynomial number of samples (Theorem 2) and smoothed analysis (Theorem 3) are deferred to the appendix.

2 Related Work

There are many works in learning neural networks, and they come in many different styles.

Some works focus on networks that do not use standard activation functions. Arora et al., (2014) gave an algorithm that learns a network with discrete variables. Livni et al., (2014) and follow-up works learn neural networks with polynomial activation functions. Oymak and Soltanolkotabi, (2018) used the rank-1 tensor decomposition for learning a non-overlapping convolutional neural network with differentiable and smooth activation and Gaussian input.

When the input is Gaussian, Ge et al., 2017b showed that for a two-layer neural network, although the standard objective does have bad local optimal solutions, one can construct a new objective whose local optima are all globally optimal. Several other works (Tian,, 2017; Du et al., 2017b, ; Brutzkus and Globerson,, 2017; Li and Yuan,, 2017; Soltanolkotabi,, 2017; Zhong et al.,, 2017) extend this to different settings.

A closely related work (Janzamin et al.,, 2015) does not require the input distribution to be Gaussian, but still relies on knowing the score function of the input distribution (which in general cannot be estimated efficiently from samples). Recently, Gao et al., (2018) gave a way to design loss functions with desired properties for one-hidden-layer neural networks with general input distributions based on a new proposed local likelihood score function estimator. For general distributions (including symmetric ones) their estimator can still require number of samples that is exponential in dimension dd (as in Assumption 1(d)).

There are several lines of work that try to extend the learning results to more general distributions. Du et al., 2017a showed how to learn a single neuron or a single convolutional filter under some conditions for the input distribution. Daniely et al., (2016); Zhang et al., (2016, 2017); Goel and Klivans, (2017); Du and Goel, (2018) used kernel methods to learn neural networks when the norm of the weights and input distributions are both bounded (and in general the running time and sample complexity in this line of work depend exponentially on the norms of weights/input). Recently, Du et al., (2018) showed that gradient descent minimizes the training error in an over-parameterized two-layer neural network. They only consider training error while our results also apply to testing error. The work that is most similar to our setting is Goel et al., (2018), where they showed how to learn a single neuron (or a single convolutional filter) for any symmetric input distribution. Our two-layer neural network model is much more complicated.

Our work uses method-of-moments, which has already been applied to learn many latent variable models (see Anandkumar et al., (2014) and references there). The particular algorithm that we use is inspired by an over-complete tensor decomposition algorithm FOOBI (De Lathauwer et al.,, 2007). Our smoothed analysis results are inspired by Bhaskara et al., (2014) and Ma et al., (2016), although our setting is more complicated and we need several new ideas.

Preliminaries

In this section, we first describe the neural network model that we learn, and then introduce notations related to matrices and tensors. Finally we will define distinguishing matrix, which is a central object in our analysis.

2 Notations

We use [n][n] to denote the set {1,2,⋯ ,n}\{1,2,\cdots,n\}. For two random variables XX and YY, we say X=dYX\stackrel{{\scriptstyle d}}{{=}}Y if they come from the same distribution.

3 Distinguishing Matrix

A central object in our analysis is a large matrix whose columns are closely related to pairs of hidden variables. We call this the distinguishing matrix and define it below:

Another related concept is the augmented distinguishing matrix MM, which is a d2×(k2+1)d^{2}\times\left(k_{2}+1\right) matrix whose first k2k_{2} columns are exactly the same as distinguishing matrix NN, and the last column (indexed by ) is defined as

The exact reason for these definitions will only be clear after we explain the algorithm in Section 3. Our algorithm will require that these matrices are robustly full rank, in the sense that σmin(M)\sigma_{min}(M) is lowerbounded. Intuitively, every column NijDN_{ij}^{\mathcal{D}} looks at the expectation over samples that have opposite signs for weights wi,wjw_{i},w_{j} (wi⊤xwj⊤x≤0w_{i}^{\top}xw_{j}^{\top}x\leq 0, hence the name distinguishing matrix).

Requiring MM and NN to be full rank prevents several degenerate cases. For example, if two hidden units are perfectly correlated and always share the same sign for every input, this is very unnatural and requiring the distinguishing matrix to be full rank prevents such cases. Later in Section C we will also show that requiring a lowerbound on σmin(M)\sigma_{min}(M) is not unreasonable: in the smoothed analysis setting where the nature can make a small perturbation on the input distribution D\mathcal{D}, we show that for any input distribution D\mathcal{D}, there exists simple perturbations D′\mathcal{D^{\prime}} that are arbitrarily close to D\mathcal{D} such that σmin(MD′)\sigma_{min}(M^{D^{\prime}}) is lowerbounded.

Our Algorithm

We will first give a simple algorithm for learning a single-layer neural network. More precisely, suppose we are given samples (x1,y1),...,(xn,yn)(x_{1},y_{1}),...,(x_{n},y_{n}) where xi∼Dx_{i}\sim\mathcal{D} comes from a symmetric distribution, and the output yiy_{i} is computed by

The idea of the algorithm is simple: we will estimate the correlations between xx and yy and the covariance of xx, and then recover the hidden vector ww using these two estimates. The main challenge here is that yy is not a linear function on xx. Goel et al., (2018) gave a crucial observation that allows us to deal with the non-linearity:

Suppose x∼Dx\sim\mathcal{D} comes from a symmetric distribution and yy is computed as in (3), then

Importantly, the right hand side of Lemma 1 does not contain the ReLU function σ\sigma. This is true because if xx comes from a symmetric distribution, averaging between xx and −x-x can get rid of non-linearities like ReLU or leaky-ReLU. Later we will prove a more general version of this lemma (Lemma 6).

2 Learning Two-layer Networks

In order to learn the weights of the network defined in Section 2.1, a crucial observation is that we have kk outputs as well as kk hidden-units. This gives a possible way to reduce the two-layer problem to the single-layer problem. For simplicity, we will consider the noiseless case in this section, where

The key observation here is that if u=ziu=z_{i}, then u⊤A=λiei⊤u^{\top}A=\lambda_{i}e_{i}^{\top}. As a result, u⊤y=λiei⊤σ(Wx)=σ(λiwi⊤x)u^{\top}y=\lambda_{i}e_{i}^{\top}\sigma(Wx)=\sigma(\lambda_{i}w_{i}^{\top}x) is the output of a single-layer neural network with weight equal to λiwi\lambda_{i}w_{i}. If we know all the vectors {z1,...,zk}\{z_{1},...,z_{k}\}, the input/output pairs (x,zi⊤y)(x,z_{i}^{\top}y) correspond to single-layer networks with weight vectors {λiwi}\{\lambda_{i}w_{i}\}. We can then apply the algorithm in Section 3.1 (or the algorithm in Goel et al., (2018)) to learn the weight vectors.

When u⊤A=λieiu^{\top}A=\lambda_{i}e_{i}, we say that u⊤yu^{\top}y is a pure neuron. Next we will design an algorithm that can find all vectors {zi}\{z_{i}\}’s that generate pure neurons, and therefore reduce the problem of learning a two-layer network to learning a single-layer network.

In order to find the vector uu that generates a pure neuron, we will try to find some property that is true if and only if the output can be represented by a single neuron.

Intuitively, using ideas similar to Lemma 1 we can get a property that holds for all pure neurons:

The additional terms may accidentally cancel each other which leads to a false positive. To address this problem, we consider a higher order moment:

Suppose y^=σ(w⊤x)\hat{y}=\sigma(w^{\top}x), then

Here NijN_{ij}’s are columns of the distinguishing matrix defined in Definition 1.

We will call the function f(u)f(u) a pure neuron detector, as u⊤yu^{\top}y is a pure neuron if and only if f(u)=0f(u)=0. Therefore, to finish the algorithm we just need to find all solutions for f(u)=0f(u)=0.

Based on Lemma 4, we can just estimate the tensor TT from the samples we are given, and its smallest singular directions would give us the span of {\mboxvec∗(zizi⊤)}\{\mbox{vec}^{*}(z_{i}z_{i}^{\top})\}.

In order to reduce the problem to a single-layer problem, the final step is to find ziz_{i}’s from span of zizi⊤z_{i}z_{i}^{\top}’s. This is also a step that has appeared in FOOBI and more generally other tensor decomposition algorithms, and can be solved by a simultaneous diagonalization. Let ZZ be the matrix whose rows are ziz_{i}’s, which means Z=\mboxdiag(λ)A−1Z=\mbox{diag}(\lambda)A^{-1}. Let X=Z⊤DXZX=Z^{\top}D_{X}Z and Y=Z⊤DYZY=Z^{\top}D_{Y}Z be two random elements in the span of zizi⊤z_{i}z_{i}^{\top}, where DXD_{X} and DYD_{Y} are two random diagonal matrices. Both matrices XX and YY can be diagonalized by matrix ZZ. In this case, if we compute XY−1=Z⊤DXDY−1(Z⊤)−1XY^{-1}=Z^{\top}D_{X}D_{Y}^{-1}(Z^{\top})^{-1}, since ziz_{i} is a column of Z⊤Z^{\top}, we know

That is, ziz_{i} is an eigenvector of XY−1XY^{-1}! The matrix XY−1XY^{-1} can have at most kk eigenvectors and there are kk ziz_{i}’s, therefore the ziz_{i}’s are the only eigenvectors of XY−1XY^{-1}.

Given the span of zizi⊤z_{i}z_{i}^{\top}’s, let X,YX,Y be two random matrices in this span, with probability 1 the ziz_{i}’s are the only eigenvectors of XY−1XY^{-1}.

3 Detailed Algorithm and Guarantees

We can now give the full algorithm, see Algorithm 2. The main steps of this algorithm is as explained in the previous section. Steps 2 - 5 constructs the pure neuron detector and finds the span of \mboxvec∗(zizi⊤)\mbox{vec}^{*}(z_{i}z_{i}^{\top}) (as in Corollary 1); Steps 7 - 9 performs simultaneous diagonalization to get all the ziz_{i}’s; Steps 11, 12 calls Algorithm 1 to solve the single-layer problem and outputs the correct result.

We are now ready to state a formal version of Theorem 1:

It is easy to prove this theorem using the lemmas we have.

Now the output zi⊤y=λiσ(wi⊤x)=σ(λiwi⊤x)z_{i}^{\top}y=\lambda_{i}\sigma(w_{i}^{\top}x)=\sigma(\lambda_{i}w_{i}^{\top}x) (again by property of ReLU function σ\sigma), by the design of Algorithm 1 we know vi=λiwiv_{i}=\lambda_{i}w_{i}. We also know that Z=\mboxdiag(λ)A−1Z=\mbox{diag}(\lambda)A^{-1}, therefore Z−1=A\mboxdiag(λ)−1Z^{-1}=A\mbox{diag}(\lambda)^{-1}. Notice that Z−1σ(Vx)=A\mboxdiag(λ)−1σ(\mboxdiag(λ)Wx)=Aσ(Wx).Z^{-1}\sigma(Vx)=A\mbox{diag}(\lambda)^{-1}\sigma(\mbox{diag}(\lambda)Wx)=A\sigma(Wx). These two scaling factors cancel each other, so the two networks compute the same function. ∎

Experiments

In this section, we provide experimental results to validate the robustness of our algorithm for both Gaussian input distributions as well as more general symmetric distributions such as symmetric mixtures of Gaussians.

There are two important ways in which our implementation differs from our description in Section 3.3. First, our description of the simultaneous diagonalization step in our algorithm is mostly for simplicity of both stating and proving the algorithm. In practice we find it is more robust to draw 10k10k random samples from the subspace spanned by the last kk right-singular vectors of TT and compute the CP decomposition of all the samples (reshaped as matrices and stacked together as a tensor) via alternating least squares (Comon et al.,, 2009). As alternating least squares can also be unstable we repeat this step 10 times and select the best one. Second, once we have recovered and fixed AA we use gradient descent to learn WW, which compared to Algorithm 1 does a better job of ensuring the overall error will not explode even if there is significant error in recovering AA. Crucially, these modifications are not necessary when the number of samples is large enough. For example, given 10,000 input samples drawn from a spherical Gaussian and AA and WW drawn as random 10×1010\times 10 orthogonal matrices, our implementation of the original formulation of the algorithm was still able to recover both AA and WW with an average error of approximately 0.150.15 and achieve close to zero mean square error across 10 random trials.

First we show that our algorithm does not require a large number of samples when the matrices are not degenerate. In particular, we generate random orthonormal matrices AA and WW as the ground truth, and use our algorithm to learn the neural network. As illustrated by Figure 2, regardless of the size of WW and AA our algorithm is able to recover both weight matrices with minimal error so long as the number of samples is a few times of the number of parameters. To measure the error in recovering AA and WW, we first normalize the columns of AA and rows of WW for both our learned parameters and the ground truth, pair corresponding columns and rows together, and then compute the squared distance between learned and ground truth parameters. Note in the rightmost plot of Figure 2, in order to compare the performance between different dimensions, we further normalize the recovering error by the dimension of WW and AA. It shows that the squared root of normalized error remains stable as the dimension of AA and WW grows from 1010 to 3232. In Figure 2, we also show the overall mean square error–averaged over all output units–achieved by our learned parameters.

2 Robustness to Noise

Figure 3 demonstrates the robustness of our algorithm to label noise ξ\xi for Gaussian and symmetric mixture of Gaussians input distributions. In this experiment, we fix the size of both AA and WW to be 10×1010\times 10 and again generate both parameters as random orthonormal matrices. The overall mean square error achieved by our algorithm grows almost perfectly in step with the amount of label noise, indicating that our algorithm recovers the globally optimal solution regardless of the choice of input distribution.

3 Robustness to Condition Number

We’ve already shown that our algorithm continues to perform well across a range of input distributions and even when AA and WW are high-dimensional. In all previous experiments however, we sampled AA and WW as random orthonormal matrices so as to control for their conditioning. In this experiment, we take the input distribution to be a random symmetric mixture of two Gaussians and vary the condition number of either AA or WW by sampling singular value decompositions UΣV⊤U\Sigma V^{\top} such that UU and VV are random orthonormal matrices and Σii=λ−i\Sigma_{ii}=\lambda^{-i}, where λ\lambda is chosen based on the desired condition number. Figure 4 respectively demonstrate that the performance of our algorithm remains steady so long as AA and WW are reasonably well-conditioned before eventually fluctuating. Moreover, even with these fluctuations the algorithm still recovers AA and WW with sufficient accuracy to keep the overall mean square error low.

Conclusion

Optimizing the parameters of a neural network is a difficult problem, especially since the objective function depends on the input distribution which is often unknown and can be very complicated. In this paper, we design a new algorithm using method-of-moments and spectral techniques to avoid the complicated non-convex optimization for neural networks. Our algorithm can learn a network that is of similar complexity as the previous works, while allowing much more general input distributions.

There are still many open problems. The current result requires output to have the same (or higher) dimension than the hidden layer, and the hidden layer does not have a bias term. Removing these constraints are are immediate directions for future work. Besides the obvious ones of extending our results to more general distributions and more complicated networks, we are also interested in the relations to optimization landscape for neural networks. In particular, our algorithm shows there is a way to find the global optimal network in polynomial time, does that imply anything about the optimization landscape of the standard objective functions for learning such a neural network, or does it imply there exists an alternative objective function that does not have any local minima? We hope this work can lead to new insights for optimizing a neural network.

References

Appendix A Details of Exact Analysis

In this section, we first provide the missing proofs for the lemmas appeared in Section 3. Then we discuss how to handle the noise case (i.e. y=σ(Wx)+ξy=\sigma(Wx)+\xi) and give the corresponding algorithm (Algorithm 3). At the end we also briefly discuss how to handle the case when the matrix AA has more rows than columns (more outputs than hidden units).

where the expectation is taken over the input distribution.

There are two cases to consider: pp and qq are both even numbers or both odd numbers.

For the case where pp and qq are even numbers, we have

If (a⊤x)≤0(a^{\top}x)\leq 0, we know \big{(}\sigma(-a^{\top}x)\big{)}^{p}+\big{(}\sigma(a^{\top}x)\big{)}^{p}=(a^{\top}x)^{p}+0=(a^{\top}x)^{p}. Otherwise, we have \big{(}\sigma(-a^{\top}x)\big{)}^{p}+\big{(}\sigma(a^{\top}x)\big{)}^{p}=0+(a^{\top}x)^{p}=(a^{\top}x)^{p}. Thus,

For the other case where pp and qq are odd numbers, we have

Similarly, if (a⊤x)≤0(a^{\top}x)\leq 0, we know -\big{(}\sigma(-a^{\top}x)\big{)}^{p}+\big{(}\sigma(a^{\top}x)\big{)}^{p}=-(-a^{\top}x)^{p}+0=(a^{\top}x)^{p}. Otherwise, we have -\big{(}\sigma(-a^{\top}x)\big{)}^{p}+\big{(}\sigma(a^{\top}x)\big{)}^{p}=0+(a^{\top}x)^{p}=(a^{\top}x)^{p}. Thus,

Pure neuron detector: The first step in our algorithm is to construct a pure neuron detector based on Lemma 2 and Lemma 3. We will provide proofs for these two lemmas here.

where the second equality holds due to Lemma 6.

where (7) uses (9) of the following Lemma 7, and (8) uses the definition of distinguishing matrix NN (Definition 1). □\Box

where the expectation is taken over the input distribution.

Since input xx comes from a symmetric distribution, we have

When a⊤xb⊤x>0a^{\top}xb^{\top}x>0, we know a⊤xa^{\top}x and b⊤xb^{\top}x are both positive or both negative. In either case, we know that σ(a⊤x)σ(b⊤x)+σ(−a⊤x)σ(−b⊤x)=(a⊤x)(b⊤x)\sigma(a^{\top}x)\sigma(b^{\top}x)+\sigma(-a^{\top}x)\sigma(-b^{\top}x)=(a^{\top}x)(b^{\top}x). Thus, we have

It is not hard to verify that u⊤yu^{\top}y is a pure neuron if and only if f(u)=0f(u)=0. Note that f(u)=0f(u)=0 is a system of quadratic equations. So we linearize it by increasing the dimension (i.e., consider uiuju_{i}u_{j} as a single variable) similar to the FOOBI algorithm. Thus the number of variable is (k2)+k=k2+k\binom{k}{2}+k=k_{2}+k, i.e.,

Now, we prove the Lemma 4 which shows the null space of TT is exactly the span of {\mboxvec∗(zizi⊤)}\{\mbox{vec}^{*}(z_{i}z_{i}^{\top})\}.

Proof of Lemma 4. We divide the proof to the following two cases:

For any vector \mboxvec∗(U)\mbox{vec}^{*}(U) belongs to the null space of TT, we have T\mboxvec∗(U)=0T\mbox{vec}^{*}(U)=0. Note that the RHS of (10) equals to 0 if and only if A⊤UAA^{\top}UA is a diagonal matrix since the distinguishing matrix NN is full column rank and A⊤UAA^{\top}UA is symmetric. Thus \mboxvec∗(U)\mbox{vec}^{*}(U) belongs to the span of {\mboxvec∗(zizi⊤)}\{\mbox{vec}^{*}(z_{i}z_{i}^{\top})\} since U=Z⊤DZU=Z^{\top}DZ for some diagonal matrix DD.

For any vector \mboxvec∗(U)\mbox{vec}^{*}(U) belonging to the span of {\mboxvec∗(zizi⊤)}\{\mbox{vec}^{*}(z_{i}z_{i}^{\top})\}, UU is a linear combination of zizi⊤z_{i}z_{i}^{\top}’s. Furthermore, T\mboxvec∗(U)T\mbox{vec}^{*}(U) is a linear combination of T\mboxvec∗(zizi⊤)T\mbox{vec}^{*}(z_{i}z_{i}^{\top}). Note that A⊤ziA^{\top}z_{i} only has one non-zero entry due to the definition of ziz_{i}, for any i∈[k]i\in[k]. Thus all coefficients in the RHS of (10) are 0. We get T\mboxvec∗(U)=0T\mbox{vec}^{*}(U)=0.

Finding ziz_{i}’s: Now, we prove the final Lemma 5 which finds all ziz_{i}’s from the span of {\mboxvec∗(zizi⊤)}\{\mbox{vec}^{*}(z_{i}z_{i}^{\top})\} by using simultaneous diagonalization. Given all ziz_{i}’s, this two-layer network can be reduced to a single-layer one. Then one can use Algorithm 1 to recover the first layer parameters wiw_{i}’s.

Proof of Lemma 5. As we discussed before this lemma, we have XY−1=Z⊤DXDY−1(Z⊤)−1XY^{-1}=Z^{\top}D_{X}D_{Y}^{-1}(Z^{\top})^{-1}. According to the following Lemma 8 (i.e., all diagonal elements of DxDy−1D_{x}D_{y}^{-1} are non-zero and distinct), the matrix XY−1XY^{-1} have kk eigenvectors and there are kk ziz_{i}’s, therefore ziz_{i}’s are the only eigenvectors of XY−1XY^{-1}. □\Box

With probability 11, all diagonal elements of DXD_{X} and DYD_{Y} are non-zero and all diagonal elements of DXDY−1D_{X}D_{Y}^{-1} are distinct, where X=Z⊤DXZX=Z^{\top}D_{X}Z and Y=Z⊤DYZY=Z^{\top}D_{Y}Z are defined in Line 7 of Algorithm 2.

A.2 Noisy Case

Now, we discuss how to handle the noisy case (i.e. y=σ(Wx)+ξy=\sigma(Wx)+\xi). The corresponding algorithm is described in Algorithm 3. Note that the noise ξ\xi only affects the first two steps, i.e., pure neuron detector (Lemma 3) and finding span of \mboxvec∗(zizi⊤)\mbox{vec}^{*}(z_{i}z_{i}^{\top}) (Lemma 4). It does not affect the last two steps, i.e., finding ziz_{i}’s from the span (Lemma 5) and learning the reduced single-layer network. Because Lemma 5 is independent of the model and Lemma 1 is linear wrt. noise ξ\xi, which has zero mean and is independent of input xx.

Many of the steps in Algorithm 3 are designed with the robustness of the algorithm in mind. For example, in step 5 for the exact case we just need to compute the null space of TT. However if we use the empirical moments the null space might be perturbed so that it has small singular values. The separation of the input samples into two halves is also to avoid correlations between the steps, and is not necessary if we have the exact moments.

Modification for finding span: For Lemma 4, as we discussed above, here we assume the augmented distinguishing matrix MM is full rank. The corresponding lemma is stated as follows (the proof is exactly the same as previous Lemma 4):

Similar to Theorem 4, we provide the following theorem for the noisy case. The proof is almost the same as Theorem 4 by using the noisy version lemmas (Lemmas 9 and 10).

Now, we only need to prove Lemma 9 to finish this noise case.

Proof of Lemma 9. Similar to (5) and (6), we deduce these three terms in RHS of (11) one by one as follows. For the first term, it is exactly the same as (5) since the expectation is linear wrt. ξ\xi. Thus, we have

where the third equality holds due to Lemma 6 and Lemma 7, and (16) uses the definition of mijm_{ij}.

Finally, we combine these three terms (13–16) as follows:

where (17) uses (9) (same as (7)). □\Box

A.3 Extension to Non-square A𝐴A

In this paper, for simplicity, we have assumed that the dimension of output equals the number of hidden units and thus AA is a k×kk\times k square matrix. Actually, our algorithm can be easily extended to the case where the dimension of output is at least the number of hidden units. In this section, we give an algorithm for this general case, by reducing it to the case where AA is square. The pseudo-code is given in Algorithm 4.

For a ground truth neural network with weight matrices WW and P⊤AP^{\top}A, the generated sample will just be (x,P⊤y)(x,P^{\top}y). According to Theorem 5, we know for any input xx, we have Z−1σ(Vx)=P⊤Aσ(Wx)Z^{-1}\sigma(Vx)=P^{\top}A\sigma(Wx). Thus, we have

where the second equality holds since PP⊤PP^{\top} is just the projection matrix to the column span of AA. ∎

Appendix B Robustness of Main Algorithm

In this section we will show that even if we do not have access to the exact moments, as long as the empirical moments are estimated with enough (polynomially many) samples, Algorithm 2 and Algorithm 3 can still learn the parameters robustly. We will focus on Algorithm 3 as it is more general, the result for Algorithm 2 can be viewed as a corollary when the noise ξ=0\xi=0. Throughout this section, we will use V^,Z^−1\hat{V},\hat{Z}^{-1} to denote the results of Algorithm 3 with empirical moments, and use V,Z−1V,Z^{-1} for the results when the algorithm has access to exact moments, similarly for other intermediate results. For the robustness of Algorithm 3, we prove the following theorem.

In order to prove the above Theorem, we need to show that each step of Algorithm 3 is robust. We can divide Algorithm 3 into three steps: finding the span of \mboxvec∗(zizi⊤)\mbox{vec}^{*}(z_{i}z_{i}^{\top})’s; finding ziz_{i}’s from the span of \mboxvec∗(zizi⊤)\mbox{vec}^{*}(z_{i}z_{i}^{\top})’s; recovering first layer using Algorithm 1. We will first state the key lemmas that prove every step is robust to noise, and finally combine them to show our main theorem.

First, we show that with polynomial number of samples, we can approximate the span of \mboxvec∗(zizi⊤)\mbox{vec}^{*}(z_{i}z_{i}^{\top})’s in arbitrary accuracy. Let T^\hat{T} be the empirical estimate of TT, which is the pure neuron detector matrix as defined in Algorithm 3. As shown in Lemma 10, the null space of TT is exactly the span of \mboxvec∗(zizi⊤)\mbox{vec}^{*}(z_{i}z_{i}^{\top})’s. We use standard matrix perturbation theory (see Section D.2) to show that the null space of TT is robust to small perturbations. More precisely, in Lemma 11, we show that with polynomial number of samples, the span of kk least singular vectors of T^\hat{T} is close to the null space of TT.

The proof of the above lemma is in Section B.1. Basically, we need to lowerbound the spectral gap (k2k_{2}-th singular value of TT) and to upperbound the Frobenius norm of T−T^T-\hat{T}. Standard matrix perturbation bound shows that if the perturbation is much smaller than the spectral gap, then the null space is preserved.

Next, we show that we can robustly find ziz_{i}’s from the span of \mboxvec∗(zizi⊤)\mbox{vec}^{*}(z_{i}z_{i}^{\top})’s. Since this step of the algorithm is the same as the simultaneous diagonalization algorithm for tensor decompositions, we use the robustness of simultaneous diagonalization (Bhaskara et al.,, 2014) to show that we can find ziz_{i}’s robustly. The detailed proof is in Section B.2.

Finally, given z^i\hat{z}_{i}’s, the problem reduces to a one-layer problem. We will first give an analysis for Algorithm 1 as a warm-up. When we call Algorithm 1 from Algorithm 3, the situation is slightly different. Note we reserve fresh samples for this step, so that the samples used by Algorithm 1 are still independent with the estimate z^i\hat{z}_{i} (learned using the other set of samples). However, since z^i\hat{z}_{i} is not equal to ziz_{i}, this introduces an additional error term (z^i−zi)⊤y(\hat{z}_{i}-z_{i})^{\top}y which is not independent of xx and cannot be captured by ξ\xi. We modify the proof for Algorithm 1 to show that the algorithm is still robust as long as ∥z^i−zi∥\|\hat{z}_{i}-z_{i}\| is small enough.

Combining the above three lemmas, we prove Theorem 7 in Section B.4.

We first prove that the step of finding the span of {\mboxvec∗(zizj⊤)}\{\mbox{vec}^{*}(z_{i}z_{j}^{\top})\} is robust. The main idea is based on standard matrix perturbation bounds (see Section D.2). We first give a lowerbound on the k2k_{2}-th singular value of TT, giving a spectral gap between the smallest non-zero singular value and the null space. See the lemma below. The proof is given in Section B.1.1.

Suppose σmin⁡(M)≥α,σmin⁡(A)≥β\sigma_{\min}(M)\geq\alpha,\sigma_{\min}(A)\geq\beta, we know that matrix TT has rank k2k_{2} and the k2k_{2}-th singular value of TT is lower bounded by αβ2\alpha\beta^{2}.

Then we show that with enough samples the estimate T^\hat{T} is close enough to TT, so Wedin’s Theorem (Lemma 25) implies the subspace found is also close to the true nullspace of TT. The proof is deferred to Section B.1.2.

Finally we combine the above two lemmas and show that the span of the least kk right singular vectors of T^\hat{T} is close to the null space of TT.

According to Lemma 15, given O(d3Γ14(ΓP1k+P2)6log⁡(dδ)γ4ϵ2)O(\frac{d^{3}\Gamma^{14}(\Gamma P_{1}\sqrt{k}+P_{2})^{6}\log(\frac{d}{\delta})}{\gamma^{4}\epsilon^{2}}) number of i.i.d. samples, we know with probability at least 1−δ1-\delta,

According to Lemma 14, we know σk2(T)≥αβ2.\sigma_{k_{2}}(T)\geq\alpha\beta^{2}. Then, due to Lemma 27, we have

for any symmetric k×kk\times k matrix UU.

Note that \mboxvec∗(U)\mbox{vec}^{*}(U) is a (k2+k)(k_{2}+k)-dimensional vector. For convenience, we first use matrix FF to transform \mboxvec∗(U)\mbox{vec}^{*}(U) to \mboxvec(U)\mbox{vec}(U), which has k2k^{2} dimensions. Matrix FF is defined such that F\mboxvec∗(U)=\mboxvec(U)F\mbox{vec}^{*}(U)=\mbox{vec}(U), for any k×kk\times k symmetric matrix UU. Note that this is very easy as we just need to duplicate all the non-diagonal entries.

Second, we hope to get the coefficients (A⊤UA)ij(A^{\top}UA)_{ij}’s. Notice that

Since we only care about the elements of A⊤UAA^{\top}UA at the ijij-th position for 1≤i<j≤k1\leq i<j\leq k, we just pick corresponding rows of A⊤⊗A⊤A^{\top}\otimes A^{\top} to construct our matrix CC, which has dimension k2×k2k_{2}\times k^{2}.

The first matrix MM is the augmented distinguishing matrix (see Definition 1). In order to better understand the reason that we need matrix BB, let’s first re-write T\mboxvec∗(U)T\mbox{vec}^{*}(U) in the following way:

With above characterization of TT, we are ready to show that the k2k_{2}-th singular value of TT is lower bounded.

Since matrix CC has dimension k2×k2k_{2}\times k^{2}, it’s clear that the rank of TT is at most k2k_{2}. We first prove that the rank of TT is exactly k2k_{2}.

Since the first k2k_{2} rows of BB constitute the identity matrix Ik2I_{k_{2}}, we know BB is a full-column rank matrix with rank equal to k2k_{2}. We also know that matrix MM is a full column rank matrix with rank k2+1k_{2}+1. Thus, the product matrix MBMB is still a full-column rank matrix with rank k2k_{2}. If we can prove that the product matrix CFCF has full-row rank equal to k2k_{2}. It’s clear that T=MBCFT=MBCF also has rank k2k_{2}. Next, we prove that CFCF has full-row rank.

Now, let’s prove that the k2k_{2}-th singular value of TT is lower bounded. We first show that in the product characterization of TT, the smallest singular value of each individual matrix is lower bounded. According to the assumption, we know the smallest singular value of MM is lower bounded by α\alpha. Since the first k2k_{2} rows of matrix BB constitute a k2×k2k_{2}\times k_{2} identity matrix, we know

where uu is any k2k_{2}-dimensional vector.

Since σmin⁡(A)≥β\sigma_{\min}(A)\geq\beta, we know σmin⁡(A⊤⊗A⊤)≥β2\sigma_{\min}(A^{\top}\otimes A^{\top})\geq\beta^{2}. According to the construction of CC, we know CC consists a subset of rows of A⊤⊗A⊤A^{\top}\otimes A^{\top}. Denote the indices of the row not picked as SS. We have

where uu has dimension k2k_{2} and vv has dimension k2k^{2}.

Finally, since in the beginning we have proved that matrix TT has rank k2k_{2}, the k2k_{2}-th singular value is exactly the smallest non-zero singular value of TT. Denote the smallest non-zero singular of TT as σmin⁡+(T)\sigma_{\min}^{+}(T), we have

where the first inequality holds because both MM and BB has full column rank. ∎

In this section, we prove that given polynomial number of samples, ∥T^−T∥F\|\hat{T}-T\|_{F} is small with high probability. We do this by standard matrix concentration inequalities. Note that our requirements on the norm of xx is just for convenience, and the same proof works as long as xx has reasonable tail-behavior (e.g. sub-Gaussian).

In order to get an upper bound for ∥T^−T∥F\|\hat{T}-T\|_{F}, we first show that ∥T^−T∥2\|\hat{T}-T\|_{2} is upper bounded. We know

For any k×kk\times k symmetric matrix UU with eigenvalue decomposition U=∑i=1kλiu(i)(u(i))⊤U=\sum_{i=1}^{k}\lambda_{i}u^{(i)}(u^{(i)})^{\top}, according to the definition of TT, we know

where f^(u)=T^\mboxvec∗(uu⊤)\hat{f}(u)=\hat{T}\mbox{vec}^{*}(uu^{\top}) and the fourth inequality uses the Cauchy-Schwarz inequality. Next, we only need to upper bound max⁡u:∥u∥≤2∥f(u)−f^(u)∥\max_{u:\|u\|\leq 2}\|f(u)-\hat{f}(u)\|. Recall that

We first show that given polynomial number of samples,

Since each row of WW has unit norm, we have ∥W∥≤k\|W\|\leq\sqrt{k}. Due to the assumption that ∥x∥≤Γ,∥A∥≤P1,∥ξ∥≤P2\|x\|\leq\Gamma,\|A\|\leq P_{1},\|\xi\|\leq P_{2}, we have

According to Lemma 24, we know given O(Γ2(ΓP1k+P2)2log⁡(dδ)ϵ2)O(\frac{\Gamma^{2}(\Gamma P_{1}\sqrt{k}+P_{2})^{2}\log(\frac{d}{\delta})}{\epsilon^{2}}) number of samples,

Similarly, we can show that given O(Γ6(ΓP1k+P2)2log⁡(dδ)ϵ2)O(\frac{\Gamma^{6}(\Gamma P_{1}\sqrt{k}+P_{2})^{2}\log(\frac{d}{\delta})}{\epsilon^{2}}) number of samples,

Since ∥xx⊤∥≤Γ2\|xx^{\top}\|\leq\Gamma^{2}, we know that given O(Γ4log⁡(dδ)ϵ2)O(\frac{\Gamma^{4}\log(\frac{d}{\delta})}{\epsilon^{2}}) number of samples,

By union bound, we know for any ϵ<γ/2,\epsilon<\gamma/2, given O(Γ6(ΓP1k+P2)2log⁡(dδ)ϵ2)O(\frac{\Gamma^{6}(\Gamma P_{1}\sqrt{k}+P_{2})^{2}\log(\frac{d}{\delta})}{\epsilon^{2}}) number of samples, with probability at least 1−δ1-\delta, we have

Thus, given O(Γ14(ΓP1k+P2)6log⁡(dδ)γ4ϵ2)O(\frac{\Gamma^{14}(\Gamma P_{1}\sqrt{k}+P_{2})^{6}\log(\frac{d}{\delta})}{\gamma^{4}\epsilon^{2}}) number of samples, we know

Since \big{\|}(u^{\top}y)^{2}(x\otimes x)\big{\|}\leq 4\Gamma^{2}(\Gamma P_{1}\sqrt{k}+P_{2})^{2}, according to Lemma 24, we know given O(Γ4(ΓP1k+P2)4log⁡(dδ)ϵ2),O(\frac{\Gamma^{4}(\Gamma P_{1}\sqrt{k}+P_{2})^{4}\log(\frac{d}{\delta})}{\epsilon^{2}}),

Again, using Lemma 24 and union bound, we know given O(Γ2(ΓP1k+P2)2log⁡(dδ)ϵ2)O(\frac{\Gamma^{2}(\Gamma P_{1}\sqrt{k}+P_{2})^{2}\log(\frac{d}{\delta})}{\epsilon^{2}}) number of samples, we have

Thus, we know that given O(Γ2(ΓP1k+P2)6log⁡(dδ)ϵ2)O(\frac{\Gamma^{2}(\Gamma P_{1}\sqrt{k}+P_{2})^{6}\log(\frac{d}{\delta})}{\epsilon^{2}}) number of samples, we know

Similar as the first term, we can show that given O(Γ10(ΓP1k+P2)6log⁡(dδ)γ4ϵ2)O(\frac{\Gamma^{10}(\Gamma P_{1}\sqrt{k}+P_{2})^{6}\log(\frac{d}{\delta})}{\gamma^{4}\epsilon^{2}}) number of samples, we have

Now, we are ready to combine our bound for each of four terms. By union bound, we know given O(Γ14(ΓP1k+P2)6log⁡(dδ)γ4ϵ2)O(\frac{\Gamma^{14}(\Gamma P_{1}\sqrt{k}+P_{2})^{6}\log(\frac{d}{\delta})}{\gamma^{4}\epsilon^{2}}) number of samples,

hold with probability at least 1−δ1-\delta. Thus, we know

where the second inequality holds since ∥T^−T∥≤2kmax⁡u:∥u∥≤2∥f(u)−f^(u)∥.\|\hat{T}-T\|\leq\sqrt{2k}\max_{u:\|u\|\leq 2}\|f(u)-\hat{f}(u)\|.

Thus, we know given O(Γ14(ΓP1k+P2)6log⁡(dδ)γ4ϵ2)O(\frac{\Gamma^{14}(\Gamma P_{1}\sqrt{k}+P_{2})^{6}\log(\frac{d}{\delta})}{\gamma^{4}\epsilon^{2}}) number of samples,

with probability at least 1−δ1-\delta. Thus, given O(d3Γ14(ΓP1k+P2)6log⁡(dδ)γ4ϵ2)O(\frac{d^{3}\Gamma^{14}(\Gamma P_{1}\sqrt{k}+P_{2})^{6}\log(\frac{d}{\delta})}{\gamma^{4}\epsilon^{2}}) number of samples,

B.2 Robust Analysis for Simultaneous Diagonalization

In this section, we will show that the simultaneous diagonalization step in our algorithm is robust. Let SS and S^\hat{S} be two (k2+k)(k_{2}+k) by kk matrices, whose columns consist of the least kk right singular vectors of TT and T^\hat{T} respectively.

According to Lemma 11, we know with polynomial number of samples, the Frobenius norm of SS⊤−S^S^⊥SS^{\top}-\hat{S}\hat{S}^{\perp} is well bounded. However, due to the rotation issue of subspace basis, we cannot conclude that ∥S−S^∥F\|S-\hat{S}\|_{F} is small. Only after appropriate alignment, the difference between SS and S^\hat{S} becomes small.

Since SS has orthonormal columns, we have σk(SS⊤)=1\sigma_{k}(SS^{\top})=1. Then, according to Lemma 35, we know there exists rotation matrix RR such that

Let the kk columns of SS be \mboxvec∗(U1),\mboxvec∗(U2),⋯ ,\mboxvec∗(Uk)\mbox{vec}^{*}(U_{1}),\mbox{vec}^{*}(U_{2}),\cdots,\mbox{vec}^{*}(U_{k}). Note each UiU_{i} can be expressed as A−⊤DiA−1A^{-\top}D_{i}A^{-1}, where DiD_{i} is a diagonal matrix. Let QQ be a k×kk\times k matrix, whose ii-th column consists of the diagonal elements of DiD_{i}, such that QijQ_{ij} equals the jj-th diagonal element of DiD_{i}. Let \mboxvec∗(X)=SRζ1,\mboxvec∗(Y)=SRζ2\mbox{vec}^{*}(X)=SR\zeta_{1},\mbox{vec}^{*}(Y)=SR\zeta_{2}, where RR is the rotation matrix in Lemma 16 and ζ1,ζ2\zeta_{1},\zeta_{2} are two independent standard Gaussian vectors. Let DX=\mboxdiag(QRζ1)D_{X}=\mbox{diag}(QR\zeta_{1}) and DY=\mboxdiag(QRζ2)D_{Y}=\mbox{diag}(QR\zeta_{2}). It’s not hard to check that X=A−⊤DXA−1X=A^{-\top}D_{X}A^{-1} and Y=A−⊤DYA−1Y=A^{-\top}D_{Y}A^{-1}. Furthermore, we have XY−1=A−⊤DXDY−1A⊤XY^{-1}=A^{-\top}D_{X}D_{Y}^{-1}A^{\top}. Next, we show that the diagonal elements of DXDY−1D_{X}D_{Y}^{-1} are well separated.

Assume that ∥A∥≤P1,σmin⁡(A)≥β\|A\|\leq P_{1},\sigma_{\min}(A)\geq\beta. Then for any δ>0\delta>0 we know with probability at least 1−δ1-\delta, we have

where \mboxsep(DXDY−1):=min⁡i≠j∣(DXDY−1)ii−(DXDY−1)jj∣\mbox{sep}(D_{X}D_{Y}^{-1}):=\min_{i\neq j}|(D_{X}D_{Y}^{-1})_{ii}-(D_{X}D_{Y}^{-1})_{jj}|.

We first show that matrix QQ is well-conditioned. Since Ui=A−⊤DiA−1U_{i}=A^{-\top}D_{i}A^{-1}, we have \mboxvec(Ui)=A−⊤⊗A−⊤\mboxvec(Di).\mbox{vec}(U_{i})=A^{-\top}\otimes A^{-\top}\mbox{vec}(D_{i}). Let UU be a k2×kk^{2}\times k matrix whose columns consist of \mboxvec(Ui)\mbox{vec}(U_{i})’s. Also define Qˉ\bar{Q} as a k2×kk^{2}\times k matrix whose columns are \mboxvec(Di)\mbox{vec}(D_{i})’s. Note that matrix Qˉ\bar{Q} only has kk non-zero rows, which are exactly matrix QQ. With the above definition, we have U=A−⊤⊗A−⊤QˉU=A^{-\top}\otimes A^{-\top}\bar{Q}. Since σmin⁡(U)≤∥A−⊤⊗A−⊤∥σmin⁡(Qˉ)\sigma_{\min}(U)\leq\|A^{-\top}\otimes A^{-\top}\|\sigma_{\min}(\bar{Q}), we have

Notice that a subset of rows of UU constitute matrix SS, which is an orthonormal matrix. Thus, we have σmin⁡(U)≥σmin⁡(S)=1\sigma_{\min}(U)\geq\sigma_{\min}(S)=1. Since we assume σmin⁡(A)≥β\sigma_{\min}(A)\geq\beta, we have

Thus, we have σmin⁡(Qˉ)≥β2\sigma_{\min}(\bar{Q})\geq\beta^{2}, which implies σmin⁡(Q)≥β2\sigma_{\min}(Q)\geq\beta^{2}.

We also know ∥U∥≥σmin⁡(A−⊤⊗A−⊤)∥Qˉ∥\|U\|\geq\sigma_{\min}(A^{-\top}\otimes A^{-\top})\|\bar{Q}\|, thus

Since ∥S∥=1\|S\|=1, we know ∥U∥≤2.\|U\|\leq\sqrt{2}. For the smallest singular value of A−⊤⊗A−⊤A^{-\top}\otimes A^{-\top}, we have

Thus, we have ∥Qˉ∥≤2P12\|\bar{Q}\|\leq\sqrt{2}P_{1}^{2}, which implies ∥Q∥≤2P12\|Q\|\leq\sqrt{2}P_{1}^{2}.

Now, let’s prove that the diagonal elements of DXDY−1D_{X}D_{Y}^{-1} are well-separated. Let qi⊤q_{i}^{\top} be the ii-th row vector of QQ. Then we know the ii-th diagonal element of DXDY−1D_{X}D_{Y}^{-1} is ⟨qi,Rζ1⟩⟨qi,Rζ2⟩\frac{\langle q_{i},R\zeta_{1}\rangle}{\langle q_{i},R\zeta_{2}\rangle}. Since ∥Q∥≤2P12\|Q\|\leq\sqrt{2}P_{1}^{2}, we have ∥qi∥≤2P12\|q_{i}\|\leq\sqrt{2}P_{1}^{2} for every row vector.

It’s not hard to show that with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}), we have ∣⟨qi,Rζ2⟩∣≤\mboxpoly(d,P1)|{\langle q_{i},R\zeta_{2}\rangle}|\leq\mbox{poly}(d,P_{1}) for each ii. Now given ζ2\zeta_{2} for which this happens, we have ⟨qi,Rζ1⟩⟨qi,Rζ2⟩−⟨qj,Rζ1⟩⟨qj,Rζ2⟩=ci⟨qi,Rζ1⟩−cj⟨qj,Rζ1⟩\frac{\langle q_{i},R\zeta_{1}\rangle}{\langle q_{i},R\zeta_{2}\rangle}-\frac{\langle q_{j},R\zeta_{1}\rangle}{\langle q_{j},R\zeta_{2}\rangle}=c_{i}\langle q_{i},R\zeta_{1}\rangle-c_{j}\langle q_{j},R\zeta_{1}\rangle, where ci,cjc_{i},c_{j} have magnitude as least \mboxpoly(1/d,1/P1)\mbox{poly}(1/d,1/P_{1}). Since σmin(Q)≥β2\sigma_{min}(Q)\geq\beta^{2}, we know ∥\mboxProjqj⊥qi∥≥β2\|\mbox{Proj}_{q_{j}^{\perp}}q_{i}\|\geq\beta^{2} (because otherwise there exists λ\lambda such that ∥(ei+λej)∥σmin(Q)≤∥(ei+λej)⊤Q∥=∥\mboxProjqj⊥qi∥<β2\|(e_{i}+\lambda e_{j})\|\sigma_{min}(Q)\leq\|(e_{i}+\lambda e_{j})^{\top}Q\|=\|\mbox{Proj}_{q_{j}^{\perp}}q_{i}\|<\beta^{2}, which is a contradiction). Let qi,j⊥=\mboxProjqj⊥qi=qi−λi,jqjq_{i,j}^{\perp}=\mbox{Proj}_{q_{j}^{\perp}}q_{i}=q_{i}-\lambda_{i,j}q_{j}, we can rewrite this as

By properties of Gaussians, we know ⟨qi,j⊥,Rζ1⟩\langle q_{i,j}^{\perp},R\zeta_{1}\rangle is independent of ⟨qj,Rζ1⟩\langle q_{j},R\zeta_{1}\rangle, so we can first fix ⟨qj,Rζ1⟩\langle q_{j},R\zeta_{1}\rangle and apply anti-concentration of Gaussians (see Lemma 38) to ⟨qi,j⊥,Rζ1⟩\langle q_{i,j}^{\perp},R\zeta_{1}\rangle. As a result we know with probability at least 1−δ/k21-\delta/k^{2}:

By union bound, we know with probability at least 1−δ,1-\delta,

Let X^=S^ζ1\hat{X}=\hat{S}\zeta_{1} and Y^=S^ζ2\hat{Y}=\hat{S}\zeta_{2}. Next, we prove that the eigenvectors of X^Y^−1\hat{X}\hat{Y}^{-1} are close to the eigenvectors of XY−1XY^{-1}.

Let z1′,⋯ ,zk′z_{1}^{\prime},\cdots,z_{k}^{\prime} be the eigenvectors of XY−1XY^{-1} (before sign flip step). Similarly define z^1′,⋯ ,z^k′\hat{z}_{1}^{\prime},\cdots,\hat{z}_{k}^{\prime} for X^Y^−1\hat{X}\hat{Y}^{-1}. We first prove that the eigenvectors of X^Y^−1\hat{X}\hat{Y}^{-1} are close to the eigenvectors of XY−1XY^{-1}.

Let X^=X+EX\hat{X}=X+E_{X} and Y^=Y+EY\hat{Y}=Y+E_{Y}. Then we have

where F=−EY(I+Y−1EY)−1Y−1F=-E_{Y}(I+Y^{-1}E_{Y})^{-1}Y^{-1} and G=EXY^−1.G=E_{X}\hat{Y}^{-1}. According to Lemma 34, we have ∥F∥≤∥EY∥σmin⁡(Y)−∥EY∥\|F\|\leq\frac{\|E_{Y}\|}{\sigma_{\min}(Y)-\|E_{Y}\|} and ∥G∥≤∥EX∥σmin⁡(Y^)\|G\|\leq\frac{\|E_{X}\|}{\sigma_{\min}(\hat{Y})}. In order to bound the perturbation matrices ∥F∥\|F\| and ∥G∥\|G\|, we need to first bound ∥EX∥,∥EY∥\|E_{X}\|,\|E_{Y}\| and σmin⁡(Y),σmin⁡(Y^)\sigma_{\min}(Y),\sigma_{\min}(\hat{Y}).

As we know, EX=X^−X=(S^−SR)ζ1E_{X}=\hat{X}-X=(\hat{S}-SR)\zeta_{1}. According to Lemma 16, we have ∥S^−SR∥≤∥S^−SR∥F≤2ϵ.\|\hat{S}-SR\|\leq\|\hat{S}-SR\|_{F}\leq 2\epsilon. We also know with probability at least 1−exp⁡(−dΩ(1)),1-\exp(-d^{\Omega(1)}), ∥ζ1∥≤\mboxpoly(d).\|\zeta_{1}\|\leq\mbox{poly}(d). Thus, we have

Similarly, with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}), we also know ∥EY∥≤\mboxpoly(ϵ,d).\|E_{Y}\|\leq\mbox{poly}(\epsilon,d).

Now, we lower bound the smallest singular value of XX and YY. Since X=A−⊤DXA−1X=A^{-\top}D_{X}A^{-1}, we have

Since DXD_{X} is a diagonal matrix, its smallest singular value equals the smallest absolute value of its diagonal element. Recall each diagonal element of DXD_{X} is ⟨qi,Rζ1⟩\langle q_{i},R\zeta_{1}\rangle, which follows a Gaussian distribution whose standard deviation is at least ∥qi∥≥β2\|q_{i}\|\geq\beta^{2}. By anti-concentration property of Gaussian (see Lemma 38), we know ∣⟨qi,Rζ2⟩∣≥Ω(δβ2/k)|{\langle q_{i},R\zeta_{2}\rangle}|\geq\Omega(\delta\beta^{2}/k) for all ii with probability 1−δ/41-\delta/4. Thus, we have σmin⁡(X)≥\mboxpoly(1/d,1/P1,β,δ)\sigma_{\min}(X)\geq\mbox{poly}(1/d,1/P_{1},\beta,\delta). Similarly we have the same conclusion for YY. For small enough EYE_{Y}, we have σmin⁡(Y^)≥σmin⁡(Y)−∥EY∥.\sigma_{\min}(\hat{Y})\geq\sigma_{\min}(Y)-\|E_{Y}\|.

Thus, for small enough ϵ\epsilon, we have ∥F∥≤\mboxpoly(d,P1,1/β,ϵ,1/δ)\|F\|\leq\mbox{poly}(d,P_{1},1/\beta,\epsilon,1/\delta) and ∥G∥≤\mboxpoly(d,P1,1/β,ϵ,1/δ)\|G\|\leq\mbox{poly}(d,P_{1},1/\beta,\epsilon,1/\delta). In order to apply Lemma 33, we also need to bound κ(A−⊤)\kappa(A^{-\top}) and ∥XY−1∥\|XY^{-1}\|. Since σmin⁡(A−⊤)≥1P1\sigma_{\min}(A^{-\top})\geq\frac{1}{P_{1}} and ∥A−⊤∥≤1/β\|A^{-\top}\|\leq 1/\beta, we have κ(A−⊤)≤P1/β.\kappa(A^{-\top})\leq P_{1}/\beta. For the norm of XY−1XY^{-1}, we have

where the second inequality holds because σmin⁡(Y)≥\mboxpoly(1/d,1/P1,β,δ).\sigma_{\min}(Y)\geq\mbox{poly}(1/d,1/P_{1},\beta,\delta). Recall that X=\mboxmat∗(SRζ1)X=\mbox{mat}^{*}(SR\zeta_{1}). It’s not hard to verify that with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}), we have ∥X∥≤\mboxpoly(d)\|X\|\leq\mbox{poly}(d). Thus, we know ∥XY−1∥≤\mboxpoly(d,P1,1/β,1/δ)\|XY^{-1}\|\leq\mbox{poly}(d,P_{1},1/\beta,1/\delta). Similarly, we can also prove that ∥DXDY−1∥≤\mboxpoly(d,P1,1/β,1/δ)\|D_{X}D_{Y}^{-1}\|\leq\mbox{poly}(d,P_{1},1/\beta,1/\delta)

According to Lemma 17, we know with probability at least 1−δ/41-\delta/4, sep(DXDY−1)≥\mboxpoly(1/d,1/P1,β,δ).\text{sep}(D_{X}D_{Y}^{-1})\geq\mbox{poly}(1/d,1/P_{1},\beta,\delta). Thus, by union bound, we know for small enough ϵ\epsilon, with probability at least 1−δ1-\delta,

According to Lemma 33, we know there exists a permutation π[i]∈[k]\pi[i]\in[k], such that

In the following lemma, we show that the sign flip step of z^i\hat{z}_{i} is robust.

Suppose that ∥x∥≤Γ,∥A∥≤P1,∥ξ∥≤P2.\|x\|\leq\Gamma,\|A\|\leq P_{1},\|\xi\|\leq P_{2}. Let z1′,⋯ ,zk′z_{1}^{\prime},\cdots,z_{k}^{\prime} be the eigenvectors of XY−1XY^{-1} (before sign flip step). Similarly define z^1′,⋯ ,z^k′\hat{z}_{1}^{\prime},\cdots,\hat{z}_{k}^{\prime} for X^Y^−1\hat{X}\hat{Y}^{-1}. Suppose for each ii, ∥zi′−z^i′∥≤ϵ\|z_{i}^{\prime}-\hat{z}_{i}^{\prime}\|\leq\epsilon, where ϵ≤βγ4Γ(1+ΓP1k+P2)\epsilon\leq\frac{\beta\gamma}{4\Gamma(1+\Gamma P_{1}\sqrt{k}+P_{2})}. We know, for any δ<1\delta<1, with O((ΓP1k+P2)2log⁡(d/δ)ϵ2)O(\frac{(\Gamma P_{1}\sqrt{k}+P_{2})^{2}\log(d/\delta)}{\epsilon^{2}}) number of i.i.d. samples,

B.3 Robust Analysis for Recovering First Layer Weights

We will first show that Algorithm 1 is robust.

where w^\hat{w} is the learned weight vector.

By union bound, we know for any ϵ≤γ/2\epsilon\leq\gamma/2, given O((Γ2+P2Γ)2log⁡(dδ)ϵ2)O(\frac{(\Gamma^{2}+P_{2}\Gamma)^{2}\log(\frac{d}{\delta})}{\epsilon^{2}}) number of samples, with probability at least 1−δ1-\delta, we have

Thus, given O((Γ2+P2Γ)4log⁡(dδ)γ4ϵ2)O(\frac{(\Gamma^{2}+P_{2}\Gamma)^{4}\log(\frac{d}{\delta})}{\gamma^{4}\epsilon^{2}}) number of samples, with probability at least 1−δ1-\delta, we have

Now let’s go back to the call to Algorithm 1 in Algorithm 3. Let ziz_{i}’s be the normalized rows of A−1A^{-1}, and let z^i\hat{z}_{i}’s be the eigenvectors of X^Y^−1\hat{X}\hat{Y}^{-1} (with correct sign). From Lemma 12, we know {z^i}\{\hat{z}_{i}\} are close to {zi}\{z_{i}\} with permutation. Without loss of generality, we assume the permutation here is just an identity mapping, which means ∥zi−z^i∥\|z_{i}-\hat{z}_{i}\| is small for each ii.

For each ziz_{i}, let viv_{i} be the output of Algorithm 1 given infinite number of inputs (x,zi⊤y)(x,z_{i}^{\top}y). For each z^i\hat{z}_{i}, let v^i\hat{v}_{i} be the output of Algorithm 1 given only finite number of samples (x,z^i⊤y).(x,\hat{z}_{i}^{\top}y). In this section, we show that suppose ∥zi−z^i∥\|z_{i}-\hat{z}_{i}\| is bounded, with polynomial number of samples, ∥vi−v^i∥\|v_{i}-\hat{v}_{i}\| is also bounded.

The input for Algorithm 1 is (x,z^i⊤y)(x,\hat{z}_{i}^{\top}y). We view z^i⊤y\hat{z}_{i}^{\top}y as the summation of zi⊤yz_{i}^{\top}y and a noise term (z^i−zi)⊤y(\hat{z}_{i}-z_{i})^{\top}y. Here, the issue is that the noise term (z^i−zi)⊤y(\hat{z}_{i}-z_{i})^{\top}y is not independent with the sample (x,z^i⊤y)(x,\hat{z}_{i}^{\top}y), which makes the robust analysis in Theorem 8 not applicable. On the other hand, since we reserve a separate set of samples for Algorithm 1, the estimate z^i\hat{z}_{i} is independent with the samples (x,y)(x,y)’s used by Algorithm 1. Thus, the samples (x,zi^⊤y)(x,\hat{z_{i}}^{\top}y)’s here are still i.i.d., which enables us to use matrix concentration bounds to show the robustness here.

The first term can be bounded as follows.

We can use standard matrix concentration bounds to upper bound the second term. By similar analysis of Theorem 1, we know given O((Γ2+P2Γ)4log⁡(dδ)γ4ϵ2)O(\frac{(\Gamma^{2}+P_{2}\Gamma)^{4}\log(\frac{d}{\delta})}{\gamma^{4}\epsilon^{2}}) number of i.i.d. samples, with probability at least 1−δ1-\delta,

By union bound, we know given O((Γ2+P2Γ)4log⁡(dδ)γ4ϵ2)O(\frac{(\Gamma^{2}+P_{2}\Gamma)^{4}\log(\frac{d}{\delta})}{\gamma^{4}\epsilon^{2}}) number of i.i.d. samples, with probability at least 1−δ1-\delta,

B.4 Proof of Theorem 7

Proof of Theorem 7. Combining Lemma 11, Lemma 12 and Lemma 13, we know given \mbox{poly}\big{(}\Gamma,P_{1},P_{2},d,1/\epsilon,1/\gamma,1/\alpha,1/\beta,1/\delta\big{)} number of i.i.d. samples, with probability at least 1−δ1-\delta,

Let VV be a k×dk\times d matrix whose rows are viv_{i}’s. Similarly define matrix V^\hat{V} for v^i\hat{v}_{i}’s. Since ∥vi−v^i∥≤ϵ\|v_{i}-\hat{v}_{i}\|\leq\epsilon for any ii, we know every row vector of V−V^V-\hat{V} has norm at most ϵ\epsilon, which implies ∥V−V^∥≤kϵ\|V-\hat{V}\|\leq\sqrt{k}\epsilon.

Let ZZ be a k×kk\times k matrix whose rows are ziz_{i}’s. Similarly define matrix Z^\hat{Z} for z^i\hat{z}_{i}’s. Again, we have ∥Z−Z^∥≤kϵ\|Z-\hat{Z}\|\leq\sqrt{k}\epsilon. In order to show ∥Z−1−Z^−1∥\|Z^{-1}-\hat{Z}^{-1}\| is small using standard matrix perturbation bounds (Lemma 29), we need to lower bound σmin⁡(Z)\sigma_{\min}(Z). Notice that ZZ is just matrix A−1A^{-1} with normalized row vectors. As we know, σmin⁡(A−1)≥1/P1\sigma_{\min}(A^{-1})\geq 1/P_{1}, and ∥A−1∥≤1/β\|A^{-1}\|\leq 1/\beta, which implies that every row vector of A−1A^{-1} has norm at most 1/β1/\beta. Let DzD_{z} be the diagonal matrix whose i,ii,i-th entry is the norm of ii-th row of A−1A^{-1}, then Z=Dz−1A−1Z=D_{z}^{-1}A^{-1}, and we know σmin(Z)≥σmin(Dz−1)σmin(A−1)≥β/P1\sigma_{min}(Z)\geq\sigma_{min}(D_{z}^{-1})\sigma_{min}(A^{-1})\geq\beta/P_{1}.

Then, according to Lemma 29, as long as ϵ≤β2P1\epsilon\leq\frac{\beta}{2P_{1}}, we have

We know ∥E1∥≤22P12kϵ/β2\|E_{1}\|\leq 2\sqrt{2}P_{1}^{2}\sqrt{k}\epsilon/\beta^{2} and ∥E2∥≤kϵ.\|E_{2}\|\leq\sqrt{k}\epsilon. In order to bound ∥V∥\|V\|, we can bound the norm of its row vectors. We have,

which implies ∥V∥≤2kΓ(ΓP1k+P2)γ.\|V\|\leq\frac{2\sqrt{k}\Gamma(\Gamma P_{1}\sqrt{k}+P_{2})}{\gamma}. Now we can bound ∥Z−1σ(Vx)−Z^−1σ(V^x)∥\|Z^{-1}\sigma(Vx)-\hat{Z}^{-1}\sigma(\hat{V}x)\| as follows.

where the first inequality holds since ∥σ(Vx)∥≤∥Vx∥\|\sigma(Vx)\|\leq\|Vx\| and ∥σ(V^x)−σ(Vx)∥≤∥V^x−Vx∥\|\sigma(\hat{V}x)-\sigma(Vx)\|\leq\|\hat{V}x-Vx\|.

Thus, we know given \mbox{poly}\big{(}\Gamma,P_{1},P_{2},d,1/\epsilon,1/\gamma,1/\alpha,1/\beta,1/\delta\big{)} number of i.i.d. samples, with probability at least 1−δ1-\delta,

where the first equality holds because Aσ(Wx)=Z−1σ(Vx)A\sigma(Wx)=Z^{-1}\sigma(Vx), as shown in Theorem 5. □\Box

Appendix C Smoothed Analysis for Distinguishing Matrices

In smoothed analysis, it’s clear that after adding small Gaussian perturbations, matrix AA and WW will become robustly full rank with reasonable probability (Lemma 36). In this section, we will focus on the tricky part, using smoothed analysis framework to show that it is natural to assume the distinguishing matrix is robustly full rank. We will consider two settings. In the first case, the input distribution is the Gaussian distribution N(0,Id)\mathcal{N}(0,I_{d}), and the weights for the first layer matrix WW is perturbed by a small Gaussian noise. In this case we show that the augmented distinguishing matrix MM has smallest singular value σmin⁡(M)\sigma_{\min}(M) that depends polynomially on the dimension and the amount of perturbation. This shows that for the Gaussian input distribution, σmin⁡(M)\sigma_{\min}(M) is lower bounded as long as WW is in general position. In the second case, we will fix a full rank weight matrix WW, and consider an arbitrary symmetric input distribution D\mathcal{D}. There is no standard way of perturbing a symmetric distribution, we give a simple perturbation D′\mathcal{D}^{\prime} that can be arbitrarily close to D\mathcal{D}, and prove that σmin⁡(MD′)\sigma_{\min}(M^{\mathcal{D}^{\prime}}) is lowerbounded.

We first consider the case when the input follows standard Gaussian distribution N(0,Id)\mathcal{N}(0,I_{d}). The weight matrix WW is perturbed to W~\widetilde{W} where

where w~i⊤\widetilde{w}_{i}^{\top} is the ii-th row of W~\widetilde{W}. Also, since M~\widetilde{M} is the augmented distinguishing matrix it has a final column M~0=\mboxvec(Id)\widetilde{M}_{0}=\mbox{vec}(I_{d}). We show that the smallest singular value of M~\widetilde{M} is lower bounded with high probability.

Suppose that k≤d/5k\leq d/5, and the input follows standard Gaussian distribution N(0,Id)\mathcal{N}(0,I_{d}). Given any weight matrix WW with ∥wi∥≤τ\|w_{i}\|\leq\tau for each row vector, let W~\widetilde{W} be a perturbed version of WW according to Equation (18) and M~\widetilde{M} be the perturbed augmented distinguishing matrix. With probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}), we have

We will prove this Theorem in Section C.1.

Our algorithm works for a general symmetric input distribution D\mathcal{D}. However, we cannot hope to get a result like Theorem 9 for every symmetric input distribution D\mathcal{D}. As a simple example, if D\mathcal{D} is just concentrated on , then we do not get any information about weights and the problem is highly degenerate. Therefore, we must specify a way to perturb the input distribution.

We define a perturbation that is parametrized by a random Gaussian matrix QQ and a parameter λ∈(0,1)\lambda\in(0,1). The random matrix QQ is used to generate a Gaussian distribution DQ\mathcal{D}_{Q} with a random covariance matrix. To sample a point in DQ\mathcal{D}_{Q}, first sample n∼N(0,Id)n\sim\mathcal{N}(0,I_{d}), and then output QnQn. The (Q,λ)(Q,\lambda) perturbation of a distribution D\mathcal{D}, which we denote by DQ,λ\mathcal{D}_{Q,\lambda} is a mixture between the distribution D\mathcal{D} and the distribution DQ\mathcal{D}_{Q}. More precisely, to sample xx from DQ,λ\mathcal{D}_{Q,\lambda}, pick zz as a Bernoulli random variable where Pr⁡[z=1]=λ\Pr[z=1]=\lambda and Pr⁡[z=0]=1−λ\Pr[z=0]=1-\lambda; pick x′x^{\prime} according to D\mathcal{D} and pick x′′=Qnx^{\prime\prime}=Qn according to distribution DQ\mathcal{D}_{Q}, then let

Intuitively, the (Q,λ)(Q,\lambda) perturbation of a distribution D\mathcal{D} mixes the distribution D\mathcal{D} with a Gaussian distribution DQ\mathcal{D}_{Q} with covariance matrix QQ⊤QQ^{\top}. Since both D\mathcal{D} and DQ\mathcal{D}_{Q} are symmetric, their mixture is also symmetric. Also, the TV-distance between D\mathcal{D} and DQ,λ\mathcal{D}_{Q,\lambda} is bounded by λ\lambda. Throughout this section we will use D′\mathcal{D}^{\prime} to denote the perturbed distribution DQ,λ\mathcal{D}_{Q,\lambda}

We show that given any input distribution, after applying (Q,λ)(Q,\lambda)-perturbation with a random Gaussian matrix QQ, the smallest singular value of the augmented distinguishing matrix MD′M^{\mathcal{D}^{\prime}} is lower bounded. Recall that MD′M^{\mathcal{D}^{\prime}} is defined as

Given weight matrix WW with ∥wi∥≤τ\|w_{i}\|\leq\tau for each row vector and symmetric input distribution D\mathcal{D}. Suppose that k≤d/7k\leq d/7 and σmin⁡(W)≥ρ\sigma_{\min}(W)\geq\rho, after applying (Q,λ)(Q,\lambda)-perturbations to yield perturbed input distribution D′\mathcal{D}^{\prime}, where QQ is a d×dd\times d matrix whose entries are i.i.d. Gaussians, we have with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}) over the randomness of QQ,

C.1 Smoothed Analysis for Gaussian Inputs

In this section, we will prove Theorem 9, as restated below:

To prove this theorem, recall the definition of MijM_{ij}:

Since Gaussian distribution is highly symmetric, for every direction uu that is orthogonal to both wiw_{i} and wjw_{j}, we have u⊤\mboxmat(Mij)uu^{\top}\mbox{mat}(M_{ij})u be a constant. We can compute this constant as

This implies that if we consider \mboxmat(Mij)−mijId\mbox{mat}(M_{ij})-m_{ij}I_{d}, it is going to be a matrix whose rows and columns are in span of wiw_{i} and wjw_{j}. In fact we can compute the matrix explicitly as the following lemma:

Suppose input xx follows standard Gaussian distribution N(0,Id)\mathcal{N}(0,I_{d}), and suppose weight matrix WW has full-row rank, then for any 1≤i<j≤k1\leq i<j\leq k, we have

where 0<ϕij<π0<\phi_{ij}<\pi is the angle between weight vectors wiw_{i} and wjw_{j}.

Of course, the same lemma would be applicable to W~\widetilde{W}, so we have an explicit formula for M~ij\widetilde{M}_{ij}. We will bound the smallest singular value using the idea of leave-one-out distance (as previously used in Rudelson and Vershynin, (2009)).

Leave-one-out distance is a metric that is closely related to the smallest singular value but often much easier to estimate.

Rudelson and Vershynin, (2009) showed that one can lowerbound the smallest singular value of a matrix by its leave-one-out distance.

Therefore, to bound σmin⁡(M~)\sigma_{\min}(\widetilde{M}) we just need to lowerbound d(M~)d(\widetilde{M}). We use the ideas similar to Bhaskara et al., (2014) and Ma et al., (2016). Since every column of M~\widetilde{M} (except for M~0\widetilde{M}_{0}) is random, we will try to show that even if we condition on all the other columns, because of the randomness in M~ij\widetilde{M}_{ij}, the distance between M~ij\widetilde{M}_{ij} to the span of other columns is large. However, there are several obstacles in this approach:

The augmented distinguishing matrix M~\widetilde{M} has a special column M~0=\mboxvec(Id)\widetilde{M}_{0}=\mbox{vec}(I_{d}) that does not have any randomness.

The closed form expression for M~\widetilde{M} (as in Lemma 19) has complicated coefficients that are not linear in the vectors w~i\widetilde{w}_{i} and w~j\widetilde{w}_{j}.

The columns of M~ij\widetilde{M}_{ij} are not independent with each other, so if we condition on all the other columns, M~ij\widetilde{M}_{ij} is no longer random.

To address the first obstacle, we will prove a stronger version of Lemma 20 that allows a special column.

This lemma shows that if we can bound the leave-one-out distance for all but one column, then the smallest singular value of the matrix is still lowerbounded as long as the columns do not have very different norms. We defer the proof to Section C.2.

For the second obstacle, we show that these coefficients are lowerbounded with high probability. Therefore we can condition on the event that all the coefficients are large enough.

Given weight vectors wiw_{i} and wjw_{j} with norm ∥wi∥,∥wj∥≤τ\|w_{i}\|,\|w_{j}\|\leq\tau, let w~i=wi+ρεi,w~j=wj+ρεj\widetilde{w}_{i}=w_{i}+\rho\varepsilon_{i},\widetilde{w}_{j}=w_{j}+\rho\varepsilon_{j} where εi,εj\varepsilon_{i},\varepsilon_{j} are i.i.d. Gaussian random vectors. With probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}), we know ∥w~i∥≤τ+3ρ2d/2\|\widetilde{w}_{i}\|\leq\tau+\sqrt{3\rho^{2}d/2}, ∥w~j∥≤τ+3ρ2d/2\|\widetilde{w}_{j}\|\leq\tau+\sqrt{3\rho^{2}d/2} and

where ϕ~ij\widetilde{\phi}_{ij} is the angle between w~i\widetilde{w}_{i} and w~j\widetilde{w}_{j}. In particular, if W~=W+ρE\widetilde{W}=W+\rho E where EE is an i.i.d. Gaussian random matrix, with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}), for all ii, ∥w~i∥≤τ+3ρ2d/2\|\widetilde{w}_{i}\|\leq\tau+\sqrt{3\rho^{2}d/2}, and for all i<ji<j, the coefficient ϕ~ij/π\widetilde{\phi}_{ij}/\pi in front of the term w~iw~j⊤+w~jw~i⊤\widetilde{w}_{i}\widetilde{w}_{j}^{\top}+\widetilde{w}_{j}\widetilde{w}_{i}^{\top} is at least ρ2(d−2)(2τ+3ρ2d)π\frac{\sqrt{\rho^{2}(d-2)}}{(\sqrt{2}\tau+\sqrt{3\rho^{2}d})\pi}.

This lemma intuitively says that after the perturbation w~i\widetilde{w}_{i} and w~j\widetilde{w}_{j} cannot be close to co-linear. We defer the detailed proof to Section C.2.

For the final obstacle, we use ideas very similar to Ma et al., (2016) which decouples the randomness of the columns.

Proof of Theorem 9. Let E1E_{1} be the event that Lemma 22 does not hold. Event E1E_{1} will be one of the bad events (but note that we do not condition on E1E_{1} not happening, we use a union bound at the end).

We partition [d][d] into two disjoint subsets L1,L2L_{1},L_{2} of size d/2d/2. Let M~′\widetilde{M}^{\prime} be the set of rows of M~\widetilde{M} indexed by L1×L2L_{1}\times L_{2}. That is, the columns of M~′\widetilde{M}^{\prime} are

for i<ji<j, where w~i,L\widetilde{w}_{i,L} denotes the restriction of vector w~i\widetilde{w}_{i} to the subset LL. Note that the restriction of \mboxvec(Id)\mbox{vec}(I_{d}) to the rows indexed by L1×L2L_{1}\times L_{2} is just an all zero vector.

We will focus on a column M~ij′\widetilde{M}_{ij}^{\prime} with i<ji<j and try to prove it has a large distance to the span of all the other columns. Let VijV_{ij} be the span of all other columns, which is equal to Vij=\mboxspan{M~kl′:k<l∧(k,l)≠(i,j)}V_{ij}=\mbox{span}\{\widetilde{M}_{kl}^{\prime}:k<l\wedge(k,l)\neq(i,j)\} (note that we do not need to consider M~0\widetilde{M}_{0} because that column is 0 when restricted to L1×L2L_{1}\times L_{2}.

It’s clear that VijV_{ij} is correlated with M~ij′\widetilde{M}_{ij}^{\prime}, which is bad for the proof. To get around this problem, we follow the idea of Ma et al., (2016) and define the following subspace that contains VijV_{ij},

By definition Vij⊂V^ijV_{ij}\subset\hat{V}_{ij}, and thus V^ij⊥⊂Vij⊥\hat{V}_{ij}^{\perp}\subset V_{ij}^{\perp}, where Vij⊥V_{ij}^{\perp} denotes the orthogonal subspace of VijV_{ij}. Observe that w~j,L1⊗w~i,L2,w~j,L1⊗w~j,L2,w~i,L1⊗w~i,L2∈V^ij\widetilde{w}_{j,L_{1}}\otimes\widetilde{w}_{i,L_{2}},\widetilde{w}_{j,L_{1}}\otimes\widetilde{w}_{j,L_{2}},\widetilde{w}_{i,L_{1}}\otimes\widetilde{w}_{i,L_{2}}\in\hat{V}_{ij}, thus

Note that w~i,L1⊗w~j,L2\widetilde{w}_{i,L_{1}}\otimes\widetilde{w}_{j,L_{2}} is independent with V^ij\hat{V}_{ij}. Moreover, subspace V^ij\hat{V}_{ij} has dimension at most (k−2)d/2+(k−2)d/2+d/2+d/2=(k−1)d<45⋅d24.(k-2)d/2+(k-2)d/2+d/2+d/2=(k-1)d<\frac{4}{5}\cdot\frac{d^{2}}{4}. Then by Lemma 31, we know that with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}),

Let E2E_{2} be the event that this inequality does not hold for some i,ji,j.

Let Sij=\mboxspan{M~0,M~kl:k<l∧(k,l)≠(i,j)}S_{ij}=\mbox{span}\{\widetilde{M}_{0},\widetilde{M}_{kl}:k<l\wedge(k,l)\neq(i,j)\}. Now we know when neither bad events E1E_{1} or E2E_{2} happens, for every pair i<ji<j,

Currently, we have proved that for any i<ji<j, the distance between column M~ij\widetilde{M}_{ij} and the span of other columns is at least inverse polynomial. To use Lemma 21 we just need to give a bound on the norms of these columns. By Lemma 22, we know when E1E_{1} does not happen

where τ\tau is the uniform upper bound of the norm of every row vector of WW. Let τ~=τ+3ρ2d2\widetilde{\tau}=\tau+\sqrt{\frac{3\rho^{2}d}{2}}, we know τ~=\mboxpoly(τ,d,ρ)\widetilde{\tau}=\mbox{poly}(\tau,d,\rho).

Thus, there exists C=\mboxpoly(τ,d,ρ)C=\mbox{poly}(\tau,d,\rho), such that ∥M~ij∥≤C\|\widetilde{M}_{ij}\|\leq C for every i<ji<j. Now applying Lemma 21 immediately gives the result. □\Box

C.2 Proof of Auxiliary Lemmas for Section C.1

We will first prove the characterization for columns in the augmented distinguishing matrix.

Proof of Lemma 19. For simplicity, we start by assuming that every weight vector wiw_{i} has unit norm. At the end of the proof we will discuss how to incorporate the norms of wiw_{i}, wjw_{j}. Also throughout the proof we will abuse notation to use MijM_{ij} as its matrix form \mboxmat(Mij)\mbox{mat}(M_{ij}).

Let \mboxProjSij=SijSij⊤,\mbox{Proj}_{S_{ij}}=S_{ij}S_{ij}^{\top}, and \mboxProjSij⊥=Id−SijSij⊤.\mbox{Proj}_{S_{ij}^{\perp}}=I_{d}-S_{ij}S_{ij}^{\top}. Then, we have

which is equivalent to proving that \mboxProjSij⊥Mij=mij\mboxProjSij⊥Id\mbox{Proj}_{S_{ij}^{\perp}}M_{ij}=m_{ij}\mbox{Proj}_{S_{ij}^{\perp}}I_{d}. It’s obvious that the column span of \mboxProjSij⊥Mij\mbox{Proj}_{S_{ij}^{\perp}}M_{ij} belongs to the subspace Sij⊥\mathcal{S}_{ij}^{\perp}. Actually, the row span of \mboxProjSij⊥Mij\mbox{Proj}_{S_{ij}^{\perp}}M_{ij} also belongs to the subspace Sij⊥\mathcal{S}_{ij}^{\perp}. To show this, let’s consider u⊤(\mboxProjSij⊥Mij)vu^{\top}(\mbox{Proj}_{S_{ij}^{\perp}}M_{ij})v, where u∈Sij⊥u\in\mathcal{S}_{ij}^{\perp} and v∈Sijv\in\mathcal{S}_{ij}.

where the last equality holds since u∈Sij⊥u\in\mathcal{S}_{ij}^{\perp} is orthogonal to e1(i,j)e_{1}^{(i,j)} and e2(i,j)e_{2}^{(i,j)}. We also know that

where the third equality holds because u⊤xu^{\top}x is independent with wi⊤x,wj⊤xw_{i}^{\top}x,w_{j}^{\top}x and v⊤v^{\top}. Note since uu is orthogonal with wi,wj,vw_{i},w_{j},v, we know for standard Gaussian vector xx, random variable u⊤xu^{\top}x is independent with wi⊤x,wj⊤x,v⊤xw_{i}^{\top}x,w_{j}^{\top}x,v^{\top}x.

Since the column span and row span of \mboxProjSij⊥Mij\mbox{Proj}_{S_{ij}^{\perp}}M_{ij} both belong to the subspace Sij⊥\mathcal{S}_{ij}^{\perp}, there must exist a (d−2)×(d−2)(d-2)\times(d-2) matrix CC, such that \mboxProjSij⊥Mij=Sij⊥C(Sij⊥)⊤\mbox{Proj}_{S_{ij}^{\perp}}M_{ij}=S_{ij}^{\perp}C(S_{ij}^{\perp})^{\top}. We only need to show this matrix CC must be mijId−2m_{ij}I_{d-2}. In order to show this, we prove for any u,v∈Sij⊥, u⊤(\mboxProjSij⊥Mij)v=miju⊤v.u,v\in\mathcal{S}_{ij}^{\perp},\ u^{\top}(\mbox{Proj}_{S_{ij}^{\perp}}M_{ij})v=m_{ij}u^{\top}v.

where the fourth equality holds because u⊤x,v⊤xu^{\top}x,v^{\top}x are independent with wi⊤x,wj⊤xw_{i}^{\top}x,w_{j}^{\top}x.

Let’s now compute the closed form for mijm_{ij}. Recall that

Note, we only need to consider input xx within subspace Sij\mathcal{S}_{ij}, which subspace has dimension two. Using the polar representation of two-dimensional Gaussian random variables (rr is the radius and θ\theta is the angle), we have

Next, we compute the closed form of \mboxProjSijMij\mbox{Proj}_{S_{ij}}M_{ij}. Note \mboxProjSijMij\mbox{Proj}_{S_{ij}}M_{ij} is symmetric, because \mboxProjSijMij=Mij−mijId+mijSijSij⊤\mbox{Proj}_{S_{ij}}M_{ij}=M_{ij}-m_{ij}I_{d}+m_{ij}S_{ij}S_{ij}^{\top}, and Mij,IdM_{ij},I_{d} and SijSij⊤S_{ij}S_{ij}^{\top} are all symmetric. It’s obvious that the column span of \mboxProjSijMij\mbox{Proj}_{S_{ij}}M_{ij} belongs to subspace Sij\mathcal{S}_{ij}. Combined with the fact that \mboxProjSijMij\mbox{Proj}_{S_{ij}}M_{ij} is symmetric, we know the row span of \mboxProjSijMij\mbox{Proj}_{S_{ij}}M_{ij} also belongs to the subspace Sij\mathcal{S}_{ij}. Thus, matrix \mboxProjSijMij\mbox{Proj}_{S_{ij}}M_{ij} can be represented as a linear combination of (e1(i,j))(e1(i,j))⊤,(e1(i,j))(e2(i,j))⊤,(e2(i,j))(e1(i,j))⊤(e_{1}^{(i,j)})(e_{1}^{(i,j)})^{\top},\\ (e_{1}^{(i,j)})(e_{2}^{(i,j)})^{\top},(e_{2}^{(i,j)})(e_{1}^{(i,j)})^{\top} and (e2(i,j))(e2(i,j))⊤(e_{2}^{(i,j)})(e_{2}^{(i,j)})^{\top}, which means

where c11(i,j),c12(i,j),c21(i,j)c_{11}^{(i,j)},c_{12}^{(i,j)},c_{21}^{(i,j)} and c22(i,j)c_{22}^{(i,j)} are four coefficients. Now, we only need to figure out the four coefficients of this linear combination. Similar as the computation for mijm_{ij}, we use polar integration to show that,

where the first equality holds because e1(i,j)e_{1}^{(i,j)} is orthogonal with e2(i,j)e_{2}^{(i,j)}. Similarly, we can show that

It’s easy to check that c12(i,j)=c21(i,j)c_{12}^{(i,j)}=c_{21}^{(i,j)}. Let Mij′M_{ij}^{\prime} be \mboxProjSijMij−mijSijSij\mbox{Proj}_{S_{ij}}M_{ij}-m_{ij}S_{ij}S_{ij}. Then, according to above computation, we know

Since e1(i,j)=wie_{1}^{(i,j)}=w_{i} and e2(i,j)=1sin⁡(ϕij)wj−cot⁡(ϕij)wie_{2}^{(i,j)}=\frac{1}{\sin(\phi_{ij})}w_{j}-\cot(\phi_{ij})w_{i}, we can also express Mij′M_{ij}^{\prime} as a linear combination of wiwi⊤,wjwj⊤,wiwj⊤w_{i}w_{i}^{\top},w_{j}w_{j}^{\top},w_{i}w_{j}^{\top} and wjwi⊤.w_{j}w_{i}^{\top}.

Finally, if the rows wi,wjw_{i},w_{j} do not have unit norm, let wˉi=wi/∥wi∥,wˉj=wj/∥wj∥\bar{w}_{i}=w_{i}/\|w_{i}\|,\bar{w}_{j}=w_{j}/\|w_{j}\|, we know

Here we used the fact that the indicator variable does not change whether we use wi,wjw_{i},w_{j} or wˉi,wˉj\bar{w}_{i},\bar{w}_{j}. Similarly,

Now we can prove the lemmas used to handle the two obstacles. First we give the stronger leave-one-out distance bound.

Proof of Lemma 21. The smallest singular value of AA can be defined as follows:

Suppose u∗∈\mboxargminu:∥u∥=1∥Au∥.u^{*}\in\mbox{argmin}_{u:\|u\|=1}\|Au\|. Let ui∗u^{*}_{i} be the coordinate corresponding to the column AiA_{i}, for 0≤i≤n0\leq i\leq n. We consider two cases here. If ∣u0∗∣≥4nC24nC2+d|u^{*}_{0}|\geq\sqrt{\frac{4nC^{2}}{4nC^{2}+d}}, then we have

where the third inequality uses Cauchy-Schwarz inequality.

If ∣u0∗∣<4nC24nC2+d|u^{*}_{0}|<\sqrt{\frac{4nC^{2}}{4nC^{2}+d}}, we know ∑1≤i≤n∣ui∗∣2≥d4nC2+d\sum_{1\leq i\leq n}|u^{*}_{i}|^{2}\geq\frac{d}{4nC^{2}+d}. Let k∈\mboxargmax1≤i≤n∣ui∗∣k\in\mbox{argmax}_{1\leq i\leq n}|u^{*}_{i}|. We know that ∣uk∗∣≥d4n2C2+nd|u^{*}_{k}|\geq\sqrt{\frac{d}{4n^{2}C^{2}+nd}}. Thus,

Above all, we know that the smallest singular value of AA is lower bounded as follows,

Next we give the bound on the angle between two perturbed vectors w~i\widetilde{w}_{i} and w~j\widetilde{w}_{j}.

Proof of Lemma 22. According to the definition of ρ\rho-perturbation, we know w~i=wi+ρεi,w~j=wj+ρεj\widetilde{w}_{i}=w_{i}+\rho\varepsilon_{i},\widetilde{w}_{j}=w_{j}+\rho\varepsilon_{j}, where εi,εj\varepsilon_{i},\varepsilon_{j} are i.i.d. standard Gaussian vectors. First, we show that with high probability, the projection of w~i\widetilde{w}_{i} on the orthogonal subspace of w~j\widetilde{w}_{j} is lower bounded. Denote the subspace spanned by w~j\widetilde{w}_{j} as Sw~j\mathcal{S}_{\widetilde{w}_{j}}, and denote the subspace spanned by {w~j,wi}\{\widetilde{w}_{j},w_{i}\} as Sw~j∪wi\mathcal{S}_{\widetilde{w}_{j}\cup w_{i}}. Thus, we have

where Sw~j⊥\mathcal{S}_{\widetilde{w}_{j}}^{\perp} is the orthogonal subspace of Sw~j\mathcal{S}_{\widetilde{w}_{j}}.

Let t=12t=\frac{1}{2}, we know that with probability at least 1−2exp⁡(−(d−2)32)1-2\exp(\frac{-(d-2)}{32}),

Thus, we have ∥\mboxProjSw~j⊥w~i∥≥ρ∥\mboxProjSw~j∪wi⊥εi∥≥ρ2(d−2)2.\|\mbox{Proj}_{\mathcal{S}_{\widetilde{w}_{j}}^{\perp}}\widetilde{w}_{i}\|\geq\rho\|\mbox{Proj}_{\mathcal{S}_{\widetilde{w}_{j}\cup w_{i}}^{\perp}}\varepsilon_{i}\|\geq\sqrt{\frac{\rho^{2}(d-2)}{2}}. Recall that

where the last equality holds since ∥wi∥≤τ\|w_{i}\|\leq\tau. Note ∥εi∥2\|\varepsilon_{i}\|^{2} is another chi-squared random variable with dd degrees of freedom. Similar as above, we can show that with probability at least 1−2exp⁡(−d32)1-2\exp(\frac{-d}{32}),

By union bound, we know with probability at least 1−2exp⁡(−d32)−2exp⁡(−(d−2)32),1-2\exp(\frac{-d}{32})-2\exp(\frac{-(d-2)}{32}),

Combined with the fact that ϕ~ij≥sin⁡(ϕ~ij)\widetilde{\phi}_{ij}\geq\sin(\widetilde{\phi}_{ij}) when ϕ~ij∈[0,π]\widetilde{\phi}_{ij}\in[0,\pi], we know with probability at least 1−2exp⁡(−d32)−2exp⁡(−(d−2)32),1-2\exp(\frac{-d}{32})-2\exp(\frac{-(d-2)}{32}),

Given W~=W+ρE\widetilde{W}=W+\rho E, where EE is an i.i.d. Gaussian matrix, by union bound, we know with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}),

C.3 Smoothed Analysis for General Inputs

In this section, we show that starting from any well-conditioned weight matrix WW, and any symmetric input distribution D\mathcal{D}, how to perturb the distribution locally to D′\mathcal{D}^{\prime} so that the smallest singular value of MD′M^{\mathcal{D}^{\prime}} is at least inverse polynomial.

Recall the definition of (Q,λ)(Q,\lambda)-perturbation: we mix the original distribution D\mathcal{D} with a distribution DQ\mathcal{D}_{Q} which is just a Gaussian N(0,QQ⊤)\mathcal{N}(0,QQ^{\top}). To create a sample xx in D′\mathcal{D}^{\prime}, with probability 1−λ1-\lambda we draw a sample from D\mathcal{D}; otherwise we draw a standard Gaussian n∼N(0,Id)n\sim\mathcal{N}(0,I_{d}) and let x=Qnx=Qn. We will prove Theorem 10 which we restate below:

To prove this, let us first take a look at the structure of augmented distinguishing matrix for these distributions. Let MDM^{\mathcal{D}}, MDQM^{\mathcal{D}_{Q}}, MD′M^{\mathcal{D}^{\prime}} be the augmented distinguishing matrices for distributions D\mathcal{D}, DQ\mathcal{D}_{Q} and D′\mathcal{D}^{\prime} respectively. Since D′\mathcal{D}^{\prime} is a mixture of D\mathcal{D} and DQ\mathcal{D}_{Q}, and the augmented distinguishing matrix is defined as expectations over samples, we immediately have

Our proof will go in two steps. First we will show that σmin⁡(MDQ)\sigma_{\min}(M^{\mathcal{D}_{Q}}) is large. Then we will show that even mixing with MDM^{\mathcal{D}} will not significantly reduce the smallest singular value, so σmin⁡(MD′)\sigma_{\min}(M^{\mathcal{D}^{\prime}}) is also large. In addition to the techniques that we developed in Section C.1, we need two ideas that we call noise domination and subspace decoupling to solve the new challenges here.

First let us focus on σmin⁡(MDQ)\sigma_{\min}(M^{\mathcal{D}_{Q}}). This instance has weight WW and input distribution N(0,QQ⊤)\mathcal{N}(0,QQ^{\top}). Let MWQM^{WQ} be the augmented distinguishing matrix for an instance with weight WQWQ and input distribution N(0,Id)\mathcal{N}(0,I_{d}). Our first observation shows that MDQM^{\mathcal{D}_{Q}} and MWQM^{WQ} are closely related, and we only need to analyze the smallest singular value of MWQM^{WQ}. The problem now is very similar to what we did in Theorem 9, except that the weight WQWQ is not an i.i.d. Gaussian matrix. However, we will still be able to use Theorem 9 as a black-box because the amount of noise in WQWQ is in some sense dominating the noise in a standard Gaussian. More precisely, we use the following simple claim:

Suppose property P\mathcal{P} holds for N(μ,Id)\mathcal{N}(\mu,I_{d}) for any μ\mu, and the property P\mathcal{P} is convex (in the sense that if P\mathcal{P} holds for two distributions it also holds for their mixture), then for any covariance matrix Σ⪰Id\Sigma\succeq I_{d}, we know P\mathcal{P} also holds for N(μ,Σ)\mathcal{N}(\mu,\Sigma).

Intuitively the claim says that if the property holds for a Gaussian distribution with smaller variance regardless of the mean, then it will also hold for a Gaussian distribution with larger variance. The proof is quite simple:

Let Σ′=Σ−Id\Sigma^{\prime}=\Sigma-I_{d}, by assumption we know Σ′\Sigma^{\prime} is still a positive semidefinite matrix. Let x∼N(μ,Σ)x\sim\mathcal{N}(\mu,\Sigma), x′∼N(μ,Σ′)x^{\prime}\sim\mathcal{N}(\mu,\Sigma^{\prime}) and δ∼N(0,Id)\delta\sim\mathcal{N}(0,I_{d}), by property of Gaussians it is easy to see that x=dx′+δx\stackrel{{\scriptstyle d}}{{=}}x^{\prime}+\delta. Let dxd_{x}, dx′d_{x^{\prime}} and dδd_{\delta} be the density function for x,x′,δx,x^{\prime},\delta respectively, then we know for any point uu

That is, N(μ,Σ)\mathcal{N}(\mu,\Sigma) is a mixture of N(x′,I)\mathcal{N}(x^{\prime},I). Since property P\mathcal{P} is true for all N(x′,I)\mathcal{N}(x^{\prime},I), it is also true for N(μ,Σ)\mathcal{N}(\mu,\Sigma). ∎

With this claim we can immediately use the result of Theorem 9 to show σmin⁡(MDQ)\sigma_{\min}(M^{\mathcal{D}_{Q}}) is large.

Next we need to consider the mixture MD′M^{\mathcal{D}^{\prime}}. The worry here is that although σmin⁡(MDQ)\sigma_{\min}(M^{\mathcal{D}_{Q}}) is large, mixing with D\mathcal{D} might introduce some cancellations and make σmin⁡(MD′)\sigma_{\min}(M^{\mathcal{D}^{\prime}}) much smaller. To prove that this cannot happen with high probability, the key observation is that in the first step, to prove σmin⁡(MWQ)\sigma_{\min}(M^{WQ}) is large we have only used the property of WQWQ. If we let Qˉ\bar{Q} be the projection of QQ to the orthogonal space of row span of WW, then Qˉ\bar{Q} is still a Gaussian random matrix even if we condition on the value of WQWQ! Therefore in the second step we will use the additional randomness in Qˉ\bar{Q} to show that the cancellation cannot happen. The idea of partitioning the randomness of Gaussian matrices has been widely used in analysis of approximate message passing algorithms. The actual proof is more involved and we will need to partition the Gaussian matrix QQ into more parts in order to handle the special column in the augmented distinguishing matrix .

Now we are ready to give the full proof of Theorem 10

Proof of Theorem 10. Let us first recall the definition of augmented distinguishing matrix: MD′M^{\mathcal{D}^{\prime}} is a d2d^{2} by (k2+1)(k_{2}+1) matrix, where the first k2k_{2} columns consist of

In the first step, we will try to analyze MDQM^{\mathcal{D}_{Q}}. The first k2k_{2} columns of this matrix MDQM^{\mathcal{D}_{Q}} can be written as:

Except for the factor Q⊗QQ\otimes Q, the remainder of these columns are exactly the same as the augmented distinguishing matrix of a network whose first layer weight matrix is WQWQ and input distribution is N(0,Id)\mathcal{N}(0,I_{d}). We use MWQM^{WQ} to denote the augmented distinguishing matrix of such a network, then we have

To prepare for the next step, we will rewrite MWQM^{WQ} as the product of two matrices. According to the closed form of MijWQM^{WQ}_{ij} in Lemma 19, we know each column of MWQM^{WQ} can be expressed as a linear combination of w~i⊗w~j\widetilde{w}_{i}\otimes\widetilde{w}_{j}’s and \mboxvec(Id)\mbox{vec}(I_{d}). Therefore:

where matrix RR has dimension (k2+1)×(k2+1).(k^{2}+1)\times(k_{2}+1). It’s not hard to verify that

Note that WW is a k×dk\times d matrix with ∥wi∥≤τ\|w_{i}\|\leq\tau for every row vector, and W~=WQ\widetilde{W}=WQ, where QQ is an standard Gaussian matrix. Thus, similar as the proof in Lemma 22, we can show that with probability at least 1−exp⁡(−dΩ(1)),1-\exp(-d^{\Omega(1)}),

where the last equality holds because the row span of V⊥V^{\perp} is orthogonal to the column span of W~⊤\widetilde{W}^{\top}.

Now, we go back to matrix MD′M^{\mathcal{D}^{\prime}}. Let \mboxProjW⊥⊗W⊥\mbox{Proj}_{W^{\perp}\otimes W^{\perp}} be \mboxProjW⊥⊗\mboxProjW⊥.\mbox{Proj}_{W^{\perp}}\otimes\mbox{Proj}_{W^{\perp}}. We have,

Since RR has full row rank, we know that the row span of \mboxProjW⊥⊗W⊥MD\mbox{Proj}_{W^{\perp}\otimes W^{\perp}}M^{\mathcal{D}} belongs to the row span of RR. According to the definition of UU, it’s also clear that the column span of \mboxProjW⊥⊗W⊥MD\mbox{Proj}_{W^{\perp}\otimes W^{\perp}}M^{\mathcal{D}} belongs to the column span of U⊗UU\otimes U. Thus, there exists matrix C∈R(d−k)2×(k2+1)C\in R^{(d-k)^{2}\times(k^{2}+1)} such that

Note that CC only depends on UU and RR, UU only depends on WW, and RR only depends on WQWQ. With WQWQ fixed, CC is also fixed. Clearly, CC is independent with P1P_{1} and P2P_{2}. For convenience, denote

Thus the covariance matrix of each row of P2VW~⊤P_{2}V\widetilde{W}^{\top} has smallest singular value at least γ:=\mboxpoly(1/d,ρ).\gamma:=\mbox{poly}(1/d,\rho).

We can view P2VW~⊤P_{2}V\widetilde{W}^{\top} as the summation of two independent Gaussian matrix, one of which has covariance matrix γI(d−k)k\gamma I_{(d-k)k}. For this matrix, we will do something very similar to Theorem 9 in order to lowerbound its smallest singular value.

The proof idea is similar as Theorem 9, and we try to apply Lemma 31 to K⊗KK\otimes K. In the proof we should think of K:=P2VW~⊤K:=P_{2}V\widetilde{W}^{\top}, and denote ii-th column of KK as KiK_{i}. We also think of the space SCS_{C} as the column span of CC.

As we did in Theorem 9, we partition [d−k][d-k] into 2 disjoint subsets L1L_{1} and L2L_{2} of size (d−k)/2(d-k)/2. Let H^′\hat{H}^{\prime} be the set of rows of H^\hat{H} indexed by L1×L2.L_{1}\times L_{2}.

We fix a column H^ij′, i≠j∈[k].\hat{H}^{\prime}_{ij},\ i\neq j\in[k]. Let S=\mboxspan{H^kl′:(k,l)≠(i,j)}S=\mbox{span}\{\hat{H}^{\prime}_{kl}:(k,l)\neq(i,j)\}. It’s clear that SS is correlated with H^ij′\hat{H}^{\prime}_{ij}. Let C′C^{\prime} be the set of rows of CC indexed by L1×L2L_{1}\times L_{2}. Let SC′S_{C^{\prime}} be the column span of C′C^{\prime}, which has dimension at most k2+1k^{2}+1. We define the following subspace that contains SS,

Therefor by definition S⊂S^S\subset\hat{S}, and thus S^⊥⊂S⊥\hat{S}^{\perp}\subset S^{\perp}, where S⊥S^{\perp} denotes the orthogonal subspace of SS. Notice that H^ij′=Ki,L1⊗Kj,L2+λ1−λCij′\hat{H}^{\prime}_{ij}=K_{i,L_{1}}\otimes K_{j,L_{2}}+\frac{\lambda}{1-\lambda}C^{\prime}_{ij} is independent with S^\hat{S}, assuming CC is fixed. Moreover, S^\hat{S} has dimension at most

if k≤d/7.k\leq d/7. Then, according to Lemma 31, we know with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}),

For the column H^ii′,i∈[k]\hat{H}^{\prime}_{ii},i\in[k], we define subspace S^\hat{S} slightly different,

Here the dimension of S^\hat{S} is also smaller than (d−k)2/5(d-k)^{2}/5, assuming that k≤d/7.k\leq d/7. We can similarly show that with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}),

Thus, by union bound, we know that the leave-one-out distance of matrix H^′\hat{H}^{\prime} is lower bounded by \mboxpoly(1/d,ρ)\mbox{poly}(1/d,\rho).

Now, let’s add the additional column \mboxvec(P1P1⊤+P2P2⊤)\mbox{vec}(P_{1}P_{1}^{\top}+P_{2}P_{2}^{\top}) into consideration. For convenience we denote this column by bb. We will first prove that the vector bb has large norm when projected to the orthogonal subspace of columns in H^\hat{H}, then we will combine this with the fact that σmin⁡(H^)\sigma_{\min}(\hat{H}) is large to show that σmin⁡(H)\sigma_{\min}(H) is also large (this last step is very similar to Lemma 21).

where \mboxvec(P^1P^1⊤)′\mbox{vec}(\hat{P}_{1}\hat{P}_{1}^{\top})^{\prime} is the restriction of \mboxvec(P^1P^1⊤)\mbox{vec}(\hat{P}_{1}\hat{P}_{1}^{\top}) to the rows indexed by L1×L2L_{1}\times L_{2}. The dimension of S^H^′\hat{S}_{\hat{H}^{\prime}} is at most k2+k2+1+2≤(d−k)2/12k^{2}+k^{2}+1+2\leq(d-k)^{2}/12, assuming that k≤d/7.k\leq d/7. Clearly,

where pLp_{L} is the restriction of pp to rows indexed by LL. Note that pL1p_{L_{1}} and pL2p_{L_{2}} are two independent standard Gaussian vectors. Thus, according to Lemma 31, we know with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}), the distance between b′b^{\prime} and the column span of H^′\hat{H}^{\prime} is at least \mboxpoly(1/d)\mbox{poly}(1/d).

The proof idea is similar as the proof in Lemma 21. In the proof, we should think of A:=H^′,v:=b′A:=\hat{H}^{\prime},v:=b^{\prime} and B:=H′B:=H^{\prime}, where H′H^{\prime} is the subset of rows of HH indexed by L1×L2L_{1}\times L_{2}. We know that d(H^′)≥δ=\mboxpoly(1/d,ρ),∥\mboxProjA⊥b∥≥ζ=\mboxpoly(1/d)d(\hat{H}^{\prime})\geq\delta=\mbox{poly}(1/d,\rho),\|\mbox{Proj}_{A^{\perp}}b\|\geq\zeta=\mbox{poly}(1/d). It’s not hard to show that with probability at least 1−exp⁡(−dΩ(1)),1-\exp(-d^{\Omega(1)}),

Thus, there exists C1=\mboxpoly(d)C_{1}=\mbox{poly}(d), such that ∥b′∥≤C1\|b^{\prime}\|\leq C_{1}. We already proved that the leave-one-out distance of b′b^{\prime} in H′H^{\prime} is lower bounded. We only need to show the leave-one-out distance for the first k2k^{2} columns, which are H^ij′,i,j∈[k]\hat{H}^{\prime}_{ij},i,j\in[k].

For any i,j∈[k]i,j\in[k], the leave-one-out distance for H^ij′\hat{H}^{\prime}_{ij} within matrix H′H^{\prime} can be expressed as follows

Let {ckl∗,cb∗}\{c_{kl}^{*},c_{b}^{*}\} be one set of the optimal solutions to min⁡ckl,cb∥H^ij′+∑(k,l)≠(i,j)H^kl′+cbb′∥\min_{c_{kl},c_{b}}\|\hat{H}^{\prime}_{ij}+\sum_{(k,l)\neq(i,j)}\hat{H}^{\prime}_{kl}+c_{b}b^{\prime}\|. If cb∗=0c_{b}^{*}=0, we immediately have

where the last inequality holds because the leave-one-out distance of matrix H^′\hat{H}^{\prime} is lower bounded by δ\delta.

If cb∗≠0c_{b}^{*}\neq 0, we need to be more careful. In this case, we have,

where the last inequality holds because the distance of b′b^{\prime} to the column span of H^′\hat{H}^{\prime} is lower bounded. If ∣cb∗∣≥δ2C1|c_{b}^{*}|\geq\frac{\delta}{2C_{1}}, we have ∥H^ij′+∑(k,l)≠(i,j)ckl∗H^kl′+cb∗b′∥≥δζ2C1.\|\hat{H}^{\prime}_{ij}+\sum_{(k,l)\neq(i,j)}c_{kl}^{*}\hat{H}^{\prime}_{kl}+c_{b}^{*}b^{\prime}\|\geq\frac{\delta\zeta}{2C_{1}}.

If ∣cb∗∣<δ2C1|c_{b}^{*}|<\frac{\delta}{2C_{1}}, we have

Thus, the leave-one-out distance of H′H^{\prime} is lower bounded by \mboxpoly(ζ,δ,1/C1)\mbox{poly}(\zeta,\delta,1/C_{1}). Recall that with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}), we have δ=\mboxpoly(1/d,ρ),ζ=\mboxpoly(1/d),C1=\mboxpoly(d)\delta=\mbox{poly}(1/d,\rho),\zeta=\mbox{poly}(1/d),C_{1}=\mbox{poly}(d). Thus, we have

Finally, we put everything together. Since H′H^{\prime} is a full column rank matrix, we know that σmin⁡(H)≥σmin⁡(H′)≥\mboxpoly(1/d,ρ)\sigma_{\min}(H)\geq\sigma_{\min}(H^{\prime})\geq\mbox{poly}(1/d,\rho). By union bound, we know with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}),

Since UU is an orthonormal matrix, we know σmin⁡(U⊗U)=1\sigma_{\min}(U\otimes U)=1. According to Eq. C.3, we know with probability at least 1−exp⁡(−dΩ(1))1-\exp(-d^{\Omega(1)}),

where the second inequality holds since all of U⊗UU\otimes U, HH and RR have full column rank. □\Box

Appendix D Tools

In this section, we collect some known results on matrix perturbations and concentration bounds. Basically, we used matrix concentration bounds to do the robust analysis and used matrix perturbation bounds to do the smoothed analysis. We also proved several corollaries that are useful in our setting.

Matrix concentration bounds tell us that with enough number of independent samples, the empirical mean of a random matrix can converge to the mean of this matrix.

Consider a finite sequence {Zk}\{Z_{k}\} of independent, random matrices with dimension d1×d2d_{1}\times d_{2}. Assume that each random matrix satisfies

Consider a finite sequence {Z1,Z2⋯Zm}\{Z_{1},Z_{2}\cdots Z_{m}\} of independent, random matrices with dimension d1×d2d_{1}\times d_{2}. Assume that each random matrix satisfies

D.2 Matrix Perturbation Bounds

For singular vectors, the perturbation is bounded by Wedin’s Theorem.

Let A^=A+E\hat{A}=A+E, with analogous singular value decomposition. Let Φ\Phi be the matrix of canonical angles between the column span of U1U_{1} and that of U^1\hat{U}_{1}, and Θ\Theta be the matrix of canonical angles between the column span of V1V_{1} and that of V^1\hat{V}_{1}. Suppose that there exists a δ\delta such that

In order to show the robustness of least kk right singular vectors of TT, we combine Wedin’s theorem with the following Lemma.

Let Φ\Phi be the matrix of canonical angles between the column span of UU and that of U^\hat{U}, then

The exact lemma used in our proof is the following corollary in Ge et al., (2015).

With a lowerbound on σmin⁡(A)\sigma_{\min}(A), we can get bounds for the perturbation of pseudo-inverse.

The following corollary is particularly useful for us.

To lowerbound the leave-one-out distance in augmented distinguishing matrix , we use the following Lemma as the main tool.

For second-order tensor, we have the following corollary.

Here, We restate some generic results from Bhaskara et al., (2014) on the stability of a matrix’s eigendecomposition under perturbation. Let MM and M^\hat{M} be two n×nn\times n mtrices such that M=UDU−1M=UDU^{-1} and M^=M(I+E)+F\hat{M}=M(I+E)+F.

Let \mboxsep(D)=min⁡i≠j∣Dii−Djj∣\mbox{sep}(D)=\min_{i\neq j}|D_{ii}-D_{jj}|.

The following Lemma guarantees that the eigenvalues of M^\hat{M} are distinct if the perturbation are not too large.

If κ(U)(∥ME∥+∥F∥)<sep(D)/2n\kappa(U)(\|ME\|+\|F\|)<{\text{sep}(D)}/{2n}, then the eigenvalues of M^\hat{M} are distinct and diagonalizable.

The following Lemma further upperbound the difference between corresponding eigenvectors.

Let u1,...,unu_{1},...,u_{n} and u^1,...,u^n\hat{u}_{1},...,\hat{u}_{n} respectively be the eigenvectors of MM and M^\hat{M}, ordered by their corresponding eigenvalues. If κ(U)(∥ME∥+∥F∥)<sep(D)/2n\kappa(U)(\|ME\|+\|F\|)<{\text{sep}(D)}/{2n}, then for all ii we have ∥u^i−ui∥≤3σmax⁡(E)σmax⁡(D)+σmax⁡(F)σmin⁡(U)sep(D)\|\hat{u}_{i}-u_{i}\|\leq 3\frac{\sigma_{\max}(E)\sigma_{\max}(D)+\sigma_{\max}(F)}{\sigma_{\min}(U)\text{sep}(D)}.

In the setting of simultaneous diagonalization, let Na=Ta+EaN_{a}=T_{a}+E_{a} and Nb=Tb+EbN_{b}=T_{b}+E_{b}, we have

where F=−Eb(I+Tb−1Eb)−1Tb−1F=-E_{b}(I+T_{b}^{-1}E_{b})^{-1}T_{b}^{-1} and G=EaNb−1.G=E_{a}N_{b}^{-1}. The following lemma bound the maximum singular value of perturbation matrix FF and GG.

σmax⁡(F)≤σmax⁡(Eb)σmin⁡(Tb)−σmax⁡(Eb)\sigma_{\max}(F)\leq\frac{\sigma_{\max}(E_{b})}{\sigma_{\min}(T_{b})-\sigma_{\max}(E_{b})} and σmax⁡(G)≤σmax⁡(Ea)σmin⁡(Nb)\sigma_{\max}(G)\leq\frac{\sigma_{\max}(E_{a})}{\sigma_{\min}(N_{b})}

Due to the rotation issue, we cannot conclude that ∥S−S^∥\|S-\hat{S}\| is small even we know ∥SS⊤−S^S^⊤∥\|SS^{\top}-\hat{S}\hat{S}^{\top}\| is bounded. The following Lemma shows that after appropriate alignment, SS is indeed close to S^\hat{S}.

D.3 Smallest Singular Value of Random Matrices

For a random rectangular matrix where each element is an inpdependent Gaussian variable, Rudelson and Vershynin, (2009) gives the following result:

Let A∈Rm×nA\in R^{m\times n} and suppose that m≥nm\geq n. Assume that the entries of AA are independent standard Gaussian variable, then for every ϵ>0\epsilon>0, with probability at least 1−(Cϵ)m−n+1+e−C′n1-(C\epsilon)^{m-n+1}+e^{-C^{\prime}n}, where C,C′C,C^{\prime} are two absolute constants, we have:

However, in our setting, we are more interested in fixed matrices perturbed by Gaussian variables. The smallest singular value of these “perturbed rectangular matrices” can be bounded as follows.

D.4 Anti-Concentration

We use the anti-concentration property for Gaussian random variables in our proof of Lemma 17.