Preprint
Article

This version is not peer-reviewed.

Constraint Unlearnability in Overparameterized Neural Networks

Submitted:

22 July 2026

Posted:

23 July 2026

You are already at the latest version

Abstract
We study whether overparameterized neural networks can learn to satisfy pointwise constraints without inductive bias. One might expect that a sufficiently expressive network would learn to respect such constraints. We prove that this is not the case. For overparameterized feedforward neural networks with real-analytic activation functions, assuming the manifold of global minima is connected, the set of parameters for which the network satisfies a real-analytic pointwise constraint has measure zero on this manifold. Since gradient descent converges to this manifold, it almost surely finds solutions that violate the constraint. The proof applies the identity theorem for real-analytic functions twice: first, to show that a network either satisfies the constraint everywhere or violates it almost everywhere; second, to show that overparameterization excludes the everywhere-satisfied case. We call this phenomenon constraint unlearnability—despite interpolating the training data, the network cannot satisfy the constraint exactly on the entire input domain.
Keywords: 
;  ;  ;  ;  ;  

1. Introduction

Neural networks have achieved tremendous success across many domains. This success has been accompanied by the widespread use of architectural inductive biases that enforce pointwise constraints: softmax, for instance, ensures that outputs sum to one at every input. These biases are ubiquitous in practice—but given the expressive power of overparameterized networks, are they mathematically necessary, or merely an engineering choice?
Consider probability normalization. A network that outputs a distribution must satisfy i f θ ( x ) i = 1 for every input x. Softmax guarantees this by construction. Yet universal approximation tells us that a sufficiently wide network can approximate any continuous function, including those that satisfy this constraint. Whether the network could learn to satisfy it on its own, without the bias, is the question we address.
We prove that it cannot. For overparameterized feedforward neural networks with real-analytic activation functions (including GELU and Swish, which dominate modern architectures), in the absence of the corresponding inductive bias (i.e., no architectural guarantee that the constraint holds for all parameters), the set of parameters for which the network satisfies a real-analytic pointwise constraint has measure zero on the manifold of global minima (assuming this manifold is connected; see Section 3.2). Since gradient descent converges to this manifold, it almost surely finds solutions that violate the constraint. We call this phenomenon constraint unlearnability: the network cannot learn to satisfy the constraint exactly on the entire input domain, even though it does so on the training set.
The proof applies the identity theorem for real-analytic functions twice: first, to show that a network either satisfies the constraint everywhere or violates it almost everywhere; second, to show that the everywhere-satisfied case is non-generic on the manifold of global minima.
Cooper [1] characterized the geometry of the loss landscape for overparameterized networks; we use this geometry but ask a different question—not what the loss landscape looks like, but whether constraint satisfaction is possible within it. Methods that enforce constraints by construction [2] or by penalizing violations [3] implicitly acknowledge that unconstrained training fails; our result provides the mathematical reason.
Our contributions are: (1) a theorem establishing constraint unlearnability for overparameterized networks with real-analytic activations; and (2) the implication that architectural inductive biases for pointwise constraints are mathematically necessary for exact constraint satisfaction on the entire input domain, not merely an engineering choice. Section 2 discusses related work. Section 3 introduces the necessary background. Section 4 states and proves the main result. Section 5 discusses implications and limitations.

3. Preliminaries

3.1. Real-Analytic Functions and the Identity Theorem

Definition 1. 
A function h : Ω R on an open set Ω R n is real-analytic if for every a Ω , h admits a convergent power series expansion in a neighborhood of a.
Real-analytic functions are closed under composition and arithmetic operations. Consequently, a feedforward network f θ ( x ) built from real-analytic activations (sigmoid, tanh, GELU, Swish, Mish) and affine maps is real-analytic in x for each fixed θ , and real-analytic in θ for each fixed x.
Theorem 1 
(Identity Theorem). Let Ω R n be open and connected, and let h : Ω R be real-analytic. If h vanishes on a set of positive Lebesgue measure, then h 0 on Ω.
Proof sketch 
For n = 1 : if h 0 , then at every zero a there exists a smallest k such that the k-th Taylor coefficient at a is nonzero, so h ( x ) = ( x a ) k q ( x ) with q ( a ) 0 ; by continuity, a is an isolated zero. (If all Taylor coefficients vanished at some point a, the set of such points would be both open and closed in Ω , forcing h 0 by connectedness.) Isolated zeros form a countable, hence measure-zero, set.
For n > 1 : by Fubini’s theorem, positive measure of h 1 ( 0 ) implies that for a positive-measure set of x 1 -values, the section x h ( x 1 , x ) vanishes on a set of positive measure. By induction, these sections are identically zero. Fixing x , the function x 1 h ( x 1 , x ) then vanishes on a positive-measure set; by the one-dimensional case, it is identically zero. Hence h 0 . For a textbook treatment, see Krantz & Parks [20]. □
The contrapositive: a real-analytic function that is not identically zero vanishes only on a set of measure zero. This all-or-nothing property is the engine of our main result.

3.2. The Interpolating Manifold

Consider a feedforward neural network f θ : Ω R parameterized by θ Θ R p , with real-analytic activation functions. Given training data { ( x i , y i ) } i = 1 m Ω × R , define the evaluation map
F : Θ R m , F ( θ ) = ( f θ ( x 1 ) , , f θ ( x m ) ) ,
which stacks the m network outputs into a single vector, and is real-analytic in θ . The set of interpolating parameters is the fiber
M = F 1 ( y ) = { θ Θ : f θ ( x i ) = y i , i = 1 , , m } ,
where y = ( y 1 , , y m ) R m . This is the set of global minima of the empirical loss, viewed through the constraint F ( θ ) = y rather than the scalar loss.
Theorem 2 
(Cooper, 2021). If p > m and the training data are in general position (a generic condition; see Cooper [1], Section 2), then y is a regular value of F. Consequently, M = F 1 ( y ) is a smooth submanifold of R p of dimension p m (possibly disconnected).
The regular value condition means that the Jacobian D F ( θ ) R m × p has full row rank m at every θ M : the m interpolation conditions are independent. Intuitively, overparameterization ( p > m ) provides enough degrees of freedom that these constraints do not degenerate. "General position" formalizes the intuition that the data points do not lie on any degenerate locus where the Jacobian loses rank; by Sard’s theorem, this holds for almost every dataset.
For our purposes, a stronger property of M is needed. Since F is real-analytic and y is a regular value, the real-analytic implicit function theorem applies: locally, M can be parametrized by real-analytic functions. This makes M a real-analytic submanifold of R p , not merely a smooth one. The consequence is that the restriction of any real-analytic function on R p to M remains real-analytic, so the identity theorem applies to functions on M.
Since p > m , the manifold M has positive dimension p m . We will additionally assume M is connected (Assumption 1 below), a non-trivial condition discussed in Section 4.
Remark 1. 
For networks with vector output f θ : Ω R k , the evaluation map becomes F : Θ R m k and the overparameterization condition becomes p > m k . The constraint g : R k R is applied componentwise, and the identity theorem applies to h θ ( x ) = g ( f θ ( x ) ) as before, since real-analyticity is preserved under composition. All results extend to this case by replacing m with m k throughout. We restrict to scalar output for notational clarity.

4. Constraint Unlearnability

Let Ω R n be open and connected. Let f θ : Ω R and M R p be the network and interpolating manifold of Section 3. We assume p > m + 1 , slightly stronger than the overparameterization condition p > m of Section 3. This condition ensures that the network can interpolate m + 1 arbitrary points. Let g : R R be a real-analytic function, defining the pointwise constraint
g ( f θ ( x ) ) = 0 , x Ω .
Assumption 1 
(Connectivity of M). The interpolating manifold M = F 1 ( y ) is connected.
This assumption is non-trivial. Cooper’s theorem gives M as a smooth submanifold, but not its connectivity. Kuditipudi et al. [21] constructed datasets for which the locus of global minima is disconnected, so the assumption does not hold in full generality. However, empirical evidence suggests that connectivity holds for generic datasets and sufficiently overparameterized networks, and partial theoretical support is provided by Simsek et al. [5], who proved that the expansion manifold Θ r * m ( θ * ) is connected for any C 1 activation, and that M = Θ r * m ( θ * ) under additional technical conditions on the activation. A complete characterization of when M is connected for real-analytic activations remains an open problem.
Definition 2 
(Inductive Bias). The architecture f θ has aninductive biasfor the constraint g if g ( f θ ( x ) ) = 0 for all θ Θ and all x Ω —that is, the constraint is satisfied regardless of parameter choice. If there exist θ Θ and x Ω with g ( f θ ( x ) ) 0 , the architecture is without inductive bias for g.
Define
M good = { θ M : g ( f θ ( x ) ) = 0 , x Ω } ,
the subset of M on which the network satisfies the constraint at every input. We prove that without inductive bias, M good has measure zero in M.

4.1. All-or-Nothing for Pointwise Constraints

Proposition 1. 
For any fixed θ Θ , define h θ : Ω R by h θ ( x ) = g ( f θ ( x ) ) . Then either h θ 0 on Ω, or h θ 1 ( 0 ) has Lebesgue measure zero in Ω.
Proof. 
The network f θ ( x ) is a composition of affine maps and real-analytic activation functions, hence real-analytic in x; g is real-analytic by assumption. Thus h θ = g f θ is real-analytic on Ω . Since Ω is open and connected, the identity theorem gives either h θ 0 on Ω , or h θ 1 ( 0 ) has measure zero. □
Remark 2. 
This proposition holds for every θ Θ , independently of the training data. It rules out partial satisfaction: no parameter can make the network satisfy the constraint on a set of positive measure without satisfying it everywhere.

4.2. Measure Zero of the Satisfying Parameters

The argument applies the identity theorem a second time, now to a function of θ on the manifold M.
Choose a test point x 0 Ω { x 1 , , x m } . Define the evaluation map
ϕ : M R , ϕ ( θ ) = f θ ( x 0 ) .
Lemma 1. 
ϕ is real-analytic on M.
Proof. 
The network output f θ ( x 0 ) is real-analytic in θ on Θ , as a composition of affine maps in θ with real-analytic activation functions. Since M is a real-analytic submanifold of R p (Section 3), the restriction ϕ = f · ( x 0 ) | M preserves real-analyticity. □
Theorem 3 
(Main Theorem). If the architecture is without inductive bias for g, p > m + 1 , and M is connected (Assumption 1), then M good has measure zero in M.
Proof. 
The strategy is to show that g ϕ is real-analytic and not identically zero on M, then apply the identity theorem. By Lemma 1, ϕ is real-analytic on M; since g is real-analytic, the composition g ϕ is real-analytic on M.
To see that g ϕ 0 , note that since the architecture is without inductive bias (Definition 2), there exist θ 0 Θ and x 0 Ω with g ( f θ 0 ( x 0 ) ) 0 . Set y 0 = f θ 0 ( x 0 ) . Consider the augmented dataset { ( x i , y i ) } i = 1 m { ( x 0 , y 0 ) } of m + 1 points. Since p > m + 1 , by the interpolation result of Constantinescu & Popescu [8], there exists θ * Θ such that
f θ * ( x i ) = y i ( i = 1 , , m ) , f θ * ( x 0 ) = y 0 .
The first m conditions give θ * M ; the last gives ϕ ( θ * ) = y 0 . Hence g ( ϕ ( θ * ) ) = g ( y 0 ) 0 .
Since M is connected (Assumption 1) and g ϕ is real-analytic and not identically zero, the identity theorem gives that ( g ϕ ) 1 ( 0 ) has measure zero in M. Since M good ( g ϕ ) 1 ( 0 ) —if θ M good , then g ( f θ ( x ) ) = 0 for all x Ω , in particular g ( ϕ ( θ ) ) = 0 —we conclude that M good has measure zero in M. □

4.3. Implications for Gradient Descent

Corollary 1. 
Suppose the architecture is without inductive bias for g, p > m + 1 , and M is connected (Assumption 1). If gradient descent is initialized from a distribution absolutely continuous with respect to Lebesgue measure and converges to M, then it almost surely finds a parameter θ for which the constraint is violated for almost every x Ω .
Proof. 
By the Main Theorem, M good has measure zero in M, hence in R p (since dim M = p m < p ). By the Proposition in Section 4.1, any θ M M good violates the constraint almost everywhere. So it suffices to show that gradient descent almost surely avoids M good .
Crăciun Ghoshdastidar [16] proved that for networks with piecewise analytic activations—a class that includes real-analytic activations—the gradient descent map G η is non-singular for almost all step-sizes η : the preimage of any measure-zero set under G η has measure zero. Since the composition of non-singular maps is non-singular, the T-step map G η T = G η G η is also non-singular. Thus for every finite T, under absolutely continuous initialization, Pr [ θ T M good ] = 0 .
Since gradient descent converges to M by assumption, the limit θ = lim T θ T lies in M. Extending non-singularity from finite iterates to the limit is a standard step in the saddle-point avoidance framework [22]; under this framework, Pr [ θ M good ] = 0 . Hence θ M M good almost surely, and the constraint is violated for almost every x Ω . □

5. Discussion

5.1. Inductive Bias in Practice

Definition 2 formalizes a distinction that the practice of deep learning has long relied on: softmax, hard-constraint layers, and architectural enforcement [2,3,11,12] all ensure constraints by construction rather than by training. Our theorem provides the theoretical explanation for this practice—without inductive bias, exact constraint satisfaction is a measure-zero event, not merely a training failure. The result clarifies that expressivity (the constraint-satisfying function exists in the hypothesis class) does not imply learnability (gradient descent finds it): the constraint-satisfying parameters occupy measure zero on M, so a convergent trajectory almost surely misses them.

5.2. Implicit Regularization and Constraints

A natural question is whether implicit regularization—the tendency of gradient descent to prefer certain solutions—could substitute for inductive bias. Spectral bias [18] and the neural tangent kernel [17] show that gradient descent preferentially learns low-frequency, simple functions. This explains why it generalizes: the target function lies in a positive-measure subset of M that gradient descent can reach.
Constraint satisfaction, however, is structurally different. The set M good is not a region that gradient descent avoids by preference; it is a measure-zero subset that gradient descent almost surely never reaches. Implicit regularization operates within the positive-measure set M M good , selecting solutions with certain regularity properties, but it does not redirect the trajectory toward the zero-measure M good .
Whether implicit regularization can achieve approximate constraint satisfaction— g f θ < ϵ for small ϵ —is a separate question that our result does not address. The ϵ -neighborhood of M good may have positive measure, and characterizing whether gradient descent enters it requires tools beyond the identity theorem.

5.3. Limitations

Activation Functions

The proof relies on the identity theorem for real-analytic functions, which requires real-analytic activations. This class includes sigmoid, tanh, GELU, Swish, and Mish, but excludes ReLU, which is piecewise linear and not real-analytic. The zero set of a piecewise linear function can have positive measure without the function being identically zero, so the identity theorem does not apply. Whether an analogue of our result holds for ReLU networks remains open. The framework of Crăciun Ghoshdastidar [16] for piecewise analytic activations may offer a path, but the core tool—the identity theorem—has no direct replacement. We note that approximate implementations of GELU (e.g., using tanh) are also real-analytic, so the theorem applies to them as well.

Pointwise vs. Functional Constraints

Our framework covers pointwise constraints of the form g ( f θ ( x ) ) = 0 for each x independently. Many important constraints are functional: equivariance ( f θ ( ρ x ) = ρ f θ ( x ) ), monotonicity ( x 1 < x 2 f θ ( x 1 ) < f θ ( x 2 ) ), and differential constraints ( · f θ = 0 ) relate values at different inputs. These require a different mathematical treatment, as they constrain the function as a whole rather than each output independently.

Exact vs. Approximate Satisfaction

The theorem concerns exact constraint satisfaction on the entire input domain. In practice, approximate satisfaction within a tolerance ϵ is often sufficient. Our measure-zero result does not directly imply that approximate satisfaction fails: the ϵ -approximate satisfying set may have positive measure. Extending the analysis to approximate constraints is an open problem.

Parameterization Condition

The main theorem requires p > m + 1 , slightly stronger than the standard overparameterization condition p > m . This ensures interpolation of m + 1 points in the proof of the Main Theorem. For sufficiently wide networks, the distinction is immaterial, but the tight bound remains to be determined.

Connectivity of M

The main theorem assumes M is connected (Assumption 1); see the discussion following the assumption for its non-triviality and partial theoretical support.

6. Conclusions

We have shown that overparameterized neural networks with real-analytic activations cannot learn to satisfy pointwise constraints exactly without architectural inductive bias. The proof hinges on a simple geometric fact: the identity theorem for real-analytic functions forces constraint satisfaction to be all-or-nothing, and overparameterization ensures that the “all” case occupies measure zero on the interpolating manifold. Combined with the non-singularity of the gradient descent map [16], this yields constraint unlearnability: gradient descent almost surely converges to parameters that violate the constraint almost everywhere.
The practical implication is that architectural inductive biases for pointwise constraints—softmax for normalization, hard-constraint layers for physical conservation laws, architectural enforcement of non-negativity—are not engineering conveniences but mathematical necessities for exact satisfaction. Their ubiquity in practice reflects this necessity, even when it has not been formally articulated.
The result is exact within its setting: real-analytic activations, pointwise constraints, exact satisfaction, and a connected interpolating manifold (see Section 5.3 for limitations). Extending constraint unlearnability beyond these boundaries defines a program for future work. The most pressing direction is whether an analogue holds for ReLU networks, the most widely used in practice; the identity theorem has no direct replacement there, but the framework of Crăciun Ghoshdastidar [16] for piecewise analytic activations may offer a path. A second direction is approximate satisfaction: whether implicit regularization can drive the network into an ϵ -neighborhood of M good , even though exact membership is a measure-zero event.

Author Contributions

Conceptualization, H.Q.; methodology, H.Q.; formal analysis, H.Q.; writing—original draft preparation, H.Q.; writing—review and editing, H.Q. and Z.T.; supervision, Z.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

No data or code was generated or analyzed in this study.

Acknowledgments

The authors thank the National Key Laboratory of Information Systems Engineering for institutional support.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Cooper, Y. Global minima of overparameterized neural networks. SIAM J. Math. Data Sci. 2021, 3(2), 676–691. [Google Scholar] [CrossRef]
  2. Min, Y.; Azizan, N. HardNet: Hard-constrained neural networks with universal approximation guarantees. In Advances in Neural Information Processing Systems (NeurIPS); 2025. [Google Scholar]
  3. Beucler, T.; Pritchard, M.; Rasp, S.; Ott, J.; Baldi, P.; Gentine, P. Enforcing analytic constraints in neural-networks emulating physical systems. Phys. Rev. Lett. 2021, 126(9), 098302. [Google Scholar] [CrossRef] [PubMed]
  4. Nguyen, Q.; Hein, M. The loss surface of deep and wide neural networks. Proc. Int. Conf. Mach. Learn. (ICML) 2017, PMLR 70, 2603–2612. [Google Scholar]
  5. Simsek, B.; Ged, F.; Jacot, A.; Spadaro, F.; Hongler, C.; Gerstner, W.; Brea, J. Geometry of the loss landscape in overparameterized neural networks: Symmetries and invariances. Proc. Int. Conf. Mach. Learn. (ICML) 2021, PMLR 139, 9722–9732. [Google Scholar]
  6. Madden, L.; Thrampoulidis, C. Memory capacity of two layer neural networks with smooth activations. SIAM J. Math. Data Sci. 2024, 6(3), 679–702. [Google Scholar] [CrossRef]
  7. Madden, L. Interpolation with deep neural networks with non-polynomial activations: necessary and sufficient numbers of neurons. arXiv 2024, arXiv:2405.13738. [Google Scholar]
  8. Constantinescu, V.-R.; Popescu, I. Approximation and interpolation of deep neural networks. arXiv 2024, arXiv:2304.10552. [Google Scholar]
  9. Vershynin, R. Memory capacity of neural networks with threshold and rectified linear unit activations. SIAM J. Math. Data Sci. 2020, 2(4), 1004–1033. [Google Scholar] [CrossRef]
  10. Yun, C.; Sra, S.; Jadbabaie, A. Small ReLU networks are powerful memorizers: A tight analysis of memorization capacity. In Advances in Neural Information Processing Systems (NeurIPS); 2019. [Google Scholar]
  11. Lu, L.; Pestourie, R.; Yao, W.; Wang, Z.; Verdugo, F.; Johnson, S.G. Physics-informed neural networks with hard constraints for inverse design. SIAM J. Sci. Comput. 2021, 43(6), B1105–B1132. [Google Scholar] [CrossRef]
  12. Zhong, F.; Fogarty, K.; Hanji, P.; Wu, T.; Sztrajman, A.; Spielberg, A.; Tagliasacchi, A.; Bosilj, P.; Oztireli, C. Neural fields with hard constraints of arbitrary differential order. In Advances in Neural Information Processing Systems (NeurIPS); 2023. [Google Scholar]
  13. Balestriero, R.; LeCun, Y. POLICE: Provably optimal linear constraint enforcement for deep neural networks. In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2023. [Google Scholar]
  14. Donti, P.L.; Rolnick, D.; Kolter, J.Z. DC3: A learning method for optimization with hard constraints. International Conference on Learning Representations (ICLR), 2021. [Google Scholar]
  15. Sontag, E.D. Critical points for least-squares problems involving certain analytic functions, with applications to sigmoidal nets. Adv. Comput. Math. 1996, 5(2–3), 245–268. [Google Scholar] [CrossRef]
  16. Crăciun, A.; Ghoshdastidar, D. Non-singularity of the gradient descent map for neural networks with piecewise analytic activations. In Advances in Neural Information Processing Systems (NeurIPS); 2025. [Google Scholar]
  17. Jacot, A.; Gabriel, F.; Hongler, C. Neural tangent kernel: Convergence and generalization in neural networks. In Advances in Neural Information Processing Systems (NeurIPS); 2018. [Google Scholar]
  18. Rahaman, N.; Baratin, A.; Arpit, D.; Draxler, F.; Lin, M.; Hamprecht, F.A.; Bengio, Y.; Courville, A. On the spectral bias of neural networks. Proc. Int. Conf. Mach. Learn. (ICML) 2019, PMLR 97, 5301–5310. [Google Scholar]
  19. Razin, N.; Cohen, N. Implicit regularization in deep learning may not be explainable by norms. In Advances in Neural Information Processing Systems (NeurIPS); 2020. [Google Scholar]
  20. Krantz, S.G.; Parks, H.R. A Primer of Real Analytic Functions, 2nd ed.; Birkhäuser: Boston, 2002. [Google Scholar]
  21. Kuditipudi, R.; Wang, X.; Lee, H.; Zhang, Y.; Li, Z.; Hu, W.; Arora, S.; Ge, R. Explaining landscape connectivity of low-cost solutions for multilayer nets. In Advances in Neural Information Processing Systems (NeurIPS); 2019. [Google Scholar]
  22. Lee, J.D.; Simchowitz, M.; Jordan, M.I.; Recht, B. Gradient descent only converges to minimizers. Conference on Learning Theory (COLT), 2016; PMLR 49, pp. 1246–1257. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2026 MDPI (Basel, Switzerland) unless otherwise stated

Accessibility

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings