NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Categorical Treatment of Open Linear Systems

Dario Stein, Richard Samuelson

Introduction

In the fields of control theory and computer science, systems are often modeled using two distinct types of uncertainty. Probabilistic uncertainty describes scenarios where values follow a known distribution, such as Gaussian noise. Nondeterministic uncertainty, by contrast, represents a fundamental lack of information, where a value is only known to reside within a specific set or satisfy a physical constraint.

Historically, bridging these two has been difficult. Standard measure theory struggles to represent "total ignorance" (e.g., a uniform distribution over the entire real line) as a normalized probability measure. This paper introduces a category-theoretic framework for "open linear systems" that unifies Jan Willems' behavioral approach to control theory with modern categorical probability, providing a compositional language for systems that are both noisy and constrained.

Methods: Markov Categories and String Diagrams

The authors utilize Markov categories to provide a rigorous, compositional language. A key feature of this approach is the use of string diagrams, a visual "circuit-like" notation that makes reasoning about complex interconnections intuitive.

String diagram notation for categorical operations: copy, discard, initialize, and interconnect.

Key methodological contributions include:

  • Extended Gaussian Distributions: A new entity combining a standard Gaussian distribution with a linear subspace (the "fibre"). The fibre represents directions of zero information.
  • Copartiality: A novel categorical concept dual to "partial maps." While a partial map is defined on a subset of the input, a copartial map maps into a quotient of the output, modeling how ignorance propagates.
  • The Category GaussEx: A category where objects are vector spaces and morphisms are "decorated cospans," allowing linear relations and Gaussian noise to be treated within the same algebraic structure.

Unifying Relations and Noise

The core "aha moment" of the research is the realization that a lack of information is mathematically equivalent to working in a quotient space. If a system can only measure the difference between two variables, it is effectively viewing the world through a quotient map.

Visualizing the combination of linear relations (Ohm's Law) and probabilistic uncertainty (strips) within the framework.

By defining the category GaussEx, the authors create a "mutual generalization" that contains both standard Gaussian maps and linear relations. This allows the same mathematical language to describe a noisy sensor and a rigid physical law, such as Ohm’s Law ($V = RI$). The framework highlights a symmetry between adding noise (which increases uncertainty) and adding constraints (which decreases it), handling the "infinite" limits of both processes without mathematical breakdown.

Key Results and Impact

  • Theorem 5.6: The paper proves that categorical composition in this framework is mathematically identical to Willems' "interconnection" of systems, bridging a decades-old gap between control theory and categorical logic.
  • Bayesian Inference: The authors demonstrate that GaussEx is a valid Markov category with "conditionals," meaning it is robust enough to support formal Bayesian inference.
  • Software Implementation: To move from theory to practice, the authors released GaussianRelations.jl, a Julia library that allows engineers to compute with extended Gaussians, handling edge cases like improper priors that often crash standard software.

Limitations and Future Work

The current framework is strictly limited to linear systems. While Gaussian models are ubiquitous, many real-world applications involve non-linear dynamics, such as supply and demand curves. Future research aims to extend the concept of "copartiality" to non-linear settings and integrate these findings more deeply into probabilistic programming languages.

Summary updated

BibTeX
@inproceedings{stein2024categorical,
  author = {Dario Stein and Richard Samuelson},
  title = {{A Categorical Treatment of Open Linear Systems}},
  booktitle = {Log. Methods Comput. Sci},
  year = {2024},
}
Figure