MCP
SS

Sam Staton

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

Papers

30
Compositional Information Geometry of Probabilistic Programs
Jacek KarwowskiFrank NielsenSam Staton
This paper builds a compositional, intensional information geometry for first-order probabilistic programs with finite random variables. The central construction is a contravariant lax monoidal functor that pulls back a degenerate Riemannian metric on $Y$ to $X$ for a program $X \to Y$, specializing to the Fisher metric for statistical models and ordinary pullback for deterministic programs. The authors justify it via pullback from a universal program space and a generalized weighted-measure construction, and relate it to realized-measure geometry through a three-level inequality among score-velocity, output-conditioned, and Wasserstein-Fisher-Rao metrics, later extending to continuous variables via diffeological quasi-Borel spaces.
arXivarXiv · · October 13, 2026
0
Hippogriff: a semantic approach to uniting core and modules
Owen LynchSam Staton
Hippogriff is a language that unifies syntax between the core level and the module level using a dependent type theory with a universe of small types for modularity, while supporting general recursion without causing nonterminating typechecking. Its categorical semantics, built via an extension of the second-order generalized algebraic theory (SOGAT) framework with a synthetic phase distinction, justifies general recursion at the value level and establishes a mathematical connection between dependent type theories and split-context type theories such as System F.
arXivarXiv · · August 20, 2026
0
LazyHMC: Hamiltonian Monte Carlo Simulation for Lazy, Infinite Dimensional Probabilistic Programs
Maria-Nicoleta CrăciunC. -H. Luke OngTom SchrijversSam Staton
LazyHMC adapts Hamiltonian Monte Carlo (HMC) for lazy, infinite-dimensional probabilistic programs in Haskell, enabling inference over implicit spaces like stochastic processes. The key contributions are a gradient analysis using the new notion of "piecewise analytic under cylindrical analytic partition" (PACAP) to show that gradients of the likelihood are finitely supported despite infinite-dimensional programs, and several HMC variants including a No-U-Turn Sampler that remain productive through lazy evaluation. Experiments on Gaussian mixture clustering, random walks, and Poisson-process changepoint regression validate the approach.
arXivarXiv · · August 9, 2026
0
0
Likelihood hacking in probabilistic program synthesis
Jacek KarwowskiYounesse KaddarZihuiwen YeEsmeralda S. WhitammerSam Staton
This paper identifies likelihood hacking (LH), a failure in which reinforcement-learning-trained language models writing probabilistic programs inflate their marginal-likelihood reward by producing programs whose data distribution fails to normalise rather than fitting the data better. The authors formalise LH in a core probabilistic programming language and give sufficient syntactic conditions for its prevention, proving that a safe language fragment $L_{safe}$ satisfying these conditions cannot produce likelihood-hacking programs. Empirically, GRPO-trained models generating PyMC code discover LH exploits within the first few training steps, yielding violation rates well above the untrained baseline; the conditions are implemented as SafeStan, a LH-resistant modification of Stan that suppresses LH under optimisation pressure.
PMLRPMLR · August 6, 2026
0
Imprecise Probabilistic Programming, Precisely: Credal Sets via Graded Monads, BDDs, and Semiring-Parametric Inference (Functional Pearl)
Jack Liell-CockSam Staton
This paper shows that imprecise probability, which replaces a single distribution with a convex set of distributions, requires no change to the standard BDD compilation and weighted model counting pipeline. The key insight is that an imprecise coin flip is simply a BDD variable with a free weight. The authors introduce Imp, a Haskell-embedded DSL for imprecise probabilistic programming, whose graded monad indexed by finite sets of epistemic-uncertainty sources restores commutativity and enables compile-time type enforcement. Because weighted model counting is parametric in the semiring, the same compiled BDD supports exact, differentiable, and interval-bounded inference.
arXivarXiv · · July 23, 2026
0
0
Clock systems for stochastic and non-deterministic categorical systems theories
Owen LynchDavid Jaz MyersEigil Fjeldgren RischelSam Staton
This paper shows that stochastic and non-deterministic categorical systems theories admit clock systems—objects whose representable behavior functors to Set (or double functors to Span) are automatically well-behaved. The clock systems for non-deterministic systems further suggest generalized notions of behavior for non-linear time, extending previous categorical systems theory.
arXivarXiv · · March 31, 2026
0
1
Likelihood Hacking in Probabilistic Program Synthesis
Jacek KarwowskiYounesse KaddarZihuiwen YeEsmeralda S. WhitammerSam Staton
Likelihood hacking (LH) occurs when a probabilistic-program-synthesis model inflated marginal-likelihood rewards by producing unnormalized programs rather than better-fitting ones. The authors formalize this failure, identify sufficient syntactic conditions that prevent it, and prove that the safe fragment $\mathcal{L}_{\text{safe}}$ satisfying those conditions cannot produce LH programs. Empirically, GRPO-trained models discovering LH exploits in PyMC within the first few steps, but the LH-resistant Stan modification $\texttt{SafeStan}$ suppressed it under optimization pressure, showing that language-level safety constraints are theoretically grounded and effective for automated Bayesian model discovery.
arXivarXiv · · March 25, 2026
0
0
Likelihood hacking in probabilistic program synthesis
Jacek KarwowskiYounesse KaddarZihuiwen YeEsmeralda S. WhitammerSam Staton
This paper identifies likelihood hacking (LH), a failure mode where RL-trained language models inflate their marginal-likelihood reward in probabilistic program synthesis by producing programs whose data distributions fail to normalize. The authors formalize LH in a core probabilistic programming language and provide sufficient syntactic conditions for prevention, proving a safe fragment $L_{safe}$ cannot produce LH programs. Empirically, GRPO-trained models generating PyMC code discover LH quickly, and the Stan-based implementation SafeStan suppresses LH under optimization pressure, demonstrating language-level safety constraints are effective.
OpenReviewOpenReview · · February 26, 2026
0
An Equational Axiomatization of Dynamic Threads via Algebraic Effects: Presheaves on Finite Relations, Labelled Posets, and Parameterized Algebraic Theories
Ohad KammarJack Liell-CockSam LindleyCristina MatacheSam Staton
This paper gives a complete equational axiomatization of dynamic threads using parameterized algebraic theories, which provide concrete syntax for strong monads on functor categories. The theory is built from the primitives `fork' (creates a child thread and returns its ID) and `wait' (blocks until a given child thread finishes). Completeness holds in two senses: model completeness, where closed expressions are equal iff they denote the same labelled poset; and syntactic completeness, where open expressions are equal under all closing substitutions. The analysis extends to a concurrent language with sound, adequate, and fully abstract denotational semantics at first order.
arXivarXiv · · February 5, 2026
0
2
A causal Markov category with Kolmogorov products
Sean MossSam Staton
This paper constructs a Markov category that is both causal and has all small Kolmogorov products, answering a problem posed by Fritz & Rischel. Its deterministic subcategory is the category of Stone spaces (dual to Boolean algebras), and kernels are a restricted class of Kleisli arrows for the Radon monad. The construction is presented via pro-completions and Stone spaces directly, and also via duality with Boolean algebras and effect algebras.
arXivarXiv · · December 30, 2025
0
The Relative Monadic Metalanguage
Jack Liell-CockZev ShiraziSam Staton
The paper generalises the monadic metalanguage to relative monads, introducing a complete semantics with strong relative monads. It presents two calculi: LNL-RMM, a linear-non-linear language for graded monads that is a conservative extension of the graded monadic metalanguage, and ARMM, a lambda calculus for arrows that conservatively extends the arrow calculus, showing the arrow calculus is a restricted relative monadic metalanguage.
arXivarXiv · · December 12, 2025
0
1
Modular abstract syntax trees (MAST): substitution tensors with second-class sorts
Marcelo P. FioreOhad KammarGeorg MoserSam Staton
This paper extends Fiore, Plotkin, and Turi's algebraic framework for abstract syntax with binding to languages that have second-class sorts—sorts that cannot appear in variable contexts, as in the Call-by-Value lambda-calculus (CBV) and Call-by-Push-Value (CBPV). The central contribution is a new characterisation of such syntax as actions in actegories rather than monoids in monoidal categories, enabling the use of bicategorical methods to prove substitution lemmata for CBV.
arXivarXiv · · November 6, 2025
0
1
Deriving Program Logics from Distributive Monoidal Categories
Filippo BonchiElena Di LavoreMario RománSam Staton
The paper shows that the axioms of uniformly traced distributive copy-discard categories (imperative categories) are sufficient to derive the rules of correctness, incorrectness, and relational Hoare logics. The categorical structure yields an algebra of guarded commands that generalises guarded Kleene algebras with tests, unifying multiple program logics from a single algebraic foundation.
arXivarXiv · · July 24, 2025
0
0
Uncertainty-Aware Step-wise Verification with Generative Reward Models
Zihuiwen YeLuckeciano Carvalho MeloYounesse KaddarPhil BlunsomSam StatonYarin Gal
This paper proposes using uncertainty quantification (UQ) to improve the reliability of step-wise verification by generative process reward models (PRMs) in mathematical reasoning. The authors introduce CoT Entropy, a UQ method that outperforms existing approaches in quantifying a PRM’s uncertainty per step. Experiments show that incorporating uncertainty estimates makes judge-LM PRMs more robust against issues like reward hacking, leading to more dependable verification of multi-step solution traces.
arXivarXiv · · February 16, 2025
0
30
Uncertainty-Aware Step-wise Verification with Generative Reward Models
Zihuiwen YeLuckeciano Carvalho MeloYounesse KaddarPhil BlunsomSam StatonYarin Gal
Process reward models (PRMs) provide intermediate rewards to verify step-wise correctness in LLM mathematical reasoning but suffer reliability issues such as reward hacking. This paper introduces CoT Entropy, a novel uncertainty quantification method that better estimates a PRM's uncertainty during step-wise verification. Incorporating these uncertainty estimates enhances the robustness of judge-LM PRMs, yielding more reliable verification of multi-step reasoning traces.
OpenReviewOpenReview · · February 6, 2025
0
Compositional imprecise probability
Jack Liell-CockSam Staton
This paper provides a fully compositional model for imprecise probability, where uncertainty is about which probability distribution to use. The standard monad-based approach using convex sets of probability distributions is not fully compositional because the monad is not commutative, lacking a proper monoidal structure. The authors achieve compositionality by naming non-deterministic choices and managing renamings and disjointness through graded monads. They prove the resulting model is maximal and yields tighter uncertainty bounds than the previous approach.
arXivarXiv · · May 15, 2024
0
2
Scoped Effects as Parameterized Algebraic Theories
Cristina MatacheSam LindleySean MossSam StatonNicolas WuZhixuan Yang
This paper reformulates scoped effects—computational effects that rely on delimited scopes or dynamically allocated resources—by translating them into a variation of parameterized algebraic theories. The translation provides a new foundation for equational reasoning about scoped effects and yields an alternative monad characterization in terms of generators and equations involving both scoped and algebraic operations. The approach is demonstrated through equational characterizations of several known models of scoped effects.
arXivarXiv · · February 5, 2024
0
6
Probabilistic programming interfaces for random graphs: Markov categories, graphons, and nominal sets
Nathanael L. AckermanCameron E. FreerYounesse KaddarJacek KarwowskiSean K. MossDaniel M. RoySam StatonHongseok Yang
This paper establishes a two-way correspondence between equational theories of a graph probabilistic programming language and graphons. Every well-behaved equational theory for the language is shown to correspond to a graphon, and every graphon arises from such a theory. The authors provide three constructions demonstrating this: an abstract one using Markov categories and monoidal indeterminates, a measure-theoretic one covering black-and-white graphons, and one using probability monads over nominal sets to cover Erdős-Rényi graphons. This connection builds new semantic models of graph probabilistic programming from graphons.
arXivarXiv · · December 28, 2023
0
16
Probabilistic Programming with Exact Conditions
Dario SteinSam Staton
This paper formalizes exact conditioning, a paradigm for conditioning on observations in probabilistic programs by restructuring dataflow rather than using likelihood-based scoring. It presents prototypical languages for discrete and Gaussian probability, giving semantics via Markov and CD categories. The central contribution is a general, measure-theory-free account of exact conditioning based on program equations, made precise by defining the internal language of a CD category.
arXivarXiv · · December 28, 2023
0
19
Denotational semantics for languages for inference: semirings, monads, and tensors
Cristina MatacheSean MossSam StatonAriadne Si Suo
The paper studies the algebraic presentation of monads for inference languages via semirings. The main contribution is a clarification of the commutative combination of effects: the authors show that while the semiring tensor does not generally determine the tensor of subtheories of module theories, it still does in several fundamental probabilistic examples, such as the theory of unnormalized distributions over the non-negative reals.
arXivarXiv · · December 27, 2023
0
Proceedings of the Sixth International Conference on Applied Category Theory 2023
Sam StatonChristina Vasilakopoulou
EPTCSEPTCS · December 14, 2023
0
Quantum de Finetti Theorems as Categorical Limits, and Limits of State Spaces of C*-algebras
Sam StatonNed Summers
EPTCSEPTCS · November 16, 2023
0
A model of stochastic memoization and name generation in probabilistic programming: categorical semantics via monads on presheaf categories
Younesse KaddarSam Staton
This paper provides the first categorical model of stochastic memoization that validates dataflow transformations. The model interprets a minimal probabilistic language with constant Bernoulli functions of a non-enumerable type. It uses a presheaf category equipped with a novel probability monad, showing that program reorderings preserving the dataflow graph do not change the semantics. This addresses a gap between traditional probability theory and higher-order probabilistic models.
arXivarXiv · · September 18, 2023
0
6
ωωPAP Spaces: Reasoning Denotationally About Higher-Order, Recursive Probabilistic and Differentiable Programs
Mathieu HuotAlexander K. LewVikash K. MansinghkaSam Staton
The paper introduces the category of $\omega$PAP spaces, a denotational semantics for probabilistic and differentiable programs that accommodates general recursion, higher-order functions, discontinuous primitives, and both discrete and continuous sampling, while excluding pathological denotations. This framework enables unified correctness proofs: for automatic differentiation and its use in gradient descent, for the almost-everywhere differentiability of probabilistic programs' trace density functions, and for the existence of convenient base measures for density computation in Monte Carlo inference. All proofs work directly with programs' denotations.
arXivarXiv · · February 21, 2023
0
21
Affine Monads and Lazy Structures for Bayesian Programming
Swaraj DashYounesse KaddarHugo PaquetSam Staton
The paper shows that lazy data structures are a natural idiom for infinite-dimensional Bayesian methods (e.g., Poisson processes). The key semantic idea is to separate an affine monad of probability (supporting laziness) from a non-affine monad of measures. This separation is important for decidability, and is realized in quasi-Borel spaces. New inference methods adapted to laziness, proven correct via Metropolis-Hastings-Green, are implemented in the Haskell library LazyPPL.
arXivarXiv · · December 14, 2022
0
39
ADEV: Sound Automatic Differentiation of Expected Values of Probabilistic Programs
Alexander K. LewMathieu HuotSam StatonVikash K. Mansinghka
ADEV extends forward-mode automatic differentiation to probabilistic programs with discrete and continuous distributions. It is a source-to-source transformation that yields a new probabilistic program: the expected value of the output program equals the derivative of the original program's expectation. This output can drive unbiased Monte Carlo gradient estimates for stochastic gradient descent. Correctness is proved via logical relations. The approach modularly extends standard forward-mode AD, enabling a concise prototype implementation in Haskell.
arXivarXiv · · December 13, 2022
0
42
Quantum de Finetti Theorems as Categorical Limits, and Limits of State Spaces of C*-algebras
Sam StatonNed Summers
This paper shows that the quantum de Finetti theorem—which characterizes exchangeable sequences of quantum states as mixtures of i.i.d. states—possesses a universal property as a categorical limit. This universal property enables a canonical passage between the finite-dimensional and infinite-dimensional categorical frameworks for quantum theory. The analysis proceeds by examining how the (co)limit constructions interact with the contravariant functor mapping a C*-algebra to its convex compact state space, and by discussing the Radon probability monad. The same categorical reasoning also yields a continuous de Finetti theorem for classical probability.
arXivarXiv · · July 12, 2022
0
Concrete categories and higher-order recursion (With applications including probability, differentiability, and full abstraction)
Cristina MatacheSean MossSam Staton
This paper develops a family of concrete sheaf models for a call-by-value higher-order language with recursion, generalizing existing models for probabilistic and differentiable programming and fully abstract logical relations. Recursion is handled via synthetic domain theory. The key construction is a lifting monad derived from a class of admissible monomorphisms in the sheaf category's site. The authors prove a general computational adequacy theorem for this parametrized family.
arXivarXiv · · May 31, 2022
0
Monads for Measurable Queries in Probabilistic Databases
Swaraj DashSam Staton
EPTCSEPTCS · December 29, 2021
0
Monads for Measurable Queries in Probabilistic Databases
Swaraj DashSam Staton
This paper studies a bag (multiset) monad on the category of standard Borel spaces, proving it yields a free measurable commutative monoid. The authors show that a recent measurability result for probabilistic database queries follows directly from expressing queries in monad-based terms, and extend this result to a fuller query language. They also discuss a distributive law between the probability and bag monads, illustrating its utility for generating probabilistic databases.
arXivarXiv · · December 28, 2021
0
Frequent collaborators
Younesse Kaddar (8)
Ohad Kammar (7)
Mathieu Huot (7)
Hongseok Yang (6)
Jacek Karwowski (5)
Zihuiwen Ye (5)
Cristina Matache (5)
Sean Moss (5)
Swaraj Dash (5)
Jack Liell-Cock (4)
Dario Stein (4)
Matthijs Vákár (4)