Atompack: A Storage and Distribution Layer for Read-Heavy Atomistic ML Training Datasets

Ali Ramlaoui, Daniel T. Speckhard, Sagar Pal, Fragkiskos D. Malliaros, Alexandre Duval, Victor SchmidtarXiv 2026

TL;DR

Atompack is a novel open-source storage format and distribution layer designed specifically for the read-heavy, shuffled workloads of atomistic machine learning (ML) training. By storing complete molecular records alongside a committed trailing index, it eliminates the I/O bottlenecks of traditional array stores and object databases, delivering up to a 96x speedup in shuffled reads compared to standard baselines while maintaining a highly compact file size.

What Problem Does This Paper Address?

Training modern foundation models for materials science and chemistry requires massive datasets containing millions to hundreds of millions of molecular and crystal structures. During training, deep learning pipelines consume these datasets in a very specific way: they require all physical fields (atomic positions, elements, energies, forces) for a given molecule simultaneously, and they sample these molecules in a completely randomized (shuffled) order across epochs.

Existing data storage solutions force a painful trade-off:

  • Array stores (e.g., HDF5, Zarr) excel at contiguous column scans but suffer severe performance degradation during random sampling because a single shuffled minibatch forces the system to touch many scattered data chunks.
  • Object-oriented databases (e.g., ASE) provide excellent tools for data curation but incur heavy CPU overhead due to repeated row lookups and Python object serialization/deserialization during training.

Atompack addresses this gap by aligning the physical storage layout directly with the stochastic minibatch access pattern of ML training pipelines.

Field-wise chunks vs. Atompack records layout

Methods

Atompack introduces the .atp file format, which optimizes data handling by separating dataset construction from read-only training access:

  • Molecule-Granularity Records: Instead of splitting data column-wise, all properties for a single molecule or crystal structure are stored together as a self-contained, typed record payload.
  • Append-Oriented Construction: During dataset creation, records are written sequentially to an append-only region. Once finalized, an immutable trailing index is committed, mapping each unique molecule ID to its exact byte offset and size.
  • Memory-Mapped Reads: During training, worker processes use memory-mapping (mmap) to perform $O(1)$ direct lookups from the index. This avoids global metadata rescans and eliminates language-level object reconstruction overhead.
  • Lightweight Schema: The format enforces a domain-specific but model-agnostic schema for core physical properties (atomic numbers, coordinates, forces, cell boundaries) while supporting custom extension fields.
The .atp file layout and operational modes

Datasets

The authors validate Atompack using workloads inspired by prominent public atomistic datasets, including:

  • Open Catalyst 2020 (OC20)
  • OMat24
  • MPtrj
  • OMol25

For controlled performance isolation, the evaluation utilizes synthetic datasets containing fixed-size molecular structures with 12, 64, and 256 atoms per molecule, scaling up to $10^6$ total records.

Key Insights and Ideas

  • The Shuffling Penalty is Real: In chunked array stores, random sampling destroys data locality. When batch sizes are small relative to the total number of chunks, almost every sample lands in a different chunk, causing massive I/O amplification. Storing complete records ensures that one index lookup equals exactly one I/O operation.
  • Object Materialization is a Hidden Bottleneck: Standard scientific databases spend significant CPU cycles turning raw bytes into complex Python objects (like ASE's AtomsRow). Atompack bypasses this by serving raw, indexed tensor payloads directly to the ML dataloader.
  • Distribution-Friendly Design: By treating local files, shard directories, and remote repository paths uniformly, Atompack allows large-scale datasets to be distributed easily via platforms like Hugging Face without requiring downstream users to reconstruct complex database schemas.

Key Results

  • Shuffled Read Speedups: On a representative 64-atom workload, Atompack achieves a throughput of 445,830 molecules/s on shuffled reads. This is 24x faster than HDF5 and 96x faster than ASE LMDB.
Read throughput comparison across different storage backends
  • Storage Footprint Reduction: Atompack produces artifacts that are 79% smaller than ASE LMDB and over 2x smaller than standard LMDB formats, coming within 4-5% of the compactness offered by raw, uncompressed HDF5.
Write throughput and artifact size comparison
  • Cross-Filesystem Consistency: High-performance computing (HPC) environments rely heavily on shared filesystems. Atompack maintains a 3.82x to 4.80x speedup over standard serialized key-value stores (LMDB Pickle) across local NVMe SSDs, NFS, GPFS, and Lustre filesystems.
Shuffled-read speedup across various filesystems

Limitations and Future Work

  • Strict Immutability: Because it relies on a fixed trailing index and append-only writes, Atompack does not support arbitrary in-place updates or deletions. Modifying a dataset requires rewriting it entirely.
  • No Query Engine: Atompack lacks a query language or transactional support, making it unsuitable for interactive data curation, filtering, or complex relational queries.
  • Downstream Bottlenecks: While Atompack optimizes storage I/O and field decoding, it does not address subsequent training bottlenecks such as on-the-fly graph construction or neighbor-list generation, which remain dependent on the specific ML framework used.

Summary updated

BibTeX
@misc{ramlaoui2026atompack,
  author = {Ali Ramlaoui and Daniel T. Speckhard and Sagar Pal and Fragkiskos D. Malliaros and Alexandre Duval and Victor Schmidt},
  title = {{Atompack: A Storage and Distribution Layer for Read-Heavy Atomistic ML Training Datasets}},
  year = {2026},
  eprint = {2606.29975},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.29975},
}
Figure