← Latest papers
🤖 AI

Composing Reinforcement Learning Policies, with Formal Guarantees

This paper proposes a novel framework that combines reactive synthesis for high-level planning with a reinforcement learning approach for low-level policy training on latent structures to compose controllers for complex, two-level environments while providing formal performance guarantees without requiring model distillation.

Original authors: Florent Delgrange, Guy Avni, Anna Lukina, Christian Schilling, Ann Nowé, Guillermo A. Pérez

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

Original authors: Florent Delgrange, Guy Avni, Anna Lukina, Christian Schilling, Ann Nowé, Guillermo A. Pérez

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 you are trying to teach a robot to navigate a giant, shifting maze. This isn't just a simple maze; it's a world where the walls might move, the floor might change, and the robot has to make split-second decisions to avoid getting hit by flying obstacles. This is the world of Reinforcement Learning (RL), a branch of artificial intelligence where agents learn by trial and error, much like a dog learning to sit for a treat. The goal is to find a "policy"—a set of rules that tells the agent what to do in every situation to get the best result.

However, there is a catch. While RL is great at learning from experience, it is notoriously bad at giving guarantees. If you ask a standard RL robot, "Are you 100% sure you won't crash into that forklift?" it usually can't answer with a mathematical "yes." It might say, "I think I'll be okay," but in safety-critical jobs like driving cars or managing power grids, "I think" isn't good enough. This is where formal verification comes in. It's like a strict math proof that says, "Under these specific conditions, this action is guaranteed to be safe." The challenge scientists face is that these two worlds—learning from experience and mathematical proof—usually don't get along. Learning requires massive, messy data, while proofs require neat, simple models. This paper steps into that messy intersection to see if we can have our cake and eat it too: a robot that learns the hard stuff but still comes with a safety certificate.


The Big Idea: The Map and the Rooms

The authors, a team of researchers from Belgium, Israel, the Netherlands, Denmark, and the UK, propose a clever way to split the problem in two. Imagine a giant warehouse. The high-level view is a simple map: a grid of rooms connected by doors. You know the map perfectly. You know Room A connects to Room B, and Room B connects to the exit. But inside each room? That's a mystery. The "dynamics" (how things move, where the obstacles are) are unknown and chaotic.

The authors call this a two-level structure.

  • The High Level (The Map): This is the easy part. It's just a graph of rooms and doors.
  • The Low Level (The Rooms): This is the hard part. Inside each room, the agent has to dodge moving forklifts, workers, or other robots. The rules here are complex and unknown.

The paper's main trick is "separation of concerns." They use two different tools for the two different levels. For the high-level map, they use Reactive Synthesis. Think of this as a super-smart, logical planner that can look at the map and a set of rules (like "Get to the exit without hitting anything") and mathematically prove the best path to take. It's like a GPS that never gets lost because it has a perfect map.

But the GPS can't tell the robot how to dodge a forklift inside a room. For that, they use Reinforcement Learning (RL). The robot learns by running simulations inside each room, figuring out how to get from the entrance to the exit without crashing. The problem is, standard RL is a "black box"—you don't know exactly how it works, and you can't prove it's safe.

The Magic Trick: The "Latent" Shortcut

Here is where the paper gets really cool. Instead of just letting the robot learn a messy, giant neural network (a brain made of math) for each room, the authors teach the robot to learn a concise latent model.

Imagine you are trying to describe a chaotic room full of moving obstacles to a friend. You could try to describe every single movement of every single object, which would take forever and be impossible to remember. Or, you could create a simplified sketch (the "latent model") that captures the essence of the room: "If I go left, I usually hit a wall; if I go right, I usually find the door."

The authors developed a new training method called WAE-DQN. This is a fancy name for a process where the robot learns two things at the same time:

  1. How to act (the policy).
  2. How to draw the simplified sketch (the latent model).

Crucially, they don't just guess the sketch; they calculate a guarantee on how good the sketch is. They use something called PAC bounds (Probably Approximately Correct). Think of this as a "confidence score." It doesn't say "This sketch is perfect." It says, "We are 95% sure that this sketch is within 1% of the real room's behavior."

Putting It All Together: The Planner

Once the robot has learned these simplified sketches and the "confidence scores" for every room, the high-level planner kicks in. The planner looks at the map and the sketches. It asks: "If I send the robot into Room A and tell it to go right, what are the odds it makes it to the door?" It uses the confidence scores from the sketches to answer this mathematically.

Because the planner knows the "safety margin" of each room's sketch, it can build a global plan that is mathematically guaranteed to work, even though the robot learned the details of the rooms by trial and error.

The Experiments: Does It Work?

The team tested this idea in two very different worlds:

  1. A Grid World: A digital maze with moving enemies.
  2. ViZDoom: A video game environment (based on the classic Doom) where the robot has to navigate using visual inputs (like a camera) while dodging enemies.

In the Grid World, they created a maze with 9 rooms and 11 moving enemies. Standard AI (using a method called DQN) struggled to learn a good path, often getting stuck or crashing. But the new method? It learned to navigate successfully. Even more impressively, they tested it on a much bigger maze with 49 rooms and 47 enemies. The robot, using the same learned "sketches" from the small rooms, was able to navigate the giant maze successfully. This proves the "reusability" of their approach: once you learn how to handle a type of room, you can use that knowledge in any similar room, no matter how big the map gets.

In the ViZDoom experiment, the robot had to deal with visual inputs and shooting enemies. The results showed that the "latent values" (the predictions made by the simplified sketches) were very close to what actually happened in the real game. For example, when the robot predicted a 24% chance of success in a specific scenario, the actual success rate was around 23%. This closeness proves that the "sketches" were accurate enough to trust.

Why This Matters

The biggest win here isn't just that the robot got better at the game. It's that the robot got better with a safety certificate.

In the past, if you wanted a robot to navigate a complex environment, you had to choose between:

  • Safety: Using a simple model where you can prove everything is safe, but the robot is too dumb to handle real-world chaos.
  • Skill: Using a powerful learning robot that can handle chaos, but you have no idea if it will crash.

This paper shows a third way. By separating the "map" from the "rooms," and by teaching the robot to learn simplified, verified sketches of the rooms, they created a system that is both smart (it can handle moving obstacles and visual inputs) and safe (it comes with mathematical guarantees).

The authors admit that their method still needs a "map" of the environment to start with. They can't just throw a robot into a completely unknown world and expect it to build the map from scratch. But for environments where we know the layout (like a warehouse, a city grid, or a software system) but not the details of what happens inside the rooms, this approach offers a powerful new tool. It turns the "black box" of learning into a "glass box" that we can inspect, verify, and trust.

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 →