EnnCore: End-to-End Conceptual Guarding of Neural Architectures

Edoardo Manino, Danilo Carvalho, Yi Dong, Julia Rozanova, Xidan Song, Mustafa A. Mustafa, André Freitas, Gavin Brown, Mikel Luján, Xiaowei Huang, Lucas C. CordeiroSafeAI @ AAAI 2022

Abstract

Deep Neural Networks (DNNs) are increasingly integrated into safety-critical systems, yet they remain "black boxes" prone to both conceptual errors and low-level implementation bugs. The EnnCore project proposes a comprehensive framework that bridges the gap between high-level AI explainability and rigorous software verification. By combining neuro-symbolic AI with bit-precise code analysis, EnnCore ensures that safety requirements are maintained from the mathematical model down to the hardware execution level.

Introduction

As AI moves into domains like autonomous driving and medical diagnostics, the "trust gap" becomes a critical barrier. Current safety methods often focus solely on abstract mathematical models, ignoring the "full-stack" reality where bugs in software libraries (e.g., TensorFlow) or numerical inaccuracies in GPU hardware can lead to catastrophic failures. EnnCore addresses this by creating a "conceptual guard" that spans the entire AI lifecycle, ensuring that high-level human concepts are mathematically proven to hold true in the actual machine code.

Methodology: The Three Pillars of EnnCore

The EnnCore framework is structured to provide end-to-end verification through three integrated components:

  1. Full-Stack Symbolic Software Verification: Utilizing tools like ESBMC-GPU, the framework analyzes the actual implementation (e.g., CUDA code) rather than just the math. This detects memory safety violations and floating-point inaccuracies that abstract models overlook.
  2. Explainable Neuro-Symbolic Safeguards: By blending neural networks with logic-based reasoning, developers can embed "conceptual constraints" directly into models. Tools like ∂-Explainer ensure that complex reasoning steps follow valid logical paths.
  3. Scalable Verification Techniques: To manage the complexity of modern networks, EnnCore employs Abstract Interpretation and Interval Analysis to prune search paths, making formal verification feasible for practical applications.
The EnnCore framework architecture, bridging high-level properties to low-level AI code through neuro-symbolic safeguards.

Real-World Case Studies

The framework's efficacy is demonstrated through two high-stakes domains:

  • Healthcare (Cancer Diagnosis): Ensuring that biomarker-based predictions are transparent and align with clinical logic.
  • Energy (Demand Response): Verifying electricity consumption models within a Privacy-Preserving Federated Learning environment, protecting against malicious updates while maintaining user privacy.
Integration of real-world case studies in healthcare and energy with the multi-layered verification stack.

Key Insights and Results

  • Implementation-Level Safety: The project highlights that "AI Safety" is inseparable from "Software Engineering Safety." A mathematically sound model can still fail due to a buffer overflow in its C++ implementation.
  • The 14-Bit Threshold: Experiments with Quantized Neural Networks (QNNs) revealed a critical complexity threshold at 14 bits, providing a benchmark for designing verifiable hardware.
  • Performance: The symbolic verification approach for QNNs outperformed state-of-the-art SMT solvers like Marabou, completing most verification tasks within minutes.
  • Proven Robustness: Using the DiffAI framework, the team demonstrated that models can be trained to be provably robust against adversarial noise by integrating abstract interpretation into the training loop.

Limitations and Future Outlook

While EnnCore significantly advances AI verification, scalability remains a primary challenge due to the NP-complete nature of formal verification for large-scale networks. Current methods are often optimized for specific layers (e.g., ReLU). Future research will focus on expanding support for diverse architectures, developing industry-standard benchmarks for implementation-level verification, and integrating blockchain technology to secure decentralized energy markets.

Summary updated

BibTeX
@inproceedings{manino2022enncore,
  author = {Edoardo Manino and Danilo Carvalho and Yi Dong and Julia Rozanova and Xidan Song and Mustafa A. Mustafa and André Freitas and Gavin Brown and Mikel Luján and Xiaowei Huang and Lucas C. Cordeiro},
  title = {{EnnCore: End-to-End Conceptual Guarding of Neural Architectures}},
  booktitle = {SafeAI @ AAAI},
  year = {2022},
  url = {https://openreview.net/forum?id=5ZJKl9oBwj},
}
Figure