TuckerMPI: A Parallel C++/MPI Software Package for Large-scale Data Compression via the Tucker Tensor Decomposition

Grey Ballard, Alicia M. Klinvex, Tamara G. Kolda

TL;DR

TuckerMPI is a high-performance C++/MPI software package designed to compress multi-terabyte scientific datasets using the Tucker tensor decomposition. By exploiting global structure rather than just local patterns, it achieves staggering compression ratios—up to 200,000x—while remaining faster than the time it takes to simply read the original data from a disk.

What Problem Does This Paper Address?

Modern scientific simulations (like combustion or fluid dynamics) are victims of their own success. They produce "data deluges"—multi-terabyte outputs that are too massive to store, move, or visualize easily.

While common compression tools like ZIP are lossless, they fail on floating-point scientific data. Existing lossy compressors (like ZFP or SZ) focus on local structure, looking at small blocks of data at a time. The authors of this paper argue that these methods miss the "big picture." Scientific data often has global latent structures—patterns that span the entire simulation grid. The challenge is creating a parallelized system capable of identifying and exploiting these global patterns across thousands of processors without the overhead becoming a bottleneck itself.

Methods

The core of the package is the Tucker Tensor Decomposition, specifically the Sequentially-Truncated Higher-Order SVD (ST-HOSVD). Think of this as a multi-dimensional version of Principal Component Analysis (PCA) or Singular Value Decomposition (SVD). It represents a massive $N$-dimensional array (a tensor) as a small "core tensor" plus a set of matrices that capture the principal components of each dimension (mode).

Key Technical Innovations: * Redistribution-based Gram Kernel: The authors introduced a new parallel algorithm for computing Gram matrices. Unlike previous "round-robin" approaches that moved data in small increments, this method uses an efficient MPI_Alltoall redistribution, making it up to 48x faster. * Hybrid TTM Strategies: For the Tensor-Times-Matrix (TTM) operations, the software dynamically chooses between "Reduce-Scatter" and "Multiple-Reduction" variants based on the size of the data to minimize memory footprint. * Optimized Reconstruction: The paper provides a mathematical framework to determine the optimal order of operations when reconstructing data, ensuring that intermediate memory usage never explodes.

Datasets

The authors evaluated TuckerMPI using two massive, real-world combustion simulation datasets produced by the S3D code at Sandia National Laboratories:

  1. SP (Statistically Steady Planar Flame): A 5-way tensor (spatial grid + variables + time) totaling 4.4 TB.
  2. JICF (Jet in Crossflow): A 5-way tensor totaling 6.7 TB.
  3. Synthetic Data: 4D tensors used for strong and weak scaling studies to test the limits of the MPI implementation.

Key Insights and Ideas

  • Global vs. Local: By treating the entire dataset as a single mathematical object (a tensor), TuckerMPI finds redundancies that block-based compressors miss. This is why it can reach 99.999% compression where others might hit a wall at 90%.
  • Compression as a "Thumbnail": The authors suggest that compressed data shouldn't necessarily replace the original, but serve as a high-fidelity "preview" that can live on a scientist's laptop while the multi-terabyte "source of truth" stays in long-term cold storage.
  • The I/O Paradox: One of the most striking insights is that the computational cost of this complex math is actually lower than the cost of moving the data. It is literally faster to compress the data than to read it from a parallel filesystem.
  • Order Matters: In reconstruction, the sequence in which you apply the factor matrices can mean the difference between fitting the task on a laptop or crashing a supercomputer node due to memory overflow.

Key Results

  • Extreme Compression: On the SP dataset, the tool achieved compression ratios between 100x and 200,000x, depending on the requested accuracy.
  • Speed: The new Gram matrix kernel outperformed previous state-of-the-art parallel implementations by nearly 50x in certain configurations.
  • Scalability: The software demonstrated excellent weak scaling up to 625 nodes (10,000 MPI processes), maintaining 40-50% of peak theoretical performance.
  • Single-Node Utility: The authors showed that a scientist can take a compressed 4.4 TB dataset and, on a single workstation, reconstruct a specific 1 GB "slice" (like one variable at one time step) in just a few seconds.

Limitations and Future Work

  • Lossy Nature: Like all Tucker-based methods, this is lossy. While the error is controllable, it may not be suitable for applications requiring bit-for-bit perfect restarts.
  • Regular Grids only: Currently, the software is optimized for regular rectilinear grids. Extending this to unstructured or non-rectilinear meshes remains a challenge for the future.
  • In Situ Integration: The current paper focuses on post-processing. The authors note that the "holy grail" would be integrating TuckerMPI directly into the simulation code (in situ) so the data is compressed before it ever touches a disk.
  • Mode Ordering Heuristics: While they optimized reconstruction ordering, the ordering of modes during the initial compression phase is currently based on simple heuristics and could be further optimized.

Summary updated

BibTeX
@article{ballard2020tuckermpi,
  author = {Grey Ballard and Alicia M. Klinvex and Tamara G. Kolda},
  title = {{TuckerMPI: A Parallel C++/MPI Software Package for Large-scale Data Compression via the Tucker Tensor Decomposition}},
  journal = {ACM Trans. Math. Softw.},
  year = {2020},
  doi = {10.1145/3378445},
}
Figure