高吞吐量测量的推断充分表示:来自无损压缩基准测试的4D-STEM教训
Inference-Sufficient Representations for High-Throughput Measurement: Lessons from Lossless Compression Benchmarks in 4D-STEM
AI总结:
本文通过基准测试13种无损压缩算法,发现Blosc_zstd在压缩速度和效率上优于gzip-9,同时证明4D-STEM数据可压缩10倍以上,但无损压缩本身不能保证高吞吐工作流的可持续性。
摘要:
四维扫描透射电子显微镜(4D-STEM)生成多吉字节数据集,导致采集速率与实际存储、传输和交互可视化能力之间存在日益扩大的不匹配。我们系统地在5个代表性数据集(8MiB到8GiB,49.5-92.8%稀疏度)上基准测试了13种无损压缩实现,每个方法进行10次独立运行。HDF5提供内置的gzip压缩,其中gzip-9通常达到最高压缩比但速度较慢。因此,我们评估了广泛可用的替代方案(通过hdf5plugin),包括Blosc家族。作为代表性比较,blosc_zstd的压缩效果与gzip-9相当(平均压缩比13.5倍 vs 12.3倍),在压缩速度和读取速度上分别快19-69倍和1.9-2.6倍。压缩比是确定性的,时间测量高度可重复(CV < 2%)。压缩性能遵循稀疏度的幂律(R² = 0.99),从5倍(中等稀疏数据)到35倍(高度稀疏数据)。我们识别出六个针对不同应用场景优化的顶级实现,并证明4D-STEM数据可以常规压缩10倍以上。虽然这些结果为无损压缩选择提供了实用指导,但更广泛的结论是无损压缩保留了测量结果,但本身并不能保证高吞吐工作流的可持续性。随着探测器速率的提高,数据处理将越来越需要基于推断的表示——即决定必须保留什么以支持科学推断,而不是默认存储完整的原始测量数据。
英文摘要:
Four-dimensional scanning transmission electron microscopy (4D-STEM) generates multi-gigabyte datasets, creating a growing mismatch between acquisition rates and practical storage, transfer, and interactive visualization capabilities. We systematically benchmark 13 lossless compression implementations across 5 representative datasets (8~MiB to 8~GiB, 49.5--92.8\% sparsity), with 10 independent runs per method. HDF5 provides built-in gzip compression, of which gzip-9 typically achieves the highest compression ratio but is slow. We therefore evaluate widely available alternatives (via hdf5plugin), including the Blosc family. As a representative comparison, blosc\_zstd achieves compression comparable to gzip-9 (mean 13.5$\times$ vs 12.3$\times$) while compressing 19--69$\times$ faster and reading 1.9--2.6$\times$ faster across datasets. Compression ratios are deterministic, and timing measurements are highly reproducible (CV $<$2\%). Compression performance follows a power law with sparsity ($R^2 = 0.99$), ranging from 5$\times$ for moderately sparse data to 35$\times$ for highly sparse data. We identify six top-performing implementations optimized for different use cases and demonstrate that 4D-STEM data can be routinely compressed by $>$10$\times$. While these results provide practical guidance for lossless compression selection, the broader conclusion is that lossless compression preserves measurements but does not by itself guarantee sustainable high-throughput workflows. As detector rates rise, data handling will increasingly require inference-driven representations -- i.e., deciding what must be preserved to support a scientific inference, rather than defaulting to storing fully dense raw measurements.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。