Compress the State, Derive the Rest
Storing eight independent coordinate streams used 25% fewer bytes at matched accuracy. With SZ3, 0.75 MiB matched ZFP’s 2 MiB accuracy and passed all 128 physics audits.
Simulations of how crystals grow can produce so much data that storing whole batches of runs becomes expensive. When we compressed each measurement separately, none of the 128 runs passed our physics checks at the tested size limit, even when the numerical errors looked small. We saved eight streams of key measurements and used the simulator’s equations to reconstruct the rest. At the same size limit all 128 runs passed, and at the same accuracy the new format used 25% less space with the same compression software.
A reduced-order crystallization simulator writes 46 MiB of FP32 fields per trajectory. Many of its 23 fields depend on a smaller physical state and the process conditions, including phase fraction, crystal mass, dissolved solute, supersaturation, and the heat totals. We store only that state and rebuild the dependent fields at decode time. To measure the compressor and representation effects separately, we ran ZFP and SZ3 on both the original 23 fields and the eight stored coordinates.
- 128/128 trajectories passed the physics audit at the 2 MiB cap with either coordinate codec. The corresponding 23-field codecs passed 0/128.
- 25% fewer bytes at matched accuracy with the same compressor.
- 0.75 MiB to match ZFP’s 2 MiB accuracy with SZ3 on the coordinates, with all audits passing.
- 0.41 s to decode and rebuild a trajectory with SZ3 on one CPU thread.
Store the independent state
Each record stores the process conditions, 16 mean liquid temperatures, and eight compressed streams. These streams contain temperature deviations, crystallization heat, jacket-heat deviations, and five coordinates for the crystal-size moments. Nonnegative changes in log-moment slopes enforce the moment inequalities.
The decoder derives phase fraction and crystal mass from the third moment, dissolved solute from the initial total mass, and saturation and the kinetic rates from the decoded state. At each saved interval, sensible heat minus crystallization heat sets the required jacket-heat total. The decoded deviations distribute that total across the liquid. The decoder enforces these identities without storing the dependent fields.

Two effects measured separately
| Setup | Median size | p95 mean-field error (95% CI) | p95 worst-field error (95% CI) | Physics audit |
|---|---|---|---|---|
| ZFP, 23 fields | 1.998 MiB | 1.82% (1.76–1.91%) | 2.62% (2.50–2.79%) | 0/128 |
| SZ3, 23 fields | 1.998 MiB | 0.076% (0.068–0.087%) | 0.13% (0.11–0.15%) | 0/128 |
| ZFP, 8 coordinates | 1.990 MiB | 0.11% (0.099–0.12%) | 0.66% (0.55–0.71%) | 128/128 |
| SZ3, 8 coordinates | 1.975 MiB | 0.0034% (0.0026–0.0042%) | 0.019% (0.015–0.024%) | 128/128 |
Each field’s RMSE is divided by the largest of its reference standard deviation, 1% of its median training standard deviation, and a small floor. On the original 23 fields, SZ3’s error was about 20–24 times lower than ZFP’s. With either compressor, the coordinate representation passed the physical checks by rebuilding dependent fields from the identities.
Jacket heat was the worst field on 71 of 128 trajectories in the ZFP coordinate result. Its 0.66% worst-field p95 falls between a trajectory limited by crystallization heat (0.63%) and one limited by jacket heat (0.67%).
How much space buys the same accuracy?

| Backend | 23-field size | 8-coordinate size at first match | Size ratio | Physics audit |
|---|---|---|---|---|
| ZFP | 1.998 MiB | 1.492 MiB | 1.34× | 127/128 |
| SZ3 | 1.998 MiB | 1.491 MiB | 1.34× | 128/128 |
With the compressor held fixed, eight coordinates reached the same accuracy in 25% fewer bytes. Relative to ZFP on 23 fields at the 2 MiB cap, SZ3 on eight coordinates first matched at a median 0.497 MiB, with 127 of 128 audits passing. At 0.746 MiB, all 128 audits passed and the record was 2.7× smaller. Most of that size reduction came from switching compressors. SZ3 on the 23 fields also met the ZFP accuracy targets at about 0.75 MiB. At the 2 MiB cap, the independent 23-field SZ3 records failed the physics audit.
At the tightest caps, ZFP on the coordinates can have higher field error than ZFP on all 23 fields, because rebuilding dependent fields propagates errors in the stored coordinates.
What encoding and decoding cost
| Setup, 2 MiB cap | Encode with rate search | Encode, tolerances known | Decode to 23 fields |
|---|---|---|---|
| ZFP, 23 fields | 8.28 s (7.56–8.68) | 0.135 s (0.125–0.138) | 0.119 s (0.104–0.123) |
| SZ3, 23 fields | 8.02 s (7.81–8.27) | 0.231 s (0.219–0.241) | 0.111 s (0.106–0.126) |
| ZFP, 8 coordinates | 3.61 s (3.26–3.84) | 0.159 s (0.135–0.167) | 0.419 s (0.343–0.440) |
| SZ3, 8 coordinates | 2.97 s (2.85–3.07) | 0.211 s (0.198–0.220) | 0.413 s (0.380–0.427) |
Rate search runs faster when it covers eight streams. Rebuilding the dependent fields raises decode time from about 0.1 s to 0.4 s.
Why derive rather than project?
An earlier full-field projector changed all 128 exact simulator outputs while passing the audit, introducing a 1.12% p95 worst-field error before compression. The coordinate codec applies the identities during reconstruction, avoiding the error introduced by projecting all 23 decoded fields.
At the 2 MiB cap, SZ3 on 23 fields had a p95 worst-field error of 0.13%. The same setup had a p95 energy-closure residual of 51.5% against a 0.03% limit. The audit uses the worst saved interval per trajectory.
How we measured
- Data. We tested 64 standard and 64 shifted-condition trajectories from the reduced-order simulator, each with 16 frames and 23 fields on a 32³ grid. We regenerated the original FP32 targets and checked every input hash. Each compressor encoded a four-dimensional stream per field or coordinate.
- Compressors. ZFP 1.0.1 and SZ3 3.4.0 (pysz 1.1.0) used absolute tolerances from the same power-of-two ladder, scaled for each stream. SZ3 used its interpolation/Lorenzo selection with OpenMP disabled. The allocator reduced the largest normalized stream error and used spare bytes for further reductions. We checked every stream’s worst absolute error against its requested tolerance before reconstruction.
- Learned predictor. In an earlier 2 MiB ZFP ablation, a frozen process-conditioned predictor improved both error scores over direct coordinate coding on 18 of 128 trajectories. The size sweep uses direct coordinate coding and requires no shared model weights.
- Scope. The benchmark covers this reduced-order simulator, its named physical checks, and a 32³ grid. The method requires the simulator equations linking the fields.
- Related work. SZ3 introduced modular prediction-based error-bounded compression. Earlier work has also preserved derived quantities during compression.
How far did the 23-field codecs miss the audit limits?
We reran the 2 MiB configurations on CPU and verified input hashes, serialized sizes, and per-field RMSE against the original benchmark.
| Audit residual | Limit | ZFP, 23 fields | SZ3, 23 fields | SZ3, 8 coordinates |
|---|---|---|---|---|
| Energy closure | 0.03% | 100% · 3,333× 128/128 above limit | 51.5% · 1,718× 128/128 above limit | 2.48 × 10⁻⁶% · 8.3 × 10⁻⁵× 0/128 above limit |
| Local total solute drift | 0.0002% | 1.9% · 9,518× 105/128 above limit | 0.177% · 884× 125/128 above limit | 1.14 × 10⁻⁵% · 0.06× 0/128 above limit |
| Phase fraction from third moment | 0.0002% | 12.5% · 62,413× 128/128 above limit | 0.105% · 527× 128/128 above limit | 1.09 × 10⁻⁵% · 0.05× 0/128 above limit |
| Crystal mass from phase fraction | 0.0002% | 14% · 69,823× 128/128 above limit | 0.109% · 546× 128/128 above limit | 1.04 × 10⁻⁵% · 0.05× 0/128 above limit |
| Supersaturation identity | 2 × 10⁻⁵ | 0.236 · 11,802× 128/128 above limit | 0.00245 · 123× 128/128 above limit | 1.5 × 10⁻⁷ · 0.0074× 0/128 above limit |
| Moment inequality violation | 0.002% | 200% · 100,000× 128/128 above limit | 200% · 100,000× 128/128 above limit | 0% · 0× 0/128 above limit |
| Velocity in solid cells | 10⁻⁷ m/s | 0.0345 m/s · 345,169× 128/128 above limit | 0.00024 m/s · 2,441× 128/128 above limit | 0 m/s · 0× 0/128 above limit |
Energy closure divides the interval heat-balance gap by the larger magnitude of sensible heat change or integrated heat sources, with a 1 J floor. Mass drift is local and scaled by peak initial total solute concentration. The phase identities use the peak magnitude of the reconstructed field. Supersaturation uses absolute error. The moment-inequality residual can exceed 100% when compared products have opposite signs.
The p95 of the largest absolute interval heat gap was 27.4 MJ for 23-field ZFP, 1.23 MJ for 23-field SZ3, and 0.0717 J for SZ3 on eight coordinates. The 1 J floor was inactive in every interval selected for the relative-energy statistic.