Neural Slack Variables Enforce Strict Shape Constraints in Networks

Ruben Wiedemann, Antoine Jacquier, Lukas Gonon· June 15, 2026 View original

▶ The 60-second brief

Summary

A new deep learning approach, "neural slack variables," effectively enforces functional inequality constraints like monotonicity and convexity in neural networks by converting constraint enforcement into a regression problem. This method achieves zero constraint violations, outperforming traditional penalty and primal-dual methods, and enables applications like arbitrage-free learning in quantitative finance.

This research introduces a novel deep learning technique called "neural slack variables" designed to robustly enforce functional inequality constraints within neural networks. Constraints such as monotonicity and convexity are fundamental in many scientific and industrial applications, but traditional methods like one-sided penalties often result in residual violations. The proposed approach transforms constraint enforcement into a regression problem. It couples the primary neural network with a jointly learned auxiliary network, which serves as a valid target for the primary network's constraint quantities. This mechanism effectively induces feasibility and regularity in the network's output. Empirical evaluations demonstrate that neural slack variables achieve zero measured violations on dense-grid test cases for monotonicity and convexity, a significant improvement over penalty and primal-dual baselines that typically leave residual violations. A key application highlighted is the ability to enable arbitrage-free learning of volatility surfaces, addressing a long-standing challenge in quantitative finance.

Why it matters

Professionals in fields requiring strict adherence to mathematical constraints (e.g., finance, engineering, scientific modeling) can now build more reliable and compliant neural networks, ensuring outputs are physically or economically sound.

How to implement this in your domain

  1. 1Apply neural slack variables to neural network models where monotonicity or convexity constraints are critical.
  2. 2Integrate this technique into financial modeling for tasks like volatility surface learning to ensure arbitrage-free predictions.
  3. 3Explore using neural slack variables in scientific machine learning applications to enforce physical laws or domain-specific constraints.
  4. 4Compare the performance and constraint satisfaction of neural slack variables against traditional penalty methods in your specific use cases.

Who benefits

Financial ServicesEngineeringScientific ResearchManufacturingHealthcare

Key takeaways

  • Neural slack variables enforce functional inequality constraints in neural networks with zero violations.
  • The method converts constraint enforcement into a regression problem using an auxiliary network.
  • It outperforms traditional penalty and primal-dual methods in constraint satisfaction.
  • Enables critical applications like arbitrage-free learning in quantitative finance.

Original post by Ruben Wiedemann, Antoine Jacquier, Lukas Gonon

"arXiv:2606.13803v1 Announce Type: new Abstract: Enforcing functional inequality constraints such as monotonicity and convexity in neural networks is a fundamental challenge in many industrial and scientific applications. Classical one-sided penalty methods, along with primal-dual…"

View on X

Originally posted by Ruben Wiedemann, Antoine Jacquier, Lukas Gonon on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses