A Formally Verified Robustness Certifier for Neural Networks (Extended Version)

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Tobler, James, Syeda, Hira Taqdees, Murray, Toby
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908359990444032
author Tobler, James
Syeda, Hira Taqdees
Murray, Toby
author_facet Tobler, James
Syeda, Hira Taqdees
Murray, Toby
contents Neural networks are often susceptible to minor perturbations in input that cause them to misclassify. A recent solution to this problem is the use of globally-robust neural networks, which employ a function to certify that the classification of an input cannot be altered by such a perturbation. Outputs that pass this test are called certified robust. However, to the authors' knowledge, these certification functions have not yet been verified at the implementation level. We demonstrate how previous unverified implementations are exploitably unsound in certain circumstances. Moreover, they often rely on approximation-based algorithms, such as power iteration, that (perhaps surprisingly) do not guarantee soundness. To provide assurance that a given output is robust, we implemented and formally verified a certification function for globally-robust neural networks in Dafny. We describe the program, its specifications, and the important design decisions taken for its implementation and verification, as well as our experience applying it in practice.
format Preprint
id arxiv_https___arxiv_org_abs_2505_06958
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Formally Verified Robustness Certifier for Neural Networks (Extended Version)
Tobler, James
Syeda, Hira Taqdees
Murray, Toby
Programming Languages
Machine Learning
Neural networks are often susceptible to minor perturbations in input that cause them to misclassify. A recent solution to this problem is the use of globally-robust neural networks, which employ a function to certify that the classification of an input cannot be altered by such a perturbation. Outputs that pass this test are called certified robust. However, to the authors' knowledge, these certification functions have not yet been verified at the implementation level. We demonstrate how previous unverified implementations are exploitably unsound in certain circumstances. Moreover, they often rely on approximation-based algorithms, such as power iteration, that (perhaps surprisingly) do not guarantee soundness. To provide assurance that a given output is robust, we implemented and formally verified a certification function for globally-robust neural networks in Dafny. We describe the program, its specifications, and the important design decisions taken for its implementation and verification, as well as our experience applying it in practice.
title A Formally Verified Robustness Certifier for Neural Networks (Extended Version)
topic Programming Languages
Machine Learning
url https://arxiv.org/abs/2505.06958