Augmented Tensor Decomposition with Stochastic Optimization

Chaoqi Yang, Cheng Qian, Navjot Singh, Cao Xiao, M. Brandon Westover, Edgar Solomonik, Jimeng Sun

Abstract

Tensor decompositions are powerful tools for dimensionality reduction and feature interpretation of multidimensional data such as signals. Existing tensor decomposition objectives (e.g., Frobenius norm) are designed for fitting raw data under statistical assumptions, which may not align with downstream classification tasks. In practice, raw input tensors can contain irrelevant information while data augmentation techniques may be used to smooth out class-irrelevant noise in samples. This paper addresses the above challenges by proposing augmented tensor decomposition (ATD), which effectively incorporates data augmentations and self-supervised learning (SSL) to boost downstream classification. To address the non-convexity of the new augmented objective, we develop an iterative method that enables the optimization to follow an alternating least squares (ALS) fashion. We evaluate our proposed ATD on multiple datasets. It can achieve 0.8% - 2.5% accuracy gain over tensor-based baselines. Also, our ATD model shows comparable or better performance (e.g., up to 15% in accuracy) over self-supervised and autoencoder baselines while using less than 5% of learnable parameters of these baseline models.

Introduction

Tensor decomposition, specifically CANDECOMP/PARAFAC (CP), is a staple for reducing the dimensionality of multi-dimensional data like medical signals (EEG, ECG). Traditionally, these models aim for "fitness"—minimizing the difference between the raw data and the low-rank approximation. However, a major gap exists: fitness does not necessarily equal classification power. A model might reconstruct a signal perfectly but fail to distinguish between different health states because it captured class-irrelevant noise.

Conversely, modern Self-Supervised Learning (SSL) is excellent at learning "aligned" features—where similar samples are close in embedding space—but these methods usually rely on massive, "black-box" deep neural networks that are computationally expensive and hard to interpret. This paper proposes Augmented Tensor Decomposition (ATD) to bridge this gap, injecting the power of contrastive self-supervised learning directly into classical CP tensor decomposition.

Methods

The authors propose ATD, which augments the standard CP objective function with a self-supervised contrastive loss. The new objective function combines three critical components:

  1. Reconstruction Loss ($L_{cpd}$): Ensures the learned bases can still represent the original data.
  2. Regularization ($L_{reg}$): Prevents overfitting.
  3. Self-Supervised Loss ($\tilde{L}_{ss}$): This term encourages the model to produce similar coefficient vectors for a sample and its augmented version (positive pairs) while pushing away unrelated samples (negative pairs).
Comparison between standard CP decomposition and the proposed ATD model. ATD incorporates data augmentation and a self-supervised loss term to align features.

To address the non-convexity of this new objective, the authors developed a specialized iterative rule that allows the model to be solved using an Alternating Least Squares (ALS) approach, maintaining the efficiency of classical tensor methods. Furthermore, to handle "sampling bias"—accidentally treating two samples from the same class as a negative pair—ATD uses a mathematical trick based on the law of total probability to estimate the negative sample distribution without needing labels during training.

Datasets and Evaluation

The model was evaluated on four diverse, real-world signal datasets, primarily focused on healthcare and activity monitoring. These datasets vary significantly in scale and complexity, ranging from smartphone sensor data to massive clinical EEG records.

Summary of the datasets used, including sample formats, augmentations applied, and the specific classification tasks.
  • Sleep-EDF: EEG, EOG, and EMG recordings for sleep stage classification.
  • HAR (Human Activity Recognition): Smartphone accelerometer and gyroscope data.
  • PTB-XL: A large-scale cardiology database of 12-lead ECGs.
  • MGH Sleep: A massive dataset of multi-channel EEG waves from Massachusetts General Hospital, containing over 4 million unlabeled samples.

Key Insights and Results

The experimental results highlight several advantages of the ATD framework:

  • Fitness + Alignment = Success: The paper demonstrates that reconstruction alone isn't enough for downstream tasks. By adding the "alignment" principle from SSL, the tensor bases become "class-aware" even without seeing labels. ATD consistently outperformed standard tensor baselines (like SALS) by 0.8% to 2.5% across all datasets.
  • Extreme Parameter Efficiency: One of the most striking findings is that ATD achieves state-of-the-art performance with a tiny fraction of the parameters. While a typical CNN-based autoencoder might have hundreds of thousands of parameters, ATD uses fewer than 10,000 for the same task (less than 5% of the baseline parameters).
  • Robustness in Low-Label Scenarios: ATD shines when labeled data is scarce. Because it learns the structure of the data unsupervised through the augmented CP process, it provides a much better starting point for a simple classifier than a supervised CNN trained on a small dataset.
  • Scalability: On the MGH dataset, ATD showed up to a 15% accuracy improvement over standard self-supervised and autoencoder baselines. The optimization complexity remains asymptotically the same as standard CP-ALS, making it viable for large-scale applications.

Conclusion

ATD represents a significant step in making tensor decompositions more effective for modern machine learning tasks. By combining the interpretability and efficiency of tensors with the discriminative power of self-supervised learning, it offers a compelling alternative to heavy deep learning models for signal processing.

Future directions include extending the ATD framework to other decomposition types, such as Tucker decomposition, and exploring the use of tensor decomposition as a layer within deeper neural networks to combine the interpretability of tensors with the expressive power of deep learning.

Summary updated

BibTeX
@inproceedings{yang2022augmented,
  author = {Chaoqi Yang and Cheng Qian and Navjot Singh and Cao Xiao and M. Brandon Westover and Edgar Solomonik and Jimeng Sun},
  title = {{Augmented Tensor Decomposition with Stochastic Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=Q7kdFAVPdu},
}
Figure