Manuscript Offprint
arXiv:2610.32598Universal neural network approximation of symmetric polyconvex energies and envelopes
Abstract
Symmetric polyconvexity provides a sufficient condition for weak lower semicontinuity in small-strain elasticity and a tractable lower bound for the relaxation of non-(quasi)convex energies. Since classical algorithms for computing such functions can be computationally expensive, neural network approximations have recently emerged as an alternative. A central difficulty with establishing such neural network based approaches for symmetric polyconvexity is the additional monotonicity property. As we show, the corresponding weight restrictions on ReLU-based input-convex networks do not yield universal approximation of the lifted representers. Here, we introduce symmetric polyconvex neural networks (SPCNNs) for constitutive modeling and approximation of symmetric polyconvex envelopes. The deep architecture combines convexity with the monotonicity required of a representer in the space of minors. We prove a universal approximation theorem for symmetric polyconvex energies, without requiring isotropy, and quantify the number of affine pieces attainable by the lifted network and derive reduced architectures for isotropic energies. Numerical examples illustrate stress-based regression and approximation of the symmetric polyconvex envelope of a double-well potential. Symmetric polyconvexity is guaranteed by construction, while the accuracy of the fitted energies and envelopes is assessed numerically.
MSC (2020): 74B05, 68T07, 26B25
Keywords: artificial neural networks, relaxation, linearized elasticity, hyperelasticity, isotropy, multi-well, material modeling
1 Introduction
In solid mechanics, physical phenomena are mathematically described by an interplay of energy and dissipation. In variational models of microstructure formation, lack of quasiconvexity can reflect minimizing sequences with increasingly fine oscillations, leading to the concept of relaxation of the energy functional, which corresponds to computing the quasiconvex envelope [9, 16, 19, 52]. In the context of small-strain elastoplasticity, the strains and stresses are symmetric matrices, and relaxation corresponds to computing the symmetric quasiconvex envelope [6, 22, 24, 55, 56, 64]. Although calculating this envelope directly is generally unfeasible, the common approach to approximate it, is to compute an upper bound (the symmetric rank-one convex envelope) as well as a lower bound (the symmetric polyconvex envelope), and then show that these match (e.g., [3, 14, 23, 30–35, 46, 47, 50]).
Originating in Ball’s finite elasticity theory [5], polyconvexity allows one to construct quasi-convex energy densities respecting physical constraints. Unlike standard polyconvexity, symmetric polyconvexity requires functions to be convex in their first- and second-order minors and non-increasing with respect to second-order minors [10, 51].
Although in theory symmetric polyconvexification is more accessible conceptually than symmetric quasiconvexification, computing it remains a demanding optimization problem (cf. [8]). A neural network approach offers a reusable approximation that can be evaluated at any strain after training. For constitutive model identification, the objective is to find an energy within a prescribed class of symmetric polyconvex functions. For relaxation, the objective is to approximate the largest symmetric polyconvex function lying below a given non (poly-)convex energy. This envelope provides a lower bound for the symmetric quasiconvex envelope and can help identify the relaxed energy when combined with matching upper bounds.
Here, we develop a neural network architecture for these two tasks. Building on input-convex neural networks [1] and the characterization of symmetric poly-convexity [10], we enforce convexity and monotonicity of a lifted representer.
Our main theoretical result is universal approximation of symmetric poly-convex energies on compact subsets of the space of symmetric matrices, without an isotropy assumption. Obtaining this result requires more than imposing cofactor monotonicity through weight restrictions on a ReLU-based ICNN. We show that the resulting restricted networks satisfy an additional order inequality and construct a symmetric polyconvex energy for which every finite convex representer violates this inequality. Thus, these networks cannot approximate all lifted representers locally uniformly. Our architecture overcomes this obstruction by replacing ReLU-activations with pairwise maxima, while retaining the required convexity and monotonicity. We further quantify the expressivity per parameter of the lifted output, and derive reduced architectures for isotropic and two-dimensional energies.
As a quick outline of this paper, Section 2 recalls symmetric polyconvexity and its relation to relaxation, reviews related neural network approaches, and discusses the expressivity of ICNNs. Section 3 establishes the insufficiency of restricted ReLU networks, introduces the SPCNN architecture, and proves its universality and expressivity properties. Section 4 describes stress-based constitutive regression and the training objective for envelope approximation. Section 5 presents numerical results for both applications.
for the orthogonal projection. Then we can express
Using the direct method in the calculus of variations, sufficient requirements for the existence of a minimizer are coercivity and (depending on the growth of ) quasiconvexity of , which is the same as being symmetric quasiconvex.
2.1 Symmetric polyconvexity, isotropy, and envelopes
Analogously to symmetric quasiconvexity, we can define symmetric polyconvexity using the projection. Throughout, denotes the space of symmetric matrices, lowercase Greek letters , , arbitrary elements of this space, and : the Frobenius scalar product.
Definition 2.1. A function is called symmetric polyconvex if is polyconvex, i.e., there exists a convex function
such that for all , where is the vector of minors of the matrix .
When we are considering problems of the symmetric form, it is convenient to work entirely in the space of symmetric matrices, instead of taking the whole space into account at first and then reducing to the symmetric case later on. A self-contained characterization of symmetric polyconvexity was proved by Boussaid, Kreisbeck and Schlömerkemper [10]. We denote the set of symmetric negative semidefinite matrices by , and is the subdifferential with respect to the second variable. Then it holds that
Theorem 2.2. (i) a function is symmetric polyconvex if and only if there is a convex function that is nonincreasing in the last argument, such that .
(ii) a function is symmetric polyconvex if and only if there is a convex function that is non-increasing in the second argument, i.e., admits for all , such that .
While symmetric polyconvexity of (accompanied with some growth conditions) gives rise to the existence of minimizers, in solid mechanical practice, many arising potentials are neither symmetric polyconvex nor symmetric quasiconvex. Such models are derived from microscopic considerations and, crucially, the lack of symmetric quasiconvexity, and the associated potential non-existence of minimizers, is a necessary feature for modeling, e.g., the formation of microstructure. In more abstract terms, instead of a minimizer, only an oscillating minimizing sequence may exist, yielding a macroscopic behavior that corresponds to a microscopic mixture of phases. This mixture behavior can be quantified by the symmetric quasi- or polyconvex envelopes.
We continue our discussion by investigating the definition of the symmetric polyconvex envelope of a function . We remark that our functions are finite-valued and assumed to be bounded from below by polyaffine functions, thus the (symmetric poly-) convex envelope is the same as the lower semicontinuous (symmetric poly-) convex envelope ([19, Thm. 2.43]), and we will not explicitly mention the lower semicontinuity property of the envelopes in what follows.
Definition 2.3. Let be bounded from below. Then the symmetric polyconvex envelope is defined as
Classical numerical methods typically use more explicit representations, such as Carathéodory formulas (cf. [19, Thm. 6.8], [8, 26, 53]). This abstract form is, however, the foundation of our neural network relaxation procedure. To reduce computations and make simpler plots, we will constrain our later benchmark examples to the isotropic case. A function is isotropic if for all and for all it holds that
In this case, the complexity reduces, since it suffices to calculate the above envelope on diagonal matrices.
Theorem 2.4 ([26]). For let be the vector of eigenvalues of in increasing order. Let be isotropic. Let be defined by
Then
and is permutation invariant. Moreover, is symmetric polyconvex if and only if there is a convex function , which is jointly permutation invariant, and non-increasing w.r.t. the second variable, such that for all : , where .
2.2 Overview of the literature on polyconvex neural networks
Traditional numerical algorithms for finding solutions to PDEs and differential inclusions, such as the finite element method, are widely used in practice due to their robust error bounds, interpretability, and relative simplicity. However, they come with a set of limitations, such as difficulty in handling noisy data, the curse of dimensionality, the complexity of mesh generation, and the mesh-based representation of their output. Neural networks offer an alternative parameterization whose approximation efficiency depends on the target function, architecture, and loss function.
Fundamentally, these networks solve a regression problem within a large class of admissible functions. For an introduction and overview of such general feedforward networks, see [40]. Depending on the activation function, the class of functions is chosen to be dense in the function space one aims to approximate. In machine learning, this is referred to as the universal approximation property. The foundational proofs of this property were given in [18] (using the Hahn–Banach and Riesz–Markov Theorem), [38] (using the Stone-Weierstrass Theorem), and further specified for instance in [36, 37, 61]. While neural networks have been highly successful in natural language and image processing, their application in physical modeling has, until recently, been limited. This is because physical systems adhere to precise mathematical laws that a standard network's output might violate, especially outside the training domain. Furthermore, there is often insufficient physically relevant data to train vast neural networks. In recent years, these challenges have been simultaneously addressed through the development of Physics-Informed Neural Networks (PINNs) (cf. [58]) and structurally constrained architectures ([42]). While standard PINNs enforce physical laws via soft constraints in the loss function, heavily constrained architectures ensure the output inherently satisfies desired properties, such as Lipschitz continuity [2, 59], convexity [1], monotonicity [20], or certain symmetries.
Abstractly speaking, these constraints restrict the class of approximable functions to those satisfying the prescribed physical and mathematical properties.
Data-driven approaches in computational mechanics range from methods that use experimental material data directly to methods that learn constitutive relations ([4, 7, 44]). In energy-based approaches, a stored energy density is learned, and stresses are obtained by differentiation.
Polyconvexity provides a useful sufficient condition for quasiconvexity and, together with suitable coercivity and growth assumptions, ensures existence of minimizers. This motivates neural network architectures that enforce polyconvexity by construction. Existing approaches use deformation-based inputs, including invariants of the right Cauchy–Green tensor and, for anisotropic materials, additional structural invariants ([12, 25, 41, 45, 48]), as well as principal stretches and their combinations ([60]). Most recently, [28] utilized the characterization of isotropic polyconvex functions [63] to derive a streamlined neural network architecture that inherently produces such functions by reducing the problem to principal stretches and their products.
Our approach in this paper is related, but distinct in two crucial ways. First, our network concerns symmetric polyconvexity, and therefore small-strain elasticity. Working in this framework, dependence on the symmetric gradient ensures invariance under infinitesimal rigid motions, while finite-strain conditions such as energy blow-up under compression to zero volume lie outside the small-strain setting in the first place. Second, our neural network goes beyond simply lifting an ICNN to the space of minors, since we also need to account for monotonicity in the second order minors, while preserving the universal approximation property.
2.3 On the expressivity and universality of ICNNs
Common among most of the aforementioned approaches to polyconvex neural networks is their foundation, the so-called input convex neural networks (ICNN) introduced in [1]. These networks are a special type of feedforward network where the output function is automatically convex in the inputs. In this subsection, we give a quick introduction to these networks and compare their expressivity to previous architectures.
The simplest neural network architecture that guarantees convexity in its outputs and has the universal approximation property is the single-layer max-out network as a special case of [29]. This is nothing more than having affine functions and setting the network output to , where is the collection of the parameters, i.e., the slopes and intercepts of the . Essentially, this is the same as finding a piecewise affine and convex approximation to a convex function. The general problem of fitting arbitrary convex functions by piecewise affine ones numerically has been addressed in numerous papers, such as [17, 27, 49].
The downside of these simple architectures is their lack of expressivity due to their shallowness. Of course, every convex function on a compact convex set can be approximated by these networks, but this may require a large number of parameters.
The ICNNs introduced in [1] solve this issue by presenting a deep neural network architecture as follows. Let be the space dimension of the inputs, let be an input vector, let , , , and let , , be parameters for , and . Furthermore, let be activation functions for that are applied componentwise, and let . Then we iteratively set
Here, is again the collection of network parameters and the output function of the network with parameters . The first important difference to general fully connected feedforward neural networks is the feature of direct pass-through layers. The second difference is the restriction of the parameters and activation functions.
Proposition 2.5 ([1]). Let and let be convex and nondecreasing for all and . Then the output function of the network described above is convex in the inputs. Under these conditions, the network is called an ICNN.
When we choose the to be the ReLU function (i.e., ), then an ICNN of width 1 and depth can represent a single layer max-out network with neurons directly (cf., [13] Thm. 2 (1)). This is also one of the reasons why ICNNs admit the universal approximation property.
Theorem 2.6 ([13, 39]). Let be continuous, convex and let . Then there is an ICNN with ReLU-activation, such that
Moreover, an ICNN with only one hidden layer and width can represent a single layer max-out network with neurons. To our knowledge, a precise characterization accounting for these geometric activation constraints has not been explicitly established in the literature .
Theorem 2.7 (Expressivity of single layer ICNNs). There is a single layer ICNN with ReLU-activation of width and distinct affine functions , , such that . Here, is the maximal number of regions in that can be separated by hyperplanes:
Proof. The single layer ICNN can be written as
for affine functions , where we set the pass-through layers to zero. We choose so that all subset sums are pairwise distinct. This is possible because forbidden coincidences lie within a finite collection of proper linear subspaces, leaving a dense open set of admissible choices.
Each hyperplane separates into two distinct regions. Crucially, hyperplanes separate into maximally regions (we can define like this), and we may choose the such that the maximal number of regions is attained. This means that is continuous, convex, piecewise affine on every separated region, and pairwise distinct on each region. In particular, the corresponding single layer max-out network requires many affine functions. For a derivation of the closed form for , see [11].
3 Symmetric polyconvex neural networks
In this section, we propose an efficient and universal architecture for an ICNN whose output is symmetric polyconvex in its inputs. The first observation hereby is to use the characterization of symmetric polyconvex functions in Thm. 2.2. Essentially, these are higher dimensional convex functions of the first and second order minors of the input matrix. For regular polyconvexity, one can build an ICNN approximation for these lifted functions, cf., [28, 45, 60]. In contrast, symmetric polyconvexity additionally requires the lifted output function to decrease in the second order minors. General monotonic neural networks have been considered in the literature for instance in [20, 62], and monotonic ICNNs for polyconvex envelopes have been considered recently in [54]. However, this parameter restriction is not sufficient for universal approximation of the lifted convex representers.
In [13, Thm. 2(2)], a related bound of affine pieces is stated, which overestimates the realizable capacity, since once an affine component is activated past a hyperplane , it remains active on that side.
3.1 An obstruction to lifted approximation by restricted ReLU networks
A symmetric polyconvex network could potentially be realized by setting the parameters corresponding to the minors in the lifted ICNN to be negative semidefinite. We show that this approach cannot approximate every convex, cofactor-nonincreasing lifted representer, even when arbitrary depth and width are allowed. The reason is that such ReLU-networks inherently satisfy a particular order relation.
Lemma 3.1 (ReLU order). Let be the output function of an ICNN of arbitrary depth and width, as defined in Prop. 2.5, with non-positive pass-through layer weights and ReLU-activation, and non-positive coefficients for both input variables in every input and pass-through connection, including those to the output layer. Then is convex, non-increasing, and satisfies the inequality
(*)
for all real , .
Proof. The proof follows by induction. If every component of has these properties, then so does every preactivation in the next layer, since it is a nonnegative linear combination of these components plus an affine function with non-positive coefficients in the inputs. The induction starts with . It remains to show that applying ReLU preserves these properties. For convexity and monotonicity, this is clear. Let denote a preactivation having all three properties. Let us write
By assumption, we have
If , the claim follows from the nonnegativity of ReLU. If and , then
and analogously for switched roles of B, C. Finally, suppose B, C > 0, then
For the following symmetric polyconvex function, every finite convex representer violates the ReLU-order inequality and therefore lies outside the locally uniform closure of the restricted lifted networks.
Example 3.2. Consider the two affine (in the minors) functions
For the symmetric polyconvex function , no finite convex representer can be approximated locally uniformly by parameter-restricted ReLU-ICNNs. We note that any convex representer
of needs to be constant w.r.t. the first variable. To see this, take a rank-one direction , . Then , hence for all . For an arbitrary choose . The subgradient inequality gives
We infer for every , hence .
Furthermore, the representer is uniquely determined on the positive semidefinite matrices by continuity, since for positive definite . Thus, every representer satisfies for all
For the latter function, assume an ICNN F as in lemma 3.1 exists such that
Then, using (*), we see that
hence , and cannot be made arbitrarily small.
Remark 3.3. We note that the ReLU-architecture still yields universal approximability in 2d due to the total ordering. Precisely, for any finite collection of affine functions of the form , where , we relabel the affine functions so that . The result can be written iteratively as a chain of affine and ReLU-functions analogous to Thm. 2.1 in [13]. Due to the ordering, the terms are non-increasing w.r.t. the second variable. However, this rearrangement can cause problems in the training of the network, therefore the modified architecture of the next section is still preferable.
3.2 SPCNN architecture
The architectural changes that we propose still use parameter restriction first, but in order to obtain universality, we require activation functions with certain properties. As we showed, the ReLU-function is not sufficient, since it compares a neuron output only to the zero function. Instead, we compare the output of several neurons to each other. Similar approaches to the activation function have been carried out in the literature for deep max-out neural networks in [29] using general maxima, and more recently for Lipschitz continuous neural networks [2, 15, 59] using groupsort activations.
Definition 3.4 (SPCNN architecture in 3d). Let be input matrices, let , , , and let
be parameters for , and . We can group the neurons into pairs of adjacent neurons (i.e., the first two, the second two, etc.). Furthermore, let be activation functions that are convex and nondecreasing applied to two adjacent components for . We iteratively set
Then the set of all parameters together with the iteration scheme is called a 3d symmetric polyconvex neural network (SPCNN) with activations , is called the lifted output function of the SPCNN and is called the symmetric polyconvex output of the SPCNN.

Figure 1: SPCNN architecture
Example activation functions are the ordinary maximum or the scaled LogSumExp functions
for . Note that as , and thus, the universal approximation property proved for max-activation in Thm. 3.11 also extends to (for sufficiently large). We also remark that choosing a grouping size of 2 above is rather arbitrary, and was only done for simplicity. In theory, any number greater or equal than 2 or even several distinct such grouping numbers as in [2, 59] could be chosen, we will, however, restrict ourselves to grouping size 2 throughout this paper.
Proposition 3.5. The lifted output function of the SPCNN is convex, and non-increasing in the second argument, i.e., the symmetric polyconvex output of the SPCNN is indeed symmetric polyconvex.
Proof. Every in the iteration has the form
The interior function is componentwise the sum of an affine function and a nonnegative linear combination of convex functions , hence convex. Composing a convex function with a convex nondecreasing function produces a convex function, thus the lifted output is convex by induction. Concerning monotonicity: every component of is non-increasing in the second variable. Now, suppose that every component of is non-increasing in the second variable. Every nonnegative linear combination is necessarily non-increasing in the second variable. Moreover, the components of the affine function are non-increasing in the second variable, therefore every component of the function is non-increasing in the second argument. Composition with a non-decreasing function preserves this property. Thus the claim follows by induction over .
It is now straightforward to propose reduced architectures for the 2d case.
Definition 3.6 (SPCNN architecture in 2d). Let be an input matrix, let , , , and let
be parameters for , and . We can group the neurons into pairs of adjacent neurons. Furthermore, let be nonlinear activation functions that are convex and non-decreasing applied to two adjacent components for . Then we iteratively set
Then the set of all parameters together with the iteration scheme is called a 2d symmetric polyconvex neural network (SPCNN) with activations , is called the lifted output function of the SPCNN and is called the symmetric polyconvex output of the SPCNN.
By the characterization of isotropic symmetric polyconvex functions, the representer function, defined on the diagonal matrices, admits certain symmetry properties. More precisely, the representer is invariant under permutation of the inputs. We can easily achieve this invariance for our network by simply averaging over all permutations. This does not interfere with the subsequent universal approximation property, cf. [28].
Definition 3.7 (SPCNN architecture for 3d isotropic functions). Let be an (eigenvalue) input, let , , , and let
be parameters for , and . We can group the neurons into pairs of adjacent neurons. Furthermore, let be nonlinear activation functions that are convex and non-decreasing applied to two adjacent components for . Then we iteratively set
Then the set of all parameters together with the iteration scheme is called a 3d isotropic symmetric polyconvex neural network (SPCNN) with activations ,
is called the lifted output function of the SPCNN and is called the symmetric polyconvex output of the SPCNN.
Definition 3.8 (SPCNN architecture for 2d isotropic functions). Let be an (eigenvalue) input, let , , , and let
be parameters for , and . We can group the neurons into pairs of adjacent neurons. Furthermore, let be nonlinear activation functions that are convex and non-decreasing applied to two adjacent components for . Then we iteratively set
Then the set of all parameters together with the iteration scheme is called a 2d isotropic symmetric polyconvex neural network (SPCNN) with activations ,
is called the lifted output function of the SPCNN and is called the symmetric polyconvex output of the SPCNN.
3.3 Universality and expressivity of SPCNN
In the following part of the section, we prove that our 3d architecture has the universal approximation property. The proofs for the 2d and isotropic cases are analogous and therefore omitted. The procedure is inspired by [28, 39].
Lemma 3.9. Let be nonempty and compact. Let be convex and non-increasing in the second variable. For any there are affine functions , , , of the form
where , , , such that
Proof. Let . Let us equip the product space with the norm . Since is finite and convex, it is continuous, its subdifferential is nonempty everywhere, and its subgradients are locally bounded. By compactness of ,
Uniform continuity of allows us to choose such that and
Choose , such that
and choose
Define the supporting affine functions
By the subgradient inequality, globally. Note that by monotonicity . Finally, given , , choose with . Then
Lemma 3.10. Let be nonempty and compact. Let be convex and non-increasing in the second variable. For any there is a SPCNN with max-activation such that
Proof. By lemma 3.9 it suffices to show the claim for g of the form
where and , , , . Such piecewise affine convex functions can be written as
For the network, we may choose , and , , such that
for all , and choose such that
for . We set and for . Then
Furthermore,
In particular, .
Theorem 3.11 (Universality of SPCNN in 3d). Let be symmetric polyconvex, compact, and . Then there is a 3d SPCNN with max-activation, such that
Proof. By the characterization of symmetric polyconvex functions in Thm. 2.2, there is a representer function
that is convex, non-increasing in the second argument and for all . For , we can approximate by an SPCNN according to lemma 3.10. Precisely, let , which is compact by the continuity of the cofactor mapping. Then
and by construction
We next quantify the expressivity of our SPCNN architecture by comparing the number of its parameters with the number of affine pieces required in an equivalent single-layer max-out representation.
Theorem 3.12 (Expressivity, cf. [13], Thm. 2.7). There is a single hidden layer SPCNN with max-activation and 2N neurons, , such that there are pairwise distinct affine functions : , that are non-increasing in the second argument, such that
where
Proof. Take an SPCNN with 1 hidden layer and 2N neurons and choose the affine functions generically like in Thm. 2.7. Set for . Then
for the affine functions resulting from the weights and biases of the hidden neurons. We set , and we proceed similarly for the second component of . Then
As in Thm. 2.7, the affine functions can be made pairwise distinct, rendering a separation of the 12 dimensional space using the hyperplanes . On each separated region, is affine and different from any other region, satisfying the desired property.
Remark 3.13. The construction in the above proof also shows, by setting every even to zero, that our SPCNNs contain the regular ICNNs (with restricted parameters in the second argument) as a special case.
Next, approximating by a polyconvex network requires considering 9 instead of 6 inputs. This approach leads to a larger number of parameters, and thus more compute, compared to our SPCNNs, which make use of the direct characterization of symmetric polyconvex functions in terms of symmetric matrices.
Finally, one could use a standard ICNN to approximate a symmetric convex representer function of and enforce the monotonicity either with a penalization in the cost-function, preconditioning the training data, or directly by sorting out violations, e.g., if the network produces any polyaffine parts for , then we project onto the cone of symmetric negative semidefinite matrices.
The first approach neither guarantees monotonicity nor does it require fewer parameters than our SPCNN. The second approach uses training pairs (see Section 4.1) filtered to satisfy the required monotonicity in the cofactor arguments, simply by discarding any non-monotonic pairs from the dataset. This, again,
Applications of SPCNNs
does not yield monotonicity of the output function, but only slashes the training set and could lead to a worse approximation of the symmetric polyconvex envelope in the end. The main point of critique of the third approach is that it potentially produces constant parts in the output that can be far from the desired outcome.
4 Applications of SPCNNs
In this section, we present two possible applications of our symmetric polyconvex neural networks for engineering purposes. As a general remark, the SPCNN approach has the advantage, compared to standard numerical methods, that the output is symmetric polyconvex, and thus the associated energy minimizing problem admits a solution (under additional suitable growth conditions).
4.1 Identification of hyperelastic energies for experimental data
Quadratic elastic energies describe a linear stress–strain response, whereas nonlinear elastic behavior requires more flexible constitutive representations. Our SPCNNs enable the formulation of such nonlinear material models through a statistical approach. We assume that only a limited number of experimental stress-strain pairs are available for a given material. Generalizing from this sparse training set to make predictions outside the training set poses a classical regression problem, which we address using SPCNNs. Moreover, our SPCNNs produce a global closed analytical formula, which is different from a piecewise interpolation.
We note that the universal approximation theorem 3.11 extends to simultaneous approximation of -energies and stresses on compact subsets by means of the following lemma.
Lemma 4.1. Let be open, let , and let be convex along every rank-one direction , . If
then
In particular, this applies to smooth symmetric polyconvex functions.
Proof. We adapt the difference-quotient argument in the proof of [57, Thm 25.7]. For this, convexity is only needed along the direction being tested, and finitely many span .
We will take synthetic data here by sampling n stress-strain pairs from a hyperelastic energy density consisting of a classical quadratic elastic and a quartic hardening term:
Applications of SPCNNs
Since in applications we do not have F at hand, but rather its gradient, the stress, our training set consists of strain-stress pairs
where
Next, we need to minimize the distance between the derivative of (the measured stresses) and the derivative of the SPCNN. The gradient of our SPCNN
can efficiently be calculated using backpropagation. Now, it remains to solve the Sobolev regression problem. As a cost function, we take the squared error
The loss function for our problem is then the mean squared error
We choose the analogous loss function for the 2d and the isotropic cases. We will always use the SPCNN architecture with pairwise LogSumExp -activation (with ), except for the last layer which has a linear output. Note that the result of Sobolev training is not unique, therefore we employ an additional normalization .
4.2 SPCNN for computing symmetric polyconvexification
After explaining how our SPCNNs can be used to represent experimental data in an energetic framework, it is now in order to demonstrate how our SPCNNs can be used to approximate the symmetric polyconvex envelope
of a given function , which may be derived from microscopic considerations. To approximate with an SPCNN, we first need to choose an appropriate loss function, such that the resulting symmetric polyconvex output lies as close to as possible (regression problem) while simultaneously penalizing violations of the upper bound assumption. To achieve this, we proceed along the lines of [28, Sec. 5.3]. To make stochastic gradient descent possible, we choose a loss function that is an average over the individual costs per training datum. For the regression part, there are multiple reasonable cost functions, such as the absolute value of the difference, the square of the difference, and so on. Crucially, we remark that it is not the purpose of the envelope to solve the regression problem exactly. More precisely, the difference between the function and its envelope can be very large in the -norm. This means that taking the squared distance gives greater weight to large deviations and may therefore require a different balance between the fitting and penalty terms, hence we opt for the absolute value in this paper. For the penalization, we naturally choose ReLU of the difference of network output and given function F. To summarize, our cost function is
where is an a priori chosen hyperparameter. Our training set is a sample of the graph of , meaning, we take distinct tensors , , and the training set is
The loss function for our problem is then
We choose the analogous loss function for the 2d and the isotropic cases.
The example we consider is a classical double-well potential. We assume that our material exhibits two phases, each of which admits the elastic energy
We will use the SPCNN architecture with pairwise LogSumExp -activation (with ), except for the last layer which has a linear output. For the isotropic case, we will set the last pass-through layer to zero.
5 Numerical results
Regarding the general training procedure, the most fundamental gradient-based approach for solving the weight optimization problem is projected subgradient descent, alongside variants that incorporate a momentum term.
All models are implemented in Python using the PyTorch framework, making use of the Adam optimizer [43].
5.1 Sobolev training
We consider a two-dimensional isotropic example with , ,
Then
We use an equi-distant -grid in . Our network architecture has three hidden layers of width (before activation) 12, 18, 6 respectively. We train, using the PyTorch Adam implementation, for 1000 epochs with a learning rate of 0.005. The training lasts for roughly 2 seconds on a standard laptop. The SPCNN accurately captures the complex quartic growth in the deviatoric direction. While the approximation of the quadratic trace growth appears less precise at first glance, this is a direct consequence of the orders-of-magnitude difference in scale between the two directions in this benchmark. Accounting for these scale disparities, the overall approximation is robust.
Learned SPCNN Surface (zero-aligned at Origin)

Figure 2: SPCNN output surface
Deviatoric Cross-Section Comparison

Figure 3: SPCNN output on the deviatoric line
While fidelity can be systematically improved by scaling the network capacity, providing more training data, or tuning hyperparameters, our baseline configuration shows that even a small amount of training yields effective and practically useful results.
Diagonal Cross-Section Comparison

Figure 4: SPCNN output on the diagonal line
5.2 Relaxation of a double-well type problem
The example we consider here is an isotropic two-dimensional double-well potential, where we deliberately chose the normalized model parameters to differ greatly in order to produce substantial differences between the energy and its symmetric polyconvex and convex envelopes. We choose
For this type of function, the symmetric polyconvex envelope is known explicitly (see [21]). It differs the most from the convex envelope along (the trace/hydrostatic line). Along this line, the envelope reads for
For the training, we use a grid that is not linear but biased towards the regions where the desired function, , coincides with (small values of ), and with (large values of ) respectively. We do this by first creating a set of 100 equi-distant points in , then raise every such point to the power of 5, do this for the - and -direction, and then form the Cartesian product to get an adapted mesh of 10,000 points on . Our penalization parameter is set to .
Symmetric Polyconvex Envelope along the Diagonal

Figure 5: SPCNN envelope along the diagonal
Our network architecture has four hidden layers of width (before activation) 12, 18, 12, 6. The training lasts for 1500 epochs with a constant batch size of 256, employing the PyTorch Adam optimizer. We employ a piecewise learning rate schedule, updating the rate every 300 epochs as follows:
-
300 epochs with a learning rate of 0.005,
-
300 epochs with a learning rate of 0.001,
-
300 epochs with a learning rate of 0.0005,
-
300 epochs with a learning rate of 0.0001,
-
300 epochs with a learning rate of 0.00001.
All numerical experiments were conducted on a standard laptop and required approximately three minutes of compute time.
We see from our result that the approximation for smaller strains is highly accurate. The relative error is within a 5% margin on the whole interval considered (apart from a small vicinity of the origin caused by a vanishing denominator), and our SPCNN output is a significantly better approximation than the convex envelope.
At larger strains, the accuracy of the approximation starts to deteriorate. This discrepancy arises because the neural network is trained on a bounded domain, whereas the analytical method considers the entire unbounded mathematical domain (in general ). Consequently, the network's predictions are tied to its training limits, while the analytical envelope remains completely domain-independent.

Figure 6: SPCNN envelope
However, this is not a particular issue of our neural network approach, but a general problem of numerically determining polyconvex envelopes.
Finally, the second condition of lying below is satisfied up to a relative error of less than for . Outside of this interval, the obstacle constraint is satisfied.

Figure 7: Left: total view of the envelope line; Right: relative error
Acknowledgements
This work has been funded by the Deutsche Forschungsgemeinschaft (DFG). We gratefully acknowledge the support within the project SPP 2256 (“Variational Methods for Predicting Complex Phenomena in Engineering Structures and Materials”).
References
[1] B. Amos, L. Xu, and J. Z. Kolter. "Input Convex Neural Networks". In: Proceedings of the 34th International Conference on Machine Learning. Vol. 70. Proceedings of Machine Learning Research. PMLR, Aug. 2017, pp. 146–155.
[2] C. Anil, J. Lucas, and R. Grosse. "Sorting out Lipschitz function approximation". In: International conference on machine learning. PMLR. 2019, pp. 291–301.
[3] M. A. Antimonov, A. Cherkaev, and A. B. Freidin. "Phase transformations surfaces and exact energy lower bounds". In: International Journal of Engineering Science 98 (2016), pp. 153–182.
[4] F. As'ad, P. Avery, and C. Farhat. "A mechanics-informed artificial neural network approach in data-driven constitutive modeling". In: International Journal for Numerical Methods in Engineering 123.12 (2022), pp. 2738–2759.
[5] J. M. Ball. “Convexity conditions and existence theorems in nonlinear elasticity”. In: Archive for Rational Mechanics and Analysis 63 (1976), pp. 337–403.
[6] A. C. Barroso, I. Fonseca, and R. Toader. “A relaxation theorem in the space of functions of bounded deformation”. In: Annali della Scuola Normale Superiore di Pisa-Classe di Scienze 29.1 (2000), pp. 19–49.
[7] T. Bartel, M. Harnisch, B. Schweizer, and A. Menzel. “A data-driven approach for plasticity using history surrogates: Theory and application in the context of truss structures”. In: Computer Methods in Applied Mechanics and Engineering 414 (2023), p. 116138.
[8] S. Bartels. “Reliable and efficient approximation of polyconvex envelopes”. In: SIAM Journal on Numerical Analysis 43.1 (2005), pp. 363–385.
[9] B. Benešová and M. Kružik. “Weak lower semicontinuity of integral functionals and applications”. In: SIAM Review 59.4 (2017), pp. 703–766.
[10] O. Boussaid, C. Kreisbeck, and A. Schlömerkemper. “Characterizations of Symmetric Polyconvexity”. In: Archive for Rational Mechanics and Analysis 234 (2019), pp. 417–451.
[11] R. C. Buck. "Partition of Space". In: American Mathematical Monthly 50 (1943), pp. 541–544.
[12] P. Chen and J. Guilleminot. “Polyconvex neural networks for hyperelastic constitutive models: A rectification approach”. In: Mechanics Research Communications 125, 103993 (2022).
[13] Y. Chen, Y. Shi, and B. Zhang. “Optimal Control Via Neural Networks: A Convex Approach”. In: International Conference on Learning Representations. New Orleans, May 2019.
[14] I. V. Chenchiah and K. Bhattacharya. “The relaxation of two-well energies with possibly unequal moduli”. In: Archive for rational mechanics and analysis 187.3 (2008), pp. 409–479.
[15] A. Chernodub and D. Nowicki. Norm-preserving Orthogonal Permutation Linear Unit Activation Functions (OPLU). 2017. arXiv: 1604.02313 [cs.NE]. URL: https://arxiv.org/abs/1604.02313.
[16] P. G. Ciarlet. Mathematical Elasticity Volume I: Three-Dimensional Elasticity. Studies in Mathematics and its Applications Volume 20. Elsevier Science Publishers B.V., 1988.
[17] M. G. Cox. “An algorithm for approximating convex functions by means by first degree splines”. In: The Computer Journal 14.3 (1971), pp. 272–275.
[18] G. Cybenko. “Approximation by superpositions of a sigmoidal function”. In: Mathematics of Control, Signals and Systems 2 (1989), pp. 303–314.
[19] B. Dacorogna. Direct Methods in the Calculus of Variations. 2nd ed. Vol. 78. Applied Mathematical Sciences. Springer Science Business Media, 2008.
[20] H. Daniels and M. Velikova. “Monotone and partially monotone neural networks”. In: IEEE transactions on neural networks 21.6 (2010), pp. 906–917.
[21] G. Dolzmann and F. Gammer. “On symmetric polyconvexification and its application towards a double-well problem in 2d”. In preparation. 2026.
[22] F. Ebobisse. “On lower semicontinuity of integral functionals in LD(U)”. In: Ricerche di Matematica 49.1 (2000), pp. 65–76.
[23] R. Fechte-Heinen and A. Schlömerkemper. “About lamination upper and convexification lower bounds on the free energy of monoclinic shape memory alloys in the context of -configurations and R-phase formation”. In: Continuum Mechanics and Thermodynamics 28.6 (2016), pp. 1601–1621.
[24] I. Fonseca and S. Müller. “A-Quasiconvexity, Lower Semicontinuity, and Young Measures”. In: SIAM journal on mathematical analysis 30.6 (1999), pp. 1355–1390.
[25] J. N. Fuhg, N. Bouklas, and R. E. Jones. “Learning hyperelastic anisotropy from data via a tensor basis neural network”. In: Journal of the Mechanics and Physics of Solids 168 (2022), p. 105022.
[26] F. Gammer and C. Kreisbeck. “Representations of symmetric polyconvex envelopes in 3d via convex duality”. In preparation. 2026.
[27] M. M. Gavrilović. “Optimal approximation of convex curves by functions which are piecewise linear”. In: Journal of Mathematical Analysis and Applications 52.2 (1975), pp. 260–282.
[28] G.-L. Geuken, P. Kurzeja, D. Wiedemann, and J. Mosler. “A novel neural network for isotropic polyconvex hyperelasticity satisfying the universal approximation theorem”. In: Journal of the Mechanics and Physics of Solids 203 (2025), p. 106209.
[29] I. Goodfellow, D. Warde-Farley, M. Mirza, A. Courville, and Y. Bengio. "Maxout networks". In: International conference on machine learning. PMLR. 2013, pp. 1319–1327.
[30] S. Govindjee, A. Mielke, and G. J. Hall. “The free energy of mixing for n-variant martensitic phase transformations using quasi-convex analysis”. In: Journal of the Mechanics and Physics of Solids 51.4 (2003), pp. I–XXVI.
[31] Y. Grabovsky. “Bounds and extremal microstructures for two-component composites: A unified treatment based on the translation method”. In: Proceedings of the Royal Society of London. Series A: Mathematical, Physical and Engineering Sciences 452.1947 (1996), pp. 919–944.
[32] Y. Grabovsky and R. V. Kohn. “Microstructures minimizing the energy of a two phase elastic composite in two space dimensions. II: the Vigdergauz microstructure”. In: Journal of the Mechanics and Physics of Solids 43.6 (1995), pp. 949–972.
[33] Y. Grabovsky and L. Truskinovsky. “Explicit relaxation of a two-well Hadamard energy”. In: Journal of Elasticity 135.1 (2019), pp. 351–373.
[34] Y. Grabovsky and L. Truskinovsky. “When rank-one convexity meets polyconvexity: an algebraic approach to elastic binodal”. In: Journal of Nonlinear Science 29.1 (2019), pp. 229–253.
[35] A. Guerra and J. Kristensen. “Automatic Quasiconvexity of Homogeneous Isotropic Rank-One Convex Integrands”. In: Arch Rational Mech Anal 245 (2022), pp. 479–500.
[36] B. Hanin. “Universal function approximation by deep neural nets with bounded width and ReLU activations”. In: Mathematics 7.10, 992 (2019).
[37] K. Hornik. “Approximation capabilities of multilayer feedforward networks”. In: Neural networks 4.2 (1991), pp. 251–257.
[38] K. Hornik, M. Stinchcombe, and H. White. “Multilayer feedforward networks are universal approximators”. In: Neural Networks 2.5 (1989), pp. 359–366.
[39] C.-W. Huang, R. T. Q. Chen, C. Tsirigotis, and A. Courville. “Convex Potential Flows: Universal Probability Distributions with Optimal Transport and Convex Optimization”. In: International Conference on Learning Representations. 2021.
[40] A. Jentzen, B. Kuckuck, and P. von Wurstemberger. Mathematical Introduction to Deep Learning: Methods, Implementations, and Theory. 2025. URL: https://arxiv.org/abs/2310.20360.
[41] K. A. Kalina, L. Linden, J. Brummund, P. Metsch, and M. Kästner. “Automated constitutive modeling of isotropic hyperelasticity based on artificial neural networks”. In: Computational Mechanics 69.1 (2022), pp. 213–232.
[42] G. E. Karniadakis, I. G. Kevrekidis, L. Lu, P. Perdikaris, S. Wang, and L. Yang. "Physics-informed machine learning". In: Nature Reviews Physics 3.6 (2021), pp. 422–440.
[43] D. P. Kingma and J. Ba. "Adam: A Method for Stochastic Optimization". In: International Conference on Learning Representations (ICLR). 2015. URL: https://arxiv.org/abs/1412.6980.
[44] T. Kirchdoerfer and M. Ortiz. "Data-driven computational mechanics". In: Computer Methods in Applied Mechanics and Engineering 304 (2016), pp. 81–101.
[45] D. K. Klein, M. Fernández, R. J. Martin, P. Neff, and O. Weeger. "Polyconvex anisotropic hyperelasticity with neural networks". In: Journal of the Mechanics and Physics of Solids 159 (2022), p. 104703.
[46] R. V. Kohn. “The relaxation of a double-well energy”. In: Continuum Mech. Thermodyn 3 (1991), pp. 193–236.
[47] R. V. Kohn and G. Strang. "Optimal design and relaxation of variational problems, II". In: Communications on Pure and Applied Mathematics 39.2 (1986), pp. 139–182.
[48] L. Linden, D. K. Klein, K. A. Kalina, J. Brummund, O. Weeger, and M. Kästner. "Neural networks meet hyperelasticity: A guide to enforcing physics". In: Journal of the Mechanics and Physics of Solids 179 (2023), p. 105363.
[49] A. Magnani and S. P. Boyd. "Convex piecewise-linear fitting". In: Optimization and Engineering 10.1 (2009), pp. 1–17.
[50] R. J. Martin, I.-D. Ghiba, and P. Neff. "Rank-one convexity implies polyconvexity for isotropic, objective and isochoric elastic energies in the two-dimensional case". In: Proceedings of the Royal Society of Edinburgh Section A: Mathematics 147.3 (2017), pp. 571–597.
[51] I. Merabet and O. Boussaid. “Characterization of symmetric polyconvexity in higher dimensions”. In: Calculus of Variations and Partial Differential Equations 64, 15 (2025).
[52] C. B. Morrey Jr. "Quasi-convexity and the lower semicontinuity of multiple integrals." In: Pacific Journal of Mathematics 2.1 (1952), pp. 25–53.
[53] T. Neumeier, M. A. Peter, D. Peterseim, and D. Wiedemann. “Computational polyconvexification of isotropic functions”. In: Multiscale Modeling & Simulation 22.4 (2024), pp. 1402–1420.
[54] T. Neumeier and J. Salmon. “Compression of polyconvex envelopes of isotropic functions via monotonic input convex neural networks”. In: PAMM 26.4 (2026), e70184.
[55] M. Peigney. “On the energy-minimizing strains in martensitic microstructures—Part 2: Geometrically linear theory”. In: Journal of the Mechanics and Physics of Solids 61.6 (2013), pp. 1511–1530.
[56] F. Rindler. “Lower semicontinuity for integral functionals in the space of functions of bounded deformation via rigidity and Young measures”. In: Archive for rational mechanics and analysis 202.1 (2011), pp. 63–113.
[57] R. T. Rockafellar. Convex Analysis. Princeton Landmarks in Mathematics and Physics. Princeton University Press, 1997.
[58] G. E. Stavroulakis, A. D. Mouratidou, and G. A. Drosopoulos. "Physics-Informed Neural Networks". In: Encyclopedia of Optimization. Springer, 2025, pp. 1–9.
[59] U. Tanielian and G. Biau. “Approximating Lipschitz continuous functions with Group-Sort neural networks”. In: International Conference on Artificial Intelligence and Statistics. PMLR. 2021, pp. 442–450.
[60] A. B. Tepole, A. A. Jadoon, M. Rausch, and J. N. Fuhg. "Polyconvex physics-augmented neural network constitutive models in principal stretches". In: International Journal of Solids and Structures 320 (2025), p. 113469.
[61] S. Wang. “General constructive representations for continuous piecewise-linear functions”. In: IEEE Transactions on Circuits and Systems I: Regular Papers 51.9 (2004), pp. 1889–1896.
[62] A. Wehenkel and G. Louppe. “Unconstrained monotonic neural networks”. In: Advances in neural information processing systems 32 (2019).
[63] D. Wiedemann and M. A. Peter. “Characterization of polyconvex isotropic functions”. In: Calculus of Variations and Partial Differential Equations 65.4 (2026), p. 115.
[64] K. Zhang. “On equality of relaxations for linear elastic strains”. In: Communications on Pure and Applied Analysis 1.4 (2002), pp. 565–573.