- Home
- Library
- Computational Quantum Field Theory
- Computing and Following Spectra
- Neural Solvers for Spectral and Boundary Response
Neural Solvers for Spectral and Boundary Response
A boundary response can become large because an operator is close to an eigenvalue. Learning that response directly asks a smooth network to approximate a pole. A better starting point is often the smooth shooting determinant whose zeros locate the singularities—but a small determinant error can still move a pole appreciably.
We train two small determinant surrogates for an exactly solvable Dirichlet operator and compare them with direct shooting, collocation, independent eigenvalue counts, and polynomial fits to the same data. The calculation preserves both failed extrapolation and optimizer stopping: one neural fit shifts the fourth zero far from the physical eigenvalue, while the other does not find it in the tested range.
Preparation: A linear boundary-value problem, eigenvalues, and a simple pole. Generalized eigenproblems and complex spectral roots discuss conventional spectral diagnostics. Here the spectral parameter is real and the operator is self-adjoint; it is not a quasinormal-frequency calculation.
Normalize before learning a spectral equation
Extend the chapter's positive Dirichlet operator
by a spectral shift . Set
The homogeneous equation becomes
Minimizing only a homogeneous residual permits at every . We instead fix the shooting normalization
It defines a unique nonzero initial-value solution for every . The endpoint data are
At , . At negative , the same functions are
The square-root representations change form, but the power series
are entire. There is no branch point or eigenvalue at . Multiplying or dividing a spectral equation by a vanishing factor can manufacture an apparent root, so the removable limit must be retained.
The Dirichlet eigenvalues are the zeros of :
Endpoint analysis must precede discretization in a more general problem as well. Jansen, §§2.1–2.3, Eqs. (4)–(13) describes endpoint-adapted fields, cardinal discretization, and matrix eigenproblems for black-hole modes. Our elementary self-adjoint example uses none of its horizon or metric conventions; it isolates the normalization and spectral-validation questions.
A boundary source and its flux
Now prescribe a unit source at the right endpoint:
When ,
The sign defines the right outward flux. It is not a separately asserted retarded Green function.
Differentiate to find
Because , the pole has the form
The positive residue follows from the chosen outward-flux convention and from converting . The zeros of , at , are not Dirichlet eigenvalues.
At a true pole the boundary problem (9) has no finite solution. A relative field-error claim exactly there is meaningless. To assess a surrogate, inspect the smooth determinant, its roots, and its behavior at declared offsets from the poles.
Learn a smooth determinant with hard normalization
Use the real-axis model
All 49 real parameters are optimized. The exact determinant is entire, but a finite model generally has complex poles. We therefore call a smooth real-axis surrogate and do not infer its complex analyticity from a successful real fit.
Tie the derivative response and reconstructed shooting field to the same function:
Then and hold exactly. Dividing by , when nonzero, also enforces both boundary values in (9). This removes trivial normalization failure without pretending that the interior differential equation is solved.
Indeed, with ,
We evaluate this defect away from the training points. Normalizing the field by a small endpoint determinant can amplify it further.
There is a subtle built-in identity. At any simple surrogate zero , (14) forces . Its flux residue is consequently , even if is wrong. Recovering that algebraic residue relation is a check of the construction, not an independent validation of the pole.
The need to exclude zero functions also occurs in variational eigenvalue calculations; see E and Yu, §3.5, Eqs. (20)–(23). Here the initial derivative in (4), rather than a norm penalty, specifies the amplitude.
A fixed fit and conventional alternatives
Training labels are actual integrations of (3)–(4) at 81 Chebyshev–Lobatto values of in . The DOP853 solve uses relative tolerance , absolute tolerance , and maximum step . Tightening these at nine predetermined nodes changes the endpoint data by at most . The exact expressions (5)–(7) check the numerical labels; their series coefficients are not supplied to the fit.
The loss is
Two initializations and the full optimizer settings are fixed before fitting. Each L-BFGS-B run has a maximum of 800 iterations and a hard maximum of 1600 objective/gradient evaluations, enforced inside the objective wrapper. The last accepted state is retained on a budget stop. Both actual runs stop earlier on a relative objective-change criterion:
| Start | Objective evaluations | Final loss | Gradient infinity norm |
|---|---|---|---|
| 0 | 694 | ||
| 1 | 213 | 0.133 |
Both optimizer success flags are true, but neither final gradient meets the separately declared target. Neither fit is discarded, restarted, or replaced by a better test result.
For a conventional comparison, fit
where is a Chebyshev polynomial of degree 8, 16, or 32. A linear least-squares solve uses the same labels, weights, and normalization as (16). The degree is fixed rather than selected from the test data.
The nominal test set has 256 independently drawn values in . Two further fixed grids, each with 129 points, cover and . These are deterministic approximation errors, not estimates with observational noise:
| Method | Nominal RMSE | Negative-range RMSE | Positive-range RMSE |
|---|---|---|---|
| Neural start 0 | 0.02996 | 0.2123 | |
| Neural start 1 | 0.01459 | 0.3714 | 0.4708 |
| Chebyshev degree 8 | 0.9749 | ||
| Chebyshev degree 16 | |||
| Chebyshev degree 32 |
The low-dimensional analytic problem favors a simple polynomial. Increasing its degree from 16 to 32 does not improve the retained result and badly damages extrapolation. This is a finite-data and finite-precision comparison, not a general theorem that polynomial or neural methods must dominate.
The dots in the left panel are true Dirichlet zeros. The shaded interval on the right is the training range. The displayed extrapolation failures are retained from the fixed fits; no new training data were added to repair them.
Count modes independently and inspect their locations
The physical problem supplies several independent spectral tests. Direct shooting locates sign-bracketed zeros without seeding the solver with exact eigenvalues. Chebyshev collocation at orders 24 and 40 diagonalizes the Dirichlet operator after forming the full second derivative and removing endpoint unknowns. An independent symmetric finite-difference matrix, with 128 and 256 interior points, counts negative pivots of .
At positive non-eigenvalue endpoints, the exact continuum count is
The finite-difference counts agree at the eight prescribed endpoints, including three modes below and four below . A finite-matrix inertia is still a count for that discretization; the analytic result and refinement connect it to the continuum problem here. The collocation eigenvalues are real within the recorded arithmetic checks; algebraic and off-grid residuals are reported separately.
Each surrogate is searched on a fixed 4097-point grid over , with sign changes refined by a scalar root solver. This diagnostic cannot prove that every zero of an arbitrary function was found, since an unresolved pair or a touching zero could be missed.
| Root | Exact | Neural start 0 | Neural start 1 |
|---|---|---|---|
| 1 | 9.86960 | 9.86935 | 9.44441 |
| 2 | 39.47842 | 39.48702 | 39.41586 |
| 3 | 88.82644 | 88.84442 | 89.08366 |
| 4 | 157.91367 | 138.26758 | None found |
Even start 0's count of four is insufficient: its fourth zero is far from the fourth physical eigenvalue. The degree-16 polynomial gives , while degree 32 produces an out-of-range zero at . Counts, positions, and refinement answer different questions.
Near a simple true zero, a small determinant error shifts the inferred root approximately by
The same shift can produce a very large response error. At and , start 0 has absolute flux error about , despite its nominal determinant RMSE of only . All offsets , , and are retained. A typical smooth-function error does not certify a pole-resolved observable.
Changing while holding fixed simply rescales the known map to physical and flux units. The companion checks this translation explicitly; it is not evidence of newly learned parameter extrapolation.
A source can hide an operator pole
Return to homogeneous Dirichlet endpoints and a constant bulk source:
The normalized eigenfunctions are . Their overlap with the constant source vanishes for even , giving
Equivalently,
Its limit at is . At ,
recovering the chapter's scalar response.
At an even- eigenvalue the full inverse operator is singular, but (21) has a finite continuation because the specified source has zero overlap with that eigenfunction. The inhomogeneous equation is compatible there but not uniquely solvable; adding the invisible even mode does not change its integrated response. Pole cancellation in one measured quantity is not absence of the mode. The boundary-flux response (10) instead sees every Dirichlet pole.
Summary
Hard normalization removes the trivial homogeneous solution, and learning a smooth determinant avoids fitting an explicit divergence. Neither step guarantees accurate eigenvalues or extrapolation. Independent shooting, discretizations, counts, and near-pole probes are essential. The retained example also shows why optimizer success is weaker than a gradient target, why an architecture-imposed residue identity is not an independent check, and why a scalar response can hide eigenmodes through its source overlap.
Exercises
1. Obtain the determinant and its flux residue
Solve the normalized shooting problem, derive (11)–(12), and show why is not a Dirichlet eigenvalue. Explain what is lost if the initial derivative is not fixed.
Solution
For , the initial conditions give , hence and . Differentiating with ,
At , and . Therefore
The power-series limit gives , so ; the right homogeneous Dirichlet condition is not satisfied. At negative , the hyperbolic expression has no real zero.
Without , the equation and the left homogeneous boundary condition permit the identically zero function for every . It has zero residual and zero endpoint value but contains no eigenvalue information. The prescribed derivative fixes a nonzero shooting solution before its endpoint is tested.
2. Explain the missing even poles
Derive (21) and (22) for the constant bulk source. Evaluate the and limits and explain what the finite value at an even- eigenvalue means.
Solution
For ,
The squared overlap is for odd and zero for even . Expanding the resolvent between two constant sources gives (21), away from the operator spectrum.
For , solve in a form symmetric about the midpoint:
Integrating gives (22). Since , the response is . At , ; replacing the trigonometric functions by their hyperbolic continuations yields (23).
At , the expression (22) is finite. The source is orthogonal to the corresponding eigenfunction, so a particular forced solution exists, but any multiple of that homogeneous mode can be added. Its integral is zero. The scalar response thus has a unique finite continuation while the full operator inverse still does not exist at that eigenvalue.
References
- W. E and B. Yu, “The Deep Ritz Method: A Deep Learning-Based Numerical Algorithm for Solving Variational Problems,” arXiv:1710.00211v1, HTML, §2 and §3.5, Eqs. (20)–(23), for the distinction between trial functions, numerical objectives, and normalization.
- A. Jansen, “Overdamped Modes in Schwarzschild-de Sitter and a Mathematica Package for the Numerical Computation of Quasinormal Modes,” arXiv:1709.09178v2, HTML, §§2.1–2.3, Eqs. (4)–(13), for endpoint reduction and conventional spectral discretization.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.