AutoSpec: Automated Generation of Neural Network Specifications
Abstract
The increasing adoption of neural networks in learning-augmented systems highlights the growing need for model safety and robustness, especially in safety-critical domains. While recent advances in neural network verification offer formal guarantees on worst-case behavior, existing approaches require users to manually define model specifications, an error-prone, incomplete, and time-consuming process. In this paper, we present AutoSpec, the first comprehensive framework for automatically generating and evaluating neural network specifications for learning-augmented systems. AutoSpec introduces a tree-based algorithm that adaptively partitions the input space to generate specification sets aligned with model behavior, as well as a statistical certification framework that provides rigorous accuracy guarantees for each specification. We also propose a principled evaluation framework that defines interpretable metrics for specification accuracy and coverage, establishing a benchmark for future research. Experiments across four diverse applications show that AutoSpec outperforms both manually defined specifications and existing baseline algorithms, improving the F1 score by up to 53% over human-defined specifications and 73% over the strongest baseline.
BibTeX
@misc{jin2024autospec,
author = {Shuowei Jin and Taobo Liao and Anuj Kalia and Xenofon Foukas and Huan Zhang and Cheng Tan and Z. Morley Mao and Francis Y. Yan},
title = {{AutoSpec: Automated Generation of Neural Network Specifications}},
year = {2024},
eprint = {2409.10897},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2409.10897},
}Ask Althea to put this paper to the test.
Loading related content...