Manuscript Offprint
arXiv:2610.12371FeatureZ: A General Framework for Feature-Preserving Compression via Pointwise Bounds and Star Classification
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Nathaniel Gorski , Xin Liang , Hanqi Guo , and Bei Wang
Ground Truth

SZ3
44.9 : 1
102.9 dB
FeatureZ (SZ3)
44.8 : 1
72.0 dB
Figure 1: The Miranda dataset visualized with three isocontours and the vertices of the simplified contour tree with a persistence threshold of 4% of the range. Left: ground truth. Center: reconstruction using SZ3. Right: reconstruction using FeatureZ, denoted as FeatureZ(SZ3), which augments SZ3 to preserve isocontours and the simplified contour tree simultaneously. Both SZ3 and FeatureZ operate at comparable compression ratios. SZ3 introduces substantial errors in both the isocontours and the contour tree, whereas FeatureZ preserves these structures. This example highlights FeatureZ's ability to simultaneously preserve multiple features.
Abstract—Geometric and topological features, such as isosurfaces, quantiles, merge trees, and Morse–Smale complexes, are central to the analysis and visualization of scientific data across diverse domains, including medical imaging, climate science, materials science, and astronomy. However, most lossy compressors for scientific data provide only pointwise error guarantees and do not preserve derived features. Existing feature-preserving compressors are often difficult to develop and typically tailored to a single feature. In this paper, we introduce FeatureZ, a lossy compression framework for structured volumetric scalar fields that can preserve a wide class of geometric and topological features. In particular, FeatureZ frames feature-preserving compression as preserving pointwise upper and lower bounds together with a consistent classification of each point's star (i.e., its incident cells) in the underlying structured mesh. Although not all notions of feature preservation fit this framework, many features and topological descriptors targeted by existing compressors do. FeatureZ provides an efficient implementation of feature-preserving compression under this formulation. In particular, FeatureZ operates as an augmentation layer that refines the output of an existing lossy compressor. It first applies quantization to enforce pointwise bounds, and then employs an iterative procedure to ensure consistent star classification. We demonstrate that FeatureZ preserves diverse features during compression with minimal overhead, achieving compression ratios comparable to or better than methods specialized for individual features.
Index Terms—Lossy compression, error-bounded compression, generalized feature preservation, topological and geometric features, topological data analysis, scientific visualization, extensible frameworks
1 INTRODUCTION
Geometric and topological features are derived quantities that describe the shape, structure, and connectivity of scientific data, and they play a central role in its analysis and visualization across diverse domains. For example, in medical imaging, isocontours are widely used to reconstruct anatomical structures such as soft tissue and bone surfaces [43]. In astronomy, critical points of the matter density field and their connectivity define the skeleton of the cosmic web [7], while contour trees have been employed to denoise ALMA data cubes [50]. In quantum chemistry, Morse–Smale complexes enable detailed analysis of atomic basins as well as the extraction of molecular graphs [12]. In climate science, critical points identify cyclone centers [63], whereas isocontours and quantiles support the analysis of temperature, pressure, and humidity fields, facilitating the study of extreme events such as atmospheric rivers [29] and atmospheric blocking [31].
Despite their importance, most lossy compressors for scientific data are designed to control pointwise reconstruction error and do not explicitly account for these derived quantities. Consequently, even when global error bounds are small, compression can introduce significant distortions in geometric and topological structures [22], compromising the fidelity of downstream analysis and visualization. To address this limitation, recent work has proposed feature-preserving compression techniques that explicitly target specific structures, such as contour trees [22, 64] and Morse–Smale segmentations [34, 35].
However, existing feature-preserving compressors require significant time to develop and are typically specialized to a single feature, with designs that do not generalize across different types of structures. For example, a previous compressor [22] (referred to as TopoA in this paper) computes the contour tree of the decompressed data and applies corrections when deviations from the expected topology are detected. While effective, this approach is intrinsically tied to contour trees and does not readily extend to other feature classes, reflecting a broader limitation of current methods. As a result, feature-preserving compression remains inflexible and fragmented. There is no systematic pathway for scientists to preserve new, application-specific features without designing bespoke solutions from scratch. Furthermore, each feature typically requires a dedicated compressor (e.g., TopoA [22] for contour trees or pMSz [35] for Morse–Smale segmentation), forcing users to
• Nathaniel Gorski is with the University of Utah. E-mail: Gorski@sci.utah.edu.
• Xin Liang is with Oregon State University. E-mail: lianxin@oregonstate.edu
• Hanqi Guo is with the Ohio State University. E-mail: guo.2154@osu.edu.
• Bei Wang is with the University of Utah. E-mail: beiwang@sci.utah.edu.
Manuscript received xx xxx. 202x; accepted xx xxx. 202x. Date of Publication xx xxx. 202x; date of current version xx xxx. 202x. For information on obtaining reprints of this article, please send e-mail to: reprints@ieee.org. Digital Object Identifier: xx.xxxx/TVCG.202x.xxxxxx identify, install, and manage an expanding collection of specialized tools. This fragmented ecosystem underscores the need for a flexible, unified framework that can support user-defined feature preservation within a single, generalizable compression paradigm.
In this work, we introduce FeatureZ, a general and extensible compression framework designed to preserve a broad class of features while satisfying user-specified error bounds. FeatureZ is general in that it provides a novel formulation of feature preservation that unifies a number of geometric and topological features within a single framework. It is also extensible, allowing user-defined features to be incorporated by adding a few new functions without redesigning the compression pipeline.
While FeatureZ does not preserve arbitrary derived features, it supports a broad and practically relevant class. Specifically, it supports any feature whose preservation can be expressed through pointwise upper and lower bounds, together with a consistent classification of each point's star (i.e., the collection of incident cells) in the underlying structured mesh. We show that many commonly used features, including isocontours, quantiles, critical points, contour trees [14], merge trees [45], and Morse–Smale segmentations [46], fit naturally within this formulation and can be preserved by FeatureZ. Notably, all features targeted by existing topology-preserving compressors for scalar-field data can be expressed within this framework.
We further develop an efficient algorithm that preserves features under this novel formulation. Similar to prior topology-preserving approaches, FeatureZ operates as an augmentation layer on top of an existing base compressor such as ZFP [39] or SZ3 [37]. It first applies the base compressor and analyzes the decompressed data, then enforces feature preservation through quantization-based bound correction and an iterative scan procedure that ensures consistent star classification. Because this process relies only on local information—the function values at a point and within its star—FeatureZ avoids repeated global feature computation, enabling efficient and scalable compression. Our empirical results demonstrate that FeatureZ achieves compression ratios and runtimes comparable to specialized methods. We introduce FeatureZ, a general framework for feature-preserving compression based on star classification:
• We introduce a unified formulation of feature-preserving compression based on pointwise upper and lower bounds together with local star consistency. We show that this formulation captures many geometric and topological features targeted by existing feature-preserving compressors, as well as several previously unsupported feature classes.
• We develop an efficient framework that augments existing lossy compressors with feature-preservation guarantees. We prove that the resulting compressed data preserves the specified features under the proposed formulation.
• We conduct a comprehensive evaluation demonstrating that our method preserves diverse combinations of features across multiple base compressors while achieving compression ratios and runtimes that are competitive with, and often superior to, existing feature-preserving approaches.
Scientific workflows, however, demand careful control and quantification of compression-induced errors. As a result, modern lossy compressors for scientific data provide strict guarantees on error bounds [32, 37, 39]. These compressors generally fall into two categories: prediction-based and transformation-based. Prediction-based methods estimate data values via interpolation and encode only the residuals required to satisfy prescribed error bounds. Early work such as ISABELA [28] employs B-spline interpolation, while more recent approaches like SZ3 [37] combine multiple predictors, including Lorenzo [24], cubic splines, and linear interpolation.
Recently, deep learning techniques have been increasingly incorporated into prediction-based compression strategies. Implicit Neural Representations (INRs), such as [17,44], train compact neural networks that take spatial coordinates as input and approximate the underlying data, with the learned network parameters serving as the compressed representation. Although INRs are computationally expensive to train and evaluate, they have gained popularity due to their ability to provide a continuous representation of the data. In contrast, autoencoder-based approaches [40, 42, 59] learn paired encoder and decoder networks, where the encoder maps data to a low-dimensional latent space and the decoder reconstructs the data from this representation.
Complementary to prediction-based methods, transformation-based lossy compressors achieve compression by decorrelating data through mathematical transforms. For instance, ZFP [39] partitions data into small blocks and compresses each block independently using exponent alignment, a near-orthogonal transform, and embedded encoding. Other methods exploit tensor decomposition techniques: TTHRESH [11] treats the dataset as a tensor and applies singular value decomposition (SVD) for decorrelation, while SPERR [33] combines wavelet transforms with SPECK coding.
Derived features in scientific visualization. Derived geometric and topological features play a central role in scientific data analysis and visualization. Among these, isocontours are fundamental primitives that provide intuitive representations of level sets of scalar fields. They are widely used in applications ranging from elevation mapping in cartography to exploring slices of deep neural network loss landscapes [15]. Global statistical summaries also play an important role; for instance, quantiles are commonly used for uncertainty visualization in direct volume rendering [8] and in medical image analysis [65].
Topological features further provide powerful tools for understanding complex data. Critical points—locations where the gradient of a function vanishes—have been used to track clouds [30] and tropical cyclones [63]. Contour trees support the analysis of scalar field topology and have been applied to transfer function design [67] as well as to domains such as fluid dynamics [9] and medicine [10,53,58]. Similarly, Morse–Smale complexes have been used to study molecular structures [12] and to derive meaningful visualizations from histopathology images [6].
Feature-preserving lossy compression. A variety of feature-preserving compressors have been developed for scalar field data, each targeting different structural properties. Building on topological abstractions, Soler et al. [51] preserved the 0-dimensional persistence diagram. TopoSZ [64] preserves the contour tree up to a user-specified persistence threshold and was subsequently extended by TopoA [22]. MSz [34] preserves the piecewise-linear Morse–Smale segmentation of a scalar field, with further improvements introduced in pMSz [35]. Similarly, TopoSZp [5] preserves extrema (minima and maxima) while retaining a large subset of saddle points. Beyond strictly topological features, Jiao et al. [25] proposed a method that preserves quantities of interest (QoIs)—numerical functions evaluated pointwise—as well as contours. These strategies were improved upon by QPET [41]. Finally, LOPC [19] adopts a local perspective by preserving the local order of a scalar field, i.e., maintaining “less-than” relationships between neighboring points. Related feature-preserving approaches have also been developed for vector fields [36, 61, 62] and tensor fields [21].
3 TECHNICAL BACKGROUND
3.1 Piecewise-Linear Scalar Fields
A piecewise-linear (PL) scalar field on a simplicial complex , , is defined by assigning scalar values to the vertices of and extending over each simplex via linear interpolation. It is often convenient to assume that is injective on the vertices of . To enforce injectivity, ties between vertices with identical values are resolved using simulation of simplicity (SOS) [18]. Several SOS schemes exist; we adopt the implementation of simplicial complexes and SOS provided by the Topology Toolkit [55]. Specifically, if the structured grid coordinates of precede those of in column-major (Fortran) order, we define ; otherwise, .
For a vertex , the star is the set of simplices containing , along with their faces. The link consists of simplices in that do not contain . Given a PL scalar field , the upper link is the subset of simplices such that for all vertices of . The lower link is defined analogously.

(a)

(b)

(c)
(d)
(e)
(f)
(g)
(h)
(i)
Figure 2: Various topological descriptors for PL scalar fields. (a) Scalar field with critical points (minima blue, saddles white, maxima red). (b) Merge tree with feature uv. (c) Scalar field with selected contours. (d) Contour tree. (e) 0-dimensional persistence diagram: segments denote features; endpoints are colored by criticality types; is the diagonal. (f) Morse–Smale segmentation. (g) Persistence simplification removing uv. (h) Simplified merge tree. (i) Simplified contour tree.
3.2 Topology of Piecewise-Linear Scalar Fields
We use FeatureZ to preserve several topological features; accordingly, we review common topological descriptors for PL scalar fields. Most of these descriptors originate from Morse theory, where one considers smooth functions. By a slight abuse of notation, we write for a smooth function on a manifold and for its PL counterpart, where is a triangulation of .
Critical points. For a smooth function , critical points satisfy . An analogous notion exists in the PL setting. Let be a PL scalar field. A vertex is ordinary if both and are nonempty and simply connected; otherwise, it is critical. In 3D, a critical point is degenerate if and have more than three total connected components.
Nondegenerate critical points are classified by their index, defined as the number of independent directions in . In 3D, minima have index 0, maxima index 3, and saddles index 1 or 2. We visualize a scalar field with its critical points in Fig. 2(a).
Merge trees. The sublevel set at value is . As increases, connected components of sublevel sets are created at minima and merge at saddles, eventually forming a single component at the global maximum. The merge tree encodes this evolution, with vertices at critical points and edges tracking the merge of components; see Fig. 2(b).
Persistence diagram. The evolution of sublevel sets induces a pairing between minima (where components are created) and saddles (where they merge), yielding the 0-dimensional persistence diagram. A component that appears at time a and merges with another component at time b gives rise to a point in the diagram with persistence

Figure 3: (a) Illustration of standard linear-scaling quantization. Each quantization interval has width . The value denotes the ground truth, and is an initial approximation. By shifting to the right by one quantization level , we obtain a final value that lies within a distance of . (b) Example where prescribed upper and lower bounds, and , cannot be satisfied using standard linear-scaling quantization. (c) Using logarithmic-scaling quantization, the interval widths are effectively halved. This allows to be shifted upward by , yielding a final value that satisfies the bounds.
, measuring its significance. The diagram also contains analogous components for the evolution of super level sets . A 0-dimensional persistence diagram is visualized in Fig. 2(e).
Contours and contour trees. A contour (level set) of at value is a connected component of . Examples are shown in Fig. 2(c). As increases, contours may appear, merge, split, or disappear. The contour tree records these events (see Fig. 2(d)).
Components appear and merge at minima and saddles, as captured by the merge tree of f, and may split or disappear at saddles and maxima, as captured by the merge tree of -f. Accordingly, the contour tree is obtained by combining the merge trees of f and -f [14].
Persistence simplification removes features whose persistence is below a threshold . This corresponds to eliminating branches in the merge trees of f and -f associated with features below the threshold. A simplified contour tree is then obtained by combining the simplified merge trees of f and -f. An example of a simplified scalar field is shown in Fig. 2(g), with the corresponding simplified merge and contour trees in Fig. 2(h) and (i).
PL Morse–Smale segmentation. The integral lines of a PL function are discrete monotone paths that follow the local gradient through the vertices. For a vertex that is not a maximum, the forward integral line from proceeds to its highest neighbor and ultimately terminates at a maximum. Backward integral lines are defined analogously and terminate at minima.
The PL Morse–Smale segmentation partitions the domain such that two points lie in the same region if their forward and backward integral lines terminate at the same (minimum, maximum) pair. Each region therefore consists of points whose flow originates at a common minimum and terminates at a common maximum; see Fig. 2(f).
3.3 Quantization in Lossy Compression
A quantization strategy maps continuous values to a discrete set of representatives to enable compression. Suppose that for some , a predictive model produces an estimate of the ground truth value that may not satisfy a global error bound . Quantization-based strategies can then be used to adjust to a value such that .
Linear-scaling quantization was introduced in SZ3 1.4 [54]. It can be viewed as partitioning the real line into intervals of width centered at . By construction, any value within the same interval as deviates from it by at most . Linear-scaling quantization determines an integer quantization index indicating how many such intervals must be shifted to fall into the interval containing , thereby satisfying the error bound. This process is illustrated in Sec. 3.3(a). The reconstructed value is then given by .
This procedure produces a set of integers for all . These indices are subsequently compressed using an entropy coding scheme (e.g., Huffman coding) and stored alongside the compressed data. When the predictor is accurate, most values are zero, yielding high compressibility and low storage overhead.
Logarithmic-scaling quantization. Consider the additional constraint that each reconstructed value must satisfy pointwise bounds for given functions . This setting arises, for example, in topology-preserving compression [22, 64].
To address this constraint efficiently, Gorski et al. [22] introduced logarithmic-scaling quantization, a multiscale extension of linear-scaling quantization. For each , the method assigns two integers: a precision and a quantization index . The procedure begins with and applies linear-scaling quantization using intervals of width to obtain and a reconstructed value .
If , the process terminates; otherwise, the quantization precision is increased and linear-scaling quantization is repeated until the constraint is satisfied. If no admissible reconstruction is found with at or below a maximum precision , the value is stored losslessly. For a fixed , multiple may yield admissible reconstructions; in this case, the value with minimal magnitude is selected to reduce the total entropy of the set of .
For encoding, a single integer is formed as , and the sequence is compressed using an entropy coder. During decompression, the reconstruction is computed as
This construction provably reconstructs the correct value of . Consequently, only needs to be stored as the quantization index.
4 PRESERVATION OF FEATURES
FeatureZ enforces a global error bound while simultaneously preserving user-defined features whose invariance is characterized by pointwise upper and lower bounds together with a consistent star classification. We formalize the class of features supported by FeatureZ in Sec. 4.1, and subsequently detail how specific feature types can be preserved in Sec. 4.2.
4.1 Overview of Feature Preservation
FeatureZ is designed to preserve a broad class of geometric and topological features that share common sufficient conditions for preservation.
Let denote the original scalar field and the reconstructed field obtained after compression and decompression with FeatureZ. We model a derived feature as the application of a transformation to the data, i.e., . For example, if denotes contour tree extraction, then is the contour tree of . Under this formulation, our objective is to ensure feature preservation, i.e., .
To preserve the feature , we define a star classification function that assigns to each point in the domain a categorical label according to the role of its star in the construction of . We also prescribe pointwise upper and lower bound functions .
During compression, for each , FeatureZ enforces the following conditions:
(a) or
(b)
Condition (a) constrains each reconstructed value to lie within its prescribed bounds (or is stored losslessly if, e.g., ), while condition (b) ensures consistency of the star classification between the original and reconstructed fields.
The class of features that FeatureZ can preserve consists precisely of those whose invariance can be guaranteed under the above conditions. In practice, this class is broad: in particular, all features targeted by existing topology-preserving compressors can be handled within this framework (see Sec. 4.2). Moreover, multiple features can be preserved simultaneously by ensuring that these conditions are met for each feature.
4.2 Preservation of Diverse Features
We now describe how different features can be preserved using FeatureZ. To this end, we construct the bound functions and , together with the star classification function , such that the guarantees enforced by FeatureZ imply that is preserved. In some cases, preservation can be achieved using only the bound functions or the star classification alone; not all features require both conditions. Correctness proofs are provided in the supplement.
Critical points. In Morse theory, each point in the domain is classified as either regular or critical (i.e., a minimum, maximum, or saddle), referred to as its criticality type. For vertices in a structured mesh, the criticality type depends only on the star, . Accordingly, we define to be the criticality type of . It follows directly that if for all , then the critical points of coincide with those of . For efficiency, we compute the criticality type of each point using the lookup table strategy from [45], except that we use additional tables for the boundary. We provide details in the supplement.
Simplified merge trees and contour trees. Denote the contour tree of by and its -simplified version by . Denote the merge tree of by and its simplified merge tree by . Let be a persistence threshold. We construct pointwise upper and lower bounds for each using a strategy inspired by TopoA with persistence parameter . Specifically, if is a vertex of , we set , thereby forcing . Otherwise, lies on an edge of with endpoints and . Similarly, lies on an edge of . We define and .
These bounds guarantee that every branch of is preserved in , although may contain additional branches. TopoA uses a similar (but not identical) strategy with and removes additional branches through a progressive bound-tightening procedure. In contrast, we show that every additional branch has persistence at most , where is the pointwise error bound (a formal proof is provided in the supplement). Thus, setting ensures that any such additional branches have persistence below . Consequently, simplifying both and with threshold yields , and no progressive correction is required. This strategy requires , a condition commonly satisfied in practice. A similar construction can be used to preserve simplified merge trees.
Unsimplified merge trees and contour trees. To preserve merge and contour trees without persistence simplification, we use the same upper and lower bound construction as in the simplified case, setting so that . These bounds ensure that every branch of is preserved in , although may contain additional branches with persistence at most .
The number of branches in equals the number of extrema of minus one. Accordingly, we define to classify each point as either an extremum or a non-extremum. If for all , then the number of extrema—and hence the number of branches—coincides between and . It follows that .
Merge trees without simplification can be preserved using an analogous construction.
0-dimensional persistence diagram. For simply connected domains, preservation of the 0-dimensional persistence diagram—whether simplified or unsimplified—follows directly from preservation of the corresponding contour tree.
Piecewise-linear Morse–Smale segmentation. The Morse–Smale segmentation is defined by integral lines connecting minima to maxima. At each , the construction of integral lines is determined by the highest vertex in and the lowest vertex in (assuming they are not empty). We first preserve whether or not each is an extremum (i.e., a minimum or maximum). We then define to encode the identities of the highest and lowest vertices in each of and . If is a maximum, we only encode the smallest neighbor of , and proceed analogously if is a minimum.
If for all , then our construction guarantees that each integral line will travel to the correct neighbors of each
, thus preserving the Morse–Smale segmentation. This strategy is analogous to the C-loops used in pMSz [35].
Local order. For each , the local order of is determined by the partition of into and . We define accordingly so as to encode this partition, ensuring that the local order is preserved.
Isocontours, sublevel and superlevel sets. We demonstrate the preservation of isocontours (level sets) for 3D scalar fields; the 2D case follows analogously. In 3D, for a given isovalue a, the intersection of an isocontour with a cell can be detected using the marching cubes algorithm [43], which determines whether each vertex has a function value above or below a.
Given a set of isovalues with , we preserve the set of cells intersected by each isocontour using only pointwise upper and lower bounds. For each that does not lie on an isocontour, we identify such that and set and . If lies on an isocontour, we set . This construction also preserves the sublevel and superlevel sets for each isovalue.
Quantiles. Preserving quantiles (e.g., quartiles or percentiles) amounts to preserving the quantile membership of each point, i.e., the quantile to which each point belongs relative to the rest of the data. We first compute function value thresholds that partition the data into quantiles. We then preserve the corresponding sublevel and superlevel sets induced by , ensuring that quantile membership is maintained. Combinations of features. Any combination of the above features can be preserved simultaneously by enforcing all corresponding upper and lower bounds and maintaining all associated star classifications.
Existing feature-preserving capabilities. Existing compressors target a limited set of features. Local order is preserved by LOPC [19]. Critical points are partially preserved by TopoSZp [5] and fully preserved by LOPC (as a consequence of local order preservation), although FeatureZ preserves the critical points without stronger guarantees on local ordering. Simplified contour trees (up to persistence ) are preserved by TopoSZ [64] and TopoA [22], but no method guarantees preservation of the full (unsimplified) contour tree. The piecewise-linear Morse–Smale segmentation is preserved by MSz [34] and pMSz [35]. Isocontours are preserved by QPET [41] and the compressor of Jiao et al. [25]. To our knowledge, no existing compressor explicitly targets the preservation of quantiles, nor supports the simultaneous preservation of multiple feature types among features listed above.
5 CORE COMPRESSION ALGORITHM
FeatureZ is designed as an augmentation layer that operates on top of an existing lossy compressor, referred to as the base compressor, similar in spirit to topology-preserving compressors such as TopoA [22]. FeatureZ applies corrections to the output of the base compressor to enforce preservation of a user-defined feature . These corrections are stored in a compact representation and included alongside the base compressor output in the final compressed file.
We provide an overview of the pipeline in Sec. 5.0.1. We give details of the most intricate component, iterative star correction, in Sec. 5.0.2, followed by how it is specifically applied for individual features in Sec. 5.0.3. We describe the process of extending FeatureZ to preserve new features in the supplement. As before, let denote the original data and the reconstructed data. FeatureZ preserves the feature while enforcing a pointwise error bound , i.e., it guarantees that and, for all , .
5. 0.1 Pipeline
We give an overview of each step of FeatureZ.
Step 1: Base compressor. The data is compressed and decompressed using the base compressor. The decompressed output is called the intermediate data.
Step 2: Bound computation. The pointwise upper and lower bounds and are computed.
Step 3: Initial quantization. Logarithmic scaling quantization is used to ensure that the upper and lower bounds, as well as the pointwise error bound , are maintained.
Step 4: Iterative star correction. We iterate over each vertex and inspect . We check whether . If the classifications do not match, some vertices will be labeled as bad, meaning that they have contributed to the misclassification. If no vertices are bad, this indicates that . The error bounds of a subset of the bad vertices are tightened and quantization is reapplied (see Sec. 5.0.2 for details). This process is repeated until there are no bad vertices, meaning that is correctly classified.
Since modifying a vertex value may affect the classification of neighboring stars that have already been processed, multiple passes are required to ensure that all stars are correctly classified.
Step 5: Lossless compression. The quantization numbers from logarithmic-scaling quantization are compressed using Huffman coding. The quantization numbers, lossless values, and output of the base compressor are combined into a tar and compressed using XZ [16].
5. 0.2 Iterative Star Correction
During star correction, we check whether for each . Rather than directly computing the values of and , each point is directly labeled as good or bad. If all points are good, this indicates that . The exact strategy for labeling points as good versus bad varies by feature (see Sec. 5.0.3). If any points are bad, then we update values in as follows.
Initially, each vertex is assigned a precision . If points are marked as bad, those with the smallest precision are selected and their precision is incremented by one. These vertices are then re-quantized using logarithmic-scaling quantization with upper bound and lower bound . If there are multiple valid choices of quantization intervals, the quantization interval that yields the most accurate reconstructed value is selected. If surpasses the maximum allowable precision, is stored losslessly. After the values of the bad points are updated, each point in the star is re-classified as either good or bad. This process is repeated until there are no bad points. To ensure termination, we ensure that if any points are marked as bad, at least one satisfies .
Updating a vertex’s value may affect the classification of neighboring stars. Therefore, the star correction step is performed iteratively, and the entire dataset is scanned multiple times. To improve efficiency, we maintain a set of dirty vertices for which may hold. In each iteration, only dirty vertices are processed. Initially, all vertices are marked as dirty. Whenever a vertex is updated, both and its neighbors are marked as dirty for the next iteration. The dirty set is first represented as a bit array; once the number of dirty vertices falls below 20% of the domain, we switch to a sparse representation storing only the indices of dirty vertices. Switching to a sparse representation significantly speeds up star correction when the number of dirty points is small.
5. 0.3 Identification of Bad Points
Let . For each feature, we classify points in as good or bad. We describe this process for all features whose preservation involves star correction.
Critical points. We ensure that the criticality type of agrees for and . If the types coincide, then all points in are labeled good. Otherwise, is labeled bad. In this case, for each , if but should lie in (or vice versa), then is also labeled bad.
Unsimplified merge and contour trees. We preserve whether x is a minimum or maximum using a similar strategy to preserving critical points.
Local order. We preserve membership in and . For each , if but it should lie in (or vice versa), then is labeled bad. If any such is bad, then is also labeled bad.
Morse–Smale segmentation. We preserve: (a) whether x is a minimum or maximum, and (b) the largest vertex in (if any) and the smallest vertex in (if any). Condition (a) is handled similarly to the critical point case. For condition (b), if x is not a maximum
Table 1: Datasets along with their dimensions and file sizes.
| Dataset | Dimensions | File Size (MB) |
|---|---|---|
| QMCPACK | 69 × 69 × 115 | 4.4 |
| Viscous Fingering | 128 × 128 × 128 | 16.8 |
| Tangaroa | 300 × 180 × 120 | 25.9 |
| Earthquake | 375 × 188 × 50 | 28.2 |
| Ionization | 310 × 128 × 128 | 40.6 |
| Isabel | 500 × 500 × 90 | 90.0 |
| Miranda | 384 × 384 × 256 | 302.0 |
| S3D | 500 × 500 × 500 | 1000.0 |
| SCALE-LETKF | 1200 × 1200 × 98 | 1129.0 |
in , let and be the largest elements of under and , respectively. If , then , and are labeled bad. An analogous rule is applied to .
6 EXPERIMENTAL RESULTS
We begin with an overview of our experimental setup in Sec. 6.1. We then evaluate reconstruction quality, including comparisons with both classical and topology-preserving compressors, in Sec. 6.2. Finally, we analyze runtime performance in Sec. 6.3.
6.1 Overview of Experiments
Compression tasks. We evaluate the capabilities of FeatureZ to preserve seven distinct features. We consider four features for which dedicated feature-preserving compressors already exist: the simplified contour tree, Morse–Smale segmentation, local order, and isocontours.
We also examine two additional features for which no dedicated feature-preserving compressor has been explicitly developed, namely critical points and percentiles. Finally, we assess the ability of FeatureZ to preserve multiple features simultaneously by jointly preserving the simplified contour tree and Morse–Smale segmentation. We refer to this setting as the preservation of the combined feature.
Comparison with existing compressors. We evaluate FeatureZ in conjunction with four base compressors: ZFP, SZ3, SPERR, and HPEZ, denoted as FeatureZ (ZFP), FeatureZ (SZ3), etc. We also include results for each base compressor without augmentation by FeatureZ. We evaluate HPEZ with maximum optimizations enabled. We also evaluate the neural compressor Neurcomp [44]; its poor performance is reported in the supplement.
Whenever possible, we compare against state-of-the-art compressors designed to preserve specific features, namely TopoA for the simplified contour tree, pMSz for Morse–Smale segmentation, QPET for isocontours, and LOPC for local order. We also compare against TopoSZp; since it supports only 2D data, the corresponding results are provided in the supplement. Overall, FeatureZ achieves better reconstruction quality and feature preservation, while TopoSZp is significantly faster.
Like FeatureZ, both TopoA, pMSz, and QPET augment a base compressor. For TopoA, we evaluate the same base compressors (ZFP, SZ3, SPERR, and HPEZ), denoted as TopoA (ZFP) etc. pMSz only supports ZFP and SZ3, while QPET only supports SPERR and HPEZ. We evaluate pMSz and QPET on the base compressors that they support. Evaluation metrics. We measure bit-rate (lower is better) and peak signal-to-noise ratio PSNR (higher is better). Bit-rate measures the average number of bits per data point in the compressed representation. It is computed by dividing the number of bits in the compressed file by the number of vertices in . PSNR quantifies reconstruction quality, where higher values correspond to lower error. If is the range of , and MSE is the mean squared error between and , then PSNR is defined as: . We also evaluate compression and decompression throughput. They are computed by dividing the ground truth file size by the compression time and decompression time, respectively. For FeatureZ, reported times exclude Python startup overhead for the dispatcher and begin when the compressor is invoked. Datasets. We evaluate FeatureZ on nine datasets spanning a range of scientific domains. These datasets are listed in Tab. 1 and described in detail in the supplement.
Parameter configurations. The global error bound is specified as a fraction of the function range; for example, corresponds to of the range. For each feature, we evaluate five values of .
In topology-preserving compression, it has been observed that, for larger error bounds, decreasing the global error bound can, counterintuitively, lead to higher compression ratios [21, 22, 34, 62]. A possible explanation is that larger error bounds introduce greater distortion, necessitating more corrections to restore topological structure. Such error bounds are suboptimal, since a smaller error bound generally yields both a smaller compressed file size and higher reconstruction quality, whereas the error parameter is intended to control the trade-off between these quantities. To ensure a fair comparison, we evaluate all compressors using only parameter settings that are optimal for each method. To do so, we choose sufficiently small for each feature so that all compressors exhibit increasing compression ratios as increases. This choice of bounds is consistent with prior work [21, 22]. To maintain this monotonic trend, we use dataset-specific error bounds in some cases and omit outlier configurations that violate this behavior. The values of and the rationale for their selection are provided in the supplement.
For isocontour preservation, we select three isovalues per dataset that partition the volume into approximately four equal regions. For the Miranda dataset, these isovalues produced poor visualizations due to their placement in a noisy, low-gradient region. Similarly, the isocontours of the Viscous Fingering dataset obstructed much of the view. We therefore adjust the isovalues for these datasets to yield more meaningful isocontours. The exact values are given in the supplement.
For simplified contour tree preservation, we use a persistence threshold of (4% of the function range), consistent with the TopoA experiments of Gorski et al. [22]. The supplement includes a sensitivity analysis of the evaluation metrics with respect to the persistence threshold (for simplified contour tree preservation) and the number of isovalues (for isosurface preservation).
Correctness. We have empirically verified that each feature is preserved in every trial. A formal proof of correctness is provided in the supplement.
System. All experiments are conducted on a laptop equipped with an Intel Core i9-12900HK CPU, an NVIDIA GeForce RTX 3080 Ti laptop GPU, and 32 GB of RAM.
Additional experiments. The supplement includes an ablation study comparing linear- and logarithmic-scaling quantization and evaluating the contribution of each pipeline component to feature preservation and compression overhead.
6.2 Reconstruction Quality
In Fig. 4, we present the trade-off between bit-rate and PSNR for three representative datasets across seven features (see the supplement for the complete results). We consider 17 compressor configurations, including (i) general-purpose, unaugmented base compressors such as ZFP, SZ3, SPERR, and HPEZ, (ii) topology-preserving compressors such as TopoA, pMSz, QPET, and LOPC, and (iii) our framework FeatureZ augmenting the base compressors. We include curves for the unaugmented base compressors under the same error bounds, although these methods do not explicitly preserve any features.
Across the three base compressor choices, a consistent trend emerges for FeatureZ: the SPERR-based variant generally achieves the best performance, while the ZFP-based variant performs the worst.
Comparison with feature-preserving compressors. When preserving identical features, FeatureZ consistently achieves reconstruction quality that is competitive with, and often superior to, existing feature-preserving compressors (Fig. 4). Observations are summarized below:
-
Overall performance. FeatureZ attains reconstruction quality comparable to TopoA and QPET and generally outperforms both pMSz and LOPC across features.
-
Simplified contour tree. FeatureZ (SZ3), FeatureZ (SPERR), and FeatureZ (HPEZ) generally achieve reconstruction quality on par with or better than TopoA (SZ3) TopoA (SPERR), and TopoA (HPEZ), respectively. FeatureZ (ZFP) performs slightly worse than TopoA (ZFP).
-
Morse–Smale segmentation. Compared to pMSz, both FeatureZ (SZ3) and FeatureZ (ZFP) consistently achieve comparable or better reconstruction quality than pMSz (SZ3) and pMSz (ZFP). FeatureZ (SPERR) consistently outperforms both pMSz variants.

Figure 4: Rate-distortion curves with selected zoomed-in views illustrating the trade-off between bit-rate and PSNR for features preserved by FeatureZ. Results are shown for three datasets—QMCPACK, Viscous Fingering, Isabel—across seven features; the full set of plots is provided in the supplement. For reference, we include the base compressors ZFP, SZ3, TTHRESH, and HPEZ although these do not guarantee feature preservation. Where applicable, we also compare against state-of-the-art topology-preserving compressors, including TopoA, pMSz, QPET, and LOPC.
Ground Truth
Ground Truth
Ground Truth
Ground Truth

SZ3
65.9 : 1
89.8 dB
SZ3
21.8 : 1
92.6 dB
SZ3
10.9 : 1
110.4 dB
SZ3
31.0 : 1
69.3 dB
FeatureZ (SZ3)
68.1 : 1
88.9 dB
FeatureZ (SZ3)
21.9 : 1
70.7 dB
FeatureZ (SZ3)
10.8 : 1
106.8 dB
FeatureZ (SZ3)
30.9 : 1
65.8 dB
Figure 5: Volumetric datasets visualized with geometric or topological features: SZ3 compared with FeatureZ augmenting SZ3 at similar compression ratios. Zoomed-in views are provided to show extra detail. Top: ground truth. Center: datasets compressed with SZ3. Bottom: datasets compressed with FeatureZ (SZ3). From left to right, the datasets are: QMCPACK, visualized with its simplified contour tree (up to persistence ); Earthquake, with critical points colored by criticality type; Tangaroa, with Morse–Smale segmentation; and Viscous Fingering, with isocontours. In each case, SZ3 introduces errors in the extracted features, whereas FeatureZ (SZ3) preserves them without errors.
-
Local order. All variants of FeatureZ consistently outperform LOPC, showing strong compression in local order preservation.
-
Isocontours. FeatureZ (HPEZ) and FeatureZ (SPERR) perform similarly to QPET (HPEZ) and QPET (SPERR).
We note that pMSz and LOPC natively support different simplicial complex structures for 3D grids than FeatureZ, which may contribute to differences in compression overhead.
In summary, FeatureZ achieves reconstruction quality that is highly competitive with existing feature-preserving compression methods. Moreover, while existing approaches typically target a single feature, FeatureZ supports a broader range of features while delivering comparable or improved reconstruction quality.
Table 2: Error percentages for SZ3 on different datasets at compression ratios comparable to FeatureZ while preserving a given feature. C.T.: number of vertices that are false positives, false negatives, or misclassified in the reconstructed contour tree divided by number of vertices in the ground truth. M.S.: fraction of points incorrectly classified in the Morse–Smale segmentation. L.O.: fraction of points for which the local order among neighbors is violated. C.P.: number of critical points whose type (ordinary, minimum, saddle, maximum, degenerate) is misclassified divided by number of critical points in the ground truth. Perc.: fraction of points assigned to incorrect percentiles.
| dataset | C.T. | M.S. | L.O. | C.P. | Perc. |
|---|---|---|---|---|---|
| QMCPACK | 125.7% | 20.4% | 5.3% | 108.7% | 2.3% |
| Viscous Fingering | 1.6% | 51.5% | 31.0% | 30.5% | 26.8% |
| Tangaroa | 11.0% | 34.1% | 2.7% | 141.9% | 3.1% |
| Earthquake | 7.1% | 96.3% | 21.2% | 198.5% | 12.0% |
| Ionization | 12.3% | 87.4% | 48.0% | 280.5% | 38.6% |
| Isabel | 153.3% | 17.8% | 5.7% | 222.6% | 1.0% |
| Miranda | 83.3% | 99.5% | 69.2% | 100.6% | 61.9% |
| S3D | 34.7% | 9.8% | 1.9% | 83.2% | 0.9% |
| SCALE-LETKF | 47.3% | 59.6% | 17.4% | 103.0% | 20.9% |
Comparison with base compressors. In Fig. 4, we observe that FeatureZ typically introduces only modest overhead relative to its unaugmented base compressors. In some cases, the overhead is negligible (e.g., isocontours for Viscous Fingering), while in others it can reach up to approximately . Overall, this overhead is comparable to, or lower than, that of other topology-preserving methods [21]. Notably, FeatureZ (ZFP) occasionally outperforms ZFP alone, as observed for the Isabel dataset when preserving critical points. We attribute this to the combination of FeatureZ's low overhead and the additional post hoc lossless compression (XZ) applied to ZFP outputs.
Although FeatureZ introduces additional overhead relative to base compressors, reducing the error bound of a base compressor to match the compressed file size achieved by FeatureZ leads to substantial feature distortion. In Tab. 2, we report feature errors for SZ3 under these conditions, which are often significant. For example, on the Earthquake dataset, even when SZ3 achieves a compression ratio comparable to FeatureZ, more than of points are assigned to incorrect Morse-Smale segmentation regions after decompression. Notably, cases with large SZ3 errors often coincide with scenarios in which FeatureZ incurs higher overhead, reflecting the additional corrections required to preserve features under greater distortion. Corresponding results for ZFP and SPERR, with associated error bounds, are in the supplement, along with a detailed comparison of the trade-off between bit-rate and feature error. Visual comparisons in Fig. 1 and Fig. 5 further demonstrate that FeatureZ preserves a wide range of features, whereas SZ3 introduces substantial distortions even at comparable compression ratios.
6.3 Analysis of Compression Time
Runtime analysis for combined features. In Tab. 3, we report a breakdown of compression times for FeatureZ (SZ3) across several datasets while preserving the combined feature. For each dataset, we use the largest error bound for this setting. Results for other base compressors are similar and provided in the supplement. We focus on the combined feature because it exercises all stages of the FeatureZ pipeline, including both pointwise quantization and iterative star correction.
Overall, the majority of runtime is spent on bound computation, iterative star correction, and lossless compression. Notably, execution of the base compressor accounts for only a small fraction (< 5%) of the total runtime, consistent other feature-preserving compressors [22]. In most cases, the dominant cost arises from computing upper and lower bounds, largely due to the expense of constructing the simplified contour tree. We consider this overhead justified, as computing a feature is a natural prerequisite for preserving it during compression.
Table 3: Runtimes for FeatureZ simultaneously preserving the simplified contour tree ( ) and Morse–Smale segmentation across datasets. Times are in seconds. Bounds: upper/lower bound computation; B.C.C.: base compressor (compression); B.C.D.: base compressor (decompression); Quant.: pointwise quantization; Star: iterative star correction; L.L.: lossless compression.
| dataset | Bounds | B.C.C. | B.C.D. | Quant. | Star | L.L. | total |
|---|---|---|---|---|---|---|---|
| QMCPACK | 0.46 | 0.03 | 0.01 | 0.00 | 0.06 | 0.06 | 0.61 |
| Viscous Fingering | 1.64 | 0.06 | 0.07 | 0.02 | 0.55 | 1.66 | 4.00 |
| Tangaroa | 1.86 | 0.12 | 0.09 | 0.01 | 1.02 | 0.67 | 3.77 |
| Earthquake | 1.82 | 0.10 | 0.09 | 0.01 | 1.69 | 1.00 | 4.72 |
| Ionization | 1.52 | 0.12 | 0.08 | 0.02 | 3.39 | 1.02 | 6.15 |
| Isabel | 6.16 | 0.46 | 0.36 | 0.19 | 2.21 | 4.48 | 13.87 |
| Miranda | 56.16 | 0.78 | 0.67 | 0.13 | 37.77 | 73.22 | 168.73 |
| S3D | 36.18 | 2.49 | 1.61 | 0.52 | 13.07 | 13.54 | 67.44 |
| SCALE-LETKF | 57.49 | 3.16 | 3.62 | 0.59 | 49.19 | 55.68 | 169.76 |
Table 4: Compression throughput (MB/s) for FeatureZ (SZ3) across datasets and tasks, along with TopoA (SZ3), pMSz (SZ3), and LOPC. C.T.: contour tree; M.S.: Morse–Smale segmentation; L.O.: local order; C.P.: critical points; I.S.: isocontours; Per.: percentiles; Com.: combined feature (simplified contour tree and Morse–Smale segmentation); T.A.: TopoA (SZ3). TopoA failed on SCALE-LETKF for unknown reasons.
| dataset | C.T. | M.S. | L.O. | C.P. | I.S. | Per. | Com. | T.A. | pMSz | LOPC |
|---|---|---|---|---|---|---|---|---|---|---|
| QMCPACK | 7.8 | 28.9 | 25.5 | 40.9 | 64.3 | 49.4 | 6.0 | 2.6 | 165.2 | 168.0 |
| Viscous Fingering | 8.1 | 6.6 | 6.4 | 5.7 | 62.1 | 12.3 | 3.9 | 2.0 | 157.6 | 5.6 |
| Tangaroa | 10.6 | 12.8 | 11.9 | 19.3 | 46.5 | 29.0 | 6.9 | 2.3 | 56.4 | 102.3 |
| Earthquake | 12.9 | 9.0 | 11.6 | 10.1 | 84.5 | 41.0 | 6.0 | 2.6 | 207.4 | 150.8 |
| Ionization | 21.7 | 5.9 | 7.5 | 7.0 | 53.7 | 43.3 | 6.6 | 2.7 | 119.2 | 57.0 |
| Isabel | 11.4 | 12.3 | 14.4 | 26.9 | 61.8 | 25.3 | 4.7 | 2.0 | 126.9 | 104.7 |
| Miranda | 5.1 | 1.9 | 2.8 | 2.6 | 91.7 | 4.0 | 1.8 | 0.9 | 63.3 | 65.1 |
| S3D | 19.4 | 14.7 | 26.9 | 63.0 | 125.7 | 54.4 | 14.8 | 4.3 | 36.3 | 139.0 |
| SCALE-LETKF | 14.4 | 6.4 | 11.4 | 12.1 | 117.1 | 33.0 | 6.7 | - | 158.2 | 206.5 |
Table 5: Decompression throughput (MB/s) for FeatureZ (SZ3) across datasets and tasks, along with TopoA (SZ3), and LOPC. Labels are consistent with Tab. 4.
| dataset | C.T. | M.S. | L.O. | C.P. | I.S. | Per. | Com. | T.A. | LOPC |
|---|---|---|---|---|---|---|---|---|---|
| QMCPACK | 147.6 | 143.3 | 141.2 | 174.5 | 168.2 | 157.8 | 131.4 | 84.0 | 470.9 |
| Viscous Fingering | 135.8 | 98.0 | 96.5 | 109.4 | 171.2 | 110.4 | 96.5 | 121.4 | 442.8 |
| Tangaroa | 108.5 | 79.3 | 76.1 | 126.5 | 133.0 | 100.2 | 81.9 | 108.5 | 353.3 |
| Earthquake | 190.4 | 93.9 | 111.3 | 129.3 | 199.2 | 126.3 | 97.5 | 195.1 | 492.8 |
| Ionization | 192.7 | 110.9 | 100.8 | 158.9 | 189.7 | 151.3 | 118.7 | 206.0 | 472.0 |
| Isabel | 117.2 | 74.5 | 102.9 | 141.7 | 144.7 | 113.4 | 79.1 | 115.3 | 367.9 |
| Miranda | 226.0 | 68.9 | 65.3 | 70.4 | 225.4 | 74.3 | 69.5 | 268.9 | 506.0 |
| S3D | 246.3 | 207.8 | 219.5 | 257.0 | 266.0 | 254.3 | 206.3 | 332.1 | 525.9 |
| SCALE-LETKF | 174.2 | 85.8 | 110.9 | 145.3 | 248.2 | 139.7 | 105.1 | - | 542.1 |
The star correction step also contributes noticeable overhead. This is partly due to its iterative nature, although in practice the first iteration dominates runtime, with subsequent iterations affecting only a small subset of points. Additionally, per-point operations are relatively expensive: FeatureZ must access values from 3D neighborhoods, while the data is stored in a linear layout, leading to poor cache locality. Furthermore, star classification itself is computationally intensive.
Finally, lossless compression incurs nontrivial overhead. We use XZ due to its typically high compression ratios compared to alternatives such as gzip or bzip2 [20]. However, this choice comes with increased runtime; faster lossless compressors could reduce this overhead at the expense of lower compression efficiency.
Throughput analysis. We report compression throughput for FeatureZ (SZ3) in Tab. 4. For each (dataset, feature) pair, we report the runtime corresponding to the largest tested error bound. A detailed analysis of the trade-off between error bound and runtime is provided in the supplement. Throughput results for FeatureZ with other base compressors are similar; no single base compressor consistently yields the fastest performance. Corresponding tables for other base compressors are included in the supplement. We also report throughput for TopoA (SZ3), pMSz (SZ3), and LOPC. We do not report QPET throughput in the main paper because it does not support SZ3 as a base compressor. Corresponding results for SPERR and HPEZ are provided in the supplement. Overall, QPET achieves throughput comparable to FeatureZ.
Throughput varies significantly across features, reflecting differences in preservation strategies. For example, percentile and isocontour preservation achieve higher throughput, as they do not require star correction (see Tab. 3) and have inexpensive bound computations. In contrast, simplified contour tree preservation avoids star correction but requires computing the contour tree, which is costly. Critical point and Morse–Smale segmentation preservation incur lower throughput due to the expense of iterative star correction.
Across base compressors (ZFP, SZ3, SPERR, and HPEZ), no configuration consistently minimizes runtime for FeatureZ. This is because the base compressor contributes only a small fraction of the total runtime, limiting the impact of its intrinsic speed. Instead, runtime is largely influenced by the distortions introduced by the base compressor, which determine the extent of corrective processing. Since these distortions affect geometric and topological structures in complex ways, their impact on runtime is difficult to predict.
Compared to other topology-preserving compressors, FeatureZ is roughly faster than TopoA but slower than pMSz and LOPC when preserving the same features. pMSz is GPU-based, and thus expected to outperform FeatureZ. FeatureZ achieves throughput comparable to other feature-preserving methods not evaluated here [21, 64].
Decompression throughput for FeatureZ SZ3) are reported in Tab. 5. As expected, decompression is significantly faster than compression. There is no clear correlation between compression and decompression throughput, suggesting a complex relationship between feature-preserving edits and reconstruction cost. Compared to existing methods, FeatureZ achieves decompression performance comparable to TopoA and slower than LOPC. Decompression times for pMSz are not available, as its experimental implementation does not report them.
Asymptotic analysis. Because FeatureZ supports multiple feature-preservation strategies, a single universal asymptotic bound is not meaningful. Instead, we provide a general characterization. Let denote the number of points in the domain . Let the cost of bound computation over the entire domain be , and the cost of star correction per point be . Let denote the maximum precision for logarithmic-scaling quantization (we use ), so that each point may be updated at most times. Let denote the largest possible number of points in a star. Let denote the maximum number of first- and second-order neighbors of any .
We now analyze the major pipeline stages. Initial quantization visits each point once and may update it up to times, yielding . During star correction, each point in the star may have values in its star updated up to times, and its star is re-evaluated whenever a neighboring star (within first- or second-order adjacency) is modified. Consequently, a star may be updated up to times, giving a total cost of . In practice, both the base compressor and XZ operate in time. Combining these components, the overall runtime of FeatureZ is .
We now instantiate this bound for specific features. For contour tree preservation, bound computation is dominated by contour tree construction, which is . For preserving isocontours, bound computation requires sorting isovalues and locating each point within the corresponding interval, yielding ; in practice, since , this reduces to . Percentile preservation similarly yields in practice, while other features have . For all implemented features, , and , , and are small constants. Therefore, the overall runtime is for contour tree preservation and for all other features.
7 LIMITATIONS AND DISCUSSIONS
FeatureZ has several limitations, summarized below.
Storage overhead. FeatureZ introduces additional storage overhead (up to ), comparable to other topology-preserving methods. For a fixed compression ratio, preserving topological correctness may outweigh marginal PSNR gains.
Runtime overhead. FeatureZ incurs substantial runtime overhead compared to the underlying base compressors. While its throughput is comparable to some feature-preserving methods, it remains slower overall and is outperformed by certain specialized (e.g. GPU-based) approaches. We believe there is significant potential for optimization via parallel or GPU implementations. In particular, the star correction step is largely pointwise and could be parallelized with minimal synchronization. Bound computation depends on the user-defined feature: simplified contour tree construction is largely parallelizable [45], while percentile and isocontour computations are highly parallel.
Visual artifacts. We observe noticeable artifacts in isocontour preservation. Since points on an isocontour may shift by up to the length of a grid cell, these artifacts diminish at higher resolutions, which are typical in practice.
Design choices. FeatureZ relies on a number of heuristics that promote computational efficiency but may not always produce optimal augmentation configurations. In particular, feature preservation is formulated entirely through local guarantees—namely, pointwise upper and lower bounds and consistent star classifications—allowing features to be preserved using only neighborhood-level operations and avoiding expensive global geometric or topological computations. This locality, however, comes at the cost of flexibility. Global optimization strategies may identify alternative augmentations that achieve lower storage overheads while preserving the same features. Furthermore, some applications may benefit from allowing small geometric perturbations in preserved features, such as slight shifts in critical point locations, in exchange for improved compression ratios. Such trade-offs are difficult to express within our current framework. Likewise, our star-correction algorithm employs a greedy strategy that corrects vertices one at a time. While computationally efficient, this approach may introduce more corrections than necessary. Alternative strategies that jointly optimize corrections across multiple vertices could potentially achieve the same preservation guarantees with lower storage overhead.
Feature specification. Defining new features in FeatureZ can be non-trivial, particularly for novice users, due to the underlying definitions of star classification. We describe the technical details in the supplement. Preserving a feature requires specifying sufficient conditions within the framework supported by FeatureZ; this process can be unintuitive and does not encompass all features of interest.
Parameter selection. Like other feature-preserving compressors, some error settings for FeatureZ may be suboptimal, and decreasing the error bound can sometimes produce both smaller compressed files and higher reconstruction quality. Since there is no systematic strategy for selecting optimal parameter values, initial parameter choices may yield suboptimal performance.
Degenerate cases. In certain adversarial cases, FeatureZ may require near-lossless storage to preserve the requested features, for example when preserving the unsimplified contour tree of an exceptionally topologically complex dataset.
Preserving arbitrary features. In preliminary experiments, we have explored a variant of FeatureZ that preserves arbitrary features that can be defined simply as categorical maps without star classification; for instance, assigning each point a Morse–Smale region ID. However, without explicit modeling of pointwise dependencies (e.g., via star classification), this variant requires repeated re-computation of the feature, leading to substantial overhead. This underscores the importance of a pipeline that enables efficient, pointwise verification. Developing more intuitive mechanisms for feature specification remains an important direction for future work.
8 CONCLUSION
We introduce FeatureZ, a compression framework that preserves a broad class of features in lossy compression while maintaining a user-specified error bound . For a given feature , FeatureZ first computes pointwise upper and lower bounds enforced via quantization, and then applies an iterative procedure to ensure correct star classification with respect to . Our experiments demonstrate that FeatureZ preserves diverse features of interest while incurring moderate overhead in file size and runtime, comparable to existing feature-preserving compressors. Looking ahead, the approach may extend to other data types, such as vector and tensor fields, and could benefit substantially from parallel and GPU implementations.
ACKNOWLEDGMENTS
This work was supported in part by the U.S. National Science Foundation (NSF) under Grants OAC-2313122, OAC-2313123, OAC-2313124, and OAC-2628473. We used ChatGPT 5.2 for grammar correction and language polishing, and ChatGPT 5.2 Codex for limited coding assistance, including integrating base compressors and reformatting arguments for certain internal APIs.
REFERENCES
[1] IEEE visualization design contest 2004. http://sciviscontest.ieeevis.org/2004/, 2004. 12
[2] 2006 IEEE visualization design contest. http://sciviscontest.ieeevis.org/2006/, 2006. 12
[3] 2008 IEEE visualizatin design contest. http://sciviscontest.ieeevis.org/2008/, 2008. 12
[4] IEEE scivis contest 2016. https://scads.ai/ieee-scivis-contest-2016/, 2016. 12
[5] T. Agarwal, S. Di, X. Liang, Z. Su, Y. Li, G. Gopalakrishnan et al. TopoSZp: Lightweight topology-aware error-controlled compression for scientific data. arXiv preprint arXiv:2602.17552, 2026. doi: 10.48550/arXiv.2602.17552 2, 5, 18, 21
[6] Z. Ahmad, K. Al-Thelaya, M. Alzubaidi, F. Joad, N. U. Gilal, W. Mifsud et al. HistoMSC: Density and topology analysis for AI-based visual annotation of histopathology whole slide images. Computers in Biology and Medicine, 190:109991:1–109991:20, 2025. doi: 10.1016/j.compbiomed.2025.109991 2
[7] M. A. Aragón-Calvo, E. Platen, R. van de Weygaert, and A. S. Szalay. The spine of the cosmic web. The Astrophysical Journal, 723(1):364–382, 2010. doi: 10.1088/0004-637X/723/1/364 1
[8] T. M. Athawale, B. Ma, E. Sakhaee, C. R. Johnson, and A. Entezari. Direct volume rendering with nonparametric models of uncertainty. IEEE Transactions on Visualization and Computer Graphics, 27(2):1797–1807, 2021. doi: 10.1109/TVCG.2020.3030394 2
[9] D. B. Aydogan and J. Hyttinen. Characterization of microstructures using contour tree connectivity for fluid flow analysis. Journal of the Royal Society Interface, 11(95):20131042:1–20131042:10, 2014. doi: 10.1098/rsif.2013.1042 2
[10] D. B. Aydogan, N. Moritz, H. T. Aro, and J. Hyttinen. Analysis of trabecular bone microstructure using contour tree connectivity. In Medical Image Computing and Computer-Assisted Intervention – MICCAI 2013, pp. 428–435. Springer, Berlin, 2013. doi: 10.1007/978-3-642-40763-5_53 2
[11] R. Ballester-Ripoll, P. Lindstrom, and R. Pajarola. TTHRESH: Tensor compression for multidimensional visual data. IEEE Transactions on Visualization and Computer Graphics, 26(9):2891–2903, 2020. doi: 10.1109/TVCG.2019.2904063 2
[12] H. Bhatia, A. G. Gyulassy, V. Lordi, J. E. Pask, V. Pascucci, and P.-T. Bremer. TopoMS: Comprehensive topological exploration for molecular and condensed-matter systems. Journal of Computational Chemistry, 39(16):936–952, 2018. doi: 10.1002/jcc.25181 1, 2
[13] F. Cappello, S. Di, S. Li, X. Liang, A. M. Gok, D. Tao et al. Use cases of lossy compression for floating-point data in scientific data sets. The International Journal of High Performance Computing Applications, 33(6):1201–1220, 2019. doi: 10.1177/1094342019853336 2
[14] H. Carr, J. Snoeyink, and U. Axen. Computing contour trees in all dimensions. Computational Geometry, 24(2):75–94, 2003. doi: 10.1016/S0925-7721(02)00093-7 2, 3, 15
[15] A. Chatzimichailidis, J. Keuper, F.-J. Pfreundt, and N. R. Gauger. GradVis: Visualization and second order analysis of optimization surfaces during the training of deep neural networks. In 2019 IEEE/ACM Workshop on Machine Learning in High Performance Computing Environments (MLHPC), pp. 66–74. IEEE, New York, 2019. doi: 10.1109/MLHPC49564.2019.00012 2
[16] L. Collin and J. Tan. XZ Utils. https://www.tukaani.org/xz/, 2025. 5
[17] E. Dupont, H. Loya, M. Alizadeh, A. Golinski, Y. W. Teh, and A. Doucet. COIN++: Neural compression across modalities. Transactions on Machine Learning Research, 2022. 2
[18] H. Edelsbrunner and E. P. Mücke. Simulation of simplicity: A technique to cope with degenerate cases in geometric algorithms. ACM Transactions on Graphics, 9(1):66–104, 1990. doi: 10.1145/77635.77639 2
[19] A. Fallin, N. Gorski, T. Agarwal, B. Wang, G. Gopalakrishnan, and M. Burtscher. Fast topology-aware lossy data compression with full preser-
vation of critical points and local order. arXiv preprint arXiv:2603.26968, 2026. doi: 10.48550/arXiv.2603.26968 2, 5
[20] J. Farncomb. Gzip vs Bzip2 vs XZ performance comparison. rootusers.com/gzip-vs-bzip2-vs-xz-performance-comparison/, 2015. 8
[21] N. Gorski, X. Liang, H. Guo, and B. Wang. TFZ: Topology-preserving compression of 2D symmetric and asymmetric second-order tensor fields. IEEE Transactions on Visualization and Computer Graphics, 32(1):527–537, 2026. doi: 10.1109/TVCG.2025.3634844 2, 6, 8, 9, 22
[22] N. Gorski, X. Liang, H. Guo, L. Yan, and B. Wang. A general framework for augmenting lossy compressors with topological guarantees. IEEE Transactions on Visualization and Computer Graphics, 31(6):3693–3705, 2025. doi: 10.1109/TVCG.2025.3567054 1, 2, 4, 5, 6, 8, 21, 22
[23] J. W. Hurrell, M. M. Holland, P. R. Gent, S. Ghan, J. E. Kay, P. J. Kushner et al. The community earth system model: A framework for collaborative research. Bulletin of the American Meteorological Society, 94(9):1339–1360, 2013. doi: 10.1175/BAMS-D-12-00121.1 21
[24] L. Ibarria, P. Lindstrom, J. Rossignac, and A. Szymczak. Out-of-core compression and decompression of large n-dimensional scalar fields. Computer Graphics Forum, 22(3):343–348, 2003. doi: 10.1111/1467-8659.00681 2
[25] P. Jiao, S. Di, H. Guo, K. Zhao, J. Tian, D. Tao et al. Toward quantity-of-interest preserving lossy compression for scientific data. Proceedings of the VLDB Endowment, 16(4):697–710, 2022. doi: 10.14778/3574245.3574255 2, 5
[26] P. R. C. Kent, A. Annaberdiyev, A. Benali, M. C. Bennett, E. J. L. Borda, P. Doak et al. QMCPACK: Advances in the development, efficiency, and application of auxiliary field and real-space variational and diffusion quantum Monte Carlo. The Journal of Chemical Physics, 157(17):174105:1–174105:20, 2020. doi: 10.1063/5.0004860 12
[27] J. Kim, A. D. Baczewski, T. D. Beaudet, A. Benali, M. C. Bennett, M. A. Berrill et al. QMCPACK: an open source ab initio quantum Monte Carlo package for the electronic structure of atoms, molecules and solids. Journal of Physics: Condensed Matter, 30(19):195901:1–195901:29, 2018. doi: 10.1088/1361-648X/aab9c3 12
[28] S. Lakshminarasimhan, N. Shah, S. Ethier, S. Klasky, R. Latham, R. Ross et al. Compressing the incompressible with ISABELA: In-situ reduction of spatio-temporal data. In Euro-Par 2011 Parallel Processing, pp. 366–379. Springer, Berlin, 2011. doi: 10.1007/978-3-642-23400-2_34 2
[29] F. Lan, B. Gamelin, L. Yan, J. Wang, B. Wang, and H. Guo. Topological characterization and uncertainty visualization of atmospheric rivers. Computer Graphics Forum, 43(3):e15084:1–e15084:12, 2024. doi: 10.1111/cgf.15084 1
[30] M. Li, D. Chatterjee, F. Glassmeier, F. Senf, and B. Wang. Tracking low-level cloud systems with topology. In 2025 IEEE Workshop on Topological Data Analysis and Visualization (TopoInVis), pp. 89–99. IEEE, New York, 2025. doi: 10.1109/TopolnVis68599.2025.00013 2
[31] M. Li, P. Nowack, and B. Wang. Spatiotemporal detection and uncertainty visualization of atmospheric blocking events. IEEE Transactions on Visualization and Computer Graphics, 32(6):4742–4752, 2026. doi: 10.1109/TVCG.2026.3694459 1
[32] S. Li, P. Lindstrom, and J. Clyne. Lossy scientific data compression with SPERR. In 2023 IEEE International Parallel and Distributed Processing Symposium (IPDPS), pp. 1007–1017. IEEE, New York, 2023. doi: 10.1109/IPDPS54959.2023.00104 2
[33] S. Li, P. Lindstrom, and J. Clyne. Lossy scientific data compression with SPERR. In 2023 IEEE International Parallel and Distributed Processing Symposium (IPDPS), pp. 1007–1017. IEEE, New York, 2023. doi: 10.1109/IPDPS54959.2023.00104 2
[34] Y. Li, X. Liang, B. Wang, Y. Qiu, L. Yan, and H. Guo. MSz: An efficient parallel algorithm for correcting Morse–Smale segmentations in error-bounded lossy compressors. IEEE Transactions on Visualization and Computer Graphics, 31(1):130–140, 2025. doi: 10.1109/TVCG.2024.3456337 1, 2, 5, 6, 22
[35] Y. Li, M. Xia, X. Liang, B. Wang, R. Underwood, S. Di et al. pMSz: A distributed parallel algorithm for correcting extrema and morse smale segmentations in lossy compression. arXiv preprint arXiv:2601.01787, 2026. doi: 10.48550/arXiv.2601.01787 1, 2, 5
[36] X. Liang, S. Di, F. Cappello, M. Raj, C. Liu, K. Ono et al. Toward feature-preserving vector field compression. IEEE Transactions on Visualization and Computer Graphics, 29(12):5434–5450, 2023. doi: 10.1109/TVCG.2022.3214821 2
[37] X. Liang, K. Zhao, S. Di, S. Li, R. Underwood, A. M. Gok et al. SZ3: A modular framework for composing prediction-based error-bounded lossy compressors. IEEE Transactions on Big Data, 9(2):485–498, 2023. doi:
10.1109/TBDATA.2022.3201176 2
[38] G.-Y. Lien, T. Miyoshi, S. Nishizawa, R. Yoshida, H. Yashiro, S. A. Adachi et al. The near-real-time SCALE-LETKF system: A case of the September 2015 Kanto-Tohoku heavy rainfall. Scientific Online Letters on the Atmosphere, 13:1–6, 2017. doi: 10.2151/sola.2017-001 12
[39] P. Lindstrom. Fixed-rate compressed floating-point arrays. IEEE Transactions on Visualization and Computer Graphics, 20(12):2674–2683, 2014. doi: 10.1109/TVCG.2014.2346458 2
[40] J. Liu, S. Di, K. Zhao, S. Jin, D. Tao, X. Liang et al. Exploring autoencoder-based error-bounded compression for scientific data. In 2021 IEEE International Conference on Cluster Computing (CLUSTER), pp. 294–306. IEEE, New York, 2021. doi: 10.1109/Cluster48925.2021.00034 2
[41] J. Liu, P. Jiao, K. Zhao, X. Liang, S. Di, and F. Cappello. QPET: A versatile and portable quantity-of-interest-preservation framework for error-bounded lossy compression. Proceedings of the VLDB Endowment, 18(8):2440–2453, 2025. doi: 10.14778/3742728.3742739 2, 5
[42] T. Liu, J. Wang, Q. Liu, S. Alibaba, T. Lu, and X. He. High-ratio lossy compression: Exploring the autoencoder to compress scientific data. IEEE Transactions on Big Data, 9(1):22–36, 2023. doi: 10.1109/TBDATA.2021.3066151 2
[43] W. E. Lorensen and H. E. Cline. Marching cubes: A high resolution 3D surface construction algorithm. In SIGGRAPH '87: Proceedings of the 14th annual conference on Computer graphics and interactive techniques, pp. 163–169. ACM, New York, 1987. doi: 10.1145/37401.37422 1, 5
[44] Y. Lu, K. Jiang, J. A. Levine, and M. Berger. Compressive neural representations of volumetric scalar fields. Computer Graphics Forum, 40(3):135–146, 2021. doi: 10.1111/cgf.14295 2, 6, 18
[45] J. Lukasczyk, M. Will, F. Wetzels, G. H. Weber, and C. Garth. ExTreeM: Scalable augmented merge tree computation via extremum graphs. IEEE Transactions on Visualization and Computer Graphics, 30(1):1085–1094, 2024. doi: 10.1109/TVCG.2023.3326526 2, 4, 9, 12
[46] R. G. C. Maack, J. Lukasczyk, J. Tierny, H. Hagen, R. Maciejewski, and C. Garth. Parallel computation of piecewise linear morse–smale segmentations. IEEE Transactions on Visualization and Computer Graphics, 30(4):1942–1955, 2024. doi: 10.1109/TVCG.2023.3261981 2
[47] K. B. Olsen, S. M. Day, J. B. Minster, Y. Cui, A. Chourasia, D. Okaya et al. TeraShake2: Spontaneous rupture simulations of 7.7 earthquakes on the southern San Andreas fault. Bulletin of the Seismological Society of America, 98(3):1162–1185, 2008. doi: 10.1785/0120070148 12
[48] M. Pont, J. Vidal, J. Delon, and J. Tierny. Wasserstein distances, geodesics and barycenters of merge trees. IEEE Transactions on Visualization and Computer Graphics, 28(1):291–301, 2022. doi: 10.1109/TVCG.2021.3114839 12
[49] S. Popinet, M. Smith, and C. Stevens. Experimental and numerical study of the turbulence characteristics of airflow around a research vessel. Journal of Atmospheric and Oceanic Technology, 21(10):1575–1589, 2004. doi:10.1175/1520-0426(2004)021<1575:EANSOT>2.0.CO;2 12
[50] P. Rosen, A. Seth, E. Mills, A. Ginsburg, J. Kamenetzky, J. Kern et al. Using contour trees in the analysis and visualization of radio astronomy data cubes. In I. Hotz, T. Bin Masood, F. Sadlo, and J. Tierny, eds., Topological Methods in Data Analysis and Visualization VI, pp. 87–108. Springer International Publishing, Cham, 2021. doi: 10.1007/978-3-030-83500-2_6 1
[51] M. Soler, M. Plainchault, B. Conche, and J. Tierny. Topologically controlled lossy compression. In 2017 IEEE International Parallel and Distributed Processing Symposium (IPDPS), pp. 46–55. IEEE, New York, 2018. doi: 10.1109/PacificVis.2018.00015 2
[52] S. W. Son, Z. Chen, W. Hendrix, A. Agrawal, W.-k. Liao, and A. Choudhary. Data compression for the exascale computing era — survey. Supercomputing Frontiers and Innovations, 1(2):76–88, 2014. doi: 10.14529/jsfi140205 2
[53] A. Szymczak. A categorical approach to contour, split and join trees with application to airway segmentation. In Topological Methods in Data Analysis and Visualization, pp. 205–216. Springer, Berlin, 2010. doi: 10.1007/978-3-642-15014-2_17 2
[54] D. Tao, S. Di, Z. Chen, and F. Cappello. Significantly improving lossy compression for scientific data sets based on multidimensional prediction and error-controlled quantization. In 2017 IEEE International Parallel and Distributed Processing Symposium (IPDPS), pp. 1129–1139. IEEE, New York, 2017. doi: 10.1109/IPDPS.2017.115 3
[55] J. Tierny, G. Favelier, J. A. Levine, C. Gueunet, and M. Michaux. The Topology ToolKit. IEEE Transactions on Visualization and Computer Graphics, 24(1):832–842, 2018. doi: 10.1109/TVCG.2017.2743938 2
[56] J. Tierny, M. Pont, T. Finken, J. Lukaczyk, T. B. Masood, J. Vidal et al. TTK data examples. https://github.com/topology-tool-kit/ttk-data, 2024. GitHub repository. Accessed 2026-04-01. 12
[57] S. Treichler, M. Bauer, A. Bhagatwala, G. Borghesi, R. Sankaran, H. Kolla et al. S3D-Legion: An exascale software for direct numerical simulation of turbulent combustion with complex multicomponent chemistry. In T. P. Straatsma, K. B. Antypas, and T. J. Williams, eds., Exascale Scientific Applications, pp. 257–278. Chapman and Hall/CRC, New York, 2017. doi: 10.1201/b21930-12 12
[58] L. Wang, Q. Guo, J. Zhao, S. Zhang, and L. Yang. The fast contour tree-based medical volume rendering method. Journal of Medical Imaging and Health Informatics, 8(7):1451–1455, 2018. doi: 10.1166/jmihi.2018.2454 2
[59] N. Wang, T. Liu, J. Wang, Q. Liu, S. Alibaba, and X. He. Locality-based transfer learning on compression autoencoder for efficient scientific data lossy compression. Journal of Network and Computer Applications, 205:103452:1–103452:12, 2022. doi: 10.1016/j.jnca.2022.103452 2
[60] D. Whalen and M. L. Norman. Ionization front instabilities in primordial H II regions. The Astrophysical Journal, 673(2):664–675, 2008. doi: 10.1086/524400 12
[61] M. Xia, S. Di, F. Cappello, P. Jiao, K. Zhao, J. Liu et al. Preserving topological feature with sign-of-determinant predicates in lossy compression: A case study of vector field critical points. In 2024 IEEE 40th International Conference on Data Engineering (ICDE), pp. 4979–4992. IEEE, New York, 2024. doi: 10.1109/ICDE60146.2024.00378 2
[62] M. Xia, B. Wang, Y. Li, P. Jiao, X. Liang, and H. Guo. TspSZ: An efficient parallel error-bounded lossy compressor for topological skeleton preservation. In 2025 IEEE 41st International Conference on Data Engineering (ICDE), pp. 3682–3695. IEEE, New York, 2025. doi: 10.1109/ICDE65448.2025.00275 2, 6, 22
[63] L. Yan, H. Guo, T. Peterka, B. Wang, and J. Wang. TROPHY: A topologically robust physics-informed tracking framework for tropical cyclones. IEEE Transactions on Visualization and Computer Graphics, 30(1):1249–1259, 2024. doi: 10.1109/TVCG.2023.3326905 1, 2
[64] L. Yan, X. Liang, H. Guo, and B. Wang. TopoSZ: Preserving topology in error-bounded lossy compression. IEEE Transactions on Visualization and Computer Graphics, 30(1):1302–1312, 2024. doi: 10.1109/TVCG.2023.3326920 1, 2, 4, 5, 9, 18, 19
[65] H. Yang, V. Baladandayuthapani, A. U. Rao, and J. S. Morris. Quantile function on scalar regression analysis for distributional data. Journal of the American Statistical Association, 115(529):90–106, 2020. doi: 10.1080/01621459.2019.1609969 2
[66] K. Zhao, S. Di, X. Lian, S. Li, D. Tao, J. Bessac et al. SDRBench: Scientific data reduction benchmark for lossy compressors. In 2020 IEEE International Conference on Big Data (Big Data), pp. 2716–2724. IEEE, New York, 2020. doi: 10.1109/BigData50022.2020.9378449 12, 21
[67] J. Zhou and M. Takatsuka. Automatic transfer function generation using contour tree controlled residue flow model and color harmonics. IEEE Transactions on Visualization and Computer Graphics, 15(6):1481–1488, 2009. doi: 10.1109/TVCG.2009.120 2
A SUPPLEMENTARY OVERVIEW
This supplement is organized as follows. We describe the datasets used in our experiments in Appx. B and provide additional details on our critical point extraction technique in Appx. C. We then describe how users can extend FeatureZ with new features in Appx. D and present formal correctness proofs in Appx. E. Additional experimental results are provided in Appx. F, followed by the parameter values used in our experiments in Appx. G.
B DESCRIPTIONS OF DATASETS
Our experimental study evaluates nine datasets across a range of compressor configurations.
The QMCPACK dataset is derived from the SDR bench [66] and is based on a QMCPACK continuum quantum Monte Carlo performance test [26, 27]. We select the 145th orbital (out of 288) and normalize it to [0, 1].
The Viscous Fingering dataset is obtained from the TTK data repository [56] and originates from the 2016 IEEE SciVis Contest [4].
The Tangaroa dataset consists of a single frame from a simulation of wind flow around the Research Vessel Tangaroa [49]. Wind speed serves as the scalar field, which we normalize to [0, 1].
The Earthquake dataset originates from the TeraShake 2 earthquake simulation [47] and was featured in the 2006 IEEE Visualization Design Contest [2]. It was subsequently processed by Pont et al. and released alongside their work [48]. The dataset captures a single time step of seismic activity along the San Andreas Fault; specifically, we use time step 011700. Prior to analysis, we normalize the data to the range [0, 1].
The Ionization dataset is derived from an ionization front simulation [60] and was included in the 2008 IEEE Visualization Design Contest [3]. It is obtained from the same repository as the Earthquake dataset. For our experiments, we use data from cluster 2 at time step 0125 and normalize it to [0, 1].
The Isabel dataset originates from a hurricane simulation conducted by the National Center for Atmospheric Research and was featured in the 2004 IEEE Visualization Contest [1]. Wind speed is used as the scalar field. While the original dataset has dimensions , we truncate it to to exclude land regions with negligible wind activity and normalize the data to [0, 1].
The Miranda dataset is accessed from the SDR bench. Density is used as the scalar field. It originates from a hydrodynamics code for large-scale turbulence simulations conducted at Lawrence Livermore National Laboratory.
The S3D dataset is obtained from the S3D turbulence simulation software [57]. It is a derived field based on data from the SDR bench; specifically, we compute speed from the velocity x, y, and z component fields.
The SCALE-LETKF dataset is accessed from the SDR bench. It originates from the Local Ensemble Transform Kalman Filter (LETKF) data assimilation package for the SCALE-RM weather model [38]. We use the QV field, which is upsampled to double precision.
C EXTRACTION OF CRITICAL POINTS
We describe our strategy for critical point extraction in 3D structured mesh. In our mesh structure, each point may have up to 14 distinct neighbors. Interior points have neighbors in all 14 positions, whereas boundary points have fewer. We index these positions consistently. For any , let denote the neighbor of at position , when it exists.
For interior points, we adopt a lookup-table strategy similar to [45]. For each interior point , we construct a 14-bit integer such that the -th bit is set to 1 if and to 0 otherwise. This encoding captures the structure of the upper and lower links of , allowing its criticality type to be determined entirely from . We precompute a lookup table such that returns the criticality type of .
This approach implicitly assumes that if the -th bit is 0, then exists and belongs to . However, for boundary points, a zero bit may also indicate that does not exist, leading to ambiguity and incorrect classifications.
To address this limitation, we use an alternative encoding for boundary points. For any , we represent a subset using a 14-bit integer , where the -th bit is set to 1 if and to 0 otherwise. This representation is unambiguous regardless of whether lies in the interior or on the boundary. From , we can reconstruct and use a lookup table to determine (i) the number of connected components in and (ii) whether is simply connected.
Accordingly, we define integers and that encode and , respectively. Using lookup tables, we compute (i) the number of connected components in each of and and (ii) whether each is simply connected. This information suffices to determine the criticality type of .
D DEFINING AND INCORPORATING NEW FEATURES
In this section, we describe how to add new features to FeatureZ. The high-level logic of FeatureZ is implemented in Python, while performance-critical kernels are written in C++ and exposed through custom bindings. Internally, scalar fields are represented as NumPy arrays, and new features must integrate with this representation.
Each feature in FeatureZ is represented by an instance of a Python Feature class. A feature instance stores metadata such as the feature description and its parameters. It also provides a function for determining whether the feature matches between two scalar fields, which is used to verify that the feature is preserved during compression. In addition, each instance includes a function for computing and exporting the feature. To add a new feature to FeatureZ, a user creates a new instance of this class. Although the matching and export functions are not strictly required for feature-preserving compression, they are convenient utilities that are typically used alongside it.
To enable preservation of a new feature during compression, the user must also implement functions for computing upper and lower bounds and for performing star classification. The bound computation function is written in Python and takes as input a NumPy array containing the ground-truth scalar field. It returns two NumPy arrays of the same shape containing the upper and lower bounds at each point, respectively. For efficiency, this function should be implemented using NumPy vectorized operations or custom C++ code.
Because star correction is performed inside a performance-critical loop during compression, the star classification function must be implemented in C++. It accepts two arrays of floating-point values representing the ground-truth and reconstructed stars, respectively, and returns the set of “bad” points. This set is encoded as a 16-bit unsigned integer, where the 15 least significant bits correspond to the points in the star. A bit is set to 1 if the corresponding point is classified as bad and to 0 otherwise.
Finally, the new functions must be integrated into the main pipeline by adding branches to two dispatch statements: one for upper and lower bound computation and another for star classification.
E CORRECTNESS PROOFS
In this section, we present proofs of FeatureZ's correctness. We begin by introducing the necessary definitions in Appx. E.1. Next, we establish the correctness of the main pipeline in Appx. E.2, followed by proofs for the preservation of individual features in Appx. E.3. Finally, we address the correctness of contour tree preservation, considerably more involved than the other features, in Appx. E.4.
E.1 Definitions
We first introduce the key definitions needed to establish the correctness of FeatureZ. As before, let X be a simply connected tetrahedral mesh, and let be a piecewise-linear (PL) scalar field, assumed to be injective on the vertices of X. Let denote the reconstructed field obtained after compression and decompression with FeatureZ. Let denote upper and lower bounds, respectively, and let be the star classification function. Finally, let P denote the maximum allowable precision for logarithmic scaling quantization.
During star correction, iteration can arise in two distinct contexts. First, when correcting an individual star, values are updated iteratively until the star is correctly classified. Second, multiple sweeps over the domain X may be required to ensure that all stars are correctly classified.
We use the terms iterations and passes to distinguish between these two processes.
During pass , let denote the set of points marked as dirty for that pass. The points that undergo star correction in pass are therefore exactly those in .
Definition 1. A point is in-bounds if it satisfies one of the following conditions:
(a)
(b)
One of the goals of FeatureZ is to enforce a pointwise global error bound . For simplicity, we assume that and . Under this assumption, any in-bounds point satisfies . Consequently, we omit explicit reference to in the remainder of the section.
Definition 2. A point is correctly classified if . Equivalently, is correctly classified if all points in are marked as good.
Definition 3. The classification function is nondegenerate if, whenever a set of vertices contains at least one point marked as bad, there exists such a for which .
E.2 Correctness of Main Pipeline
We now establish the correctness of the main pipeline. Specifically, we show that the pipeline always terminates and that, upon termination, every is in-bounds and correctly classified. This result alone does not guarantee the preservation of any particular features; such guarantees additionally depend on appropriate choices of , , and . We address the preservation of specific features in Appx. E.3.
Lemma 1. When a point is visited during logarithmic-scaling quantization, the quantization process terminates, and upon termination, is in-bounds.
Proof. Logarithmic-scaling quantization is an iterative procedure that repeatedly applies linear-scaling quantization with increasing precision levels . At each iteration, if , the process terminates. Otherwise, the precision is incremented and quantization continues.
If this termination condition is not satisfied after a fixed number of iterations, the process is truncated and . In either case, the procedure terminates, and upon termination, is in-bounds.
Lemma 2. Assume that is nondegenerate. Let be a point visited during iterative star correction. Then the correction process for terminates, and upon termination, is correctly classified.
Proof. When x is visited during star correction, the process proceeds through a sequence of iterations. In each iteration, termination occurs only if no points in are marked as bad. Consider an iteration in which some points are still marked as bad.
By the nondegeneracy assumption, if a set of points is marked as bad, then at least one such satisfies . This implies that , since otherwise would be stored losslessly.
Among all points marked as bad, let be one with minimal precision . Then , and during this iteration, its precision is incremented: . Therefore, at each iteration, the minimum precision among bad points strictly increases. Since is bounded above by , only finitely many such increments are possible.
Consequently, after a finite number of iterations, all points in will have precision exceeding P and hence will be stored losslessly, so no points remain marked as bad. This implies that star correction terminates.
Finally, since termination occurs only when no points in are marked as bad, it follows by assumption that is correctly classified upon termination.
Lemma 3. Assume that is nondegenerate. Suppose that at the beginning of pass , every incorrectly classified point belongs to . Then, at the beginning of pass , every incorrectly classified point belongs to .
Proof. During pass t, a point x is added to if either of the following conditions holds:
(a) is updated when a neighbor y undergoes star correction,
(b) x has a neighbor y whose value is updated at some point during the pass.
Let . We show that if neither (a) nor (b) holds, then is correctly classified at the end of pass . We consider two cases.
Case 1: . In this case, does not undergo star correction during pass . The value can only change either when itself is corrected or when a neighbor undergoes star correction. Since , the former does not occur. Because (a) is false, the latter does not affect either. Hence, remains unchanged throughout the pass.
Moreover, since (b) is false, none of the neighbors of x experience a change in value. Therefore, the values of over remain unchanged during the pass. Because x was not marked dirty at the start of the pass, it is correctly classified initially. Since the values on do not change, x remains correctly classified at the end of the pass.
Case 2: . In this case, undergoes star correction during pass . By Lemma 2, this ensures that is correctly classified immediately after correction. Since both (a) and (b) are false, no values in change for the remainder of the pass. Hence, remains correctly classified at the end of the pass.
In both cases, we conclude that if , then is correctly classified at the start of pass . Therefore, every incorrectly classified point must belong to .
Lemma 4. Each can be marked as dirty during only finitely many passes.
Proof. During pass , a vertex is added to only if there exists some whose value is updated. By reasoning analogous to that in the proof of Lemma 2, each such can undergo only finitely many value updates across all passes.
Since contains finitely many vertices, it follows that can be marked as dirty only finitely many times.
Theorem 1. If is nondegenerate, then the main pipeline terminates. Upon termination, every is correctly classified and in-bounds.
Proof. The first step of the main pipeline is initial quantization. By Lemma 1, this step terminates, and upon completion, every is in-bounds.
We then proceed to iterative star correction. During the first pass, every vertex belongs to , so all incorrectly classified points are marked as dirty. By repeatedly applying Lemma 3, it follows that at the start of each pass , every incorrectly classified point is contained in . If, for some pass , we have , then iterative star correction terminates. By Lemma 4, each can belong to only finitely many sets . Therefore, for sufficiently large , we must have , and star correction terminates. At that point, since no points are marked as dirty, Lemma 3 implies that all points are correctly classified.
It remains to show that all points remain in-bounds. Fix . After initial quantization, is in-bounds. During star correction, the value of may change only if logarithmic-scaling quantization is applied to . By definition, this procedure preserves the bounds. Hence, remains in-bounds throughout star correction, and therefore is in-bounds upon termination.
Finally, the remaining step of the pipeline is lossless compression, which does not modify the values of . This completes the proof. ☐
E.3 Correctness of Individual Feature Preservation
We now establish the correctness of individual feature preservation. For each feature , we verify the following:
(a) is nondegenerate (ensuring termination),
(b) if every is correctly classified and in-bounds, then (ensuring that the feature is preserved).
Theorem 2. FeatureZ correctly preserves critical points.
Proof. By construction, is marked as bad if and only if there exists some that is marked as bad. A vertex is marked as bad if and only if
If and , then this xor ( ) condition is false. Hence, whenever is marked as bad, it must be that either or . Therefore, is nondegenerate.
Now suppose that some has an incorrect criticality type in . Then there exists a vertex whose classification relative to is inconsistent between and ; that is, in one field and in the other. By construction, such a is marked as bad. Consequently, if no points in are marked as bad, then no such inconsistency exists, and must have the correct criticality type in .
Thus, if every is correctly classified, then every has the same criticality type in as in , which is equivalent to preserving all critical points.
Theorem 3. FeatureZ correctly preserves Morse–Smale segmentation.
Proof. We first show that is nondegenerate. Suppose that some is marked as bad. By construction, this occurs if at least one of the following holds:
(i) x is inconsistently classified as a minimum or maximum between f and ,
(ii) the largest vertex in differs between f and ,
(iii) the smallest vertex in differs between f and .
We show that in each case there exists a bad such that . Case (i) follows as in the proof of Theorem 2. For case (ii), let and denote the largest vertices in with respect to and , respectively, with . Then while . This reversal is only possible if either or . Case (iii) is analogous. Therefore, is nondegenerate.
We now show that if all points are correctly classified, then the Morse–Smale segmentation is preserved. It suffices to show that all forward and backward integral lines are identical in and . We represent an integral line as a sequence of vertices in . Let and be integral lines of and , respectively, with . We show that these sequences coincide.
Let . We prove by induction that for all . The base case is immediate. Assume for some . Since , the vertex is not a maximum in , so is the largest vertex in with respect to . Similarly, is the largest vertex in with respect to . Because is correctly classified, these largest neighbors agree in and . Since , it follows that .
Thus, for all . Without loss of generality, assume . Then is a maximum in . Since and is correctly classified, is also a maximum in , implying . Hence, the two integral lines coincide.
Therefore, all forward integral lines agree between and . By an analogous argument, all backward integral lines also agree. This establishes that the Morse–Smale segmentation is preserved.
Theorem 4. FeatureZ correctly preserves local order.
Proof. As with critical points, by construction a vertex is marked as bad if and only if there exists some that is marked as bad. A vertex is marked as bad if and only if
where denotes exclusive or (xor).
If and , then the two inequalities agree, and hence the above condition is false. Therefore, no such y is marked as bad, and it follows that is nondegenerate.
We now verify that all “less-than” relationships are preserved. Suppose, for contradiction, that some such relationship is not preserved. Then there exist adjacent vertices such that but . Equivalently, with respect to , while with respect to . In this situation, the xor condition above holds, so is marked as bad.
Consequently, if no vertices are marked as bad, all “less-than” relationships are preserved.
Theorem 5. FeatureZ correctly preserves isocontours. In particular, let be a simplex and let be an isovalue whose isocontour is preserved. If every is in-bounds, then intersects if and only if intersects .
Proof. Since isocontour preservation does not involve star correction, it is not necessary to establish nondegeneracy of .
Let denote the vertices of . In the PL setting, whether intersects is determined by whether each is greater than, less than, or equal to .
Fix a vertex . If , then by construction . Since is in-bounds, it follows that . Similarly, if , then , and thus . Finally, if , then by construction .
Therefore, for each vertex , the relative ordering of with respect to agrees with that of . Since this holds for all vertices of , it follows that intersects if and only if intersects .
Theorem 6. FeatureZ correctly preserves quantiles.
Proof. Quantile bounds are preserved by first computing the quantile values and then applying the same isocontour construction procedure using those quantile thresholds. Under this approach, preservation is defined pointwise: for a given quantile level, each point is constrained relative to the corresponding quantile value according to its position in the ground truth distribution—points above the quantile are bounded from below by the quantile value, and points below the quantile are bounded from above by it.
Since quantile preservation does not involve star correction, it is not necessary to establish the nondegeneracy of .
Let and fix . Let be a quantile value selected by FeatureZ that separates the smallest points from the largest points, so that
We claim that
First, suppose that . Then and , which implies that . Hence . Conversely, suppose that . Then and , which implies that . Hence .
Therefore,
It follows that the threshold s separates the m smallest points from the n - m largest points for both f and . Thus, quantiles are preserved.
E.4 Correctness of Contour Tree Preservation
We now establish the correctness of contour tree preservation. We begin by introducing notation and preliminary results in Sec. E.4.1. Next, we define the upper and lower bounds and present the necessary lemmas in Sec. E.4.2. Finally, we prove the main correctness result in Sec. E.4.3.
E.4.1 Preliminaries and Notation
We begin by introducing preliminary definitions and notation related to merge and contour trees. We assume that the reader is familiar with the standard definitions of simplicial complexes, merge trees, contour trees, and persistence simplification. Given a function , let and denote its merge tree and contour tree, respectively. Following [14], the merge tree of , , is sometimes referred to as the join tree, and the merge tree of , , as the split tree.
To avoid ambiguity, we use the term node exclusively to refer to a vertex of a merge or contour tree. Vertices of the domain—the simplicial complex X—are referred to as vertices. We refer to interior nodes of as join saddles, and interior nodes of as split saddles. We assume that each interior node of a merge tree has exactly two children, although the same logic can easily be extended to the special case where a node has more than two children.
Let denote the canonical map that sends each to its corresponding point in . If is a node of , then there exists a unique vertex such that . By a slight abuse of notation, we use the same symbol to refer to both objects; that is, we may write to denote either the node in or its preimage in .
We represent an edge in the merge tree as an ordered pair with . The set corresponds to the region of the merge-tree-induced segmentation associated with this edge. For brevity, we denote this region by .
Let be augmented with the vertices of . Define similarly. Then is computed by combining and [14].
Persistence simplification can be defined and implemented in many ways. To prevent ambiguities, we define our implementation here, although we believe that our proofs could be extended to other implementations. Let be a persistence threshold. We construct a persistence simplified merge tree by pruning branches of low persistence. We construct a persistence simplified contour tree by combining and using the procedure from [14].
We now define the persistence simplified merge-tree-induced segmentation. Let . Let be the lowest ancestor of in that is also a node in . will have two children. Let be the child of that lies in the connected component of as . Then we say that .
E.4.2 Supporting Lemmas
We first prove some lemmas about the merge-tree-induced segmentation.
Lemma 5. Let be an edge of and let . Let . Suppose that there is a path from to that never takes a function value above . Then descends from in , and lies in the same connected component of as .
Proof. Since , this implies that is an ancestor of in . Thus, there is a path connecting to that does not exceed . If we combine with , we can derive a path connecting to that does not exceed a function value of . Thus, must descend from in . Since is part of this path, it also follows that and must lie in the same connected component of the sublevel set .
Lemma 6. Let be an edge and . Let , and suppose that there is a path from to that does not intersect an isocontour with isovalue or . Then
Proof. Since , this implies that is a descendant of in . Thus, . Since the path contains and never intersects a contour with isovalue , it holds that is less than on all of . Thus, by Lemma 5, must be a descendant of in

Figure 6: Illustration of Lemma 7
and lies in the same connected component of as and .
We are only left to show that is the lowest ancestor of in that is also a vertex in . Suppose not. Then . In this case, will have exactly one child in that is an ancestor of in . Since lies in the same component of the sub-level set of as , this child must be . Thus, is a descendant of in and . The path from to does not cross any contour with isovalue , so must take a function value below for its entirety. By Lemma 5, is a descendant of in , which is a contradiction.
Corollary 1. Let be an edge of . Then the boundary of is composed of contours with isovalue and .
Lemma 7. Suppose that and are two adjacent vertices of with . Suppose that and belong to different edges and of . Let be the path traveling from to along the line segment that connects them. Let and respectively be the points at which leaves and enters . These points are illustrated in Fig. 6. Then
Proof. Since is PL, then will strictly increase along from to . By assumption, .
Notice that the path connects to without taking a function value above . Since descends from in , then by Lemma 5, also must descend from in and lies in the same connected component of as and . Since also descends from in , this implies that either descends from or descends from in .
If descends from , then because is the child of in , it must hold that . Likewise, since is the child of in , and also lies the same connected component of as , it would need to follow that lies between and in , or , forcing . Using similar reasoning, if it held that was instead a descendant of in , then it would instead hold that .
By Corollary 1, either or , so . We also know that because increases on . And by assumption, . Chaining these inequalities yields , so . This forces .
By Corollary 1, either or . Since comes before on , it follows that . Since , this implies that . Thus, . And therefore, we have that .
We now show that . We check two cases for .
case 1: : In this case, no contour with isovalue can intersect p, forcing .
Case 2: : since , there must be some point on such that . There is a clear path from to that does not take a function value above (namely, along the segment connecting to ). From Lemma 5, this implies that is a descendant of that lies in the same connected component of as (and thus ). Since is a child of , if was not the lowest ancestor of in that is also a node in , then would also be a descendant of a in . However, this is impossible since . Thus, . Since , and must be on the same side of , meaning that .
Combining inequalities gives the result.
We now give a formal definition of our upper and lower bounds.
Definition 4. For a given , let and denote the endpoints of the edge of to which belongs. Let and denote the endpoints of the edge of to which belongs. We say that a function is -bounded if the following conditions hold:
(a) If x is a node of , then .
(b) If x is not a node of :
(i)
(ii) If then ; otherwise, if , then .
(ii) If , then ; otherwise, if , then .
From this point onward, we assume that is -bounded for some . We also assume that satisfies a global error bound , namely .
Lemma 8. Let be a simplex and be a saddle. Suppose that intersects a contour with isovalue that serves as the boundary between two segmentation regions and . Then intersects the contour with isovalue in .
Proof. We check cases based on the dimension of .
Case 1: is a 0-simplex: In this case, is a vertex of . Since is injective on the vertices of , this implies that . By assumption, .
Case 2: is a 1-simplex: In this case, let and be its endpoints with . Without loss of generality, suppose that and . Let , and be as in the statement of Lemma 7. By Lemma 7, . Let be the point along that intersects the contour with isovalue . Since , the path must intersect (the boundary of that region) prior to intersecting (which is itself a region boundary). Thus, . Similarly, .
From our bounds, . Since , it also holds that . Thus, there exists some point on the segment between and such that .
Case 3: is a 2-simplex or 3-simplex: Since is PL, the contour with isovalue must intersect one of the 0 or 1 dimensional faces of . Appealing to cases 1 and 2, that contour must thus intersect the same face in , and thus it will also intersect .
Lemma 9. Suppose that is a merge saddle in and is a vertex where descends from in . Then there is a path from to that never takes a function value (in ) above (except for the endpoint ).
Proof. Let be a path from to that never takes a function value (in ) above except for at the endpoint . We know that such a path exists because descends from . Let be the (not necessarily distinct) simplices that passes through, ordered in terms of when intersects them (so and ). Order the so that is either a face or co-face of . For each , let be the vertex of with the lowest function value (in ). Then it must follow that for all , except for where . Since each is a face or co-face of , the are all adjacent vertices of .
Let be the path formed by connecting the in order by line segments. Since each is adjacent to , the segment of between and will take values of that interpolate linearly between and . Since each , this implies that the entire path takes a function value (in ) below except for the endpoint . Thus, each is a descendant of in . Therefore, each belongs to some edge of with .
From the error bounds, for each except , we either have or . In either case, . And also, . Thus, the path will also never take a function value (in ) above , except for at the initial point where .
Lemma 10. Let be two points. Let be the least common ancestor of and in . Suppose that is also a node in . Suppose that and lie in different connected components of the sub-level set . Then and lie in different connected components of the sub-level set .
Proof. Let and be the two connected components of that contain and . Let be the set of edges that descend from in whose lower endpoints lie in . Clearly, if and , then . It is also easy to show that any point in will belong to at least one edge in . Thus, .
Let be a path from to . The path must leave at some point. It will cross the boundary of at some point in some simplex . Clearly, . Since , every point in the boundary of is part of the boundary of some for some . Thus, there exists some where lies on the boundary of . By Lemma 8, the path must cross a point with . Since this holds for all paths between and , it follows that and lie in different connected components of .
Lemma 11. Let be a split saddle in that pairs with minimum . Then is a vertex of that pairs with minimum .
Proof. Let and be nodes of that descend from yet are in different connected components of . By Lemma 10, these two points are in different connected components of the sub-level set . However, by Lemma 9, they lie in the same connected component of . This implies that a merge event happens at in so is a vertex of .
We now show that pairs with minimum in . Let and be the two connected components of incident to . Let and be the corresponding sets for . We show that the lowest point in each is the same as in the . Because and are piecewise-linear, all the minima in their merge trees are vertices of , and so the lowest points in each set will be vertices of . Let be the lowest point in . Then is a vertex of . From Lemma 9, a vertex of satisfies if and only if . Thus, . Let be a vertex of with . Then belongs to some edge of that is a descendant of . Notice that and . If , then from the error bounds, . If , then from the bounds . Thus, each vertex in other than will have a value in greater than . So is the lowest point in . Similarly, will be the lowest point in .
Between the two lowest points in and , will pair (in ) with whichever has a higher function value. Similarly, between the two lowest points in and , will pair (in ) with whichever has a higher function value. Since the lowest points in and are the same as in and (namely, and ). Since and are minima in , by construction and . Thus, will pair with the same point in and . Call it
Since and , the pair will have the same persistence in both and , namely, . And therefore, the pair will have a persistence above in and both will be vertices of .

Figure 7: An illustration of the proof of Lemma 12.
Lemma 12. Let , be local minima of with . Suppose that has persistence . Let be a path from to . Then
Proof. Let be the least common ancestor of and in , as illustrated in Fig. 7. For any threshold , nodes and lie in distinct connected components of . Therefore, any path from to must pass through some point with . Hence,
Let be the connected component of that contains . Since , is not the global minimum of . Thus, is paired with some saddle satisfying .
Combining these inequalities, we obtain
Lemma 13. Suppose that m is a minimum of and is not a node of . Then m has persistence at most in .
Proof. Let be the lowest descendant of in , and let be the lowest descendant of in . Then
Let s be the least common ancestor of and in (see Fig. 8).

Case 1

Case 2
Figure 8: Illustration of the objects constructed in the proof of Lemma 13.
Let be a path from to passing through that never exceeds the value . Such a path exists because and lie in the same connected component of . Similarly, let be a path from to that never exceeds . Concatenating with yields a path from to , whose maximum function value is .
Let be the parent of in . Then and lie in the same connected component of , and is the minimum of this component. In , lies on some edge with . By the -boundedness of it follows that either or . Since , we conclude that .
Moreover, by Lemma 11, is a minimum of . We now consider two cases.
Case 1: . In this case, attains a maximum value of in , and hence at most in . Also, . Since connects the minimum to the lower minimum , Lemma 12 implies that the persistence of in is at most
Case 2: . In this case, , and the path decreases monotonically from to , never exceeding . Thus, in , the maximum value along is at most , and . Applying Lemma 12, the persistence of in is at most
Finally, since is removed during persistence simplification, the persistence of the pair is at most , i.e., . Combining the above bounds yields that the persistence of in is at most
This completes the proof.
□
E.4.3 Proof of Main Result
Theorem 7. FeatureZ correctly preserves simplified contour trees.
Proof. Since preservation of the simplified contour tree does not involve star correction, it is not necessary to establish nondegeneracy of .
We construct to be -bounded. By Lemma 11, all extrema and saddles in will be present in , while Lemma 9 and Lemma 10 demonstrates that all ancestor-descendant relationships will be preserved between them. Conversely, by Lemma 13, any extremum of that is not a node of has persistence at most . Thus, each saddle in pairs with an extremum in , and no additional extremum–saddle pairs with persistence exceeding are introduced.
Moreover, we can use Lemma 9 and Lemma 10 to show that will match and will match . It follows that .
Theorem 8. FeatureZ correctly preserves contour trees without simplification.
Proof. The function ensures that the set of extrema is identical for and . The correctness and nondegeneracy of follow by arguments analogous to those in Theorem 2.
We construct to be 0-bounded. By Lemma 11, every node of remains a node of . Since and have exactly the same set of extrema, cannot contain any additional nodes beyond those in . Therefore, and have identical node sets.
Moreover, Lemma 9 and Lemma 10 ensures that and will match and , so will match .
F ADDITIONAL EXPERIMENTS
In this section, we present additional experiments. Specifically:
• We present bit-rate versus PSNR curves for every preserved feature and dataset (i.e., the counterparts of Fig. 4 for all datasets) in Appx. F.1.
• We present a runtime breakdown of FeatureZ when augmenting each base compressor, together with a throughput comparison between existing feature-preserving compressors and FeatureZ augmenting each base compressor in Appx. F.2.
-
We present an ablation study comparing linear and logarithmic quantization, as well as the contribution of each pipeline stage to storage overhead and feature preservation, in Appx. F.3.
-
We analyze the sensitivity of FeatureZ to feature-specific parameters, namely the persistence threshold for simplified contour tree preservation and the number of isovalues for isocontour preservation, in Appx. F.4.
-
We present bit-rate versus feature-error curves for each base compressor, together with the feature-error percentages achieved by the base compressors at bit-rates comparable to those of FeatureZ, in Appx. F.5.
-
We evaluate FeatureZ when augmenting the neural compressor Neurcomp [44] in Appx. F.6.
-
We compare FeatureZ with TopoSZp [5] in Appx. F.7.
To improve readability, some very large figures and tables were moved to the end of the document.
F.1 Reconstruction Quality
We present rate-distortion curves, showing the trade-off between bit rate and PSNR, for every compressor and feature evaluated in Fig. 16. We include four variants of FeatureZ: FeatureZ (ZFP), FeatureZ (SZ3), FeatureZ (SPERR), and FeatureZ (HPEZ). Where applicable, we also compare against state-of-the-art topology-preserving compressors TopoA, pMSz, QPET, and LOPC. For reference, we include the baseline compressors ZFP, SZ3, SPERR, and HPEZ, which do not enforce feature preservation. For each (feature, dataset, compressor) combination, we remove dominated points—i.e., those with both higher bit rate and lower PSNR than another point—thereby filtering out strictly suboptimal configurations; see Appx. G.
F.2 Runtime Analysis
F.2.1 Runtime for FeatureZ (ZFP), FeatureZ (SPERR), and FeatureZ (HPEZ)
We report the runtime of FeatureZ (ZFP), FeatureZ (SPERR), and FeatureZ (HPEZ) across different stages of the pipeline in Tab. 12. Compression and decompression throughput for ZFP is reported in Tab. 6 and Tab. 7, respectively, together with those of other feature-preserving compressors that augment ZFP, as well as LOPC. Corresponding results for SPERR and HPEZ are reported in Tab. 8 and Tab. 9, and Tab. 10 and Tab. 11, respectively. Since pMSz is an experimental implementation that supports only compression, we do not report decompression throughput. We also note that pMSz is available only as a GPU implementation.
Table 6: Compression throughput for FeatureZ (ZFP) across nine datasets while preserving seven features. C.T.: simplified contour tree ( ). M.S.: Morse–Smale segmentation. L.O.: local order. C.P.: critical points. Per.: percentiles. Com.: combined feature of the simplified contour tree ( ) and Morse–Smale segmentation.
| dataset | C.T. | M.S. | L.O. | C.P. | I.S. | Per. | Com. | T.A. | pMSz | LOPC |
|---|---|---|---|---|---|---|---|---|---|---|
| QMCPACK | 7.8 | 28.1 | 28.8 | 43.1 | 66.5 | 37.6 | 5.5 | 2.5 | 863.2 | 168.0 |
| Viscous Fingering | 7.7 | 7.0 | 7.2 | 10.2 | 54.7 | 11.9 | 4.0 | 2.2 | 183.7 | 5.6 |
| Tangaroa | 9.8 | 14.9 | 12.8 | 25.4 | 49.3 | 25.7 | 7.2 | 2.3 | 188.0 | 102.3 |
| Earthquake | 11.4 | 8.8 | 13.0 | 13.3 | 52.7 | 28.9 | 5.8 | 2.6 | 649.5 | 150.8 |
| Ionization | 19.9 | 6.8 | 9.3 | 8.0 | 57.1 | 37.3 | 7.1 | 3.0 | 91.6 | 57.0 |
| Isabel | 7.6 | 9.1 | 11.6 | 20.1 | 33.0 | 14.8 | 4.3 | 2.0 | 1104.5 | 104.7 |
| Miranda | 5.1 | 1.9 | 2.9 | 3.0 | 115.7 | 3.9 | 1.8 | 1.1 | 400.2 | 65.1 |
| S3D | 17.0 | 12.5 | 27.2 | 42.6 | 69.5 | 39.9 | 12.4 | 4.1 | 55.0 | 139.0 |
| SCALE-LETKF | 11.8 | 7.2 | 11.7 | 14.3 | 47.7 | 26.8 | 6.9 | 2.6 | 476.5 | 206.5 |
Table 7: Decompression throughput for FeatureZ (ZFP) across nine datasets while preserving seven features. Labels are consistent with Tab. 6.
| dataset | C.T. | M.S. | L.O. | C.P. | I.S. | Per. | Com. | T.A. | LOPC |
|---|---|---|---|---|---|---|---|---|---|
| QMCPACK | 107.8 | 99.4 | 121.0 | 136.8 | 140.8 | 124.4 | 91.1 | 85.6 | 470.9 |
| Viscous Fingering | 125.5 | 97.4 | 85.5 | 97.5 | 121.0 | 93.1 | 94.2 | 118.8 | 442.8 |
| Tangaroa | 84.6 | 73.1 | 76.7 | 105.0 | 104.2 | 83.0 | 76.2 | 118.6 | 353.3 |
| Earthquake | 118.0 | 116.4 | 100.0 | 126.9 | 149.6 | 109.1 | 120.7 | 143.7 | 492.8 |
| Ionization | 163.3 | 111.0 | 122.1 | 167.1 | 169.0 | 142.8 | 106.2 | 222.0 | 472.0 |
| Isabel | 68.2 | 49.9 | 65.6 | 95.6 | 99.8 | 65.4 | 53.4 | 115.4 | 367.9 |
| Miranda | 230.0 | 75.3 | 70.7 | 77.9 | 218.9 | 83.6 | 82.8 | 295.1 | 506.0 |
| S3D | 165.8 | 166.4 | 158.3 | 193.4 | 203.7 | 170.5 | 164.6 | 246.4 | 525.9 |
| SCALE-LETKF | 138.0 | 80.6 | 80.5 | 127.9 | 177.9 | 136.6 | 79.1 | 203.0 | 542.1 |
Table 8: Compression throughput for FeatureZ (SPERR) across nine datasets while preserving seven features. Labels are consistent with Tab. 6.
| dataset | C.T. | M.S. | L.O. | C.P. | I.S. | Per. | Com. | T.A. | LOPC | QPET |
|---|---|---|---|---|---|---|---|---|---|---|
| QMCPACK | 8.1 | 30.9 | 29.4 | 50.8 | 52.8 | 43.2 | 6.2 | 2.5 | 168.0 | 89.3 |
| Viscous Fingering | 7.6 | 6.3 | 6.4 | 6.5 | 45.5 | 11.3 | 3.8 | 1.9 | 5.6 | 84.4 |
| Tangaroa | 10.3 | 13.6 | 12.0 | 22.5 | 41.5 | 22.5 | 7.1 | 2.3 | 102.3 | 53.5 |
| Earthquake | 11.8 | 8.2 | 11.0 | 11.1 | 55.9 | 32.0 | 5.6 | 2.6 | 150.8 | 55.0 |
| Ionization | 19.5 | 6.1 | 8.4 | 8.5 | 47.0 | 34.0 | 6.7 | 2.5 | 57.0 | 36.5 |
| Isabel | 11.0 | 13.9 | 14.9 | 26.0 | 55.9 | 25.3 | 5.1 | 2.1 | 104.7 | 66.2 |
| Miranda | 5.1 | 1.8 | 2.8 | 2.7 | 63.4 | 4.0 | 1.8 | 0.9 | 65.1 | 53.7 |
| S3D | 19.8 | 14.1 | 33.2 | 58.7 | 120.0 | 60.8 | 15.1 | 4.3 | 139.0 | 134.5 |
| SCALE-LETKF | 14.2 | 6.8 | 11.9 | 15.0 | 98.7 | 37.1 | 6.7 | 2.1 | 206.5 | 52.6 |
Table 9: Decompression throughput for FeatureZ (SPERR) across nine datasets while preserving seven features. Labels are consistent with Tab. 6.
| dataset | C.T. | M.S. | L.O. | C.P. | I.S. | Per. | Com. | T.A. | LOPC | QPET |
|---|---|---|---|---|---|---|---|---|---|---|
| QMCPACK | 148.3 | 122.4 | 139.1 | 173.0 | 173.8 | 143.8 | 121.2 | 89.8 | 470.9 | 259.2 |
| Viscous Fingering | 77.1 | 63.3 | 67.9 | 88.3 | 119.7 | 75.6 | 61.6 | 72.1 | 442.8 | 128.4 |
| Tangaroa | 78.5 | 64.3 | 63.3 | 92.3 | 91.5 | 76.5 | 67.1 | 90.4 | 353.3 | 124.1 |
| Earthquake | 110.0 | 56.9 | 82.5 | 120.1 | 154.7 | 88.6 | 61.5 | 113.9 | 492.8 | 99.7 |
| Ionization | 146.7 | 91.1 | 99.8 | 137.7 | 147.7 | 122.1 | 97.8 | 157.1 | 472.0 | 43.9 |
| Isabel | 84.5 | 60.0 | 79.1 | 100.9 | 101.7 | 80.9 | 61.6 | 105.8 | 367.9 | 149.8 |
| Miranda | 163.3 | 63.6 | 60.2 | 64.0 | 168.3 | 64.3 | 62.7 | 205.5 | 506.0 | 92.7 |
| S3D | 190.3 | 169.6 | 182.8 | 208.7 | 214.8 | 194.2 | 167.7 | 254.8 | 525.9 | 286.6 |
| SCALE-LETKF | 140.8 | 71.5 | 72.6 | 122.1 | 192.9 | 130.3 | 71.5 | 173.6 | 542.1 | 83.2 |
Table 10: Compression throughput for FeatureZ (HPEZ) across nine datasets while preserving seven features. Labels are consistent with Tab. 6. QPET did not finish on the ionization dataset for unknown reasons.
| dataset | C.T. | M.S. | L.O. | C.P. | I.S. | Per. | Com. | LOPC | QPET |
|---|---|---|---|---|---|---|---|---|---|
| QMCPACK | 7.9 | 25.8 | 25.6 | 46.9 | 64.5 | 44.1 | 7.0 | 168.0 | 87.3 |
| Viscous Fingering | 8.0 | 7.0 | 7.0 | 6.4 | 63.9 | 13.3 | 4.0 | 5.6 | 122.4 |
| Tangaroa | 10.8 | 14.5 | 15.5 | 22.5 | 48.5 | 28.7 | 7.1 | 102.3 | 97.3 |
| Earthquake | 12.4 | 9.8 | 12.6 | 10.6 | 75.6 | 42.2 | 6.0 | 150.8 | 109.9 |
| Ionization | 20.8 | 8.8 | 8.5 | 8.1 | 52.1 | 42.3 | 6.7 | 57.0 | - |
| Isabel | 11.1 | 13.8 | 16.2 | 30.5 | 62.8 | 26.6 | 7.0 | 104.7 | 93.2 |
| Miranda | 5.1 | 2.7 | 3.0 | 2.8 | 109.5 | 4.2 | 1.8 | 65.1 | 128.4 |
| S3D | 19.6 | 33.2 | 30.5 | 67.0 | 119.8 | 54.8 | 14.4 | 139.0 | 188.2 |
| SCALE-LETKF | 14.0 | 6.7 | 11.3 | 27.4 | 109.9 | 40.5 | 6.6 | 206.5 | 163.4 |
Table 11: Decompression throughput for FeatureZ (HPEZ) across nine datasets while preserving seven features. Labels are consistent with Tab. 6. QPET did not finish on the ionization dataset for unknown reasons.
| dataset | C.T. | M.S. | L.O. | C.P. | I.S. | Per. | Com. | LOPC | QPET |
|---|---|---|---|---|---|---|---|---|---|
| QMCPACK | 154.5 | 132.2 | 135.4 | 182.2 | 177.5 | 158.7 | 96.9 | 470.9 | 336.0 |
| Viscous Fingering | 137.7 | 102.6 | 99.2 | 119.0 | 178.5 | 112.3 | 95.9 | 442.8 | 243.7 |
| Tangaroa | 113.4 | 89.4 | 88.5 | 129.7 | 132.2 | 112.1 | 87.5 | 353.3 | 366.2 |
| Earthquake | 191.1 | 105.1 | 120.9 | 131.9 | 187.5 | 133.6 | 104.9 | 492.8 | 212.2 |
| Ionization | 191.4 | 118.4 | 111.3 | 162.9 | 181.8 | 158.3 | 116.5 | 472.0 | - |
| Isabel | 114.7 | 101.4 | 109.4 | 133.2 | 130.7 | 117.8 | 99.0 | 367.9 | 361.3 |
| Miranda | 207.6 | 69.5 | 69.6 | 73.7 | 227.3 | 79.1 | 71.4 | 506.0 | 273.1 |
| S3D | 224.4 | 193.5 | 212.3 | 242.9 | 241.6 | 230.6 | 191.3 | 525.9 | 611.9 |
| SCALE-LETKF | 168.0 | 93.9 | 110.3 | 162.7 | 230.1 | 166.4 | 107.6 | 542.1 | 337.9 |
F.2.2 Error-Bound Versus Compression Time
In Fig. 11, we visualize the trade-off between error bound and compression throughput for FeatureZ augmenting ZFP, SZ3, SPERR, and HPEZ while preserving each feature on three representative datasets: QMCPACK, Viscous Fingering, and Isabel. Overall, varying the error bound can significantly impact compression throughput. However, no consistent trend emerges: increasing the error bound may lead to higher, lower, or largely unchanged throughput depending on the configuration.
F.3 Ablation Study
F.3.1 Linear- versus Logarithmic-Scaling Quantization
We compare the current implementation of FeatureZ, which uses logarithmic-scaling quantization, with a simpler variant based on linear-scaling quantization. Throughout the FeatureZ pipeline, each point is assigned upper and lower bounds that may be progressively tightened. Our linear-scaling implementation is similar to that of TopoSZ [64]. Specifically, for each point , we employ standard linear-scaling quantization using intervals of width . If the produced value does not satisfy the upper and lower bounds for , then we store losslessly. TopoSZ uses intervals of width instead of the standard , but in preliminary testing we found that using the standard performed better.
Table 12: Runtimes (in seconds) for FeatureZ (ZFP), FeatureZ (SPERR), and FeatureZ (HPEZ) across different stages of the pipeline. Bounds: upper and lower bound computation. B.C.C.: base compressor compression. B.C.D.: base compressor decompression. Quant.: initial quantization. Star: iterative star correction. L.L.: lossless storage.
| Dataset | Bounds | B.C.C. | B.C.D. | Quant. | Star | L.L. | Total |
|---|---|---|---|---|---|---|---|
| ZFP | |||||||
| QMCPACK | 0.47 | 0.02 | 0.01 | 0.00 | 0.05 | 0.07 | 0.62 |
| Viscous Fingering | 1.72 | 0.05 | 0.05 | 0.01 | 0.86 | 1.47 | 4.15 |
| Tangaroa | 1.87 | 0.14 | 0.08 | 0.01 | 0.61 | 0.87 | 3.58 |
| Earthquake | 1.83 | 0.08 | 0.08 | 0.01 | 1.36 | 1.50 | 4.87 |
| Ionization | 1.50 | 0.11 | 0.07 | 0.02 | 2.76 | 1.28 | 5.74 |
| Isabel | 6.22 | 0.50 | 0.31 | 0.07 | 2.05 | 6.55 | 15.70 |
| Miranda | 55.94 | 0.89 | 0.47 | 0.12 | 35.47 | 73.79 | 166.69 |
| S3D | 37.13 | 3.11 | 1.71 | 0.54 | 11.79 | 26.31 | 80.62 |
| SCALE-LETKF | 58.77 | 3.49 | 2.42 | 0.60 | 29.10 | 69.17 | 163.57 |
| SPERR | |||||||
| QMCPACK | 0.47 | 0.04 | 0.02 | 0.00 | 0.06 | 0.04 | 0.62 |
| Viscous Fingering | 1.72 | 0.15 | 0.14 | 0.01 | 1.04 | 1.31 | 4.37 |
| Tangaroa | 1.86 | 0.33 | 0.22 | 0.01 | 0.75 | 0.49 | 3.67 |
| Earthquake | 1.84 | 0.34 | 0.25 | 0.01 | 1.63 | 0.97 | 5.03 |
| Ionization | 1.51 | 0.28 | 0.17 | 0.02 | 3.16 | 0.94 | 6.09 |
| Isabel | 6.16 | 1.17 | 0.79 | 0.07 | 2.25 | 1.79 | 12.23 |
| Miranda | 56.12 | 2.21 | 1.48 | 0.13 | 38.24 | 71.31 | 169.49 |
| S3D | 37.40 | 4.76 | 2.79 | 0.52 | 12.05 | 8.73 | 66.27 |
| SCALE-LETKF | 58.20 | 10.24 | 7.83 | 0.59 | 44.23 | 47.50 | 168.62 |
| HPEZ | |||||||
| QMCPACK | 0.45 | 0.04 | 0.02 | 0.00 | 0.07 | 0.05 | 0.63 |
| Viscous Fingering | 1.70 | 0.08 | 0.07 | 0.01 | 1.06 | 1.30 | 4.22 |
| Tangaroa | 1.85 | 0.16 | 0.10 | 0.01 | 0.88 | 0.64 | 3.64 |
| Earthquake | 1.81 | 0.14 | 0.09 | 0.01 | 1.68 | 0.94 | 4.67 |
| Ionization | 1.51 | 0.16 | 0.09 | 0.02 | 3.29 | 1.00 | 6.08 |
| Isabel | 6.20 | 0.70 | 0.43 | 0.07 | 2.40 | 3.05 | 12.86 |
| Miranda | 56.14 | 1.22 | 0.82 | 0.13 | 37.92 | 72.68 | 168.91 |
| S3D | 37.16 | 3.93 | 1.87 | 0.52 | 13.30 | 12.70 | 69.53 |
| SCALE-LETKF | 58.09 | 4.75 | 3.94 | 0.59 | 49.13 | 54.18 | 170.71 |
We evaluate this variant against the standard implementation of FeatureZ while augmenting all four base compressors and preserving the seven features considered in the main paper. Results for three representative datasets are shown in Fig. 12. Overall, logarithmic-scaling quantization provides better rate–distortion performance than linear-scaling quantization. However, the two approaches perform nearly identically for Morse–Smale segmentation, local order preservation, and critical point preservation. These are precisely the features that rely solely on star correction, suggesting that the additional precision afforded by logarithmic-scaling quantization is largely unnecessary for this stage. This observation further suggests that the advantages of FeatureZ over pMSz (for Morse–Smale segmentation preservation) and LOPC (for local order preservation) arise primarily from the star correction algorithm rather than the use of logarithmic-scaling quantization. In contrast, simplified contour tree preservation and isosurface preservation depend on maintaining feature-specific upper and lower bounds rather than star correction, allowing logarithmic-scaling quantization to improve compression efficiency and enabling FeatureZ to remain competitive with TopoA and QPET.
An exception is FeatureZ augmenting ZFP, for which linear-scaling quantization often performs slightly better than logarithmic-scaling quantization.
Compression and decompression throughput for both versions of FeatureZ augmenting SZ3 is reported in Tab. 13 and Tab. 14, respectively. Compression throughput is generally comparable. Decompression throughput is also similar.
F.3.2 Contribution of Individual Pipeline Components
We conduct an ablation study to quantify the contributions of feature-specific upper and lower bounds, star correction, and lossless compression to the overall bit-rate and feature error. Since the unsimplified contour tree is the only feature supported by FeatureZ that requires both feature-specific upper and lower bounds and star correction, we evaluate this feature while selectively disabling different stages of the pipeline.
Tab. 15 reports the bit-rates obtained with different subsets of the pipeline enabled. Overall, maintaining the feature-specific upper and lower bounds for contour tree preservation introduces more storage overhead than star correction alone. However, the overheads of these two stages are far from additive: the combined bit-rate is substantially lower than the sum of their individual overheads. This observation suggests that many edits made to maintain the upper and lower bounds also preserve star classification, and vice versa. Lossless compression consistently reduces the final bit-rate, although the magnitude of the reduction varies across datasets.
Table 13: Compression throughput of FeatureZ augmenting SZ3 using linear- and logarithmic-scaling quantization for all preserved features on three representative datasets. Throughput is reported in MB/s. For each (feature, dataset) pair, the largest standard error bound is used. Abbreviations: C.T., contour tree ( ); M.S., Morse–Smale segmentation; L.O., local order; C.P., critical points; I.S., isosurfaces; Per., percentiles; Com., combined feature (contour tree and Morse–Smale segmentation).
| Dataset | C.T. | M.S. | L.O. | C.P. | I.S. | Per. | Com. |
|---|---|---|---|---|---|---|---|
| Linear-Scaling Quantization Comp. Throughput (MB/s) | |||||||
| QMCPACK | 8.5 | 28.4 | 27.3 | 42.5 | 49.2 | 37.0 | 6.9 |
| Viscous Fingering | 7.6 | 6.8 | 6.9 | 6.1 | 21.4 | 9.2 | 4.0 |
| Isabel | 6.1 | 12.7 | 16.0 | 28.2 | 61.3 | 24.4 | 6.6 |
| Logarithmic-Scaling Quantization Comp. Throughput (MB/s) | |||||||
| QMCPACK | 7.8 | 28.9 | 25.5 | 40.9 | 64.3 | 49.4 | 6.0 |
| Viscous Fingering | 8.1 | 6.6 | 6.4 | 5.7 | 62.1 | 12.3 | 3.9 |
| Isabel | 11.4 | 12.3 | 14.4 | 27.2 | 61.8 | 25.3 | 4.7 |
Table 14: Decompression throughput of FeatureZ augmenting SZ3 using linear- and logarithmic-scaling quantization for all preserved features on three representative datasets. Throughput is reported in MB/s. For each (feature, dataset) pair, the largest standard error bound is used. Abbreviations: C.T., contour tree ( ); M.S., Morse–Smale segmentation; L.O., local order; C.P., critical points; I.S., isosurfaces; Per., percentiles; Com., combined feature (contour tree and Morse–Smale segmentation).
| Dataset | C.T. | M.S. | L.O. | C.P. | I.S. | Per. | Com. |
|---|---|---|---|---|---|---|---|
| Linear-Scaling Quantization Decomp. Throughput (MB/s) | |||||||
| QMCPACK | 128.4 | 128.0 | 135.3 | 182.3 | 145.9 | 122.0 | 118.3 |
| Viscous Fingering | 134.8 | 95.7 | 99.0 | 109.8 | 137.8 | 98.1 | 92.9 |
| Isabel | 55.3 | 79.6 | 105.0 | 143.2 | 143.6 | 112.3 | 75.0 |
| Logarithmic-Scaling Quantization Decomp. Throughput (MB/s) | |||||||
| QMCPACK | 147.6 | 143.3 | 141.2 | 174.5 | 168.2 | 157.8 | 131.4 |
| Viscous Fingering | 135.8 | 98.0 | 96.5 | 109.4 | 171.2 | 110.4 | 96.5 |
| Isabel | 117.2 | 74.5 | 102.9 | 143.2 | 144.7 | 113.4 | 79.1 |
The relative overheads of maintaining feature-specific upper and lower bounds and performing star correction depend on the feature being preserved. For the unsimplified contour tree, the upper and lower bounds ensure that every topological feature in the contour tree of appears in the contour tree of , while star correction eliminates false-positive maxima and minima. Maintaining these feature-specific bounds is inherently more restrictive than star correction in this setting, which explains its larger standalone storage overhead.
Tab. 16 reports the corresponding feature errors. Using only the feature-specific upper and lower bounds sometimes produces higher error than the base compressor alone. We attribute this to logarithmic-scaling quantization, which introduces many small jagged artifacts that manifest as low-persistence topological features in the contour tree.
In contrast, star correction yields substantially lower error. If the reconstructed scalar field contains the same set of minima and maxima as the ground truth, then the reconstructed and ground-truth contour trees contain the same number of vertices. Following TopoSZ [64], an extremum–saddle connection in the reconstructed contour tree is counted as a false positive if it is absent from the ground-truth contour tree, while a missing ground-truth connection is counted as a false negative. Consequently, each extremum can contribute at most two errors (e.g., if it is connected to the wrong saddle), implying a maximum feature error of 200% when only star correction is applied. As expected, lossless compression does not affect the feature error.
F.4 Varying Feature-Specific Parameters
In Fig. 13, we evaluate how varying the persistence threshold for simplified contour tree preservation and the number of isovalues for
Table 15: Bit-rates achieved by FeatureZ while preserving the unsimplified contour tree on three representative datasets with different pipeline components enabled. For each dataset, the largest error bound that preserves the contour tree is used. Abbreviations: BC, unaugmented base compressor; BC/ULB, contour-tree-specific upper and lower bounds without lossless compression; BC/ULB/LL, contour-tree-specific upper and lower bounds with lossless compression; BC/St, star correction without lossless compression; BC/St/LL, star correction with lossless compression; BC/ULB/St, full FeatureZ pipeline without lossless compression; Full, complete FeatureZ pipeline.
| Dataset | BC | BC/ULB | BC/ULB/LL | BC/St | BC/St/LL | Bc/ULB/St | Full |
|---|---|---|---|---|---|---|---|
| QMCPACK | 0.3 | 1.6 | 0.9 | 1.3 | 0.3 | 1.6 | 1.0 |
| Tangaroa | 0.5 | 2.4 | 2.0 | 1.6 | 0.6 | 2.8 | 2.3 |
| Isabel | 0.3 | 4.4 | 4.0 | 1.3 | 0.3 | 4.4 | 4.0 |
Table 16: Feature error percentages of FeatureZ while preserving the unsimplified contour tree with different pipeline components enabled. Feature error is defined as the number of incorrectly predicted vertices in the reconstructed contour tree (false positives, false negatives, and false types) divided by the number of vertices in the ground-truth contour tree. For each dataset, the largest error bound that preserves the contour tree is used. Labels are consistent with Tab. 15.
| Dataset | BC | BC/ULB | BC/ULB/LL | BC/St | BC/St/LL | Bc/ULB/St | Full |
|---|---|---|---|---|---|---|---|
| QMCPACK | 433.3 | 3382.4 | 3382.4 | 135.2 | 135.2 | 0.0 | 0.0 |
| Tangaroa | 138.0 | 4204.7 | 4204.7 | 66.7 | 66.7 | 0.0 | 0.0 |
| Isabel | 380.9 | 255.0 | 255.0 | 153.4 | 153.4 | 0.0 | 0.0 |
isocontour preservation affects the compression ratio, compression throughput, and decompression throughput of FeatureZ augmenting all four base compressors (ZFP, SZ3, SPERR, and HPEZ). For isocontour preservation, the isovalues are chosen to partition each dataset into regions of equal volume. In every experiment, we use the largest standard error bound for each (feature, dataset) pair. Overall, we observe no clear correlation between either the persistence threshold or the number of isovalues and the compression ratio, compression throughput, or decompression throughput. This suggests that the relationship between these feature-specific parameters and the resulting performance metrics is complex.
F.5 Errors Introduced by Base Compressors
In Fig. 14, we show the tradeoff between bit-rate and feature error for the unaugmented base compressors. Overall, the base compressors often produce high feature error at low bit-rates (e.g., below 1 bpp). As the bit-rate increases, the feature error decreases rapidly but often remains substantial even at relatively high bit-rates. As expected, features defined primarily by pointwise error bounds, such as percentiles and especially isocontours, are better preserved by the base compressors, particularly at higher bit-rates. In contrast, features defined by neighborhood-level properties (Morse–Smale segmentation, local order, and critical points) or global topological structure (contour trees) are generally less well preserved.
ZFP consistently achieves higher bit-rates and correspondingly lower feature error than the other base compressors. This behavior arises because ZFP is conservative: in practice, it often produces reconstruction errors well below the requested error bound, at the cost of higher bit-rates.
We also report error percentages for ZFP, SPERR, and HPEZ in Tab. 17, where their error bounds are adjusted to achieve compression ratios similar to those of FeatureZ. To compute these values, we use the largest error bound for FeatureZ in each trial (see Tab. 24). Since ZFP supports only a limited set of compression ratios, we omit trials in which no error bound yields a compression ratio within a factor of two of that achieved by FeatureZ. The corresponding error bounds for the base compressors are listed in Appx. G.
F.6 Augmenting Neurcomp with FeatureZ
FeatureZ is designed to augment both classical and neural compressors. To evaluate its compatibility with neural compression, we augment the implicit neural representation (INR)-based compressor Neurcomp.
Table 17: Error percentages for ZFP, SPERR, and HPEZ across nine datasets at compression ratios comparable to FeatureZ while preserving a given feature. C.T.: fraction of vertices that are false positives, false negatives, or misclassified in the reconstructed contour tree, relative to the number of vertices in the ground truth. M.S.: fraction of points incorrectly classified in the Morse–Smale segmentation. L.O.: fraction of points where the local ordering among neighbors is violated. C.P.: fraction of critical points whose type (ordinary, minimum, saddle, maximum, or degenerate) is misclassified, relative to the number of critical points in the ground truth. Perc.: fraction of points assigned to incorrect percentiles.
| dataset | C.T. | M.S. | L.O. | C.P. | Perc. |
|---|---|---|---|---|---|
| ZFP | |||||
| QMCPACK | 57.1% | 0.0% | 1.4% | 28.8% | 0.3% |
| Viscous Fingering | 0.1% | 49.4% | 22.3% | 43.6% | 23.4% |
| Tangaroa | 0.5% | 26.5% | 0.4% | 48.8% | 0.2% |
| Earthquake | 0.0% | 96.1% | 14.7% | 187.3% | 2.9% |
| Ionization | 0.4% | 73.7% | 15.4% | 189.3% | 36.3% |
| Isabel | 0.0% | 0.8% | 0.6% | 23.1% | 0.1% |
| Miranda | 33.3% | 98.0% | 65.6% | 100.5% | 57.2% |
| S3D | 6.1% | 0.5% | 1.2% | 13.9% | 0.1% |
| SCALE-LETKF | 4.0% | 59.5% | 10.4% | 51.1% | 2.8% |
| SPERR | |||||
| QMCPACK | 94.3% | 6.4% | 2.3% | 67.9% | 1.2% |
| Viscous Fingering | 1.2% | 51.0% | 30.6% | 61.2% | 25.8% |
| Tangaroa | 10.5% | 27.6% | 1.4% | 106.8% | 0.9% |
| Earthquake | 7.1% | 96.1% | 19.3% | 179.6% | 10.0% |
| Ionization | 14.8% | 81.0% | 46.5% | 390.9% | 38.2% |
| Isabel | 106.7% | 10.4% | 2.6% | 115.7% | 0.4% |
| Miranda | 33.3% | 99.2% | 68.7% | 101.6% | 60.3% |
| S3D | 24.5% | 4.5% | 1.2% | 54.2% | 0.3% |
| SCALE-LETKF | 38.8% | 58.5% | 16.5% | 371.8% | 9.4% |
| HPEZ | |||||
| QMCPACK | 114.3% | 29.0% | 5.4% | 78.7% | 2.2% |
| Viscous Fingering | 1.4% | 50.9% | 30.7% | 34.3% | 25.9% |
| Tangaroa | 12.4% | 32.1% | 2.4% | 74.2% | 1.8% |
| Earthquake | 3.5% | 96.1% | 20.2% | 191.6% | 11.6% |
| Ionization | 9.5% | 84.3% | 47.7% | 333.2% | 37.9% |
| Isabel | 140.0% | 30.5% | 4.2% | 146.2% | 0.7% |
| Miranda | 33.3% | 99.5% | 69.1% | 101.3% | 60.3% |
| S3D | 31.6% | 14.7% | 1.9% | 66.6% | 0.6% |
| SCALE-LETKF | 55.7% | 60.8% | 17.3% | 90.1% | 3.1% |
Table 18: Compression throughput for FeatureZ augmenting Neurucomp across all features on three select datasets. Throughput is reported in MB/s. C.T.: contour tree ( ), M.S.: Morse–Smale segmentation. L.O.: local order. C.P.: Critical points. I.S.: Isosurfaces. Per.: Percentiles. Com.: Combined feature (contour tree and Morse–Smale segmentation).
| dataset | C.T. | M.S. | L.O. | C.P. | I.S. | Per. | Com. |
|---|---|---|---|---|---|---|---|
| QMCPACK | 0.2 | 0.2 | 0.2 | 0.2 | 0.2 | 0.2 | 0.2 |
| Viscous Fingering | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.3 | 0.2 |
| Isabel | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 |
Table 19: Decompression throughput for FeatureZ augmenting Neuru-comp across all features on three select datasets. Throughput is reported in MB/s. C.T.: contour tree ( ), M.S.: Morse–Smale segmentation. L.O.: local order. C.P.: Critical points. I.S.: Isosurfaces. Per.: Percentiles. Com.: Combined feature (contour tree and Morse–Smale segmentation).
| dataset | C.T. | M.S. | L.O. | C.P. | I.S. | Per. | Com. |
|---|---|---|---|---|---|---|---|
| QMCPACK | 3.2 | 3.3 | 3.2 | 3.3 | 3.2 | 3.3 | 3.2 |
| Viscous Fingering | 9.0 | 8.4 | 8.9 | 9.3 | 9.6 | 8.9 | 8.6 |
| Isabel | 10.1 | 9.3 | 10.0 | 11.1 | 10.9 | 10.0 | 8.9 |
Neurcomp requires the user to specify a target compression ratio. We perform an initial grid search to identify the most effective target ratio and, consistent with previous work [22], find that a value of 100 generally yields the best results. Accordingly, we use a target compression ratio of 100 in all experiments. In practice, however, Neurcomp does not always achieve this ratio because the compressed size of its network weights varies after lossless compression. Furthermore, augmenting Neurcomp with FeatureZ introduces additional variation in the final compression ratio depending on the error bound and the feature being preserved.
In Fig. 15, we compare the rate–distortion performance of FeatureZ augmenting ZFP, SZ3, SPERR, HPEZ, and Neurcomp. Across all experiments, Neurcomp consistently exhibits the worst rate–distortion performance by a substantial margin. Compression and decompression throughput of FeatureZ augmented with Neurcomp on three datasets is reported in Tab. 18 and Tab. 19, respectively. Compression throughput never exceeds 0.3 MB/s, likely because training the INR dominates the compression time. Likewise, decompression throughput is typically about an order of magnitude lower than that of the other base compressors. Overall, we observe little benefit to using Neurcomp as the underlying (base) compressor for FeatureZ.
F.7 Comparison with TopoSZp
We additionally compare FeatureZ with TopoSZp. Since TopoSZp only supports compression of 2D single-precision scalar fields, we perform this comparison on three additional 2D datasets. For each dataset, we evaluate every augmented variant of FeatureZ and TopoSZp using the same set of error bounds employed for critical point preservation throughout the paper. As in our other experiments, we measure bit-rate, PSNR, compression time, and decompression time. Because TopoSZp preserves only a subset of the critical points, we also report its feature error.
The implementation of TopoSZp available to us occasionally terminated with segmentation faults. When this occurred, we reran the experiment until it completed successfully. In some cases, a single dataset/error-bound combination required more than 20 attempts before TopoSZp produced a valid result.
Datasets. A summary of the three additional datasets is provided in Tab. 20.
The S3D dataset is obtained by slicing our 3D S3D dataset along the plane . We also resample the data to single precision to ensure compatibility with TopoSZp. The CESM CLDHGH and CESM FLDS datasets are obtained from the Community Earth System Model (CESM) [23], which is primarily funded by the U.S. National Science Foundation. Specifically, we use the CLDHGH and FLDS fields from the CESM-ATM dataset available through SDRBench [66].
Table 20: Datasets used to compare FeatureZ with TopoSZp, together with their dimensions and file sizes.
| Dataset | Dimensions | File Size (MB) |
|---|---|---|
| S3D | 500 × 500 | 2.0 |
| CESM CLDHGH | 3600 × 1800 | 25.9 |
| CESM FLDS | 3600 × 1800 | 25.9 |

Figure 9: Rate distortion curves illustrating the trade-off between bit-rate and PSNR for each FeatureZ model as well as TopoSZp when preserving the critical points of three datasets.
Reconstruction Quality. Fig. 9 compares the rate–distortion performance of each FeatureZ variant with TopoSZp. Overall, every augmented version of FeatureZ consistently outperforms TopoSZp.
Fig. 10 shows the tradeoff between bit-rate and the feature error reported by TopoSZp. Overall, TopoSZp exhibits considerable variation in feature error across datasets and error bounds, although the reported errors are generally low. We note, however, that TopoSZp does not define critical points according to the Morse-theoretic definition commonly used in topological data analysis. Consequently, the feature errors reported here are based on TopoSZp's definition and are not directly comparable to the feature errors reported elsewhere in this paper. A comparison of TopoSZp with unaugmented base compressors using its own error metric is provided in [5].
Run Time. We report the compression and decompression throughput of each FeatureZ variant alongside TopoSZp in Tab. 21. Overall, TopoSZp achieves substantially higher compression and decompression throughput than FeatureZ. This result is expected, as TopoSZp is specifically designed to prioritize throughput [5]. We also observe that TopoSZp's decompression throughput is lower than its compression throughput, which is uncommon for compression algorithms. This behavior arises because TopoSZp performs much of its topological correction during decompression rather than during compression.

Figure 10: Bit-rate versus feature-error curves for TopoSZp on each dataset. Feature error is defined as the total number of false positives, false negatives, and false types in the reconstructed data divided by the number of ground-truth critical points. For TopoSZp, all feature errors correspond to false-negative saddles.
Table 21: Compression and decompression throughput (in MB/s) for each FeatureZ variant along with TopoSZp on each dataset. F.Z. refers to FeatureZ.
| dataset | F.Z. (ZFP) | F.Z. (SZ3) | F.Z. (SPERR) | F.Z. (HPEZ) | TopoSZp |
|---|---|---|---|---|---|
| Compression Throughput (MB/s) | |||||
| S3DSlice | 35.4 | 41.0 | 44.9 | 43.9 | 991.6 |
| CLDHGH | 12.8 | 15.8 | 13.5 | 14.9 | 1045.7 |
| FLDS | 14.3 | 16.1 | 15.8 | 16.6 | 886.9 |
| Decompression Throughput (MB/s) | |||||
| S3DSlice | 131.7 | 149.9 | 161.1 | 161.0 | 264.3 |
| CLDHGH | 57.0 | 102.3 | 59.6 | 97.7 | 200.5 |
| FLDS | 71.7 | 111.8 | 79.6 | 109.9 | 223.3 |
Table 22: Isovalues used for isocontour preservation across the nine datasets.
| dataset | isovalue 1 | isovalue 2 | isovalue 3 |
|---|---|---|---|
| QMCPACK | |||
| Viscous Fingering | |||
| Tangaroa | |||
| Earthquake | |||
| Ionization | |||
| Isabel | |||
| Miranda | |||
| S3D | |||
| SCALE-LETKF |
G PARAMETER VALUES FOR EXPERIMENTS
We list the isovvalues used for isocontour preservation for each dataset in Tab. 22 and the error bounds used in the main experiments for FeatureZ in Tab. 24.
In lossy compression, the error parameter typically controls the trade-off between compressed file size and reconstruction quality. However, for feature-preserving compressors that augment base compressors, large error bounds can produce the counterintuitive effect that increasing the error bound simultaneously decreases the bit-rate and improves PSNR [21, 22, 34, 62]. This behavior likely occurs because larger error bounds permit greater distortion by the base compressor, requiring more extensive corrections to preserve the target feature and thereby increasing the storage overhead. Such parameter settings are inherently suboptimal, since a smaller error bound yields both a lower bit-rate and higher reconstruction quality.
To enable fair comparisons across feature-preserving compressors, we select error bounds that are optimal for every compressor and every feature. For each feature, we choose an integer and evaluate every compressor using five error bounds evenly spaced between and . We initially set for all features. If many of the resulting error bounds are suboptimal for any compressor, we increase until all tested error bounds are optimal. We emphasize that increasing is frequently necessary for existing feature-preserving compressors as well as FeatureZ. When a single value of is suitable for most, but not all, datasets, we increase only for the affected datasets. Finally, if only a limited number of error bounds remain suboptimal for a particular compressor, we omit those configurations for that compressor rather than increasing for all compressors.
For selected experiments, we identify error bounds for the unaugmented base compressors that yield compression ratios comparable to FeatureZ. These comparisons are presented in Fig. 1, Fig. 5, Tab. 2, and Tab. 17. For each (task, dataset) pair, we run FeatureZ using the largest error bound listed in Tab. 24. The corresponding error bounds for the base compressors are reported in Appx. G. This table does not include the error bound used for the teaser image, which uses SZ3 with an error bound of .

Figure 11: Compression throughput versus error bound for FeatureZ, using ZFP, SZ3, SPERR, and HPEZ as base compressors, while preserving seven features on the QMCPACK, Viscous Fingering, and Isabel datasets.

Figure 12: Rate-distortion curves with illustrating the trade-off between bit-rate and PSNR for features preserved by FeatureZ using linear- and logarithmic-scaling quantization. Results are shown for three representative datasets—QMCPACK, Viscous Fingering, Isabel—across seven features. The standard error bounds for each (compressor, feature) pair are used. For Morse–Smale segmentation and local ordering, using linear- and logarithmic-scaling quantization yielded nearly identical results.
Table 23: Error bounds used for each base compressor to achieve compression ratios comparable to FeatureZ augmenting that compressor while preserving the specified feature at the given error bound. E.B.: error bounds. B.C. denotes the base compressor.
| Dataset | ZFP E.B. | SZ3 E.B. | SPERR E.B. | HPEZ E.B. |
|---|---|---|---|---|
| Contour Tree () | ||||
| QMCPACK | ||||
| Viscous Fingering | ||||
| Tangaroa | ||||
| Earthquake | ||||
| Ionization | ||||
| Isabel | ||||
| Miranda | ||||
| S3D | ||||
| SCALE-LETKF | ||||
| Morse-Smale Segmentation | ||||
| QMCPACK | ||||
| Viscous Fingering | ||||
| Tangaroa | ||||
| Earthquake | ||||
| Ionization | ||||
| Isabel | ||||
| Miranda | ||||
| S3D | ||||
| SCALE-LETKF | ||||
| Local Order | ||||
| QMCPACK | ||||
| Viscous Fingering | ||||
| Tangaroa | ||||
| Earthquake | ||||
| Ionization | ||||
| Isabel | ||||
| Miranda | ||||
| S3D | ||||
| SCALE-LETKF | ||||
| Critical Points | ||||
| QMCPACK | ||||
| Viscous Fingering | ||||
| Tangaroa | ||||
| Earthquake | ||||
| Ionization | ||||
| Isabel | ||||
| Miranda | ||||
| S3D | ||||
| SCALE-LETKF | ||||
| Percentiles | ||||
| QMCPACK | ||||
| Viscous Fingering | ||||
| Tangaroa | ||||
| Earthquake | ||||
| Ionization | ||||
| Isabel | ||||
| Miranda | ||||
| S3D | ||||
| SCALE-LETKF | ||||


FeatureZ (ZFP)
FeatureZ (SZ3)
FeatureZ (SPERR)
FeatureZ (HPEZ)
Figure 13: Bit-rates, compression throughput, and decompression throughput produced by FeatureZ augmenting ZFP, SZ3, SPERR, and HPEZ on three datasets when preserving the simplified contour tree and isocontours. For the simplified contour tree, the persistence threshold is varied and results are shown for different values of . Likewise, for isocontour preservation, the number of isocontours is varied. In each case isovalues were selected to divide the datasets into equally sized regions (by volume). The highest standard error bound for each given (dataset, feature) pair is used. Compression and decompression throughput is reported in MB/s.
Table 24: Error bounds used for the main experiments with FeatureZ. In general, the same error bounds are used for each task; exceptions are specified for particular (task, dataset) pairs.
| Setting | Error Bounds |
|---|---|
| Contour Tree (ε = 0.04) | |
| Contour Tree (ε = 0.04) / Viscous Fingering | |
| Morse-Smale Segmentation | |
| Local Order | |
| Local Order / Tangaroa | |
| Local Order / Miranda | |
| Local Order / SCALE-LETKF | |
| Critical Points | 0.0001, 0.000325, 0.00055, 0.000775, 0.001 |
| Critical Points / Miranda | |
| Critical Points / SCALE-LETKF | |
| Isocontours | 0.0001, 0.000325, 0.00055, 0.000775, 0.001 |
| Percentiles | |
| Percentiles / Miranda | |
| Combination | |
| Combination / Miranda | |
| Combination / SCALE-LETKF |

Figure 14: Feature errors induced by each base compressor (not augmented by FeatureZ) for select features at different bit-rates. Results are shown for three representative datasets—QMCPACK, Viscous Fingering, and Isabel—across six features. The standard error bounds used for each (compressor, feature) pair are used. For contour tree preservation, feature error is defined as the number of falsely predicted vertices (false positive, false negative, and false types) in the contour tree of the decompressed data divided by the number of vertices in the ground truth contour tree. For critical points, feature error is defined as the number of falsely predicted critical points (false positive, false negative, and false types) divided by the number of ground truth critical points.

Figure 15: Rate-distortion curves illustrating the trade-off between bit rate and PSNR, along with selected zoomed-in views, for seven features across all nine datasets. We include FeatureZ augmenting SPERR, SZ3, ZFP, HPEZ and Neurucomp.

Figure 16: Rate-distortion curves illustrating the trade-off between bit rate and PSNR, along with selected zoomed-in views, for seven features across all nine datasets. We include four variants of FeatureZ, namely FeatureZ (ZFP), FeatureZ (SZ3), FeatureZ (SPERR), and FeatureZ (HPEZ). Where applicable, we also compare against state-of-the-art feature-preserving compressors TopoA, pMSz, QPET, and LOPC. For reference, we include the baseline compressors ZFP, SZ3, SPERR, and HPEZ which do not enforce feature preservation.