Squared families are useful conjugate priors

Russell Tsuchida, Jiawei Liu, Cheng Soon Ong, Dino SejdinovicNeurIPS 2025

In Bayesian machine learning, researchers are frequently caught in a tug-of-war between expressivity and tractability. Gaussian Processes (GPs) have long been the industry standard because they are mathematically elegant: if your prior and likelihood are Gaussian, your posterior is also Gaussian. This property, known as conjugacy, allows for exact, closed-form solutions.

However, GPs suffer from a significant limitation: they are inherently unimodal. They assume uncertainty follows a single bell curve. In real-world scenarios—especially in few-shot learning where data is scarce—beliefs are often multi-modal. For instance, given ambiguous initial data, an underlying function might plausibly be "Type A" or "Type B." A standard GP cannot represent this "OR" relationship; it simply averages the possibilities into a single, often inaccurate, Gaussian distribution. While existing workarounds like Normalizing Flows can warp GP outputs to capture complex distributions, they are computationally expensive and sacrifice the elegant closed-form conjugacy of the GP.

Recent research introduces a compelling solution: leveraging Generalised Squared Families (GSF) as conjugate priors to create a multi-modal, highly tractable alternative to GPs.

The Power of Generalised Squared Families

Typically, "squared families" of distributions are utilized as likelihoods. A GSF density is proportional to the squared norm of a function: $q(\omega) \propto \|\Theta \psi(\omega)\|^2$.

The breakthrough in this paper is proving that these families can serve as conjugate priors. Usually, squaring a function complicates Bayesian updates. However, the authors demonstrate that squaring creates a trace-based structure ($Tr(M \dots)$) that aligns perfectly with linear algebra. This allows the likelihood to smoothly integrate into the base measure of the prior.

When a GSF prior is combined with a standard likelihood (such as a Gaussian), the resulting posterior and marginal likelihoods can be calculated in closed form.

Evolution of a multi-modal GSF prior into a sharpened posterior as data increases.

This conjugacy unlocks a superpower for few-shot learning: multi-modality. As shown in the figure above, the model can start with a prior featuring multiple peaks (modes). As it observes just a few data points, it can instantly "kill off" the incorrect modes and sharpen the correct one. A standard GP, by contrast, would have to slowly and inefficiently shift its single peak.

GSF Processes and Deep Kernel Learning

Building on this mathematical foundation, the authors developed GSF Processes (GSFP) for regression tasks. A key innovation is the integration of end-to-end learnable neural network features ($\psi$) within the GSF framework.

Graphical models illustrating the integration of GSF priors with neural network features for regression.

This setup essentially provides a "drop-in" replacement for the Gaussian output layer typically used in Deep Kernel Learning. It grants the model the ability to express complex, non-Gaussian uncertainty without losing the representational power of deep learning or the exactness of Bayesian updates.

Furthermore, the authors achieved significant computational efficiency through Parameter-Integral Factorization. By proving that the normalization constant of these distributions can be split into a parameter component and an integral component, the mathematical operations become substantially faster. Unlike many non-Gaussian methods that scale exponentially with dimension, GSFP inference scales linearly with the data dimension $d$, operating at $O(dn^2)$ where $n$ is the hidden layer size.

Empirical Performance

The research evaluated GSFP across 12 diverse regression settings, including both in-range and out-of-range tasks, using datasets like Sines, NDX100 (stock prices), EEG (brain signals), QMUL (multi-view faces), and Power (electricity consumption), alongside standard benchmarks like Boston Housing and Concrete Compressive Strength.

Key results include:

  • Superior Accuracy: GSFP achieved the lowest Negative Log-Likelihood (NLL) in 11 out of the 12 few-shot learning scenarios, outperforming standard Deep Kernel Transfer (DKT) and complex Non-Gaussian Gaussian Processes (NGGP).
  • Speed: GSFP is substantially faster than competing non-Gaussian methods. On the "Power" dataset, GSFP trained in approximately 3.5 minutes, compared to NGGP's 75 minutes.
  • Robustness: The model demonstrated exceptional performance on "out-of-range" tasks, indicating that its multi-modal uncertainty yields better generalization when test data diverges from training data.

Limitations and Future Directions

While GSFP offers a powerful new tool, it has limitations. The computational complexity of $O(n^2d)$ means that if a massive hidden layer ($n$) is required for an extremely complex problem, the $n^2$ term could become a bottleneck. Additionally, while GSFs are rich density approximators, they belong to a specific mathematical class; there may be edge cases where the true posterior falls outside their representational capacity.

Future work will likely explore the asymptotic normality of the marginal likelihood estimates, which could provide even stronger statistical guarantees for this promising new approach to Bayesian inference.

Summary updated

BibTeX
@inproceedings{tsuchida2025squared,
  author = {Russell Tsuchida and Jiawei Liu and Cheng Soon Ong and Dino Sejdinovic},
  title = {{Squared families are useful conjugate priors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=uAegI6Hh6G},
}
Figure