Coordinate local numerical fields
Each station represents a numerical subdomain with an explicit physical state.
Abstract
This paper specifies a graph representation for the DLEGOS cell-based atmospheric world model. Nodes store local states and geometry, while edges represent physically declared shared interfaces. We distinguish learned information messages from transported physical quantities and derive a conservative update based on an oriented incidence matrix. The construction makes internal cancellation explicit even when a learned model supplies edge fluxes. A two-cell analytical example and an interactive spatial lattice illustrate the relationship between topology, coupling and time evolution. The framework remains a proposed architecture: a rotating lattice is a visualization, and a conservative heat exchange is not a complete atmospheric solver. The thesis contribution is an auditable interface specification and a set of tests that can separate graph expressivity, physical accounting and predictive usefulness.
Keywords: graph neural networks; finite volumes; fluxes; DLEGOS; world models
Thesis connection. This develops the local coupling mechanism to be tested under sparsity, corresponding to hypothesis H2. Read the hypotheses.
1. A cell plus a time history
DLEGOS uses “tesseract” to describe a spatial control volume together with its temporal trajectory. The graph at a fixed time contains the active atmospheric cells above terrain. A trajectory connects successive states of the same cell. Spatial edges and temporal dependencies therefore have distinct meanings. The website’s three-dimensional lattice is a spatial slice of this representation, not a numerical proof that time is reversible or that a literal four-dimensional hypercube is being integrated.
Graph-based learned weather prediction supplies a relevant architectural precedent; GraphCast demonstrates learned message passing for global forecasting. [1] That precedent motivates evaluating graph representations, but does not establish a novelty claim for DLEGOS or guarantee that an arbitrary message-passing layer conserves physical quantities. Novelty must be tied to the proposed interface constraints, observing conditions and tested outcomes.
2. State variables, geometry and physical meaning
Each node should distinguish prognostic quantities from diagnostics and prescribed inputs. A minimal heat experiment stores sensible-heat capacity and temperature; a moist atmospheric extension needs a thermodynamically consistent set of mass, momentum and energy variables. Pressure derived from a prescribed column differs from pressure evolved with a compressible dynamical core. The selected equations, coordinate system and approximations must be declared together. [2]
Each edge stores an orientation, shared face area, centre separation and boundary type. Terrain cells that do not share an open atmospheric face should not exchange a physical flux merely because their display cubes are nearby. Conversely, a learned information graph may use additional long-range edges. Such edges can convey context but should not silently become pathways for nonlocal mass transport. The architecture should maintain separate information and transport graphs when their semantics differ.
3. Incidence matrices and conservative learned fluxes
Choose one orientation for each internal edge. Let Bᵢₑ equal +1 at the receiving cell, −1 at the sending cell and zero elsewhere. Let qₑ be the extensive transfer rate in the chosen orientation. The update acts on the extensive stored quantity U, rather than applying equal temperature increments to unequal cells.
A neural edge function may produce qₑ from neighbouring states, geometry and available environmental context. Using the same predicted qₑ for both endpoints preserves cancellation. It does not guarantee stability, positivity, accurate constitutive behaviour or correct boundary forcing. Those are separate constraints and tests. For unequal capacities Cᵢ and Cⱼ, a transfer Q changes temperatures by Q/Cᵢ and −Q/Cⱼ, respectively; equal-and-opposite temperature increments would generally violate energy accounting.
A physics-informed residual can complement this structure, following the broader PINN approach, but the roles differ. [3] A residual asks whether the learned state obeys selected local equations. The incidence construction fixes how an internal transfer is booked. Combining them requires consistent operators and nondimensional scaling; simply adding more terms does not ensure a meaningful objective.
4. Interactive topology and temporal exchange
The interactive lattice shows adjacency and permits selection without relying on the visual rotation. It intentionally does not depict a learned weather forecast. The accompanying analytical heat example makes a physical distinction that the spatial diagram alone cannot express: a smaller capacity changes temperature faster under the same exchanged energy. The capacity-weighted equilibrium follows from the invariant total energy and need not equal the arithmetic mean.
5. Tests that distinguish architecture from performance
Unit-level verification should confirm orientation, unique shared edges, boundary labels and the zero column sum of B. A closed, unforced exchange test should preserve the extensive domain total within a precision-scaled tolerance. A forced case should close only after the applied source is included. A deliberately asymmetric edge prediction should fail the conservation test, demonstrating that the diagnostic can detect the fault.
The empirical ablation should compare independent node updates, standard message passing and shared-edge conservative updates under matched inputs and comparable capacity. Report long-rollout drift and withheld predictive error. Add topology perturbations and missing-observation tests, but retain a physically valid transport graph. If long-range informational edges improve skill, interpret the gain as improved context unless a separate experiment identifies a physical transport benefit.
For the existing terrain workbench, the learned atmospheric graph remains proposed; the implemented shared-face heat network is a reduced example. A complete extension requires moisture reservoirs, consistent momentum and energy exchange, terrain boundaries and external forcing. The graph formulation is a bookkeeping framework for those choices, not a substitute for them.
6. Interpretation and research contribution
The graph construction yields a clear mathematical guarantee under stated assumptions: internal extensive transfers cancel. It leaves the dynamics and observational adequacy open to evaluation. This division is useful because architectural claims can otherwise become entangled with impressive but scientifically ambiguous visualizations.
The thesis contribution would arise from showing that a specified conservative graph formulation improves a defined prediction task, particularly under sparse observations or extended rollouts, compared with strong alternatives. The next step is to implement a single learned closure with archived training data and an explicit budget, before expanding to a multi-variable world model. The present paper supplies the formal interface and its executable illustrations.
7. Mathematical derivation and development
7.1 From oriented faces to a graph diffusion operator
Use B with a negative entry at the sender and a positive entry at the receiver of each internal edge. For a node-temperature vector T, BᵀT is therefore receiver minus sender. Heat should move down this difference. With a positive edge conductance vector G, define q = −diag(G)BᵀT. Applying Bq deposits each edge transfer into its receiving cell and removes the same transfer from its sending cell. Let C be the diagonal matrix of positive heat capacities.
Each column of B sums to zero, so the total C-weighted temperature is invariant in a closed unforced system. Moreover, the constant vector is in the null space of L_G. A spatially constant temperature therefore has zero tendency. This provides a second implementation check beyond total-budget closure: a sign or indexing error can sometimes preserve a sum while incorrectly moving heat between equal-temperature cells.
7.2 Proving dissipation, and separating it from energy conservation
Let μ = (1ᵀCT)/(1ᵀC1) be the capacity-weighted mean. Define V = ½(T−μ1)ᵀC(T−μ1). Since μ is invariant, differentiate V and substitute the graph update. The constant component vanishes under Bᵀ, leaving a negative sum of squared edge temperature differences. This proves continuous-time dissipation for non-negative conductances. It is a variance-like quadratic functional, not the total sensible energy and not a full thermodynamic entropy.
The explicit convexity bound derived in Paper 1 prevents new extrema for this pure diffusion update. Non-negative G alone does not make arbitrarily large Euler steps stable. State-dependent learned G must be recomputed at the old state and the time-step condition checked again. If a model represents advective, counter-gradient or active processes, a positive diffusive closure may be an inadequate physical class, even though it is easy to stabilise.
7.3 A positive shared-edge neural closure
The executable companion uses an edge multilayer perceptron. Each edge receives three dimensionless constructed descriptors, a tanh hidden layer with eight units and a scalar output mapped through softplus. One shared parameter set supplies all edge conductances. Geometry or endpoint-state descriptors for a physical implementation should be invariant to arbitrary node numbering. A descriptor built from endpoint means and absolute differences can preserve endpoint symmetry; a directed advective flux needs a different transformation rule.
The network is an edge closure inside a conservative discretisation. It is not a coordinate-based PINN solving the complete atmosphere. Positivity fixes the direction of diffusive exchange, while the shared incidence update fixes its accounting. Learning cannot independently alter the two sides of one shared face. The scientific novelty of a future DLEGOS model would require comparison with relevant existing conservative architectures, rather than relying on this bookkeeping identity alone.
7.4 Deriving the parameter gradient explicitly
For a batch of temperature fields, define D=TB, where rows index samples. Predict tendencies P=[(−D⊙G)Bᵀ]C⁻¹, and minimise the mean squared difference from constructed target tendencies Y. Let A=2(P−Y)/N, where N is the total number of batch-by-node scalar outputs. Applying the chain rule first through the capacity scaling and incidence operation gives the derivative with respect to edge fluxes. Sum over samples to obtain the conductance derivative.
The implementation checks selected parameter derivatives against centred finite differences before optimisation. It then uses Adam with bias-corrected first and second moment estimates. [4] The network receives no direct true-conductance labels in its loss; it learns from constructed temperature tendencies. Nevertheless, every training target comes from the same declared diffusion operator, so this is a manufactured inverse-model development exercise rather than an independently validated atmospheric problem.
7.5 Executed test and limits of the result
The recorded run uses seed 23, 192 constructed training fields and 96 independent constructed test fields on the same 12-cell closed chain. The generated report records a final training tendency MSE of 1.02829e-05 K² s⁻² and a held-out tendency RMSE of 0.00346409 K s⁻¹. A fixed G=0.4 W K⁻¹ baseline has 0.634466 K s⁻¹ RMSE on that same constructed test set. These values describe this exact artificial problem and must not appear as Jamaican forecasting performance.
The largest tested relative gradient discrepancy is 1.23e-08, and the recorded maximum closed-rollout energy drift is 1.36e-12 J. These numbers are emitted by the runnable source and archived in its JSON report. The tests do not evaluate unseen geometry, missing observations, model mismatch, measurement noise or a data-only neural baseline. Conservation follows from the architecture; the run cannot independently establish that conservation improves forecast accuracy.
The next development stage is to change one of those assumptions at a time: alter geometry, add controlled observational noise, withhold locations and compare matched closures. An atmospheric extension needs physical units, surface and open-boundary forcing, selected moist equations and independent observations. The small learned heat network is a verifiable starting point, not a shortcut around those requirements.
8. A coordinate-conditioned local PINN: proposed development
For the restricted mesoscale reconstruction, use local normalised coordinates ξ=(x̃,ỹ,p̃,t̃) and admissible context cᵢ. A proposed shared trunk has two 64-unit tanh hidden layers and four outputs for u, v, T and q after variable-specific scaling. This is a concrete reference architecture, not a claim that the full atmospheric model has been trained. Coordinates and temporal history have distinct roles: the network represents a field within a known window; a recurrent forecast map would be a separate model.
Each derivative retains its dependence on the trainable parameters. For a layer a=tanh(z), ∂a/∂ξ=(1−a²)∂z/∂ξ and the second derivative includes both the differentiated activation and the second derivative of z. Computing a PDE residual and then detaching it from the parameter graph would remove the intended physics gradient.
For a conservative interface, define a single face state or numerical flux using the two local states, face normal and area. Assign its integrated transfer to the adjacent volumes with opposite signs. A state-continuity penalty can be added where the resolved variables require it, but should not smear a physically meaningful gradient without checking transport error. The moisture budget also needs compatible vertical integration and boundary terms. An exactly shared transfer can still be physically wrong.
Development proceeds through an analytic manufactured field, derivative checks, a known-truth sparse-observation test, and then a real-event reconstruction. Freeze observation masks and noise levels before scoring. Compare a global field, independent local fields, state interfaces, flux interfaces and a weak-constraint assimilation baseline at matched data and compute. Report withheld wind, humidity, integrated vapour transport, moisture-flux convergence and uncertainty separately. The existing NumPy conductance learner executes a simpler discrete physical learning problem; the archived 77-input network executes a daily-temperature component problem. Neither is labelled a trained four-dimensional atmospheric PINN.
References
- [1] Lam et al. (2023). Learning skillful medium-range global weather forecasting. Science, 382, 1416–1421.
- [2] Skamarock et al. (2019). A Description of the Advanced Research WRF Model Version 4. NCAR Technical Note NCAR/TN-556+STR.
- [3] Raissi, Perdikaris & Karniadakis (2019). Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics, 378, 686–707.
- [4] Kingma & Ba (2015). Adam: A Method for Stochastic Optimization. ICLR; arXiv:1412.6980.