arXiv:2611.01814cs.RONov 2026

Manuscript Offprint

arXiv:2611.01814

Control Barrier Functions for Safety-Aware Latent-Space Motion Planning

Chandrakiran Ravula, Siddhanth Ramesh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Chandrakiran Ravula and Siddhanth Ramesh

Indian Institute of Science (IISc), Bengaluru, India

Abstract—Latent-space path planning (LSPP) compresses the configuration space of a robotic manipulator into a compact, differentiable manifold learned by a variational autoencoder, enabling fast gradient-based planning without explicit inverse kinematics. Existing LSPP frameworks enforce obstacle avoidance with a binary collision classifier, whose saturated gradients near obstacle boundaries and lack of temporal structure cause the optimizer to stall and provide no forward-invariance guarantee. We replace the classifier with a neural control barrier function (CBF) learned directly in the latent space. The barrier is trained with a three-term objective that combines safe and unsafe sign constraints with a discrete-time decrease condition evaluated on transitions of an obstacle-blind nominal planner, and it is enforced at planning time by a closed-form, first-order correction that projects each goal-directed latent step back onto the CBF constraint. On a 7-DoF Franka Panda manipulator, the CBF planner achieves a 75.6% success rate on a fixed-obstacle task, 12.0 percentage points above the best of 35 tuned classifier configurations, and 83.8% on a multi-position task. A sweep of the decay rate α\alpha characterizes the safety-performance trade-off, with the best operating points in α∈[0.10,0.20]\alpha \in [0.10, 0.20]. In a fully general random-obstacle setting, success drops to 33.0%, which we trace to covariate shift between the obstacle-blind training transitions and the states visited by the corrected planner.

Index Terms—Control barrier functions, motion planning, latent space, variational autoencoders, safe learning.

I. INTRODUCTION

Motion planning for robotic manipulators in high-dimensional configuration spaces remains computationally demanding. A 7-degree-of-freedom (DoF) manipulator such as the Franka Emika Panda [1] must reach a goal while satisfying joint limits, avoiding workspace obstacles, and remaining kinematically feasible (Fig. 1). Safe and reliable operation is essential in safety-critical domains such as healthcare [2] and bipedal locomotion [3]. Sampling-based planners such as Rapidly-exploring Random Trees (RRT) and Probabilistic Roadmaps (PRM) are probabilistically complete [4], but their runtime scales poorly with dimension. Optimization-based planners such as CHOMP [5] and TrajOpt [6] scale better, but they are sensitive to initialization, prone to local minima, and rely on expensive distance-field queries or exact collision checks at every iteration. Model predictive control (MPC) [7] offers a principled receding-horizon alternative but faces the same dimensionality.

Learned latent representations offer an alternative by compressing the planning problem into a lower-dimensional, smooth manifold. A variational autoencoder (VAE) [8], [9] trained on valid robot configurations learns a compact latent space that implicitly captures kinematic feasibility and the

multimodality of inverse kinematics. Gradient-based optimization in this space, termed activation maximization (AM), can then pursue goal reaching and obstacle avoidance jointly. Hung et al. [10] instantiate this idea for manipulation, building on the broader paradigm of planning in learned generative manifolds [11]: a VAE encodes joint configurations and end-effector positions, and a learned binary collision classifier steers the latent state away from predicted collisions.

Relying on a binary classifier for obstacle avoidance has two structural weaknesses. First, its sigmoid output yields a poor gradient landscape: far from an obstacle the gradient is nearly zero and provides no anticipatory guidance, while near or inside the obstacle it spikes. This “cliff-edge” profile traps the trajectory optimizer in local minima. Second, a classifier evaluates static configurations and has no temporal structure, so nothing prevents a state judged safe at step kk from moving into collision at step k+1k+1.

We address both weaknesses by learning a control barrier function (CBF) [12], [13] directly in the VAE latent space. A CBF B(z)B(z) is a continuous function whose nonnegative superlevel set is the safe set; its decrease condition bounds how fast BB may decay from one step to the next, which renders the safe set forward invariant. Rather than adding a soft collision penalty to the planning objective, we use the learned barrier as a closed-form safety filter: each goal-directed latent step

Figure

Fig. 1. Top: A naive trajectory executed without collision avoidance intersects the obstacle. Bottom: A safe trajectory guides the manipulator over the obstacle to the target.

is computed without regard to obstacles and, if it violates the CBF condition, is projected along the barrier gradient back onto the constraint. Neural CBFs have emerged as a data-driven way to synthesize such certificates [14], but their integration into learned generative planning spaces remains underexplored. Our contributions are:

  • A reproduction of the LSPP baseline [10] for a 7-DoF Franka Panda, with a two-stage evaluation that validates every plan by exact geometric collision checking.

  • A neural CBF defined in the learned latent space and trained with a three-term objective (safe sign, unsafe sign, and discrete decrease condition) on a state-label dataset and on transitions of an obstacle-blind nominal planner.

  • A closed-form, first-order safety correction that filters each latent planning step through the CBF constraint, decoupling safety from goal pursuit.

  • An evaluation of three barrier variants of increasing generality, B(z)B(z), B(z,x,y)B(z,x,y), and B(z,o)B(z,o), with a systematic characterization of the α\alpha safety-performance trade-off. The CBF outperforms the best-tuned classifier by 12.0 percentage points on a fixed-obstacle task and reaches 83.8% success on a multi-position task; in the general setting we identify covariate shift as the main failure mode.

Section II reviews related work and Section III presents the background and baseline framework. Section IV introduces the latent-space CBF, Sections V and VI describe the experimental setup and results, and Sections VII and VIII discuss limitations, future work, and conclusions.

References (56)