Streaming Compressed 4D Volumes Directly into NVIDIA fVDB

An engineering evaluation on Polymathic AI’s The Well supernova dataset: compressing 2.23 GB of prepared FP32 physics trajectories to 38.0 MB in VQField BCS4, cutting cold-cache median GPU ingestion by 3.0x.

Date: 28 Nov 2026Dataset: supernova_explosion_64 (64³ × 6 ch)Host: RTX 5070 Ti · Ubuntu 24.04Stack: PyTorch 2.13 · fVDB 0.6.0 · BCS4
60.9×
Smaller corpus vs. HDF5 (38.03 MB vs. 2,315.26 MB; 58.6× vs. prepared FP32).
3.0×
Faster cold-cache median GPU load (5.72 ms vs. 17.14 ms raw FP32; 8.57× mean speedup vs. HDF5).
97.4%
GPU compute share during async training (+1.14% step time vs. pinned FP32).
+0.72%
3-seed unseen 1-step VRMSE delta at q50 (0.4324 vs. 0.4293 uncompressed FP32).

1. Why 4D datasets stall on lossless codecs

Sparsity solves empty-space overhead, but active 3D fields recorded across simulation timesteps still accumulate quickly. Six short 59-step trajectories from Polymathic AI’s supernova_explosion_64 benchmark require 2,227 MB in standardized FP32 (2,315 MB in official chunked HDF5). Scaling that to production benchmarks pushes working sets beyond workstation RAM and leaves dataloaders bound by cold storage bandwidth.

General-purpose lossless codecs struggle on continuous IEEE-754 floating-point mantissas in turbulent flows. On the exact same pre-standardized trajectories, byte-shuffled Blosc2/LZ4 achieves 1.16× compression vs. HDF5 and Zstd (level 3) reaches 1.12×. Even dropping precision to FP16 + Zstd leaves more than 1.0 GB on disk (2.27×).

Baseline parity note

To avoid comparing compressed reads against unoptimized HDF5 math, every baseline in this study (FP32, FP16, Blosc2/LZ4, Zstd, ZFP, SZ3) was pre-standardized with identical logarithmic scalar scaling, z-score normalization, and destination ordering ahead of timing.

2. Streaming VQField directly into NVIDIA fVDB

A common obstacle for compressed dataloaders in GPU spatial frameworks is layout mismatch: if a decoder reconstructs blocks in host order while the GPU grid engine indexes volumes in a hierarchical tree layout, every training step pays an extra coordinate lookup and scatter kernel.

Our C++/Python adaptor eliminates that redundant pass:

  • Indexed random access: VQField stores 4D sequences in BCS4 archives supporting bounded temporal windows and spatial region-of-interest (ROI) queries without unpacking an entire simulation sequence.
  • Direct destination layout: Lightweight leaf descriptors are ordered on CPU to match NVIDIA fVDB’s NanoVDB layout prior to multi-threaded CPU reconstruction, writing decoded voxel arrays straight into fVDB’s expected order with zero GPU value permutation.
  • Compact topology upload: Instead of uploading full 3D integer coordinates for every voxel over PCIe, the bridge uploads compact block origins and occupancy masks and expands active coordinates on the GPU alongside reconstructed float features.

3. Storage residency and cold vs. warm ingestion

Using BCS4 at quality q50 shrinks the six-trajectory corpus from 2,227.18 MB (FP32) to 46.60 MB (49.69× smaller than HDF5, 53.45 dB PSNR). Because VQField assigns quality profiles per physical grid inside the same container, a Mixed (q50/q25) profile keeping density, pressure, and temperature at q50 while lowering velocity to q25 trims the archive further to 38.03 MB (60.88× vs. HDF5, 58.6× vs. prepared FP32), saving 98.3% of stored corpus bytes.

Figure 1: Baselines, I/O Latency & Step Attribution (RTX 5070 Ti, WSL2). (A) Total 6-trajectory training footprint and reconstruction PSNR. (B) End-to-end single-frame load into a GPU fvdb.Grid across 24 strided requests after Linux page-cache eviction vs. warm OS cache. (C) Per-step timing breakdown at batch size 4.
Format (64³ × 6 ch, 6 Traj)Size (MB)vs. HDF5PSNRCold Mean / MedWarm Mean
Original Well HDF52,315.261.00×Lossless82.10 / 23.47 ms6.35 ms
Prepared FP32 (NanoVDB order)2,227.181.04×Lossless17.71 / 17.14 ms2.59 ms
Prepared FP16 (NanoVDB order)1,113.592.08×110.69 dB13.47 / 10.08 ms1.98 ms
Prepared FP32 + Blosc2/LZ41,993.581.16×Lossless17.46 / 16.72 ms3.15 ms
Prepared FP32 + Zstd (L3)2,060.131.12×Lossless20.43 / 19.95 ms5.87 ms
Prepared FP16 + Zstd (L3)1,019.862.27×110.69 dB11.94 / 11.61 ms3.93 ms
VQField BCS4 q50 (Full 64³)46.6049.69×53.45 dB12.11 / 8.57 ms5.65 ms
VQField BCS4 Mixed (q50/q25, Full)38.0360.88×47.17 dB9.58 / 5.72 ms5.25 ms
VQField BCS4 q25 (Full 64³)7.85294.97×44.80 dB5.30 / 4.81 ms4.40 ms
VQField BCS4 Mixed (32³ ROI)*n/an/an/a7.28 / 4.18 ms3.87 ms

Timing 24 strided random-access requests reveals an important systems split: when all 2.2 GB fit warm inside the Linux OS page cache, raw Pre-std FP32 (2.59 ms) and FP16 (1.98 ms) are fastest because reading RAM needs no decoding. Once Linux caches are evicted (drop_caches), however, raw FP32 climbs to 17.71 ms mean (17.14 ms median), whereas BCS4 Mixed loads in 9.58 ms mean (5.72 ms median): 1.85× faster mean and 3.0× faster median than prepared FP32, and 8.57× faster than HDF5.

*Scope note: The 32³ ROI row transfers one-eighth of the spatial domain and is shown to illustrate partial-volume reads rather than a full-frame speed comparison. WSL2 may also retain host-side Windows caches across guest drop_caches calls.

4. Hiding CPU decode behind GPU compute

A frequent concern with CPU-side codecs is starving the GPU during training. Profiling fvdb.nn.SimpleUNet (FP32, batch size 4) with wall-clock and CUDA events shows that decoding eight BCS4 Mixed frames takes 12.17 ms on CPU, PCIe transfer takes 4.75 ms (1.65 ms with pinned staging), and GPU grid construction takes 8.37 ms. Meanwhile, the GPU 3D U-Net forward, backward, and optimizer update takes roughly 539 ms.

With a single background prefetch thread overlapping host I/O and CPU reconstruction behind GPU work, end-to-end asynchronous step time is 553.32 ms vs. 547.11 ms for pinned uncompressed FP32 (+1.14%), keeping the GPU compute share at 97.4%. On heavier 3D backbones host decode cost is effectively hidden; substantially lighter models or sparser active grids with shorter GPU step times may expose CPU decode latency.

5. Converged accuracy and 20-step rollouts

To test downstream ML impact cleanly, we trained identical fVDB SimpleUNet models for 8 epochs across three random seeds (101, 202, 303) on each representation and evaluated strictly against uncompressed official test trajectories using The Well’s Variance-Normalized RMSE (VRMSE; lower is better).

  • Pre-std FP32 (1×, 3 seeds): 0.4293 ± 0.0027 1-step VRMSE (FP16 1-seed: 0.4293).
  • VQField BCS4 q50 (49.7×, 3 seeds): 0.4324 ± 0.0013 (+0.72% relative delta), with per-channel errors tracking FP32 closely across density, pressure, temperature, and velocity.
  • VQField BCS4 Mixed q50/q25 (60.9×, 3 seeds): 0.4378 ± 0.0033 (+1.98% relative delta), capturing extra savings by compressing smoother velocities more aggressively than shock interfaces.
Figure 2: Multi-Seed Convergence & 20-Step Rollouts (Uncompressed Test Targets). Shaded regions and error bars indicate ±1σ across seeds 101, 202, 303.

Across 20-step recursive rollouts from four starting steps on the two unseen test trajectories (24 rollouts per multi-seed condition), mean rollout VRMSE at horizon 20 measured 2.039 ± 0.559 for FP32, 1.908 ± 0.480 for BCS4 q50, and 1.808 ± 0.220 for BCS4 Mixed. While this limited sample does not claim a statistically significant stability gain, it confirms that training on 50×–61× compressed data did not cause multi-step divergence on this workload.

Figure 3: Unseen Blastwave Forecast (t = 20 → 21, z = 36). Predictions from converged models trained on BCS4 q50 (49.7×) and Mixed (60.9×) remain visually aligned with uncompressed FP32 across shock shells and velocity structure.

6. Head-to-head against ZFP and SZ3

Generic compressors like Zstd are not built for floating-point fields, so we also benchmarked against two widely used scientific lossy compressors, ZFP (zfpy 1.0.1) and SZ3 (pysz 1.1.0), across both independent 3D frames (64³ per channel) and 4D GOP-8 chunks (8×64³) matching VQField’s eight-frame temporal grouping.

Figure 4: VQField BCS4 vs. ZFP & SZ3. (A) Rate-distortion frontier on supernova_explosion_64. (B) Warm end-to-end load into GPU fvdb.Grid separating decode vs. NanoVDB layout permutation overhead. (C) Cold NVMe vs. warm cache comparison.
Codec / ConfigurationSize (MB)vs. HDF5PSNR (dB)Enc (MB/s)Cold Dec / E2EWarm Dec / E2E
VQField BCS4 q5046.6049.69×53.45640.68.14 / 12.11 ms3.04 / 5.65 ms
VQField BCS4 Mixed (q50/q25)38.0360.88×47.17914.86.24 / 9.58 ms2.77 / 5.25 ms
VQField BCS4 q257.85294.97×44.80968.03.08 / 5.30 ms2.05 / 4.40 ms
ZFP-3D (Iso-PSNR, tol=4.00)115.4620.05×54.21787.26.00 / 9.97 ms4.44 / 8.31 ms
ZFP-3D (Iso-Rate, tol=16.02)39.5058.62×46.341,171.93.66 / 7.53 ms2.77 / 6.58 ms
ZFP-3D Fixed-Rate (0.67 bpv)46.8149.46×43.24935.64.13 / 8.06 ms3.28 / 6.95 ms
ZFP-4D GOP8 (tol=16.02)75.8930.51×53.25751.841.34 / 45.62 ms38.89 / 43.26 ms
ZFP-4D GOP8 (tol=64.08)18.58124.60×45.581,092.728.24 / 33.60 ms27.58 / 32.56 ms
SZ3-3D (tol=0.207)98.2923.56×56.70670.65.16 / 9.35 ms3.84 / 7.69 ms
SZ3-3D (Iso-Rate, tol=0.493)50.0546.26×50.34715.04.23 / 8.24 ms3.25 / 7.00 ms
SZ3-4D GOP8 (tol=0.214)90.0225.72×56.50340.351.79 / 56.01 ms48.20 / 52.67 ms
SZ3-4D GOP8 (Iso-Rate, tol=0.455)50.2846.04×50.85358.445.31 / 49.59 ms43.40 / 47.67 ms
SZ3-4D GOP8 (tol=0.705)33.4169.29×47.79367.942.65 / 46.77 ms40.86 / 45.34 ms

At matched ~46×–50× compression (46.6–50.3 MB), BCS4 q50 retains 53.45 dB PSNR, outperforming SZ3-3D (50.34 dB), SZ3-4D (50.85 dB), and fixed-rate ZFP-3D (43.24 dB). At matched ~53.5 dB quality, BCS4 q50 is 1.63×–2.48× smaller than ZFP and 1.93×–2.11× smaller than SZ3. Under warm OS cache, avoiding a separate NanoVDB permutation pass gives BCS4 faster end-to-end fVDB ingestion (4.40–5.65 ms vs. 6.58–8.31 ms for 3D ZFP/SZ3 and 32.6–52.7 ms for 4D modes).

Just as clearly, independent 3D ZFP and SZ3 frames beat BCS4 Mixed/q50 on cold single-frame seeks (7.53 ms and 8.24 ms E2E vs. 9.58 ms and 12.11 ms) because they carry no temporal dependency across frames, whereas 4D ZFP and SZ3 rise to 45.6–56.0 ms when decompressing full eight-frame blocks.

Want to benchmark your own 4D dataset?

Run local evaluations on your workstations or test a C/C++ or Python integration against our OpenVDB-free runtime with zero dataset upload required.