NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Safety-Constrained Intelligent Control of a 2-DOF Robotic Manipulator Using Control Barrier Functions

Gabriel da Silva Lima, Made Widhi Surya Atman, Wallace Moreira BessaarXiv 2026

Ensuring that a robot is both high-performing and strictly safe is a classic "tug-of-war" in control theory. High-performance controllers often push a robot to its physical limits, while safety filters—like Control Barrier Functions (CBFs)—act as a "governor," pulling the robot back to prevent it from exceeding joint or velocity bounds.

A new paper, "Safety-Constrained Intelligent Control of a 2-DOF Robotic Manipulator Using Control Barrier Functions," proposes a clever way to end this conflict by letting the controller and the safety filter "talk" to each other through a shared neural network.

TL;DR

The authors present an intelligent control scheme that combines neural network learning with safety-guaranteeing Control Barrier Functions. By sharing learned model corrections between the controller and the safety filter and using an "auxiliary state" to prevent the neural network from being confused by safety interventions, they achieve high-precision tracking while strictly respecting physical limits, even under significant model uncertainty.

What Problem Does This Paper Address?

Robotic manipulators are often governed by two competing needs:

  1. Precision: Tracking a path exactly, which requires an accurate model of the robot's physics (mass, friction, etc.).
  2. Safety: Staying within physical bounds (e.g., not hitting a joint limit or moving too fast).

In the real world, models are never perfect. Control Barrier Functions (CBFs) are a popular tool for enforcing safety, but they rely on the same potentially flawed physical models. If the model is wrong, the safety filter might be too conservative or, worse, allow a safety violation.

While neural networks can learn these model errors online, a new problem arises: if the safety filter intervenes to slow the robot down, a standard neural network might mistake this "intentional" safety maneuver for a "model error" and try to fight it. This leads to instability and poor performance.

Methods

The researchers developed a control architecture for a 2-DOF (two-joint) robotic arm that features three key innovations:

  • Shared RBF Neural Network: They use a Radial Basis Function (RBF) neural network to learn model mismatches (like unknown friction or mass) in real-time. Crucially, the output of this network is shared. Both the tracking controller and the CBF safety filter use the same "learned" version of the robot's physics.
  • Auxiliary State Hedging: This is the "secret sauce." To prevent the neural network from trying to "learn" the safety filter's interventions, the authors introduced an auxiliary state ($z$). This state tracks the difference between what the controller wanted to do and what the safety filter actually allowed. By subtracting this from the error signal used to train the neural network, they ensure the network only learns true physical errors.
  • Robust CBF Formulation: The safety filter is formulated as a Quadratic Program (QP) that includes a "residual bound" ($\rho$). This acts as a safety margin to account for the small amount of uncertainty remaining even after the neural network has done its job.
Figure 3: The auxiliary signal $z$ separates the adaptation signal from the tracking signal during filter intervention, preventing the network from learning the safety maneuver as an error.

Datasets

The study was conducted using a high-fidelity simulation of a 2-DOF planar manipulator. To prove the system's robustness, the authors evaluated it across 172 different simulation scenarios, including:

  • Matched Physical Uncertainty: 30 different versions of the robot with randomized mass, inertia, and damping parameters.
  • External Disturbances: Applying sudden force pulses to the robot's end-effector to see if it could recover without hitting its limits.
  • Operating Range Studies: Testing the controller across a grid of different torque limits and model error levels.

Key Insights and Ideas

  • Don't Learn the Safety Filter: The most important takeaway is that safety interventions should be "hidden" from the learning algorithm. If the robot slows down because it's near a wall, the brain shouldn't think its motors are suddenly weaker.
  • Sharing Prevents Stalling: When the safety filter is unaware of the learned model corrections, the robot often suffers from "boundary stalling"—it stops short of its goal because the filter thinks it's unsafe to move further. Sharing the neural network's output eliminates this.
  • Transient Errors Drive Uncertainty: The authors discovered that the "safety margin" needed in the CBF is primarily driven by the transient phase—the short time it takes for the neural network to start learning—rather than the total amount of model uncertainty.

Key Results

The proposed "Complete" scheme (Method D) significantly outperformed baselines:

  • Higher Accuracy: It reduced the Cartesian tracking error (RMSE) by 37.2% compared to a system without neural learning and 17.5% compared to a system where the neural network was only used by the controller.
  • Robust Safety: In the 30 randomized uncertainty trials, the complete scheme maintained safety and reached the target every time, while simpler adaptive methods often got stuck or failed to reach the goal.
  • Real-Time Ready: The median computation time was approximately 6 ms, well under the 20 ms control period required for real-time robotic operation.
Figure 2: Comparison of Cartesian error over time. Method D (the proposed complete scheme) reaches micrometer-scale error while others stall or fail.

Limitations and Future Work

While the results are promising, the authors noted several areas for improvement:

  • Empirical Margins: The safety margins ($\rho$) were calibrated based on observations. Future work aims to derive these bounds mathematically from the neural network's learning properties.
  • Sampled-Data Effects: The current math assumes a continuous flow of information, but real computers work in discrete steps. The team plans to incorporate "sampled-data" safety margins to handle very high-speed movements more safely.
  • Physical Testing: All results are currently in simulation. The next major step is validating this "intelligent safety" on a physical 2-DOF robotic arm.

Summary updated

BibTeX
@misc{lima2026safety,
  author = {Gabriel da Silva Lima and Made Widhi Surya Atman and Wallace Moreira Bessa},
  title = {{Safety-Constrained Intelligent Control of a 2-DOF Robotic Manipulator Using Control Barrier Functions}},
  year = {2026},
  eprint = {2611.12378},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.12378},
}
Figure