Neural networks (NNs) are increasingly replacing traditional heuristic components in computer systems to boost performance in databases, operating systems, and networking. However, these systems form our critical infrastructure. A "black box" neural network that predicts a wrong data position in a database or crashes a network scheduler is a major liability.
To bridge the gap between neural network verification and real-world computer systems, researchers have introduced NN4SysBench. This new benchmark suite highlights unique challenges—like monotonicity and temporal properties—that traditional vision-based benchmarks overlook, pushing the boundaries of what today’s verifiers can handle.
The Challenge of System-Level Verification
While NN verification—a technique to formally prove that a network satisfies specific safety properties—exists, it has primarily focused on image classification (e.g., proving a network is robust to small pixel perturbations). Computer systems require entirely different, logical guarantees.
For instance, a database index must be monotonic (larger keys should point to further positions), and a congestion control protocol must eventually increase its sending rate if conditions improve. Current verification tools often lack support for these complex, system-specific properties and the massive number of specifications (sometimes over 150,000) that real systems demand.
Methods: Adapting Networks for Verification
NN4SysBench categorizes and implements six impactful system applications. To make these accessible to current research, the authors provide two versions of the models:
- Vanilla Version: Contains the original, often "unverifiable" architectures and operators proposed by system researchers.
- Compatible Version: Customizes these networks to work with today's state-of-the-art verifiers by removing unsupported operators while maintaining the original verification difficulty.
To handle properties that current tools don't natively support, the authors developed clever architectural workarounds:
- Dual-model for Monotonicity: To verify that $f(x_1) \geq f(x_2)$ when $x_1 \geq x_2$, they create a "dual-model" that runs two copies of the network side-by-side and verifies that the difference between their outputs remains non-negative.
- Chain-model for Temporal Properties: To verify behavior over time (e.g., "the rate should increase after $k$ steps"), they concatenate $k$ copies of the network, where the output of one step serves as the input for the next.
The Benchmark Suite
The benchmark suite encompasses six distinct applications across different system domains, varying in size (from 0.6K to 25M parameters) and training methods (Supervised and Reinforcement Learning):
- LearnedIndex: Replaces B-Trees in databases to predict data locations.
- CardEsti: Predicts the number of rows returned by a SQL query (Cardinality Estimation).
- BloomFilter: A probabilistic data structure used to test set membership.
- CongestCtrl: Manages Internet data transmission rates.
- LearnedSched: A GNN-based distributed system scheduler.
- AdaptBitrate: Selects video resolution for streaming.
Key Insights and Results
Evaluating these benchmarks reveals several critical insights about the current state of NN verification:
- Systems Specs are "Logical": Unlike vision tasks, NN4Sys requires verifying logical invariants like monotonicity and temporal liveness. These properties are inherently more difficult to prove than simple reachability.
- The Scale Challenge: System applications often require a massive number of specification entries to cover the entire input space, which can overwhelm standard verification algorithms.
- Verification Asymmetry: "Safe" specifications (where the property holds) are actually harder and slower to verify than "unsafe" ones. Verifiers can often find a counter-example for unsafe cases quickly, but must exhaustively prove safety for the others.
The authors evaluated two leading verifiers: $\alpha\beta$-CROWN (GPU-based) and Marabou (SMT-based).
The results showed significant performance variance. Marabou is efficient for some small networks, while $\alpha\beta$-CROWN scales much better to the large, deep networks found in modern systems. However, the study reveals that even state-of-the-art verifiers have significant blind spots, such as a lack of support for "scatter" operators or variable tensor indexing, which are common in system code.
Looking Forward
The current "compatible" benchmarks are still approximations of the original system proposals. Many "Vanilla" properties remain fundamentally unverifiable with current technology—particularly those involving complex data structures or variable indexing.
NN4SysBench successfully distinguishes the capabilities of current tools, showing that while some benchmarks are solved in seconds, others remain unverifiable or time out. This provides a clear roadmap for future tool development. Future work aims to expand the suite with more instances like I/O latency predictors and develop higher-level specification interfaces, making it easier for systems engineers to define the safety properties their systems need.
Summary updated