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:
- Incremental Mean Estimation: Since the global mean is unknown in streaming contexts, CIPLS uses an approximate centralization process to center each incoming sample dynamically.
- 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.
- 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.
- 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.
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.
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