Skip to main content
QUICK REVIEW

[Paper Review] Kernel-Based Just-In-Time Learning for Passing Expectation Propagation Messages

Wittawat Jitkrittum, Arthur Gretton|arXiv (Cornell University)|Mar 9, 2015
Gaussian Processes and Bayesian InferenceComputer Science13 references10 citations
TL;DR

This paper proposes a kernel-based just-in-time (KJIT) learning method for expectation propagation (EP) that replaces computationally expensive message integrals with a fast, uncertainty-aware regression model. Using a two-level random feature representation in a reproducing kernel Hilbert space, KJIT enables efficient online updates and reliable uncertainty estimates, allowing it to query an oracle only when uncertain, achieving high accuracy at lower computational cost than standard EP or prior learning-based approaches.

ABSTRACT

We propose an efficient nonparametric strategy for learning a message operator in expectation propagation (EP), which takes as input the set of incoming messages to a factor node, and produces an outgoing message as output. This learned operator replaces the multivariate integral required in classical EP, which may not have an analytic expression. We use kernel-based regression, which is trained on a set of probability distributions representing the incoming messages, and the associated outgoing messages. The kernel approach has two main advantages: first, it is fast, as it is implemented using a novel two-layer random feature representation of the input message distributions; second, it has principled uncertainty estimates, and can be cheaply updated online, meaning it can request and incorporate new training data when it encounters inputs on which it is uncertain. In experiments, our approach is able to solve learning problems where a single message operator is required for multiple, substantially different data sets (logistic regression for a variety of classification problems), where it is essential to accurately assess uncertainty and to efficiently and robustly update the message operator.

Motivation & Objective

  • To address the high computational cost of expectation propagation (EP) message updates when analytical solutions are unavailable.
  • To develop a nonparametric, fast, and uncertainty-aware method for learning message operators in EP that avoids reliance on expensive Monte Carlo sampling.
  • To enable online, just-in-time learning by using predictive uncertainty to trigger oracle queries when the model is uncertain.
  • To overcome limitations of prior approaches—such as neural networks and random forests—by providing principled uncertainty estimates and efficient online updates.
  • To demonstrate robust performance across diverse Bayesian models, including logistic regression on multiple UCI datasets, with minimal loss in accuracy and significant speedups.

Proposed method

  • The method frames the message operator learning as a distribution regression problem, where inputs are probability distributions embedded into a reproducing kernel Hilbert space (RKHS) using a characteristic kernel.
  • It employs a novel two-level random feature representation: first, random Fourier features map the input distributions, and second, a second layer of random features is used for regression in the primal space, enabling fast prediction and update.
  • The regression model is implemented as a Gaussian process, providing well-founded predictive uncertainty estimates for each output message.
  • Uncertainty estimates guide online learning: when the model predicts with high uncertainty, it queries the exact EP oracle for new training pairs, enabling adaptive, just-in-time refinement.
  • The model is trained on a mini-batch of input/output message pairs generated via importance sampling, and updated incrementally as new uncertain predictions arise.
  • The approach is applied to factor nodes in EP, replacing the standard multivariate integral with a learned, nonparametric mapping that generalizes across different data distributions.

Experimental results

Research questions

  • RQ1Can a nonparametric, kernel-based regression model reliably learn message operators in expectation propagation without requiring closed-form integrals?
  • RQ2Can such a model provide principled uncertainty estimates that guide effective, just-in-time oracle queries during inference?
  • RQ3Does the proposed method achieve comparable accuracy to exact EP while significantly reducing computational cost across diverse Bayesian models?
  • RQ4How does the uncertainty estimation in this kernel-based approach compare to heuristic uncertainty estimates in random forests, especially in out-of-distribution settings?
  • RQ5Can the model efficiently adapt to changes in input message distributions, such as switching between different classification datasets, through online updates?

Key findings

  • KJIT achieves posterior estimates in agreement with exact inference (using Infer.NET as oracle), demonstrating high accuracy across multiple Bayesian models.
  • The method reduces inference time significantly compared to standard EP, with the cost decreasing as more problems are learned due to fewer oracle queries over time.
  • Uncertainty estimates in KJIT show a sharp rise after the first EP iteration when switching to a new dataset, indicating prompt detection of distributional shifts.
  • The uncertainty decreases steadily after querying the oracle, confirming that the model successfully adapts to new data distributions through online learning.
  • KJIT maintains high classification accuracy on test sets across four UCI binary classification datasets while reducing inference time, outperforming both standard EP and prior learning-based methods.
  • Empirical results show that KJIT’s uncertainty estimates are more robust and informative than those of random forests, especially in out-of-distribution scenarios where random forest heuristics fail.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.