Skip to main content
The University of Massachusetts Amherst
  • Visit
  • Apply
  • Give
  • Search UMass.edu
Manning College of Information & Computer Sciences

Main navigation

  • Academics

    Programs

    Undergraduate Programs Master's Programs Doctoral Program Graduate Certificate Programs

    Curriculum

    Academic Policies Courses

    Academic Support

    Advising Career Development Scholarships and Fellowships Commencement
  • Research

    Research

    Research Areas Research Centers & Labs Undergraduate Research Opportunities

    Faculty & Researchers

    Faculty Directory Faculty Achievements Turing Award

    Engage

    Research News Distinguished Lecturer Series Rising Stars in Computer Science Lecture Series
  • Community

    On-Campus

    Community, Outreach, and Organizational Learning Student Organizations Massenberg Summer STEM Program Awards Programs

    External

    Alumni Support CICS
  • People
    Full A-Z Directory Faculty Staff
  • About

    Overview

    College Overview Leadership Our New Building The Manning Gift

    News & Events

    News & Stories Events Calendar Significant Bits Magazine

    Connect

    Visiting CICS Contact Us Employment Offices & Services
  • Info For
    Current Undergraduate Students Current Graduate Students Faculty and Staff Newly Accepted Undergraduate Students

Breadcrumb

  1. Events

PhD Thesis Defense: Jinlin Lai, Efficient Bayesian Inference with Automatic Marginalization

Content

Wednesday, June 17, 2026, 1:00 PM - Wednesday, June 17, 2026, 3:00 PM

Hybrid
PhD Thesis Defense

Speaker:

Jinlin Lai

Abstract:

Bayesian methods incorporate prior knowledge into statistical modeling. There are two steps in practical Bayesian inference: modeling and inference. Domain experts encode their knowledge into probabilistic models, and use an algorithm to infer the (posterior) distribution of unobserved variables given the observed ones. To reduce user effort, probabilistic programming languages (PPLs) are designed to automate inference for arbitrary models with general-purpose algorithms. However, the posterior distributions of real-world models can be difficult to reason about, complicating the inference with those algorithms. There is a consensus that statistical algorithms work better for lower-dimensional problems, and Bayesian methods perform better for posterior distributions with better geometries. Marginalization is a family of methods for integrating variables out of statistical models, which not only reduces the problem dimension, but also simplifies the geometry of the posterior, thereby leading to better posterior inference. We study the principles of marginalization in the context of modern Bayesian inference, and propose automatic marginalization pipelines in PPLs that are efficient for applied models.

In the first part of the thesis, we study methods for automatic marginalization for graphical models within PPLs. At a high level, we automatically transform users' probabilistic programs so that they can be more efficient for downstream inference algorithms. In the back-end, probabilistic programs are compiled into basic operations, which can be transformed into forward computation graphs for the models. At this level of abstraction, we automatically detect conjugacy relationships between random variables, and apply edge reversal operations to marginalize variables out from the graphical models. Finally, the transformed computation graphs are used for inference with Hamiltonian Monte Carlo (HMC). We show that automatic marginalization improves the inference efficiency of hierarchical Bayesian models.

The second part of the thesis focuses on efficient posterior inference for linear mixed-effects models (LMMs). LMMs are regression models that have both fixed and random effects, and are widely used across different scientific disciplines, including ecology, medicine, psychology, neuroscience and cognitive science. We utilize sparse structures and fast linear algebra methods to perform vectorized marginalization for LMMs, which scales to large datasets and runs on modern GPUs, improving over naive automatic marginalization. The algorithm is implemented as a PPL library function that can be called directly by users. We show that marginalization is always beneficial when applicable and highlight improvements in various models, especially ones from cognitive sciences.

The third part of the thesis is about correcting the error of adjoint Laplace approximation in Bayesian inference for latent Gaussian models (LGMs). LGMs are a popular class of Bayesian hierarchical models that include Gaussian processes, as well as certain spatial models and mixed-effect models. For LGMs with a non-Gaussian likelihood, exact marginalization is not possible and a popular approach is to do approximate marginalization with an integrated Laplace approximation (ILA). Using ILA produces an approximate posterior which, in some settings, can differ significantly from the correct posterior, which impacts downstream applications. We propose an importance sampling scheme to correct the error introduced by ILA. This idea is realized with various techniques, including pseudo-marginalization, quasi-Monte Carlo and randomized quasi-Monte Carlo. We implement our methods in an automatic differentiation framework to support gradient-based algorithms such as Hamiltonian Monte Carlo. We demonstrate the benefits of reduced error in various applied models.

This thesis explores automatic marginalization at different abstraction levels of probabilistic programming. The methods could be utilized to design more efficient and more automatic probabilistic programming languages, facilitating future applications of Bayesian methods.

Advisor:

Daniel Sheldon

Hybrid event posted in PhD Thesis Defense for Faculty and Current students

Related links

  • Join via Zoom

Site footer

Manning College of Information & Computer Sciences
  • Find us on Facebook
  • Find us on YouTube
  • Find us on LinkedIn
  • Find us on Instagram
  • Find us on Flickr
  • Find us on Bluesky Social
  • Find us on Tiktok
Address

140 Governors Dr
Amherst, MA 01003
United States

  • Visit CICS
  • Give
  • Contact Us
  • Employment
  • Events Calendar
  • Offices & Services

Info For

  • Current Undergraduate Students
  • Current Graduate Students
  • Faculty & Staff
  • Newly Accepted Undergraduate Students
University of Massachusetts Amherst
  • ©2026 University of Massachusetts Amherst
  • Site policies
  • Privacy
  • Non-discrimination notice
  • Accessibility
  • Terms of use