Neural Slack Variables for Shape Constraints
Ruben Wiedemann, Antoine Jacquier, Lukas Gonon
NeurIPS 2026
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 methods gated by complementary slackness, lose their constraint gradients at satisfied locations, allowing previously feasible points to drift back into violation. Architectures that guarantee feasibility by construction, on the other hand, remain largely limited to elementary cases and impose additional inductive biases. We introduce neural slack variables, a deep learning native primal-side approach that converts constraint enforcement into a regression problem by coupling the primary network with a jointly learned auxiliary network. The auxiliary network serves as a positive target for the primary network's constraint quantities, inducing feasibility and regularity. On low-dimensional domains where dense supervision is practical, neural slack variables can mitigate constraint drift and bias the constraint profile toward the function class of the auxiliary network, which improves feasibility on our evaluation grids. Finally, in implied volatility surface modelling, an open industrial challenge in quantitative finance, neural slack variables preserve no-arbitrage constraints more reliably than penalty and primal-dual alternatives across both generation and calibration.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The neural slack variables idea replaces one-sided constraint penalties with regression toward a feasible auxiliary network. The reviewers find the idea simple and interesting, but several points need clarification.
Please address Reviewer EKp6’s concern that the closest target-based method is discussed but not compared, despite using a similar non-vanishing regression target. Reviewers 3mdz and xkqd also note that zero violation on an evaluation grid does not guarantee continuous-domain feasibility, and performance degrades in higher dimensions. The authors should clarify the supported scope and whether any useful off-grid bound follows under regularity assumptions. Please also comment on slack-network capacity and the possibility of a formal statement beyond heuristics, as raised by Reviewer 3mdz.
The reviews are currently borderline and lean toward rejection. However, I encourage the authors to address all questions in detail, which may improve the reviewers’ evaluation of the paper.
Final justification
The authors addressed the main concerns raised during review. They added a direct PDL comparison, controlled EMA and neural EMA baselines, and an expanded volatility experiment. They also clarified that NSV does not provide continuous-domain certification and is mainly suitable for low-dimensional sampled constraints, and provided practical guidance for selecting the slack network. The remaining limitations, particularly the tuning cost and lack of an NSV-specific feasibility guarantee, should be clearly stated in the final version. Given the substantive author-reviewer discussion and positive reviewer assessments, I recommend acceptance.
Read meta-review
Meta-review
The neural slack variables idea replaces one-sided constraint penalties with regression toward a feasible auxiliary network. The reviewers find the idea simple and interesting, but several points need clarification.
Please address Reviewer EKp6’s concern that the closest target-based method is discussed but not compared, despite using a similar non-vanishing regression target. Reviewers 3mdz and xkqd also note that zero violation on an evaluation grid does not guarantee continuous-domain feasibility, and performance degrades in higher dimensions. The authors should clarify the supported scope and whether any useful off-grid bound follows under regularity assumptions. Please also comment on slack-network capacity and the possibility of a formal statement beyond heuristics, as raised by Reviewer 3mdz.
The reviews are currently borderline and lean toward rejection. However, I encourage the authors to address all questions in detail, which may improve the reviewers’ evaluation of the paper.
Final justification
The authors addressed the main concerns raised during review. They added a direct PDL comparison, controlled EMA and neural EMA baselines, and an expanded volatility experiment. They also clarified that NSV does not provide continuous-domain certification and is mainly suitable for low-dimensional sampled constraints, and provided practical guidance for selecting the slack network. The remaining limitations, particularly the tuning cost and lack of an NSV-specific feasibility guarantee, should be clearly stated in the final version. Given the substantive author-reviewer discussion and positive reviewer assessments, I recommend acceptance.
1 comment
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces a method called neural slack variables that enforces functional inequality constraints in neural networks. The main idea is to model the primary network with an architecturally constrained auxiliary network, then jointly train both via a quadratic matching loss in constraint space. As the demonstrated application, they have used the proposed method in volatility surface modeling.
Strengths and weaknesses
Strengths
-
The overall idea of stable constraint enforcement in neural networks is interesting and important for the representation learning audience. The identified constraint-drifting failure mode is novel and practically important, in my opinion. Also, the authors have used a real-world application domain to demonstrate the method, which is compelling.
-
Moving from a one-sided penalty in existing methods to a two-sided regression seems simple, yet the provided analysis is robust and in-depth.
-
The authors have provided a nice breadth of experiments. Also, these experiments are designed well.
-
The authors have demonstrated that the slack network's architecture shapes the constraint profile of the primary network, which is a useful insight for future research work.
Weaknesses.
-
The proposed slack network introduces a new set of design decisions, making the overall model more complex. Unlike loss-based constraints, this might actually impact the overall training, generalizability, and overfitting of the model. A more in-depth analysis is needed on these aspects.
-
The paper lacks formal guarantees. While the experimental results are compelling and justifiable, it would be interesting to have some theoretical guarantees of the proposed model. This is important, especially given that hard-constrained-based methods have theoretical guarantees.
-
The proposed method mainly enforces constraints by checking them on a set of sampled points during training. However, it does not guarantee the constraint holds everywhere between those points. Also, the method seems to perform worse when the input dimension increases.
-
While the paper introduces certain advantages over hard-constraint methods, the issues of those methods seem not to be completely alleviated. For instance, a new set of design decisions is introduced, which could make the training more difficult. For instance, selecting a proper slack network might be more difficult and costly than finding good weights in hard-constrained methods. A more detailed discussion is needed on this aspect.
Questions
Please refer to the weaknesses. I would like to see an author response on the trade-offs of the proposed slack network and some theoretical insights.
Limitations
Please refer to the weaknesses.
Final justification
Thank you for the rebuttal. It has addressed my concerns. I retain my original positive score
Formatting concerns
N/A
4 comments
Rebuttal 1/2
We thank the reviewer for the careful review, particularly for highlighting constraint drift and constraint profile bias as important contributions.
We first clarify the limits of hard architectural constraints and sampled soft enforcement. We then address the central concern of selecting slack architecture (width, learning rate) through a concrete rule, a gradient flow analysis, and MLP and SIREN slack sweeps.
W2 and W3: Off-grid guarantees
Hard-constrained architectures guarantee feasibility throughout the domain but exist only for specific constraints and restrict the primary model class. For example, one cannot simply combine monotonic networks with Fourier features. As another example, there is no (known) hard-constrained direct parametrization for volatility surfaces that is flexible enough to fit real data.
When architectural constraints are not available, soft constraints (loss-based methods) provide an alternative. Second mentioned weakness is shared by all soft methods, including neural slack variables, penalty methods, or primal-dual methods. When the constraint family is continuous, the soft method is applied at sampled points and feasibility must be verified numerically and leads to the question of off-grid feasibility.
If the trained constraint profile is -Lipschitz, then for the grid with fill distance ,
This immediate method-agnostic bound certifies feasibility whenever . However, since scales as in general, this strategy becomes impractical as increases (curse of dimensionality). Neural slack variables share this dimensional limitation, which we discuss in more detail with reviewer 3mdz.
W1 and W4: Slack architecture, selection, and trade-offs
We suggest the following practical rule:
- Start with the primary net architecture and width, adapted to the constraint dimension and equipped with a positive output map
- At given width, sweep around to tune the slack response
- If no value of gives acceptable feasibility and data fit, increase the width or change the architecture (SIRENs, Fourier features) and repeat the learning-rate sweep
A useful diagnostic is whether increasing reduces tracking error without improving data fit. This suggests that slack response is not the main limitation and that width or architecture should be changed.
The following analysis motivates this rule, and the subsequent sweep illustrates the diagnostic.
Capacity
Architecture and width determine which constraint profiles the slack can represent. If its capacity is insufficient, matching the primary constraint profile to the slack class can lead to poor MAE (biased relaxation of the constrained learning problem). The MLP width-1 result below illustrates this capacity limitation.
Response during optimization
Once the slack has enough capacity, the question is whether it can follow the evolving constraint profile within the training budget. On the grid , write , , and . Consider
For the Jacobians , and learning rates , , define
The gradient flow is
We assume that the tracking residual adjusts faster than the Jacobians and data gradient change, so . Intuitively, we expect this regime after the initial fitting phase: the primary net moves gradually under the data loss, while the slack remains close to the evolving constraint profile.
Let be common eigenvector with , , and write , , . Then
Since , larger means that the slack responds more strongly to a given tracking error. This reduces the tracking error and allows the primary network to follow the data-loss update more closely. The slack learning rate scales this response directly. Increasing width often also raises the response, but also changes the slack class.
Rebuttal 2/2
Sweep: Width x learning rate
We test the capacity & response principle in the monotonicity setting by varying slack width and . For a four-layer Softplus MLP slack, we sweep
We activate the slack error only after 100 epochs, reducing dependence on the primary network’s initial constraint profile. Each cell reports mean final MAE / mean normalized tracking RMS over collocation points and active epochs (five runs).
| Width | |||||
|---|---|---|---|---|---|
| 1 | 0.185 / 0.536 | 0.200 / 0.408 | 0.205 / 0.353 | 0.209 / 0.322 | 0.209 / 0.311 |
| 2 | 0.195 / 0.473 | 0.197 / 0.369 | 0.119 / 0.221 | 0.103 / 0.116 | 0.110 / 0.124 |
| 4 | 0.197 / 0.421 | 0.182 / 0.335 | 0.104 / 0.149 | 0.099 / 0.095 | 0.096 / 0.105 |
| 8 | 0.197 / 0.387 | 0.119 / 0.248 | 0.097 / 0.111 | 0.097 / 0.098 | 0.095 / 0.097 |
| 16 | 0.190 / 0.346 | 0.100 / 0.150 | 0.098 / 0.091 | 0.096 / 0.102 | 0.095 / 0.098 |
| 64 | 0.099 / 0.149 | 0.096 / 0.083 | 0.095 / 0.097 | 0.094 / 0.106 | 1.481 / 0.222 |
: Not all runs feasible.
The results illustrate the distinction between capacity and response. For the width-one MLP, increasing reduces tracking error while the MAE remains high, which is consistent with insufficient capacity. Beyond width one, MAE generally improves with width and , attaining its overall minimum at the largest width and largest stable , consistent with slack response limiting the fit once capacity is sufficient, and response increasing in both witdth and .
Interaction with the constraint operator
The same calculation suggests why neural slack training can favor smoother constraint profiles, even when the slack class is expressive (Figure 2 in the paper). Ignoring boundary effects, let denote a spatial Fourier mode on the collocation grid. For a linear constraint , let denote the Jacobian of the sampled primary output, and let and be the Fourier eigenvalues of and at . If has Fourier multiplier , then
Applying the preceding result to gives , where
For monotonicity, and . When ,
Thus, high-frequency change induced by data fitting is more strongly opposed than low-frequency change.
The slack error compares the image of the primary network under the constraint operator with , which is parameterized directly in constraint space. For derivative-based constraints, amplifies frequency content, so the matched-architecture default via creates a spectral mismatch in constraint space and the smoothing bias described by . Width controls frequency content only indirectly. Architectures designed to represent high-frequency signals, such as SIRENs, provide such a control.
This motivates sweeping a SIREN slack:
| Width | |||||
|---|---|---|---|---|---|
| 1 | 0.217 / 0.617 | 0.130 / 0.351 | 0.105 / 0.190 | 0.102 / 0.140 | 0.115 / 0.172 |
| 2 | 0.152 / 0.544 | 0.102 / 0.264 | 0.091 / 0.119 | 0.092 / 0.079 | 0.105 / 0.180 |
| 4 | 0.113 / 0.435 | 0.093 / 0.192 | 0.090 / 0.086 | 0.092 / 0.070 | 0.163 / 0.302 |
| 8 | 0.097 / 0.316 | 0.090 / 0.134 | 0.091 / 0.074 | 0.092 / 0.069 | 0.144 / 0.313 |
| 16 | 0.092 / 0.216 | 0.090 / 0.096 | 0.092 / 0.068 | 0.089 / 0.092 | 0.118 / 0.320 |
| 64 | 0.090 / 0.100 | 0.092 / 0.070 | 0.091 / 0.077 | 0.098 / 0.219 | 1.481 / 0.893$^\dagger$ |
After tuning , the SIREN slack attains lower MAE at every width. At every width, the SIREN sweep allows for both lower MAE and lower tracking error than the MLP setting.
Trade-off: Tuning cost
We agree that the tuning sweeps above costly. However, neural slack variables target settings without a suitable hard-constrained architecture, where alternative soft methods also require consequential tuning, notably of penalty coefficients, which critically affect the training outcome.
Rebuttal
Thank you for the rebuttal. It has addressed my concerns. I retain my original positive score.
We sincerely thank the reviewer for highlighting constraint drift, the effect of the slack architecture, and the practical cost of choosing an additional network. We appreciate the reviewer's conclusion that the response addressed their concerns. We will include the relevant material as follows.
-
Feasibility between sampled points and dimensional scope. The paper already states its focus on domains of low dimension and identifies the scaling and certification limits of sampled enforcement. We will make these qualifications even more prominent in the evaluation discussion and limitations. Appendix C will give the Lipschitz and grid fill distance bounds under the assumption that the constraint profile is Lipschitz.
-
Choosing the slack network. Section 3 will give the practical heuristic based on local gradient flow and explain when further tuning may help, while Section 5 will retain the additional architecture and tuning cost as a limitation. Appendix A will give the gradient flow calculations, and Appendix D will illustrate the heuristic by presenting the width and learning rate sweep of the slack network.
We thank the reviewer again for the constructive questions and encouraging assessment.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes Neural Slack Variables (NSVs) for enforcing functional inequality constraints Cf_{theta} over continuous domains. The method introduces an auxiliary networks \phi(x), constrained to be positive by construction, and jointly trains it to match the constraint profile Cf_{theta} This converts one-sided violation penalization into a two-sided regression problem.
Strengths and weaknesses
Strengths
- 1, Simple, general, and compatible with largely unrestricted primary architectures.
-
- Intuitive reformulation of constraint enforcement as regression toward a feasible target.
-
- Interesting use of the slack architecture to regularize the constraint profile.
Weaknesses
- The proposed gradient-persistence mechanism remains heuristic and provides no feasibility theorem.
- Performance depends on an intermediate slack-capacity regime without a principled selection rule.
- I think The contribution is confounded with normalization, asinh, initialization, and SIREN choices.
- Zero finite-grid violation does not establish continuous-domain feasibility or certification.
- NSV fails on all seeds for convexity, limiting the scalability claim.
Questions
Please check weakness.
And additionally
- Can the authors bound using slack error and regularity assumptions?
- Does NSV outperform penalties using exactly the same normalization and transformation?
- Would fixed, projected, or EMA feasible targets yield the same benefit?
- How should slack capacity be selected without knowledge of the desired constraint profile?
- Do the financial results persist over seeds, held-out dates, and downstream pricing tasks?
Limitations
see weakness and questions
Final justification
I still have personal concerns, but I will raise the score.
Formatting concerns
N/A
9 comments
Rebuttal
We sincerely thank the reviewer for this careful and constructive review. We are especially grateful for Q3’s suggestion to compare projected, fixed, and EMA feasible targets; the resulting experiment separates temporal smoothing, spatial coupling, and loss processing, and substantially sharpens our mechanism discussion.
W1, W2 and Q4 overlap with Reviewer xkqd’s questions about theory/capacity selection, which we will address in more detail in our response there shortly.
W3, Q2, Q3: Isolating target construction and loss processing
We compare neural slack variables with slack targets given by EMA of the projected constraint , where . Half life gives the projected target ; under untransformed slack loss this recovers exactly the squared hinge penalty (discussed in the paper). The EMA target corresponds to finite . (where ) gives the fixed target . We run all controls on the paper’s monotonicity experiment, using the same MLP for and identical data and optimizer settings across five seeds. To address W3, we ablate the normalization and asinh-transformation of the slack error. We also compare the SIREN-based slack variable used in the paper () with one using the same MLP architecture as .
The table reports feasible seeds; MAE (pooled violation rate; conditional shortfall ) computed on the evaluation grid. The conditional shortfall is reported as zero when the violation set is empty.
| Target | Untransformed | Normalized | Normalized + asinh |
|---|---|---|---|
| Projection/hinge, | 0/5; 0.0825 (24.70%; 0.0406) | 0/5; 0.0880 (0.95%; 0.00012) | 0/5; 0.0879 (1.06%; 0.00018) |
| EMA, | 0/5; 0.0832 (24.02%; 0.0424) | 2/5; 0.0902 (0.38%; 0.00024) | 0/5; 0.0876 (0.58%; 0.00034) |
| EMA, | 0/5; 0.0835 (22.82%; 0.0450) | 5/5; 0.0955 (0%; 0) | 5/5; 0.0905 (0%; 0) |
| EMA, | 0/5; 0.0850 (22.46%; 0.0467) | 5/5; 0.1000 (0%; 0) | 5/5; 0.0914 (0%; 0) |
| EMA, | 0/5; 0.0961 (20.44%; 0.0599) | 5/5; 0.0948 (0%; 0) | 5/5; 0.0933 (0%; 0) |
| EMA, | 0/5; 0.1532 (8.67%; 0.1080) | 5/5; 0.1039 (0%; 0) | 5/5; 0.0966 (0%; 0) |
| EMA, | 5/5; 0.3588 (0%; 0) | 5/5; 0.1357 (0%; 0) | 5/5; 0.1155 (0%; 0) |
| Fixed, | 5/5; 0.7209 (0%; 0) | 5/5; 0.7209 (0%; 0) | 3/5; 0.3419 (0.12%; 0.6839) |
| NSV (MLP) | 5/5; 0.1293 (0%; 0) | 5/5; 0.1155 (0%; 0) | 5/5; 0.0980 (0%; 0) |
| NSV (SIREN) | 1/5; 0.0863 (8.27%; 0.0223) | 5/5; 0.1226 (0%; 0) | 5/5; 0.0905 (0%; 0) |
This matched comparison answers Q2 affirmatively: under identical transformations, NSV and sufficiently smoothed EMA targets achieve higher feasibility than the equivalent penalty. We next analyze the results in more detail to clarify the conclusions for W3/Q2/Q3.
1. Untransformed slack error: spatial coupling vs temporal smoothing
Pointwise EMA remains infeasible through under an untransformed slack error. Increasing reduces the violation rate but increases conditional shortfall; EMA first reaches 5/5 at , with MAE .3588. NSV (MLP) reaches 5/5 at MAE .1293, showing that spatially coupled slack target can obtain feasibility at substantially lower fit cost than a temporally smoothed slack target. The SIREN slack reaches only 1/5 while its violation rate and conditional shortfall are lower than those of every infeasible EMA target. This comparison supports a role for the target function class and its spatial coupling.
2. Normalization: adaptive weighting
The normalization scheme relativizes the slack error by the slack target. It therefore emphasizes near-active constraints while retaining the gradients supplied across the domain by the particular method. This adaptive weighting raises every EMA with and both neural slacks to 5/5 feasibility, while exact projection remains 0/5. Relative normalization therefore obtains exact feasibility from a dense matching signal by concentrating the weight near active constraints, but not from a violation-based signal.
3. Asinh: improving fit
Adding asinh (attenuating large slack errors) generally improves fit while slightly weakening constraint enforcement. It preserves 5/5 feasibility for EMA with and both neural slacks, although violation rates and conditional shortfalls increase slightly for projection and EMA with . EMA with and NSV (SIREN) both obtain MAE .0905, while NSV (MLP) improves from .1155 to .0980. For the nonadaptive fixed target, this tradeoff is pronounced and can take the form of rare but deep violations: asinh improves MAE from .7209 to .3419 but reduces feasibility from 5/5 to 3/5, with violations on only .12% of the grid but conditional shortfall .6839.
From pointwise EMA to neural slack variables
The EMA comparison supports the inexact projection as the source of the dense constraint gradient signal that induces feasibility. EMA creates this through temporal smoothing, while NSV creates it through joint fitting and spatial coupling. At calibrated , EMA can match or exceed NSV on the fixed indexed grid of our experiment.
Randomized collocation or minibatched conditioning evaluates constraints at newly sampled inputs, which have no stored EMA history. When it is not feasible to maintain one EMA scalar per used grid point, a neural parametrization for the slack target is the natural move, with the "neural Lagrangian" as a clear literature precedent. For example, PDL represents the dual multiplier with a network and fits it to projected dual update targets (see our response to Reviewer EKp6) The corresponding construction in our setting would regress a network toward pointwise EMA values using the alternating PDL-curriculum. Because the network already couples values across inputs, we regard direct joint slack error minimization as the more direct and principled translation of the "inexact projection" construction, without an explicit half-life or separate target-regression stage. This leads precisely to neural slack variables.
W4, W5, Q1: Guarantees and dimensional scope
Neural slack variables are a soft constraint enforcement method for the functional setting, meaning that the constraint index is continuous rather than finite. A soft method can enforce this constraint only through dense or randomized collocation. This necessarily scopes our claims to low-dimensional domains where this is practical, since maintaining comparable coverage becomes exponentially more expensive as the dimension increases (curse of dimensionality).
We did not intend to claim high-dimensional scalability. The abstract explicitly scopes the convexity result to “low-dimensional convexity,” while the conclusion restricts its all-seed claim to “dense-grid synthetic benchmarks” and states: “Soft enforcement on a sampled grid scales poorly with input dimension; neural slack variables degrade more slowly than the hinge penalty but do not avoid this scaling issue.” We nevertheless recognize that the contribution summary did not repeat this qualification and could be read more broadly than intended. We will revise its claim of unqualified robustness and make the intended scope impossible to misread.
In particular, we accept the convexity failures at as a limitation. The fixed collocation budget in this study was chosen precisely to measure this degradation: “We read this as the curse of dimensionality acting on soft constraint enforcement: at fixed grid budget the per-volume sample density thins exponentially, and methods whose feasibility relies on dense pointwise supervision degrade accordingly.”
Q1 makes this limitation precise. Any method that enforces a continuous constraint through sampled supervision, including primal-dual methods, requires regularity to relate feasibility at the sampled points to feasibility throughout . Under Lipschitz regularity, the resulting bound contains a term proportional to the relevant Lipschitz constant times the grid fill distance . With quasi-uniform samples, scales as , making the curse of dimensionality explicit. For neural slack variables, the relevant residual regularity invariably also depends on the constraint profile. We provide a more detailed discussion in our response to Reviewer xkqd.
Low-dimensional functional domains are important in their own right across science and engineering. In machine learning, the canonical settings of implicit neural representations constitute a major research area concerned precisely with such domains. Our chosen application, volatility smoothing, provides a high-profile industrial example: Constructing an arbitrage-free surface is two-dimensional in expiry and log-moneyness, yet central to the daily practice of options trading. Wile the constraint domain is extended by high-dimensional conditioning variables, strong feasibility across fitted and held-out latent codes documents empirical generalization across conditioning, not uniform coverage or certification of an arbitrary high-dimensional domain. We will make this distinction explicit throughout.
Q5: Volatility surface results
We expanded the paper’s volatility surface experiment to four indices, five years of data (2020–2024), and three training seeds. Neural slack variables maintain their strong results, almost eliminating all measured violations on the fitted surfaces. To address Q5, we added a held-out latent calibration experiment: after freezing the autodecoder, we calibrate new latent codes to unseen 2025 data. NSV preserves densely measured no-arbitrage on nearly all surfaces and substantially outperforms every other tested method. Full protocols and results are reported in our response to Reviewer EKp6.
Thanks
The rebuttal is substantive and improves the paper! However, the rebuttal does not fully resolve the central methodological concerns. Most importantly, the new EMA experiment narrows the paper’s novelty: persistent constraint gradients are not unique to neural slack variables, and a properly normalized EMA target can match or outperform NSV on the fixed-grid benchmark.
Fully Addressed Points
- Projected, fixed, and EMA target comparison
The authors performed the requested controlled comparison using the same primary model, data, and optimizer settings. They also reported cases where EMA performs as well as or better than NSV.
- Normalization and
asinhconfounding
The comparison among untransformed, normalized, and normalized-plus-
asinhlosses substantially clarifies the role of loss processing.
- Finite-grid versus continuous-domain feasibility
The authors now explicitly state that measured zero violation on a grid is not a continuous-domain certificate and that the method depends on dense or randomized collocation.
- Dimensional scope
The Authors appropriately limits the claim to low-dimensional constraint domains and acknowledges the observed failures at (d=4,5).
But My concern is here:
The EMA comparison weakens the claimed unique mechanism
Under the normalized loss:
- EMA with (h=4): 5/5 feasible, MAE 0.0955
- NSV-MLP: 5/5 feasible, MAE 0.1155
- NSV-SIREN: 5/5 feasible, MAE 0.1226
Under normalized plus asinh:
- EMA with (h=4): 5/5 feasible, MAE 0.0905
- NSV-SIREN: 5/5 feasible, MAE 0.0905
- NSV-MLP: 5/5 feasible, MAE 0.0980
These results show that persistent gradients are not specific to neural slack variables. A more defensible contribution is that NSV spatially amortizes a feasible target across changing collocation points, whereas pointwise EMA requires persistent state for each sampled location. This claim is potentially valuable (i think), but the Author's rebuttal does not test it directly.
2. Architecture and initialization sensitivity remain unclear
Under the untransformed loss, NSV-MLP succeeds in 5/5 runs, while NSV-SIREN succeeds in only 1/5. This indicates substantial sensitivity to the slack architecture.
Remaining Problems !
- No concrete feasibility bound
The Lipschitz and fill-distance discussion is only qualitative. The paper should explicitly relate the average slack loss to , state the required regularity assumptions, and explain how the relevant Lipschitz constants are controlled. It should also clarify whether the resulting argument provides any NSV-specific advantage over hinge penalties.
- slack-capacity selection rule
The authors still do not provide a method for choosing slack width, depth, or activation without inspecting the final evaluation grid. Capacity and initialization sensitivity should be reported systematically.
So, I therefore retain my score.
Comment 1/2
We thank the reviewer for the detailed follow-up and continued engagement with our response. We initially noted that the feasibility and slack-selection questions would be addressed in our response to Reviewer xkqd. That response, including an explicit form of the Lipschitz bound we previously described qualitatively, is now available. We appreciate the reviewer’s patience while we completed this material.
The reviewer’s observation about representing EMA targets with a network also led us to test a spatially amortized EMA target directly (“neural EMA”). Below, we make the requested bound in terms of average slack loss explicit. We then apply the slack-selection rule from our response to Reviewer xkqd to the matched monotonicity experiment in our original response and report the new neural EMA experiment.
Q1: Average slack loss and worst-case violation
The reviewer is right that our original response gave only a qualitative version of the Lipschitz argument. Our response to Reviewer xkqd now states it explicitly. If is -Lipschitz, then
The measured grid margin must therefore exceed the possible change between grid points. This bound applies to any method.
The reviewer also asks us to relate the average slack loss to the worst-case violation . Let be -Lipschitz, let , and let . For a radius , let m_\pi(R):=\min_j\\#\\{i:\lVert x_i-x_j\rVert\leq R\\} be the smallest number of grid points within radius of a grid point. Then
To see this, consider a point with violation . Its residual is at least . At least grid points are close enough that their residuals can be smaller by at most . Their squared residuals must appear in the average, which gives the bound.
The term is needed because the matching loss only says how close and are. It does not say how far the slack lies above zero. Positivity alone gives .
A larger value can be obtained if the slack is -Lipschitz: . This is exactly the bound from our response to Reviewer xkqd, applied to the slack rather than the constraint profile. Applying it directly to is simpler because it uses the measured constraint margin and avoids converting an average residual into a worst-case residual.
We tested the two bounds on the normalized, untransformed monotonicity runs from our original response. Using Lipschitz constants estimated from derivatives on the 10,000-point evaluation grid, the direct expression was positive for every NSV endpoint:
| Method | Lower-bound range | Positive |
|---|---|---|
| NSV-MLP | to | 5/5 |
| NSV-SIREN | to | 5/5 |
| Penalty (h=0) | to | 0/5 |
With only , the average-loss bound cannot certify even the SIREN runs: its smallest estimated already gives before the average-loss term is added.
The direct bound is therefore the more useful one here. The average-loss relation answers the reviewer’s specific question, but it loses the measured constraint margin and must turn an average error into a worst-case error. Neither bound is specific to neural slack variables.
We estimated the Lipschitz constants from derivatives on a dense grid. Global bounds can in principle be obtained from the network weights, but those estimates are too loose to be useful here. We therefore treat the numerical results as empirical evaluations of the bounds rather than formal certificates.
Q2
We provide and motivate the requested practical slack-selection rule in detail in our response to Reviewer xkqd.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
this paper is enforcing shape constraints on NNs. In the introduced setting (monotonicity, convexity, no arbitrage on implied volatility surfaces), the network must fit data and also keep a functional inequality everywhere on the domain. They identify a failure mode named as drifting. in this case, penalty and primal dual methods lose the constraint gradient once a point becomes feasible, so the network falls back into violation during training, gets corrected, and falls back again. The proposed method adds a second non negative network, the neural slack variable, matched to the constraint quantity of the main network by a regression loss and trained jointly with it.
Strengths and weaknesses
Strengths
(1) The main idea is simple and the framing is good. Especially the point that the finite capacity is what keeps the matching gradient from vanishing in the feasible region is the point I find convincing.
(2) The experiments are well designed. For example, the barrier certificate experiment in section 4.2 is the strongest part of the evidence. Also, the result matches the argument.
(3) The inductive bias view is a nice second contribution. Eq. 7 shows that among feasible solutions of equal fit the slack loss selects the one whose constraint profile is closest to the slack class, so the slack architecture becomes a controllable prior on the shape.
Weaknesses
(1) The method reaches zero violation on the evaluation grid, but feasibility off the grid is not certified. somehow this is in conflict with how the paper motivates the work.
(2) The closest method is identified but not compared against. In App. B the authors explain that the PDL dual update of Park and hentenryck makes the same move as their method. then they write that PDL would transfer as a drop in replacement and do not pursue it. This is the comparison I most wanted to see.
(3) The scale is small throughout. Everything runs on a single mac machine in 1-2 days.
Questions
(1) Could you run the PDL dual update of Park & hentenryck as a baseline?
(2) Is there any guidance for choosing the slack width, or could it be set adaptively during training?
Limitations
yes
Final justification
The expanded volatility study with the direct PDL comparison resolves my main concern. so I raised my score to 5.
Formatting concerns
N.A.
4 comments
Rebuttal 1/2
We sincerely thank the reviewer for the thoughtful and helpful review, particularly for highlighting the finite-capacity mechanism and the constraint-profile inductive bias. We agree that the direct comparison with PDL was missing and belongs in the paper. We have now evaluated PDL in an expanded volatility experiment, addressing the scale concern.
W1: Guarantees and dimensional scope
Reviewer 3mdz raised the same concern, which we address in detail under “W4, W5, Q1: Guarantees and dimensional scope” in our response to them. Neural slack variables are a soft constraint method and can enforce continuously indexed constraints only through dense or randomized collocation. We therefore scope our claims to low-dimensional domains where dense coverage is practical. The reported grid evaluations provide empirical evidence of feasibility, not a continuous-domain certificate, and we will make this limitation more prominent in the revision.
W2, W3, Q1: Larger volatility experiment and direct PDL comparison
We expanded the paper’s volatility surface experiment to four indices (SPX, NDX, RUT, and DJX) over five years (2020–2024). We also replace the single 32-dimensional surface code with an 8-dimensional code at each listed expiry per surface and a small causal transformer producing the FiLM parameters for each volatility slice. This slicewise construction uses learned representations at the listed expiries and prescribed total-variance interpolation between adjacent slices (mirroring common industry construction). Training increases from 100 to 1,000 epochs, the surface batch size from 8 to 64, and the comparison from one to three independent runs of each method. With these changes, we obtain a roughly 50% reduction in IV MAE relative to the submitted experiment. For PDL, every primal epoch is followed by a dual phase comprising either one or five complete passes over the training set; all other settings are unchanged.
We retain two evaluation regimes. The fixed-code regime evaluates all 1,000 fitted surfaces per run using the posterior means of their latent codes. The aggregate-posterior regime samples 1,000 fitted surface posteriors with replacement per run and draws one latent path from each. Both regimes therefore contain 3,000 surface evaluations across the three runs. For each constraint , we report the number of surfaces with any violation, pooled violation rate , and conditional shortfall (reported as zero when there are no violations). We evaluate these metrics on an expiry-wise grid of 1,000 log-moneyness values in . IV MAE and training time are reported as mean ± standard deviation over three runs.
Fixed codes
| Method | IV MAE | Time (h) | Calendar violations | Strike violations |
|---|---|---|---|---|
| Neural slack variable | 0.00537 ± 0.00058 | 1.96 ± 0.09 | 1 / 3,000 (2.4×10⁻⁵%; 8.1×10⁻⁵) | 0 / 3,000 (0; 0) |
| Penalty | 0.00502 ± 0.00023 | 1.74 ± 0.03 | 13 / 3,000 (0.0013%; 0.0011) | 106 / 3,000 (0.0053%; 0.0064) |
| Neural augmented Lagrangian | 0.00529 ± 0.00090 | 1.97 ± 0.08 | 69 / 3,000 (0.017%; 0.0043) | 753 / 3,000 (0.063%; 0.011) |
| PDL, 1 dual epoch | 0.00458 ± 0.00019 | 2.56 ± 0.01 | 52 / 3,000 (0.014%; 0.0038) | 585 / 3,000 (0.053%; 0.011) |
| PDL, 5 dual epochs | 0.00453 ± 0.00009 | 5.73 ± 0.19 | 70 / 3,000 (0.020%; 0.0036) | 580 / 3,000 (0.031%; 0.012) |
Aggregate posterior
| Method | Calendar violations | Strike violations |
|---|---|---|
| Neural slack variable | 3 / 3,000 (1.6×10⁻⁴%; 7.5×10⁻⁴) | 0 / 3,000 (0; 0) |
| Penalty | 41 / 3,000 (0.0058%; 0.0026) | 99 / 3,000 (0.0047%; 0.0071) |
| Neural aug. Lagr. (joint) | 188 / 3,000 (0.087%; 0.0057) | 794 / 3,000 (0.073%; 0.011) |
| PDL, 1 dual epoch | 176 / 3,000 (0.080%; 0.0063) | 640 / 3,000 (0.061%; 0.012) |
| PDL, 5 dual epochs | 235 / 3,000 (0.10%; 0.0060) | 640 / 3,000 (0.043%; 0.013) |
PDL with one dual epoch improves fit and reduces the prevalence of violations relative to joint neural augmented Lagrangian training. The penalty nevertheless has roughly an order of magnitude lower pooled violation rates, while neural slack almost eliminates calendar violations and has no measured strike violations in either regime.
The longer PDL dual phase more than doubles mean training time, from 2.56 to 5.73 hours. IV MAE decreases slightly, but calendar enforcement weakens, while strike violation prevalence is essentially unchanged (although the pooled strike violation rate decreases).Additional dual optimization therefore incurs substantial cost without a systematic improvement in constraint enforcement.
Rebuttal 2/2
Narasimhan et al. show that restricting a linear multiplier class transforms the original constraints into aggregates that the class can represent, and suggest an analogous interpretation for nonlinear multiplier models. Following this characterization, our reading of the PDL result is that a finite-capacity multiplier averages localized dual targets across coordinates and nearby surface codes. For our derivative constraints, positive dual increments are sparse and their locations can change substantially across surfaces. The longer dual phase fits this shared regression problem more fully, which can exacerbate the resulting spatial dilution and weaken the localized constraint signal received by the surface model. The combination of improved data fit and weaker surface-level enforcement is consistent with this reading, but does not establish the mechanism causally.
Neural slack variables instead represent a complete nonnegative constraint profile on the primal side. Our reading is that this dense, continuous primal object is easier for the network to learn and generalize across related surfaces than a heavily localized dual target. The results suggest that, in our setting, finite neural capacity is more effective on the primal constraint profile than on the sparse, changing dual field. We will revise Appendix B to clarify this distinction.
Volatility smoothing: Held-out calibration of frozen autodecoder
Volatility smoothing is a standard calibration problem in options markets and fits an implied volatility surface to new option quotes while respecting the no-arbitrage constraints. Production systems typically solve it through constrained optimization over ad hoc parametric slice models.
Under each soft constraint method compared above, our redesigned autodecoder learns a family of continuous surfaces from historical data. This raises the possibility that the learned family retains enough constraint structure for new surfaces to be calibrated without including constraint terms in the smoothing objective. Calibration to a new date consists of freezing the shared decoder and optimizing only a fresh path of expiry-wise latent codes against the new quotes. This is the standard autodecoder inference procedure exemplified by DeepSDF for continuous shape completion, applied here to held-out market dates.
For each configuration, we use its seed-0 model and calibrate it to the same 660 unseen surfaces from 2025, with 165 from each index. All surfaces are feasible at their common initialization at the origin. Each calibration applies 30 steps of L-BFGS-B to the reconstruction loss, with elementwise bounds given by the central 99% marginal interval of the learned GP prior. Calendar and strike (butterfly) constraints are absent from the calibration objective and evaluated on the dense grid after every step. A surface is fully feasible if both constraints are satisfied after the final step. The calendar and strike step columns report the mean number of violating calibration steps out of 30.
| Method | Feasible | Calendar violations | Strike violations | Calendar steps | Strike steps | Final fit loss |
|---|---|---|---|---|---|---|
| Neural slack variable | 649/660 | 11/660 | 0/660 | 0.45 | 0.00 | 0.00478 |
| Penalty | 367/660 | 278/660 | 39/660 | 8.85 | 1.23 | 0.00424 |
| Neural augmented Lagrangian | 269/660 | 263/660 | 270/660 | 10.64 | 11.59 | 0.00438 |
| PDL, 1 dual epoch | 216/660 | 301/660 | 283/660 | 12.05 | 10.72 | 0.00423 |
| PDL, 5 dual epochs | 151/660 | 329/660 | 357/660 | 13.93 | 15.00 | 0.00386 |
Neural slack variables retain 649 / 660 feasible surfaces after calibration, with no strike violations, compared with 367 / 660 for the penalty as the next-best method. For PDL, extending the dual phase reduces feasibility from 216 / 660 to 151 / 660, while the simultaneous decrease in reconstruction error indicates a learned surface family increasingly determined by data fit rather than constraint retention. This is again consistent with our reading that multiplier dilution weakens constraint retention relative to data fit. Neural slack variables preserve evaluated feasibility substantially more effectively under reconstruction-only calibration.
Q2: Slack width
This is an important question, and the possibility of an adaptive scheme is an interesting proposal. It substantially overlaps with the points raised by Reviewer xkqd; we therefore refer the reviewer to our response there, which we will make available shortly. Edit: We completed the material and have made it available.
Thank you for the thorough rebuttal and the substantial new experiments, which addresses most of my concerns. I raised my score to 5.
We sincerely thank the reviewer for the careful assessment, the request for a direct PDL comparison, and the reconsideration of the paper. We will include the material from the discussion as follows.
-
Direct PDL comparison and larger-scale volatility experiment Section 4.3 will report the expanded volatility experiment across four indices, five years of data, and three independent runs, including the new results for the PDL-based neural augmented Lagrangian method. Appendix G will give the full data, model, training, evaluation, and PDL protocols. We will also reference the new results in our discussion of PDL in Appendix B.
-
Off-grid feasibility The evaluation discussion and limitations will make clear that feasibility measured on a finite grid is empirical evidence rather than a continuous-domain certificate, and that sampled enforcement is practical primarily in low-dimensional domains. Appendix C will give the method-agnostic Lipschitz and grid fill distance bound.
-
Selecting slack width Section 3 will recommend copying the primary network's depth, width, and activation and using the same learning rate as the practical starting point. It will also state the learning rate based heuristic based on a gradient flow argument for deciding whether the slack architecture or width needs to change. Appendix A will give the gradient flow based argument, and Appendix D will illustrate the heuristic by including the width and learning sweep.
We thank the reviewer again for the thoughtful review and encouraging assessment.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We sincerely thank the metareviewer for identifying the main points that required attention. The guidance helped us focus the response on the following three issues.
Direct PDL comparison and expanded volatility surface experiment At Reviewer EKp6's request, we compared NSV directly with PDL in a larger-scale volatility surface experiment covering four indices, five years of data, and three independent runs. In response to Reviewer 3mdz's question about results on dates not used for training, we also calibrated the frozen models to 660 new surfaces from 2025 while optimizing only the new latent codes for data reconstruction. These results will update the existing volatility experiment in Section 4.3, with the full protocols and tables in Appendix G and a short clarification of the relation to PDL in Appendix B.
Off-grid feasibility and dimensional scope In response to Reviewers xkqd and 3mdz, we now distinguish clearly between zero measured violation on a finite grid and certification over the full domain. Under the appropriate Lipschitz assumptions, the direct, method-agnostic bound controls the worst-case violation through the minimum observed constraint margin and the grid fill distance. We also derive Reviewer 3mdz’s requested bound from the average NSV slack loss, but this bound is weaker because it must first pass from average to worst-case residual error and then from the residual to the constraint value. Therefore, direct use of the NSV slack error does not improve the method-agnostic bound. This makes the limitation precise: once the constraint profile is learned, off-grid uncertainty is governed by its regularity and the grid coverage, not by the method used to fit it. We therefore do not see a way to derive a stronger off-grid guarantee specific to NSV; without verified regularity, any sampled soft method can miss a narrow violation between grid points. NSV is proposed as a general soft alternative to penalty and primal-dual methods in this sampled setting, not as a certification method. Consistent with this scope, the paper already focuses on low-dimensional domains, reports the failures at d=4,5, and states that sampled enforcement scales poorly with dimension and does not certify feasibility between grid points. We will make these qualifications even more prominent in the evaluation discussion and limitations, and include the bounds in Appendix C.
Choosing the slack network In response to Reviewers xkqd and 3mdz, we provide a practical starting rule and a local gradient flow analysis that distinguishes insufficient slack capacity from slow slack adaptation and motivates a learning-rate heuristic for deciding when the slack architecture or width should be changed. Reviewer xkqd considered their concerns addressed, while Reviewer 3mdz concluded that the main gaps had been substantially reduced, although some personal concerns remained. The practical guidance will be added to Section 3, the calculation to Appendix A, and the experimental illustration to Appendix D.
These additions fit within the paper's existing structure. The revision will update the existing volatility subsection, add the clarifications to the main text, and place the detailed material in the corresponding appendices.