Vehicle: Bridging the Embedding Gap in the Verification of Neuro-Symbolic Programs

Matthew L. Daggitt, Wen Kokke, Robert Atkey, Ekaterina Komendantskaya, Natalia Slusarz +1 more
1/12/2024
cs.AI

No official code found. Best implementation: vehicle-lang/vehicle (131 stars, last commit 2026-05-04).

Abstract

Neuro-symbolic programs, i.e. programs containing both machine learning components and traditional symbolic code, are becoming increasingly widespread. Finding a general methodology for verifying such programs is challenging due to both the number of different tools involved and the intricate interface between the ``neural'' and ``symbolic'' program components. In this paper we present a general decomposition of the neuro-symbolic verification problem into parts, and examine the problem of the embedding gap that occurs when one tries to combine proofs about the neural and symbolic components. To address this problem we then introduce Vehicle -- standing as an abbreviation for a ``verification condition language'' -- an intermediate programming language interface between machine learning frameworks, automated theorem provers, and dependently-typed formalisations of neuro-symbolic programs. Vehicle allows users to specify the properties of the neural components of neuro-symbolic programs once, and then safely compile the specification to each interface using a tailored typing and compilation procedure. We give a high-level overview of Vehicle's overall design, its interfaces and compilation & type-checking procedures, and then demonstrate its utility by formally verifying the safety of a simple autonomous car controlled by a neural network, operating in a stochastic environment with imperfect information.

View on arXivView PDF

Code Implementations(1)

A toolkit for enforcing logical specifications on neural networks

13119TeX, VCLFeb 22, 20215 months agoNOASSERTION
agdahaskellneural-networkspecificationverification

Similar Papers

Cite this paper

@article{daggitt2024vehicle,
  title  = {Vehicle: Bridging the Embedding Gap in the Verification of Neuro-Symbolic Programs},
  author = {Matthew L. Daggitt and Wen Kokke and Robert Atkey and Ekaterina Komendantskaya and Natalia Slusarz and Luca Arnaboldi},
  year   = {2024},
  eprint = {2401.06379},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.06379v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.06379.svg)](https://codeofpaper.com/paper/2401.06379)

Discussion