Skip to main content
QUICK REVIEW

[Paper Review] Bayesian Updates Compose Optically

Toby St Clere Smithe|arXiv (Cornell University)|May 31, 2020
Philosophy and History of ScienceArts and Humanities14 references14 citations
TL;DR

This paper establishes that Bayesian updates compose optimally via the mathematical framework of optics and lenses, showing that inverting a composite stochastic process by inverting its components in reverse order yields the same result as inverting the whole process directly. The key contribution is proving that Bayesian inversion forms a well-behaved, compositional structure within a fibred category, with exact Bayesian lenses satisfying GetPut but not PutGet or PutPut laws due to belief mixing.

ABSTRACT

Bayes' rule tells us how to invert a causal process in order to update our beliefs in light of new evidence. If the process is believed to have a complex compositional structure, we may ask whether composing the inversions of the component processes gives the same belief update as the inversion of the whole. We answer this question affirmatively, showing that the relevant compositional structure is precisely that of the lens pattern, and that we can think of Bayesian inversion as a particular instance of a state-dependent morphism in a corresponding fibred category. We define a general notion of (mixed) Bayesian lens, and discuss the (un)lawfulness of these lenses when their contravariant components are exact Bayesian inversions. We prove our main result both abstractly and concretely, for both discrete and continuous states, taking care to illustrate the common structures.

Motivation & Objective

  • To formalize Bayesian inference as a compositional, bidirectional transformation using category theory.
  • To show that the inversion of a composite stochastic process via component-wise Bayesian inversion yields the same result as inverting the whole process.
  • To define a general notion of (mixed) Bayesian lens within a fibred category framework.
  • To analyze the lawfulness of Bayesian lenses in the context of standard lens laws (GetPut, PutGet, PutPut), particularly in relation to belief mixing.

Proposed method

  • Formalizing Bayesian inversion as a state-dependent morphism in a fibred category, where the base category contains stochastic channels and fibres contain belief-update maps.
  • Defining a category of Bayesian lenses (BayesLens) where view maps are base category morphisms and update maps are state-dependent channels in fibres.
  • Proving the main result using both abstract category theory and concrete constructions for discrete and continuous probability spaces.
  • Applying the Yoneda embedding to translate the fibred lens structure into an equivalent Cartesian optic form, enabling standard lens composition.
  • Lifting base category channels into fibres via constant functors to analyze lens laws in the context of prior beliefs.
  • Using graphical isomorphisms and categorical naturality to verify the GetPut, PutGet, and PutPut laws for exact Bayesian lenses.

Experimental results

Research questions

  • RQ1Does the Bayesian inversion of a composite stochastic process equal the composition of the inversions of its components?
  • RQ2Can Bayesian inference be formally described as a lens in a fibred category, with view and update maps structured according to probability theory?
  • RQ3To what extent do exact Bayesian lenses satisfy the standard database lens laws (GetPut, PutGet, PutPut)?
  • RQ4How does belief mixing in Bayesian updating prevent PutGet and PutPut laws from holding, and what does this imply for cognitive and cybernetic modeling?

Key findings

  • The paper proves that Bayesian updates compose optically: the inversion of a composite channel X→Y→Z is isomorphic to the contravariant composition of the inversions of Y→Z and X→Y.
  • Exact Bayesian lenses satisfy the GetPut law with respect to any prior belief π for which the channel admits inversion, meaning that if the observation matches the prediction, the belief remains unchanged.
  • PutGet and PutPut laws do not hold in general for exact Bayesian lenses because Bayesian updating blends prior and likelihood information rather than overwriting or preserving unchanged.
  • The failure of PutGet and PutPut laws is due to belief mixing, which is essential in probabilistic reasoning but incompatible with the Boolean, deterministic assumptions of database lenses.
  • The fibred category of Bayesian lenses can be translated into an equivalent Cartesian optic via the Yoneda embedding, enabling standard optic composition.
  • The framework supports mixed Bayesian lenses where the vertical category differs from the base, allowing for richer modeling of belief update in cognitive and cybernetic systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.