← Latest papers
🤖 machine learning

Adaptive Probabilistic Shielding by Learning MDPs for Safe Reinforcement Learning

This paper proposes an adaptive probabilistic shielding framework for safe reinforcement learning that integrates online model learning to dynamically compute and update safety constraints as transition probabilities are estimated from an initially unknown MDP.

Original authors: Astrid Horn Brorholt (Aalborg University, Aalborg, Denmark), Maris F. L. Galesloot (Radboud University, Nijmegen, Netherlands), Nils Jansen (Radboud University, Nijmegen, Netherlands), Kim Guldstrand
Published 2026-08-21
📖 5 min read🧠 Deep dive

Original authors: Astrid Horn Brorholt (Aalborg University, Aalborg, Denmark), Maris F. L. Galesloot (Radboud University, Nijmegen, Netherlands), Nils Jansen (Radboud University, Nijmegen, Netherlands), Kim Guldstrand Larsen (Aalborg University, Aalborg, Denmark), Christian Schilling (Aalborg University, Aalborg, Denmark)

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

In the world of artificial intelligence, machines learn to make decisions by trying things out, much like a child learning to walk by falling and getting back up. This process, known as reinforcement learning, allows software agents to discover the best way to solve problems by interacting with an environment and receiving rewards for good choices. However, in the real world, the cost of a wrong step can be catastrophic. A self-driving car cannot afford to test a dangerous maneuver to see if it works; a medical robot cannot risk harming a patient while it figures out the safest path. This creates a fundamental tension: to learn effectively, an agent must explore, but to remain safe, it must avoid the unknown. For years, researchers have tried to solve this by building a "shield"—a safety guard that blocks any action the agent might take that could lead to disaster. The problem is that traditional shields require a perfect, pre-existing map of the world, including exact probabilities for every possible outcome. In the messy reality of the physical world, such a perfect map rarely exists before the agent starts learning.

A team of researchers has developed a new way to handle this dilemma, creating a system where the safety shield learns and adapts alongside the agent. Instead of waiting for a perfect map, their approach assumes the agent knows the general layout of the environment—the possible places it can go and the actions it can take—but does not know the exact odds of where those actions will lead. As the agent explores, it gathers data on what actually happens when it moves. A computer program then uses this fresh data to build an estimate of the world's rules, filling in the missing probabilities. From this estimate, the system constructs a safety shield. Initially, because the data is scarce, the shield is very cautious, blocking many actions to be sure. But as the agent gathers more experience, the estimate becomes sharper, the uncertainty shrinks, and the shield relaxes its grip, allowing the agent to take more efficient risks. This creates a partnership where the agent and its safety guard improve together, ensuring the agent stays safe while it learns how to be effective.

The researchers tested this idea in several simulated worlds, ranging from an aircraft avoiding a collision with another plane to an ant navigating around a predator. In these environments, the agent had to reach a goal while avoiding specific hazards, all while the exact probabilities of slipping or failing were hidden from it. They compared their adaptive method against two other approaches: one where the agent had no safety guard at all, and another where the agent had a perfect shield based on a known, complete map of the world. The results showed that the adaptive method was remarkably successful. It learned policies that were nearly as safe as the perfect shield, while avoiding the frequent, dangerous crashes that occurred when the agent had no guard at all. In some cases, the adaptive system even found better routes than the perfect shield, because its cautious early exploration led it to discover profitable paths that the static, pre-calculated shield had missed.

A key finding was that the system works best when the safety shield is updated regularly as new data comes in. If the shield is updated too rarely, the agent remains stuck in a state of over-caution, unable to take advantage of the knowledge it has gained. If it is updated too often, the system spends too much time recalculating safety rather than learning. The researchers found a balance where updating the shield every thousand learning episodes allowed the agent to refine its understanding of the world without stalling its progress. They also discovered that the way the system estimates probabilities matters. Some methods that assume the worst-case scenario for unknown data tend to be overly restrictive, while methods that are slightly more optimistic allow the agent to explore more freely. The most effective approach used a balanced strategy that remained safe but did not block potentially useful actions simply because the data was not yet perfect.

The study also highlighted a subtle but important detail about how the agent explores. When the agent decides to try a random action to learn something new, the system allows it to choose from all possible actions, even those the current shield considers unsafe. This might seem counterintuitive, but it prevents the agent from getting trapped in a small, safe corner of the world. By occasionally venturing beyond the shield's current limits, the agent gathers the very data needed to prove that those limits can be safely expanded. Without this freedom to explore the edges of the unknown, the shield would never learn to become less conservative. The researchers observed that in complex environments, this willingness to take calculated risks was essential for finding the best possible path.

Ultimately, this work demonstrates that safety and learning do not have to be enemies. By treating the safety shield not as a fixed wall but as a living guide that evolves with the agent's experience, it is possible to navigate dangerous environments without a perfect map beforehand. The system proved that an agent can learn to be both safe and skilled, provided the safety mechanism is flexible enough to grow as the agent's understanding of the world deepens. This approach offers a practical path forward for deploying intelligent systems in real-world scenarios where the rules are not fully known, ensuring that the journey to mastery does not come at the cost of safety.

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 →