Abstract
Researchers have developed a new tensor-based sketching method that significantly speeds up and improves the accuracy of low-rank approximations for data streams. By treating a sequence of training matrices as a single 3D tensor and applying Tucker decomposition, the method finds near-optimal sketching matrices without the need for expensive, iterative "learning" processes like Stochastic Gradient Descent (SGD).
Introduction & The Problem
In fields like video processing, medical imaging, and signal flow, systems frequently process data streams: sequences of large matrices arriving over time. A common task in these domains is Low-Rank Approximation (LRA)—finding a compressed version of these matrices that retains the most important information while discarding noise.
Standard tools like Singular Value Decomposition (SVD) are too slow for massive streams. To solve this, engineers use sketching: they multiply the large data matrix by a smaller "sketching matrix" to compress it before processing.
- The Gap: Traditional sketching uses random matrices, which are fast but often inaccurate because they don't leverage any underlying patterns in the data.
- The Challenge: Recent "data-driven" methods attempt to learn better sketching matrices from past data using machine learning optimization (like SGD). However, these methods are slow to train, often requiring many iterations and heavy pre-processing, making them impractical for low-latency environments.
The Tensor-Based Approach
The authors propose a fundamental shift in perspective: instead of "learning" a sketching matrix via iterative optimization, they calculate it directly using tensor algebra.
- Tensorization: They take a set of training matrices from the stream and stack them into a third-order tensor (a 3D data block).
- Tucker Decomposition: They apply Tucker decomposition (specifically Tucker1 or Tucker2) to this block. This mathematical operation naturally extracts the dominant subspaces that are shared across the entire data stream.
- Non-Iterative Sketching: The factor matrices resulting from the decomposition are used directly as the sketching matrices. Unlike previous methods, this process is direct and does not require iterative training loops.
- Two-Sided SCW: The authors also introduce a "Two-sided SCW" algorithm that uses two sketching matrices to compress both the rows and columns of the input simultaneously, further boosting computational efficiency for very large matrices.
Datasets
The authors evaluated their approach on three diverse real-world datasets, representing different types of high-dimensional streams:
- HSI (Hyperspectral Images): Used for remote sensing.
- Logo (Video): Representing high-resolution video streams.
- MRI (Magnetic Resonance Imaging): Representing medical data sequences.
Key Insights
- Subspace Consistency: The core insight is realizing that data streams usually originate from a consistent distribution. This means the "best" subspace for one matrix in the stream is likely very similar to the next.
- Optimization as Decomposition: The authors mathematically prove that the complex loss functions used in previous "learning-based" methods are actually relaxations of a tensor decomposition problem. By solving the tensor problem directly, they bypass the need for SGD entirely.
- Structure over Sparsity: While previous methods focused on sparse sketching matrices to save time, this paper shows that dense matrices derived from tensors are so much more accurate that they outperform sparse ones, especially when modern hardware acceleration is utilized.
Key Results
The tensor-based method consistently outperformed state-of-the-art baselines (IVY, FewShotSGD, and Butterfly) in both speed and accuracy.
- Higher Accuracy: The proposed method achieved test errors that were 0.27x to 0.55x lower than the best baselines across the HSI, Logo, and MRI datasets.
- Massive Speedup: As seen in the performance graphs, the tensor-based training (marked by the red star) operates in near-zero time relative to the baselines. On the HSI dataset, training took only 0.53 seconds, compared to over 46 seconds for baselines that required extensive pre-processing and iterative steps.
- Efficiency: The "two-sided" version of the algorithm proved even faster for testing, reducing latency by compressing the data from both ends.
Limitations and Future Work
- Memory Constraints: One major limitation is that the current algorithm requires loading the entire training "block" (the tensor) into memory at once. For exceptionally large training sets, this could become a bottleneck.
- Future Directions: The authors suggest developing "pass-efficient" versions of the algorithm that can update the sketching matrix dynamically as new data arrives, without needing to store the whole history. They also see potential for applying this tensor-based sketching to other operations, such as solving linear systems or $\epsilon$-approximations in data streams.
Summary updated