Sparse corruption in low-rank matrix inference: the PCA benchmark
Authors: Urte Adomaityte, Gabriele Sicuro, Pierpaolo Vivo
Organizations: King’s College London, Department of Mathematics, Strand, London WC2R 2LS, United Kingdom · University of Bologna, Department of Mathematics, Piazza di Porta San Donato 5, 40126, Bologna, Italy
Principal Component Analysis (PCA) is a standard tool for extracting a low-rank signal from noisy observations. It is known that when applying PCA to a rank-one signal corrupted by a dense, homogeneous noise, in the large matrix size limit, the BBP transition occurs, where the emergence of an outlying eigenvalue and the alignment of the corresponding eigenvector occur at the same critical signal strength. Here we study the case of sparse noise corruption. The noise matrix is modelled as the adjacency matrix of a weighted undirected graph with finite average connectivity. Using the replica method, we analytically compute the typical top eigenvalue, the top eigenvector component density, and the overlap with the signal, through recursive distributional equations solved by population dynamics. We identify two signal-strength transitions as functions of graph connectivity: θcrit, marking signal recovery by the top eigenvector and generalising the BBP transition, and θb, where the signal-related eigenvalue detaches from the bulk. For noise with nonzero mean, these transitions need not coincide because of a structural sparse-graph outlier, leading to a discontinuous transition in the overlap with the top eigenvector. For a Random Regular degree distribution, we obtain exact closed-form expressions for both thresholds, the signal eigenvalue and the squared overlap, and show that the same formulas also predict the overlap of the signal with the second eigenvector in the intermediate regime θb<θ≤θcrit. For a Poissonian degree distribution, an approximate closure of the recursions yields fast and accurate predictions in the recovery phase that agree with exact results from population dynamics. We also recover dense-noise results in the large-connectivity limit, and validate the theory by numerical diagonalisation of large matrices.
Figures & tables
Figure 1: Eigenvalue density of the matrix A of size N=2000 as defined in Eq. ( 1 ), with J a pure adjacency matrix of a Poissonian graph with average connectivity c=4 and signal xi∼N(0,1) . ( Left ) Density for θ=0 , corresponding to A=J , where the structural noise eigenvalue λθ=0 is the sole outlier (diamond and dashed line). Matrices are generated using an unbiased configuration model algorithm that can be found in [ 9 ] . ( Center ) Density for 0<θ<θcrit : the eigenvalue associated with the signal λθ (triangle and solid line) is either an outlier such that λθ<λθ=0 , or is buried in the bulk, and the top eigenvector does not correlate with the signal vector x . ( Right ) For θ>θcrit , the eigenvalue associated with the signal λθ is the top eigenvalue, and the top eigenvector correlates non-trivially with the signal vector x .
Figure 2: Random regular setup for J with ϱW(W)=δ(W−1) , pk=δk,c and signal xi∼N(0,1) . In the figures the threshold θcrit Eq. ( 27 ) (black vertical line), the average top eigenvalue (dots) and second top eigenvalue (crosses) from direct diagonalisation for various signal strengths θ are given. For θ≤θcrit , the structural outlier eigenvalue λθ=0=c of the symmetric noise matrix J (orange solid line) is the top eigenvalue of A . For θ>θcrit , the eigenvalue associated with the signal λθ dominates, as predicted by Eq. ( 29 ) (red dotted line). The squared overlap in Eq. ( 31 ) (dark blue dashed line) matches the simulation results (diamonds) and jumps from zero to a nonzero value at θcrit . At θb Eq. ( 28 ), the eigenvalue associated with the signal λθ detaches from the bulk and is the second top eigenvalue for θb<θ<θcrit . The average overlap values from those experiments are reported on the left axis (blue diamonds). Notably, the formulas for the top eigenvalue and the squared overlap can be continued into the θb<θ≤θcrit phase (light blue curves): the squared overlap of the signal vector and the eigenvector associated with the second largest eigenvalue obtained via direct diagonalisation (denoted by squares in the plot) follow this analytical prolongation. ( Left ) Results varying θ at fixed c=4 . ( Right ) Results varying c at fixed θ=4 . All simulation results are averaged over direct diagonalisation of 10 matrices A of size N=2×103 , with standard deviation error bars.
Figure 3: Random regular setup with ϱW(W)=δ(W−1) and signal xi∼N(0,1) . The average squared overlap is given in the (θ,c) parameter space as obtained via numerical diagonalisation of five instances of size N=103 . The dashed line corresponds to θb in Eq. ( 28 ), where the signal eigenvalue detaches from the bulk. The solid line shows θcrit in Eq. ( 27 ), where the signal eigenvalue becomes the top eigenvalue.
Figure 4: Poissonian setup with kmax=20 , c=4 , ϱW(W)=δ(W−1) and signal xi∼N(0,1) . All simulation results are averaged over direct diagonalisation of 25 matrices A of size N=2×103 ( left ) and 50 matrices of size N=2×103 ( right ), with standard deviation error bars. Theoretical predictions are obtained using the analytical formulas in Result IV.2 . ( Left ) Average top eigenvalue (dots) and second top eigenvalue (crosses) from direct diagonalisation for various signal strengths θ . For θ≤θcrit , E[λtop] (dots) coincides with the structural top eigenvalue λθ=0 of the symmetric noise matrix J (orange solid line). For θ>θcrit , the top eigenvalue correlates with the signal and its average takes the value λθ , as predicted by Eq. ( 36 ) (red dotted line). The squared overlap in Eq. ( 37 ) (dark blue dashed line) also matches the simulation results (diamonds) and exhibits a discontinuity at θcrit . For θb<θ≤θcrit , corresponding to Fig. 1 (centre), the signal eigenvalue is an outlier but only the second largest eigenvalue of A . In this window, the light blue diamonds show the measured squared overlap between the signal and the second largest eigenvector of A . The light blue dashed line is the continuation of Eq. ( 37 ) into this window, shown only as a guide to the eye : unlike the RR case (Fig. 2 ), it relies on an approximation. The same applies to λb and θb (see Remark IV.1 ).
Figure 5: Poissonian setup with ϱW(W)=δ(W−1) . The λθ=0 parameter is obtained via population dynamics for θ=0 with population size Np=105 . ( Left ) The critical threshold θcrit as in Eq. ( 34 ) for kmax=6 . ( Right ) The critical threshold θcrit as in Eq. ( 34 ) as a function of the ratio of the average degree c=3,4 and kmax>c .
Figure 6: Poissonian setup with kmax=20 , c=4 , ϱW(W)=δ(W−1) and signal xi∼N(0,1) of strength θ=5 . The marginal cumulative distribution functions of h and ω are obtained via population dynamics with population size Np=2×105 . ( Left ) The marginal cumulative distribution function of the single-site bias fields h . ( Right ) The marginal cumulative distribution function of the single-site inverse variances ω , where the largest value of ω corresponds to the degree k=1 and is equal to EA[λtop]=λθ .
Figure 7: Poissonian setup with kmax=20 , c=4 and ϱW(W)=δ(W−1) for J , and signal xi∼N(0,1) of strength θ=5>θcrit . Plots are obtained via the population dynamics algorithm described in Appendix C with population size Np=2×105 . ( Top left ) The top eigenvector component density obtained via Eq. ( 21 ) (blue line) and direct diagonalisation (crosses). We also plot the standard Gaussian pdf (dashed line), which would be expected in case of full recovery, as a guide for the eye. ( Top right ) Overlap component density obtained via Eq. ( 22 ) (blue line) and direct diagonalisation (crosses). ( Bottom left ) Degree decomposition of the top eigenvector component cumulative distribution function (CDF) in Eq. ( 21 ). ( Bottom right ) Degree decomposition of the overlap component CDF in Eq. ( 22 ).
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 8: Accuracy of the closure in Eq. ( 97 ), for the truncated Poissonian setup with c=4 , kmax=20 and ϱW(W)=δ(W−1) . ( Top ) The closed-form Q~(λθ) of Eq. ( 119 ) (solid line) against Q(λθ) evaluated by Monte Carlo sampling over the equilibrated population (circles). ( Bottom ) Relative discrepancy between the two. It stays below 10−3 over the whole range, including at λθ=0 (dotted line), the value that fixes θcrit in Eq. ( 34 ). Population size Np=2×105 ; Q is averaged over 150 sweeps after equilibration, with error bars of standard error.
Figure 9: Evolution of the first two inverse moments of ω under the population dynamics, for the Poissonian case with kmax=20 , c=4 , ϱW(W)=δ(W−1) and θ=5 . ( Top ) E[1/ω] converges to m(λθ) from Eq. ( 97 ) (dashed line). ( Bottom ) E[1/ω2] converges slightly above m(λθ)2 (dashed line); the residual gap is Var(1/ω) , the quantity neglected by the closure.
Principal component analysis (PCA) finds orthogonal directions of greatest variance for data compression, visualization, denoising, and feature discovery.
We present a simple and efficient algorithm for robust approximate message passing (AMP) in the spiked matrix setting. In particular, let ε be a sufficiently small constant, and suppose that X∈Rn×n is a Gaussian matrix with a planted rank-1 spike, and E∈Rn×n is an adversarially chosen matrix supported on an εn×εn principal minor. Let vAMP(X) be the output of an AMP iteration on the uncorrupted matrix X. We give a procedure that, given access only to the corrupted matrix Y=X+E, computes a vector vALG(Y) which is O~(ε)-close to vAMP(X), for any of a class of AMP iterations which includes sparse Principal Component Analysis (PCA), non-negative PCA, and Z2 synchronization. Our algorithm consists of a spectral pre-processing step combined with a robust spectral initialization procedure; given these inputs, we prove that (perhaps surprisingly) AMP is robust out-of-the-box.
Sparse PCA is one of the most well-studied problems in high-dimensional statistics. In this problem, we are given samples from a distribution with covariance Σ, whose top eigenvector v∈Rd is s-sparse. Existing sparse PCA algorithms can be broadly categorized into (1) combinatorial algorithms (e.g., diagonal or elementwise covariance thresholding) and (2) SDP-based algorithms. While combinatorial algorithms are much simpler, they are typically only analyzed under the spiked identity model (where Σ=Id+γvv⊤ for some γ>0), whereas SDP-based algorithms require no additional assumptions on Σ. We demonstrate explicit counterexample covariances Σ against the success of standard combinatorial algorithms for sparse PCA, when moving beyond the spiked identity model. In light of this discrepancy, we give the first combinatorial method for sparse PCA that provably succeeds for general Σ using s2⋅polylog(d) samples and d2⋅poly(s,log(d)) time, by providing a global convergence guarantee on a variant of the truncated power method of Yuan and Zhang (2013). We provide a natural generalization of our method to recovering a vector in a sparse leading eigenspace. Finally, we evaluate our method on synthetic and real-world sparse PCA datasets.
Removing noise is difficult, but adding noise is easy. In this work, we show how to eliminate mean-shift noisy components from PCA by deliberately introducing knockoff mean-shift perturbation. Standard PCA is highly sensitive to shifts in the sample mean: a small fraction of samples from a shifted distribution can cause large deviations in the leading principal components. In high-dimensional regimes, existing Robust PCA approaches cannot handle the mean-shift contamination structure inherent in the mixture model. Using tools from Random Matrix Theory, we prove that the mean-shift spikes are spectrally separable from the stable eigenvalues of the original covariance. Furthermore, the original eigenspace remains asymptotically invariant to the contamination, independent of the mixture weight. Exploiting this spectral stability, we propose a simple, two-stage PCA algorithm by adding knockoff mean that identifies and removes the mean-shift component using only standard PCA operations.
Mengda Li, Zeng Li, Jianfeng Yao
School of Data Science, The Chinese University of Hong Kong, Shenzhen, China · Department of Statistics and Data Science, Southern University of Science and Technology, Shenzhen, China