[Paper Review] Autoregressive Conditional Neural Processes
This paper proposes autoregressive (AR) inference for Conditional Neural Processes (CNPs), enabling them to model complex, non-Gaussian, and dependent predictive distributions without architectural or training modifications. By sequentially sampling predictions using the chain rule of probability, AR CNPs significantly outperform standard CNPs and are competitive with more complex models in log-likelihood, despite being trained only for independent Gaussian predictions.
Conditional neural processes (CNPs; Garnelo et al., 2018a) are attractive meta-learning models which produce well-calibrated predictions and are trainable via a simple maximum likelihood procedure. Although CNPs have many advantages, they are unable to model dependencies in their predictions. Various works propose solutions to this, but these come at the cost of either requiring approximate inference or being limited to Gaussian predictions. In this work, we instead propose to change how CNPs are deployed at test time, without any modifications to the model or training procedure. Instead of making predictions independently for every target point, we autoregressively define a joint predictive distribution using the chain rule of probability, taking inspiration from the neural autoregressive density estimator (NADE) literature. We show that this simple procedure allows factorised Gaussian CNPs to model highly dependent, non-Gaussian predictive distributions. Perhaps surprisingly, in an extensive range of tasks with synthetic and real data, we show that CNPs in autoregressive (AR) mode not only significantly outperform non-AR CNPs, but are also competitive with more sophisticated models that are significantly more computationally expensive and challenging to train. This performance is remarkable given that AR CNPs are not trained to model joint dependencies. Our work provides an example of how ideas from neural distribution estimation can benefit neural processes, and motivates research into the AR deployment of other neural process models.
Motivation & Objective
- To address the limitation of standard CNPs in modeling statistical dependencies and non-Gaussian predictive distributions.
- To explore whether autoregressive inference can unlock richer predictive capabilities in CNPs without altering their architecture or training.
- To demonstrate that AR deployment can yield coherent, multimodal function samples and improved log-likelihoods.
- To provide a simple, efficient alternative to complex models like LNPs and FullConvGNPs that require approximate inference or are limited to 1D inputs.
- To establish theoretical and empirical connections between AR CNPs and neural density estimation methods like NADE.
Proposed method
- Deploy trained CNPs in autoregressive mode at test time, where predictions are made sequentially using previously generated samples as input.
- Apply the chain rule of probability to define a joint predictive distribution: p(y₁,…,yₙ|x) = ∏ᵢ p(yᵢ|y₁,…,yᵢ₋₁,x).
- Use the same CNP model to predict each yᵢ conditionally on the context and previously generated y values.
- Introduce an auxiliary autoregressive (AuxAR) variant that improves marginal approximation by conditioning on additional auxiliary points.
- Leverage the model's existing Gaussian likelihood and inference head without retraining or architectural changes.
- Use the resulting autoregressive sampling to estimate joint distributions and compute predictive log-likelihoods.
Experimental results
Research questions
- RQ1Can autoregressive inference improve the predictive performance of standard CNPs without changing their training or architecture?
- RQ2Can AR CNPs model non-Gaussian and dependent predictive distributions despite being trained on independent Gaussian likelihoods?
- RQ3How does AR inference compare to more complex models like LNPs and FullConvGNPs in terms of log-likelihood and sample quality?
- RQ4In what scenarios is AR inference most beneficial, particularly regarding context set size and data distribution complexity?
- RQ5Can AR CNPs achieve performance comparable to explicitly correlated models like GNPs or FullConvGNPs?
Key findings
- AR CNPs significantly outperform standard CNPs in predictive log-likelihood across all synthetic and real-world tasks, with improvements up to 0.55 in log-likelihood for synthetic audio data.
- For the function mixture task, AR CNPs achieve a log-likelihood of -0.46 ± 0.15, compared to -0.63 ± 0.20 for standard CNPs, showing consistent gains.
- On the sawtooth function task, AR CNPs improve log-likelihood from 1.46 ± 0.30 to 1.64 ± 0.28, demonstrating better marginal modeling under complex dependencies.
- For context set sizes of 4 and 8, AR CNPs show significant improvements over standard CNPs, while gains diminish at larger context sizes where Gaussian marginals suffice.
- AR CNPs produce coherent, multimodal function samples (as shown in Figure 1), unlike standard CNPs which generate independent, uncorrelated samples.
- Theoretical analysis shows that, under sufficient data and model capacity, AR CNPs can achieve performance at least as good as GNPs, which explicitly model correlations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.