Skip to content
Conference Open access

eNNcode: Optimization-Based Analysis of Neural Networks

Sep 2026 · Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence · pp. 8358-8362 · 0 citations · 35 references

TL;DR

eNNcode is introduced, a user-friendly PyPI library that converts any piecewise-linear neural network in Open Neural Network Exchange (ONNX) format into a MILO instance, and supports arbitrary constraints on input and output nodes, as well as user-defined optimization objectives.

Abstract

The increasing use of neural networks (NNs) in high-stakes decision-making requires rigorous analysis to ensure safety, fairness, and explainability. Formal verification tools for neural networks typically focus on determining the satisfiability of properties such as safety or fairness. However, many fairness and explainability tasks go beyond satisfiability and instead rely on arbitrary optimization objectives. To address such problems, neural networks are often encoded as mixed-integer linear optimization (MILO) problems with linear objectives. In practice, these encodings are usually implemented in an ad-hoc manner, limiting comparability across works, reducing transparency, and increasing implementation effort. We address this gap by introducing eNNcode, a user-friendly PyPI library that converts any piecewise-linear neural network in Open Neural Network Exchange (ONNX) format into a MILO instance. The library supports arbitrary constraints on input and output nodes, as well as user-defined optimization objectives. Our experiments show that eNNcode achieves performance comparable to existing libraries, despite its simplicity and ease of use. Overall, eNNcode facilitates reproducible and standardized optimization-based analysis of neural networks.

Read PDF

Similar papers

#graph neural networks Open access Sep 2026

I/O Lower-Bound Theory and Reinforcement Learning for Efficient Neural Network Inference Optimization

An automated optimization framework with a hierarchical two-layer tuning mechanism that synergizes theoretical I/O constraints with graph-level adaptive fusion while accounting for search overhead, the framework systematically explores high-performance execution patterns.

Rui Xia, Gencheng Liu, Quan-Li Li et al. · 0 citations
#machine learning Preprint Sep 2026

Verifying Neural Networks with Reinforcement Learning

Formal verification can play a key role in ensuring the reliability of Deep Neural Networks (DNNs) deployed in safety-critical systems. Modern DNN verifiers employ a branch-and-bound framework, which alternates between branching (splitting into smaller subproblems) and bounding (pruning subproblems) to efficiently expl...

Hai Duong, Thanh Le, Thanhvu Nguyen · 5 citations
#machine learning Preprint Sep 2026

DCEmbed: Scalable Optimization over Neural Surrogates

DCEmbed is proposed, a heuristic for optimization problems with embedded neural surrogates that leverages the difference-of-convex (DC) representation of the network and avoids adding activation binaries, and demonstrates much faster progress toward high-quality feasible solutions than approaches using exact mixed-inte...

Akshay Sreekumar, Nicolas H. Christianson, P. Donti et al. · 0 citations
Review Sep 2026

Optimization with Region-Reduced ReLU Neural Networks

This work proposes a novel \emph{region-reduced} model compression approach that combines the stabilization of unstable neurons and the merging of redundant neurons to reduce the number of linear regions while maintaining predictive accuracy through error compensation.

Christoph Plate, C. Ganzer, Mirko Hahn et al. · 0 citations
Sep 2026

Learning Capacity Constraints with Convex Neural Networks in Lot-Sizing Problems

This paper presents a novel approach for integrating convex neural networks into mixed-integer linear programs. We introduce a mixed-integer linear programming formulation that employs the Maxout activation function, and our experiments show that this network type outperforms rectified linear unit–based networks. Addit...

David Tremblet, Simon Thevenin, A. Dolgui · 1 citation
#machine learning Preprint Sep 2026

Exploring Solver-Level Warmstarting for Neural Network Verification

This work explores the application of solver-level warmstarting for neural network verification to exploit information from previous solutions, using a pipeline that is generalisable and potentially adaptable to state-of-the-art verifiers.

Annelot W. Bosman, Ming-Hao Liu, Marta Z. Kwiatkowska et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.