Abstract
Neural processes (NPs) are powerful probabilistic models that combine the flexibility of neural networks with the ability to parameterize stochastic processes. While NPs excel at quick adaptation to new tasks, they typically rely on Gaussian predictive likelihoods. This assumption often fails in real-world scenarios involving multimodal or asymmetric distributions. We propose Conditional Quantile Neural Processes (CQNPs) and their adaptive extension, ACQNPs, which utilize quantile regression to model complex distributions without restrictive parametric assumptions. By learning to focus on "informative" quantiles, ACQNPs demonstrate superior sampling efficiency and predictive accuracy across synthetic and real-world datasets.
The Gaussian Bottleneck in Neural Processes
Regression is frequently framed as finding a single conditional mean. However, many complex phenomena are inherently multimodal. For instance, in traffic flow modeling, a specific vehicle density might lead to either free-flowing traffic or a sudden collapse into a jam. A standard NP using a Gaussian likelihood would predict the average of these two states—a "middle-ground" result that corresponds to a low-probability region in reality.
Existing NP variants struggle with such heterogeneity. While they can adapt to new context points, their reliance on mean and variance parameters makes them "blind" to the multiple peaks and sharp transitions found in fields like economics, meteorology, and transportation science.
Methodology: Beyond the Mean
To address these limitations, we introduce a framework that replaces Gaussian parameters with quantile estimation.
Quantile Regression and AL Distributions
Instead of predicting a mean and variance, our models utilize Asymmetric Laplace (AL) distributions. Minimizing the loss for an AL distribution is mathematically equivalent to performing quantile regression. We represent the predictive distribution as an uncountable mixture of these AL distributions, allowing the model to capture arbitrary distribution shapes.
Adaptive Quantile Selection (ACQNP)
Not all quantiles are equally informative. In a multimodal distribution, quantiles near the peaks (modes) provide more information than those in the empty space between them. ACQNP introduces a reparameterizable network ($\psi$) that learns to map a simple uniform random variable to these high-importance quantile levels. This allows the model to "zoom in" on the most relevant parts of the distribution, improving accuracy while using fewer samples.
Experimental Results
Synthetic Multimodal Tasks
We evaluated the models on 1D and 2D functions designed to test multimodality, including "Double Sine" waves and "Circle" distributions. As shown in the qualitative results, standard models like Attentive Neural Processes (CANP) and Bootstrapping Neural Processes (BNP) often collapse to a mean or produce noisy, inaccurate predictions. In contrast, ACQNP accurately recovers the underlying data geometry. Quantitatively, on the "Circle" task, ACQNP achieved a target log-likelihood of 2.028, a massive improvement over the standard CNP's -2.387.
Real-World Traffic Data
Traffic speed-flow data from Californian freeways is notoriously non-Gaussian and "thick-tailed." In these experiments, ACQNP and CQNP proved more robust to sparse outliers that typically pull Gaussian models off-track. By focusing on quantiles, the models could "hedge their bets," placing probability mass on all likely outcomes rather than averaging them into a single incorrect state.
Image Completion
Treating pixels as coordinates for 2D regression, we tested the models on datasets like MNIST and SVHN. ACQNP produced significantly sharper reconstructions. Because it can handle sharp transitions and multi-colored boundaries, it avoids the blurring effects common in Gaussian-based image completion.
Conclusion and Future Work
Adaptive Conditional Quantile Neural Processes offer a robust alternative to Gaussian-based NPs for modeling complex, heterogeneous data. By learning informative quantiles, ACQNPs achieve high visual fidelity and predictive accuracy. While the current framework primarily handles scalar outputs and introduces some computational overhead in the decoder, its generic nature allows for easy integration into other NP variants, such as Convolutional NPs, to combine spatial equivariance with multimodal modeling capabilities.
Summary updated