Journal article icon

Journal article

A model of stochastic memoization and name generation in probabilistic programming: categorical semantics via monads on presheaf categories

Abstract:
Stochastic memoization is a higher-order construct of probabilisticprogramming languages that is key in Bayesian nonparametrics, a modularapproach that allows us to extend models beyond their parametric limitationsand compose them in an elegant and principled manner. Stochastic memoization issimple and useful in practice, but semantically elusive, particularly regardingdataflow transformations. As the naive implementation resorts to the statemonad, which is not commutative, it is not clear if stochastic memoizationpreserves the dataflow property -- i.e., whether we can reorder the lines of aprogram without changing its semantics, provided the dataflow graph ispreserved. In this paper, we give an operational and categorical semantics tostochastic memoization and name generation in the context of a minimalprobabilistic programming language, for a restricted class of functions. Ourcontribution is a first model of stochastic memoization of constant Bernoullifunctions with a non-enumerable type, which validates data flowtransformations, bridging the gap between traditional probability theory andhigher-order probability models. Our model uses a presheaf category and a novelprobability monad on it.Comment: To be published in the MFPS 2023 Proceedings as part of the Electronic Notes in Theoretical Informatics and Computer Science (ENTICS) serie
Publication status:
Published
Peer review status:
Peer reviewed

Actions

Access Document

Files:
Publisher copy:
10.46298/entics.12291

Authors

More by this author
Institution:
University of Oxford
Role:
Author
ORCID:
0000-0001-7366-9889
More by this author
Institution:
University of Oxford
Role:
Author
ORCID:
0000-0002-0141-8922


Publisher:
Institut de recherche en informatique et en automatique
Journal:
Electronic Notes in Theoretical Informatics and Computer Science More from this journal
Volume:
Volume 3 - Proceedings of...
Article number:
12291
Publication date:
2023-11-23
Acceptance date:
2023-10-16
DOI:
EISSN:
2969-2431
ISSN:
2969-2431


Language:
English
Keywords:
Pubs id:
2493972
Local pid:
pubs:2493972
Source identifiers:
W4388940318
Deposit date:
2026-11-07
ARK identifier:
This ORA record was generated from metadata provided by an external service. It has not been edited by the ORA Team.

Terms of use


Views and Downloads

Views and downloads will return soon






If you are the owner of this record, you can report an update to it here: Report update to this record

TO TOP