LCFI: A Fault Injection Tool for Studying Lossy Compression Error Propagation in HPC Programs

Baodi Shan, Aabid Shamji, Jiannan Tian, Guanpeng Li, Dingwen Tao

TL;DR

This paper introduces LCFI, a novel fault injection tool designed to systematically study how errors introduced by lossy compression propagate through High-Performance Computing (HPC) applications. By simulating compression errors rather than performing actual compression, LCFI provides a flexible and efficient way for both compressor developers and users to understand the impact of these errors on program outputs, ultimately guiding better usage of lossy compression in scientific data management.

What Problem Does This Paper Address?

HPC applications generate massive amounts of data, leading to significant storage burdens and I/O bottlenecks. Error-bounded lossy compression offers a promising solution by reducing data size while aiming to preserve essential information. However, a critical gap exists in understanding how the approximations introduced by these compressors affect the final results of HPC programs. While existing research focuses on optimizing compression ratios and data quality metrics (like PSNR), there's a lack of systematic study on the propagation of compression errors within HPC applications. This oversight can lead to unacceptable inaccuracies in scientific discovery if lossy compression is applied without understanding its downstream effects. The paper addresses this by providing a tool to bridge this gap.

Methods

The core contribution is the development of LCFI (Lossy Compression Fault Injector), built upon the LLVM-based fault injection tool LLFI. LCFI's key innovations include:

  • Simulated Compression Errors: Instead of performing actual compression and decompression (which would be too slow for fault injection), LCFI simulates the errors introduced by lossy compressors. This is achieved by modeling error distributions based on statistical analysis of real compressors like SZ (uniform distribution) and ZFP (normal distribution).
  • Fault Model Abstraction: LCFI defines a fault model that captures the statistical nature of lossy compression errors, allowing users to inject these errors without needing deep knowledge of specific compression algorithms.
  • Efficient Fault Injection: LCFI leverages LLVM Intermediate Representation (IR) to precisely target variables within HPC programs. It allows injection at specific locations, within loops, and for array elements.
  • Customization and Ease of Use: The tool is designed to be user-friendly, requiring minimal setup through YAML configuration files. It also offers flexibility for users to define their own error distributions.
  • Comprehensive Results: LCFI provides detailed trace information and program outputs, enabling users to analyze error propagation from the IR level up to the program's final results.

Datasets

The paper evaluates LCFI on four representative HPC benchmarks:

  • HPCCG
  • Black-Scholes
  • XSBench
  • NPB-MG

These benchmarks are chosen for their relevance in HPC applications and the presence of variables where lossy compression is typically applied. The paper does not introduce new datasets but uses established benchmarks to demonstrate the tool's capabilities.

Key Insights and Ideas

  • Error Propagation is Complex: The study reveals that the impact of lossy compression errors is not uniform. Different variables, even within the same program, and the same variable at different locations can exhibit vastly different sensitivities to compression errors.
  • "Benign Faults" Exist: Some injected faults, despite being introduced, have no discernible impact on the program's final output. LCFI's tracing capabilities can help identify these "benign faults," which is crucial for understanding error propagation dynamics.
  • Trade-offs in Error Bounds: For some applications, increasing the error bound leads to slower convergence rather than outright failure. This highlights a nuanced trade-off where users must carefully balance compression ratio with performance and accuracy.
  • Crashes and Corrupted Results are Common: For certain applications (e.g., Black-Scholes), lossy compression errors can lead to program crashes or severely corrupted outputs, indicating low resilience for those specific variables or program structures.

Key Results

  • LCFI successfully injected various types of lossy compression errors (absolute and relative error bounds, uniform and normal distributions) into representative HPC benchmarks.
  • Evaluation showed that programs with injected faults could still converge (HPCCG), but sometimes much slower with absolute errors compared to relative errors.
  • In some cases (Black-Scholes), injected faults led to a significant percentage of program crashes or corrupted results.
  • XSBench showed that while programs with injected faults could finish, their outputs differed from the baseline, and execution time increased.
  • The tool effectively demonstrated how faults injected in early loops could "annihilate" or disappear by later stages of execution, illustrating benign fault behavior.

Limitations and Future Work

  • Current Limitations:
    • LCFI currently only supports serial programs due to LLFI's lack of OpenMP support.
  • Faults cannot be directly injected into variables in the main function, as this often leads to program crashes that are not informative for studying error propagation.
  • The current implementation focuses on error-bounded modes, with fixed-rate modes left for future work.
  • Future Work:
    • Extend LCFI to support OpenMP and GPU-accelerated programs (e.g., with LLFI-GPU).
  • Further investigate the root causes of crashes observed in applications like Black-Scholes.
  • Explore the impact of lossy compression errors on a wider range of HPC applications and variables.
  • Incorporate support for fixed-rate compression fault injection.

Summary updated

BibTeX
@inproceedings{shan2020lcfi,
  author = {Baodi Shan and Aabid Shamji and Jiannan Tian and Guanpeng Li and Dingwen Tao},
  title = {{LCFI: A Fault Injection Tool for Studying Lossy Compression Error Propagation in HPC Programs}},
  booktitle = {IEEE BigData},
  year = {2020},
  doi = {10.1109/bigdata50022.2020.9378104},
}

Loading related content...

Figure