Parallel Tensor Compression for Large-Scale Scientific Data

Woody Austin, Grey Ballard, Tamara G. Kolda

TL;DR

This paper introduces the first distributed-memory parallel algorithm for Tucker tensor decomposition, enabling massive scientific datasets (terabytes) to be compressed into gigabytes with minimal loss of accuracy. This breakthrough allows for more efficient storage, transfer, and analysis of data generated by exascale simulations.

What Problem Does This Paper Address?

Modern scientific simulations, particularly in fields like combustion science, are generating data at an unprecedented scale, reaching terabytes and beyond. This massive data volume creates significant bottlenecks in the scientific workflow, making it difficult and expensive to store, transfer, visualize, and analyze. Traditional compression methods often struggle with the high-dimensional, multi-linear structure inherent in this data. The authors aim to address this by developing a method to exploit this low-dimensional structure for effective compression.

Methods

The core of the paper is the development and implementation of a distributed-memory parallel algorithm for the Tucker tensor decomposition. This decomposition approximates a high-order tensor (representing the scientific data) as a product of a smaller "core" tensor and several "factor" matrices. The key contributions are:

  • First Distributed-Memory Implementation: Unlike previous work that assumed data fit on a single machine, this paper presents a parallel algorithm designed for distributed computing environments.
  • Novel Data Distribution: The algorithm employs a specific data distribution strategy for tensors and matrices that avoids costly data redistribution, both locally and across processors.
  • Efficient Kernels: The implementation leverages optimized BLAS3 routines for local computations and carefully designed parallel collectives to minimize communication overhead.
  • Algorithms for Initialization and Refinement: The paper details parallel implementations of the Sequentially-Truncated Higher-Order Singular Value Decomposition (ST-HOSVD) for initialization and the Higher-Order Orthogonal Iteration (HOOI) for iterative refinement of the decomposition.

Datasets

The authors evaluate their method on real-world scientific datasets from combustion science simulations:

  • HCCI-t: A 4-way tensor (spatial grid, species, time) of size 672x672x33xt, with a specific instance of 71.6 GB for t=628.
  • TJ-A-t: A 5-way tensor (3D spatial grid, species, time) of size 300x500x240x35xt, with a specific instance of 122 GB for t=13. This dataset was downsampled.
  • TJ-B-t: A 5-way tensor (similar to TJ-A but higher spatial resolution) of size 460x700x360x35xt, with a specific instance of 512 GB for t=16.

These datasets are preprocessed by centering and scaling each species slice to normalize the data.

Key Insights and Ideas

  • Scientific data often possesses inherent low-dimensional multilinear structure: This is the fundamental assumption that makes tensor decomposition a powerful tool for compression. The paper demonstrates this structure in combustion science data.
  • Distributed-memory parallelization is crucial for exascale data: The sheer size of modern simulation outputs necessitates parallel processing, and this work provides a foundational algorithm for Tucker decomposition in such environments.
  • Data distribution is key to performance: The authors highlight that avoiding data redistribution is critical for efficient parallel algorithms, and their proposed strategy achieves this.
  • Mode ordering significantly impacts performance: The order in which tensor modes are processed can dramatically affect the runtime, and the paper explores heuristics for optimal ordering.
  • Compression enables broader scientific access: By reducing terabytes to gigabytes, the method allows for analysis on less powerful hardware, democratizing access to complex simulation results.

Key Results

  • High Compression Ratios: Achieved compression ratios of up to 10,000 on real-world datasets with negligible loss in accuracy (normalized RMS errors less than 10⁻⁶).
  • Scalability: The parallel algorithm demonstrates good performance across a wide range of processor counts, from a single node up to 30,000 cores.
  • Performance: Achieved near peak performance (up to 83%) on single nodes and significant aggregate performance (up to 100 TFLOPS) at large scales.
  • Practical Examples: Compressed a 15 TB dataset to 1.5 GB in about a minute and a 9 GB dataset to 33 MB in under a second.
  • Reconstruction Flexibility: The method allows for reconstructing specific subsets of the data, enabling efficient analysis of localized phenomena.

Limitations and Future Work

  • Numerical Stability: For achieving approximation errors near the square root of machine precision, a numerical improvement to directly compute singular values might be needed. The authors suggest that improving numerical stability would not drastically hurt performance.
  • Multi-threaded BLAS: For even better parallel scaling, the authors suggest using multi-threaded BLAS for local computations.
  • Communication/Computation Overlap: Opportunities exist to overlap communication and computation.
  • Exploiting Symmetry: The symmetry in the Gram computation is not fully exploited, which could lead to further performance gains.
  • Optimal Mode Ordering: While heuristics are explored, finding a universally optimal mode ordering remains an area for further research.

Summary updated

BibTeX
@inproceedings{austin2016parallel,
  author = {Woody Austin and Grey Ballard and Tamara G. Kolda},
  title = {{Parallel Tensor Compression for Large-Scale Scientific Data}},
  booktitle = {IPDPS},
  year = {2016},
  doi = {10.1109/ipdps.2016.67},
}
Figure