MCP
SD

Samuel Duffield

23 papers in the library · Same-name authors told apart using DBLP

Papers

23
CN101 - A Digital Thermodynamic Computer for Generative AI
Lars HoldijkDenis MelansonZier MenschBrandon BirchallVincent CheungNicholas LehrterMaxwell AiferSamuel DuffieldJan Ole ErnstRajath SalegameAntonio J. MartinezGavin Crooks  +5
This paper proposes a substrate-independent formalisation of equilibration-style thermodynamic computing, where computation is the stationary expectation of an ergodic process, designed solely through the dynamical generator L*. This formulation makes precision a runtime knob, supports sample-average decomposition, and enables sequential parallelism. The authors instantiate it in a digital CMOS chip, CN101, using discrete accumulator dynamics and stochastic computing, demonstrating its viability on generative AI tasks including VAEs and flow matching, thus showing the approach works on standard digital hardware.
arXivarXiv · · August 1, 2026
1
1
Robust Stochastic Gradient Posterior Sampling with Lattice Based Discretisation
Zier MenschLars HoldijkSamuel DuffieldMaxwell AiferPatrick J. ColesMax WellingMiranda C. N. Cheng
This paper presents the Stochastic Gradient Lattice Random Walk (SGLRW), a discretisation of the Lattice Random Walk for posterior sampling that injects stochastic noise only through the off-diagonal elements of the update covariance. Compared to Stochastic Gradient Langevin Dynamics (SGLD), SGLRW is more robust to minibatch size and heavy-tailed gradient noise. Experiments on Bayesian regression and classification confirm that SGLRW remains stable where SGLD fails and achieves comparable or better predictive performance.
arXivarXiv · · February 17, 2026
0
0
Robust Stochastic Gradient Posterior Sampling with Lattice Based Discretisation
Zier MenschLars HoldijkSamuel DuffieldMaxwell AiferPatrick J. ColesMax WellingMiranda C. N. Cheng
We propose Stochastic Gradient Lattice Random Walk (SGLRW), a stochastic-gradient MCMC method that extends Lattice Random Walk discretization. Unlike SGLD, SGLRW injects noise only through the off-diagonal elements of the update covariance, improving robustness to minibatch size while retaining asymptotic correctness. Experiments on Bayesian regression/classification show SGLRW stays stable where SGLD fails, even with heavy-tailed gradient noise, and matches or improves performance.
OpenReviewOpenReview · · February 9, 2026
0
A Complete Decomposition of Stochastic Differential Equations
Samuel Duffield
This paper shows that any stochastic differential equation with prescribed time-dependent marginal distributions can be decomposed into three components: a unique scalar field governing the marginal evolution, a symmetric positive-semidefinite diffusion matrix field, and a skew-symmetric matrix field. This provides a complete structural decomposition of such equations.
OpenReviewOpenReview · · January 23, 2026
0
Robust Stochastic Gradient Posterior Sampling with Lattice Based Discretisation
Zier MenschLars HoldijkSamuel DuffieldMaxwell AiferPatrick J. ColesMax WellingMiranda C. N. Cheng
The paper proposes Stochastic Gradient Lattice Random Walk (SGLRW), extending Lattice Random Walk discretisation for scalable Bayesian posterior sampling. Unlike Stochastic Gradient Langevin Dynamics (SGLD), SGLRW injects stochastic noise only through off-diagonal update-covariance elements, yielding greater robustness to minibatch size while retaining asymptotic correctness. It also analyzes a gradient-clipping analogue of SGLD for comparison. Experiments on Bayesian regression and classification show SGLRW remains stable where SGLD fails, including heavy-tailed gradient noise, and matches or improves predictive performance.
OpenReviewOpenReview · · January 23, 2026
0
A Complete Decomposition of Stochastic Differential Equations
Samuel Duffield
This paper shows that any stochastic differential equation with prescribed time-dependent marginal distributions can be decomposed into three components: a unique scalar field governing marginal evolution, a symmetric positive-semidefinite diffusion matrix field, and a skew-symmetric matrix field.
arXivarXiv · · January 12, 2026
0
1
Lattice Random Walk Discretisations of Stochastic Differential Equations
Samuel DuffieldMaxwell AiferDenis MelansonZach BelatechePatrick J. Coles
This paper introduces a lattice random walk discretisation for SDEs that uses binary or ternary increments per step, replacing floating-point arithmetic with simple random bit values. The method eliminates Gaussian sampling, resists quantisation errors, and handles non-Lipschitz drifts. Weak convergence is proved, and experiments on diffusion models demonstrate advantages over traditional schemes.
arXivarXiv · · August 28, 2025
0
3
Scalable Thermodynamic Second-order Optimization
Kaelan DonatellaSamuel DuffieldDenis MelansonMaxwell AiferPhoebe KlettRajath SalegameZach BelatecheGavin CrooksAntonio J. MartinezPatrick J. Coles
This paper proposes a scalable algorithm that uses thermodynamic computers to accelerate the Kronecker-factored approximate curvature (K-FAC) second-order optimizer, a method computationally expensive on digital hardware due to matrix inversions. The algorithm's asymptotic complexity advantage grows with the number of neurons per layer, $n$, and numerical experiments demonstrate that second-order optimization benefits persist under significant quantization noise. Speedups are predicted for large-scale vision and graph problems based on realistic hardware characteristics.
arXivarXiv · · February 12, 2025
0
2
Thermodynamic Bayesian Inference
Maxwell AiferSamuel DuffieldKaelan DonatellaDenis MelansonPhoebe KlettZach BelatecheGavin CrooksAntonio J. MartinezPatrick J. Coles
This paper proposes electronic analog devices that sample from Bayesian posteriors by physically realizing Langevin dynamics, a natural mapping given thermodynamic computing's use of Langevin equations for accelerating machine learning operations. Circuit designs for Gaussian-Gaussian and Bayesian logistic regression posteriors are validated through simulations. Under reasonable assumptions, sampling time scales as $\ln(d)$ (where $d$ is dimension), and for the Gaussian-Gaussian case, energy cost scales as $d\ln(d)$. This indicates thermodynamic computing's potential for fast, energy-efficient Bayesian inference.
arXivarXiv · · October 2, 2024
0
13
Scalable Bayesian Learning with posteriors
Samuel DuffieldKaelan DonatellaJohnathan ChiuPhoebe KlettDaniel Simpson
This paper introduces _posteriors_, an extensible PyTorch library for scalable Bayesian learning with large models and datasets. Its central contribution is a tempered framing of stochastic gradient Markov chain Monte Carlo that transitions seamlessly into optimization, and reveals a minor modification making deep ensembles asymptotically unbiased for the Bayesian posterior. The authors demonstrate utility via experiments on the cold posterior effect and large language models, with the library open-sourced on GitHub.
OpenReviewOpenReview · · September 26, 2024
0
Thermodynamic Natural Gradient Descent
Kaelan DonatellaSamuel DuffieldMaxwell AiferDenis MelansonGavin CrooksPatrick J. Coles
Natural gradient descent (NGD) is usually impractical for large-scale training because its per-iteration cost exceeds that of first-order methods on digital hardware. The authors present a hybrid digital-analog algorithm that matches NGD in a certain parameter regime while avoiding costly linear solves. It exploits equilibrium thermodynamic properties of an analog computer; gradients and the Fisher information matrix (or another positive semidefinite curvature matrix) are computed periodically. Numerical experiments on classification and language model fine-tuning show superiority over state-of-the-art digital first- and second-order methods.
OpenReviewOpenReview · · September 26, 2024
0
Thermodynamic Bayesian Inference
Maxwell AiferKaelan DonatellaSamuel DuffieldDenis MelansonPhoebe KlettGavin CrooksAntonio J MartinezPatrick J. Coles
This paper proposes thermodynamic computing as a way to accelerate Bayesian inference, which is often intractable due to the difficulty of sampling high-dimensional posteriors. The authors present electronic analog circuits that physically realize Langevin dynamics to sample from Bayesian posteriors, with specific designs for a Gaussian-Gaussian model and Bayesian logistic regression, validated by simulations. Under reasonable assumptions, sampling the Gaussian-Gaussian posterior achieves sublinear time complexity in dimension, highlighting the potential of this approach.
OpenReviewOpenReview · · September 12, 2024
0
Scalable Bayesian Learning with posteriors
Samuel DuffieldKaelan DonatellaJohnathan ChiuPhoebe KlettDaniel Simpson
This paper introduces posteriors, an extensible PyTorch library that makes Bayesian learning scalable to large data and parameter regimes by providing general-purpose implementations of posterior approximations. The library features a tempered formulation of stochastic gradient Markov chain Monte Carlo that smoothly transitions into optimization and reveals a minor modification to deep ensembles ensuring asymptotic unbiasedness for the Bayesian posterior. Experiments, including a study of the cold posterior effect and applications with large language models, demonstrate the utility of these Bayesian approximations.
arXivarXiv · · May 31, 2024
0
16
Thermodynamic Natural Gradient Descent
Kaelan DonatellaSamuel DuffieldMaxwell AiferDenis MelansonGavin CrooksPatrick J. Coles
This work introduces a hybrid digital-analog algorithm that implements natural gradient descent (NGD) with per-iteration complexity comparable to first-order methods, by exploiting analog thermodynamic hardware. At equilibrium, the analog system's dynamics replace the costly linear system solve required by standard NGD. The gradient and curvature matrix are computed digitally at intervals. Numerical results on classification and language model fine-tuning show the method outperforms state-of-the-art digital first- and second-order training.
arXivarXiv · · May 22, 2024
0
11
Thermodynamic Matrix Exponentials and Thermodynamic Parallelism
Samuel DuffieldMaxwell AiferGavin CrooksThomas AhlePatrick J. Coles
This paper presents a thermodynamic algorithm for exponentiating a real matrix, implemented by the thermal equilibration of a simple circuit of coupled oscillators. The algorithm achieves an asymptotic speedup linear in the matrix dimension. The authors introduce "thermodynamic parallelism" to explain this advantage, proposing that thermodynamic noise provides a resource for effective parallelization, which may generalize to other thermodynamic computations.
arXivarXiv · · November 21, 2023
0
22
Exploiting Inductive Biases in Video Modeling through Neural CDEs
Johnathan ChiuSamuel DuffieldMax Hunter-GordonKaelan DonatellaMax AiferAndi Gu
This paper introduces a continuous-time U-Net architecture for video modeling that uses controlled differential equations (CDEs) applied at multiple resolutions. Unlike traditional methods, the approach does not require explicit optical flow learning, instead leveraging CDEs' inherent temporal continuity. It achieves competitive performance on video interpolation and mask propagation tasks.
arXivarXiv · · November 8, 2023
0
1
Thermodynamic Linear Algebra
Maxwell AiferKaelan DonatellaMax Hunter GordonSamuel DuffieldThomas AhleDaniel SimpsonGavin E. CrooksPatrick J. Coles
This paper shows that problems in linear algebra can be solved by sampling from the thermodynamic equilibrium of a system of coupled harmonic oscillators. It presents algorithms for solving linear systems, computing matrix inverses, determinants, and Lyapunov equations. Under reasonable assumptions, these algorithms achieve asymptotic speedups over digital methods that scale linearly with matrix dimension. The work provides a near-term path to accelerating linear algebra through classical thermodynamic computing, grounded in principles such as ergodicity and equilibration.
arXivarXiv · · August 10, 2023
0
64
A State-Space Perspective on Modelling and Inference for Online Skill Rating
Samuel DuffieldSamuel PowerLorenzo Rimella
This paper advocates a state-space model for online skill rating, modelling players' skills as time-varying and match results as observations. It unifies popular rating methods under this perspective and introduces new sequential Monte Carlo and discrete hidden Markov model approaches. The authors examine the three stages of inference (filtering, smoothing, parameter estimation) and discuss approximations that enable scaling to numerous players and matches. A reproducible experimental pipeline is provided via an open-source Python package.
arXivarXiv · · August 4, 2023
0
11
Demonstrating Bayesian Quantum Phase Estimation with Quantum Error Detection
Kentaro YamamotoSamuel DuffieldYuta KikuchiDavid Muñoz Ramo
This work demonstrates a Bayesian quantum phase estimation (QPE) algorithm on a trapped-ion quantum computer for estimating the ground state energy of a hydrogen molecule. The method combines a Bayesian approach with optimal parameter selection and a $[[n+2,n,2]]$ quantum error detection code tailored to hardware capabilities. Using circuits with up to 920 physical two-qubit gates, the experiment estimates the energy within $6\times10^{-3}$ hartree of the exact value, taking a step toward fault-tolerant quantum computing.
arXivarXiv · · June 29, 2023
0
85
Quasi-Newton Sequential Monte Carlo
Samuel DuffieldSumeetpal S. Singh
This paper accelerates sequential Monte Carlo (SMC) samplers for Bayesian posterior inference by incorporating the L-BFGS Hessian approximation, which has linear complexity in the parameter dimension and requires no additional posterior or gradient evaluations. The resulting algorithm is adaptive, parallelisable, and suited to high-dimensional and multi-modal posteriors, as demonstrated on challenging numerical examples.
arXivarXiv · · November 22, 2022
0
1
Bayesian Learning of Parameterised Quantum Circuits
Samuel DuffieldMarcello BenedettiMatthias Rosenkranz
This paper reinterprets the training of parameterised quantum circuits as Bayesian posterior inference. The cost function and a prior define a posterior over circuit parameters. A dimension reduction strategy uses a maximum a posteriori point estimate with a Laplace prior, yielding circuits that are faster and less noisy on Quantinuum H1-2 hardware. A posterior sampling strategy based on stochastic gradient Langevin dynamics is also introduced, which numerical simulations show avoids local optima and samples from the full posterior.
arXivarXiv · · June 15, 2022
0
23
Ensemble Kalman Inversion for General Likelihoods
Samuel DuffieldSumeetpal S. Singh
Ensemble Kalman inversion is extended to general likelihoods that can be sampled but not necessarily evaluated, moving beyond the prior restriction to additive Gaussian noise. The method thereby enables inference for Bayesian models where the likelihood density is intractable, requiring only the ability to draw samples from it.
arXivarXiv · · October 6, 2021
0
22
Online Particle Smoothing with Application to Map-matching
Samuel DuffieldSumeetpal S. Singh
We introduce online particle smoothing for state-space models using a fixed-lag approximation. A novel resampling algorithm, particle stitching, converts marginal samples from the fixed-lag approximation into a full posterior approximation, overcoming path degeneracy. We demonstrate this method on map-matching, the task of inferring a vehicle's trajectory from noisy GPS data and a road network, for which we develop a new state-space model suited to dense urban networks.
arXivarXiv · · December 8, 2020
0
8
Frequent collaborators
Maxwell Aifer (12)
Patrick J. Coles (12)
Kaelan Donatella (9)
Denis Melanson (7)
Gavin Crooks (7)
Phoebe Klett (5)
Lars Holdijk (4)
Zier Mensch (4)
Zach Belateche (4)
Antonio J. Martinez (3)
Max Welling (3)
Miranda C. N. Cheng (3)