Skip to main content
QUICK REVIEW

[Paper Review] Baler -- Machine Learning Based Compression of Scientific Data

Fritjof Bengtsson, C. Doglioni|arXiv (Cornell University)|May 3, 2023
Computational Physics and Python ApplicationsComputer Science4 citations
TL;DR

Baler is a machine learning-based lossy data compression tool using autoencoders to achieve high compression ratios for scientific datasets while preserving critical data fidelity. It demonstrates superior performance over traditional methods like Zip, achieving up to 20× compression on High Energy Physics data with minimal reconstruction error, and provides a modular framework for cross-disciplinary scientific data compression with controlled loss.

ABSTRACT

Storing and sharing increasingly large datasets is a challenge across scientific research and industry. In this paper, we document the development and applications of Baler - a Machine Learning based data compression tool for use across scientific disciplines and industry. Here, we present Baler's performance for the compression of High Energy Physics (HEP) data, as well as its application to Computational Fluid Dynamics (CFD) toy data as a proof-of-principle. We also present suggestions for cross-disciplinary guidelines to enable feasibility studies for machine learning based compression for scientific data.

Motivation & Objective

  • To address the growing challenge of storing and sharing increasingly large scientific datasets across disciplines.
  • To develop a flexible, modular, and open-source tool for lossy data compression tailored to scientific data using machine learning.
  • To enable high compression ratios with controlled, quantifiable data loss suitable for scientific analysis.
  • To provide a proof-of-principle application in High Energy Physics (HEP) and Computational Fluid Dynamics (CFD) datasets.
  • To establish cross-disciplinary guidelines for feasibility studies of ML-based compression in scientific workflows.

Proposed method

  • Baler employs a deep autoencoder architecture with three fully connected layers in both encoder and decoder, using a bottleneck latent space for compression.
  • The model is trained using a hybrid loss function: $ L_{total} = (1 - \beta)L_{reco} + \beta L_{sparse} $, balancing reconstruction accuracy and sparsity.
  • The latent space representation serves as the compressed data, while the decoder reconstructs the original input during decompression.
  • The framework supports offline compression, with training and compression performed on the same dataset, paving the way for future online deployment.
  • Performance is evaluated using metrics like mean absolute error (MAE), mean squared error (MSE), and signal-to-noise ratio (SNR), with statistical uncertainty reported.
  • The tool is implemented in an open-source repository (https://github.com/baler-ml/baler), enabling customization and reuse across scientific domains.
Figure 2 : Distributions of the variables making up the 4-momentum of the jets. Alongside each distribution is a histogram of the response for that variable after compression with $R=1.7$ .
Figure 2 : Distributions of the variables making up the 4-momentum of the jets. Alongside each distribution is a histogram of the response for that variable after compression with $R=1.7$ .

Experimental results

Research questions

  • RQ1Can a machine learning-based autoencoder achieve high compression ratios on scientific datasets while maintaining data fidelity suitable for downstream analysis?
  • RQ2How does Baler's compression performance compare to traditional lossless compression (e.g., Zip) in terms of file size and reconstruction quality?
  • RQ3What is the impact of varying the latent space dimensionality and hyperparameter $\beta$ on compression efficiency and reconstruction error?
  • RQ4Can Baler be effectively applied to diverse scientific data types, such as HEP and CFD simulations, with minimal reconfiguration?
  • RQ5What cross-disciplinary guidelines can be established to support feasibility studies for ML-based compression in scientific data pipelines?

Key findings

  • Baler achieved a maximum compression ratio of 20× on High Energy Physics data with a mean absolute error (MAE) of $ 1.14 \times 10^{00} \pm 3.21 \times 10^{-01} $ for the mNeutralHadronMultiplicity feature.
  • For the mNeutralEmEnergy feature, Baler achieved a compression ratio of 2.0 with an MAE of $ 1.76 \times 10^{01} \pm 1.44 \times 10^{00} $, demonstrating high fidelity even at moderate compression.
  • Compared to Zip, Baler reduced file sizes significantly more—e.g., at a compression ratio of 2.0, Baler output was consistently smaller than zipped input across all tested file sizes (250–1500 MB).
  • The model showed robust performance across multiple HEP features, with MAE values ranging from $ 4.37 \times 10^{-03} \pm 1.44 \times 10^{-02} $ (mPhotonMultiplicity) to $ 1.52 \times 10^{00} \pm 2.06 \times 10^{-01} $ (mChargedEmEnergy).
  • The framework demonstrated feasibility for CFD toy data as a proof-of-principle, indicating broad applicability beyond HEP.
  • The study establishes a foundation for cross-disciplinary guidelines, emphasizing controlled loss and compatibility with experimental noise levels in scientific workflows.
Figure 3 : Distributions of the variables making up the 4-momentum of the jets. Alongside each distribution is a histogram of the response for that variable after compression with $R=6$ .
Figure 3 : Distributions of the variables making up the 4-momentum of the jets. Alongside each distribution is a histogram of the response for that variable after compression with $R=6$ .

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.