DnNP: Denoising Input Uncertainty in Neural Processes

Fatemeh Tohidian, Chengzhi Shi, Soomi Lee, Matthew Elia, Amy Mueller, Stratis Ioannidis, Jennifer DyarXiv 2026 · arXiv

TL;DR

Standard Neural Processes (NPs) assume that input coordinates are perfectly accurate, but real-world sensor data is often noisy. Denoising Neural Processes (DnNP) solves this by prepending a variational denoising layer that explicitly models input uncertainty, leading to significantly more accurate predictions and better-calibrated uncertainty—slashing error by up to 30% on real-world air quality data.

What Problem Does This Paper Address?

Neural Processes are powerful meta-learning models that combine the flexibility of neural networks with the uncertainty quantification of Gaussian Processes. However, they have a major blind spot: they assume the input features ($x$) are "clean."

In the real world, inputs are rarely perfect. Think of a mobile air quality sensor: its GPS coordinates might be off by several meters, or a temperature probe might have a known measurement tolerance. When a standard NP is trained on this "jittery" data, it struggles to learn the true underlying function. It often produces biased mean predictions and overconfident uncertainty estimates because it can't distinguish between actual function volatility and simple measurement error in the coordinates.

Methods

The authors introduce DnNP, which treats the true, noise-free inputs ($x^*$) as latent variables that must be inferred from the noisy observations ($x$).

Key technical contributions include:

  • Architecture Change: They extend the standard NP pipeline by adding a Denoiser network ($q_\psi$) before the encoder. This component learns to map noisy inputs to a distribution over their likely "clean" values.
  • Variational Objective: They derive a new Evidence Lower Bound (ELBO) that includes a "measurement consistency" term. This ensures the denoiser doesn't just invent clean values but stays grounded in the observed noisy data.
  • Theoretical Proofs: The authors prove that standard "plug-in" models (which treat noisy $x$ as clean) suffer from an irreducible KL divergence gap. They show that DnNP, by marginalizing over the input uncertainty, can theoretically recover the Bayes-optimal predictor.
Figure 1: Comparison of Neural Processes (NP) and DnNP in terms of graphical model (top) and architecture (bottom). In the graphical model, shaded nodes represent observed variables. Standard NPs assume that inputs are observed noise-free, an assumption violated in many real-world settings where measurements are inherently corrupted by noise. DnNP addresses this by treating noise-free inputs as latent variables x∗that must be inferred from noisy observations x, while preserving the standard NP structure of context and target sets with a global latent z that captures function- level uncertainty. In the architecture, DnNP extends the standard NP encoder-decoder pipeline by prepending a denoising component (shown in green) that recovers noise-free input estimates from noisy inputs before passing them to the encoder.

Datasets

The model was evaluated on four distinct datasets:

  1. 1D Synthetic GP: Functions sampled from a Gaussian Process with varying levels of added Gaussian noise on the $x$-coordinates.
  2. MNIST Image Completion: A classic benchmark where pixel coordinates are treated as inputs. The authors added noise to these coordinates to simulate "shuffled" or jittery pixels.
  3. Brookline Air Quality (New): A newly released real-world dataset of $PM_{2.5}$ measurements from urban sensors in Brookline, MA. This dataset inherently contains sensor noise.
  4. NOAA Sea-Level Pressure: Real-world daily pressure observations from weather stations across California.

Key Insights and Ideas

  • Input Noise Corrupts Relationships: The "aha" moment is realizing that input noise doesn't just add "fuzz" to the output; it fundamentally corrupts the learned spatial relationship. If the model thinks a data point is at $x=1.0$ when it's actually at $x=1.2$, the entire slope of the function is learned incorrectly.
  • Amortized Denoising: Unlike some Gaussian Process methods that require expensive Taylor expansions for every new point, DnNP learns a denoiser that is "amortized"—it gets faster and more efficient as it sees more tasks during meta-learning.
  • Robustness to Misspecification: Interestingly, the model performs well even if the user's guess for the noise level ($\sigma_x$) isn't perfect, making it practical for engineers who only have a rough idea of their sensor's accuracy.

Key Results

DnNP consistently outperformed standard NPs across all benchmarks when input noise was present:

  • 1D Regression: As noise increased, standard NPs produced increasingly biased predictions. DnNP maintained a much closer fit to the ground truth.
  • MNIST: DnNP was significantly better at recovering the spatial structure of digits. At moderate noise levels, it maintained high classification accuracy while standard NPs dropped toward random guessing.
  • Real-World Impact: On the Brookline Air Quality dataset, DnNP reduced the Root Mean Square Error (RMSE) by 30% and improved the Negative Log-Likelihood (NLL)—a measure of how well the model captures uncertainty—by a staggering 73%.
Figure 2: Comparison of Clean NP, Noisy NP, and DnNP on 1D GP regression across noise levels σx ∈{0.1, 0.2, 0.3, 0.4, 0.5}. Shaded regions show the predictive mean ±σ and ±2σ uncertainty bands. Black circles indicate true context inputs and orange triangles show the corrupted observed input. As input noise increases, Noisy NP produces increasingly biased mean predictions, whereas DnNP maintains closer agreement with the true function. The NLL sweep (right) confirms this quantitatively, showing that DnNP achieves consistently lower NLL than Noisy NP across all noise levels.

Limitations and Future Work

While DnNP is a significant step forward, the authors note a few areas for improvement:

  • Independent Noise Assumption: Currently, the model assumes noise is independent for each observation. It doesn't yet account for spatially correlated biases (e.g., if an entire cluster of sensors is miscalibrated in the same way).
  • Prior Knowledge: The model relies on a user-specified noise model. While it's robust, it still requires some domain knowledge about the sensors being used.
  • Combining Noise Types: Future work could involve combining DnNP with "Robust NPs" that handle label noise ($y$-noise), creating a model that is truly resilient to corruption on both ends of the data pipeline.

Summary updated

Abstract

Neural Processes (NPs) are flexible meta-learning models capable of uncertainty quantification across diverse applications. However, the standard NP framework assumes access to noise-free inputs. This is unrealistic in many practical settings, where sensor noise or measurement errors are unavoidable. This discrepancy between model assumptions and real-world data can significantly degrade prediction quality and uncertainty estimates. We introduce Denoising Neural Processes (DnNPs), a principled extension of the NP framework that explicitly models input uncertainty. We train DnNPs via variational inference. DnNPs jointly learn to denoise corrupted inputs and perform meta-learning, making them robust to noisy training data. We demonstrate DnNPs' effectiveness on both synthetic and real-world datasets, showing consistent improvements in prediction and uncertainty quantification compared to standard NPs. On PM2.5 spatial interpolation from real-world air quality sensors, DnNP reduces RMSE by up to 30% and NLL by up to 73% relative to standard NPs. We also provide theoretical grounding: we show that the Bayes-optimal predictor under noisy inputs belongs to the DnNP model class, and that plug-in models with fixed observation variance incur an irreducible KL divergence gap that DnNP provably avoids.
BibTeX
@misc{tohidian2026dnnp,
  author = {Fatemeh Tohidian and Chengzhi Shi and Soomi Lee and Matthew Elia and Amy Mueller and Stratis Ioannidis and Jennifer Dy},
  title = {{DnNP: Denoising Input Uncertainty in Neural Processes}},
  year = {2026},
  eprint = {2611.14424},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.14424},
}
Figure