Skip to main content
QUICK REVIEW

[Paper Review] Abstract Hidden Markov Models: a monadic account of quantitative information flow

Annabelle McIver, Carroll Morgan|arXiv (Cornell University)|Aug 4, 2017
Computability, Logic, AI AlgorithmsComputer Science32 references2 citations
TL;DR

This paper introduces Abstract Hidden Markov Models (AHMMs) as a monadic denotational semantics for probabilistic programs with hidden state, using the Giry monad to model computations of type DX → D²X, where D denotes the distribution monad. It establishes a duality between forward (abstract HMM) and backward (uncertainty-transformer) semantics, generalizes probabilistic entropies into uncertainty measures with continuity and concavity, and shows how the Dalenius desideratum emerges as a compositional issue, resolved via hyper-distributions and loss-function representations.

ABSTRACT

Hidden Markov Models, HMM's, are mathematical models of Markov processes with state that is hidden, but from which information can leak. They are typically represented as 3-way joint-probability distributions. We use HMM's as denotations of probabilistic hidden-state sequential programs: for that, we recast them as `abstract' HMM's, computations in the Giry monad $\mathbb{D}$, and we equip them with a partial order of increasing security. However to encode the monadic type with hiding over some state $\mathcal{X}$ we use $\mathbb{D}\mathcal{X} o \mathbb{D}^2\mathcal{X}$ rather than the conventional $\mathcal{X}{ o}\mathbb{D}\mathcal{X}$ that suffices for Markov models whose state is not hidden. We illustrate the $\mathbb{D}\mathcal{X} o \mathbb{D}^2\mathcal{X}$ construction with a small Haskell prototype. We then present uncertainty measures as a generalisation of the extant diversity of probabilistic entropies, with characteristic analytic properties for them, and show how the new entropies interact with the order of increasing security. Furthermore, we give a `backwards' uncertainty-transformer semantics for HMM's that is dual to the `forwards' abstract HMM's - it is an analogue of the duality between forwards, relational semantics and backwards, predicate-transformer semantics for imperative programs with demonic choice. Finally, we argue that, from this new denotational-semantic viewpoint, one can see that the Dalenius desideratum for statistical databases is actually an issue in compositionality. We propose a means for taking it into account.

Motivation & Objective

  • To provide a denotational semantics for probabilistic sequential programs with hidden state using monadic structures.
  • To formalize a duality between forward (abstract HMM) and backward (uncertainty-transformer) semantics for information flow analysis.
  • To generalize probabilistic entropies into abstract uncertainty measures with continuity and concavity as core properties.
  • To address the Dalenius desideratum as a compositional issue in information flow, particularly in read/write contexts.
  • To enable source-level reasoning about hidden-state programs via a quantitative logic grounded in loss functions and hyper-distributions.

Proposed method

  • Formalize HMMs as computations in the Giry monad, using DX → D²X instead of X → DX to model hidden state.
  • Define hyper-distributions (D²X) as the semantic domain for abstract HMMs, equipped with a partial order of increasing security.
  • Introduce uncertainty measures as generalizations of entropies, characterized by continuity and concavity, and represent them via loss functions.
  • Develop a backward, uncertainty-transformer semantics dual to the forward abstract HMM, proving duality via Theorem 9.8.
  • Use the Giry monad framework to unify prior results on channels, compositionality, and non-determinism in a single semantic model.
  • Apply the framework to analyze the Dalenius effect, showing it arises from compositional dependencies involving hidden variables and third-party correlations.

Experimental results

Research questions

  • RQ1How can hidden-state probabilistic programs be formally modeled using monadic semantics with the Giry monad?
  • RQ2What is the duality between forward abstract HMMs and backward uncertainty-transformer semantics, and how is it formally established?
  • RQ3How can probabilistic entropies be generalized into uncertainty measures that preserve essential analytic properties like continuity and concavity?
  • RQ4In what way does the Dalenius desideratum manifest as a compositional issue in information flow, and how can it be addressed in a program semantics?
  • RQ5Can a source-level quantitative logic for hidden-state programs be constructed using loss functions and hyper-distributions?

Key findings

  • The paper establishes a duality between forward abstract HMMs and backward uncertainty-transformer semantics, formally proven in Theorem 9.8.
  • Uncertainty measures are shown to have a complete representation as loss functions, enabling a uniform treatment of diverse entropies.
  • The use of DX → D²X in the Giry monad provides a principled foundation for modeling hidden state, enabling compositional reasoning and fixed-point semantics for loops.
  • The framework reveals that the Dalenius effect arises from compositional dependencies involving hidden variables and external correlations, which can be formally addressed via hyper-distributions.
  • The abstract HMM model supports both forward and backward reasoning, with the backward view enabling source-level reasoning via loss-function-based assertions.
  • The Haskell prototype independently verifies the examples in Figures 2–5, confirming the practical feasibility of the monadic model.

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.