Abstract
Bayesian tensor reconstruction methods offer robust performance and automatic rank determination but suffer from high computational complexity due to repeated matrix inversions. This paper introduces CP-GAMP, a novel algorithm that leverages Approximate Message Passing (AMP) to bypass these bottlenecks. By replacing global optimization with local message passing on a factor graph, CP-GAMP achieves an 82.7% reduction in runtime compared to state-of-the-art Variational Bayesian methods while maintaining high accuracy.
Introduction
Tensors, or multi-dimensional arrays, are fundamental for representing complex data in signal processing, neuroscience, and machine learning. In practice, these tensors are often incomplete or corrupted by noise. Recovering the original data typically involves CANDECOMP/PARAFAC decomposition (CPD), which approximates a large tensor as a sum of low-rank components.
While Bayesian probabilistic models are highly effective for CPD—offering principled ways to handle uncertainty and automatically infer the latent rank—they scale poorly. Existing methods, such as Variational Inference, require calculating high-dimensional matrix inversions in every iteration. As tensor dimensions grow, these $O(R^3)$ operations become a massive computational bottleneck, rendering Bayesian approaches impractical for large-scale datasets.
Methods: The CP-GAMP Framework
The proposed CP-GAMP (Tensor CPD Generalized Approximate Message Passing) algorithm addresses the scalability issue by reframing tensor reconstruction as a message-passing problem on a factor graph.
The core components of the framework include:
- Approximate Message Passing (AMP): Instead of solving global optimization problems, the algorithm passes probabilistic "messages" between nodes. By applying Taylor-series expansions and the Central Limit Theorem, complex high-dimensional integrals are simplified into manageable scalar operations, effectively bypassing the need for matrix inversions.
- Bernoulli-Gaussian (BG) Prior: To automatically learn the tensor's rank, the authors employ a BG prior. This sparsity-inducing tool prunes unnecessary components during the reconstruction process, allowing the model to adapt to the underlying data complexity without manual tuning.
- Expectation-Maximization (EM) Routine: The algorithm incorporates an EM step to jointly estimate hyperparameters, such as noise power and Bernoulli parameters. This makes the algorithm "adaptive" and "plug-and-play" for various noise environments.
Experimental Setup
The performance of CP-GAMP was evaluated on both synthetic and real-world datasets:
- Synthetic Data: 3rd-order tensors (e.g., $100 \times 100 \times 100$) with a rank of 20. Tests were conducted across various "observation ratios" (e.g., 20% observed elements).
- Image Inpainting: Standard $256 \times 256 \times 3$ color images (e.g., Airplane, Baboon, Barbara) were treated as 3rd-order tensors with 70% missing pixels.
Key Insights
The primary innovation of CP-GAMP is the shift from $O(R^3)$ complexity to a much lighter quadratic or linear scale relative to the rank. Furthermore, unlike previous message-passing attempts (like TC-AMP), CP-GAMP ensures that sparsity is consistent across different tensor "modes," which significantly improves reconstruction accuracy.
Key Results
Empirical results demonstrate that CP-GAMP provides a superior balance of speed and accuracy.
- Computational Efficiency: In synthetic experiments, CP-GAMP reduced runtime by 82.7% compared to the state-of-the-art Fully Bayesian CP (FBCP) method.
- Reconstruction Accuracy: Despite the speedup, the Normalized Mean Square Error (NMSE) remained comparable to or better than FBCP.
- Image Recovery: For image inpainting, the algorithm achieved a 56.3% reduction in runtime and a 0.22 dB gain in Peak Signal-to-Noise Ratio (PSNR) over FBCP, consistently outperforming TC-AMP in detail recovery.
Limitations and Future Work
A current limitation of CP-GAMP is its reliance on a component-wise likelihood function. The derivation assumes noise affects each tensor element independently. If the data transformation involves non-separable likelihoods (e.g., global blurring), the current mathematical framework would require extension. Future research may focus on handling non-separable likelihoods or applying the AMP strategy to higher-order tensor structures.
Summary updated