← Latest papers
🤖 AI

Runtime Uncertainty Monitoring for LLM-Based Multi-Agent Systems Using Bayesian Networks

This paper proposes a multi-agent framework for actuarial risk modeling that leverages token-level log-probabilities and Bayesian Networks to quantify and propagate runtime uncertainty, ensuring reliable decision-support in high-stakes LLM-based workflows.

Original authors: Bart Custers, Koorosh Aslansefat

Published 2026-07-29
📖 6 min read🧠 Deep dive

Original authors: Bart Custers, Koorosh Aslansefat

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

Imagine a world where computers don't just follow strict instructions but can actually "chat" and "think" their way through complex jobs. This is the realm of Artificial Intelligence, specifically a branch called Large Language Models (LLMs). Think of these models as incredibly well-read students who have read almost everything on the internet. They are great at writing stories, answering questions, and even solving math problems. However, there's a catch: they are a bit like a creative writer who sometimes makes things up (called "hallucinations") or changes their mind if you ask the same question twice.

Now, imagine you need to make a life-or-death decision, like figuring out how much to charge for car insurance. You can't just ask one of these AI students to guess; you need a whole team working together. This is where Multi-Agent Systems come in. Instead of one robot doing everything, you have a team of specialists: one gathers the data, another builds the math model, a third checks for mistakes, and a fourth explains the results. The big question scientists are asking is: "If one of these AI team members gets confused or makes a mistake, how do we know before the whole project fails?" This paper dives into that exact problem, trying to build a safety net for AI teams working on high-stakes financial tasks.


The AI Team and the "Confidence Meter"

In this study, the researchers set up a digital insurance company run by a team of AI agents. They didn't just let the AI chat randomly; they built a strict workflow with a "Central Hub" acting like a project manager. This manager assigns tasks to four specific AI specialists:

  1. The Data Prep Agent: Cleans up the messy numbers.
  2. The Modelling Agent: Builds the risk prediction math.
  3. The Reviewing Agent: Double-checks the work for errors.
  4. The Explanation Agent: Makes sure the results make sense and are fair.

The tricky part is that these AI agents are probabilistic, meaning they don't give a single "right" answer every time. They generate text word-by-word, and for every word, the computer has a tiny "log probability"—a number that says how likely the model thought that specific word was to come next. Usually, people just look at the final answer. But this paper suggests a clever trick: listen to the whisper of the AI's confidence.

The authors realized that you can't just take the AI's internal confidence numbers and say, "This is 90% correct." That's like assuming a student who speaks fluently is definitely telling the truth. Instead, the team created a system to translate those raw confidence whispers into a Bayesian Network.

The Bayesian Network: A Digital Ripple Effect

Think of the Bayesian Network as a giant, interactive flowchart of dominoes. Each domino represents a step in the insurance workflow. If the first domino (Data Prep) wobbles, it might knock over the second (Modelling), which could topple the third (Reviewing).

The researchers used the AI's internal confidence scores to set the "wobble factor" for each domino. They didn't treat the AI's confidence as a guarantee of truth. Instead, they calibrated it using test runs to see how often the AI was actually right when it felt confident. Then, they fed these calibrated numbers into the network.

The result? The network could show them how uncertainty ripples through the whole system. Even if every single AI agent felt 80% confident in their own work, the network could calculate that the entire workflow only had a 55% chance of being successful because the small doubts added up. It's like a chain of four people passing a bucket of water; if each person is 80% sure they won't spill, the final bucket might still be half-empty by the time it reaches the end.

What They Found: The Temperature Test

To see if their safety net worked, the researchers ran the AI team through different "temperatures." In AI-speak, "temperature" controls how random or creative the AI is.

  • Low Temperature (0.2): The AI is very conservative and repetitive.
  • High Temperature (1.2): The AI is wild, creative, and prone to making mistakes.

They tested four scenarios:

  1. Safe Scenario: Everyone was low-temperature. The system was very reliable, with an 87.1% chance of success.
  2. Mixed Scenario: The data and model agents were calm, but the reviewers and explainers were a bit wild. Success dropped to 69.0%.
  3. Moderate Scenario: Everyone was at a standard "medium" setting. Success was 59.2%.
  4. Risky Scenario: Just one agent (the Explanation Agent) got very wild. Even though everyone else was calm, the whole system's success rate plummeted to 42.8%.

This showed that the system is very sensitive. A single shaky link in the chain can drag down the reliability of the whole project.

The Verdict: Who Caught the Mistakes?

The team also tested the AI agents by secretly messing up the data (like hiding numbers or adding fake noise) to see if the agents would notice.

  • Llama 2 and Llama 3.1: These models were okay at the job but missed a lot of the hidden errors. Llama 2 only caught 45% of the mistakes, and Llama 3.1 caught 65%.
  • Qwen2.5: This model was the star of the show. It caught 90% of the errors and was much better at adapting its strategy when things went wrong.

The study also found that while the individual agents often felt very confident (scoring around 0.80 to 0.90 on their own), the combined uncertainty of the whole workflow was much lower. For example, with the Qwen model, the individual agents were confident, but the final workflow certainty was only 0.6012.

Why This Matters

This paper doesn't claim to have solved all the problems of AI in insurance. Instead, it suggests a new way to watch the AI team while they work. By using a Bayesian Network to track how small doubts add up, we can spot when a workflow is becoming "unsafe" before it produces a bad result.

The researchers showed that this method can reproduce standard actuarial results (the math used to price insurance) while giving us a clear view of the system's stability. It suggests that in high-stakes jobs, we shouldn't just trust the AI's final answer; we need to listen to the "whispers" of its confidence and watch how those whispers travel through the team. If one agent starts sounding unsure, the whole system should know to pause and check, preventing a small error from becoming a financial disaster.

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 →