A Machine Learning Approach to the Nirenberg Problem

Gianfranco Cortés, Maria Esteban-Casadevall, Yueqing Feng, Jonas Henkel, Edward Hirst, Tancredi Schettini Gherardini, Alexander G. StapletonarXiv 2026

TL;DR

This paper introduces a novel machine learning approach, the Nirenberg Neural Network (NNN), to tackle the challenging Nirenberg problem in differential geometry. By leveraging physics-informed neural networks, the NNN can effectively learn conformal factors that generate desired Gaussian curvatures on a sphere, offering a powerful new tool for exploring geometric analysis and aiding in the resolution of long-standing mathematical questions.

What Problem Does This Paper Address?

The Nirenberg problem, posed by Louis Nirenberg, asks whether for any given smooth function $K$ on the 2-sphere ($S^2$), there exists a Riemannian metric $g$ on $S^2$ that is pointwise conformal to the round metric $g_0$ and has $K$ as its Gaussian curvature. This problem can be reformulated as solving a specific second-order partial differential equation (PDE):

$1 - \Delta_{g_0} u = K e^{2u}$

where $u$ is the conformal factor and $\Delta_{g_0}$ is the Laplace-Beltrami operator with respect to the round metric. This equation is notoriously difficult to solve analytically, especially for general, non-symmetric prescribed curvatures $K$. Traditional methods often struggle with issues of compactness and require sophisticated analytical techniques. While significant progress has been made, the problem remains open for general cases. The authors aim to use machine learning to provide a computational approach to explore this problem, offering insights into solvability and potentially finding approximate solutions where analytical methods are intractable.

Methods

The core of the paper is the Nirenberg Neural Network (NNN), a physics-informed neural network (PINN). Unlike traditional numerical methods that discretize the sphere, the NNN operates directly on 3D Cartesian coordinates of points on the sphere, ensuring a globally well-defined and smooth conformal factor $u$.

Key methodological aspects include:

  • Stereographic Projection: The sphere is covered using two stereographic projection patches to ensure geometric consistency and stable training.
  • Random Fourier Features (RFFs): An optional encoding layer uses RFFs to map input coordinates to a higher-dimensional space, enabling the network to capture high-frequency variations in the conformal factor, which is crucial for oscillatory functions like spherical harmonics.
  • Residual Blocks: The network architecture employs residual blocks with SiLU activations and skip connections, a standard technique for deep networks to facilitate training and avoid vanishing gradients.
  • Physics-Informed Loss Function: The network is trained by minimizing a loss function that includes:
  • Mean Squared Error (MSE): Between the predicted scalar curvature $R_g$ (derived from the network's predicted conformal factor $u$) and the target prescribed curvature $K$.
  • Normalization: The loss is normalized by the integral of the squared prescribed curvature to balance contributions from functions with varying magnitudes and provide scale-invariance.
  • Automatic Differentiation: The Laplace-Beltrami operator is computed exactly using automatic differentiation, avoiding discretization errors common in traditional methods.
  • Spherical Harmonic Expansion Fitting: To interpret the learned models, the authors fit a truncated spherical harmonic expansion to the network's output, providing an interpretable approximation of the conformal factor.

Datasets

The paper does not use pre-existing datasets in the traditional sense. Instead, it generates its own synthetic data for training and validation.

  • Spectral Pairs: Generated using Proposition 2.2, where a conformal factor $u$ is defined as a linear combination of spherical harmonics, and the corresponding curvature $K$ is computed. This allows for controlled evaluation of the network's accuracy on known solvable cases.
  • General Functions: A collection of functions are chosen to probe various geometric and analytic features, including known solvable, known unsolvable, and unknown solvability cases. These are categorized in Tables 3, 4, and 5.

Key Insights and Ideas

  • NNN as a Solvability Indicator: The NNN's training loss, particularly when combined with Gauss-Bonnet theorem validation, serves as a robust empirical indicator of whether a given curvature function is likely to admit a solution. Solvable cases consistently yield significantly lower losses than obstructed ones.
  • Distinguishing Solvable vs. Unsolvable: The network clearly separates known solvable and unsolvable cases, and importantly, it also clusters unknown cases into likely solvable or unsolvable categories based on their attained loss.
  • Interpretability via Spherical Harmonics: Fitting spherical harmonic expansions to the trained NNN models provides interpretable approximations of the conformal factor, offering analytical insights into the learned solutions.
  • Neural Networks as Exploratory Tools: The work highlights the potential of neural networks as valuable exploratory tools in geometric analysis, complementing traditional methods by providing computational evidence and guiding analytical investigations.

Key Results

  • High Accuracy for Known Cases: For realisable prescribers like "prop_a", the NNN achieves near-perfect recovery of the true conformal factor, with MAE comparable to the baseline where $u=0$.
  • Empirical Separation of Solvability: The NNN consistently shows a clear separation in minimum losses between known solvable and unsolvable prescribers, with a difference of several orders of magnitude. This separation is also observed for prescribers with unknown analytical solvability.
  • Gauss-Bonnet Validation: The Gauss-Bonnet error serves as a crucial diagnostic tool, confirming numerical instabilities or failures to satisfy geometric constraints. For known unsolvable cases, the Gauss-Bonnet error is significantly higher than for solvable ones.
  • Interpretable Approximations: For some prescribers, the fitted spherical harmonic expansions provide accurate closed-form approximations of the learned conformal factors, allowing for analytical study. For example, the "prop_a" prescriber's coefficients are reproduced with high precision.

Limitations and Future Work

  • No Proof of Existence/Non-existence: The authors emphasize that while the NNN provides strong numerical evidence, it does not constitute a formal proof of existence or non-existence for the Nirenberg problem.
  • Expressivity Limitations: For highly oscillatory spherical harmonics of higher degrees ($l=5, 7$), the network's expressivity was found to be insufficient, leading to misleadingly large losses. This suggests that larger architectures or more Fourier features might be needed for such cases.
  • Gauge-Fixing for Non-Uniqueness: The paper notes that the Nirenberg problem can have multiple solutions due to the action of the Möbius group. Comparing learned solutions with prescribed targets requires a systematic gauge-fixing procedure, which is left for future work.
  • Future Directions:
    • Investigate analytical interpretations of the empirical loss thresholds.
  • Extend the approach to higher-dimensional prescribed curvature problems, alternative background metrics, and related geometric equations.
  • Incorporate symmetry-aware or equivariant architectures for improved efficiency and interpretability.
  • Integrate understanding of the Conf($S^2$) group into the codebase.
  • Scale up the approach with larger networks, more data, and more Fourier features to potentially achieve performance suitable for computer-assisted proofs.

Summary updated

BibTeX
@misc{cortes2026machine,
  author = {Gianfranco Cortés and Maria Esteban-Casadevall and Yueqing Feng and Jonas Henkel and Edward Hirst and Tancredi Schettini Gherardini and Alexander G. Stapleton},
  title = {{A Machine Learning Approach to the Nirenberg Problem}},
  year = {2026},
  eprint = {2602.12368},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.12368},
}
Figure