[Paper Review] Trusted Neural Networks for Safety-Constrained Autonomous Control
This paper introduces Trusted Neural Networks (TNNs), a framework that integrates first-order logic safety constraints into deep neural networks via two methods: a multi-headed architecture for joint learning from data and rules, and a proximal gradient-based constrained optimization. The key contribution is improved safety and faster convergence in autonomous control tasks, demonstrated in a self-driving car simulator with up to 90% suppression of unsafe actions and faster MSE convergence.
We propose Trusted Neural Network (TNN) models, which are deep neural network models that satisfy safety constraints critical to the application domain. We investigate different mechanisms for incorporating rule-based knowledge in the form of first-order logic constraints into a TNN model, where rules that encode safety are accompanied by weights indicating their relative importance. This framework allows the TNN model to learn from knowledge available in form of data as well as logical rules. We propose multiple approaches for solving this problem: (a) a multi-headed model structure that allows trade-off between satisfying logical constraints and fitting training data in a unified training framework, and (b) creating a constrained optimization problem and solving it in dual formulation by posing a new constrained loss function and using a proximal gradient descent algorithm. We demonstrate the efficacy of our TNN framework through experiments using the open-source TORCS~\cite{BernhardCAA15} 3D simulator for self-driving cars. Experiments using our first approach of a multi-headed TNN model, on a dataset generated by a customized version of TORCS, show that (1) adding safety constraints to a neural network model results in increased performance and safety, and (2) the improvement increases with increasing importance of the safety constraints. Experiments were also performed using the second approach of proximal algorithm for constrained optimization --- they demonstrate how the proposed method ensures that (1) the overall TNN model satisfies the constraints even when the training data violates some of the constraints, and (2) the proximal gradient descent algorithm on the constrained objective converges faster than the unconstrained version.
Motivation & Objective
- To develop deep neural networks that satisfy critical safety constraints in autonomous control applications.
- To integrate domain-specific logical rules (e.g., no left turns from left lane) into neural network training alongside data.
- To improve model trustworthiness by ensuring output constraints are met even when training data violates them.
- To accelerate convergence during training by using constrained optimization with proximal gradient methods.
- To evaluate the effectiveness of TNNs in safety-critical environments using a 3D car simulator.
Proposed method
- Proposes a multi-headed neural network architecture where one head learns from labeled data and another from first-order logic constraints, with shared layers for parameter sharing.
- Uses a combined loss function with a trade-off hyperparameter λ to balance data fitting and constraint satisfaction.
- Formulates the training as a constrained optimization problem: minimize loss subject to g(o′) ≤ 0, where g encodes safety rules.
- Employs a dual formulation of the constrained problem and introduces a new constrained loss function for optimization.
- Applies proximal gradient descent to the constrained objective, enabling faster convergence than unconstrained training.
- Uses a 3D simulator (TORCS) to generate synthetic datasets with controlled noise and safety violations for evaluation.
Experimental results
Research questions
- RQ1Can deep neural networks be trained to satisfy safety constraints derived from first-order logic rules, even when training data violates them?
- RQ2How does incorporating rule-based safety constraints affect model performance and safety in autonomous control tasks?
- RQ3Does constrained optimization via proximal gradient descent lead to faster convergence compared to unconstrained training?
- RQ4How does the importance weight (λ) of safety rules influence the model’s ability to suppress unsafe actions?
- RQ5Can the multi-headed TNN architecture effectively learn and enforce safety rules from data when the rules are not explicitly known?
Key findings
- In the logic-based experiment, the constrained model reduced the probability of a dangerous left turn from state 0 from 0.10 to 0.0093, demonstrating effective suppression of unsafe actions.
- Increasing the constraint weight λ further reduced unsafe action probabilities, showing tunable safety enforcement.
- On the TORCS dataset, the constrained TNN achieved lower mean squared error (MSE) than the unconstrained model, indicating better generalization.
- The proximal gradient method converged faster than unconstrained training, especially on noisy Dataset B, where MSE did not reach zero but decreased more rapidly.
- The multi-headed TNN model improved safety performance with increasing rule importance, confirming that rule weighting effectively shapes model behavior.
- The TNN framework successfully enforced safety constraints even when training data contained violations, proving robustness to data noise.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.