July 11, 2026
Implicit neural representations (INRs) have emerged as a powerful tool for compactly representing scientific data, such as 3D volumes and time-varying scalar fields, due to their flexibility and expressiveness. As approximations of the data, INRs achieve impressive compression ratios [1]–[8] and outperform prior state-of-the-art lossy compression methods [9]. However, their approximating nature introduces errors that can affect the reliability of downstream scientific analysis and raise concerns among domain experts about their use in scientific workflows.
Common error metrics, such as peak signal-to-noise ratio (PSNR), provide a global error estimate for the data approximation but fail to capture localized inaccuracies that are critical for scientific interpretation. Without access to the raw data, which is often unavailable, measuring prediction error is challenging. Recently, prediction uncertainty has been used as a potential indicator of the relative error scale of INR predictions [10], [11]. Classical uncertainty quantification approaches, such as deep ensemble [12] and Monte Carlo dropout [13] provide uncertainty estimates but introduce significant computational overhead or may compromise prediction accuracy. Lightweight solutions, heteroscedastic [14], [15] or evidential regression [16], enable single-pass uncertainty estimation but rely on restrictive distribution assumptions, limiting their ability to model complex scientific data with long-tailed or multi-modal distributions.
In this study, we propose a new lightweight approach for INR-based scientific data modeling that does not rely on predefined parametric assumptions. Our solution formulates the regression task as a classification problem by discretizing continuous signals into bins and training with a cross-entropy objective. Compared with regression-based approaches, the classification formulation yields a discrete predictive distribution that can model complex behavior.
We compare our approach with regression-based methods in terms of reconstruction quality and uncertainty estimation to assess its ability to capture and reflect prediction errors. Experimental results reveal a trade-off among methods, and our method tends to achieve a high reconstruction quality. Furthermore, the error awareness exhibits a complementary relationship, with each approach performing better under different conditions depending on the dataset properties. Overall, these findings suggest that classification-based INR training offers a practical and effective alternative for jointly achieving accurate reconstruction and meaningful uncertainty estimation in scientific data modeling. We summarize our contribution as follows:
A new training framework for implicit neural representations that uses the classification objective for implicit neural representation training.
A comparative study showing that the classification approach provides complementary performance in reconstruction quality and uncertainty estimates compared with regression-based solutions.
Prior literature [3], [6], [17], [18], tang2023ecnr? on INR studies largely focus on improving compression performance or computational efficiency, while overlooking the characterization of prediction error. Here, we review the prior work on uncertainty estimation in the context of INRs for scientific data modeling.
Model prediction uncertainty is important for ensuring the reliability of neural model decisions [19]. Various methods have been proposed to quantify prediction uncertainty in INR training, each motivated by different objectives. One line of work uses uncertainty as a proxy to indicate whether a region has high or low error. Saklani et al. [10] have evaluated the uncertainty of deep ensemble and Monte Carlo dropout over INR for volume visualization tasks. Xiong et al. [11] proposed RMDSRN, which uses a multi-head decoder to predict variance for uncertainty and evaluate the quality of uncertainty by calculating the Pearson correlation with model prediction error. Unlike the deep ensemble, RMDSRN is designed with a shared encoder to reduce the number of model training runs. These methods are computationally intense due to the additional model training/inference or introduce additional training complexity.
Another line of work focuses on modeling data that inherently contains uncertainty, such as ensemble simulation outputs. In this setting, it is critical to distinguish between different sources of uncertainty, such as aleatoric and epistemic uncertainty. ConfEviSurrogate [20] builds on the evidential regression [16] to develop a generative surrogate model for scientific simulation. REV-INR [21] integrates evidential and heteroscedastic regression [14] with a shared-encoder framework [11], resulting in multiple architectures for uncertainty quantification. Surroflow [22] leverages normalizing flows to enable invertible input-output mappings for simulation surrogate modeling and provides uncertainty estimates for predicted output.
Our study focuses on using uncertainty to characterize prediction errors. Rather than extending prior approaches, we introduce a lightweight training framework that reformulates INR training using a classification objective.
INRs tend to learn low-frequency features but struggle to capture high-frequency details due to spectral bias [23]. To address this limitation, techniques like Siren [24] and position encoding [25], [26] approaches have been proposed to improve model performance. As illustrated in Fig. 1, our study adopts Fourier position encoding [26] in combination with the ReLU activation across different training settings. Our experiment uses a 5-layer multi-layer perceptron (MLP) with a width of 256 neurons per layer. Beyond standard regression-based INR training, we apply the same framework to model predictive uncertainty using two representative approaches: heteroscedastic and evidential regression.
Heteroscedastic Regression [14] formulates regression as a Gaussian maximum-likelihood (equation 1 ) estimation problem. Given an input \(x_i\) and target \(y_i\), the model predicts both a mean \(\mu_{\theta}(x_i)\) and variance \(\sigma^2_{\theta}(x_i)\), where \(\theta\) denotes the network parameters. Instead of minimizing the mean squared error, the negative log likelihood loss jointly optimizes both prediction error and uncertainty(\(\sigma^2_{\theta}(x_i)\)) at the same time.
\[\mathcal{L}_{Hete\mathrm{NLL}} = -\log(p(y_i\mid x_i)) =\frac{1}{2}\log(\sigma_{\theta}^2(x_i)) + \frac{(y_i - \mu_{\theta}(x_i))^2}{2\sigma_{\theta}^2(x_i)} \label{eq:heter}\tag{1}\]
Evidential Regression [16] models uncertainty by placing a Normal Inverse-Gamma prior over the Gaussian likelihood function. The likelihood is \(p(y_{i} \mid \mu_{i}, \sigma_{i}^2)=\mathcal{N}(y_{i} \mid \mu_{i}, \sigma_{i}^2)\). It assumes prior distributions over \(\mu_i\) and \(\sigma_i\). The \(\sigma_i\) follows the Inv-Gamma\((\alpha,\beta)\) distribution and \(\mu_i\) follows the gaussian distribution \(\mathcal{N}\!\left(\gamma,\, \frac{\sigma^2}{\lambda}\right)\).
Evidential regression predicts the parameters \(\{\alpha_{\theta}(x_i)\), \(\beta_{\theta}(x_i)\), \(\gamma_{\theta}(x_i)\) \(\lambda_{\theta}(x_i)\}\) which define a Student’s \(t\)-distribution. Its negative log-likelihood is:
\[\begin{align} \mathcal{L}_i^{\text{NLL}}(\mathbf{w}) &= \frac{1}{2} \log\left(\frac{\pi}{\lambda_{\theta}(x_i)}\right) - \alpha_{\theta}(x_i) \log\left(\Omega_{\theta}(x_i)\right) \\ &\quad + \left(\alpha_{\theta}(x_i) + \frac{1}{2}\right) \log\left((y_i - \gamma_{\theta}(x_i))^2 \lambda_{\theta}(x_i) + \Omega_{\theta}(x_i)\right) \\ &\quad + \log\left( \frac{\Gamma(\alpha_{\theta}(x_i))}{ \Gamma\left(\alpha_{\theta}(x_i) + \frac{1}{2}\right)} \right) \end{align} \label{eq:evidential}\tag{2}\]
where \(\Omega_{\theta}(x_i) = 2\,\beta_{\theta}(x_i)\left(1 + \lambda_{\theta}(x_i)\right)\). In this study, the predicted mean is given by \(\gamma_{\theta}(x_i)\), the aleatoric uncertainty by \(\frac{\beta_{\theta}(x_i)}{\alpha_{\theta}(x_i)-1}\), and the epistemic uncertainty by \(\frac{\beta_{\theta}(x_i)}{\lambda_{\theta}(x_i)(\alpha_{\theta}(x_i)-1)}\). Since distinguishing between uncertainty sources is not the primary focus, we combine aleatoric and epistemic uncertainty into a single measure \(\frac{\beta_{\theta}(x_i)\bigl(1+\lambda_{\theta}(x_i)\bigr)}{\lambda_{\theta}(x_i)\bigl(\alpha_{\theta}(x_i)-1\bigr)}\).
For high-quality uncertainty estimation, predictions with higher uncertainty should correspond to larger errors. To evaluate how well uncertainty reflects error, we use the AUSE metric: \[\mathrm{AUSE} = \int_0^1 \left( E(p) - E^*(p) \right)\, dp\] where \(E(p)\) denotes the prediction error after removing a fraction \(p\) of the most uncertain predictions, and \(E^*(p)\) denotes the error after removing a fraction \(p\) of the highest-error predictions (oracle). This metric measures how well uncertainty aligns with true prediction error [27]. A lower AUSE indicates better error awareness.
Using classification to address regression problems has shown promise in several fields, including computer vision [28], [29] and reinforcement learning [30]. In this work, we reformulate regression as a classification problem in the INRs setting to model scientific data without restrictive parametric assumptions.
To transform a regression task into a classification problem, the continuous signal must be discretized into bins. We adopt an equal-range binning strategy, in which values are first normalized to the range \([0, 1]\) and then uniformly partitioned into \(n\) bins. The bin size is defined as \(b_s = \frac{1}{n}\). The \(i\)-th bin corresponds to the interval \([b_s \times (i - 1), b_s \times i)\), and its representative value is taken as the midpoint \(b_i = \frac{b_s \times (i - 1) + b_s \times i}{2}\). We use the midpoint as the bin value because it typically yields better reconstruction quality than using the left or right bin boundaries. In the classification setting, the target label corresponds to the bin containing the ground-truth value. Unless otherwise specified, we use 256 bins by default (Appendix A provides a further investigation on the bin configuration).
In standard classification tasks, models predict a single discrete label corresponding to the highest probability. However, in the INR setting for continuous signal modeling, neighboring bins can also receive relatively high probabilities. As a result, small deviations into adjacent bins still correspond to close numerical values, allowing the model to maintain accurate approximations despite minor prediction shifts. Rather than representing INR outputs using the value of the target bin, we compute the expected value of the predicted distribution, \(\sum_{i=1}^{C} b_i p_i\), where \(p_i\) denotes the probability assigned to bin \(i\), and C is the number of bins.
During training, the cross-entropy loss encourages high probability for the target label and low probability for all other bins. This formulation promotes the learning of a meaningful probability distribution that reflects the underlying ground-truth value. The uncertainty of the classification network is captured by the output distribution after the softmax normalization. We quantify prediction uncertainty by computing the variance of this distribution. Our study mainly focuses on using distribution variance for uncertainty estimation, given that variance quantifies how far a prediction may deviate from its expected value, providing an intuitive measure of error awareness. In contrast, uncertainty measures such as entropy are often less directly interpretable in terms of prediction error (check Appendix C).
\[\mathrm{Var}(y) = \sum_{i=1}^{n} p_i (b_i - \mu)^2, \mu = \sum_{i=1}^{n} p_i b_i.\]
Consistent with prior work, we observe that using cross-entropy loss alone can lead to salt-and-pepper noise [31]. To mitigate this issue, we introduce a mean squared error (MSE) regularization term to anchor the expected value of the predicted distribution to the ground truth. This regularization reduces noise, quantization error, improves reconstruction quality, and preserves the uncertainty information captured by the cross-entropy objective (Appendix B provides a brief overview of the impact of \(\lambda\)):
\[\mathcal{L} = \mathcal{L}{\mathrm{CE}} + \lambda\cdot \mathcal{L}{\mathrm{MSE}}.\]
To compare reconstruction quality, we evaluate four datasets: two simulation datasets (Rayleigh–Taylor instability and magnetic reconnection) and two CT datasets (Bonsai and aneurism), all obtained from the Open Scientific Visualization Datasets [32]. To ensure a fair comparison, we design the experimental setup such that each model uses an MLP with approximately the same number of parameters. In the classification setting, the final layer corresponds to the discretized bins. In the regression setting, an additional layer is introduced to maintain a comparable parameter count, resulting in slightly more parameters than in the classification model. All models are trained using the Adam optimizer with a learning rate of \(10^{-3}\) and a batch size of 20,000. Each model is trained for 20,000 steps. Experiments are conducted on an NVIDIA GeForce V100 GPU with 16 GB of memory.
Under quantitative evaluation using PSNR, classification-based approaches achieve comparable or even better performance than regression-based methods. The results are summarized in Table 1, which groups methods into classification- and regression-based categories. The table also reports the compression ratio between the original dataset size and the network model size. Here, CE denotes cross-entropy loss, while CE + \(\lambda\)MSE represents the combination of cross-entropy and mean squared error (MSE) loss. Steel-blue highlights indicate the highest reconstruction quality for each volume, all of which correspond to classification-based (discrete distribution) methods.
Cross-entropy (CE) loss achieves stronger PSNR performance compared with both evidential and heteroscedastic regression. For simulation datasets, CE performs slightly better than regression-based approaches; however, the performance gap becomes much more pronounced for the CT datasets. On the Bonsai dataset, classification-based methods outperform evidential regression by 2 dB and heteroscedastic regression by approximately 5 dB. A similar trend is observed for the aneurism dataset. As discussed above, combining cross-entropy with MSE further improves performance over using CE alone. In this study, \(\lambda = 50\) is selected empirically. With MSE regularization, the results are generally better than those obtained with pure CE loss. In Table 1, we also report the PSNR of MSE under regression-based methods as a reference. MSE-based objectives favor reconstruction accuracy, while CE-based and evidential objectives generally provide more informative uncertainty estimates. The selection of the preferred method depends on whether the downstream task prioritizes reconstruction accuracy or reliable identification of erroneous regions.
| Classification-Based | Regression-Based | ||||||
| Data | Ratio | CE | CE+\(\lambda\) MSE | MSE | Evidential | Heteroscedastic | MSE |
| Rayleigh-Taylor Instability (\(512^3\)) | 384X | 31.45 | 32.49 | 33.84 | 30.51 | 31.03 | 32.35 |
| Magnetic Reconnection Simulation (\(512^3\)) | 384X | 42.90 | 42.88 | 43.09 | 42.21 | 41.65 | 43.79 |
| bonsai (\(256^3\)) | 12X | 35.91 | 36.03 | 36.23 | 33.57 | 30.86 | 36.35 |
| aneurism (\(256^3\)) | 12X | 36.17 | 36.89 | 35.46 | 32.70 | 31.76 | 37.08 |
| Classification-Based | Regression-Based | |||||
| Data | Ratio | CE | CE+\(\lambda\) MSE | MSE | Evidential | Heteroscedastic |
| Rayleigh-Taylor Instability (\(512^3\)) | 384x | \(2.21\times 10^{-3}\) | \(2.29\times 10^{-3}\) | \(5.75\times10^{-3}\) | \(2.89\times 10^{-3}\) | \(3.58\times 10^{-3}\) |
| Magnetic Reconnection Simulation (\(512^3\)) | 384x | \(2.46 \times10^{-4}\) | \(2.45 \times 10^{-4}\) | \(2.72\times10^{-4}\) | \(1.91 \times 10^{-4}\) | \(7.95\times 10^{-4}\) |
| bonsai (\(256^3\)) | 12x | \(2.61 \times 10^{-4}\) | \(9.48 \times 10^{-4}\) | \(2.65 \times 10^{-4}\) | \(7.03\times10^{-4}\) | \(5.47\times 10^{-4}\) |
| aneurism (\(256^3\)) | 12x | \(3.44\times 10^{-6}\) | \(5.13\times10^{-6}\) | \(4.16\times10^{-4}\) | \(2.36\times10^{-5}\) | \(2.24\times10^{-4}\) |
Beyond quantitative analysis, the qualitative results show that INR trained with classification settings enable the reconstruction of high-quality 3D volumes while effectively capturing high-frequency features better than heteroscedastic and evidential regression. In Fig. 3, the visualization of the aneurism data from the classification-based methods captures the thin vessel and their relative small branches feature. The same features are absent or inadequately captured in heteroscedastic and evidential regression settings. Notably, these fine structures can be captured by MSE-based regression; however, they are not well preserved in heteroscedastic and evidential regression. The uncertainty estimation in these approaches relies on restrictive distributional assumptions (e.g., Gaussian or Student’s \(t\)-distributions), which constrain their representational flexibility. As a result, these methods introduce a trade-off between uncertainty estimation and prediction accuracy, limiting their ability to model fine-grained features.
To provide a concrete example, Fig. 2 shows a predicted output distribution of a single point, which is located at a sharp gradient change region, from the heteroscedastic and the classification setting. The distribution output from the classification setting is flexible and multi-modal, and has a lower error than the heteroscedastic regression. Instead, heteroscedastic regression is forced to model the output as a Gaussian distribution, which only captures one peak of the multi-modal distribution.
To evaluate prediction uncertainty in terms of error awareness, classification-based methods exhibit performance comparable to regression-based approaches. As shown in Table 2, the lowest AUSE scores are achieved by cross-entropy (CE) and evidential regression methods. Classification-based approaches account for most of the low AUSE scores, except for the Magnetic Reconnection simulation dataset, where evidential regression outperforms the other methods.
In a classification-based setting, the performance trends differ from those observed under PSNR-based evaluation. Models trained with the cross-entropy loss typically achieve the lowest AUSE score, where the MSE loss often leads to the highest, and the CE+\(\lambda\) MSE yields intermediate performance. The MSE loss does not explicitly optimize the output distribution to assign meaningful probabilities; instead, it primarily focuses on minimizing mean squared error. Unsurprisingly, it results in lower-quality uncertainty estimates compared with the cross-entropy loss function. A similar effect can be observed from the \(CE+\lambda MSE\) loss, where the uncertainty estimation degrades because of the \(MSE\) regularization term. In the regression-based approach, evidential regression outperforms heteroscedastic on simulation datasets but underperforms in the CT dataset.
AUSE score provides a statistical summary of the quality of uncertainty estimation, but it is critical to assess whether the predicted uncertainty fields help identify error regions in the predicted volume. To verify this, we compare the error and uncertainty fields of two training settings using the aneurism dataset. Since uncertainty indicates the region with high or low error rather than an absolute error scale, we normalize the error and uncertainty field to the range [0,1] for comparison. The results in Fig. [fig:qualitative_error_comparison_between_models] show a qualitative comparison across different training settings. With the same transfer function, the visualization of the uncertainty fields from heteroscedastic and evidential regressions is sparse and missing fine-grain vessel detail compared with the error field.
In this study, we introduce a lightweight implicit neural representation for scientific data modeling. Our approach reformulates INR regression training as a classification task, enabling high-quality data reconstruction and effective uncertainty estimation for error awareness across multiple datasets. In future work, we will investigate why the uncertainty framework here captures error awareness, in particular, since the data is not inherently uncertain, and explore using classification-based models to train INRs in settings where the sources of uncertainty are different, e.g., ensembles.


Figure 4: The selection of the lambda parameter balances the accuracy of reconstruction and uncertainty quality. Increasing the lambda parameter will improve the reconstruction accuracy (PSNR); however, exceeding a certain threshold decreases the uncertainty quality and increases the AUSE score..


Figure 5: PSNR trends constructed using entropy, variance, maximum softmax probability, and margin probability. Across both datasets, the PSNR curve based on variance consistently lies above that based on entropy and other uncertainty metrics, indicating a stronger correlation with prediction error..
Number of Bins affects the reconstruction quality of model predictions. In this study, we use the midpoint representation (Table. 3) for bin values, as it yields high reconstruction quality.
| Simulation Data | left | middle | right | |||
|---|---|---|---|---|---|---|
| Rayleigh-Taylor Instability | 31.44 | 31.42 | 31.46 | |||
| Magnetic Reconnection Simulation | 42.73 | 42.92 | 42.43 | |||
| bonsai | 35.79 | 35.92 | 35.74 | |||
| aneurism | 36.13 | 36.14 | 35.97 |
We present an experiment in which networks with widths of 64, 128, 256, 512, and 1024 are trained using different bin sizes. As shown in Fig. 6, performance plateaus at a bin size of around 128. For classification-based training, performance generally continues to improve as the bin size increases, with the exception of the MSE loss.





Figure 6: The impact of bin size on classification-based network training. The PSNR often plateaus with 128 bins except for the MSE loss. For the AUSE score, a similar trend can be found in all training settings..
To study the effect of the hyperparameter \(\lambda\), we evaluate its impact on the Skull and Miranda dataset. Results are shown in Fig. 4. For relatively small values of \(\lambda\), the PSNR score improves while the uncertainty measured by the AUSE score remains unchanged. As the value increases beyond a certainty threshold, the AUSE score begins to deteriorate, indicating a reduction in uncertainty quality. Across both datasets, \(\lambda < 100\) has a negligible effect on the uncertainty quality while still providing reconstruction benefits. In our study, we adopt a conservative setting of the \(\lambda=50\) throughout our experiments.
We use two datasets to compare the effectiveness of entropy, variance, maximum softmax probability, and margin probability in capturing prediction error under the cross-entropy training framework. The comparison is based on the PNSR trend, which is generated by progressively adding back the lowest-uncertainty components to the 3D volume and calculating the corresponding PSNR score. In the PSNR equation 3 , where \((\mathrm{MAX})\) denotes the maximum possible voxel value. Since all volumes are normalized to the range ([0,1]), (\(\mathrm{MAX}=1\)), and thus the PSNR is primarily determined by the MSE. Here, \(I_i\) and \(\hat{I}_i\) denote the ground-truth and predicted voxel values, respectively.
As shown in Fig. 5, the PSNR curves constructed using variance consistently lie above those constructed using entropy for both the Miranda and Skull datasets. This result indicates that variance more effectively identifies components associated with prediction error, leading to faster reconstruction quality improvement as low-uncertainty components are progressively incorporated. Consequently, variance exhibits a stronger correlation with prediction error and serves as a more informative uncertainty metric than entropy and other uncertainty estimation in this setting.
\[\label{eq:psnr} \mathrm{PSNR} = 10 \log_{10} \left( \frac{\mathrm{MAX}^2}{\mathrm{MSE}} \right),\tag{3}\]
\[\mathrm{MSE} = \frac{1}{N} \sum_{i=1}^{N} \left( I_i - \hat{I}_i \right)^2,\]