L1-norm principal component analysis

From testwiki
Jump to navigation Jump to search
L1-PCA compared with PCA. Nominal data (blue points); outlier (red point); PC (black line); L1-PC (red line); nominal maximum-variance line (dotted line).

L1-norm principal component analysis (L1-PCA) is a general method for multivariate data analysis.[1] L1-PCA is often preferred over standard L2-norm principal component analysis (PCA) when the analyzed data may contain outliers (faulty values or corruptions), as it is believed to be robust.[2][3][4]

Both L1-PCA and standard PCA seek a collection of orthogonal directions (principal components) that define a subspace wherein data representation is maximized according to the selected criterion.[5][6][7] Standard PCA quantifies data representation as the aggregate of the L2-norm of the data point projections into the subspace, or equivalently the aggregate Euclidean distance of the original points from their subspace-projected representations. L1-PCA uses instead the aggregate of the L1-norm of the data point projections into the subspace.[8] In PCA and L1-PCA, the number of principal components (PCs) is lower than the rank of the analyzed matrix, which coincides with the dimensionality of the space defined by the original data points. Therefore, PCA or L1-PCA are commonly employed for dimensionality reduction for the purpose of data denoising or compression. Among the advantages of standard PCA that contributed to its high popularity are low-cost computational implementation by means of singular-value decomposition (SVD)[9] and statistical optimality when the data set is generated by a true multivariate normal data source.

However, in modern big data sets, data often include corrupted, faulty points, commonly referred to as outliers.[10] Standard PCA is known to be sensitive to outliers, even when they appear as a small fraction of the processed data.[11] The reason is that the L2-norm formulation of L2-PCA places squared emphasis on the magnitude of each coordinate of each data point, ultimately overemphasizing peripheral points, such as outliers. On the other hand, following an L1-norm formulation, L1-PCA places linear emphasis on the coordinates of each data point, effectively restraining outliers.[12]

Formulation

Consider any matrix 𝐗=[𝐱1,𝐱2,,𝐱N]ℝD×N consisting of N D-dimensional data points. Define r=rank(𝐗). For integer K such that 1K<r, L1-PCA is formulated as:[1]

Template:NumBlk

For K=1, (Template:EquationNote) simplifies to finding the L1-norm principal component (L1-PC) of 𝐗 by Template:NumBlk

In (Template:EquationNote)-(Template:EquationNote), L1-norm 1 returns the sum of the absolute entries of its argument and L2-norm 2 returns the sum of the squared entries of its argument. If one substitutes 1 in (Template:EquationNote) by the Frobenius/L2-norm F, then the problem becomes standard PCA and it is solved by the matrix 𝐐 that contains the K dominant singular vectors of 𝐗 (i.e., the singular vectors that correspond to the K highest singular values).

The maximization metric in (Template:EquationNote) can be expanded as Template:NumBlk

Solution

For any matrix 𝐀ℝm×n with mn, define Φ(𝐀) as the nearest (in the L2-norm sense) matrix to 𝐀 that has orthonormal columns. That is, define Template:NumBlk Procrustes Theorem[13][14] states that if 𝐀 has SVD 𝐔m×nΣn×n𝐕n×n, then Φ(𝐀)=𝐔𝐕.

Markopoulos, Karystinos, and Pados[1] showed that, if 𝐁BNM is the exact solution to the binary nuclear-norm maximization (BNM) problem Template:NumBlk then Template:NumBlk is the exact solution to L1-PCA in (Template:EquationNote). The nuclear-norm * in (Template:EquationNote) returns the summation of the singular values of its matrix argument and can be calculated by means of standard SVD. Moreover, it holds that, given the solution to L1-PCA, 𝐐L1, the solution to BNM can be obtained as Template:NumBlk where sgn() returns the {±1}-sign matrix of its matrix argument (with no loss of generality, we can consider sgn(0)=1). In addition, it follows that 𝐗𝐐L11=𝐗𝐁BNM*. BNM in (Template:EquationNote) is a combinatorial problem over antipodal binary variables. Therefore, its exact solution can be found through exhaustive evaluation of all 2NK elements of its feasibility set, with asymptotic cost π’ͺ(2NK). Therefore, L1-PCA can also be solved, through BNM, with cost π’ͺ(2NK) (exponential in the product of the number of data points with the number of the sought-after components). It turns out that L1-PCA can be solved optimally (exactly) with polynomial complexity in N for fixed data dimension D, π’ͺ(NrKK+1).[1]

For the special case of K=1 (single L1-PC of 𝐗), BNM takes the binary-quadratic-maximization (BQM) form Template:NumBlk The transition from (Template:EquationNote) to (Template:EquationNote) for K=1 holds true, since the unique singular value of 𝐗𝐛 is equal to 𝐗𝐛2=𝐛𝐗𝐗𝐛, for every 𝐛. Then, if 𝐛BNM is the solution to BQM in (Template:EquationNote), it holds that Template:NumBlk is the exact L1-PC of 𝐗, as defined in (Template:EquationNote). In addition, it holds that 𝐛BNM=sgn(𝐗πͺL1) and 𝐗πͺL11=𝐗𝐛BNM2.

Algorithms

Exact solution of exponential complexity

As shown above, the exact solution to L1-PCA can be obtained by the following two-step process:

1. Solve the problem in (Template:EquationNote) to obtain 𝐁BNM.
2. Apply SVD on 𝐗𝐁BNM to obtain 𝐐L1.

BNM in (Template:EquationNote) can be solved by exhaustive search over the domain of 𝐁 with cost π’ͺ(2NK).

Exact solution of polynomial complexity

Also, L1-PCA can be solved optimally with cost π’ͺ(NrKK+1), when r=rank(𝐗) is constant with respect to N (always true for finite data dimension D).[1][15]

Approximate efficient solvers

In 2008, Kwak[12] proposed an iterative algorithm for the approximate solution of L1-PCA for K=1. This iterative method was later generalized for K>1 components.[16] Another approximate efficient solver was proposed by McCoy and Tropp[17] by means of semi-definite programming (SDP). Most recently, L1-PCA (and BNM in (Template:EquationNote)) were solved efficiently by means of bit-flipping iterations (L1-BF algorithm).[8]

L1-BF algorithm

 1  function L1BF(𝐗, K):
 2      Initialize 𝐁(0){±1}N×K and β„’{1,2,,NK}
 3      Set t0 and ω𝐗𝐁(0)*
 4      Until termination (or T iterations)
 5          𝐁𝐁(t), tt
 6          For xβ„’
 7              kxN, nxN(k1)
 8              [𝐁]n,k[𝐁]n,k                // flip bit
 9              a(n,k)𝐗𝐁*               // calculated by SVD or faster (see[8])
10              if a(n,k)>ω
11                  𝐁(t)𝐁, tt+1
12                  ωa(n,k)
13              end
14              if t=t                    // no bit was flipped
15                  if β„’={1,2,,NK}
16                      terminate
17                  else
18                      β„’{1,2,,NK}

The computational cost of L1-BF is π’ͺ(NDmin{N,D}+N2K2(K2+r)).[8]

Complex data

L1-PCA has also been generalized to process complex data. For complex L1-PCA, two efficient algorithms were proposed in 2018.[18]

Tensor data

L1-PCA has also been extended for the analysis of tensor data, in the form of L1-Tucker, the L1-norm robust analogous of standard Tucker decomposition.[19] Two algorithms for the solution of L1-Tucker are L1-HOSVD and L1-HOOI.[19][20][21]

Code

MATLAB code for L1-PCA is available at MathWorks.[22]

References

Template:Reflist