Density-Based Semantics for Reactive Probabilistic Programming

08/03/2023
by   Guillaume Baudart, et al.
0

Synchronous languages are now a standard industry tool for critical embedded systems. Designers write high-level specifications by composing streams of values using block diagrams. These languages have been extended with Bayesian reasoning to program state-space models which compute a stream of distributions given a stream of observations. However, the semantics of probabilistic models is only defined for scheduled equations – a significant limitation compared to dataflow synchronous languages and block diagrams which do not require any ordering. In this paper we propose two schedule agnostic semantics for a probabilistic synchronous language. The key idea is to interpret probabilistic expressions as a stream of un-normalized density functions which maps random variable values to a result and positive score. The co-iterative semantics interprets programs as state machines and equations are computed using a fixpoint operator. The relational semantics directly manipulates streams and is thus a better fit to reason about program equivalence. We use the relational semantics to prove the correctness of a program transformation required to run an optimized inference algorithm for state-space models with constant parameters.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/20/2019

Reactive Probabilistic Programming

Synchronous reactive languages were introduced for designing and impleme...
research
12/30/2022

Coinductive Streams in Monoidal Categories

We introduce monoidal streams. Monoidal streams are a generalization of ...
research
05/21/2019

Completeness and Incompleteness of Synchronous Kleene Algebra

Synchronous Kleene algebra (SKA), an extension of Kleene algebra (KA), w...
research
08/26/2022

A Formal Comparison between Datalog-based Languages for Stream Reasoning (extended version)

The paper investigates the relative expressiveness of two logic-based la...
research
05/20/2015

Towards Ideal Semantics for Analyzing Stream Reasoning

The rise of smart applications has drawn interest to logical reasoning o...
research
07/15/2021

The Art of the Meta Stream Protocol: Torrents of Streams

The rise of streaming libraries such as Akka Stream, Reactive Extensions...
research
10/23/2020

Adjoint Reactive GUI

Most interaction with a computer is done via a graphical user interface....

Please sign up or login with your details

Forgot password? Click here to reset