arXiv:2608.02844stat.MLAug 2026

Manuscript Offprint

arXiv:2608.02844

Particle-based Generalised Stochastic Optimisation

Jiechen Jackie Zhang, O. Deniz Akyildiz

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We develop a class of general diffusion-based stochastic particle optimisation methods for loss functions with intractable gradients. Specifically, we consider problems in which the loss gradient is an integral with respect to a parameter-dependent distribution, a structure that includes training generative models, fine-tuning, and learning latent-variable models. We introduce mean-field dynamics and its interacting-particle approximations, which contain several existing algorithms as special cases and provide a route to constructing new methods. Under well-posedness and joint contractivity assumptions, we prove exponential convergence and show that the continuous-time particle system admits a non-asymptotic error bound. We illustrate our framework by developing higher-order Langevin and momentum optimisers and evaluating them on maximum marginal-likelihood estimation and energy-based-model training.

1 Introduction

Many problems in statistics and machine learning can be formulated as the optimisation of a loss ℓ:Θ→R\ell:\Theta\rightarrow\mathbb{R} whose gradient takes the form of an expectation with respect to an intractable parameter-dependent distribution πθ\pi_{\theta}, i.e. ∇θℓ(θ)=Eπθ[F(θ,X)]\nabla_{\theta}\ell(\theta)=\mathbb{E}_{\pi_{\theta}}[F(\theta,X)]. This structure arises in problems such as maximum-likelihood training of energy-based models (EBMs)(Hinton, 2002; Nijkamp et al., 2019; Song and Kingma, 2021; Oliva et al., 2025), latent EBMs(Pang et al., 2020; Marks et al., 2026), maximum marginal likelihood estimation (MMLE)(Atchadé et al., 2017; De Bortoli et al., 2021; Kuntz et al., 2023; Lim et al., 2024; Akyildiz et al., 2025), fine tuning (Marion et al., 2025), and Bayesian experimental design (Iollo et al., 2025).

These problems are usually solved via generic first-order optimisation schemes where each iteration involves running Markov chain Monte Carlo (MCMC)to sample from πθ\pi_{\theta}, resulting in a nested optimisation-sampling scheme (Younes, 1999; Andrieu and Vihola, 2014; Atchadé et al., 2017; De Bortoli et al., 2021). However, this is computationally expensive with delicate convergence properties dependent on various factors such as Markov-chain bias, mixing, and step-size selections. A number of algorithms have been developed in recent literature to avoid separately equilibrating an inner Markov chain, see, e.g. Kuntz et al. (2023); Lim et al. (2024); Akyildiz et al. (2025) for MMLEin latent variable models, and Marion et al. (2025) for fine tuning of generative models. These methods construct joint sampling-optimisation procedures, typically with Langevin processes and gradient descent based optimisers. However, they are often tied to particular dynamical choices of optimisers and diffusions, which may even be replaced by alternatives in implementation. In fact, practical applications of such methods often use modern optimisers such as Adam (Kingma and Ba, 2015), see, e.g., Kuntz et al. (2023); Marks et al. (2026) or preconditioned Langevin dynamics, see, e.g., Glyn-Davies et al. (2025); Wang et al. (2026); Marks et al. (2026). This raises the question of how to define principled, general purpose stochastic optimisation methods for loss functions with intractable gradients.

In this work, we develop general diffusion-based particle optimisation methods. Specifically:

(C1) We develop a general diffusion-based framework for stochastic optimisation of loss functions, accounting for general optimisation and sampling dynamics. This unifies and generalises several existing methods for general optimisation problems whose gradients involve parameter-dependent expectations and leads to the design of a novel class of algorithms.

(C2) Under this general formulation, we establish exponential contraction of the mean-field system under a joint strong-monotonicity condition and a finite-NN error bound for a particle approximation.

(C3) Using the general framework, we develop two novel algorithms, (i) a higher-order Langevin dynamics based MMLEalgorithm, and (ii) a momentum-based algorithm for training EBMs. We show that these algorithms outperform existing methods in their respective applications. We also discuss how to develop novel algorithms for other applications, by instantiating the general framework with appropriate choices of optimisers and diffusions.

The rest of the paper is organised as follows. In Section 2, we provide background on the optimisation problems we consider, and the sampling dynamics we use, together with a discussion of related work. In Section 3, we introduce our general mean-field system for stochastic optimisation. We then provide theoretical results on the convergence of the mean-field system and finite-particle error bounds in Section 4. Finally, we show the design of novel algorithms in Section 5 accompanied with numerical results and experiments.

References (33)