Skip to main content
QUICK REVIEW

[Paper Review] Next generation input-output data format for HEP using Google's protocol buffers

S. Chekanov|arXiv (Cornell University)|Jun 27, 2013
Distributed and Parallel Computing SystemsComputer Science2 references7 citations
TL;DR

This paper proposes ProMC, a next-generation input-output format for high-energy physics (HEP) that uses Google's Protocol Buffers and variable-size integer (varint) encoding to achieve content-dependent data compression. By storing low-energetic 'pileup' particles with reduced precision and fewer bytes, ProMC reduces file sizes by up to 30% compared to ROOT, while enabling self-description, random access, and multi-language support in C++, Java, and Python.

ABSTRACT

We propose a data format for Monte Carlo (MC) events, or any structural data, including experimental data, in a compact binary form using variable-size integer encoding as implemented in the Google's Protocol Buffers package. This approach is implemented in the so-called ProMC library which produces smaller file sizes for MC records compared to the existing input-output libraries used in high-energy physics (HEP). Other important features are a separation of abstract data layouts from concrete programming implementations, self-description and random access. Data stored in ProMC files can be written, read and manipulated in a number of programming languages, such C++, Java and Python.

Motivation & Objective

  • To address the inefficiency of current HEP I/O formats in storing large volumes of low-precision 'pileup' particles with the same precision as high-significance signal particles.
  • To reduce the storage and I/O overhead of petabyte-scale LHC data by enabling content-dependent compression based on particle energy and importance.
  • To provide a self-describing, portable, and random-accessible data format that supports multiple programming languages and platforms, including non-traditional HEP environments like Windows and Android.
  • To enable efficient data exchange, preservation, and analysis by decoupling data layout from implementation and supporting metadata-driven event selection.
  • To develop a lightweight, deployable I/O library that can be used across diverse architectures, including supercomputers like IBM Blue Gene/Q.

Proposed method

  • Utilizes Google's Protocol Buffers to define a compact, self-describing binary format for HEP event data, enabling efficient serialization and deserialization.
  • Employs varint encoding to represent integers (e.g., particle IDs, status codes, momenta) using variable-length byte sequences, reducing storage for small values.
  • Applies energy-dependent scaling to convert floating-point four-momenta into 64-bit integers, allowing reduced precision for low-energy particles without significant loss of information.
  • Integrates metadata into the file format to support random access, enabling direct retrieval of specific events without reading the entire file.
  • Supports code generation for C++, Java, and Python from the same schema, ensuring type safety and platform independence.
  • Provides tools for conversion from standard formats (HEPMC, STDHEP) to ProMC, and utilities for inspection, extraction, and visualization of ProMC data.

Experimental results

Research questions

  • RQ1Can a content-dependent compression strategy that reduces precision for low-energy particles significantly reduce file sizes in HEP Monte Carlo data?
  • RQ2How effective is varint-based integer encoding in reducing storage overhead for typical HEP event records compared to fixed-size formats like ROOT's Double32_t?
  • RQ3To what extent can a self-describing, portable, and random-accessible binary format improve data exchange and analysis portability across platforms in HEP?
  • RQ4Can a lightweight, multi-language I/O library like ProMC enable efficient data processing on non-traditional HEP platforms such as Windows or Android?
  • RQ5What is the performance and scalability of ProMC when used in large-scale HEP workflows, including fast simulation and analysis pipelines?

Key findings

  • ProMC reduces file sizes by up to 30% compared to ROOT's Double32_t format, with a 27% reduction observed in benchmark tests.
  • For events with high pileup (e.g., 50–140 background events per signal), ProMC achieves nearly a factor-of-two reduction in file size compared to ROOT, due to efficient varint encoding of low-energy particles.
  • The ProMC format achieves a 33% reduction in file size compared to uncompressed ASCII HEPMC files, and a 19% reduction compared to gzip-compressed HEPMC files.
  • The use of variable-size integers allows small values (e.g., particle IDs, status codes) to be stored in just 1–2 bytes, significantly reducing overhead for common data fields.
  • The ProMC library supports random access to individual events via network streaming, enabling fast retrieval of specific events without downloading entire files.
  • The format enables code generation in C++, Java, and Python from a single schema, facilitating cross-platform analysis and reducing development overhead.

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.