AMPED: Accelerating MTTKRP for Billion-Scale Sparse Tensor Decomposition on Multiple GPUs

Sasindu Wijeratne, Rajgopal Kannan, Viktor Prasanna

Introduction

Tensor decomposition is a fundamental technique for uncovering latent structures in multi-dimensional data, with applications spanning machine learning, signal processing, and social network analysis. At the heart of these decompositions—particularly the Canonical Polyadic (CP) decomposition—lies the Matricized Tensor Times Khatri-Rao Product (MTTKRP). As datasets scale to billions of non-zero elements, such as those found in Amazon reviews or Reddit interactions, the computational demands of MTTKRP often exceed the capabilities of single-device systems.

The MTTKRP Bottleneck

The primary challenge in scaling MTTKRP to billion-scale tensors is two-fold: memory constraints and parallel inefficiency. High-end GPUs, while powerful, often lack the global memory capacity to store massive sparse tensors. Furthermore, naive multi-GPU implementations frequently suffer from significant communication overhead and load imbalances due to the irregular data access patterns characteristic of sparse tensors.

The basic MTTKRP computation flow involving tensor X and factor matrices A, B, and C.

Existing approaches typically fall into two camps: single-GPU optimizations that cannot handle the sheer volume of billion-scale data, or multi-GPU frameworks that struggle with synchronization delays and "race conditions" when multiple threads or devices attempt to update the same memory locations.

The AMPED Methodology

To address these limitations, the authors introduce AMPED (Accelerating MTTKRP for Parallel Execution on Devices). AMPED is built upon a task-independent partitioning strategy designed to minimize inter-device coordination.

Two-Level Distribution Strategy

AMPED employs a sophisticated two-level distribution scheme to ensure efficient utilization of hardware resources:

  1. Inter-device Partitioning: The tensor is divided into "Tensor Shards" (TS) based on the output mode index. By ensuring that all elements contributing to a specific row of the output factor matrix reside on the same GPU, AMPED eliminates the need for expensive inter-GPU synchronization during the core computation phase.
  2. Inter-shard Partitioning: Within each GPU, shards are further subdivided into equal-sized "Inter-Shard Partitions" (ISP). This ensures that the workload is distributed evenly across all Streaming Multiprocessors (SMs) on the chip.
The two-level distribution hierarchy mapping Tensor Shards (TS) to Inter-Shard Partitions (ISP) and finally to GPU Thread Blocks.

Communication and Load Balancing

Rather than relying on the host CPU as a middleman, AMPED utilizes GPUDirect P2P communication. This allows GPUs to exchange updated factor matrix rows directly over a high-speed interconnect using a ring-network model. Additionally, AMPED uses a static load-balancing scheme. By pre-calculating the data distribution, the system avoids the runtime overhead associated with dynamic scheduling while maintaining high hardware utilization.

Experimental Evaluation

The performance of AMPED was evaluated using four massive sparse tensors from the FROSTT repository and other large-scale recommender system datasets:

  • Amazon: 1.7 billion nonzeros
  • Patents: 3.6 billion nonzeros
  • Reddit-2015: 4.7 billion nonzeros
  • Twitch: 0.5 billion nonzeros (a 5-mode tensor)

These benchmarks represent the state-of-the-art in scale, specifically testing the limits of multi-GPU memory and compute scaling.

Results and Discussion

AMPED achieved a 5.1× geometric mean speedup in total execution time compared to leading GPU baselines such as BLCO, MM-CSF, and HiCOO-GPU when using 4 GPUs. Notably, the algorithm demonstrated near-linear scalability, achieving speedups of 1.9×, 2.3×, and 3.3× on 2, 3, and 4 GPUs, respectively, relative to a single-GPU baseline.

A key finding was the efficiency of the partitioning strategy; AMPED's sharding was 8.2× faster than a naive equal distribution of non-zero elements. This underscores the principle that data organization is as critical as raw compute power in sparse tensor operations. However, the "Twitch" dataset highlighted a remaining challenge: extreme data skew (power-law distributions) can still lead to load imbalances that static schemes struggle to fully mitigate.

Conclusion

AMPED provides a robust framework for billion-scale tensor decomposition by prioritizing the elimination of dependencies over their management. By combining task-independent partitioning with high-speed peer-to-peer communication, it overcomes the memory and synchronization bottlenecks that have previously limited the scale of MTTKRP. Future work will focus on accelerating the preprocessing phase and adapting the algorithm for heterogeneous environments involving CPUs, GPUs, and FPGAs.

Summary updated

BibTeX
@misc{wijeratne2025amped,
  author = {Sasindu Wijeratne and Rajgopal Kannan and Viktor Prasanna},
  title = {{AMPED: Accelerating MTTKRP for Billion-Scale Sparse Tensor Decomposition on Multiple GPUs}},
  year = {2025},
  eprint = {2507.15121},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.15121},
}
Figure