FRAPPE: $\underline{\text{F}}$ast $\underline{\text{Ra}}$nk $\underline{\text{App}}$roximation with $\underline{\text{E}}$xplainable Features for Tensors

William Shiao, Evangelos E. Papalexakis · DOI

Abstract

Tensor decompositions are essential for analyzing multidimensional data, but they often require the user to specify the number of components, known as the canonical rank. For the CANDECOMP/PARAFAC decomposition (CPD), determining this rank is computationally expensive, typically requiring multiple full decompositions. We present FRAPPE (Fast Rank Approximation with Explainable Features for Tensors), the first method to estimate canonical rank without computing the CPD. FRAPPE extracts size-agnostic features and trains a specialized, single-use regression model on synthetic data tailored to the input tensor's characteristics. Our method achieves a 24x speedup over state-of-the-art baselines and a 10% improvement in Mean Absolute Percentage Error (MAPE) on synthetic data, while maintaining high performance on real-world datasets.

Introduction

In modern data science, tensors are ubiquitous for representing multi-way data such as social networks, sensor grids, and video sequences. Analyzing these structures often involves CANDECOMP/PARAFAC decomposition (CPD), which approximates a tensor as a sum of rank-one components. A critical challenge in this process is determining the "canonical rank"—the minimum number of components needed for an accurate representation.

Choosing an incorrect rank leads to either underfitting (loss of information) or overfitting (modeling noise). However, finding the exact rank is NP-hard. Current state-of-the-art methods rely on iterative heuristics or Bayesian approaches that require performing the expensive CPD algorithm multiple times across a range of potential ranks. This "trial and error" approach is computationally prohibitive for large-scale tensors.

Methodology

FRAPPE shifts the paradigm from iterative decomposition to feature-based prediction. The pipeline consists of four main stages:

  1. Feature Extraction: FRAPPE extracts 112 size-agnostic features directly from the input tensor. These include basic dimensions, sparsity metrics, and the ranks of individual slices. A key innovation is the use of pairwise correlations between slices, which serve as a strong proxy for the overall canonical rank.
  2. Tailored Synthetic Generation: Recognizing that a single global model fails to generalize across diverse data types, FRAPPE generates a small, specialized synthetic dataset. These synthetic tensors are engineered to match the specific dimensions and sparsity of the target input tensor.
  3. Single-Use Model Training: A LightGBM (Gradient Boosting Machine) regression model is trained on this tailored synthetic data. This "disposable" model is optimized for the specific distribution of the input data.
  4. Inference: The trained model predicts the canonical rank of the original tensor. This entire process—generation, training, and inference—is significantly faster than even a single full CPD computation.

Experimental Results

We evaluated FRAPPE against several baselines, including NORMO, ARD-Tucker, and AutoTen, across synthetic and real-world datasets.

Speed and Accuracy

FRAPPE demonstrates a significant performance leap. It is approximately 24x faster than the most accurate baseline (NORMO) and achieves a 10% improvement in MAPE on synthetic benchmarks. In real-world applications, such as fluorescence spectroscopy datasets (amino_acid, dorrit, sugar), FRAPPE consistently identified the correct rank where other methods occasionally failed.

Comparison of FRAPPE against state-of-the-art baseline methods. The table highlights FRAPPE's unique ability to avoid CPD computation and its superior evaluation speed.

Explainability and Generalization

Unlike "black-box" Bayesian methods, FRAPPE offers explainability. Feature importance analysis revealed that "Correlation over Slices" is the most predictive feature group, followed by "Thresholded Non-zeros." This confirms the theoretical intuition that slice correlation is a primary indicator of rank. Furthermore, the self-supervised approach of matching synthetic data distributions proved essential for generalizing to real-world tensors.

Application: Neural Network Compression

FRAPPE was also tested on the 4D weight tensors of an AlexNet model. It successfully identified a rank (40) that optimized the trade-off between model accuracy and compression, outperforming baselines that either over-compressed (losing accuracy) or under-compressed (losing efficiency).

Conclusion

FRAPPE introduces a decomposition-free approach to rank estimation that is both faster and more accurate than existing methods. By leveraging explainable features and tailored synthetic data, it provides a scalable solution for tensor analysis. Future work will focus on extending these features to higher-order (4D+) tensors and improving robustness against adversarial data structures.

Summary updated

BibTeX
@article{shiao2024frappe,
  author = {William Shiao and Evangelos E. Papalexakis},
  title = {{FRAPPE: $\textbackslash\{\}underline\{\textbackslash\{\}text\{F\}\}$ast $\textbackslash\{\}underline\{\textbackslash\{\}text\{Ra\}\}$nk $\textbackslash\{\}underline\{\textbackslash\{\}text\{App\}\}$roximation with $\textbackslash\{\}underline\{\textbackslash\{\}text\{E\}\}$xplainable Features for Tensors}},
  journal = {Data Min. Knowl. Discov.},
  year = {2024},
  doi = {10.1007/s10618-024-01071-6},
}
Figure