Path-dependent Discrete Amortized Inference
Tiago Silva (Postdoc · MBZUAI), Esmeralda S Whitammer (Professor · University of Edinburgh), Salem Lahlou (Professor · MBZUAI)
Overview
This talk addresses the fundamental computational bottleneck of the sampling problem in machine learning and statistics: generating samples from unnormalized distributions over given spaces. Specifically, the authors examine amortized inference over compositional, finite spaces where elements are constructed iteratively. Applications range from Bayesian inference (such as Bayesian variable selection) to statistical mechanics (simulating Boltzmann distributions in physical systems).

Key moments
- 0:00 Introduction to the sampling problem and compositional spaces
- 2:00 State graphs and Markov decision processes for compositional sampling
- 4:00 Limitations of purely Markovian parametrizations and partial observability
- 6:00 Empirical analysis of non-smooth functions and high Lipschitz constants
- 8:00 Proposed latent dynamical system and rotational self-referential weight matrix
- 9:00 Experimental results and conclusion on benchmark improvements
Path-dependent Discrete Amortized Inference
Speakers: Tiago Silva (Postdoc, MBZUAI); Esmeralda S Whitammer (Professor, University of Edinburgh); Salem Lahlou (Professor, MBZUAI)
Conference: ICML
YouTube: https://slideslive.com/39083632
Overview
This talk addresses the fundamental computational bottleneck of the sampling problem in machine learning and statistics: generating samples from unnormalized distributions over given spaces. Specifically, the authors examine amortized inference over compositional, finite spaces where elements are constructed iteratively. Applications range from Bayesian inference (such as Bayesian variable selection) to statistical mechanics (simulating Boltzmann distributions in physical systems).
The presentation, delivered by Tiago Silva on joint work with Esmeralda S. Whitammer and Salem Lahlou, investigates the structural limitations of standard Markovian parametrization in policy-based sampling. The central thesis is that conventional Markov decision process (MDP) formulations suffer from near-partial observability from the neural network's perspective. To resolve this, the authors introduce a path-dependent formulation leveraging a latent dynamical system and a rotational self-referential weight matrix, which significantly improves training convergence and goodness of fit across standard benchmarks.
Background
▶ Watch: Introduction to the sampling problem and compositional spaces (0:00)
In many machine learning and statistical physics domains, the primary computational hurdle is drawing samples from an intractable distribution $f(x)$ with an unknown normalization constant. For Bayesian inference, this manifests as posterior distributions governed by Bayes' rule. In statistical mechanics, it appears as Boltzmann distributions across physical configurations.
When restricted to compositional spaces—where states are built incrementally over a sequence of steps—researchers frequently model the generation process using a state graph and a policy function. Together, these define a Markov Decision Process (MDP). Standard approaches parameterize the policy function $P_f$ using neural networks (such as MLPs) operating directly on the ambient state space.
However, the authors identify a critical theoretical and empirical gap in this paradigm: while the ambient state graph is fully observable in principle, a purely Markovian parameterization forces the neural network to approximate highly non-smooth mappings. This introduces severe optimization challenges, high Lipschitz constants, and slow convergence when structurally distinct trajectories converge on states requiring divergent downstream actions.
Key Findings
▶ Watch: Limitations of purely Markovian parametrizations and partial observability (4:00)
The primary finding of this work is that standard Markovian samplers in discrete amortized inference suffer from intrinsic near-partial observability, leading to pathological optimization landscapes.
- State Separation Failures: Purely Markovian models struggle to separate policies for intermediate states that lead to vastly different optimal action distributions. This is quantified by high KL divergence between policy distributions at structurally similar nodes.
- Optimization Bottlenecks: The inability of Markovian neural networks to differentiate these states results in slow training convergence, high Lipschitz constants, and discrepancies between the target sampling distribution and the learned variational distribution.
- Effectiveness of Path-Dependence: Lifting the Markov process by incorporating a latent dynamical system enables the model to successfully distinguish between otherwise confusable states along different trajectories.
- Empirical Benchmarks: In standard compositional environments like the Hypergrid environment, path-dependent parameterization consistently accelerates convergence rates and achieves superior goodness of fit compared to memoryless Markovian baselines.
Technical Deep Dive
▶ Watch: Empirical analysis of non-smooth functions and high Lipschitz constants (6:00)
The technical core of the paper contrasts memoryless Markovian policies with path-dependent recurrent formulations. In a standard compositional sampling setup, the marginal distribution over a target space is formulated as a marginalization over all trajectories $s_0 \to s_1 \to \dots \to s$:
$$P(s) = \sum_{\tau \in \text{Trajectories}(s)} \prod_{t} P_f(a_t | s_t)$$
When parameterizing $P_f$ as a standard multilayer perceptron (MLP) taking only the current state $s_t$ as input, states that share local representations but demand divergent future trajectories (e.g., node $P_2$ needing an "up" action and node $P_3$ needing a "right" action) force the MLP to learn high-frequency, non-smooth boundaries.
To overcome this, the authors propose a path-dependent discrete amortized inference framework. Instead of conditioning purely on the ambient state, the policy is updated via a recurrent architecture that maintains trajectory history. Specifically, the authors implement a rotational self-referential weight matrix—a sequence-processing architectural design that rotates the internal embeddings of the neural network throughout the trajectory rollout. This rotational mechanism ensures that distinct execution histories project onto separable latent representations, insulating the model from the near-partial observability traps inherent in flat state graphs.
Experimental Setup & Results
▶ Watch: Proposed latent dynamical system and rotational self-referential weight matrix (8:00)
The empirical evaluation focuses on compositional sampling benchmarks, specifically highlighting finite spaces such as subset generation, bit sequences (e.g., Ising models), and the Hypergrid environment.
- Metrics: Evaluation relies on the KL divergence between intermediate state policies (such as states $P_2$ and $P_3$) to measure state-separability, alongside overall convergence speed and distributional goodness of fit against ground-truth sampling distributions.
- Baselines: The path-dependent recurrent policy network is benchmarked directly against conventional memoryless Markovian policy networks parameterized by standard MLPs.
- Headline Results: Empirical plots demonstrate that while Markovian parameterizations exhibit persistently high policy divergence errors and sluggish convergence curves, introducing the latent dynamical system via rotational self-referential matrices rapidly drives down policy confusion, accelerates training convergence, and yields a closer match to target sampling distributions.
(Note: Detailed ablations on specific rotation angle hyperparameters or exact network layer counts were not emphasized in this introductory talk format.)
Practical Implications
▶ Watch: Experimental results and conclusion on benchmark improvements (9:00)
For machine learning engineers, infra teams, and model builders working on generative modeling, Bayesian computation, and probabilistic programming, these findings highlight the hidden costs of memoryless assumptions in sequential generation tasks.
- Beyond Markovian Limits: Practitioners building amortized samplers for discrete structures (such as molecular design, combinatorial optimization, or Bayesian variable selection) should avoid purely Markovian policy parameterizations when trajectory history carries essential semantic context.
- Architectural Choices: Incorporating recurrent structures or rotational self-referential weight matrices provides a robust mechanism to stabilize policy gradient or reinforcement learning objectives in compositional spaces.
- Tradeoffs: While path-dependent models require maintaining hidden states across trajectory rollouts—marginally increasing memory overhead during inference and training—the substantial gains in convergence speed and sample quality far outweigh the computational cost.
Key Takeaways
- The Sampling Bottleneck: Unnormalized distribution sampling over compositional spaces remains a core computational challenge in Bayesian inference and statistical mechanics.
- Markovian Blind Spots: Purely Markovian policy parameterizations suffer from near-partial observability from the neural network's perspective, causing high Lipschitz constants and slow convergence.
- Path-Dependent Resolution: Lifting the state space with a latent dynamical system allows the model to successfully separate structurally similar states that require divergent downstream actions.
- Rotational Architectures: Implementing rotational self-referential weight matrices across trajectory rollouts effectively preserves execution history and stabilizes training.
- Empirical Superiority: Across standard benchmarks like the Hypergrid environment, path-dependent amortized inference achieves faster convergence and better goodness of fit than memoryless baselines.
About the Speaker(s)
- Tiago Silva (Postdoc, MBZUAI): Postdoc at MBZUAI working on discrete amortized inference and sampling problems in machine learning.
- Esmeralda S Whitammer (Professor, University of Edinburgh): Professor at University of Edinburgh working on discrete amortized inference and sampling problems.
- Salem Lahlou (Professor, MBZUAI): Professor at MBZUAI in Abu Dhabi working on discrete amortized inference and sampling problems.
Reviews
→ Top-rated talks at International Conference on Machine Learning 2026
All talks from International Conference on Machine Learning 2026