RAMP: Recognition parametrisation by Amortised Message Passing

Lior Fox, Kai Biegun, James Heald, Samo Hromadka, Arielle Rosinski, Maneesh Sahani

TL;DR

This paper introduces RAMP, a novel unsupervised learning method that learns complex latent structures in data by combining probabilistic graphical models with amortized neural network inference. RAMP effectively captures dependencies in high-dimensional, non-linear data by learning an efficient message-passing framework, outperforming existing methods in several challenging benchmarks.

What Problem Does This Paper Address?

Unsupervised learning aims to discover hidden factors that explain observed data. Probabilistic models are well-suited for this, using latent variables and graphical structures to represent dependencies. However, learning these models often requires either restrictive assumptions about variable distributions for tractable inference or computationally expensive approximations that don't scale well. Existing methods struggle to integrate the expressivity of neural networks with the principled inference of probabilistic models, particularly when dealing with complex, non-linear relationships and high-dimensional data. This paper addresses the challenge of learning rich, hierarchical latent representations in a principled and scalable way.

Methods

RAMP builds upon the Recognition-Parametrised Model (RPM) framework. The core idea is to learn an amortized message-passing network that implicitly defines the latent structure. Instead of explicitly defining generative model factors and then approximating inference, RAMP learns message-passing functions (implemented as neural networks) that directly transform beliefs about latent variables. These functions are trained to satisfy the conditional independence properties implied by a tree-structured graphical model.

Key aspects of the method include:

  • Amortized Message Passing: Neural networks learn to perform message passing on the graphical model. This allows for efficient inference across different parts of the model and for different data points.
  • Recognition Parametrisation: The inference process itself defines the model. This contrasts with traditional approaches where the generative model is defined first.
  • Nodewise RPMs: Each latent node in the tree is treated as a separate RPM, whose parameters are learned by optimizing a variational free energy.
  • Joint Optimization: All nodewise RPMs are optimized jointly, ensuring that the learned message-passing functions capture the global structure of dependencies.
  • Exponential Family Assumption: For tractability, latent variable distributions are assumed to belong to exponential families, allowing for efficient message combination by summing natural parameters.

Datasets

The paper evaluates RAMP on several datasets:

  • Linear Gaussian Trees: Data generated from a hierarchical linear-Gaussian process.
  • Non-linear Trees: Data generated from a hierarchical process with non-linear transformations and additive Gaussian noise.
  • Pendulum Dataset: Trajectories of a physical pendulum, with observations being rendered images.
  • Leeds Sports Pose (LSP) Dataset: Simplified stick-figure representations derived from human pose images, used for pose estimation.

Key Insights and Ideas

  • Learning latent structure through inference: RAMP demonstrates that learning the inference process (message passing) can be a powerful way to discover the underlying latent structure, rather than solely relying on defining a generative model.
  • Amortization for scalability: By learning amortized message-passing functions, RAMP can efficiently handle complex dependencies and high-dimensional data, overcoming limitations of traditional approximate inference methods.
  • Flexibility in representational schemes: The use of neural networks for message passing allows RAMP to learn flexible, non-linear representations, which is crucial for complex real-world data.
  • Conditional independence as a learning signal: The method leverages the conditional independence properties implied by the tree structure to guide the learning of latent representations.

Key Results

  • Accurate latent recovery: RAMP successfully recovers latent variables with high fidelity in linear-Gaussian tree models, matching the performance of exact inference.
  • Robustness to misspecification: RAMP shows robustness to structural misspecification of the graphical model, maintaining good performance for latents that are structurally intact.
  • Superior performance in non-linear settings: For non-linear tree models and the pendulum dataset, RAMP outperforms Black-Box Variational Inference (BBVI) and supervised Gaussian approximations, especially for latents further from observations.
  • Effective pose estimation: RAMP achieves state-of-the-art results in human pose estimation, learning a latent representation that accurately captures limb orientations, even with occluded joints.
  • Efficient learning: RAMP trains faster than BBVI on several benchmarks.

Limitations and Future Work

  • Tree-structured assumption: The current RAMP formulation assumes a tree-structured graphical model. The authors suggest exploring extensions to loopy graphs, where belief propagation has known empirical effectiveness.
  • Exponential family choice: While flexible, the choice of exponential family for latent distributions can still be a constraint. Future work might explore more general variational families.
  • Hyperparameter sensitivity: While the paper explores hyperparameter robustness, further investigation into optimal hyperparameter choices for various tasks could be beneficial.

Summary updated

BibTeX
@inproceedings{fox2026ramp,
  author = {Lior Fox and Kai Biegun and James Heald and Samo Hromadka and Arielle Rosinski and Maneesh Sahani},
  title = {{RAMP: Recognition parametrisation by Amortised Message Passing}},
  booktitle = {ProbML Proceedings Track},
  year = {2026},
  url = {https://openreview.net/forum?id=y7Rp5ERfEV},
}
Figure