TLDR: This research introduces an uncertainty-aware AI agent that improves the reliability of large language models (LLMs) when summarizing complex, multi-table biomedical data. By using both retrieval and summary uncertainty as control signals during training and inference, the agent learns to identify and filter out overconfident or incorrect information, leading to more factual and trustworthy outputs. This approach significantly boosts the accuracy of claims and improves downstream predictions, demonstrating a crucial step towards safer AI deployment in high-stakes environments.
Large language models (LLMs) are becoming increasingly common in environments that deal with structured data, particularly in the biomedical field. However, a significant challenge with these AI agents is their tendency to produce fluent but overly confident answers, even when the underlying data is contradictory or insufficient. This can lead to unreliable information, which is especially problematic in high-stakes areas like medical research.
A new research paper, titled “Towards Agents That Know When They Don’t Know: Uncertainty as a Control Signal for Structured Reasoning,” introduces a novel approach to address this issue. Authored by Josefa Lia Stoisser, Marc Boubnovski Martell, Lawrence Phillips, Gianluca Mazzoni, Lea Mørch Harder, Philip Torr, Jesper Ferkinghoff-Borg, Kaspar Märtens, and Julien Fauqueur, the paper proposes an uncertainty-aware agent designed for summarizing complex multi-table data based on a specific query. This agent leverages two key types of uncertainty: retrieval uncertainty and summary uncertainty.
Understanding the Agent’s Approach
The core idea behind this research is to use uncertainty not just as a way to diagnose problems after an answer is given, but as an active control signal throughout the agent’s operation. This means uncertainty influences both how the agent is trained and how it behaves when generating summaries.
Retrieval uncertainty measures how consistently the agent selects tables from the database when trying to gather information for a query. If the agent repeatedly selects different tables for the same query, it signals instability in its evidence acquisition, indicating higher uncertainty.
Summary uncertainty, on the other hand, combines two signals: the agent’s confidence at a token level (perplexity) and the semantic consistency across multiple generated summaries. If different attempts to summarize the same information yield semantically inconsistent results, the summary uncertainty is high.
How It Works: Training and Inference
During the training phase, the agent’s learning process is guided by a reward system that incorporates summary uncertainty. This is done using a method called Group Relative Policy Optimization (GRPO). By rewarding the agent for producing summaries with lower uncertainty, it learns to generate more reliable outputs over time.
In the inference phase, when the agent is asked to generate a summary, it doesn’t just produce one answer. Instead, it generates multiple candidate summaries. Both retrieval and summary uncertainty are then calculated for these candidates. If the combined uncertainty exceeds a certain threshold, the agent is designed to “abstain” – meaning it will flag its low confidence or choose not to provide an answer at all. Otherwise, it provides the most confident summary, along with its confidence scores.
Significant Improvements and Contributions
The researchers evaluated their approach on multi-omics benchmarks, including a public cancer research dataset (MLOmics) and an internal, proprietary dataset. The results were impressive, showing significant improvements in the factuality and calibration of the generated summaries. For instance, the number of correct and useful claims per summary nearly tripled in some cases compared to baseline models that don’t account for uncertainty.
Beyond just improving summary quality, the uncertainty estimates themselves proved to be highly informative. The Prediction Rejection Ratio (PRR), a metric that measures how well uncertainty estimates align with factual accuracy, roughly doubled. This indicates that the agent’s confidence levels are a good indicator of its factual reliability.
The paper highlights three main contributions:
- Uncertainty as a Control Signal: This is the first LLM agent framework where uncertainty actively shapes training rewards and guides inference-time filtering, moving beyond simple post-hoc diagnostics.
- Robustness in Structured Environments: The uncertainty-aware agents achieved higher factuality, calibration, and practical utility in biomedical multi-omics tasks, demonstrating adaptability to complex data.
- Uncertainty as a Data-Quality Signal: Filtering out high-uncertainty samples was shown to improve the quality of tabular text datasets, providing a valuable tool for curating reliable training data.
Also Read:
- Agentic Reinforcement Learning: Empowering LLMs as Autonomous Decision-Makers
- GridMind: AI Agents Transform Power System Analysis with Conversational Computing
Broader Implications
This work suggests a crucial shift in how we design AI agents: they should not only know what to say but also when to say nothing. By enabling agents to abstain on high-uncertainty outputs, this method aligns with a safety-first philosophy, which is particularly vital in sensitive applications like biomedicine. While the experiments focused on biomedical data, the framework is designed to be domain-agnostic, making it applicable to other structured data environments such as finance or e-commerce.
The researchers acknowledge some limitations, including the current focus on biomedical data and the reliance on automated LLM-based judges for evaluation. They also note that the method requires multiple rollouts, which adds to inference costs, though they suggest potential optimizations.
In conclusion, this research represents a significant step towards building more trustworthy and reliable AI agents. By embedding uncertainty directly into the agent’s decision-making loop, we can manage and calibrate these systems more effectively, leading to safer deployment in high-stakes settings. You can read the full paper here.


