SLP-ProbHard: Probabilistic Hard-Constrained Learning via Structural Latent Parameterization
Organizations: Department of Engineering and Architecture, University of Parma, Parma, Italy · University School for Advanced Studies IUSS Pavia, Pavia, Italy
Abstract
Many probabilistic predictors must satisfy exact structure in every stochastic realization, yet common hard-constraint approaches form predictions in ambient coordinates and then correct or project them. We introduce SLP-ProbHard, a cross-family, representation-centered framework for probabilistic hard-constrained learning when explicit structural parameterizations are available. Its core object, a Structural Feasible Latent Parameterization (SFLP), combines a structural latent law with a feasible map that satisfies the constraint for every latent realization. Together these components define the predictive law itself, including its support and boundary probabilities, rather than serving as a final feasibility wrapper. We study how feasible coordinates and maps affect stochastic dimension, dependence, calibration, expressiveness, and computation. Experiments use Gaussian latent laws and fixed geometry-derived maps across affine equalities, ordering and simplex constraints, nonlinear manifolds, and three structural representations of seven-basin hydrological flow-duration-curve (FDC) data. In an official-source affine comparison with ProbHardE2E/DPPL, both methods achieve zero practical constraint violations. SLP-ProbHard uses 8 instead of 11 stochastic coordinates and improves MSE/MAE, while DPPL yields better marginal CRPS and closer-to-nominal coverage; a paired test detects no Energy Score difference across ten seeds. Real-world affine and nonlinear FDC representations reduce 13 to 7 and 14 to 8 ambient versus computational coordinates, respectively. Exact feasibility alone thus does not determine a predictive law, motivating direct structural generation when meaningful feasible coordinates are available.
Figures & tables
| Tested geometry | Synthetic benchmark | Real-world representation | Primary SFLP | Hard comparator |
| Linear equality | hierarchy | affine FDC coherence | ; affine | orthogonal projection; DPPL official-source adapter (synthetic only) |
| Convex structural instances | weak order; simplex | nonnegative FDC ordering | cumulative / normalized positive-part | isotonic / simplex projection |
| Explicit nonlinear equality/manifold | unit circle | FDC scale-shape | angle / composed scale-shape | radial projection / alternating feasible correction |
| Family | Method | MSE | CRPS | ES | Cov.90 | Stoch. dim. | Feasibility |
| Linear | Projection-Or | 0.2965 | 0.2847 | 1.2088 | 0.785 | 11 | VR |
| Linear | DPPL (official-source adapter) | 0.2997 | 0.2868 | 1.2190 | 0.809 | 11 | VR |
| Linear | SLP-ProbHard | 0.2957 | 0.2901 | 1.2216 | 0.786 | 8 | VR |
| Order | Projection-isotonic | 5.5677 | 0.7945 | 2.2440 | 0.784 | 5 | exact order |
| Order | SLP-positive-part | 5.0948 | 0.7820 | 2.1883 | 0.797 | 5 | exact order |
| Simplex | Projection-simplex | 0.0322 | 0.0890 | 0.2474 | 0.851 | 5 | CE |
| Real-world representation | Hard method | Raw- CRPS | Raw- ES | Cov.90 | Width.90 | Stoch. dim. | Hard VR |
| Nonneg. order | Projection-nonneg-isotonic | 3.894 | 15.561 | 0.757 | 14.15 | 7 | 0 |
| SLP-nonneg-positive-part | 3.710 | 14.603 | 0.722 | 22.26 | 7 | 0 | |
| Affine coherence | End-to-end affine projection | 3.627 | 13.649 | 0.746 | 13.57 | 13 | 0 |
| SLP-affine | 3.698 | 13.997 | 0.712 | 10.94 | 7 | 0 | |
| Nonlinear scale-shape | Post-hoc feasible correction | 3.568 | 13.754 | 0.823 | 14.97 | 14 | 0 |
| End-to-end feasible correction | 4.177 | 14.483 | 0.630 | 15.75 | 14 | 0 |
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
| Work | Core mechanism | Prob. law? | Hard feasibility | Representation emphasis |
| OptNet / diff. convex ( Amos and Kolter, 2017 ; Agrawal et al., 2019 ) | optimization layer | opt.-centered | supported problem | optimization geometry |
| DC3 ( Donti et al., 2021 ) | completion + correction | det./opt. | correction-dependent | completion/correction |
| Frerix et al. (2020) | direct linear-inequality map | deterministic | yes, supported class | feasible geometry |
| RAYEN ( Tordesillas et al., 2023 ) | direct convex feasible layer | deterministic | yes, convex class | convex parameterization |
| CLOVER ( Olivares et al., 2024 ) | differentiable coherent structural generation | yes | yes, hierarchy | coherent probabilistic representation |
| Girolimetto-Di Fonzo ( Girolimetto and Di Fonzo, 2024 ) | free/constrained structural-like representation | yes | yes, linear coherence | general linear structural coordinates |
| Constraint | Feasible set | Structural map | Qualification |
|---|---|---|---|
| Non-negativity | : boundary mass; : reachable boundary; : interior only. | ||
| Bounded interval | or | reaches endpoints; sigmoid excludes them. | |
| Weak ordering | , | Nonnegative increments; boundary behavior depends on . | |
| Ordering implementations | same | or ; ; | Positive-part family gives tie mass; square is boundary-reachable; softplus is interior. |
| Linear equality | , , | Exact and surjective for a full null-space basis; latent dimension . | |
| Simplex | , when active; feasible fallback if all inactive | Normalized nonnegative structural map; face mass depends on . |
| Structural map | Predictive-law structure | Moment propagation | Boundary characterization |
| Affine equality | affine pushforward | exact mean/covariance | feasible affine manifold |
| Positive-part boundary-mass | atom at zero + continuous positive component | exact for Gaussian latent | |
| Weak ordering | cumulative mixed law | exact for independent Gaussian coordinates | exact adjacent-tie probabilities |
| Nonnegative ordering | cumulative mixed law | exact for independent Gaussian coordinates | exact zero and tie probabilities |
| Square | squared-Gaussian transform | exact Gaussian moments | boundary reachable, zero mass |
| Boundary-mass normalized simplex | mixture over simplex faces | conditional/numerical moments | analytic active-set probabilities |
| Method | Primary mechanism | Probabilistic predictive law | Boundary behavior | Main qualification |
| DC3 ( Donti et al., 2021 ) | Equality completion plus iterative inequality correction | Not a dedicated probabilistic framework | Completion or correction dependent | Requires correction machinery. |
| Frerix et al. (2020) | Direct parameterization for homogeneous linear inequalities | Deterministic focus | Represented feasible boundary available | Specialized constraint class. |
| ProbHardE2E ( Utkarsh et al., 2026 ) | Differentiable probabilistic projection | Yes | Determined by projected law | Broad supported constraint classes; projection machinery required. |
| Soft-Radial ( Schneider and Kuhn, 2026 ) | Radial map into convex-set interior | Not central | Interior-oriented | Requires convex geometry and an interior anchor. |
| SLP-ProbHard | Stochastic latent law plus structural feasibility map | Yes | Map-dependent: excluded, reachable-only, or positive mass | Requires a suitable structural map. |
| Criterion | Projection / ProbHardE2E family | SLP-ProbHard | Implication |
|---|---|---|---|
| Core mechanism | Unconstrained probabilistic representation followed by projection/correction | with | Different constructions of the feasible law. |
| Organizing taxonomy | Linear/nonlinear equalities and convex inequalities under projection | Affine, nonnegative/ordered, normalized/compositional, composed, and functional structural families | Different axes of generality. |
| Constraint generality | Broad for supported equality and convex-inequality classes | Selective and map-dependent | Projection is generally broader. |
| Linear equality coordinates | Ambient prediction before projection | free coordinates | Exact intrinsic reduction in this family. |
| Nonlinear coordinates | Ambient or method-specific | May be intrinsic or redundant | Dimensional benefit is not universal. |
| Projection metric | Selected geometry may matter | No projection metric for explicit maps | Removes metric choice. |
| Frozen item | Value used in the primary synthetic benchmarks |
| Train / validation / test size | 3000 / 750 / 750 |
| Backbone | MLP, hidden width 128, depth 3, dropout 0 |
| Batch size | 128 |
| Maximum epochs / early stopping | 60 / patience 20, minimum improvement |
| Learning rate / weight decay | / |
| Gradient clipping | 5.0 where exposed by the frozen runner |
| Benchmark | Frozen target-generation structure | Same structure as primary SLP-ProbHard map? | Potential SLP-ProbHard alignment | Intended scientific question |
| Affine | Feasible latent regression is mapped through a fixed affine null-space representation . | Yes | Yes: coordinates match the feasible DGP | Can a probabilistic model learn only the free directions while matching ambient projection? |
| Weak ordering | A base response is combined with cumulative nonnegative positive-part increments, producing exact-tie mass. | Yes | Yes: boundary mechanism is aligned | Does a boundary-mass ordering representation change tie probability and proper scores relative to isotonic projection? |
| Simplex | Nonnegative components with an exact-zero mechanism are normalized to the simplex, producing face-supported observations. | Yes, at the structural level | Yes: boundary-capable normalization is aligned | How do direct boundary-capable normalization and Euclidean simplex projection differ in face probability and predictive scoring? |
| Circle | A conditional angle is drawn from a von Mises law and mapped as . Learned SLP-ProbHard uses a Gaussian angle; projection uses an ambient bivariate Gaussian. | Geometry yes; latent family no | Partial | Does one structural angle provide competitive hard-feasible prediction relative to ambient radial projection under a non-Gaussian angular DGP? |
| Composed nonneg. order | Targets are generated directly by cumulative positive-part from the first coordinate onward. | Yes, exactly | Yes, deliberately strong | Mechanism validation: do the predicted zero/tie boundary effects follow the preimage analysis when the structural DGP is known? |
| Method | CEabs FP32 | CEabs FP64 | CEmax FP32 | CEmax FP64 | VR FP32 | VR FP64 |
| Projection-Or | 0.0000 | 0.0000 | ||||
| Projection-Ob | 0.0017 | 0.0000 | ||||
| SLP-ProbHard | 0.0000 | 0.0000 |
| Method | MSE | MAE | CRPS | ES | Pair-tie rate | |
| Projection-nonneg-isotonic | ||||||
| SLP-nonnegative-positive-part | ||||||
| Target | – | – | – | – |
| Method | MSE | MAE | CRPS | ES | Cov.90 | Width.90 | CEabs | VR |
| Unconstrained | 0.3622 | 0.4857 | 0.3422 | 0.5391 | 0.835 | 1.593 | 0.623 | 1.0000 |
| Soft penalty | 0.3613 | 0.4850 | 0.3438 | 0.5417 | 0.810 | 1.484 | 0.584 | 1.0000 |
| Post-hoc radial | 0.3649 | 0.4827 | 0.3344 | 0.5253 | 0.807 | 1.496 | 0 | |
| End-to-end radial | 0.3557 | 0.4893 | 0.3277 | 0.5147 | 0.864 | 1.704 | 0 | |
| SLP-angle | 0.3557 | 0.4836 | 0.3272 | 0.5143 | 0.854 | 1.611 | 0 |
| Method | Raw MSE | Raw MAE | Raw CRPS | Raw ES | Cov.90 | Width.90 | CEabs | VR |
| Unconstrained | 104.47 | 4.738 | 3.689 | 13.882 | 0.766 | 13.86 | 0.1270 | 1.000 |
| Soft affine | 104.37 | 4.731 | 3.686 | 13.882 | 0.763 | 13.62 | 0.1250 | 1.000 |
| Post-hoc affine projection | 103.72 | 4.685 | 3.717 | 14.099 | 0.681 | 9.90 | 0 | |
| End-to-end affine projection | 106.40 | 4.707 | 3.627 | 13.649 | 0.746 | 13.57 | 0 | |
| SLP-affine | 105.14 | 4.649 | 3.698 | 13.997 | 0.712 | 10.94 | 0 | 0 |
| Metric | Projection | SLP-ProbHard | Mean diff. | 95% CI | paired | Wilcoxon |
| Raw MSE | 106.398 | 105.136 | -1.262 | [-10.616, 8.092] | 0.767 | 0.770 |
| Raw MAE | 4.707 | 4.649 | -0.058 | [-0.194, 0.078] | 0.361 | 0.432 |
| Raw CRPS | 3.627 | 3.698 | +0.072 | [-0.032, 0.176] | 0.153 | 0.193 |
| Raw ES | 13.649 | 13.997 | +0.348 | [-0.051, 0.747] | 0.080 | 0.105 |
| Coverage.90 | 0.746 | 0.712 | -0.034 | [-0.061, -0.0068] | 0.0197 | 0.0195 |
| Width.90 | 13.567 | 10.937 | -2.630 | [-3.075, -2.186] | 0.00195 |
| Method | Raw MSE | Raw MAE | Raw CRPS | Raw ES | Cov.90 | Width.90 | Bilinear CE | Hard VR |
| Unconstrained | 103.39 | 4.892 | 3.850 | 14.292 | 0.804 | 14.19 | 0.09695 | 1.000 |
| Soft nonlinear | 103.93 | 4.971 | 3.921 | 14.488 | 0.805 | 14.62 | 0.09597 | 1.000 |
| Post-hoc feasible correction | 102.33 | 4.840 | 3.568 | 13.754 | 0.823 | 14.97 | 0 | 0 |
| End-to-end feasible correction | 104.92 | 5.151 | 4.177 | 14.483 | 0.630 | 15.75 | 0 | 0 |
| SLP-scale-shape | 106.17 | 5.175 | 4.047 | 14.313 | 0.649 | 15.67 | 0 | 0 |
| Metric | Correction | SLP-ProbHard | Mean diff. | 95% CI | paired | Wilcoxon |
| Raw MSE | 104.916 | 106.166 | +1.250 | [-3.778, 6.279] | 0.588 | 0.432 |
| Raw MAE | 5.151 | 5.175 | +0.024 | [-0.175, 0.223] | 0.790 | 0.432 |
| Raw CRPS | 4.177 | 4.047 | -0.130 | [-0.285, 0.025] | 0.090 | 0.232 |
| Raw ES | 14.483 | 14.313 | -0.171 | [-0.609, 0.268] | 0.402 | 0.557 |
| Coverage.90 | 0.630 | 0.649 | +0.020 | [-0.066, 0.105] | 0.619 | 0.375 |
| Width.90 | 15.747 | 15.669 | -0.078 | [-1.909, 1.753] | 0.925 | 1.000 |
| Family | Metric | Reference mean | SLP-ProbHard mean | Rel. SLP-ProbHard diff. | 95% CI of paired diff. | paired | Wilcoxon |
| Linear equality | mse | 0.29646 | 0.29574 | -0.25% | [-0.003834, 0.00238] | 0.609 | 0.77 |
| Linear equality | mae | 0.39286 | 0.39295 | +0.02% | [-0.001766, 0.001944] | 0.916 | 0.77 |
| Linear equality | crps | 0.28467 | 0.29012 | +1.91% | [0.003935, 0.00696] | 1.91e-05 | 0.00195 |
| Linear equality | energy score | 1.20878 | 1.22158 | +1.06% | [0.005968, 0.01964] | 0.00218 | 0.00391 |
| Weak ordering | mse | 5.56771 | 5.09482 | -8.49% | [-1.049, 0.1034] | 0.0964 | 0.084 |
| Weak ordering | mae | 1.09838 | 1.08457 | -1.26% | [-0.02347, -0.004143] | 0.0103 | 0.0195 |
| Method | MSE | CRPS | ES | Cov.90 | Parameters | |
| Projection-Or | 0.29741 | 0.28544 | 1.21124 | 0.7825 | 37,526 | 0 |
| SLP-ProbHard diagonal | 0.29543 | 0.28887 | 1.21714 | 0.7954 | 36,752 | 0 |
| SLP-ProbHard low-rank | 0.29591 | 0.28364 | 1.20710 | 0.8016 | 40,880 | 0 |
| SLP-ProbHard full | 0.29587 | 0.28376 | 1.20710 | 0.7969 | 40,364 | 0 |
| Family | Reference ms | SLP-ProbHard ms | Ref./ SLP-ProbHard | Latency reduction | |
| Linear equality | 11 | 1.784 | 1.367 | 1.30 | 23.4% |
| Ordering | 5 | 248.802 | 0.958 | 259.7 | 99.61% |
| Ordering | 40 | 504.658 | 3.872 | 130.3 | 99.23% |
| Simplex | 5 | 1.471 | 1.382 | 1.06 | 6.0% |
| Simplex | 40 | 7.492 | 3.540 | 2.12 | 52.8% |
| Circle | 2 | 0.616 | 0.503 | 1.22 | 18.3% |
| Dim.red. | MSE | CRPS | ES | VR Proj. | VR SLP-ProbHard | CEabs Proj. | CEabs SLP-ProbHard | |||
| 10 | 2 | 8 | 20.0% | +0.46% | +3.56% | +2.00% | 0.0000 | 0.0000 | ||
| 11 | 3 | 8 | 27.3% | +0.71% | +2.06% | +1.22% | 0.0000 | 0.0000 | ||
| 13 | 5 | 8 | 38.5% | -0.56% | +0.58% | +0.36% | 0.0000 | 0.0000 | ||
| 19 | 3 | 16 | 15.8% | +0.03% | +2.45% | +1.11% | 0.0000 | 0.0000 | ||
| 21 | 5 | 16 | 23.8% | -0.57% | +1.08% | +0.38% | 0.0000 | 0.0000 | ||
| 25 | 9 | 16 | 36.0% | -0.19% | +0.46% | +0.36% | 0.0000 | 0.0000 |
| MSE gain | CRPS gain | ES gain | Obs.tie | SLP-ProbHard tie | Proj.tie | SLP-ProbHard tie err. | Proj tie err. | |
| 3 | +5.25% | +0.55% | +1.14% | 0.261 | 0.181 | 0.300 | 0.079 | 0.040 |
| 5 | +17.78% | +2.35% | +3.05% | 0.251 | 0.235 | 0.401 | 0.017 | 0.149 |
| 10 | +11.65% | +3.91% | +4.79% | 0.255 | 0.234 | 0.504 | 0.021 | 0.249 |
| 20 | +10.41% | +3.85% | +4.48% | 0.254 | 0.232 | 0.591 | 0.022 | 0.337 |
| 40 | +17.75% | +25.96% | +23.50% | 0.253 | 0.241 | 0.891 | 0.012 | 0.638 |
| MSE gain | CRPS gain | ES gain | Obs.zero | SLP-ProbHard zero | Proj.zero | SLP-ProbHard zero err. | Proj zero err. | |
| 3 | +0.85% | +2.80% | +2.50% | 0.245 | 0.164 | 0.195 | 0.081 | 0.050 |
| 5 | +1.51% | +2.80% | +1.87% | 0.250 | 0.164 | 0.233 | 0.086 | 0.017 |
| 10 | +0.82% | +3.38% | +1.54% | 0.250 | 0.253 | 0.325 | 0.003 | 0.075 |
| 20 | +2.53% | +4.47% | +2.16% | 0.252 | 0.338 | 0.404 | 0.086 | 0.152 |
| 40 | +1.99% | +4.76% | +1.82% | 0.252 | 0.372 | 0.453 | 0.120 | 0.202 |
| Audit quantity | Result |
| Adapter vs. direct-reference mean, max abs. diff. | |
| Adapter vs. direct-reference covariance, max abs. diff. | |
| Conditioned-mean constraint max abs. residual | |
| max abs. residual | |
| Float64 sample constraint max abs. residual | |
| Float32 sample CE abs |
| Metric | DPPL source adapter | SLP-ProbHard |
| MSE | ||
| MAE | ||
| Marginal CRPS | ||
| Energy Score | ||
| Coverage 90 | ||
| Interval width 90 |
| Metric | DPPL mean | SLP-ProbHard mean | SLP DPPL | 95% CI | paired | Wilcoxon |
| MSE | 0.29968 | 0.29574 | 0.0072 | 0.0098 | ||
| MAE | 0.39466 | 0.39295 | 0.0353 | 0.0645 | ||
| CRPS | 0.28676 | 0.29012 | 0.0020 | |||
| Energy Score | 1.21896 | 1.22158 | 0.3913 | 0.5566 | ||
| Coverage 90 | 0.8093 | 0.7856 | 0.0039 | |||
| Width 90 | 1.2967 | 1.2637 | 0.0341 | 0.0371 |