Manuscript Offprint
arXiv:2611.03872Learning Almost Complex and Complex Structures
EDWARD HIRST, TANCREDI SCHETTINI GHERARDINI, TOMÁS S. R. SILVA, AND JAKOB STEIN
ABSTRACT. We study the numerical constructions of almost complex and complex structures on spheres and products of spheres up to real dimension six. Our general set-up parametrises almost complex structures via a global matrix field in an ambient Euclidean space, compressed by the tangent projector. The projector's algebraic residual measures the almost complex condition, while its Nijenhuis tensor is evaluated in the intrinsic norm of the round product metric. Polynomial features and neural networks are trained without prescribed targets to perform general searches for these structures. The almost complex search passes numerical admissibility checks on all nine examples that admit such structures and rejects , where a topological obstruction is known. A matrix correction then enforces the almost complex identity, subject to a novel uniform admissibility condition. For integrability, a free polynomial representation with Levenberg–Marquardt optimisation learns the complex structures on , , and , with the largest Nijenhuis norms found by adversarial search all below . These general searches were unsuccessful on , and . Therefore, for these three cases direct numerical reconstructions were built in torus-fibred coordinates. They are integrable by construction, satisfy their compatibility conditions to better than , and corroborate the recent constructions on and .
Code: https://github.com/edhirst/learning-acs-cs
Date: 4th November 2026.
CONTENTS
| 1. Introduction | 2 |
|---|---|
| 1.1. Complex structures on spheres and their products | 2 |
| 1.2. Mathematical formulation | 2 |
| 1.3. Numerical approaches and neural networks | 2 |
| 1.4. Plan of paper | 3 |
| Acknowledgements | 3 |
| Data Availability | 4 |
| AI Usage Statement | 4 |
| 2. Mathematical background | 4 |
| 2.1. Obstructions to the existence of complex structures | 4 |
| 2.2. Examples, controls and recent constructions | 4 |
| 3. Neural and polynomial methods | 5 |
| 3.1. A global ambient representation | 5 |
| 3.2. Intrinsic differentiation and residual norms | 5 |
| 3.3. Sampling and the meaning of numerical validation | 6 |
| 3.4. Learning an almost complex field | 6 |
| 3.5. A conditional correction to the exact algebraic constraint | 7 |
| 3.6. Conjugation and the neural search for integrability | 8 |
| 3.7. Free polynomial fields and second-order optimisation | 8 |
| 4. Learning results | 9 |
| 4.1. Almost complex structures | 10 |
| 4.2. Recovery of classical complex structures | 11 |
| 4.3. A supervised benchmark on the Hopf manifolds | 12 |
| 4.4. The unresolved numerical searches | 14 |
| 5. Reconstruction from geometric input | 15 |
| 5.1. Period coframes and local integrability | 15 |
| 5.2. A spectral reconstruction for and | 16 |
| 5.3. What the validation establishes | 17 |
| 5.4. An explicit period model for | 18 |
| 6. Discussion | 18 |
| Appendix A. The orientation index | 20 |
| Appendix B. Implementation settings and provenance | 20 |
| B.1. Main settings | 20 |
| B.2. Records, checks and limits of reproducibility | 20 |
| References | 21 |
EDWARD HIRST, TANCREDI SCHETTINI GHERARDINI, TOMÁS S. R. SILVA, AND JAKOB STEIN
This work initiates a programme for numerical search of almost complex and complex structures on general manifolds, here with focus on spheres and products of spheres. This numerical programme uses and compares both polynomial and neural network ansatze, testing up to real dimension six (see Table 1); with the intention that the approach extends naturally to higher dimensions and other manifolds.
The sphere products focused on in this work were specifically those with two factors, however at the time of finishing the numerical work the existence of a complex structure on was unknown, and hence added to the list. This was the final remaining open candidate in dimension up to six for all products of spheres. During our numerical investigation, we also studied an explicit period model for a complex structure on , detailed in Section 5.4; a complex structure on this manifold has since been constructed in [8], giving an affirmative answer to this genus-one case of Calabi's problem. Future work will include a detailed derivation and a computer-assisted verification of a complex structure on this manifold.
1.2. Mathematical formulation. Our primary strategy in our direct search is to view a complex structure on a smooth manifold as a tensor that satisfies , i.e. is an almost complex structure (ACS), such that the associated Nijenhuis tensor vanishes, cf. §2 equation (2.1). By fixing an embedding of into some suitable -dimensional Euclidean space, we can describe any endomorphism using a smooth map from to the space of by matrices. The standard Euclidean norm on matrices then descends to a well-defined pointwise tensor norm on via the projection, and our goal becomes minimising and with respect to these norms.
Remark 1.1. Previous iterations of this project used an atlas of charts to describe the manifolds, as in [9], and -structures to describe the almost complex structures, but this had worse numerical convergence, took longer to run, and had less geometric features baked into the architecture (see [10, 11, 12] for a discussion on these themes). The current approach is both simpler and more easily adaptable to arbitrary manifolds.
Table 1. The manifolds studied in this work. Here is the real dimension and the ambient dimension of the product embedding. ACS and CS record whether the manifold admits an almost complex and a complex structure respectively; marks complex structures claimed in recent preprints.
| Manifold | ACS | CS | Notes | ||
|---|---|---|---|---|---|
| 2 | 3 | yes | yes | Riemann sphere; surface control | |
| 2 | 4 | yes | yes | elliptic curve; surface control | |
| 4 | 5 | no | no | [13]; no ACS; topological obstruction | |
| 4 | 6 | yes | yes | ; integrability control | |
| 4 | 6 | yes | yes | [1]; Hopf surface; integrability control | |
| 6 | 7 | yes | yes* | [4, 5]; recent preprints; difficult ambient search | |
| 6 | 8 | yes | yes | [2, 3]; Calabi–Eckmann; integrability control | |
| 6 | 8 | yes | yes | [1]; Hopf manifold; integrability control | |
| 6 | 8 | yes | yes* | [6, 7]; recent preprints; difficult ambient search | |
| 6 | 9 | yes | yes* | [8]; recent preprint; symmetry and reconstruction |
1.3. Numerical approaches and neural networks. The numerical approach is motivated by recent progress in learning geometric structures from their defining equations. Neural representations have been used to approximate Calabi–Yau metrics [14, 15], Einstein metrics [9, 16, 17], and metrics [18, 19]; including examples where explicit formulae are unavailable. In the physics-informed approach [20], a highly-parametrised function ansatz is iteratively trained to identify and approximate a solution to a PDE by evaluating differential residuals at sampled points. The learning process is deliberately completely
Although this description is not unique, this did not pose a significant problem for our numerical search.
general, the series of initial ansatze include polynomials of increasing order and neural networks where the latter are universal function approximators and hence with enough computational resources should be able to find solutions where they exist with no prescribed structure or a prior knowledge. This offers a flexible way to search for across general manifolds, including in cases where existence is unknown.
The central results set up these ansatze for each considered manifold, such that they take as input the coordinates of a point on the manifold in the coordinate system of the standard embedding ( for each sphere). Training of the parameters in these ansatz involved iterative updating of their values to minimise the almost complex residual in the first stage, then after an explicit correction to the ansatz another stage of training is run to minimise the Nijenhuis residual. Throughout the unsupervised searches no information was provided about literature-known structures; these analytic structures already known in the literature were only used to independently check the differential operators and the expressive power of the ansatz function classes. Where these general learning methods struggled, specifically for these novel delicate six dimensional structures, a more specific ansatz was implemented for the numerical approximation using information about the fibration, monodromy, and functional equations of a geometric construction; where then a spectral solver learnt the compatible period data. Both approaches minimise residual equations, treated as losses in the traditional AI methodology, rather than fit explicit labelled solutions, but the second incorporates substantially more geometric information. We therefore distinguish general searches from geometry-guided reconstructions throughout.
All numerical methods implemented represent globally. If is the orthogonal projector onto the tangent space of the embedded manifold, a matrix-valued function then defines a tangential field , a genuine endomorphism of the tangent bundle and hence a candidate . The projected ambient coordinate vectors form a Parseval frame, allowing the Nijenhuis residual to be evaluated with the intrinsic norm of the round product metric. For the initial almost complex stage, a sequence of increasingly expressive polynomial classes is combined with neural refinement. A uniform algebraic residual below a fixed threshold would guarantee that a matrix-function correction produces an exact almost complex structure like the one used for the start of the integrability learning stage; dense sampling and adversarial maximisation provide numerical tests of this condition.
The resulting searches are recorded in §4. We recover almost complex candidates on all nine admissible manifolds in the ten-case study, and cannot recover one for , which is known not to admit almost complex structures, see Table 2. For integrability, we refer to Table 3, where direct polynomial optimisation with Levenberg-Marquardt reaches an estimated maximum Nijenhuis norm of order on , , and . These results are on-par with the outcomes for the two-dimensional examples where, as explained in §2, their 's are automatically integrable once the almost complex condition is satisfied. Neural conjugation provides another way to preserve that condition, but converges less accurately within the recorded budgets; highlighting the benefit of a complementary choice of representation.
The direct searches on , , and do not reach the integrability tolerance: their best mean Nijenhuis norms are (), () and (), with adversarial maxima between 0.5 and 80, far above the threshold. A recurring feature in these learning runs is that the mean residual can decrease while substantial local defects persist. This behaviour is examined alongside the successful reconstructions on the supplied fibration models.
1.4. Plan of paper. We provide a short review of the mathematical preliminaries in §2, covering almost complex structures and integrability, and a brief description of the complex manifold benchmarks included in our search. §3 develops the numerical formulation of our programme, and §4 presents the outcome of the direct searches. §5 studies the reconstructions of the six-dimensional examples from a geometric input. We conclude the main part of the paper in §6 with analysis of the opportunities and limitations of the numerical evidence, with the implications for future searches.
We also include two appendices for supplementary material. Appendix A takes care of implementing an orientation invariant in the searches in §4, and Appendix B records principal settings for these numerical searches.
Acknowledgements. EH is supported by São Paulo Research Foundation (FAPESP) grant 2024/18994-7. TSG is supported by the 2024 Max Planck-Humboldt Research Award, bestowed on Geordie Williamson by the Max Planck Society and the Alexander von Humboldt Foundation and hosted by Catharina Stroppel at the University of Bonn. TSRS is supported by FAPESP grant 2022/09891-4. JS is supported by FAPESP grant 2023/02809-3. JS would also like to thank Robert Bryant and Michael Albanese for their helpful references on complex structures, as well as the Abdus Salam International Centre for Theoretical Physics for their hospitality while carrying out some parts of this paper.
EDWARD HIRST, TANCREDI SCHETTINI GHERARDINI, TOMÁS S. R. SILVA, AND JAKOB STEIN
This research utilised computational resources of the “Centro Nacional de Processamento de Alto Desempenho em São Paulo (CENAPAD-SP)”. This work was supported in part by a grant of access to OpenAI models through the ChatGPT for Academic Researchers program.
Data Availability. The code and datasets used in this work are available here: https://github.com/edhirst/learning-acs-cs.
AI Usage Statement. The methodology and first draft of this work were those of the authors. LLM agents then recommended and implemented revisions which developed ideas and expanded the methodology. These revisions were shepherded and validated by the authors, who take responsibility for the content. The codebase was also developed with assistance from Fable (Anthropic).
2. MATHEMATICAL BACKGROUND
Every complex manifold of complex dimension is also a smooth real manifold of dimension , by separating each complex coordinate into its real and imaginary parts. The converse question is associated with the work of Hopf [1]: given a smooth even-dimensional manifold, when can its local coordinates be chosen so that the transition maps are holomorphic? This is still open, in general, in real dimension six and above; an overview of this problem, as well as a historical account, is given in [21].
2.1. Obstructions to the existence of complex structures. There are two key obstructions to finding a holomorphic atlas on a given real, compact, even-dimensional manifold. The first is purely topological: whether the manifold admits an almost complex structure (ACS) i.e. a smooth endomorphism on the tangent bundle that squares to minus the identity.
For spheres, the classical result is particularly restrictive: among spheres, only and admit almost complex structures [13]. On , the usual cross product gives . The analogous construction on uses the octonionic cross product. More generally, Calabi's construction supplies almost complex structures on oriented hypersurfaces in [22]. In particular, the topological obstruction to admitting almost complex structures vanishes in all the two and six dimensional cases considered in this paper.
The second obstruction is a classical theorem of Newlander and Nirenberg [23]: can be used to define a holomorphic atlas on the manifold if and only if the Nijenhuis tensor vanishes, which is a first order partial differential equation in . For some almost complex structure , is given by the expression
(2.1)
where are smooth vector fields and the bracket is the Lie bracket. Although brackets involve derivatives, the expression is tensorial in and . If vanishes, we call such a integrable, or simply refer to it as a complex structure.
This separates the problem into two stages. One first seeks a global section of the bundle of linear complex structures, and then solves a first-order nonlinear differential equation within that space. The distinction also provides a natural numerical safeguard: an arbitrary matrix field with a small Nijenhuis-type residual is not necessarily close to a complex structure, because it may fail the algebraic condition. A simple example of this would be the zero field.
In real dimension two, integrability is automatic. Indeed, is alternating and satisfies the relation . For any non-zero , the pair spans the tangent plane, and since , the entire tensor vanishes. Thus and test the construction of almost complex structures, but do not provide a non-trivial test of the integrability solver. In dimensions four and six, the differential equation carries additional information.
2.2. Examples, controls and recent constructions. The classical positive controls included in this paper are chosen to include examples admitting both Kähler and non-Kähler metrics. The product is the underlying smooth manifold of , the product of two projective lines. For , the quotient
(2.2)
is a Hopf manifold with underlying smooth manifold . This follows by writing , where and . The cases give our four- and six-dimensional Hopf controls. A further example is on the product , which carries Calabi-Eckmann structures [2]; its Lie group description also relates it to Samelson's construction [3].
We include three further examples in this paper. The first two are based on recent constructions of complex structures on [4, 5] and [6, 7]; the third is based on an explicit period model for a proposed complex structure on . We give more details of these constructions as necessary in §5; the numerical work here neither proves their topological conclusions nor supplies an independent proof of the Hopf problem. The main feature they share is that they all admit a description as a singular torus fibration over , with exceptional fibres glued in at a finite number of isolated points in .
Finally, we note here that the metric used to measure a residual should not be confused with a metric constraint on the structure. We use the round metric and its products to define norms, but do not impose on tangent spaces. This freedom is essential on , where LeBrun's theorem excludes complex structures orthogonal for the round metric [24]. Even on the classical examples, an integrable structure need not be orthogonal for the particular background metric used in training.
3. NEURAL AND POLYNOMIAL METHODS
3.1. A global ambient representation. Other similar works [9] set up the geometric learning problem by assigning a field to each chart of an atlas and training the fields to agree on the chart overlaps using the atlas transition functions. This method respects the local description of a complex manifold, but introduces a second optimisation problem on top of the ACS and CS goals where local endomorphisms must first define one global tensor. This work instead represents the manifolds in terms of their standard embeddings of each constituent sphere, avoiding the need for this extra globally consistent learning goal.
To define the used standard embeddings, write
(3.1)
At , with , the tangent projector is
(3.2)
Any smooth ambient matrix field defines a tangent endomorphism by
(3.3)
It vanishes on the normal space and maps the tangent space into itself. Since restricts to the identity on , the almost complex condition becomes . As this is a global representation, no overlap loss is required. But it does not remove the topological obstruction on , such that every smooth field of the form Eq. (3.3) must fail the almost complex identity somewhere.
The compression is deliberately redundant. Distinct ambient matrices can induce the same tangent field, and the identity makes some polynomial features dependent after restriction. These redundancies are manageable at the dimensions considered here and avoid choosing a global tangent frame (which is not always possible). Local orthonormal frames are then used only to evaluate compact residual vectors more efficiently at individual sample points.
3.2. Intrinsic differentiation and residual norms. For vector fields in Euclidean coordinates we use . Tangent fields along M can be extended off the manifold to evaluate this expression; its restriction to M is independent of the extensions. Let , where is the standard ambient basis. For a general endomorphism K on TM, satisfying K = PKP, define
(3.4)
This is the Nijenhuis torsion of , since . When , it agrees with Eq. (2.1). Keeping in the last term makes the formula tensorial even during optimisation, when this algebraic identity may not hold. Therefore the computation uses only and their first ambient derivatives.
Proposition 3.1 (Norm from the projected ambient frame). For any bilinear map and any orthonormal tangent basis ,
(3.5)
Proof. Expand . After applying bilinearity, each sum over an ambient index contains . The two contractions give the right-hand side.
Remark 3.2. Here, and elsewhere in the paper (unless otherwise indicated), for general tensors we use the pointwise norm associated to the metric induced by the embedding (3.1), e.g. for an orthonormal frame ; for endomorphisms, this is the Frobenius norm .
EDWARD HIRST, TANCREDI SCHETTINI GHERARDINI, TOMÁS S. R. SILVA, AND JAKOB STEIN
Thus summing Eq. (3.4) over all ordered ambient input pairs gives precisely the tensor norm of the round product metric. A redundant frame does not change the norm. It can, however, increase the number of residual entries seen by a least-squares solver. If is an orthonormal tangent frame at the sample point, antisymmetry gives
(3.6)
The corresponding residual vector has entries per point, including the factor in the antisymmetric part. In dimension six this gives 126 entries. The frame is a device for evaluating the norm at fixed points, not an additional learned geometric field.
3.3. Sampling and the meaning of numerical validation. Training expectations use the normalised round product measure. Independent standard Gaussian vectors are normalised to , giving independent uniform samples on each factor. Fresh points are drawn with each new sample batch throughout training and new independent points are drawn for evaluation. For the two main residuals we write
(3.7)
Then across these residuals means, root-mean-square values, and maxima answer different questions; as stated in the presented results.
Uniform control is especially important for an existence problem. A small mean does not exclude a defect on a set of small volume, and a random sample may miss that set. To locate such regions we use multi-start ascent of the pointwise residuals. The starting points are those with the largest residual among uniform samples. Each ascent step projects the gradient onto the tangent space, moves a fixed distance along the normalised direction and renormalises every sphere factor; the step is kept only if the residual increases. The distance is multiplied by 1.2 after an accepted step and by 0.5 after a rejected one, starting at 0.02 and kept within . Ascent is used to validate every run. Only the tail-aware conjugation runs of Section 4 also use it in training: their batches of 192 points combine 96 uniform points, the 72 points with the largest residual among 288 uniform candidates, and 24 points from short ascents (3 ascents of 8 starts and 20 steps), refreshed every 500 steps. The final ACS checks use 256 starting points for independent ascent runs, and 150 ascent steps per run, while the standard Nijenhuis checks use 128 starts and 75 steps.
The largest values detected are denoted by and respectively. They are empirical lower bounds on the corresponding true suprema. Finding a point with conclusively invalidates the strict residual test for that field; however failing to find one is not a proof that every point passes. A rigorous global certificate would require additional bounds, for example interval arithmetic or derivative estimates combined with a sufficiently fine covering. This direction is technical, computationally demanding, and specific to each structure, so is not pursued here and left to future developments.
The ambient runs use double precision to represent the numerical values, and evaluate displayed norms as . The regulariser keeps the square root differentiable where a residual vanishes. Consequently, the repeated value is a reporting floor: it means that the residual is below . It is not a limit of double precision, which resolves much smaller values (the reconstruction diagnostics of Section 5 report residuals of order ). Those diagnostics use a separate coordinate implementation, which is another reason to keep the two sets of diagnostics distinct.
3.4. Learning an almost complex field. The first objective is simply
(3.8)
We begin with ambient polynomial features, , with independent trainable matrices . The feature classes progress from constants and linear coordinates to cross-factor bilinears, homogeneous quadratics and unions of these classes. For three factors, products involving one coordinate from each factor are added at the final stage. These are low-degree polynomial classes, motivated by low-frequency approximation on products of spheres; the sequence is not a fully nested ordering of every harmonic subspace. Each attempt uses 3000 Adam steps [25], and the first class passing the preliminary numerical admissibility test is retained. An attempt passes if the largest value of found by a short worst-point search (Section 3.3, with 64 starts of 50 steps) is below 1; this threshold is explained in Section 3.5.
There is a reason to start with a small function class. A flexible field can reduce a mean-square loss by making most of the manifold nearly admissible while concentrating the failure in a narrow region. A reduced example on makes the mechanism explicit. Let , for a fixed unit vector , and consider . Since is uniformly distributed on ,
(3.9)
At , the Hessian of is positive definite, since its diagonal entries are 16/3 and its mixed entry vanishes. Thus this two-parameter family has a strict local minimum with opposite complex orientations in the two hemispheres and degeneracy on the equator. This example illustrates a trap in a restricted family, as a local minimum in its function class instead of over the full space of smooth fields.
If plain training of a class fails this test, the class is retried with each of two additional loss terms before the next class is tried. The first adds an annealed Dirichlet term
(3.10)
with coefficient decreasing from 3 to . For a tangential endomorphism, is its Levi-Civita covariant derivative. The training goal of low losses means low derivatives are then searched for with this term, such that it suppresses an orientation wall (like in the previous simple example) when a low-energy global structure is available, but it is not a universal cure since a non-parallel almost complex structure can itself have significant derivative energy.
The second modification uses an orientation penalty. In a positively oriented orthonormal tangent frame, set
(3.11)
where Pf denotes the Pfaffian of an antisymmetric matrix, the polynomial in its entries satisfying and ; unlike the determinant, its sign changes with the orientation of the frame. For an exact linear complex structure, and its sign records the induced complex orientation; a proof is given in Section A. The additional term built from this is , with the sign of the mean of over 2000 points at initialisation, and it was verified to vanish on every exact structure of the selected orientation. It therefore does not specify a target structure, although it does affect the optimisation away from the constraint. Neither additional loss term guarantees that all defects will disappear.
After a successful polynomial attempt, a small-output auxiliary neural network is added as a second learning stage to further reduce the almost complex residual. The matrix field becomes a polynomial plus a multilayer perceptron with GELU activations, four hidden layers of width 256 in dimension six and three of width 128 otherwise. Both parts are refined for 10 000 Adam steps, followed by up to 200 iterations of L-BFGS [26], a more accurate but slower second-order optimiser, which are kept only if they lower the held-out loss. The refined field is kept only if it also lowers the worst-point value of the accepted polynomial field (64 starts of 50 steps); otherwise the polynomial field is retained. This happens for (seed 8), (seed 7) and (seed 7), whose polynomial fields already have worst-point values below . These stages finalise the learning of the almost complex structure, ensuring a low residual before the algebraic correction below. More detail about the run settings are collected in Section B.
3.5. A conditional correction to the exact algebraic constraint. The threshold used above has a mathematical meaning. If has a real eigenvalue with unit eigenvector , then , and hence . Therefore excludes real tangent eigenvalues. More directly, the same threshold puts the matrix needed for correction in a domain where its principal inverse square root is well defined.
Proposition 3.3 (Algebraic correction). Let be a smooth field on a compact manifold with orthogonal tangent projector . If , set
(3.12)
where the square root is the principal matrix function. Then is smooth, and .
Proof. The operator norm of is strictly less than one, so the spectrum of lies in the open disc centred at 1 with radius 1. The principal inverse square root exists and varies smoothly [27]. Since commutes with and , so does . On the normal space and ; on the tangent space . It follows that , with the stated tangency.
The proposition is exact, but its hypothesis is a true uniform bound. In the numerical procedure we check and then test the corrected field again. This supplies strong practical evidence when a
EDWARD HIRST, TANCREDI SCHETTINI GHERARDINI, TOMÁS S. R. SILVA, AND JAKOB STEIN
large margin separates the observed residual from one, while retaining the distinction from a theorem about the computed field on all of .
We evaluate the inverse square root by 30 coupled Newton–Schulz iterations. Starting with and , set
(3.13)
Then approaches . The strict residual hypothesis implies , a sufficient convergence condition. Matrix multiplication makes this operation differentiable and compatible with the automatic differentiation used for . Note that a symmetric eigensolver would be inappropriate here because need not be symmetric. Also, the correction is algebraic, and does not enforce integrability, so the Nijenhuis tensor must be recomputed after this correction is applied.
3.6. Conjugation and the neural search for integrability. Each learnt ACS (after correction) is then used as a starting point for attempted learning of a CS. The first CS parametrisation used for this learning stage, described in this section, keeps the learned corrected field as a fixed base and varies it by conjugation using a single learnt MLP that outputs both and ,
(3.14)
Each exponential commutes with and is invertible, so conjugation preserves . The loss objective to minimise over the training (via iterative update of the MLP parameters) is . General real generators are allowed; restricting to orthogonal conjugation would retain the pointwise singular values of and could unnecessarily constrain the search.
At one point, two exponentials suffice to represent any orientation-preserving real change of frame, where its polar decomposition is a positive definite matrix times an element of , and both factors are exponentials (parameterised in general by our two learned exponential factors). Globally, however, smoothly choosing logarithms is an additional condition. In fact, a field given by smooth exponential generators is connected to the identity through smooth gauge transformations. The ansatz consequently stays in the homotopy class of and preserves the complex bundle isomorphism type, including its Chern classes. Hence this pointwise expressivity is not equivalent to coverage of every global almost complex structure of a chosen orientation; such that this method has its limitations.
This limitation is concrete on . Relative to a fixed structure of the same orientation, almost complex structures there carry an integer homotopy invariant in , the Hopf invariant computed on the slices ; since , Chern classes do not detect it. Relative to the Hopf structure, the learned base of seed 8 has invariant +1, so no exponential conjugation of it reaches the Hopf structure (Section 4.3). On , and there is a single class for each orientation; on and classes can differ in , and we have not determined the classes of our bases there.
For comparison, additional runs use affine conjugators , with computed explicitly. Although cheaper, this ansatz does require invertibility conditions that exponentials satisfy automatically. Near a point where g becomes singular, and its derivatives become very large, while J stays algebraically exact wherever g is invertible, so the algebraic residual cannot detect the problem. We therefore monitor the smallest singular value , on fresh points and by adversarial minimisation, in every conjugation run. Unlike the exponential ansatz, the affine one can also leave the homotopy class of .
To reduce differentiation cost, the base field and its derivative are evaluated once per batch. The derivative of the conjugated field is then assembled from
(3.15)
Training again uses Adam followed by held-out-controlled L-BFGS steps for refinement. In the tail-aware runs, batches also include high-residual points (Section 3.3).
3.7. Free polynomial fields and second-order optimisation. The second CS parametrisation returns to a free field, without using MLPs, this field takes a similar form to the ACS case, as
(3.16)
Here contains all ambient monomials of total degree at most . There are features and coefficients. For example, the degree-two class has 2880 coefficients when . For the manifold, which has 3 factors , its degree two polynomial is augmented by all possible trilinear monomials (i.e. a linear contribution from each constituent sphere). Throughout, degree refers to the degree of the matrix field (inside the brackets of (3.16)), and the multiplication by will then increase the full degree of the resulting ambient expression for .
Both and are linear in . The torsion Eq. (3.4) and the algebraic residual are consequently quadratic in the coefficients. The problem is therefore a structured nonlinear least-squares problem, for which Gauss–Newton and Levenberg–Marquardt methods are natural [28, 29]. If is the stacked residual and , a damped step solves
(3.17)
to update the learnt weights . The damping, controlled by , is reduced after successful steps to prioritise the faster first Gauss-Newton term, then is increased after unsuccessful ones to prioritise the slower but more stable Levenberg–Marquardt term.
Polynomial differentiation is explicit. In particular,
(3.18)
Quantities independent of are precomputed on each batch. Also, the residual Jacobian factors through , which avoids a separate spatial differentiation for every parameter. These efficiencies are particularly useful when the feature count grows but the ambient dimension remains small.
Each polynomial search starts by projecting its own learned ACS into the chosen class by least squares, matching the classes parameters to the ACS function as best as possible for this second learning stage starting point. This projection may fail the admissibility test of Section 3.5; but admissibility is later checked again on the final candidate. The first class receives 2000 Adam warm-up steps, and is then optimised in LM rounds, each with a fresh dataset of points and eight iterations. Sets have at least 128 points and at least twice as many residual entries as coefficients. A held-out loss on fresh points governs stopping and whether the degree is increased. The resampling limits overfitting but cannot rule it out, particularly when a candidate develops narrow defects.
A degree is accepted when its held-out loss is below and the corrected field passes the algebraic checks and the independent condition on the Nijenhuis tensor (64 starts of 60 steps). Within a degree, the LM rounds stop early once the held-out loss falls below ; this is why accepted runs need not reach the same final loss. Note that the method described in this section changes both the representation and the optimiser relative, compared to neural conjugation of the previous section, so the individual contributions of each cannot be isolated.
There is nevertheless a useful representability check, in confirming the known complex structures are actually inside the polynomial class being used in this sections ansatz. Let be the standard complex structure on , on and on . A Hopf structure is obtained by compressing
(3.19)
On it acts as , while and . It is the structure induced by Eq. (2.2) in the product coordinates. Similarly, with , the Calabi–Eckmann example on is represented by
(3.20)
These ambient matrices are quadratic; the product structure on is linear, so all are reachable within degree two. The checks establish that these classes can contain integrable structures. They are performed separately from training, and no coefficients from these formulas are supplied to the solver.
4. LEARNING RESULTS
The procedure of Section 3 is now applied to the ten spheres and sphere products in this study. The experiments separate the algebraic problem of finding an almost complex structure from the differential problem of making that structure integrable. This distinction is essential, since a small Nijenhuis residual is meaningful for the second problem only when the algebraic constraint has also been controlled. This section is structured such that first the search and approximation of almost complex structures on all ten manifolds is completed, followed by the recovery of classical complex structures where possible, and finally the alternative approaches are presented for the manifolds where the first searches were inconclusive.
Unless stated otherwise, reported means use 6000 fresh points from the round product measure, and the residual conventions, adversarial diagnostics and reporting floor are those of Section 3.3.
EDWARD HIRST, TANCREDI SCHETTINI GHERARDINI, TOMÁS S. R. SILVA, AND JAKOB STEIN

Figure 1. The almost complex feature ladder for each considered manifold for both seed runs (the two colours). Circles, squares and triangles denote plain training, the Dirichlet addition and the orientation-penalty addition respectively. The horizontal line is the sufficient admissibility threshold ; the plotted quantities are the preliminary ascent maxima (64 starts of 50 steps) of each attempt's polynomial field, before refinement. Each point is one attempt; the function class is made progressively more complex until the threshold is met. The selected final fields, with refinement retained according to Section 3.4, are presented in Table 2. The function classes, in the order tried, are: c, constant; lin, the ambient coordinates; bilin, products of two coordinates from different sphere factors; quad, all quadratic monomials; lin+c and lin+bi, the unions of lin with c and with bilin; all2, all monomials of degree at most two; +trilin, all2 together with the products of one coordinate from each of the three factors. In Table 2, c, lin, bilin, quad and +trilin are denoted C, L, B, Q and T. Classes that need several factors appear only on products.
4.1. Almost complex structures. The almost complex stage passes the numerical admissibility checks (as described in Section 3.5) on both seeds for nine of the ten manifolds. The exception is , in agreement with its known topological obstruction. Table 2 records the accepted polynomial class and the residual loss score of the selected field, after optional refinement and before correction (see Section 3.4). For the accepted fields these residuals range from the reporting floor (, seed 7) to (, seed 8). Applying the matrix correction subsequently brings the tested algebraic residual to the reporting floor in every accepted run.
The accepted function classes are usually quite simple. Linear features suffice on , and , while bilinear features suffice on , , and . On the two seeds select different classes, linear and homogeneous quadratic. The three-factor case required these trilinear features. Note these aren't necessarily the minimal-degree polynomial representation, just the outcomes of this search process in these set function classes.
The reruns with the additional loss terms described in Section 3.4 also reveal sensitivity to optimisation. Adding the Dirichlet homotopy leads to success on for seed 8 and on the torus for seed 7 after plain training has stalled. Across all the manifolds, no run using the orientation penalty was the first successful attempt for each campaign. These results hence demonstrate the usefulness of this ladder of increasing function class complexity, and highlight that plain training is often sufficient, while these additions still do not break the non-existence on . The performances of the numerical runs at each function class complexity stage through the ladder are shown in Fig. 1.
Table 2. Residual loss scores for the almost complex searches, shown for the two seeded runs with seeds {7, 8}. The selected class is labelled by the required polynomial degree needed to reach the stated approximation level. Using notation L for linear features, B for products of coordinates from different sphere factors, Q homogeneous quadratic features, and T all features of degree at most two together with three-factor products. C is the constant class retained after rejection of all these classes on . Residuals which are numerically below the admissibility threshold are marked Pass. For (seed 8), (seed 7) and (seed 7) the network refinement did not lower the worst-point residual and was discarded (Section 3.4); their entries are those of the polynomial field, and is the reporting floor.
| Manifold | Selected class | Outcome | |||
|---|---|---|---|---|---|
| seed 7 | seed 8 | seed 7 | seed 8 | ||
| L | L | Pass | |||
| B | B | Pass | |||
| C | C | 2.00 | 2.00 | Reject | |
| L | L | Pass | |||
| L | Q | Pass | |||
| L | L | Pass | |||
| B | B | Pass | |||
| B | B | Pass | |||
| B | B | Pass | |||
| T | T | 0.12 | Pass | ||
On , the mean algebraic residual after refinement is only 0.0106 for seed 7 and 0.0125 for seed 8, while the adversarial value is 2.00 for both, the value taken where vanishes. This contrast demonstrates why a mean alone is inadequate, as the field can satisfy the algebraic equation rather well on average over most of the manifold, but retains a substantial local defect that can't be removed. Both seed runs for this manifold are rejected and their complex-structure stages are therefore not run, since there is no ACS to run from. The topological obstruction to existence explains why a genuine solution cannot be obtained here, and these numerical results provide satisfying corroboration.
The corrected almost complex fields need not be close to integrable. For example, the mean Nijenhuis norm on is approximately 19.60, close to the value of the octonionic structure (Section B), and it is this norm that will be minimised in the next learning stage, where these learnt almost complex structures are used as the respective starting points.
4.2. Recovery of classical complex structures. The polynomial search with Levenberg-Marquardt is successful on both seeds for all classical examples , as shown by the low losses in Table 3. Note the already learnt ACS's on the 2d surfaces are automatically integrable, but are still included as comparative controls. The loss shown is the held-out value of before correction; the Nijenhuis column evaluates the true integrability condition on the corrected field.
Eight of the 12 runs reach a held-out loss below , three more stop between and , and the last stops at ; all pass the acceptance test of Section 3. Eleven runs stop at degree two. Only with seed 7 steps up to degree three, while the same manifold succeeds at degree two with seed 8. The training histories of the neural and polynomial approaches are compared in Fig. 2.
By comparison, the conjugation methods involving the neural architectures are far inferior. With exponential conjugators, the final mean Nijenhuis norms on , , and are respectively 0.00127, 0.00574, 0.441 and 0.191. Affine conjugation improves the first three to , 0.00205 and 0.048, but still does not reach the accuracy of the polynomial solver. On it reaches 0.171, but only through a numerically singular conjugator (), so this is not a valid improvement. Additionally, these runs take approximately 24–54 minutes, compared with 1–10 minutes for the corresponding polynomial runs.
The learning process specifies no specific complex structure to model, such that any solution to the integrability equation is sufficient. These learnt complex structures can hence be shown to not match the classical examples. The classical product structures, and the Hopf structures with the normalisation of Eq. (2.2), are orthogonal for the round metric: on tangent spaces, so all singular values of equal 1. For the learnt four- and six-dimensional structures, the mean of ranges from 0.054 to 4.61, with singular values between 0.41 and 2.42, far from the classical behaviours and hence
EDWARD HIRST, TANCREDI SCHETTINI GHERARDINI, TOMÁS S. R. SILVA, AND JAKOB STEIN
Table 3. Polynomial complex-structure searches, run for 2 seed runs through the ladder of increasing function class complexity, with the degree of the polynomial in the ambient coordinates listed. Time is the recorded elapsed time of the CS stage, excluding its preceding ACS stage. Every row passes the numerical acceptance tests, with at or near the reporting floor (at most ).
| Manifold | Seed | Degree | Held-out loss | Minutes | |
|---|---|---|---|---|---|
| 7 | 2 | 0.29 | |||
| 8 | 2 | 0.29 | |||
| 7 | 2 | 0.35 | |||
| 8 | 2 | 0.35 | |||
| 7 | 2 | 1.02 | |||
| 8 | 2 | 0.95 | |||
| 7 | 3 | 2.11 | |||
| 8 | 2 | 2.19 | |||
| 7 | 2 | 5.51 | |||
| 8 | 2 | 5.57 | |||
| 7 | 2 | 10.22 | |||
| 8 | 2 | 8.95 |

Figure 2. Classical examples, seed 7: conjugation-based neural searches and polynomial fields with Levenberg-Marquardt. The neural curves show held-out mean Nijenhuis norms; the polynomial curves show the root mean square of the free-field Nijenhuis norm. These are different summaries, with the root mean square bounding the mean from above. Final corrected-field results are given in Table 3. On the affine conjugator is numerically singular (Section 4.3), so its curve is not a valid result.
not the explicit round-orthogonal representatives (but they may still be bilohomorphic to them). On , the complex structure learned from seed 8 is not even homotopic to the Hopf structure through almost complex structures: its Hopf invariant relative to it is +1. Additionally, for some structures a near constant value of this norm may suggest some additional symmetry.
Importantly, the resampling between Levenberg-Marquardt optimisation rounds prevents overfitting of the complex structure to a specific subset of points and focusing the error in a small region outside of the sample. However, it is still possible that a sufficiently small defect area may not be sampled at all over the training period, which is an unavoidable possibility in numerics, but the independent adversarial checks make it less likely to go unnoticed.
4.3. A supervised benchmark on the Hopf manifolds. The architectures above are trained to minimise the integrability equations alone, with a fixed computational budget. To compare the training signals, the same networks are also trained in a supervised manner using an explicit complex structure. Choosing and as representatives in complex dimensions 2 and 3, both these manifolds
Table 4. Supervised and unsupervised training on the Hopf manifolds, compared through mean and adversarial Nijenhuis norms; the computational budgets are not matched. Supervised networks are trained to reproduce a known Hopf structure, from its values alone or from its values and first derivatives. Unsupervised networks are those of Fig. 2, trained on the equations alone. Ranges are over independent runs: bases 7 and 10 on , and bases 7 and 8 with two network seeds each on . Supervised means use 4000 fresh points, unsupervised means 6000; is the adversarial maximum. Not a valid result: the conjugator is numerically singular (adversarial ).
| Manifold | Training | Mean | |
|---|---|---|---|
| supervised, values only | 0.035 | 0.10 | |
| supervised, values and derivatives | 0.015–0.016 | 0.054 | |
| unsupervised, exponential conjugation | 0.0057 | 0.016 | |
| unsupervised, affine conjugation | 0.0021 | 0.0060 | |
| supervised, values only | 0.093 | 0.38 | |
| supervised, values and derivatives | 0.025–0.028 | 0.076 | |
| unsupervised, exponential conjugation | 0.19 | 109 | |
| unsupervised, affine conjugation | 0.17 |
exhibit a complex structure in closed form, namely a Hopf structure. The same network architectures (same ansatz form and same size) with exponential conjugation setup where they take input of a point on the manifold and output a prediction of the structure , were trained to reproduce this Hopf structure , in two ways: from its values alone via minimising the supervised loss , and from its values together with its first derivatives via also minimising . Table 4 provides results for all four training run styles, including for these two supervised runs and the previous two unsupervised runs, comparing through the mean Nijenhuis norm which vanishes for an exact complex structure. The supervised fits conjugate a learned base field as in Eq. (3.14), so the base must lie in the homotopy class of . Bases with the opposite orientation are first reflected or negated, and on we use the base of seed 7 and an additional base from seed 10, whose Hopf invariants relative to vanish. From the base of seed 8, whose invariant is +1, the fit with derivatives stalls at a mean Nijenhuis norm of 1.58 (adversarial maximum ). The budgets are not matched: the supervised fits use 40000 () or 80000 () Adam steps followed by L-BFGS, taking from 14 minutes to 19 hours, while the unsupervised runs use 4000–10000 Adam steps and 24–53 minutes.
Supervision on values alone sets the benchmark. These networks reproduce the known structure closely on average, with relative value errors of on and on , yet their Nijenhuis norm stays comparatively large. Integrability is a condition on derivatives, and matching values does not control them. On , the unsupervised networks with exponential conjugation never see the solution, yet they beat this benchmark by a factor of about six: there, the equations themselves are a more effective training signal for integrability than knowledge of the solution's values. On this is reversed, and the exponential run is about twice the values-only benchmark.
Supervision with derivatives is a stronger reference. Given both the values and the first derivatives of the solution, the networks reach mean Nijenhuis norms of 0.015–0.016 on and 0.025–0.028 on , about two and three to four times below the values-only fits. On both unsupervised networks go beyond even this reference: exponential conjugation by a factor of about three, and affine conjugation, at 0.0021, by a factor of seven to eight, the best result in Table 4. Trained on the equations alone, they attain smaller Nijenhuis residuals than networks given the explicit solution together with its derivatives. On they do not: both supervised fits beat the exponential run, by factors of about two (values only) and seven to eight (with derivatives), and the affine value is not valid, because its conjugator is numerically singular.
Two remarks qualify the comparison. On , the exponential run keeps a small region where the Nijenhuis norm is large (adversarial maximum 109, with the worst 1% of points carrying 98% of ), whereas the supervised fits show no such region (adversarial maxima at most 0.38). And the polynomial fields of Table 3 remain far more accurate than every neural network in this comparison, supervised or not.
We used the Hopf structure of . It differs from Eq. (2.2) only in the scaling factor, but it is far from orthogonal for the round metric, which makes it harder to learn.
EDWARD HIRST, TANCREDI SCHETTINI GHERARDINI, TOMÁS S. R. SILVA, AND JAKOB STEIN
Table 5. Selected six-dimensional searches, seed 7. Means are final fresh-sample estimates. The first row of each block is the corrected ACS starting field. “Tail” denotes tail-aware sampling; the continued run adds 4000 steps to the initial 1500. The affine row is diagnostic: its conjugator is numerically singular (adversarial ).
| Manifold | Route | Mean | |
|---|---|---|---|
| ACS starting field | 19.60 | 19.60 | |
| Exponential MLP | 0.375 | 6.75 | |
| Exponential MLP, tail | 1.03 | 3.83 | |
| Polynomial generator, degree 3 | 1.33 | 9.78 | |
| ACS starting field | 15.18 | 16.14 | |
| Exponential MLP | 0.855 | 79.36 | |
| Affine MLP | 0.168 | ||
| Exponential MLP, tail | 2.23 | 10.50 | |
| Polynomial generator, degree 2 | 3.61 | 20.86 | |
| ACS starting field | 2.98 | 3.93 | |
| Exponential MLP, tail | 0.138 | 0.703 | |
| The same, continued | 0.0924 | 0.479 |
4.4. The unresolved numerical searches. The same polynomial procedure does not produce an admissible near-integrable field on , or . On , the returned degree-three field has loss 5.86 and . On , the retained degree-two field has loss 6.35 and ; degree three was also tried, with the worse held-out loss 8.58. On , the enriched three-factor class has loss 10.65 and . All three fail the sufficient admissibility test, and hence have not numerically approximated complex structures.
Conjugation preserves the algebraic equation wherever the conjugator is invertible, and exponential conjugation builds in that invertibility. It therefore permits a more direct examination of the remaining differential error. Selected results appear in Table 5. The mean and the adversarial statistic often rank methods differently. On , tail-aware sampling lowers the adversarial value from 6.75 to 3.83 while increasing the mean from 0.375 to 1.03. The same trade-off is stronger on , where the adversarial value falls from 79.4 to 10.5. A polynomial generator does not improve on this (20.9) and remains far from the successful classical runs.
The affine run is especially instructive. Its mean is 0.168 and its maximum over 6000 points is 18.4, whereas ascent finds . The conjugator is numerically singular: is 0.21 on 6000 points but under adversarial search. Since an affine parametrisation does not supply the global invertibility guarantee of an exponential, this run cannot be treated as a reliable global improvement merely because its mean is small.
Independent fresh-sample analysis confirms concentration of the differential defect. In the exponential mean-square runs, the worst 5% of points account for approximately 49% of the squared residual on and 61% on . On , despite the existence of a classical complex structure, the worst 1% account for 98% on a sample of 6000 points. Thus concentration is not specific to the difficult topological cases. Tail-aware training reduces the worst-5% shares to 17% and 15% on the first two manifolds; it distributes the remaining error more evenly without eliminating it.
The statistical mechanism is straightforward. If most of the manifold has a modest residual and a small region has a much larger one, a fresh batch may contain few points from that region or none at all. Decreasing its volume can then improve the mean while leaving a serious local failure, as demonstrated in Figure 3. Ascent and tail-aware sampling address this sampling imbalance by deliberately revisiting large-residual regions and this process identified the local defects in these cases. Consequently, a smaller adversarial value is a useful comparative diagnostic, but it does not establish a global upper bound or rule out an undiscovered concentration elsewhere since these finitely many adversarial searches may not have had time to locate a local defect in the learnt structure.
The recent complex structures produced on these manifolds have very specific algebraic constructions, and perhaps not surprisingly this general numerical search struggled to find them within the computational budget. More focused numerical representation is described in Section 5.

Figure 3. Defect concentration measured on fresh samples: the fraction of the total squared Nijenhuis residual carried by the points with the largest residuals. The undotted line represents a uniform contribution from all points, it acts as a baseline along with the exact ACS on (which overlaps with it).
5. RECONSTRUCTION FROM GEOMETRIC INPUT
The searches in Section 4 ask whether integrability can be recovered from a completely general ansatz on an embedded manifold. A different experiment begins with a geometric description in which much of integrability is already built in. We consider both approaches because their contrast identifies what the optimisation is actually being asked to learn. On a torus fibration, holomorphic period data provide local complex coordinates directly; the remaining numerical problem concerns non-degeneracy and compatibility between those local descriptions. A successful reconstruction therefore measures the effectiveness of a numerical representation informed by geometry.
For and , the input is the torus-fibration construction described in the recent manuscripts [4, 5, 6]; a different construction of appears in [7]. We take the monodromy, the form of the periods, the compactification data and the stated topological identifications from those works. Our calculation solves the resulting functional equations and checks their numerical consistency. At the time of completing this work there was no published construction on ; therefore one was designed and this input is instead the explicit period model of Section 5.4. The numerical tests in this section check its displayed formulas, but do not by themselves show that the compactified fibration exists or is diffeomorphic to . This is subject of ongoing work.
5.1. Period coframes and local integrability. Let be a complex coordinate on the base and let denote real coordinates on a torus fibre. A complex matrix defines an almost complex structure on the regular part of the family when the forms
(5.1)
together with their conjugates form a complex coframe. Equivalently, the columns of must be linearly independent over in . Writing for the matrix of the three forms in real coordinates, the induced real endomorphism is determined by , or explicitly by
(5.2)
EDWARD HIRST, TANCREDI SCHETTINI GHERARDINI, TOMÁS S. R. SILVA, AND JAKOB STEIN
The identity follows algebraically wherever the coframe is non-degenerate.
For the first two reconstruction experiments, the normalisation is
(5.3)
In this form non-degeneracy is equivalent to
(5.4)
The intended component of the period domain has . The assumption is part of the construction; without it, one should use the undivided determinant condition .
In the normalisation (5.3), integrability is equivalent to holomorphy of . Indeed, closure of the ideal generated by (5.1) under exterior differentiation requires for a complex matrix . The last two columns of are constant and form the identity, so these columns force . Conversely, when is holomorphic, differentiating its rows gives only terms containing , and the ideal is closed. For a general, unnormalised period coframe, holomorphy remains sufficient, which is the implication used below for .
This elementary observation is important for interpreting the experiment. Once holomorphy is imposed by the representation, a small computed Nijenhuis tensor checks the implementation of (5.2) and its derivatives. It is the compatibility residual, rather than the local Nijenhuis residual, that measures the success of the period solve.
5.2. A spectral reconstruction for and . The construction uses the triangle group . In the cusp coordinate employed by the calculation, the parabolic generator is , while the two elliptic generators act by the matrices
(5.5)
The periods satisfy the six equations
(5.6)
All functions on the right-hand sides are evaluated at Z. These equations and their cusp asymptotics are geometric input to the reconstruction, rather than equations inferred by the solver.
With , the numerical representation is
(5.9)
Here scales the basis to the range encountered on the working domain. Every truncation is holomorphic and satisfies the parabolic transformation law exactly. The nonlinear solve therefore concerns only (5.6); after is fixed, the equations for and are linear least-squares problems. The additive constant in is free in the compatibility equations and is fixed at . The recorded tests place the resulting periods in the component .
The collocation set combines small circles about the two elliptic fixed points with pairs of points related by the generators near the domain identifications. This second set is essential. Collocation near the fixed points alone constrains the local functional equations accurately, but leaves combinations of higher coefficients poorly determined near the edges. In the resolution study of Fig. 4, adding gluing pairs (left panel) reduces the largest held-out functional-equation residual to approximately at . Larger truncations do not improve on this: the residual rises slowly, to at , consistent with the coefficients beyond having reached the rounding level (right panel). With fixed-point collocation alone, the best value is at . This convergence is therefore evidence for a useful numerical resolution, rather than a rigorous bound on the omitted series tail.
The lattice action is also checked independently of the period fit. With the monodromy convention of [4], the real fibre coordinates transform by . The corresponding condition on the coframe is for an invertible complex matrix . Alternative transpose and inverse conventions give discrepancies of order one or larger. For , the prescribed index-two superlattice

Figure 4. Resolution study for the period solve. Left: largest functional-equation residual on held-out gluing pairs, comparing fixed-point collocation with the addition of gluing pairs. Right: coefficient magnitudes in the scaled basis. These are numerical convergence diagnostics; holomorphy is imposed by the representation, whereas global compatibility is satisfied only to the measured accuracy.
Table 6. Selected reconstruction diagnostics from the saved runs. Entries are observed maxima, except for the final row, which is a detected minimum. Norms use the coordinates of each model. Nijenhuis and transition errors are distinct quantities. The rows use a common filling annulus ( ).
| Quantity | model | model |
|---|---|---|
| Algebraic residual | ||
| Regular-part , adversarial | ||
| Functional-equation residual | ||
| Largest recorded deck discrepancy | ||
| Blended-overlap |
| Quantity | Supplied periods | Learned periods |
|---|---|---|
| Regular-part | ||
| Largest chart-transition discrepancy | ||
| Normalised determinant, smallest found | 0.626 | 0.941 |
changes the period matrix to , where ; the transformed matrices are integral. Thus the same learned functions support both numerical reconstructions, with different lattice data.
5.3. What the validation establishes. The numerical checks separate algebraic exactness, local integrability, deck compatibility and blending across an identified edge. For blending, two transported descriptions are combined with a smooth weight and then corrected algebraically to an almost complex structure as in Section 3. Its Nijenhuis tensor detects errors introduced by the transition. This is a useful overlap diagnostic that is indicative of good numerical approximation, but does not lead to a rigorous global atlas (no theorem correcting the approximate field to a truly integrable one is provided). Table 6 collects these diagnostics for both models. The algebraic and regular-part Nijenhuis residuals are at the level of rounding error (at most ), while the functional-equation, deck and blended-overlap errors are larger but remain below .
The compactification requires further analytic input. In the cusp coordinate, the matrix
(5.10)
is holomorphic at q = 0 for the truncated representation. The supplied checks evaluate its periodicity and the quantities entering the toric filling construction [4, 30]. The central fibre itself is governed by that analytic construction. Likewise, logarithmic transforms require their specified holomorphic translations
EDWARD HIRST, TANCREDI SCHETTINI GHERARDINI, TOMÁS S. R. SILVA, AND JAKOB STEIN
and twisting data; invariance under constant translations in does not by itself justify a translation depending on the base. We therefore retain the distinction between regular-coordinate tests and the external results used to extend and identify the compactified model.
All norms in Table 6 are coordinate norms on the fibration models. No explicit diffeomorphism transporting these structures to the round embedded manifolds is computed. Their numerical magnitudes consequently cannot be compared directly with the intrinsic round-metric residuals in Section 4.
5.4. An explicit period model for . The period model we study begins with complex two-tori over whose period columns, in additive coordinates , are
(5.11)
The logarithm is taken locally; continuation around the origin sends to . The displayed real determinant is
(5.12)
which is positive for every . Thus the regular family is non-degenerate, and holomorphy gives local integrability. The model also specifies a chart at infinity, two cusp fillings and a logarithmic transform. Their topological consequences, including the identification with , are not established by these residual calculations.
A further experiment varies the periods within the prescribed polynomial form. Writing , the translations have -components and multiplicative exponents for , while . Together with a constant , these give twelve real parameters. The form satisfies the prescribed holomorphy and vanishing conditions at the two cusps. With , the solver enforces opposite signs of the two cusp area forms and positivity of the normalised determinant . These constraints retain the geometric ansatz while leaving the coefficients to be determined.
Nineteen of twenty random starts pass the recorded feasibility tests. All nineteen reach the largest feasible margin on the tested schedule, approximately 0.9411; the next scheduled value, approximately 1.0822, is infeasible. This is not a demonstrated optimum: the normalisation gives an upper bound of 1 for a common margin on the two cusp area forms. The best learned candidate has smallest detected normalised determinant approximately 0.941, compared with 0.626 for (5.11). Figure 5 shows this comparison. The left panel maps the normalised determinant of the supplied periods over , and the middle panel compares its minimum over for the two sets of periods. The learned candidate is nearly flat in , while the supplied periods dip to about 0.63. These results indicate that numerical non-degeneracy is not confined to a single isolated parameter choice. They do not establish positivity over all of from finite samples, nor do they establish the compactified topology for the general learned parameters.
The recorded monodromy, infinity-chart and logarithmic-transform discrepancies are small for both sets of periods, at most , with regular-part Nijenhuis residuals at most (Table 6, lower block). The collar checks use , and hence exclude the central fibre. Neither the extension through the fillings nor the identification with is established here, for either set of periods; the right panel of Fig. 5 evaluates the filling ratio near each cusp for both sets of periods, and these are the quantities entering the fillings, which the tests themselves do not verify. The numerical outcome is a family of feasible regular period data, together with transition diagnostics that motivate further analysis. As discussed in Section 6, this success demonstrates how much the representation can simplify the computation for the numerical reconstruction.
6. DISCUSSION
The experiments show that learning almost complex structures and learning integrability have different numerical demands. The ambient representation resolves compatibility of local tensor descriptions by construction, leaving a global algebraic problem that can be checked independently of the differential equation. The almost complex investigations behave consistently across the selected controls: all nine admissible examples pass the numerical tests for both seeds, while does not and retains an order-one local defect. The large margin between the accepted residuals and the correction threshold makes these results practically useful, although of course the numerical search for a maximum remains distinct from a uniform proof.
For integrability, the strongest result is the performance of a small polynomial model with a second-order solver on the classical examples. Quadratic ambient matrices can express several familiar structures, but that observation alone would not ensure that optimisation from a learned starting field finds an integrable candidate. The repeated convergence on both seeds, followed by correction and fresh-point validation,


Figure 5. Determinant and cusp diagnostics for the supplied period model and the selected learned candidate. The middle panel reports minima over the tested angles; the right panel evaluates the filling ratio near each cusp. Its scalar height function P is unrelated to the tangent projector used in the ambient formulation. The displayed positive margins are numerical observations over the tested ranges, with the compactification and its topology requiring separate analytic arguments.
supplies that additional numerical evidence. The comparison also cautions against identifying the size of a network with its effectiveness. A larger conjugator may face a more complicated representation problem and a less favourable optimisation problem than a directly parametrised field.
The difficult six-dimensional searches show the limits of this success. In particular, a plateau in the learning loss residuals indicating stalled convergence may be caused by a restricted function class or alternatively by limited computational resources and an unfavourable initial condition. These experiments hence cannot be used to conclude approximation lower bounds for the polynomial or neural classes, or non-existence results. The recent fibration constructions make this last point especially concrete: geometric existence and numerical accessibility in a particular set of coordinates are separate questions.
Defect concentration gives a more specific explanation for some of the observed failures. Suppose, as a model calculation, that a bounded family of almost complex fields is integrable outside a tube of radius around a subset of codimension c, and that its transition across the tube has derivative of size . Since the Nijenhuis tensor is first order, this gives the estimate
(6.1)
Thus an average squared residual can decrease when without a comparable improvement in pointwise control. The estimate assumes the indicated family exists; it is not, by itself, a construction of smooth fillings on every manifold. It nonetheless explains why volume-weighted training can favour the observed concentration. The fact that this also occurs on the classical Hopf example rules out interpreting concentration as a signature of non-existence.
The reconstruction experiments answer a different and complementary question. Once periods are represented by holomorphic functions, local integrability is built in, and optimisation can focus on the much smaller compatibility problem. The very small reconstruction residuals achieved therefore reflect the benefit of favourable geometric parametrisations, and indicate strong numerical corroboration of existence of complex structures on these manifolds.
Several extensions follow directly from these limitations. A rigorous treatment of accepted ACS candidates would combine their substantial numerical margins with computable global residual bounds. Integrability would require either a validated correction theorem for an approximate solution, or an exact description recovered from the learned field. A wider seed study and controlled comparisons of optimiser and representation would clarify the source of the classical successes. For the difficult cases, adaptive sampling should be paired with representations adapted to singular fibres and transition maps, while monitoring conditioning and algebraic admissibility. The present results establish a useful numerical framework for those investigations and identify precisely where further geometric information is needed.
EDWARD HIRST, TANCREDI SCHETTINI GHERARDINI, TOMÁS S. R. SILVA, AND JAKOB STEIN
Beyond this, this work introduces a series of numerical methods which have been validated for general search of almost complex and complex structures; applying this methodology to manifolds where existence of such structures is unknown remains the ultimate and most exciting development direction.
APPENDIX A. THE ORIENTATION INDEX
The orientation penalty in Eq. (3.11) is based on a pointwise fact that does not assume orthogonality. Let on an oriented Euclidean vector space of dimension and set . Then defines a positive definite -invariant inner product , and
(A.1)
The alternating form is therefore . In particular, for non-zero , so its symplectic orientation is the complex orientation of .
To bound the Pfaffian, use and obtain
(A.2)
where are the singular values of . Because , the multiset of singular values is invariant under inversion. Pairing with gives
(A.3)
It follows that . This proves both the sign and magnitude statements used in the penalty. A positively oriented change of orthonormal tangent frame leaves the value unchanged, so a single global tangent frame is unnecessary. For a general candidate , the index can pass through zero; the penalty discourages this during optimisation but does not replace the algebraic residual.
APPENDIX B. IMPLEMENTATION SETTINGS AND PROVENANCE
B.1. Main settings. Table 7 records the principal settings of the campaign. The two main random seeds are 7 and 8. An additional ACS seed (10) supplies a second base in the Hopf class for Table 4, whose fits use network seeds 7, 8, 17 and 18. Comparisons on the difficult cases are exploratory and do not all have matched budgets, so their timings and final residuals should be interpreted as results of the stated runs rather than a controlled ranking of optimisers.
For the translation-invariant search, one works over with the ambient projector . Coefficients depend only on , while the two flat directions represent the commuting unit circle fields. A degree- polynomial matrix in this reduced model has coefficients. The counts for degrees two, three and four are 1029, 2744 and 6174, respectively. This accounts for the smaller parameter counts without imposing an integrable target.
B.2. Records, checks and limits of reproducibility. All numerical results in this paper come from one campaign run with the code in the repository. The driver experiments/run_all.py executes 72 jobs; four further jobs (two additional ACS seeds, the homotopy-class computation and one supervised fit) were run with the same code. Every table, figure and quoted number is generated from the per-run records by experiments/make_figures.py and experiments/paper_numbers.py, and the repository's test suite (63 tests) passes on this code.
The records include useful consistency checks of the geometric operators. The classical octonionic ACS on the unit six-sphere has in the ordered-pair convention of Eq. (3.5). Explicit Hopf and Calabi–Eckmann fields test both the algebraic and differential residuals, while the formulas Eqs. (3.19) and (3.20) test the expressive power of the degree-two model. The reduced invariant formulation is also compared with the full ambient product representation. These checks provide independent diagnostics of conventions and implementation; they are separate from the target-free optimisation.
Recorded timings are elapsed times of individual jobs, often sharing the same machine with other jobs or unrelated work. Summing them does not give the total campaign duration or a count of CPU-hours. For example, the jobs sum to approximately 6800 job-minutes, of which approximately 5200 are the supervised fits of Table 4. The per-run timings in Table 3 are sufficient for the limited comparison made here, with the preceding ACS cost explicitly excluded.
Table 7. Principal settings of the direct searches. Learning-rate arrows indicate cosine decay. The final admissibility checks are numerical, with the interpretation given in Section 3.3.
| Stage | Settings |
|---|---|
| Arithmetic and sampling | Double precision on CPU; independent round-product samples; usual Adam batch size 192. |
| ACS polynomial attempt | 3000 Adam steps; learning rate ; coefficient standard deviation . |
| ACS retries | Within each class: plain objective, then Dirichlet coefficient , then orientation penalty of weight 1, each from a fresh initialisation; preliminary ascent uses 64 starts and 50 steps. |
| Neural refinement | GELU; hidden widths 256, 256, 256, 256 for and 128, 128, 128 otherwise; output scale 0.02; 10000 Adam steps, ; gradient clipping at 1; kept only if it lowers the preliminary ascent maximum of the accepted polynomial field. |
| Final ACS refinement | Up to 200 L-BFGS iterations on 768 points, rejected if held-out loss increases; 30 Newton-Schulz steps for correction. |
| Final algebraic check | from 256 starts and 150 steps, followed by from 128 starts and 75 steps. |
| Neural conjugation | One MLP with two matrix outputs; output scale 0.5 (exponential), 0.05 (affine), 0.1 (tail-aware); 1500–10 000 Adam steps, ( for the continuation); L-BFGS chunks of 100 iterations on 1024 points, kept only if the held-out loss decreases. |
| Polynomial CS | Degree two, then degree three when needed; own ACS projected by least squares; 2000 initial Adam steps, . |
| LM rounds | Eight iterations per round; at least 128 points and two residual entries per coefficient; fresh collocation each round and 2000 held-out points; damping divided by 3 on success and multiplied by 4 on failure, carried between rounds within . |
| CS stopping and checks | A degree is accepted when the held-out loss is below and (64 starts, 60 steps); LM rounds stop early below ; final dense summaries on 6000 fresh points. |
REFERENCES
[1] H. Hopf, “Zur Topologie der komplexen Mannigfaltigkeiten,” in Studies and Essays Presented to R. Courant on his 60th Birthday, pp. 167–185. Interscience, New York, 1948.
[2] E. Calabi and B. Eckmann, “A class of compact, complex manifolds which are not algebraic,” Ann. of Math. 58 (1953) 494–500.
[3] H. Samelson, “A class of complex-analytic manifolds,” Portugal. Math. 12 (1953) 129–132.
[4] Claude and L. Alpöge, “The (3, 4, ∞) modular family of 2-tori, completed at its three special points, is a complex structure on ,” 2026. https://alpo.ge/s6.pdf. Manuscript, written by Claude under the direction of L. Alpöge.
[5] P. Engel, “Complex structures on ,” 2026. https://philip-engel.github.io/S6.pdf. Preprint, September 13, 2026.
[6] S. Guo, E. X. Fang, and J. Lu, “A complex structure on ,” arXiv:2609.05504.
[7] R. Liang, C. Liu, and Y. Zhang, “Remarks on the complex structures on and ,” arXiv:2608.29651.
[8] M. Gao, Z. Tang, and W. Yan, “A Complex Structure on : The Genus-One Case of Calabi’s Problem,” arXiv:2610.06067 [math.CV].
[9] E. Hirst, T. S. Gherardini, and A. G. Stapleton, “Alinstein: Numerical Einstein Metrics via Machine Learning,” AI Sci. 1 no. 2, (2025) 025001, arXiv:2502.13043 [hep-th].
[10] T. S. Gherardini and M. Usula, “Minimal surfaces, knots, and neural networks,” 2026. https://arxiv.org/abs/2605.26234.
[11] E. Hirst, “PINNs in More General Geometry,” arXiv:2604.25020 [math.DG].
[12] T. S. Gherardini, “A user’s guide to PINNs in geometric analysis: Lessons from the asymptotic plateau problem,” AI in Mathematics and Theoretical Physics 04 no. 01, (2026) 2640002, https://doi.org/10.1142/S3082883X26400023. https://doi.org/10.1142/S3082883X26400023.
[13] A. Borel and J.-P. Serre, “Groupes de Lie et puissances réduites de Steenrod,” Amer. J. Math. 75 (1953) 409–448.
[14] M. R. Douglas, S. Lakshminarasimhan, and Y. Qi, “Numerical Calabi-Yau metrics from holomorphic networks,” arXiv:2012.04797 [hep-th].
[15] M. Larfors, A. Lukas, F. Ruehle, and R. Schneider, “Numerical metrics for complete intersection and Kreuzer–Skarke Calabi-Yau manifolds,” Mach. Learn. Sci. Tech. 3 no. 3, (2022) 035014, arXiv:2205.13408 [hep-th].
[16] G. Cortés, M. Esteban-Casadevall, Y. Feng, J. Henkel, E. Hirst, T. Schettini Gherardini, and A. G. Stapleton, “A Machine Learning Approach to the Nirenberg Problem,” arXiv:2602.12368 [cs.LG].
[17] T. Schettini Gherardini, E. Hirst, and A. G. Stapleton, “Black Hole Black Boxes: Numerical Black Hole Metrics via Alinstein Neural Networks,” arXiv:2607.05489 [gr-qc].
[18] M. R. Douglas, D. Platt, Y. Qi, and R. Barbosa, “Harmonic 1-forms on real loci of Calabi-Yau manifolds,” arXiv:2405.19402 [math.DG].
EDWARD HIRST, TANCREDI SCHETTINI GHERARDINI, TOMÁS S. R. SILVA, AND JAKOB STEIN
[19] E. Heyes, E. Hirst, H. N. Sá Earp, and T. S. Silva, "Neural and numerical methods for G₂-structures on contact calabi-yau 7-manifolds," Physics Letters B 878 (07, 2026) 140566. http://dx.doi.org/10.1016/j.physletb.2026.140566. [20] M. Raissi, P. Perdikaris, and G. E. Karniadakis, "Physics-informed neural networks: a deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations," J. Comput. Phys. 378 (2019) 686–707. [21] I. Agricola, G. Bazzoni, O. Goertsches, P. Konstantis, and S. Rollenske, "On the history of the Hopf problem," Differential Geometry and its Applications 57 (2018) 1–9. [22] E. Calabi, "Construction and properties of some 6-dimensional almost complex manifolds," Trans. Amer. Math. Soc. 87 (1958) 407–438. [23] A. Newlander and L. Nirenberg, "Complex analytic coordinates in almost complex manifolds," Ann. of Math. 65 (1957) 391–404. [24] C. LeBrun, "Orthogonal complex structures on S⁶," Proc. Amer. Math. Soc. 101 (1987) 136–138. [25] D. P. Kingma and J. Ba, "Adam: A Method for Stochastic Optimization," in 3rd International Conference on Learning Representations (ICLR). 2015. arXiv:1412.6980. [26] D. C. Liu and J. Nocedal, "On the limited memory BFGS method for large scale optimization," Math. Program. 45 (1989) 503–528. [27] N. J. Higham, Functions of Matrices: Theory and Computation. Society for Industrial and Applied Mathematics, Philadelphia, 2008. [28] K. Levenberg, "A method for the solution of certain non-linear problems in least squares," Quart. Appl. Math. 2 (1944) 164–168. [29] D. W. Marquardt, "An algorithm for least-squares estimation of nonlinear parameters," J. Soc. Indust. Appl. Math. 11 (1963) 431–441. [30] D. Mumford, "An analytic construction of degenerating abelian varieties over complete rings," Compositio Math. 24 (1972) 239–272.
(E. Hirst, T. S. R. Silva, J. Stein) INSTITUTO DE MATEMÁTICA, ESTATÍSTICA E COMPUTAÇÃO CIENTÍFICA (IMECC), UNIVERSIDADE ESTADUAL DE CAMPINAS (UNICAMP), CAMPINAS, BRAZIL Email address, E. Hirst: ehirst@unicamp.br Email address, T. S. R. Silva: tomas@ime.unicamp.br Email address, J. Stein: jstein@unicamp.br
(T. Schettini Gherardini) MATHEMATISCHES INSTITUT, UNIVERSITY OF BONN, BONN, GERMANY
(T. Schettini Gherardini) MAX PLANCK INSTITUTE FOR MATHEMATICS, BONN, GERMANY Email address, T. Schettini Gherardini: tsg@math.uni-bonn.de