Composable Uncertainty in Symmetric Monoidal Categories for Design Problems

This paper introduces a change-of-base construction using symmetric monoidal monads on Markov categories to extend symmetric monoidal categories of open systems, such as design problems, into 2-categories that compositionaly model various types of uncertainty while preserving their underlying structural properties.

Marius Furter (University of Zurich), Yujun Huang (Massachusetts Institute of Technology), Gioele Zardini (Massachusetts Institute of Technology)

Published Wed, 11 Ma
📖 5 min read🧠 Deep dive

Here is an explanation of the paper "Composable Uncertainty in Symmetric Monoidal Categories for Design Problems," translated into everyday language with creative analogies.

The Big Picture: Building with "Maybe"

Imagine you are an engineer trying to build a complex machine, like an electric car. You have different parts: a battery, a chassis, a motor. In the old way of thinking (using standard math), you would assume you know exactly how much power the battery gives and exactly how heavy the chassis is. You plug these numbers into a formula, and if it works, great.

But in the real world, nothing is certain.

  • The battery might be slightly heavier than the blueprint says.
  • The material might be a bit weaker than expected.
  • You might have a choice of materials, and you aren't sure which is best.

This paper introduces a new mathematical "toolkit" that lets engineers build systems while explicitly acknowledging that they don't know everything yet. It allows them to say, "This part works if the battery is between 5kg and 6kg," or "There is a 90% chance this design will work."

The Core Concept: The "Lego" of Uncertainty

The authors use a branch of math called Category Theory. Think of this as the ultimate instruction manual for how to snap Lego bricks together.

  1. The Standard Lego (Design Problems):
    Previously, mathematicians had a way to snap Lego bricks together where each brick represented a design problem. If you had a battery brick and a chassis brick, you could snap them together to see if the whole car would work. This was great, but the bricks were "perfect." They assumed you knew the exact weight and power.

  2. The New "Fuzzy" Lego (Uncertainty):
    The authors realized that real life is "fuzzy." So, they invented a way to wrap those perfect Lego bricks in plastic bags of uncertainty.

    • Instead of a single brick saying "Power = 100W," you now have a bag containing many possibilities: "Power could be 90W, 95W, or 100W."
    • The magic of their math is that you can still snap these fuzzy bags together. If you snap a "fuzzy battery" to a "fuzzy chassis," the math automatically calculates the "fuzzy whole car."

The Secret Sauce: "Change of Base"

How did they do this? They used a technique called Change of Base.

Imagine you are translating a book.

  • The Original Book: Written in "Perfect English" (Deterministic Math). Every sentence has one clear meaning.
  • The New Book: Written in "Fuzzy English" (Uncertain Math). Sentences now have probabilities or ranges attached to them.

The authors found a universal translator (a mathematical construction) that takes any sentence from the "Perfect English" book and automatically rewrites it into "Fuzzy English" without breaking the grammar.

  • If the original sentence was "The car goes fast," the new sentence becomes "The car goes fast with 80% probability."
  • Crucially, if you combine two sentences in the original book, the translator knows exactly how to combine the fuzzy versions of those sentences.

Real-World Examples from the Paper

The paper applies this to Co-Design (designing systems where parts depend on each other). Here are three ways this helps:

1. The "Worst-Case" vs. "Best-Case" (Intervals)

Imagine you are buying a battery. You don't know the exact weight, but you know it's between 5kg and 6kg.

  • Old Way: You pick 5.5kg. If the real battery is 6kg, your car might fail.
  • New Way: You use a "Fuzzy Brick" that represents the whole range [5kg, 6kg]. When you design the car, the math tells you: "If the battery is 6kg, you need a stronger chassis." It gives you a safety margin automatically.

2. The "Probability" (Distributions)

Imagine you are designing a robot arm. The material strength varies slightly due to manufacturing.

  • Old Way: You guess an average strength.
  • New Way: You use a "Fuzzy Brick" that says, "There is a 95% chance the strength is between 100 and 110, and a 5% chance it's lower."
  • The Benefit: You can now ask, "What is the probability my robot arm will break?" The math answers: "Only 0.01%." This is crucial for safety-critical things like airplanes or medical devices.

3. The "Learning" (Bayesian Inference)

Imagine you are building a new type of solar panel, but you don't know how efficient it will be yet. You have a guess (a prior belief).

  • The Process: You build a small prototype and test it.
  • The Update: The math takes your "Fuzzy Brick" (your guess) and the new data from the test, and "snaps" them together to create a new, better Fuzzy Brick.
  • The Result: Your uncertainty shrinks. You are now more confident about the design. This allows engineers to learn and improve designs automatically as they gather data.

Why This Matters

In the past, dealing with uncertainty was messy. Engineers often had to run thousands of computer simulations (Monte Carlo methods) to guess what would happen.

This paper provides a unified language where:

  1. Uncertainty is built-in: You don't add it later; it's part of the design blocks from the start.
  2. It's composable: You can build tiny uncertain parts and snap them into huge, complex systems without losing track of the math.
  3. It's flexible: It works for simple "ranges" (intervals), complex "probabilities" (distributions), and even "unknown unknowns" (sets of possibilities).

The Takeaway

Think of this paper as giving engineers a new set of smart Lego bricks. These bricks don't just snap together; they carry a little note card with them that says, "I might be a bit heavier than I look, or I might be lighter." When you build a castle with these bricks, the castle automatically knows how to stay standing even if the bricks shift a little.

This allows society to design better, safer, and more adaptable systems—from electric cars to medical robots—by embracing the fact that the future is uncertain, rather than pretending it isn't.