Abstract
In this work, we revisit fast dimension reduction approaches, as with random projections and random sampling. Our goal is to summarize the data to decrease computational costs and memory footprint of subsequent analysis. Such dimension reduction can be very efficient when the signals of interest have a strong structure, such as with images. We focus on this setting and investigate feature clustering schemes for data reductions that capture this structure. An impediment to fast dimension reduction is that good clustering comes with large algorithmic costs. We address it by contributing a linear-time agglomerative clustering scheme, Recursive Nearest Agglomeration (ReNA). Unlike existing fast agglomerative schemes, it avoids the creation of giant clusters. We empirically validate that it approximates the data as well as traditional variance-minimizing clustering schemes that have a quadratic complexity. In addition, we analyze signal approximation with feature clustering and show that it can remove noise, improving subsequent analysis steps. As a consequence, data reduction by clustering features with ReNA yields very fast and accurate models, enabling to process large datasets on budget. Our theoretical analysis is backed by extensive experiments on publicly-available data that illustrate the computation efficiency and the denoising properties of the resulting dimension reduction scheme.
Introduction
In the era of "big data," researchers are increasingly dealing with high-dimensional datasets where the number of features ($p$) far exceeds the number of samples ($n$). Processing millions of voxels in high-resolution MRI or thousands of genotypes is computationally expensive and memory-intensive. While standard dimensionality reduction techniques like Random Projections are fast, they often ignore the underlying structure of the data, such as the spatial correlation between adjacent pixels in an image.
Clustering methods that respect this structure, like Ward clustering, are often too slow (quadratic complexity) for massive datasets. Conversely, the fastest clustering methods, such as single-linkage, suffer from percolation: a "preferential attachment" problem where one massive cluster swallows most of the data, rendering the compression useless.
Methods: Recursive Nearest Agglomeration (ReNA)
To address these challenges, we introduce Recursive Nearest Agglomeration (ReNA), a graph-constrained agglomerative clustering scheme. ReNA leverages the physical structure of the data (e.g., a 2D or 3D grid) to build a similarity graph. It identifies the 1-nearest neighbor for every feature and merges them into connected components.
This process is repeated recursively. In each step, the number of features is at least halved, leading to a logarithmic number of iterations. Because it only evaluates 1-nearest neighbors and utilizes sparse graph representations, the algorithm achieves linear complexity $O(np)$. Crucially, this approach avoids the "giant cluster" trap, maintaining balanced and compact groups necessary for effective dimensionality reduction.
Key Insights and Results
A significant theoretical and empirical finding is that feature grouping acts as a built-in denoising mechanism. By clustering features, the algorithm effectively functions as a low-pass filter. If the underlying signal is smooth and the noise is unstructured, ReNA-based compression can improve the signal-to-noise ratio (SNR).
We evaluated ReNA across diverse datasets, including synthetic 3D data, face recognition images (Extended Yale B), and large-scale brain imaging (OASIS and HCP). Key results include:
- Computational Efficiency: ReNA is orders of magnitude faster than Ward clustering, enabling analyses of large-scale brain imaging tasks that were previously computationally prohibitive.
- Improved Accuracy: Models trained on ReNA-compressed data (at ratios up to 20:1) often outperformed those trained on raw data. In the OASIS dataset, ReNA-based models showed superior prediction performance for age and gender due to the denoising effect.
- ICA Reproducibility: When applied before Independent Component Analysis (ICA), ReNA maintained high result similarity while speeding up the total analysis by a factor of 15.
Conclusion and Future Work
ReNA offers a robust solution for approximating structured signals in linear time. While the current implementation assumes a static connectivity graph and uses heuristics for cluster count selection, its speed and denoising properties make it a powerful preprocessing step. Future work will explore integrating ReNA into more complex algorithms like sparse dictionary learning, where initial feature grouping could provide transformative speedups.
Summary updated