41 min read6 sectionsAIThis post was written by AI.阅读中文版
Abstract.The cone has no Hessian at its vertex. In the Alexandrov sense it solves the Monge–Ampère equation with a point mass on the right-hand side; in the viscosity sense it solves the equation for no continuous right-hand side at all. This post derives the point mass from a smooth approximation and reports a small A100 experiment on what a pointwise-residual PINN makes of it.
The previous post asked why solutions of the Monge–Ampère equation
are sought among convex functions. All solutions there were smooth, so could be evaluated point by point. This post looks at the simplest convex function that is not smooth, the cone
Away from the origin is smooth, its graph is a straight line in the radial direction, and . At the origin is not differentiable and does not exist. On the one hand, the cone satisfies everywhere except at one point, and so does every constant function. On the other hand, the cone clearly bends at its vertex while a constant does not bend at all. So what should be at the origin? The answer depends on which notion of solution we use. The Monge–Ampère equation has two classical notions of weak solution, Alexandrov solutions and viscosity solutions [1, 2], and for the cone they give different answers.
The rest of this post is organized as follows. Section 2 introduces the subgradient and the Monge–Ampère measure and proves that the Monge–Ampère measure of the cone is , so the cone is an Alexandrov solution of . Section 3 approximates the cone by smooth convex functions and shows how this point mass arises as the limit of measures with densities. Section 4 introduces viscosity solutions and shows that the cone is not a viscosity solution of for any continuous . Section 5 turns to neural network solvers: the residual loss of a PINN checks the equation only at collocation points, and we test what it does with the point mass.
2 Subgradient and Monge–Ampère measure
2.1 Subgradient
The cone has no tangent plane at the origin, but it has many planes that stay below its graph. The subgradient collects their slopes.
Definition 2.1 (Subgradient). Let be open and convex, convex, and . The subgradient of at is the set
For we write .
This is the definition of [2, Definition 1.1.1] and [1, §A.4.1]. If is differentiable at , then [1, Lemma A.20], so the subgradient generalizes the gradient: it is a single point where is differentiable and a larger set at a kink.
For the cone, for , a single point on the unit circle. At the origin the condition reads for all . If , this follows from the Cauchy–Schwarz inequality, . If , the choice gives , a contradiction. Hence
the closed unit disk, of area . Figure 1 shows both cases.
Figure 1. (a) The section of the cone along the line (thick black line). A supporting plane with restricts to on this line and stays below the graph (thin grey solid lines); the line with slope cuts through it (orange dashed line). (b) Slope space. The subgradient at the vertex is the closed unit disk (grey fill), of area ; the gradients at all other points lie on the unit circle (thick black line), of area .
2.2 Monge–Ampère measure
For a smooth convex function, is the area scaling factor of the gradient map : if is convex, then
where is Lebesgue measure [2, Example 1.1.14]. The left-hand side uses only the area of the image of the gradient map, not second derivatives. Alexandrov's idea is to replace the gradient by the subgradient, so that the left-hand side makes sense for every convex function.
Definition 2.2 (Monge–Ampère measure and Alexandrov solution). Let be open and convex and convex. For Borel sets define
is a nonnegative, locally finite Borel measure on , the Monge–Ampère measure of [1, Definition 2.1, Theorem 2.3]. Given a nonnegative, locally finite Borel measure on , is an Alexandrov solution of if [1, Definition 2.5]. If with and , we also call an Alexandrov solution of .
By the area formula above, has density when is smooth. The point of Definition 2.2 is that the right-hand side may be a general measure, point masses included.
Proposition 2.3 (Monge–Ampère measure of the cone). Let on . Then , that is, the cone is an Alexandrov solution of .
Proof. Let be a Borel set. If , the subgradient at every point of is a single point on the unit circle, so lies in the unit circle, has area , and . If , then contains the closed unit disk and is contained in the union of the disk and the circle, which is the closed disk itself; so . Together, .∎
More generally, in dimensions has [1, Example 2.2]. Proposition 2.3 says that all the bending of the cone sits at the vertex and has total amount . Pointwise this amount is invisible: away from the origin, and the origin has zero area.
The point mass also pins down the boundary value problem. On the unit disk , the function is convex, vanishes on , and has Monge–Ampère measure . By existence and uniqueness for the Dirichlet problem [1, Theorem 2.13, Corollary 2.11], it is the only convex function on with and zero boundary values. In the same way, is the only convex function with and zero boundary values. If we only ask for " at every point but one", however, every convex function with qualifies, all with zero boundary values. So "the equation holds almost everywhere" is not a usable notion of solution: it does not determine the solution. Since in two dimensions [1, Lemma 2.9], these functions have Monge–Ampère measures , and the Alexandrov definition tells them apart.
3 Smooth approximation: where the point mass comes from
On take
is and , so converges uniformly to the cone as . With , a direct computation gives , and , hence
Since and , we have and is convex. In polar coordinates the mass in the disk is
Letting , the total mass over the plane is for every ; with , the mass over the unit disk is . With we get : half of the mass lies in a disk of radius , whose area is a fraction of the unit disk. Besides, the peak value blows up as . Figure 2 shows the radial profile of and the cumulative mass.
Figure 2. (a) along a ray. Black lines: formula , solid for , dashed for and dotted for , in both panels. Grey dots: values computed by automatic differentiation (torch.func.hessian) on the remote server. (b) Cumulative mass ; the open diamonds on the grey dotted line at mark half of the mass at .
So the mass stays fixed and concentrates at the origin. The precise statement is weak convergence of measures. For a continuous function with compact support, the substitution gives
where the limit follows from dominated convergence with the dominating function . Hence converges weakly to . This agrees with the stability of Alexandrov solutions.
Proposition 3.1 (Stability of the Monge–Ampère measure). ([1, Proposition 2.6]) Let convex functions converge locally uniformly on an open set to a convex function . Then converges weakly to , that is, for every .
With Propositions 2.3 and 3.1, the limit is known without the computation above. Weak convergence is not convergence on every set, though: because has a density and a point has zero area, while . This is where numerical methods have to be careful. The Hessian determinant of an approximate solution is finite at every point, and its mass can still concentrate in a smaller and smaller region.
4 Viscosity solutions: touching with smooth functions
The second notion of weak solution comes from the general theory of fully nonlinear equations [3]. Since has no second derivatives, we touch from above or from below by a smooth test function and check the equation on the test function instead.
Definition 4.1 (Viscosity solution). ([2, Definition 1.3.1]) Let be convex and , . is a viscosity subsolution of if, whenever a convex and are such that has a local maximum at , we have . It is a viscosity supersolution if, whenever has a local minimum at , we have . A viscosity solution is both.
All second derivatives in the definition fall on , so it makes sense for nondifferentiable . A smooth convex solution satisfies both conditions: if touches from above at , then , and since the determinant is monotone on positive semidefinite matrices, ; touching from below is the same. Viscosity solutions are defined by these two necessary conditions. It also compares with , so must have a value at every point; this is why is continuous. A point mass is not a function, so "viscosity solution of " has no meaning.
Proposition 4.2 (The cone is not a viscosity solution). Let on .
For every with , is not a viscosity supersolution of .
If for some , then is not a viscosity subsolution of . In particular, is neither a viscosity subsolution nor a viscosity supersolution of .
Proof. (1) For , the convex function satisfies for , so has a local minimum at the origin. But , which exceeds for large, and the supersolution condition fails.
(2) Let , , and let be a unit vector orthogonal to . Near , is smooth with and . For let
is a convex quadratic with , and , so has a local maximum at . But , which is below for small, and the subsolution condition fails.∎
Part (1) says that the viscosity definition does see the bending at the vertex: test functions touching the cone from below can bend as much as they like, their Hessian determinants have no upper bound, and no finite value is enough. Conversely, the cone is a viscosity subsolution of . At every convex test function has . At the origin no function touches the cone from above: if had a local maximum at , then for every unit vector and small , and would give both and . So for the cone passes the subsolution test and fails the supersolution test: it bends too much.
5 What a PINN sees
A PINN represents the solution by a network and minimizes, over interior collocation points and boundary points ,
The loss uses only through its values at the collocation points, so it tests the equation in the pointwise sense discussed at the end of Section 2. For the right-hand side this loss cannot be written down directly, since has no value at the origin. If we use its value away from the origin, then, because with probability one no collocation point is the origin, the in the loss is . What can be written down is the smoothed problem
with from . Its unique convex solution is , and is a concave solution. As , converges weakly to and converges uniformly to . The question is whether the pointwise residual still sees this mass as shrinks. All computations ran on a remote server; code and raw results are at [TODO: repository link].
5.1 How much mass the collocation points see
Before training anything, we look at the collocation points alone. We draw uniform points in the unit disk and estimate the total mass by . This Monte Carlo estimate is unbiased, but its variance is governed by , which blows up as . About half of the mass lies in , the expected number of points in is only , and the probability that no point lands there is . Table 1 reports statistics over random seeds.
Table 1. Monte Carlo estimates of the total mass from uniform collocation points, random seeds per row. Column 4 is measured, column 5 is the exact probability.
fraction with no point in
median estimate
10% and 90% quantiles
exact
,
,
,
,
,
,
,
,
,
For and , of the point sets have no point in , and the median estimate is , less than a third of the exact value. At the same time, of the point sets give estimates above , because a single point near the origin contributes a value of order . The mean over the seeds is , as unbiasedness requires, but a single draw is almost always far off. So the pointwise residual does not miss the point mass on average. Most point sets miss it completely, and the few that catch it see one or two huge values. Training uses one such point set.
5.2 Training setup
The network is the same as in the previous post: an MLP with tanh activations in float64. The interior points are drawn once before training and kept fixed. Sampling is the same as in Table 1, with seeds to , so a given seed uses the same point set for every . We take equispaced boundary points and , and train with full-batch Adam, learning rate , for steps. Hessians are computed exactly with torch.func.hessian. We use and, in addition, , which is what a pointwise residual makes of . All settings (including the trace-penalty runs below) ran in parallel on one A100, at to seconds per seed.
After training we test on fresh random points (seed ) and on points of the line , the origin included. Because of the branch issue from the previous post, the network may land near the convex solution or the concave one , so we report the error
For the vanilla PINN, in every setting with , seeds ended closer to the convex solution and closer to the concave one. We also compute the mass captured by the network, , by polar quadrature: in the radius is split at with Gauss–Legendre nodes per piece, and the angle uses equispaced nodes. We compare it with . This quantity does not depend on the branch, since in two dimensions.
5.3 Results
Table 2. Vanilla PINN (no trace penalty), seeds per row. Final loss: median. Captured mass and error: median, with minimum and maximum in brackets. For the error is measured against the cone and its negative.
seeds with a point in
final loss
captured mass
exact mass
error
(: )
(: )
(: )
Figure 3. Mass captured by the network, , divided by the exact mass (black line at ). One marker per run, seeds for each pair , with a small random horizontal offset for readability. Circles: ; squares: ; triangles: . Filled markers: the seed's point set has at least one point in ; open markers: none. (a) Vanilla PINN (green). (b) With the trace penalty of the previous post (blue).
Figure 4. of the vanilla PINN for . Each thin green line is one of seeds; the green triangles mark their median. Results closer to the concave solution are multiplied by . (a) . (b) . The black solid line in (a) and (b) is the exact convex solution . (c) ; the black dotted line is , the unique convex solution for the right-hand side .
Table 2 and Figures 3 and 4 show the results. We observe three things.
First, for all runs over the three values of give (at most for the trace-penalty runs), with final loss at most , while lies between and . The network finds , the Alexandrov solution with and zero boundary values, and not the cone, which is the solution for the right-hand side . Judged by the loss alone, every one of these runs is a success.
Second, for and , only the point set of seed has a point in . The other seeds end with losses between and , the same order as for and ( to ), but they capture a mass of only to , and their errors lie between and . The seed with the smallest loss, seed (), captures the least mass () and has the largest error (). Seed , the only one with a point in , fails in a different way, with loss and error . In this setting the size of the loss says little about the quality of the solution.
Third, more collocation points help, but only up to a point. For , going from to raises the number of seeds with a point in from to , the median captured mass from to , and lowers the median error from to . At the same time the median loss grows from to : is very large at the few points inside , the network cannot fit them, and training becomes erratic. Some seeds even capture a negative mass, which means on part of the disk and is neither convex nor concave there. Besides, for and every seed has to points in , yet the captured mass is only to of the exact value ( to ) and the loss stays between and . So sampling is not the only cause: this small network, trained for steps, cannot fit a peak of width and height . We did not try larger networks, longer training or adaptive sampling, so we cannot say how much this second cause contributes.
With the trace penalty the conclusions are the same (Figure 3 (b)). For it suppresses the concave branch but does not secure the convex solution: seeds for each (seeds , , and , exactly those that reach the concave solution without the penalty) stop at a loss above , capturing a mass of only to , with between and , far from both (convex) and (concave).
6 Summary
The two notions of weak solution ask different things of the right-hand side. The following theorem says when they agree.
Theorem 6.1 (Alexandrov and viscosity solutions). Let be open and convex and convex.
([2, Proposition 1.3.4]) Let , . If is an Alexandrov solution of , then is a viscosity solution of .
([2, Proposition 1.7.1]) Let with on . If is a viscosity solution of in , then is an Alexandrov solution of in .
The two directions need different hypotheses: (1) only needs continuous, while (2) also needs positive up to the boundary. Both need a continuous right-hand side, so that is absolutely continuous with respect to Lebesgue measure. The cone fails on both sides. gives positive mass to the null set , so it is not of the form for any and the theorem does not apply; and by Proposition 4.2 the cone is not a viscosity solution for any continuous right-hand side. Table 3 puts the three answers side by side.
Table 3. One function, three answers.
notion of solution
meaning of the equation
the cone
pointwise (a.e.)
for almost every
satisfies ; so do , , and constants, so the solution is not unique
Alexandrov
for every Borel set
solves ; unique on once the boundary values are given
viscosity
convex test functions satisfy an inequality at touching points, continuous
solves the equation for no continuous ; a subsolution but not a supersolution of
The residual loss of a PINN tests the first row of Table 3, and the experiment shows what follows from that. With the network converged to in all runs, with a tiny loss and a distance of about from the cone. With the smoothed right-hand side at and , most uniform point sets have no point in and so miss about half of the mass, and a smaller loss can even mean a worse solution. The experiment used one small network, fixed uniform collocation points and Adam steps, and it does not separate the effect of sampling from that of the network's capacity. For right-hand sides with a point mass, or close to one, a natural direction is a loss that compares measures directly, for example the area of the image of the gradient map as in the Alexandrov definition, or collocation points refined near the origin. We will come back to this in a later post.
References
Figalli, Alessio, The Monge–Ampère Equation and Its Applications, Zurich Lectures in Advanced Mathematics, European Mathematical Society, Zürich, 2017.
Gutiérrez, Cristian E., The Monge–Ampère Equation, 2nd ed., vol. 89, Progress in Nonlinear Differential Equations and Their Applications, Birkhäuser, Cham, 2016.
Crandall, Michael G., Ishii, Hitoshi, and Lions, Pierre-Louis, User’s guide to viscosity solutions of second order partial differential equations, Bulletin of the American Mathematical Society 27 no. 1 (1992) 1–67.