Skip to main content
QUICK REVIEW

[Paper Review] Probabilistic Programming with Gaussian Process Memoization

Ulrich Schaechtle, Ben Zinberg|arXiv (Cornell University)|Dec 17, 2015
Gaussian Processes and Bayesian InferenceComputer Science20 references5 citations
TL;DR

This paper introduces gpmem, a probabilistic programming interface that embeds Gaussian processes (GPs) into higher-order languages via memoization, enabling automatic statistical emulation of arbitrary computational functions. It demonstrates the approach through three applications—robust regression, Bayesian structure learning, and Bayesian optimization—using a single 50-line Python library and under 20 lines of probabilistic code each, achieving state-of-the-art results with minimal user-defined code.

ABSTRACT

Gaussian Processes (GPs) are widely used tools in statistics, machine learning, robotics, computer vision, and scientific computation. However, despite their popularity, they can be difficult to apply; all but the simplest classification or regression applications require specification and inference over complex covariance functions that do not admit simple analytical posteriors. This paper shows how to embed Gaussian processes in any higher-order probabilistic programming language, using an idiom based on memoization, and demonstrates its utility by implementing and extending classic and state-of-the-art GP applications. The interface to Gaussian processes, called gpmem, takes an arbitrary real-valued computational process as input and returns a statistical emulator that automatically improve as the original process is invoked and its input-output behavior is recorded. The flexibility of gpmem is illustrated via three applications: (i) robust GP regression with hierarchical hyper-parameter learning, (ii) discovering symbolic expressions from time-series data by fully Bayesian structure learning over kernels generated by a stochastic grammar, and (iii) a bandit formulation of Bayesian optimization with automatic inference and action selection. All applications share a single 50-line Python library and require fewer than 20 lines of probabilistic code each.

Motivation & Objective

  • To enable seamless integration of Gaussian processes into higher-order probabilistic programming languages through a novel memoization-based interface.
  • To support complex GP applications such as hierarchical hyper-parameter learning, symbolic structure discovery, and Bayesian optimization within a unified framework.
  • To reduce the implementation burden of GP-based models by abstracting away low-level inference and kernel specification.
  • To enable fully Bayesian structure learning and inference programming in probabilistic models involving GPs.
  • To demonstrate that complex GP applications can be implemented with minimal probabilistic code—under 20 lines—using a shared, lightweight library.

Proposed method

  • The core technique is gpmem, a higher-order function that takes a source function and a kernel, returning a GP-based statistical emulator that learns from observed inputs and outputs.
  • gpmem uses memoization to store and incrementally update GP posterior distributions as the source function is invoked, enabling online learning.
  • The method supports arbitrary probabilistic programs as kernel functions, allowing hyper-parameters and kernel structures to be inferred jointly via Bayesian inference.
  • It leverages the Venture probabilistic programming platform’s support for foreign interfaces, inference programming, and higher-order functions to enable efficient, flexible GP inference.
  • The approach combines gradient-based, Monte Carlo, and variational inference techniques through custom inference strategies exposed via the platform’s inference programming constructs.
  • The framework supports nesting of modeling and inference, enabling GPs to be used in meta-optimization tasks such as Bayesian optimization over arbitrary objective functions.

Experimental results

Research questions

  • RQ1Can Gaussian processes be effectively embedded in a higher-order probabilistic programming language using a general-purpose memoization interface?
  • RQ2Can this embedding support complex, state-of-the-art applications like fully Bayesian structure learning and Bayesian optimization with minimal user code?
  • RQ3How does the integration of GPs via gpmem compare in expressiveness and efficiency to traditional GP libraries in terms of model specification and inference flexibility?
  • RQ4To what extent can a single 50-line Python library support diverse GP applications with under 20 lines of probabilistic code each?
  • RQ5Can the framework naturally support stochastic recursion, unbounded support sets, and higher-order procedures essential for advanced probabilistic modeling?

Key findings

  • The gpmem interface successfully enables end-to-end integration of Gaussian processes into a higher-order probabilistic programming language, supporting a wide range of applications with minimal code.
  • The framework achieves robust GP regression with hierarchical hyper-parameter learning, replicating results from Neal (1997) using a fully Bayesian approach.
  • It enables fully Bayesian structure learning over kernels generated by a stochastic grammar, extending the Automated Statistician project with uncertainty-aware model discovery.
  • The approach supports Thompson sampling-based Bayesian optimization with automatic inference and action selection, demonstrating utility in meta-optimization.
  • All three applications are implemented using the same 50-line Python library and require fewer than 20 lines of probabilistic code each, highlighting the framework’s conciseness and reusability.
  • The method supports advanced features such as stochastic recursion, unbounded support, and inference nesting, which are essential for cutting-edge probabilistic modeling.

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.