FRAPPE: F̲ast R̲a̲nk A̲p̲p̲roximation with E̲xplainable Features for Tensors

William Shiao, Evangelos E. Papalexakis · OpenReview

Abstract

Tensor decompositions are powerful tools for analyzing multidimensional data, but they often require the user to pre-specify the canonical rank ($R$)—a task that is computationally expensive and typically involves iterative trial-and-error. We propose FRAPPE (Fast Rank Approximation with Explainable Features), a method that estimates the canonical rank of a tensor without ever computing the decomposition itself. By leveraging a cheaply supervised approach using synthetic data tailored to the input tensor's properties, FRAPPE achieves significant improvements in both accuracy and speed. Our evaluation shows a 24x speedup over state-of-the-art baselines and a 10-15% improvement in Mean Absolute Percentage Error (MAPE) across synthetic and real-world datasets.

1. Introduction

In multi-dimensional data analysis, the CANDECOMP/PARAFAC decomposition (CPD) is essential for modeling complex relationships by breaking a tensor into a sum of simpler components. However, selecting the correct number of components, or the canonical rank, presents a significant challenge. If the rank is too low, the model misses critical patterns; if it is too high, it overfits to noise.

Existing rank estimation methods typically rely on heuristics or Bayesian approaches that require repeatedly calculating the CPD for various rank candidates. This iterative process is mathematically and temporally prohibitive for large-scale datasets. FRAPPE addresses this by reframing rank estimation as a regression task, eliminating the need for expensive decompositions during the estimation phase.

2. Methodology

FRAPPE shifts the paradigm from iterative search to a streamlined regression workflow consisting of four key stages:

  1. Feature Extraction: The method extracts 112 size-agnostic features from the input tensor, including dimensions, sparsity levels, and slice-based metrics like SVD-derived ranks and pairwise correlations.
  2. Just-in-Time Synthetic Generation: To ensure the model generalizes to the specific data at hand, FRAPPE generates a small set of synthetic tensors that mimic the dimensions and sparsity of the target tensor but have known ground-truth ranks.
  3. Self-Supervised Training: A lightweight LightGBM regression model is trained on this tailored synthetic dataset. This "disposable" model approach ensures high relevance to the input data with minimal training overhead.
  4. Inference: The model predicts the rank of the original input tensor and is subsequently discarded.

3. Experimental Evaluation

The authors evaluated FRAPPE against several baselines, including NORMO, ARD-Tucker, and AutoTen, across diverse datasets:

  • Synthetic Tensors: Tested for robustness against varying noise types and sparsity levels.
  • Real-World Ground Truth: Chemical fluorescence spectroscopy datasets (amino_acid, dorrit, sugar) where the true rank is physically determined.
  • Social and Network Data: The enron email and reality_mining datasets.
  • Deep Learning Weights: Analysis of a 4D weight tensor from a pre-trained AlexNet to determine optimal compression ranks.

4. Key Results and Insights

FRAPPE demonstrates superior performance across both qualitative and quantitative metrics. Notably, it is the only method that avoids computing the CPD entirely while remaining fully explainable.

Table 1: Comparison of FRAPPE with baseline methods. FRAPPE is the only method that avoids computing the CPD, provides explainability, and offers a massive 24x speedup over the closest competitive baseline.

4.1 Speed and Accuracy

FRAPPE achieved a 24x speedup over the best-performing baseline (NORMO) and a 10% improvement in MAPE on synthetic data. In real-world chemical datasets, it perfectly estimated the rank, matching the accuracy of much slower iterative methods.

4.2 Explainability and Generalization

A key insight from the study is that correlation between slices serves as a powerful proxy for rank. High correlation indicates redundancy, suggesting a lower rank. By generating synthetic data that mimics the input's specific distribution, FRAPPE bridges the "generalization gap" that often plagues generic models trained on random synthetic data.

5. Conclusion

FRAPPE demonstrates that rank approximation can be achieved efficiently without the computational burden of full tensor decomposition. While currently optimized for 3D and 4D structures, future work aims to extend these feature extraction techniques to higher-order tensors and explore robustness against adversarial data. By providing a fast, explainable, and accurate estimate of canonical rank, FRAPPE enables real-time tensor analysis on massive, complex datasets.

Summary updated

BibTeX
@article{shiao2024frappe,
  author = {William Shiao and Evangelos E. Papalexakis},
  title = {{FRAPPE: F̲ast R̲a̲nk A̲p̲p̲roximation with E̲xplainable Features for Tensors}},
  journal = {Data Min. Knowl. Discov.},
  year = {2024},
  doi = {10.1007/s10618-024-01071-6},
}
Figure