Abstract
Determining the canonical rank of a tensor—the minimum number of components required for a CANDECOMP/PARAFAC decomposition (CPD)—is a fundamental yet computationally intensive challenge in multi-dimensional data analysis. We present FRAPPE (Fast Rank Approximation with Prototypical Parameter Estimation), the first method to estimate tensor rank without performing the decomposition itself. By training a "disposable" regression model on synthetic data tailored to the input tensor's structure, FRAPPE achieves a 24x speedup over state-of-the-art methods while improving accuracy and providing explainable feature insights.
Introduction
In fields ranging from signal processing to chemometrics, tensors serve as essential structures for representing multi-way data. Analyzing these tensors typically involves CPD, which decomposes a complex tensor into a sum of rank-one components. However, the effectiveness of CPD depends on knowing the "true" rank ($R$). Selecting an incorrect rank leads to either underfitting (missing information) or overfitting (modeling noise). Since finding the exact rank is NP-hard, current practices rely on "brute force" heuristics that run CPD multiple times at various ranks—a process that is computationally prohibitive for large-scale datasets.
Methodology: The FRAPPE Framework
FRAPPE sidesteps the decomposition bottleneck through a three-stage pipeline:
1. Feature Extraction
Instead of analyzing the decomposition output, FRAPPE extracts 112 "size-agnostic" features directly from the raw tensor. These include structural properties like dimensions and sparsity, as well as statistical measures such as the ranks of individual 2D slices and the pairwise correlation between slices.
2. Self-Supervised "Disposable" Modeling
Recognizing that a universal model cannot generalize across diverse data domains (e.g., social networks vs. fluorescence spectroscopy), FRAPPE employs a "just-in-time" training strategy:
- Analysis: It assesses the input tensor's specific dimensions and sparsity.
- Synthesis: It generates a custom set of synthetic tensors that mirror these properties but have known ground-truth ranks.
- Training: A lightweight LightGBM regression model is trained on this bespoke synthetic dataset.
3. Rank Prediction
The specialized model predicts the rank of the target tensor. Once the prediction is delivered, the model is discarded, ensuring that the estimation is always optimized for the specific data at hand.
Experimental Evaluation
The authors evaluated FRAPPE across three distinct domains:
- Synthetic Benchmarks: Tensors with varying noise levels (2–10%) and structural types (sparse vs. dense).
- Real-World Datasets: Classic benchmarks in fluorescence spectroscopy (
amino_acid,dorrit,sugar) and social network analysis (reality_mining,enron). - Deep Learning Compression: Finding the optimal rank for compressing 4D weight tensors in an AlexNet model.
Key Results and Discussion
FRAPPE demonstrates significant advantages over traditional heuristic and Bayesian methods.
Performance and Efficiency
As shown in the comparison table, FRAPPE is 24x faster than the high-performing NORMO baseline and significantly more efficient than AutoTen. On synthetic data, it reduced the Mean Absolute Percentage Error (MAPE) by 10% compared to the best existing baseline.
Real-World Precision and Explainability
In chemical applications, FRAPPE perfectly estimated the rank for all fluorescence datasets, matching the accuracy of complex Bayesian methods at a fraction of the time. Furthermore, feature importance analysis revealed that pairwise correlation between slices is the most critical predictor of rank, offering a mathematical intuition for why certain tensors are more compressible than others.
Conclusion
FRAPPE represents a paradigm shift in tensor analysis by treating rank estimation as a supervised learning problem solvable via synthetic data. By avoiding the CPD computation entirely, it enables rapid, automated, and explainable rank approximation for large-scale and high-dimensional datasets. Future work will focus on optimizing feature extraction for higher-order tensors (order 5+) and improving the realism of synthetic data distributions for specialized scientific domains.
Summary updated