Ontology-Compiled Control Barrier Functions for Heterogeneous Robot Teams

Peng Wu, Seyede Fatemeh Ghoreishi, Nathan Bastian, Mohsen Imani, Tian Lan, Mahdi ImaniarXiv 2026 · arXiv

In the rapidly evolving world of warehouse automation and human-robot collaboration, we aren't just dealing with "a robot" anymore. We are dealing with heterogeneous teams: drones zipping overhead, heavy-duty forklifts roaming the floor, and autonomous carriers picking up various payloads.

The challenge? Safety. A drone needs a different "keep-out" distance from a human than a ground rover does. If that rover picks up a hazardous chemical, its safety requirements change instantly. Traditionally, engineers have hand-coded these safety filters, but as teams grow and change, this manual approach becomes a brittle, error-prone nightmare.

A new paper, "Ontology-Compiled Control Barrier Functions for Heterogeneous Robot Teams," proposes a elegant solution: stop hand-coding safety and start using formal logic.

TL;DR

The authors introduce OntoCBF, a framework that uses semantic ontologies to automatically generate safety constraints for diverse robot teams. By combining description logic with Control Barrier Functions (CBFs), the system can "reason" about safety for unseen robot types and dynamic payloads, significantly reducing safety violations in complex, multi-agent environments.

What Problem Does This Paper Address?

Safety filters for robots often rely on Control Barrier Functions (CBFs)—mathematical constructs that act as a "safety envelope," nudging a robot's commands to ensure it never violates a constraint (like hitting a wall or a person).

However, in heterogeneous teams, existing CBF filters suffer from three major flaws:

  1. Missing Constraints: When a new type of robot or payload is introduced, the filter doesn't know which rules apply.
  2. Overestimated Capabilities: A "HeavyDrone" might be logically similar to a "Drone," but if it's heavier, it can't brake as fast. Using the standard drone's safety certificate leads to crashes.
  3. Constraint Conflicts: In crowded scenes, the safety requirements for three different robots might become mutually exclusive (e.g., Robot A must move left to avoid B, but moving left hits C).

Methods

The core innovation is the OntoCBF pipeline, which bridges the gap between high-level semantic reasoning and low-level control.

  • The Ontology: The system uses a domain ontology (OWL 2) that defines a taxonomy of robots (e.g., LightDrone ⊑ Drone ⊑ Aerial) and safety axioms (e.g., Aerial agents stay 1.0m from Humans).
  • Logical Entailment: Using a reasoner (HermiT), the system automatically derives constraints for any team composition online. If a robot picks up a HazardousPayload, the system instantly infers it is now a HazardCarrier and applies the stricter 2.0m keep-out distance required for hazardous materials.
  • Dynamic Subtyping: The authors prove a "Certificate Inheritance" theorem. A new robot class can safely reuse the safety certificate of its parent class only if it can physically produce every velocity the parent can (i.e., it has equal or better braking/acceleration).
  • The Filter: These logical constraints are compiled into a Quadratic Program (QP) solved by each agent in real-time.
  • Learning in the Loop: They train a Multi-Agent Proximal Policy Optimization (MAPPO) policy with the safety filter active. This teaches the agents to stay away from "conflict" states where the safety filter might become infeasible.

Datasets

The researchers evaluated OntoCBF in a custom-built simulated warehouse environment.

  • The Setup: 12x12m tiles featuring drones, rovers, carriers, and humans who ignore the robots.
  • Scenarios:
    • W0: The "design team" (classes known at training).
  • W1-W3: "Unseen" scenarios featuring new robot models (HeavyDrones, Forklifts), new payloads (Chemicals), and new combinations.
  • W4: A large-scale stress test with 32 robots.

Key Insights and Ideas

  • Property Chains are Powerful: The system can handle complex relational safety. For example, it can reason that a carrier is responsible for the distance between its payload and a nearby person, even if the carrier itself is far away.
  • Subsumption $\neq$ Safety: Just because a HeavyDrone is a type of Drone (logical subsumption) doesn't mean it's safe to use the Drone safety parameters. The paper formalizes "dynamic subtyping" as the necessary condition for reusing safety certificates.
  • The "Three-Robot Problem": The authors prove that once three robots interact in a tight space, "unavoidable conflicts" can emerge where pairwise safety barriers simply cannot be satisfied simultaneously. This highlights a fundamental limit of decentralized pairwise safety.

Key Results

  • Generalization to Unseen Types: In scenarios with unseen robot classes, traditional "Flat" (hand-written) filters violated safety in 89–100% of episodes. OntoCBF reduced this significantly, only failing when conflicts became mathematically unavoidable.
  • Conflict Reduction: Training the MAPPO policy with the filter in the loop reduced the rate of infeasible QPs (conflicts) by 18–41%.
  • Real-time Performance: Despite the logical reasoning step, the system is fast. Reasoning takes roughly 0.06 ms per event, and the filter runs at ~1.4 ms per step, making it viable for high-frequency control.
  • Safety Depth: When OntoCBF did fail (due to conflicts), the median "deepest intrusion" into the keep-out zone was only 10–17%, compared to much more catastrophic failures in baseline methods.

Limitations and Future Work

  • Label Dependency: The system relies on robots having correct class labels and accurate dynamics profiles (e.g., knowing their max acceleration).
  • Pairwise Limits: The current implementation uses pairwise barriers. While OntoCBF identifies conflicts, it doesn't yet solve the "unavoidable conflict" problem for large groups.
  • Future Directions: The authors suggest moving toward axiom priorities (e.g., prioritizing human safety over robot-robot safety during a conflict) and handling nonlinear dynamics for more complex robot models.

Summary updated

Abstract

Safety filters for heterogeneous robot teams fail because of missing constraints, overestimated braking capabilities and conflicts between individually satisfiable constraints. We present OntoCBF, which compiles a domain ontology with a class taxonomy, typed relations, safety axioms and a dynamics profile per robot class into a control barrier function filter with one quadratic program per agent. Description-logic entailment supplies the constraints of any team online, including those that follow from chains of relations and from classes defined by what a robot carries, so the existing safety axioms cover new robot classes, payload classes and combinations. We prove that a subclass may reuse the braking capability of its parent whenever it can produce every velocity of the parent, a property separate from subsumption. For box-bounded double integrators this property is also necessary, and every loss of safety then begins with a conflict. Once three robots interact, the safe set of pairwise barriers contains states from which a collision is unavoidable, and such states persist in larger teams under any fixed capability reduction. In a simulated warehouse where humans ignore the robots, a filter written for the design classes violates safety in 89-100 % of the episodes with unseen classes. In all scenarios, including one with 32 robots, OntoCBF violates safety in 20-70 % of the episodes, each time after a conflict, with a median deepest intrusion of 10-17 % of the keep-out distance. A multi-agent PPO policy trained with the filter in the loop lowers the rate of infeasible quadratic programs, nearly all of them conflicts, by 18-41 %.
BibTeX
@misc{wu2026ontology,
  author = {Peng Wu and Seyede Fatemeh Ghoreishi and Nathan Bastian and Mohsen Imani and Tian Lan and Mahdi Imani},
  title = {{Ontology-Compiled Control Barrier Functions for Heterogeneous Robot Teams}},
  year = {2026},
  eprint = {2611.20306},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20306},
}
Figure