English

AutoSpec: Automated Generation of Neural Network Specifications

Machine Learning 2024-10-25 v2 Software Engineering

Abstract

The increasing adoption of neural networks in learning-augmented systems highlights the importance of model safety and robustness, particularly in safety-critical domains. Despite progress in the formal verification of neural networks, current practices require users to manually define model specifications -- properties that dictate expected model behavior in various scenarios. This manual process, however, is prone to human error, limited in scope, and time-consuming. In this paper, we introduce AutoSpec, the first framework to automatically generate comprehensive and accurate specifications for neural networks in learning-augmented systems. We also propose the first set of metrics for assessing the accuracy and coverage of model specifications, establishing a benchmark for future comparisons. Our evaluation across four distinct applications shows that AutoSpec outperforms human-defined specifications as well as two baseline approaches introduced in this study.

Keywords

Cite

@article{arxiv.2409.10897,
  title  = {AutoSpec: Automated Generation of Neural Network Specifications},
  author = {Shuowei Jin and Francis Y. Yan and Cheng Tan and Anuj Kalia and Xenofon Foukas and Z. Morley Mao},
  journal= {arXiv preprint arXiv:2409.10897},
  year   = {2024}
}
R2 v1 2026-06-28T18:47:14.047Z