Flow-Transformed Implicit Processes for Function-Space Variational Inference

Luis A. Ortega, Andres R Masegosa, Thomas Dyhre NielsenNeurIPS 2026

TL;DR

When neural networks try to quantify their own uncertainty, standard methods often force that uncertainty into a neat, symmetric bell curve—causing them to awkwardly average together distinct possibilities when reality is lopsided or split into multiple paths. Flow-Transformed Implicit Processes (FTIP) fixes this by applying normalizing flows to a compact set of sampled functions. The result is a scalable Bayesian framework that captures messy, asymmetric, and multimodal uncertainties without the crushing computational cost of tracking massive neural network Jacobians.

What Problem Does This Paper Address?

To make a neural network "know what it doesn't know," traditional Bayesian approaches put probability distributions over millions of network weights. However, weight space is a hall of mirrors: completely different sets of weights can produce the exact same input–output predictions, making inference needlessly difficult.

A cleaner approach is function-space inference, which models uncertainty directly over the predictive functions themselves. The catch? Neural networks are implicit processes—you can easily sample a random function from them, but you cannot write down a closed-form equation for their probability density.

Existing workarounds force an uncomfortable trade-off. Tractable Function-Space Variational Inference (TFSVI) linearizes the network, requiring expensive Jacobian matrix computations. Alternatively, Variational Implicit Processes (VIP) builds a fast surrogate by drawing a finite handful of random functions from the prior and learning how to linearly combine them. While VIP is fast, it places a simple Gaussian (bell-curve) distribution over those combination weights. When the true uncertainty is asymmetric or splits into two distinct branches, VIP smears its predictions right down the middle, assigning high probability where no data actually exists.

Figure 1: Predictive distributions on two one-dimensional synthetic regression diagnostics. The bimodal dataset, shown in the top row, contains two equally likely conditional branches. The skewed dataset, shown in the bottom row, contains asymmetric log-normal noise whose tail direction changes at x = 0. Each model panel overlays 1 500 posterior predictive samples on a dense input grid, with the predictive mean shown in black. Test-set RMSE and NLL are reported in the upper-left corner.

Methods

FTIP is a targeted, "nested" upgrade to VIP. It keeps VIP’s fast, sample-forward surrogate strategy: draw $S$ random functions from your implicit prior (like a Bayesian neural network) and express your final predictor as a weighted sum of those basis functions.

What’s new is how FTIP handles the combination weights. Instead of restricting the weights to a Gaussian distribution, FTIP generates them using a normalizing flow—a sequence of invertible mathematical transformations that warp simple Gaussian noise into complex, multi-peaked, or skewed shapes. Specifically, the authors pass base noise through an initial affine map (which, on its own, reproduces standard VIP), followed by rational-quadratic spline coupling layers and invertible $1 \times 1$ LU mixing layers. Because the flow is invertible, exact probability densities remain cheap and tractable via the change-of-variables formula.

Figure 2: Left: graphical model for FTIP. Global coefficients are generated by a flow, a = Tψ(ε), and combined with sampled implicit-process features. Right: example distribution induced by the flow over the coefficient space (or over a selected projection of the flow output).

To train the model, the authors pair FTIP with a Black-Box $\alpha$ objective alongside standard ELBO. Adjusting $\alpha$ shifts how likelihoods are aggregated across samples—allowing different sampled functions to specialize in explaining different branches of the data, which FTIP's flexible posterior can actually exploit.

Datasets

FTIP is evaluated across synthetic diagnostics and real-world benchmarks:

  • Synthetic 1D Diagnostics: Custom Bimodal (two equally likely sinusoidal branches) and Skewed (asymmetric log-normal noise flipping direction at $x=0$) regression tasks, plus a prior-misspecification test using a Gaussian process base prior.
  • UCI Regression: Nine standard small-to-medium benchmarks, including Boston, Concrete, Kin8nm, Naval, Power, Wine, Yacht, Energy, and Protein.
  • Large-Scale Regression: The YearPredictionMSD dataset (derived from the Million Song Dataset).
  • Trajectory Forecasting: A scalar future path-length prediction task derived from ETH/UCY pedestrian trajectories using an LSTM backbone (predicting the total distance walked over the next 12 steps given 8 observed steps). (Appendix experiments also cover binary and multiclass classification).

Key Insights and Ideas

  • Why RMSE lies about uncertainty: Root Mean Square Error (RMSE) only judges the average prediction. On a bimodal task with two valid paths, predicting the empty space right between them yields a great RMSE! FTIP demonstrates why distribution-sensitive metrics like Negative Log-Likelihood (NLL) and the Centered Quantile Metric (CQM) are essential when evaluating uncertainty.
  • Decoupling prior and posterior capacity: You don't need to reinvent your prior generator to get better uncertainty. Even when handed a misspecified Gaussian process prior that naturally wants to average over bimodal branches, FTIP’s flow-based posterior warps the combination weights enough to separate the two modes anyway.
  • Objectives need expressivity to shine: Using a mode-friendly training objective ($\alpha = 1.0$) doesn't magically create multimodality on its own—VIP uses the exact same objective and still collapses into smooth blobs because its Gaussian posterior lacks the geometric flexibility to split apart.

Key Results

  • Synthetic Diagnostics: On the bimodal task, FTIP drops test NLL to 2.06 (compared to VIP's 3.48 and MFVI's 3.75), cleanly resolving both sinusoidal branches without the heavy Jacobian overhead of TFSVI (2.07 NLL).
  • Speed vs. Expressivity (UCI): FTIP takes a modest median 17.0 ms/iteration compared to VIP's 12.9 ms/iter, while easily beating Jacobian-heavy TFSVI (49.5 ms/iter). On symmetric datasets, FTIP matches VIP; on complex ones like Protein and Energy (at $\alpha=1.0$), FTIP slashes NLL from 2.98 to 2.60 and 2.05 to 1.66, respectively.
Predictive density on the Protein dataset showing FTIP adapting to a secondary tail mode where VIP assigns near-zero probability.
  • Large-Scale & Pedestrian Tasks: On YearPredictionMSD, FTIP achieves the best NLL (3.407 vs. VIP's 3.655) and CQM (0.010 vs. 0.029), trading off a tiny fraction of RMSE (10.31 vs. 10.23). On pedestrian path-length prediction—where TFSVI is too slow to run on the LSTM—FTIP beats VIP in NLL (1.26 vs. 1.42) while halving the RMSE of weight-space baselines.

Limitations and Future Work

FTIP’s extra expressiveness adds real memory, parameter, and runtime overhead (~32% slower per iteration than VIP on UCI). Because it doesn't beat VIP when target distributions are already symmetric and unimodal, the authors pragmatically recommend sticking to standard VIP unless validation metrics justify the flow's extra cost. Additionally, FTIP is still constrained by the span of its finite $S$ sampled basis functions, and has not yet been scaled to foundation-model architectures or high-dimensional structured outputs (like full 2D trajectory paths). Future work aims to build lighter flow architectures, adaptive triggers that only activate nonlinear flow layers when needed, and more adaptive prior-sampling bases.

Summary updated

Abstract

Implicit-process priors define distributions over functions through flexible generative mechanisms, making them attractive for Bayesian function-space modelling. However, performing posterior inference with such priors is challenging because their induced function-space distributions are typically not available in closed form. One practical strategy is to approximate the prior using a finite collection of sampled functions, and then represent posterior functions as learned combinations of these samples. Existing approaches commonly place a Gaussian variational distribution over the combination weights. While tractable, this choice limits the shapes of posterior uncertainty that can be represented, especially when the true posterior is asymmetric, heavy-tailed, or multimodal. We propose Flow-Transformed Implicit Processes (FTIP), a variational inference method that makes this finite-dimensional function-space approximation more expressive. Instead of using a Gaussian distribution over the combination weights, FTIP uses a normalizing flow to define a richer variational distribution. This induces a flexible posterior distribution over functions while preserving tractable optimization. We train the model using a Black-Box $\alpha$ objective, allowing us to compare mass-covering and mode-seeking variational behaviour. Experiments show that FTIP captures asymmetric and multimodal posterior structure in function space that Gaussian coefficient approximations tend to smooth or collapse.
BibTeX
@inproceedings{ortega2026flow,
  author = {Luis A. Ortega and Andres R Masegosa and Thomas Dyhre Nielsen},
  title = {{Flow-Transformed Implicit Processes for Function-Space Variational Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=WAVaNTVafF},
}
Figure