Lune

ICML2026Top-tier venue

CAffNet: Hard Constraint-Affine Neural Networks

Yang Zhao, Jungeun Lee, Jeong hwan Jeon, Sze Zheng Yong

Abstract

We present a novel framework for embedding hard constraint satisfaction into neural network (NN) architectures, specifically feedforward neural networks and transformers, with input-dependent affine constraints of arbitrary cardinality. Traditional constraint enforcement approaches either rely on penalty-based soft constraints, which offer no guarantee of satisfaction, or on post-processing methods that enforce constraints after the NN is trained, which may lead to suboptimality. We introduce a trainable constraint-affine (CAffine) layer into NNs, yielding CAffNet, which goes beyond enforcing affine constraints via fixed orthogonal or parallel projections and enables joint optimization with network parameters. Moreover, we impose no restrictions on the constraint space dimensions and establish that our construction preserves the universal approximation properties of NNs, while providing provable guarantees on constraint adherence for all inputs. Experimental validation demonstrates robust performance across diverse domains requiring guaranteed constraint satisfaction.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with Guarantees cites DC3: A learning method for optimization with hard constraints
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on5

  1. Are Transformers universal approximators of sequence-to-sequence functions?Chulhee Yun, Srinadh Bhojanapalli, Ankit Singh Rawat, Sashank J. Reddi et al.ICLR 2020 · 481 citations
  2. Minimum Width for Universal ApproximationSejun Park, Chulhee Yun, Jaeho Lee, Jinwoo ShinICLR 2021 · 148 citations
  3. DC3: A learning method for optimization with hard constraintsPriya L. Donti, David Rolnick, J. Zico KolterICLR 2021 · 64 citations
  4. How Realistic Is Your Synthetic Data? Constraining Deep Generative Models for Tabular DataMihaela C. Stoian, Salijona Dyrmishi, Maxime Cordy, Thomas Lukasiewicz et al.ICLR 2024 · 33 citations
  5. FSNet: Feasibility-Seeking Neural Network for Constrained Optimization with GuaranteesHoang T. Nguyen, Priya L. DontiNeurIPS 2025 · 26 citations

Related papers

  1. Enforcing Hard Linear Constraints in Deep Learning Models with Decision RulesGonzalo E. Constante, Hao Chen, Can LiNeurIPS 2025 · 13 citations
  2. DisjunctiveNet: Neural Symbolic Learning via Differentiable Convexified Optimization LayersShraman Pal, Can LiICML 2026
  3. DeepSaDe: Learning Neural Networks That Guarantee Domain Constraint SatisfactionKshitij Goyal, Sebastijan Dumancic, Hendrik BlockeelAAAI 2024 · 9 citations
  4. Sample-Specific Output Constraints for Neural NetworksMathis Brosowsky, Florian Keck, Olaf Dünkel, Marius ZöllnerAAAI 2021 · 12 citations
  5. Neural Fields with Hard Constraints of Arbitrary Differential OrderFangcheng Zhong, Kyle Fogarty, Param Hanji, Tianhao Wu et al.NeurIPS 2023 · 10 citations
Dusk over the sea between two cliffs drawn in fine vertical lines