Robust Principal Component Analysis (RPCA)

Statistics
Introduced by
Candès, Li, Ma & Wright (2011); Hubert, Rousseeuw & Vanden Branden (2005)
Year
2011
Type
Robust dimensionality reduction / matrix decomposition

What does it do?

Robust Principal Component Analysis is a dimensionality-reduction method that extracts components from data contaminated by sparse gross corruptions (outliers).

Candès, Li, Ma and Wright (2011) formulated it as the separation of a data matrix into a low-rank part and a sparse part. A distinct approach, ROBPCA, was introduced earlier by Hubert, Rousseeuw and Vanden Branden (2005).

The intuition behind the method

Ordinary PCA treats every point equally, so a handful of gross outliers can tilt the whole set of principal directions. RPCA instead assumes the data matrix is mostly a clean, low-dimensional structure with a few scattered corruptions. It pulls those corruptions out into a separate sparse layer, so the components it reports describe the bulk of the data rather than the anomalies.

History

Robust PCA has two lines of origin. Hubert, Rousseeuw and Vanden Branden (2005) introduced ROBPCA, which combines projection pursuit with robust scatter estimation to resist outlying observations; it is a separate approach from the matrix decomposition described on this page. Candès, Li, Ma and Wright (2011) recast robust PCA as the recovery of a low-rank matrix plus a sparse matrix through convex optimisation, showing that exact recovery is possible under suitable assumptions.

When to use it

Choose RPCA for exploratory or descriptive analysis of continuous, multivariate data, especially high-dimensional data, where you suspect that a fraction of the entries are grossly and arbitrarily corrupted and that the remaining structure is approximately low-rank. No minimum sample size is given for this method; when observations are few, check how stable the low-rank estimate is before interpreting the components. Do not use RPCA when the data are already clean, since classical PCA then answers the same question more simply. Also be cautious when the corruption is so extensive that the sparsity of the corrupted part is doubtful, because the separation into low-rank and sparse parts cannot then be relied on.

Limitations and considerations

  • Recovery of the two components holds only under suitable assumptions on the low-rank and sparse parts, so the split into L and S should be checked rather than taken for granted.
  • With few observations the low-rank estimate may be unstable, so its stability should be checked before the components are interpreted. No specific minimum sample size is given for this method.
  • If the corruptions are dense rather than sparse, the sparse component may absorb part of the genuine structure, so the recovered components can be misleading.
  • The weight λ between the two penalty terms controls how entries are divided between L and S, so results depend on this tuning choice and must be checked across a range of values.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Recovers principal components of the underlying structure even when a fraction of the entries are arbitrarily corrupted, a situation in which classical PCA is distorted by outlying observations.
  • The sparse matrix S gives a direct record of which entries were flagged as corrupted, so anomalies can be inspected rather than only down-weighted.
  • The decomposition is posed as a convex program (a weighted combination of the nuclear norm and the ℓ1 norm), so it can be solved with dedicated convex optimisation algorithms rather than heuristic search.

Applications

  • Detecting objects against a cluttered background in video surveillance, where the sparse part captures moving elements and the low-rank part captures the static background.
  • Removing shadows and specularities from face images while retaining the underlying face structure.
  • Dimensionality reduction for multivariate datasets suspected of containing outliers or gross errors.
  • Exploratory analysis in which reliable principal directions are needed despite contamination.

How it works

How it works

1

The observed data matrix M is modelled as the sum of a low-rank matrix L, which captures the genuine low-dimensional structure, and a sparse matrix S, which holds the scattered outliers and gross errors.

Formula
M = L + S
2

The decomposition is found by minimising the nuclear norm of L (a convex surrogate for low rank) plus λ times the ℓ1 norm of S (which encourages sparsity), subject to M = L + S. The weight λ sets the balance between the two terms: a larger λ penalises S more strongly, so S becomes sparser and L absorbs more of the data, while a smaller λ lets S take up more entries. λ is chosen by the analyst rather than fixed by the method, so the split between L and S should be re-run across a range of λ values and the resulting components compared. The recovered L then yields principal components that are not distorted by the corruptions absorbed into S.

Formula
\min_{L,S}\; \lVert L \rVert_{*} + \lambda \lVert S \rVert_{1} \quad \text{s.t.} \quad M = L + S

Common pitfalls

  • Applying RPCA to small samples and over-interpreting an unstable low-rank estimate; check its stability before interpreting the components.
  • Using it when the corruption is dense rather than sparse; the sparse part then no longer isolates the outliers.
  • Forgetting that the method assumes low-rank-plus-sparse structure; if the clean part is not genuinely low-rank, the separation is not meaningful.
  • Treating the sparse component as mere noise instead of inspecting it as a record of where the anomalies lie.
  • Choosing λ without re-running the split across a range of values to check how sensitive the separation between L and S is to that choice.

Frequently asked questions

How is RPCA different from classical PCA?

Classical PCA fits components to all the data at once, so a few gross outliers can rotate the principal directions. RPCA assumes the data are a clean low-rank structure plus a sparse set of corruptions, pulls the corruptions into a separate matrix, and computes components from the clean part only.

What do the two matrices L and S represent?

L is the low-rank matrix that captures the genuine low-dimensional structure of the data, and S is the sparse matrix that collects the scattered outliers and gross errors. The principal components come from L, while S can be inspected to locate the anomalies.

When should I prefer ordinary PCA instead?

When the data are clean, classical PCA answers the same question more simply. With few observations the low-rank estimate may be unstable; if its stability cannot be established, classical PCA is the simpler alternative.

What happens if there are too many outliers?

RPCA's recovery guarantee covers cases where a positive fraction of entries is arbitrarily corrupted, under suitable assumptions. As corruption becomes dense rather than sparse, the sparse part can absorb genuine structure, so the decomposition should be checked before the results are trusted.

Related methods

Sources

  1. Candès, E. J., Li, X., Ma, Y., & Wright, J. (2011). Robust Principal Component Analysis? Journal of the ACM, 58(3), 1-37.

    Open DOI reference
  2. Hubert, M., Rousseeuw, P. J., & Vanden Branden, K. (2005). ROBPCA: A New Approach to Robust Principal Component Analysis. Technometrics, 47(1), 64-79.

    Open DOI reference