Actor-Critic Neural Control Barrier Functions for Metric Temporal Logic Tasks

Shubham Sanjeev Kolhe, Jie FuarXiv 2026

TL;DR

Teaching a robot to both stay safe and reach a goal before a strict deadline is tricky—especially when it has to learn both the control policy and the safety certificate from data. This paper introduces an Actor-Critic Neural Control Barrier Function (AC-CBF) framework that turns the logical rules of Metric Interval Temporal Logic (MITL) directly into a Bellman-style learning target. On a simulated Dubins car dodging moving obstacles with a 15-second deadline, AC-CBF succeeds 96.8% of the time, compared to 32.8% for a standard reinforcement learning baseline (TD3).

What Problem Does This Paper Address?

Autonomous robots often face tasks that combine safety, goal-reaching, and strict timing—for example, "avoid all obstacles until you reach Goal A or Goal B within 15 seconds." Formal languages like Metric Interval Temporal Logic (MITL) express these requirements cleanly, but synthesizing controllers for nonlinear systems under MITL specs is hard.

Control Barrier Functions (CBFs) are a popular way to guarantee safety by keeping a system inside a "safe set." However, a standard, time-invariant CBF only tells you that a robot won't crash right now; it doesn't certify that the robot can still reach its goal before the clock runs out. Meanwhile, reinforcement learning (RL) methods that use reward shaping for temporal logic don't produce a formal barrier certificate, and existing temporal-logic CBFs typically require analytical system models and expensive Quadratic Programming (QP) solvers at runtime.

Methods

The authors focus on MITL specifications built from the bounded Until operator ($\varphi_1 \mathbf{U}_{[\underline{T}, \overline{T}]} \varphi_2$) and disjunctions (OR) of such tasks. Their key trick is to augment the robot's state $x_k$ with an elapsed-time clock $\nu_k$, turning the timed Until into an untimed Until over $(x_k, \nu_k)$.

From there, the framework jointly trains two neural networks:

  1. The Barrier Critic ($b_\theta$): Instead of using a hand-crafted reward function, the critic's target comes directly from the recursive expansion law of the Until operator: $$\varphi_1 \mathbf{U} \varphi_2 \equiv \varphi_2 \vee \big(\varphi_1 \wedge \bigcirc(\varphi_1 \mathbf{U} \varphi_2)\big)$$ By replacing nonsmooth $\min$ and $\max$ operators with smooth log-sum-exp approximations ($\text{smin}_\beta, \text{smax}_\beta$), this recursion becomes a Bellman-style target. The critic is trained with a combination of the Bellman residual, a terminal boundary condition at the deadline $\overline{T}$, an initial-state margin loss, and a sign-anchoring loss on success/failure transitions.

  2. The Actor ($\pi_w$): With the critic frozen, the actor is trained to output bounded controls ($u_{\max} \odot \tanh(\pi_w)$) that satisfy a discrete-time CBF decrease condition: $b_\theta(x_{k+1}, \nu_{k+1}) \ge (1 - \gamma_d) b_\theta(x_k, \nu_k) + \delta_d$. Because the actor learns to satisfy this directly, no CBF-QP solver is needed at runtime.

  3. Handling Disjunctions (The OR Manager): For tasks with multiple alternative goals ($\Phi = \bigvee \varphi_\ell$), each branch gets its own independent actor-critic pair. At runtime, an "OR manager" tracks whether each branch is ACTIVE, ACCEPT, or REJECT, and greedily executes the policy of the active branch with the highest critic value.

Datasets

The paper does not use external datasets. Instead, it evaluates the framework in a custom simulation environment featuring a non-holonomic Dubins car (4D state: position, heading, velocity; 2D control: angular velocity, linear acceleration) operating in a $10 \times 10$ workspace with 3 static obstacles, 4 moving circular obstacles (bouncing off walls), and 2 alternative goals ($G_1, G_2$) with a 15-second deadline. Both AC-CBF and the TD3 baseline are evaluated on the exact same 1,000 randomly sampled initial states.

Key Insights and Ideas

  • Logic as a Bellman Target: You don't need to engineer a separate reward function for timed reach-avoid tasks; the recursive semantics of the MITL Until operator naturally induce a Bellman backup for the barrier critic.
  • Time-Dependent Reachability: By conditioning the neural CBF on elapsed time $\nu_k$, the critic learns how the "safe and reachable" set shrinks as the deadline approaches.
  • Modular Disjunctions: Training independent actor-critic pairs per branch andarbitrating between them at runtime via critic values avoids the complexity of learning a single monolithic policy for multi-goal tasks.

Key Results

On the 1,000-trial Dubins car benchmark:

  • Overall Success: AC-CBF achieves 96.8% success (968/1,000 trials), dramatically outperforming validation-selected TD3 at 32.8% (328/1,000 trials).
  • Zero Timeouts: TD3's primary failure mode is running out of time (60.8% timeouts). AC-CBF records 0% timing failures, alongside lower obstacle-collision (2.6% vs. 3.2%) and workspace-exit (0.6% vs. 3.2%) rates.
Fig. 1. AC-CBF and validation-selected TD3 outcomes on the same 1,000 initial states. The left panel shows the terminal-outcome distribution. The right panel separates static collisions, moving-obstacle collisions, workspace exits, and deadline failures.
  • Speed vs. Reliability Tradeoff: On the 322 initial states where both methods succeed, TD3 is faster (mean arrival time 4.17 s vs. 9.35 s) and takes shorter paths (7.56 m vs. 9.65 m). Interestingly, all 968 successful AC-CBF trajectories converge to the right goal ($G_2$), whereas all 328 successful TD3 trajectories go to the left goal ($G_1$).
AC-CBF trajectories

Limitations and Future Work

The authors note that the current evaluation relies on kinematic model abstractions (the Dubins car) and assumes full state feedback. Additionally, nested temporal operators and negation of temporal formulas are outside the supported MITL fragment. Future work will focus on extending the framework to higher-order dynamics, supporting nested MITL operators, and deploying the learned controllers on physical hardware.

Summary updated

BibTeX
@misc{kolhe2026actor,
  author = {Shubham Sanjeev Kolhe and Jie Fu},
  title = {{Actor-Critic Neural Control Barrier Functions for Metric Temporal Logic Tasks}},
  year = {2026},
  eprint = {2612.04327},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.04327},
}
Figure