Covariance-free Partial Least Squares: An Incremental Dimensionality Reduction Method

Artur Jordão, Maiko Lie, Victor Hugo Cunha de Melo, William Robson Schwartz

Abstract

Dimensionality reduction is crucial in computer vision for reducing computational costs and yielding discriminative data representations. Partial Least Squares (PLS) has shown notable results but is often infeasible for large datasets like ImageNet due to its high memory requirements. We propose Covariance-free Incremental Partial Least Squares (CIPLS), a novel method that learns low-dimensional representations using one sample at a time. By extending the Nonlinear Iterative Partial Least Squares (NIPALS) algorithm, CIPLS preserves discriminative information across all components and maintains high computational efficiency. Our evaluations on face verification and image classification tasks show that CIPLS outperforms existing incremental techniques.

Introduction: The Memory Wall of PLS

High-dimensional data, such as high-resolution images, pose significant computational challenges. While techniques like Principal Component Analysis (PCA) reduce dimensionality by maximizing variance, Partial Least Squares (PLS) is often preferred for classification because it is "supervised"—it finds a latent space that explains the relationship between input data ($X$) and labels ($Y$).

However, traditional PLS algorithms like NIPALS require the entire dataset to be stored in memory, creating a "memory wall" for massive datasets or real-time streaming applications. Existing incremental alternatives often struggle: Stochastic Gradient Descent (SGD) approaches are difficult to tune and slow to converge, while methods like IPLS lose the crucial $X-Y$ relationship after the first component, leading to poor performance as more dimensions are added.

Methodology: Extending NIPALS for Streaming Data

CIPLS addresses these limitations by extending the standard NIPALS algorithm into a truly incremental, covariance-free framework. The method incorporates several key innovations:

  1. Incremental Mean Estimation: Since the global mean is unknown in streaming contexts, CIPLS uses an approximate centralization process to center each incoming sample dynamically.
  2. Covariance-free Decomposition: Instead of computing a full $X^T Y$ covariance matrix, the algorithm decomposes the calculation to allow for sample-by-sample updates, drastically reducing memory overhead.
  3. Discriminative Deflation: After extracting a component, the algorithm "deflates" the sample by removing that component's contribution. Unlike previous methods, CIPLS ensures the supervised relationship between variables is maintained across all subsequent components.
  4. Feature Selection Compatibility: CIPLS produces loading matrices similar to batch PLS, allowing it to be used with Variable Importance in Projection (VIP) for identifying critical features.

Key Insights and Results

The primary advantage of CIPLS is its ability to maintain the "supervised" nature of PLS throughout the entire latent space, whereas previous incremental methods often reverted to unsupervised behavior after the first dimension.

Comparison of projections for IPLS, SGDPLS, and CIPLS.

Performance Benchmarks

The authors evaluated CIPLS against state-of-the-art incremental methods on several benchmarks, including Labeled Faces in the Wild (LFW) and ImageNet.

  • Accuracy: On LFW, CIPLS outperformed SGDPLS and IPLS by 1.18 and 1.48 percentage points, respectively. When testing the quality of higher-order components specifically, CIPLS outperformed IPLS by a massive 32.48 percentage points, proving its superior latent space representation.
  • Scalability: CIPLS successfully processed ImageNet $224 \times 224$, a task where traditional batch PLS fails due to hardware limits. It achieved 67.09% accuracy—significantly higher than IPLS (65.74%) and CCIPCA (52.58%).
  • Efficiency: With a time complexity of $O(ncm)$, CIPLS is statistically as fast as the fastest incremental PCA methods (CCIPCA) and significantly faster than SGD-based approaches.
Computational time comparison across different dimensionality reduction methods.

Conclusion

CIPLS provides a robust and efficient solution for dimensionality reduction in large-scale and streaming scenarios. While it remains an approximation of batch PLS, it offers a near-optimal balance between accuracy and computational feasibility. Future work may involve integrating CIPLS directly into neural network architectures for real-time feature selection and bottleneck optimization.

Summary updated

Abstract

Dimensionality reduction plays an important role in computer vision problems since it reduces computational cost and is often capable of yielding more discriminative data representation. In this context, Partial Least Squares (PLS) has presented notable results in tasks such as image classification and neural network optimization. However, PLS is infeasible on large datasets, such as ImageNet, because it requires all the data to be in memory in advance, which is often impractical due to hardware limitations. Additionally, this requirement prevents us from employing PLS on streaming applications where the data are being continuously generated. Motivated by this, we propose a novel incremental PLS, named Covariance-free Incremental Partial Least Squares (CIPLS), which learns a low-dimensional representation of the data using a single sample at a time. In contrast to other state-of-the-art approaches, instead of adopting a partially-discriminative or SGD-based model, we extend Nonlinear Iterative Partial Least Squares (NI-PALS) - the standard algorithm used to compute PLS - for incremental processing. Among the advantages of this approach are the preservation of discriminative information across all components, the possibility of employing its score matrices for feature selection, and its computational efficiency. We validate CIPLS on face verification and image classification tasks, where it outperforms several other incremental dimensionality reduction techniques. In the context of feature selection, CIPLS achieves comparable results when compared to state-of-the-art techniques.
BibTeX
@misc{jordao2019covariance,
  author = {Artur Jordão and Maiko Lie and Victor Hugo Cunha de Melo and William Robson Schwartz},
  title = {{Covariance-free Partial Least Squares: An Incremental Dimensionality Reduction Method}},
  year = {2019},
  eprint = {1910.02319},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.02319},
}
Figure