Binsparse: A Specification for Cross-Platform Storage of Sparse Matrices and Tensors

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Brock, Benjamin, Ahrens, Willow, Abbasi, Hameer, Davis, Timothy A., Kim, Juni, Kitchen, James, Patty, Spencer, Virshup, Isaac, Welch, Erik
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909658686423040
author Brock, Benjamin
Ahrens, Willow
Abbasi, Hameer
Davis, Timothy A.
Kim, Juni
Kitchen, James
Patty, Spencer
Virshup, Isaac
Welch, Erik
author_facet Brock, Benjamin
Ahrens, Willow
Abbasi, Hameer
Davis, Timothy A.
Kim, Juni
Kitchen, James
Patty, Spencer
Virshup, Isaac
Welch, Erik
contents Sparse matrices and tensors are ubiquitous throughout multiple subfields of computing. The widespread usage of sparse data has inspired many in-memory and on-disk storage formats, but the only widely adopted storage specifications are the Matrix Market and FROSTT file formats, which both use ASCII text. Due to the inefficiency of text storage, these files typically have larger file sizes and longer parsing times than binary storage formats, which directly store an in-memory representation to disk. This can be a major bottleneck; since sparse computation is often bandwidth-bound, the cost of loading or storing a matrix to disk often exceeds the cost of performing a sparse computation. While it is common practice for practitioners to develop their own, custom, non-portable binary formats for high-performance sparse matrix storage, there is currently no cross-platform binary sparse matrix storage format. We present Binsparse, a cross-platform binary sparse matrix and tensor format specification. Binsparse is a modular, embeddable format, consisting of a JSON descriptor, which describes the matrix or tensor dimensions, type, and format, and a series of binary arrays, which can be stored in all modern binary containers, such as HDF5, Zarr, or NPZ. We provide several reference implementations of Binsparse spanning 5 languages, 5 frameworks, and 4 binary containers. We evaluate our Binsparse format on every matrix in the SuiteSparse Matrix Collection and a selection of tensors from the FROSTT collection. The Binsparse HDF5 CSR format shows file size reductions of 2.4x on average without compression and 7.5x with compression. We evaluate our parser's read/write performance against a state-of-the-art Matrix Market parser, demonstrating warm cache mean read speedups of 26.5x without compression and 2.6x with compression, and write speedups of 31x without compression and 1.4x with compression.
format Preprint
id arxiv_https___arxiv_org_abs_2506_19175
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Binsparse: A Specification for Cross-Platform Storage of Sparse Matrices and Tensors
Brock, Benjamin
Ahrens, Willow
Abbasi, Hameer
Davis, Timothy A.
Kim, Juni
Kitchen, James
Patty, Spencer
Virshup, Isaac
Welch, Erik
Mathematical Software
Distributed, Parallel, and Cluster Computing
Data Structures and Algorithms
Sparse matrices and tensors are ubiquitous throughout multiple subfields of computing. The widespread usage of sparse data has inspired many in-memory and on-disk storage formats, but the only widely adopted storage specifications are the Matrix Market and FROSTT file formats, which both use ASCII text. Due to the inefficiency of text storage, these files typically have larger file sizes and longer parsing times than binary storage formats, which directly store an in-memory representation to disk. This can be a major bottleneck; since sparse computation is often bandwidth-bound, the cost of loading or storing a matrix to disk often exceeds the cost of performing a sparse computation. While it is common practice for practitioners to develop their own, custom, non-portable binary formats for high-performance sparse matrix storage, there is currently no cross-platform binary sparse matrix storage format. We present Binsparse, a cross-platform binary sparse matrix and tensor format specification. Binsparse is a modular, embeddable format, consisting of a JSON descriptor, which describes the matrix or tensor dimensions, type, and format, and a series of binary arrays, which can be stored in all modern binary containers, such as HDF5, Zarr, or NPZ. We provide several reference implementations of Binsparse spanning 5 languages, 5 frameworks, and 4 binary containers. We evaluate our Binsparse format on every matrix in the SuiteSparse Matrix Collection and a selection of tensors from the FROSTT collection. The Binsparse HDF5 CSR format shows file size reductions of 2.4x on average without compression and 7.5x with compression. We evaluate our parser's read/write performance against a state-of-the-art Matrix Market parser, demonstrating warm cache mean read speedups of 26.5x without compression and 2.6x with compression, and write speedups of 31x without compression and 1.4x with compression.
title Binsparse: A Specification for Cross-Platform Storage of Sparse Matrices and Tensors
topic Mathematical Software
Distributed, Parallel, and Cluster Computing
Data Structures and Algorithms
url https://arxiv.org/abs/2506.19175