Blending Neural Control Density Functions for Stabilization and Safety

Sahil Chaudhary, Chaitanya Murti, Chiranjib BhattacharyyaICML 2026

Introduction

In the domain of nonlinear control, proving that a system is stable has traditionally relied on Lyapunov Functions. Conceptually similar to a bowl where a system "rolls downhill" to a stable resting point, Lyapunov functions are the gold standard for stability certificates. However, they suffer from fundamental limitations when dealing with complex, real-world robotics. This paper introduces Neural Control Density Functions (NCDFs), a novel framework that moves beyond Lyapunov-based methods to enable the smooth blending of multiple controllers while formally guaranteeing expanded regions of stability and safety.

The Limitations of Lyapunov Control

Lyapunov functions face two major bottlenecks in advanced control scenarios:

  1. The Blending Problem: When engineers have two different controllers that are stable in distinct regions, they cannot easily be stitched together. Merging two Lyapunov functions often destroys formal guarantees, leaving the new, combined Region of Attraction (RoA) uncertain.
  2. Topological Limits: Lyapunov functions require strict stability everywhere within a region. They struggle with systems featuring multiple equilibria or "saddle points"—areas where a system might be stable in one direction but unstable in another.

To address these issues, the authors turn to Density Functions, a "dual" approach to Lyapunov theory. Instead of modeling energy levels, density functions model the flow of a "fluid" through the state space. This shift allows for "almost everywhere" (a.e.) stability, offering the flexibility needed for complex topological spaces.

Methodology: Neural Control Density Functions

The core technical challenge in utilizing density functions is an integrability condition: the function must behave well at infinity to be mathematically valid. The authors solve this through several key innovations:

Exponential Parameterization

To guarantee integrability, the authors design a specific neural network architecture where the density function $\rho(x)$ is defined as a ratio involving an exponential term:

$\rho(x) = \frac{a(x)}{e^{\|x\|^2 + \|b(x)\|^2}}$

This mathematical formulation ensures the function is always integrable, strictly satisfying the theoretical requirements for stability. Furthermore, the density function criterion is linear in the pair $(\rho, \rho u)$, making the joint optimization of the controller and the stability certificate significantly easier than in the Lyapunov case.

Verification via CEGIS

The system is trained using a Counterexample Guided Inductive Synthesis (CEGIS) framework. A "Learner" network attempts to find a valid density function and controller, while a "Verifier" (utilizing the SMT solver dReal) searches for states that violate stability conditions. Any discovered failures are added back to the training set, iteratively refining the controller.

Safety through NCDF-CBFs

To ensure operational safety, the authors combine NCDFs with Control Barrier Functions (CBFs). This NCDF-CBF framework allows the controller to prioritize staying within a defined "safe set" (avoiding obstacles or forbidden states) while simultaneously driving the system toward its goal.

The Power of Blending

The most significant theoretical contribution of this work is the formal guarantee regarding blended controllers. The authors provide a blending law to linearly combine multiple density-controller pairs. They mathematically prove that the RoA of this blended "super-controller" contains the union of the RoAs of the individual constituent controllers. This allows engineers to build a library of simple, local controllers and seamlessly blend them into a highly robust global controller.

Experimental Results

The researchers evaluated NCDFs across a variety of classic and complex control benchmarks, including standard 2D nonlinear systems, robotics tasks (Inverted Pendulum, Path Tracking), and high-dimensional systems (PVTOL aircraft, Caltech Ducted Fan).

Key findings include:

  • RoA Expansion: In tasks like the Inverted Pendulum and Path Tracking, NCDFs achieved significantly larger certified Regions of Attraction compared to state-of-the-art Neural Lyapunov Control (NLC).
  • Successful Blending: Experiments validated the theoretical "union" guarantee. By blending a neural controller with a traditional Sum-of-Squares (SoS) controller, the resulting system maintained stability over a much larger area than either method could achieve independently.
  • Safe Stabilization: In environments with unsafe obstacles, such as the Duffing Oscillator, the NCDF-CBF framework successfully steered the system to the origin while strictly avoiding forbidden zones in the state space.

Limitations and Future Directions

While NCDFs offer a powerful alternative to Lyapunov methods, they come with specific trade-offs. Because density functions certify "almost everywhere" stability, there could theoretically exist a set of starting points with "zero volume" (e.g., a single mathematical line or point) that fails to converge. Additionally, the proposed exponential parameterization requires optimizing three separate neural networks, which increases both training time and the complexity of the formal verification step. Finally, while the authors demonstrated success on 6-dimensional systems, formally verifying neural networks in even higher-dimensional spaces remains a broad challenge for future research in formal methods.

Summary updated

BibTeX
@inproceedings{chaudhary2026blending,
  author = {Sahil Chaudhary and Chaitanya Murti and Chiranjib Bhattacharyya},
  title = {{Blending Neural Control Density Functions for Stabilization and Safety}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=IxBsOvMFXc},
}
Figure