NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Neural Slack Variables for Shape Constraints

Ruben Wiedemann, Antoine Jacquier, Lukas Gonon

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Optimization & Federated Learning › Differentiable Optimization · Type: new method · Keywords: constraint enforcement, monotonicity, convexity, neural networks, auxiliary network

Summary

Neural Slack Variables introduces a deep learning-native primal-side approach that couples a primary network with a jointly learned auxiliary network, converting constraint enforcement into a two-sided regression problem to achieve feasible and regular outputs.

Explained to a 5-year-old

Sometimes we want computers to always give bigger answers when we give them bigger numbers, and sometimes we want the answers to be shaped like a smile or a frown. The researchers thought of a new idea where the computer has a friend that helps it learn the right answers. The friend looks at what the main computer does and suggests better numbers. By working together, the main computer can copy the friend's suggestions and stay within the rules. This makes the computer both smart and follow the rules, like a good team.

Explained to a 5-year-old, longer

In many games and real-life problems, we want a computer to always give bigger answers when we give it bigger numbers. This rule is called being monotonic, and sometimes we also want the answers to be shaped like a smile or a frown. Existing ways to make computers follow these rules are either tricky or make the computer not very smart. The researchers thought of a new idea where the computer has a friend that helps it learn the right answers. The friend network looks at what the main computer does and suggests better numbers. By working together, the main computer can copy the friend's suggestions and stay within the rules. This teamwork turns the hard problem of following rules into a simple game of matching numbers. The method works so well that it almost acts like a hard rule, but still lets the computer be creative. It also helps with more complicated rules that are not straight lines, like in some financial models. The new approach is easy to understand because it just uses two networks that learn from each other. This makes it possible to build smarter systems that obey important constraints without losing power. Overall, it gives developers a smoother way to make reliable and accurate AI models.

For a technical reader

The paper presents a technique that pairs a main neural network with an auxiliary network to enforce functional constraints such as monotonicity and convexity. By treating constraint satisfaction as a two-sided regression problem, the auxiliary network provides a valid target that guides the primary network toward feasible outputs. This coupling can be interpreted as a variable-splitting scheme with a learnable projection, offering a theoretical foundation for the method. Experiments show that the approach achieves constraint adherence comparable to hard architectural constraints while preserving model expressiveness. It also extends to more complex nonlinear constraints found in domains like finance and barrier certificates.

Problem

Enforcing functional inequality constraints such as monotonicity and convexity in neural networks is challenging, as existing methods either provide gradients only at violated points or restrict the network's expressive power.

Method

The approach couples the primary network with a jointly learned auxiliary network, turning constraint enforcement into a two-sided regression problem where the auxiliary network provides a valid target for the primary network's constraint quantities, ensuring feasibility and regularity.

Results

The approach achieves constraint satisfaction comparable to hard constraints on monotonicity and convexity and remains effective on nonlinear constraints such as those in barrier certificates and volatility surfaces.

Contributions

It introduces a deep learning-native primal-side method that reformulates constraint enforcement as a two-sided regression problem and provides a theoretical interpretation as a variable splitting technique with parametrized projection.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction