← Latest papers
🤖 AI

Beyond Post-hoc Explanation: Toward Glassbox AI via Probabilistic Mediation

This paper proposes the "Glassbox Framework," an ante-hoc architecture that integrates Bayesian networks as transparent mediation layers into generative models to replace unstable post-hoc explanations with auditable, probabilistic reasoning for high-stakes AI applications.

Original authors: Manuele Leonelli

Published 2026-06-08
📖 5 min read🧠 Deep dive

Original authors: Manuele Leonelli

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: The "Black Box" and the "After-the-Fact Excuse"

Imagine a government office where a computer decides who gets unemployment benefits. Currently, we use powerful AI (like Large Language Models) to make these decisions. But these AIs are like Black Boxes: you put a person's application in, and a decision pops out, but you have no idea how the computer got there.

To fix this, experts currently try to add a "post-hoc explanation." This is like asking a magician, "How did you pull the rabbit out of the hat?" after the trick is done. The paper argues this is a bad idea because:

  1. It's unstable: If you ask the same question twice with a tiny difference, the explanation might change completely, even if the answer stays the same.
  2. It's not real: The explanation isn't actually what the computer thought; it's just a guess made by a different computer trying to mimic the first one.
  3. You can't fight it: If a citizen disagrees with the decision, they can't challenge the specific logic because the logic was never written down in the first place. The "explanation" is just a story made up after the fact.

The author says: The problem isn't that we can't explain the AI; the problem is that the AI wasn't built to reason in a structured way in the first place.

The Solution: The "Glassbox" Framework

The paper proposes a new architecture called the Glassbox Framework. Instead of a Black Box where you can't see inside, imagine a Glass Box. You can see every gear, lever, and rule inside as it works.

Here is how it works, using a Restaurant Kitchen analogy:

1. The Governance Layer (The Head Chef & The Rulebook)

Before any cooking happens, a Head Chef (a human expert) writes down a strict Recipe Book (a Bayesian Network).

  • This book lists exactly what ingredients are needed (variables like "income," "residency," "employment").
  • It lists the rules: "If the customer has no job, they likely have low income."
  • This rulebook is the law of the kitchen. It is written down before the cooking starts.

2. The Inference Layer (The Line Cook & The Translator)

Now, a customer (the applicant) walks in with a messy, handwritten note describing their life.

  • The Line Cook (The LLM): This is the fast, powerful AI. It reads the messy note and tries to figure out what the ingredients are. It might say, "I think they are unemployed."
  • The Translator (The Interface): The Line Cook speaks "Human Language," but the Recipe Book speaks "Math and Logic." The Translator tries to turn the Cook's guess into a specific ingredient for the Recipe Book.
  • The Safety Check (The Bayesian Network): The Recipe Book checks the Cook's guess.
    • Scenario: The Cook says, "They are unemployed," but also says, "They have a huge bank account."
    • The Check: The Recipe Book sees a conflict! "Wait, if they are unemployed, they shouldn't have a huge bank account."
    • The Fix: The Recipe Book sends the Cook back: "Go check the bank account again. You missed something."
    • The Cook looks again, finds the truth, and the system moves forward.

3. The Accountability Layer (The Inspector's Log)

Once the meal is ready (the decision is made), the system doesn't just hand over the food. It hands over a full, auditable log.

  • It shows exactly which rule was used.
  • It shows where the Cook was unsure.
  • It shows exactly why the decision was made.
  • If a customer disagrees, they can point to a specific line in the log: "You used the wrong rule for my residency!" and challenge that specific part.

Why This is Better (The "Glassbox" Benefits)

  • Transparency: You aren't guessing how the decision was made; you are watching the gears turn.
  • Contestability: You can challenge a specific rule or piece of evidence, not just a vague "AI feeling."
  • Uncertainty: The system admits when it's unsure. Instead of saying "Yes" or "No," it says, "Based on the rules, there is an 87% chance you qualify."
  • Modularity: If the government changes the law (e.g., "Now you need 2 years of work instead of 1"), you just update the Recipe Book. You don't have to retrain the whole kitchen.

The Hard Parts (What Still Needs Work)

The paper admits this isn't a finished product yet. It's a blueprint for a new kind of system. There are three big hurdles to building it:

  1. The Translation Problem: It is very hard to turn messy human language (like "I'm kinda between jobs") into strict math variables (like "Employment Status = Unemployed"). The paper calls this the "Semantic Alignment" problem.
  2. The Math Problem: The AI speaks in "vague confidence scores," but the Recipe Book needs "strict probabilities." Bridging these two different math languages is a huge scientific challenge.
  3. The Human Problem: Who gets to write the Recipe Book? If the Head Chef writes a bad rulebook, the whole system is wrong. We need new rules for how humans govern these digital rulebooks.

The Bottom Line

The paper argues that in high-stakes areas like healthcare, law, and government benefits, we cannot rely on AI that explains itself after the fact. We need to build AI that follows a written, inspectable rulebook from the start.

By putting a "Glass Box" (a transparent, math-based reasoning layer) in front of the powerful AI, we can ensure that decisions are not just powerful, but also fair, checkable, and accountable. The paper doesn't claim to have built this yet; it claims that this is the only path forward if we want AI to be trustworthy in serious situations.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →