With the growing scale of scientific simulation and infrastructure, part of the burden has shifted from producing scientific data to analyzing and storing it. Compression is a key step to expanding storage capacity, but requires dedicated techniques to enforce user-specified pointwise error bounds that ensure the validity of downstream scientific workflows. To further push the limits of compression, novel learned codecs have been developed, in particular for images and videos, but these methods often optimize for aggregated distortion and fail to meet error bound standards. Moreover, these methods often target fixed field dimensionality, failing to account for many scientific data use cases, or at the expense of large adaptation or retraining costs. In this work, we introduce the Learned Axial TEnsor Compression (LATEC) method, an error-bounded codec with a dimension-agnostic learned predictor based on a GNN architecture. LATEC is pretrained on synthetic 2-D and 4-D fields, and evaluated with and without domain fine-tuning on 13 scientific fields in 3-D to 5-D. Results show that LATEC is consistently competitive with SZ3, achieving an 18.1% average improvement and greater consistency across all domains than other compressors. These results demonstrate that a shared learned predictor can serve as a single error-bounded codec across tensor dimensionalities, competitive with specialized compressors, while retaining pointwise error guarantees.
Figure 1: The end-to-end codec. After the anchors are encoded, each chunk covers one anchor cell and undergoes K levels of coarse-to-fine refinement. At every level, causally selected points are predicted by the gated GNN predictor, their residuals quantized under the prescribed error bound, and the resolution is increased to predict intermediate values. The resulting symbols are coded with rANS and framed with Zstandard.
Figure 2: Causal axial GNN at one prediction stage. Line embeddings are pooled into one embedding per axis (two are shown for the 2-D case), then into the head that predicts (μp,βp) , which gives (μ^p,β^p) after gating. The residual is quantized and entropy-coded, and the reconstructed value yields the embedding that updates the state E .
Figure 3: Chunking in 2-D.
Figure 4: Rate-quality results on three datasets from The Well. We compare PSNR and RME against BPP and the relative BPP difference with SZ3.
Method
Euler-Multi- Quadrants
Gray-Scott
Hurricane ISABEL
Miranda
S3D
Convective- Envelope
Gravity- Cooling
MHD-64
RT- Instability
Supernova- Explosion
GyroSwin
Gysela
Synthetic 5D
SZ3
0
0
0
0
0
0
0
0
0
0
0
0
0
ZFP
976.8
525.6
425.2
2148.0
4580.1
2366.1
4827.5
493.3
260.5
4369.6
928.4
2386.1
209.8
SPERR
26.0
-5.0
108.1
4.7
0.3
195.1
20.7
5.7
28.7
138.7
13.6
20.9
14.0
HPEZ
-4.4
2.9
24.6
-4.8
2.8
34.6
19.8
10.3
17.6
84.5
27.0
177.6
12.8
TTHRESH*
890.8
112.5
1293.2
89.6
-14.8
654.3
265.5
120.5
547.9
2912.9
38.1
-31.4
69.5
LATEC
13.1
-8.6
-16.5
-15.8
-25.7
-7.5
-18.5
-21.2
-38.1
-17.9
-27.4
-3.0
-48.6
Table 2: Average percentage BPP difference from SZ3 across matched relative maximum error (RME) targets for 3-D , 4-D , and 5-D datasets. Negative values are rate savings and lower is better. * marks estimated RME values because the compressor provides no bound, and “/” marks a dataset without fine-tuning data, hence without a fine-tuned checkpoint. Bold is best, underlined second-best.
Figure 5: Dataset-averaged rate difference from SZ3 by RME target.
Figure 6: Predictor selected by the gate on one 2-D slice of four fields at RME 10−4 .
Figure 7: Held-out BPP during fine-tuning on The Well, relative to the frozen pretrained model.
Figure 8: Ablation of LATEC components at RME 10−3 , one per bar. The off-scale S3D bar is clipped.
Figure 9: Throughput and peak memory growth (max of encoding and decoding) on 512 MiB synthetic fields at RME 10−4 ( Section E.4 ). Dashed: beyond the codec’s maximum dimension.
Appendix figures & tables22 assets
Supplementary material from the paper’s appendix.
Appendix
Figure A.1: The three sub-stages of one 2-D dyadic refinement. In 3-D there are five sub-stages: three for 1-D interpolation, one for 2-D, and one for 3-D.
Group
Realization
Formula or operation
Spectrum
Smooth
Two-scale anisotropic Gaussian filtering; see Equations 13 , 14 and 15 .
Turbulent
Radial power-law filtering followed by repeated smooth displacement; see Equations 13 , 16 and 17 .
Value warp
Identity
f(x)↦f(x) .
Signed power
f(x)↦sign(f(x))∣f(x)∣γ .
Two-phase
f(x)↦tanh(γf(x)) .
Jumps
None
f(x)↦f(x) .
Appendix
Table C.1: Possible synthetic-field constructions. Each realization combines one spectrum, one value warp, and one discontinuity choice. Here f(x) denotes the current field value at grid coordinate x . Parameter distributions are given in the accompanying text.
Figure C.1: Construction of a turbulent synthetic field in 2-D. A smooth random displacement u , shown by arrows over its magnitude, repeatedly advects the initial power-law field f(0) . Reusing the same displacement for three warps progressively bends the multiscale structure into coherent filaments.
Figure C.2: Examples of 128×128 2-D fields drawn from the synthetic training distribution. The realizations span smooth and multiscale correlation, anisotropy, turbulent filaments, and sharp hyperplane jumps.
Field
Points
RME 10−3
RME 10−4
Training time
Compression time
Gysela
134M
−7.2
−5.9
29 min
20 s
GyroSwin ( t=100 )
11M
−6.5
−5.9
15 min
1.6 s
MHD-64
17M
−1.8
−1.0
2.7 min
2.6 s
Appendix
Table C.2: Per-input training: change in total BPP (%; lower is better) after k=1000 steps on the input, relative to the pretrained checkpoint, with the weight delta included in the stream. Compression time excludes per-input training.
Method
Euler-Multi- Quadrants
Gray-Scott
Hurricane ISABEL
Miranda
S3D
Convective- Envelope
Gravity- Cooling
MHD-64
RT-Instability
Supernova- Explosion
GyroSwin
Gysela
Synthetic 5D
SZ3
0
0
0
0
0
0
0
0
0
0
0
0
0
LATEC (2D)
28.2
9.4
-6.1
-3.3
-8.7
41.4
-2.2
5.1
-13.4
-4.7
11.1
23.9
-11.4
LATEC (2D+3D)
16.9
-6.8
-10.9
-10.8
-13.0
-2.2
-11.4
-18.8
-36.3
-9.7
3.0
-9.9
-44.9
LATEC (2D+4D)
18.8
-4.7
-14.8
-11.4
-14.5
1.9
-3.4
-19.0
-35.9
-9.9
1.9
-3.2
-47.3
Appendix
Table C.3: Effect of synthetic pretraining dimensionality on the average relative BPP difference (%; lower is better) at the same relative maximum error (RME) target, relative to SZ3. The dimensions in parentheses specify the dimensions of the synthetic fields used for pretraining, not the dimensionality supported at inference. Negative values denote a BPP saving. Blue, green, and orange column backgrounds denote 3-D, 4-D, and 5-D evaluation datasets, respectively. See Section D.5 for the calculation. Bold indicates the best method on each dataset, and underlined indicates the second-best.
Dataset
Field
Shape
Size (MiB)
Gysela
density
64×64×64×64×64
4096
Convective-Envelope
density
64×256×128×256
2048
RT-Instability
density
64×128×128×128
512
S3D
0
500×500×500
477
Supernova-Explosion
density
32×128×128×128
256
Miranda
density
256×384×384
144
Appendix
Table D.1: The 13 fields used in the benchmark, sorted by size.
Metric
Method
Gray-Scott
Euler-Multi- Quadrants
Hurricane ISABEL
Miranda
S3D
Gravity- Cooling
MHD-64
Supernova- Explosion
RT- Instability
Convective- Envelope
GyroSwin
Synthetic 5D
Gysela
RME
CAESAR-D
835.2
524.2
689.2
697.0
2604.1
ERR
ERR
3250.1
748.8
6506.0
ERR
ERR
ERR
CAESAR-V
775.6
436.7
701.5
669.2
2150.7
ERR
ERR
2774.1
715.9
5016.1
ERR
ERR
ERR
PSNR
CAESAR-D
224.2
327.0
533.7
163.0
2591.6
ERR
ERR
251.6
499.7
196.0
ERR
ERR
ERR
CAESAR-V
239.6
262.2
494.4
148.4
1917.0
ERR
ERR
249.6
484.0
201.4
ERR
ERR
ERR
Appendix
Table D.2: CAESAR average relative BPP difference (%; lower is better) at matched quality, relative to SZ3. Negative values denote a BPP saving. Blue, green, and orange column backgrounds denote 3-D, 4-D, and 5-D datasets, respectively. Matched-RME results were interpolated because CAESAR does not provide an RME bound. ERR denotes a configuration that did not complete successfully. See Section D.5 for the calculation.
Method
Euler-Multi- Quadrants
Gray-Scott
Hurricane ISABEL
Miranda
S3D
Convective- Envelope
Gravity- Cooling
MHD-64
RT- Instability
Supernova- Explosion
GyroSwin
Gysela
Synthetic 5D
SZ3
0
0
0
0
0
0
0
0
0
0
0
0
0
ZFP
129.5
38.8
50.2
111.2
873.6
37.0
22.4
11.3
13.6
83.8
23.1
37.5
2.8
SPERR
-3.2
-33.3
113.8
-47.9
-53.7
73.4
4.4
-9.7
16.5
115.1
-8.4
-35.9
-1.8
HPEZ
-37.5
-4.2
19.6
-24.5
-27.7
36.6
3.2
1.4
10.8
72.4
7.7
23.1
4.2
TTHRESH
176.3
-20.3
399.6
-66.5
-66.3
-4.0
47.3
-11.4
139.1
43.4
-38.6
-91.9
-20.3
LATEC
16.7
-0.8
-13.5
-10.2
5.8
2.4
-8.8
-17.9
-33.5
-6.8
-13.1
4.7
-46.6
Appendix
Table E.1: Average percentage BPP difference from SZ3 across matched PSNR levels, so negative values are rate savings and lower is better; Section D.5 gives the calculation. Blue, green, and orange backgrounds mark 3-D, 4-D, and 5-D datasets. A slash marks a dataset without fine-tuning data, hence without a fine-tuned checkpoint. Bold is best, underlined second-best.
RME 10−3
RME 10−4
Field
LATEC BPP
Flat
Huffman
LATEC BPP
Flat
Huffman
Hurricane
0.320
+58.4
+291.0
0.777
+42.8
+117.1
Miranda
0.201
+25.0
+448.6
0.755
+8.0
+102.5
S3D
0.020
-3.3
+5046.0
0.111
-6.3
+848.9
MHD-64
4.281
+3.6
+4.4
7.571
+2.1
+3.2
RT-Instability
0.614
+55.2
+154.3
1.228
+45.2
+80.5
Appendix
Table E.2: Entropy-model ablation on the crops of Figure 8 . LATEC’s mean, gate and quantized residuals are kept, and only the coder changes: “flat” codes each chunk-stage under its best single Laplace scale, “Huffman” with a static Huffman code per chunk-stage, table included. BPP of LATEC, and BPP difference from it (%) for each coder; lower is better.
Figure E.1: Ablations of scale estimation and entropy coding. In the rightmost panel, each line is the mean over 11 datasets and its shaded band spans the 25th to 75th percentiles.
Figure E.2: Consistency between the predicted Laplace scale and empirical residual magnitude for the raw GNN mean and the gated mean at relative error bounds 10−2 and 10−4 . At each predicted scale, a curve reports the mean absolute residual of the points assigned that scale. Each light curve corresponds to one dataset, and the dark curve averages across datasets. The dashed diagonal shows the moment relation E∣yp−μp∣=βp implied by a zero-centered Laplace model. The dotted horizontal line is the boundary ∣yp−μp∣=εi , below which a residual quantizes to the zero index.
Figure E.3: Ablations of the prediction mean and its interaction with scale estimation. In the rightmost panel, each line is the mean over 11 datasets and its shaded band spans the 25th to 75th percentiles.
Figure E.4: Distributions of prediction residuals yp−μp at ε=0.01 for Euler-Multi-Quadrants, Miranda, and MHD-64. Columns compare the raw GNN, GNN with gating, and SZ3.
Figure E.5: Fraction of coded points assigned by the full gate to the GNN, cubic interpolation, and linear interpolation.
Figure E.6: Distribution of the selected gate parameters of Equation 6 over gated points (top to bottom: threshold exponent T , direction d , scale shift s ), for Euler-Multi-Quadrants, MHD-64, and Miranda at ε∈{10−2,10−3,10−4} .
Width
Euler-Multi- Quadrants
Gray-Scott
Hurricane ISABEL
Miranda
S3D
Convective- Envelope
Gravity- Cooling
MHD-64
RT- Instability
Supernova- Explosion
GyroSwin
Synthetic 5D
16 (6.9k)
21.2
-1.4
-6.1
20.4
1032.1
26.7
-22.3
-11.1
-1.8
-15.8
-14.0
-27.4
32 (26k)
18.3
-7.2
-12.8
-13.1
-23.3
-4.8
-19.7
-18.2
-36.1
-17.5
-19.0
-39.9
64 (103k)
13.1
-8.6
-16.5
-15.8
-25.7
-7.5
-18.5
-21.2
-38.1
-17.9
-27.4
-48.6
Appendix
Table E.3: Predictor width: average percentage BPP difference from SZ3 across matched maximum-error levels, as in Table 2 , for hidden widths 16, 32, and 64 (shipped), with their parameter counts. Negative values are rate savings and lower is better. Blue, green, and orange backgrounds mark 3-D, 4-D, and 5-D datasets. Bold is best, underlined second-best.
Figure E.7: Bits saved by LATEC against SZ3 (left) and HPEZ (right) on synthetic fields of 4-5M points from the pretraining generator, as a function of the number of axes D . Lines are means over five seeds, and shaded bands span the minimum and maximum over seeds.
LATEC
LATEC
T
RME
HPEZ
per-step
6-D
8
10−3
8.0
-32.4
-32.7
10−4
4.5
-13.0
-14.4
16
10−3
8.1
-32.4
-32.8
10−4
2.8
-13.0
-16.1
Appendix
Table E.4: Real 6-D data: T stacked GyroSwin timesteps of shape 32×8×16×21×32 . BPP difference from SZ3 on the stack (%) for HPEZ, LATEC coding each timestep separately in 5-D, and LATEC coding the stack natively in 6-D. SZ3 and HPEZ receive the stack reshaped to 256T×16×21×32 . Lower is better, bold is best.
Figure E.8: Runtime and memory scaling of LATEC from 2-D to 6-D, encoding on the left and decoding on the right, measured on an H100 on synthetic fields that SZ3 compresses to about 2 bits per point, at a relative error bound of 10−4 . From top to bottom: wall time, peak GPU memory, and increase of process RAM during the call. Markers show measurements and dashed lines show affine fits as a function of input size. Hollow markers are excluded from the GPU-memory fit. The comparison with the baselines is in Figure 9 .
Encoding
Decoding
RAM increase
Peak GPU memory
MiB/s (+s)
MiB/s (+s)
enc. / dec., MiB/MiB
MiB/MiB (+MiB)
2-D
267 (+0.03)
187 (+0.05)
0.07 / 1.00
1.00 (+824)
3-D
236 (+0.05)
143 (+0.01)
0.11 / 1.00
1.00 (+1499)
4-D
222 (+0.07)
125 (+0.01)
0.09 / 1.01
1.00 (+2163)
5-D
153 (+0.02)
99 (+0.00)
0.06 / 1.00
1.21 (+2902)
6-D
108 (+0.00)
78 (+0.00)
0.10 / 1.01
1.87 (+3866)
Appendix
Table E.5: Affine fits of LATEC’s runtime and memory against input size, from the measurements of Figure E.8 . Parenthesized values are fitted intercepts, in seconds for throughput and MiB for GPU memory. RAM increase is the growth of process RAM during the codec call, whose intercepts are below 20 MiB.
Figure E.9: Predictor outputs on a 2-D slice of four benchmark fields at relative error bound 10−4 , for the raw GNN head and for the gated predictor.