Extracting Exact Lie Derivatives Without Backpropagation: A Dual Compiler for Neural Control Barrier Functions
Mohammadreza Kamaldar

TL;DR
This paper introduces a dual compiler that computes exact Lie derivatives of neural control barrier functions using forward evaluation, enabling efficient, memory-safe safety filtering on embedded hardware.
Contribution
A novel dual-algebraic compiler that extracts exact Lie derivatives without backpropagation, suitable for safety-critical embedded systems.
Findings
Eliminates dynamic graph allocation for Lie derivative computation.
Achieves sub-millisecond cycle times on microcontrollers.
Supports second-order derivatives with hyper-dual arithmetic.
Abstract
Deploying neural-network control barrier functions (CBFs) on embedded hardware requires evaluating the barrier value and its Lie derivatives along the system vector fields at every control cycle. The standard mechanism for exact gradient extraction, reverse-mode automatic differentiation, constructs a dynamic computational graph whose memory footprint grows with network depth and whose backward traversal obstructs the worst-case execution time analysis required for safety-critical certification. This paper presents a dual-algebraic compiler that extracts the exact barrier value and its Lie derivatives through forward network evaluation alone. Encoding the system state as the real part of a dual number and a target vector field as the dual part, we prove that every affine and componentwise-activation layer admits a dual extension that propagates the exact directional derivative alongside…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
