Skip to content

Poor sampling performance with some complex posteriors compared to HMC #295

@sefffal

Description

@sefffal

Hi all, I have isolated a relatively lightweight example where I find that HMC is significantly outperforming PT. I tested most variations supported in Pigeons: Slice Sampler & AutoMALA, fixed, variational and stabilized-variational).

A corner & trace plot are attached below with HMC in blue and PT in gold.

A script to produce this plot is available here: https://github.com/sefffal/OrbitPosteriorDB/blob/main/models/astrom-GL229A.jl
Use the latest #main commit of Octofitter (e.g. ] add Octofitter#main).

I would be curious to understand better why PT is struggling so much on this target, and if there is a way to improve performance to be at least within the same ball-park.

The HMC series in this plot is not exactly converged since there's pretty high correlation between samples, but it nonetheless successfully explores the posterior while PT is stuck in a much smaller region.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions