ALPCAH: Subspace Learning for Sample-Wise Heteroscedastic Data

Javier Salazar Cavazos, Jeffrey A. Fessler, Laura Balzano

Abstract

Standard Principal Component Analysis (PCA) assumes uniform noise across samples, a condition known as homoscedasticity. However, real-world datasets—from astronomical observations to genomic sequencing—often exhibit sample-wise heteroscedasticity, where noise levels vary significantly between observations. This paper introduces ALPCAH (Algorithm for Low-rank regularized PCA for Heteroscedastic data), a framework that jointly learns the underlying data subspace and the specific noise level of every individual sample. By employing a tail singular value functional and matrix factorization, ALPCAH achieves superior accuracy and computational efficiency compared to traditional PCA and its robust variants.

Introduction

In many practical applications, data quality is not uniform. A network of environmental sensors might include both high-precision instruments and low-cost alternatives, or astronomical data may be collected under varying atmospheric conditions. When standard PCA is applied to such "heteroscedastic" data, noisy samples act as anchors, dragging the estimated subspace away from the true signal.

Figure 1: Comparison of subspace estimation on heteroscedastic data. Standard PCA (green dashed) is biased by high-variance samples, while LR-ALPCAH (red) closely aligns with the true basis (black).

Existing solutions often require prior knowledge of noise levels or impose rigid distributional assumptions. The ALPCAH framework addresses this by treating sample-wise noise variances as unknown variables to be estimated iteratively, effectively weighting each sample's contribution to the subspace model.

Methodology

The authors propose two primary algorithms to handle heteroscedasticity:

  1. ALPCAH: This version utilizes a "soft" rank constraint. Instead of the standard nuclear norm, which can over-shrink significant components, it employs a tail singular value functional. This approach minimizes only the smaller singular values, preserving the primary data structure. The optimization is solved using the Alternating Direction Method of Multipliers (ADMM).
  2. LR-ALPCAH: A "hard" rank-constrained version based on matrix factorization ($X \approx LR'$). By avoiding expensive Singular Value Decomposition (SVD) at each iteration, LR-ALPCAH reduces computational complexity from cubic to linear relative to the number of samples, making it highly scalable for large datasets.

Both methods automatically estimate the sample-wise noise variances ($\nu_i$). By calculating the inverse of these variances, the algorithms naturally down-weight low-quality samples while extracting the remaining signal within them.

Experimental Results

The researchers validated ALPCAH across synthetic and real-world datasets, including Quasar flux data from the Sloan Digital Sky Survey (SDSS) and single-cell RNA sequencing (scRNA-seq) data.

Performance and Robustness

Quantitative analysis using the Subspace Affinity Error (SAE) demonstrates that ALPCAH variants consistently outperform standard PCA and Robust PCA (RPCA). As shown in the comparison of regularization parameters, ALPCAH maintains low error rates even when the regularization parameter $\lambda$ varies, indicating high stability.

Figure 4: Subspace Affinity Error (SAE) vs. regularization parameter $\lambda$. ALPCAH and LR-ALPCAH variants achieve significantly lower error than PCA and RPCA across a wide range of $\lambda$ values.

Key Metrics

  • Accuracy: On Quasar data, LR-ALPCAH achieved an SAE of 0.38, compared to 0.65 for standard PCA and 0.46 for RPCA.
  • Efficiency: LR-ALPCAH processed Quasar data in just 153.5 ms, whereas standard ALPCAH took over 4,300 ms and RPCA exceeded 5,000 ms.
  • Memory Usage: LR-ALPCAH required only 459 MiB of memory, a significant reduction from the 5,700 MiB required by the heteroscedastic competitor HePPCAT.

Discussion and Future Work

ALPCAH demonstrates that noisy samples should not be discarded; if modeled correctly, they provide valuable information for subspace estimation. However, a limitation of the faster LR-ALPCAH is the requirement for a pre-defined subspace dimension ($d$).

Future research aims to extend this model to handle "doubly heteroscedastic" data, where noise varies across both samples (rows) and features (columns). This would be particularly beneficial in genomics, where specific genes may exhibit higher noise levels across all cells in a study.

Summary updated

BibTeX
@article{cavazos2025alpcah,
  author = {Javier Salazar Cavazos and Jeffrey A. Fessler and Laura Balzano},
  title = {{ALPCAH: Subspace Learning for Sample-Wise Heteroscedastic Data}},
  journal = {IEEE Trans. Signal Process.},
  year = {2025},
  doi = {10.1109/tsp.2025.3537867},
}
Figure