On Optimizing Distributed Tucker Decomposition for Dense Tensors

Venkatesan T. Chakaravarthy, Jee W. Choi, Douglas J. Joseph, Xing Liu, Prakash Murali, Yogish Sabharwal, Dheeraj SreedharIPDPS 2017

TL;DR

This paper tackles the challenge of efficiently performing Tucker decomposition on large, dense tensors across distributed computing systems. They introduce novel algorithms for optimizing the computational structure (TTM-trees) and data distribution (dynamic gridding) to significantly reduce execution time, computational load, and communication volume.

What Problem Does This Paper Address?

Tucker decomposition is a powerful technique for data compression and analysis, extending matrix decomposition concepts to higher-dimensional data (tensors). However, applying it to large, dense tensors on distributed systems is computationally expensive due to the inherent complexity of tensor operations. Specifically, the core operation, tensor-times-matrix (TTM) multiplication, involves substantial computational load and communication overhead. Prior work has focused on heuristics for optimizing these aspects, but this paper aims to provide optimal algorithms for both computational structure and data distribution to achieve maximum performance gains.

Methods

The paper proposes two main algorithmic contributions:

  • Optimal TTM-trees: They introduce a dynamic programming algorithm to find the optimal TTM-tree structure. This tree dictates the order in which tensor-times-matrix operations are performed. The algorithm ensures the minimum number of floating-point operations (FLOPs) by considering optimal binary tree structures and a recurrence relation that balances "reuse" (leveraging intermediate results) and "splitting" (partitioning subproblems).
  • Dynamic Gridding: Instead of using a static grid for distributing tensor data across processors, they propose a dynamic gridding scheme. This scheme selects a different grid for each TTM operation based on the specific tensor and operation, aiming to minimize communication. This involves deciding whether to "regrid" (redistribute) the tensor and selecting the best new grid. An efficient dynamic programming algorithm is presented to find the optimal dynamic grid scheme.

Datasets

The paper describes constructing a large benchmark of tensors for evaluation. This benchmark includes:

  • Tensors with metadata derived from real-world tensors.
  • Tensors with metadata derived from simulations in combustion science.

The benchmark consists of 1134 5-dimensional and 642 6-dimensional tensors, with dimension lengths drawn from {20, 50, 100, 400} and compression ratios from {1.25, 2, 5, 10}. The cardinality of tensors was capped at 8 * 10^9.

Key Insights and Ideas

  • Optimality Matters: The paper demonstrates that moving beyond heuristics to find optimal TTM-tree structures and dynamic data gridding can yield substantial performance improvements.
  • Dynamic Gridding's Power: The dynamic gridding scheme is particularly impactful, showing significant gains in communication time and volume. The ability to adapt data distribution to each specific operation is key.
  • TTM-tree Structure is Crucial: The choice of how to structure the sequence of TTM operations (the TTM-tree) has a significant impact on computational load. Optimal binary trees are shown to be sufficient.
  • Regridding Trade-off: Dynamic gridding involves a trade-off: the cost of regridding versus the communication savings in subsequent TTM operations. The proposed algorithm effectively navigates this trade-off.

Key Results

The experimental evaluation on a large benchmark of tensors showed significant performance improvements:

  • Overall Execution Time: The proposed optimal tree algorithm with dynamic gridding achieved up to a 7x improvement in overall execution time compared to prior heuristics.
  • Computational Load: The optimal TTM-tree algorithm reduced computational load by up to 2.8x (5D) and 3.6x (6D) compared to prior heuristics.
  • Communication Volume: Dynamic gridding offered up to a 6x factor improvement in communication volume over static gridding.
  • Communication Time: Dynamic gridding led to improvements of up to 17x (median 9.4x) in communication time.

Limitations and Future Work

  • Dense Tensors: The current work focuses on dense tensors. The authors suggest that investigating the applicability of these techniques to sparse tensors is a potential avenue for future work.
  • Distributed SVD: For further performance improvements on dense tensors, the authors suggest that a distributed SVD solver could be used instead of the current Gram matrix computation followed by sequential EVD.
  • Characterizing Gain: A detailed study is needed to fully characterize how tensor metadata influences the performance gains.

Summary updated

BibTeX
@inproceedings{chakaravarthy2017optimizing,
  author = {Venkatesan T. Chakaravarthy and Jee W. Choi and Douglas J. Joseph and Xing Liu and Prakash Murali and Yogish Sabharwal and Dheeraj Sreedhar},
  title = {{On Optimizing Distributed Tucker Decomposition for Dense Tensors}},
  booktitle = {IPDPS},
  year = {2017},
  doi = {10.1109/ipdps.2017.86},
}
Figure