Njord: A Probabilistic Graph Neural Network for Ensemble Ocean Forecasting

summary

Video file (mp4)

The gist

The gist Njord introduces a probabilistic data-driven model for ocean forecasting that combines deep latent variable frameworks with graph neural networks to provide calibrated ensemble forecasts and

In short

Njord is a probabilistic model for ocean forecasting that uses deep latent variables and graph neural networks to generate ensemble forecasts with uncertainty estimates for global and regional oceans. It scales by adapting graph structures to irregular coastlines, achieving strong performance on benchmarks like OceanBench while providing calibrated uncertainty crucial for operational decision-making.

Key concepts

Deep Latent Variable Framework
This is a deep learning structure where the model compresses complex ocean data into a lower-dimensional, hidden representation called the latent variable (Zt). This learned latent state captures the underlying, unobserved dynamics of the ocean system. By sampling from this learned distribution, Njord generates multiple possible future states for forecasting.
Graph Neural Networks (GNNs)
GNNs are neural networks specifically designed to operate on graph-structured data. In Njord, the ocean grid points are treated as nodes in a graph, and the connections between them represent spatial relationships. The GNN architecture allows the model to effectively learn how changes at one point influence neighboring points across the entire forecasted area.
Continuous Ranked Probability Score (CRPS)
CRPS is a metric used to evaluate probabilistic forecasts. It measures both the accuracy of the predicted mean value and the sharpness or spread of the predicted probability distribution. By optimizing against CRPS, Njord ensures that its ensemble forecasts are not only accurate but also provide well-calibrated uncertainty estimates.
K-means Cluster Meshes
These are specialized graph layouts used to handle irregular ocean geometries. Instead of using a uniform grid, K-means clusters the 3D coordinates of ocean points to create nodes that conform better to the actual shape of the sea surface. This adaptation allows Njord to accurately model regional areas like the Baltic Sea with complex boundaries.

Terminology used across episodes

This episode discusses

The paper

Njord: A Probabilistic Graph Neural Network for Ensemble Ocean Forecasting · Read on arXiv

Daniel Holmberg, Joel Oskarsson, Erik Wikingsson, Fredrik Lindsten, Teemu Roos

University of Helsinki · ETH AI Center

Ocean dynamics are inherently chaotic, yet existing machine learning ocean models produce only deterministic forecasts. We introduce Njord, a probabilistic data-driven model for ocean forecasting, applicable to both global and regional domains. Njord combines a deep latent variable framework with a graph neural network architecture, enabling sampling each forecast step in a single forward pass. We apply Njord globally at 0.25° resolution and regionally to the Baltic Sea at 2 km resolution. To scale to these large ocean grids we introduce K-means cluster meshes that adapt to irregular sea surface geometry. Experiments demonstrate strong performance on both domains compared to deterministic machine learning baselines, while also providing uncertainty estimates from the sampled ensemble forecasts. On the global OceanBench benchmark, Njord achieves the lowest errors on average across upper-ocean variables when evaluated against real-world observations, with the largest improvements in surface temperature prediction.

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Today's paper: "Njord: A Probabilistic Graph Neural Network for Ensemble Ocean Forecasting".

Jane: The gist Njord introduces a probabilistic data-driven model for ocean forecasting that combines deep latent variable frameworks with graph neural networks to provide calibrated ensemble forecasts and uncertainty estimates for…

Tom: First, who's behind it and why it matters.

Title and authors: Tom: So we're looking at Njord today, which is this new probabilistic data-driven model for ocean forecasting. It’s designed to give us calibrated ensemble forecasts and uncertainty estimates for both global and regional ocean domains, which is pretty significant because most existing models just give you one answer.

Jane: That sounds like a big deal when you're dealing with chaotic systems like the ocean, Tom. What does this model actually combine? What's the core idea behind Njord?

Tom: Well, it combines a deep latent variable framework with a graph neural network architecture. The main mechanical thing is that it lets us sample each forecast step in a single forward pass, which is pretty efficient for these kinds of complex models.

Lu: Exactly, and what makes the GNN part interesting is that they use the hierarchical Graph Neural Networks from Graph-EFM to capture those spatial relationships over the entire forecasted area. It’s about mapping gridded inputs to latent representations on this mesh graph, where stochasticity from a learned latent variable Zt affects all of the outputs >

Meng: I gotta ask, how does it handle the sheer size of these ocean grids? If we're talking global models at zero point two five degree resolution, that sounds computationally heavy <ref:2605.15470#pg1>.

Tom: That’s where they introduced something specific for scaling up: a clustering-based graph layout constructed via spherical K-means clustering of ocean grid point three dee Cartesian coordinates with latitude-based area weights <ref:2605.15470#pg2>. It’s designed to place nodes based on the density of those grid points to better conform to the irregular geometry of the ocean surface >

Jane: So, it's not just using a standard fixed mesh, but dynamically building the graph layout based on where the ocean data actually is, which makes sense for irregular coastlines. What about training? How do they teach this thing to be reliable?

Tom: They use a combination of the Evidence Lower Bound loss and the Continuous Ranked Probability Score loss. The full loss function involves an expectation term, a KL divergence term to regularize the latent variable Zt, and then they add the CRPS term for calibration >

Lu: And they trained it using a curriculum approach. They gradually activate things, starting with pure autoencoder training before introducing the KL divergence term and finally enabling the CRPS loss. For Njord-Baltic specifically, they trained it for three hundred fifty epochs following a staged curriculum that begins with pure autoencoder training >

Meng: Three hundred fifty epochs sounds like a lot of time on expensive hardware. And how do we know it’s actually learning physics, not just memorizing patterns?

Lalam: The paper states they are tackling the forecasting task of mapping a sequence of initial ocean states X−p+one:zero = (X−p+one <ref:2605.15470#pg2>..., Xzero), where p is the number of past steps to a sequence of future states Xone:T = (Xone..., XT) >

Title and authors: Jane: So we’re mapping past ocean states to future ones. And the input forcing F−p+one:T includes known dynamic factors like the day of year, static features like depth, and atmospheric forcing at the surface from a weather model > <ref:2605.15470#pg2>

Tom: Right, and that forces it to account for things like wind, pressure, and temperature driving surface dynamics. That's how you get those initial conditions into the model >

Lu: And on page two of this work they mention that in a regional setting Njord also conditions on boundary data from an independent global ocean model, which is interesting because previous emulators either lack boundary forcing or depend on data from the very system they aim to replace at the boundary > <ref:2605.15470#pg1>

Meng: That means it’s not just predicting the future in isolation; it’s using external information, which is good for realism but adds complexity to deployment. What about sea ice? I saw a mention of how they handle that.

Tom: They model sea ice by incorporating physical constraints instead of post-processing them. They use a density channel mechanism where they construct a binary density channel d from Sea Ice Concentration SIC as d equals I

SIC > zero: > <ref:2605.15470#pg1>

Jane: So, instead of just guessing the ice, the model predicts this density logit, and then it passes that through a sigmoid and thresholded at zero point five to set the density channel and ice variables to zero in the next state if it falls below that threshold >

Lu: That’s an enhancement over just predicting a raw value because it enforces physical reality for those specific variables, ensuring locations predicted to be ice-free get clean zero-ice inputs rather than small residual values that might accumulate over rollouts >

Meng: That sounds like a solid fix for the sea ice representation. Now, what about the results? How did it compare to those deterministic machine learning baselines they used?

Tom: In their experiments, they demonstrate strong performance on both global and regional domains compared to deterministic machine learning baselines > On the global OceanBench benchmark, Njord achieves the lowest errors on average across upper-ocean variables when evaluated against real-world observations >

Jane: That’s a key finding. Lower errors on real data is one thing, but what about uncertainty? The paper focuses heavily on providing those uncertainty estimates from the sampled ensemble forecasts >

Tom: They also show that the ensemble spread exhibits good calibration, as reflected by the Spread-Skill Ratio SSR which increases steadily toward one > On Njord-Baltic at two km resolution, they achieved errors comparable to a deterministic baseline while still providing probabilistic forecasts > <ref:2605.15470#pg2>

Title and authors: Lu: That’s a solid comparison. The paper also shows that increasing the ensemble size to M = twenty yields a systematic RMSE reduction across all evaluated variables and depth levels >

Meng: Increasing the ensemble size is always good for uncertainty estimation, but running twenty members at once sounds like it would push the computational cost up significantly in a production environment. What about scaling this to even higher resolutions?

Tom: They address scaling by modifying the Interaction and Propagation Networks to use separate dimensionalities for grid embeddings, edge representations, and graph node representations > And for global zero point two five degree resolution, they use a two-stage training schedule: pretraining on one degree resolution data followed by finetuning at zero point two five° > <ref:2605.15470#pg2>

Jane: So they’ve built a framework that adapts to both the spatial structure of the ocean and the physical constraints of sea ice, all while providing calibrated uncertainty estimates, which is what we need for operational use. So, where does this leave us?

Tom: Well, it positions Njord as a probabilistic generative machine learning model for global and regional ocean forecasting that successfully scales generative ensemble modeling to high-resolution ocean grids with irregular coastal geometries >

Jane: It really sounds like a step forward in moving ocean AI from just deterministic answers to providing the uncertainty needed for better decision making about things like currents or sea ice > So, we've seen how Njord works and what it achieves on its own. Now let’s see what the authors are suggesting they should do next >

Lu: The paper suggests scaling to large ocean grids by modifying those Interaction and Propagation Networks for separate dimensionalities, which is a good direction for future work > They also mention applying the framework regionally to construct Njord-Baltic using quadrilateral graphs, which is useful for regional models >

Meng: I wonder if that scaling mechanism will be easy to implement on existing cloud infrastructure. If we have to completely restructure how the embeddings are handled across different dimensionalities, that’s a big engineering lift >

Lalam: The authors also showed how increasing the ensemble size to twenty reduces RMSE systematically, so perhaps pushing that ensemble size further is something worth exploring for better uncertainty quantification >

Tom: Yeah, it’s about getting more reliable estimates. So this paper is Njord: A Probabilistic Graph Neural Network for Ensemble Ocean Forecasting, and it shows how probabilistic graph neural networks can handle the complexity of ocean forecasting > We've covered the architecture, the training methods, and the results on performance versus deterministic models.

Jane: It’s a solid piece of work that moves us closer to having AI models that give us not just a prediction, but a probability distribution about what might happen in complex environments like the ocean > We’ll see what else is coming from this research next >

The paper's summary: Tom: So to recap, Njord is this new model for ocean forecasting that uses deep latent variables and graph neural networks to give us ensemble forecasts and uncertainty estimates for both global and regional ocean areas >

Jane: That’s right, Tom, it’s moving away from just giving you one single answer because the ocean is so complex >

Tom: Exactly. The core idea here is that they let the model sample each step of the forecast in just a single forward pass which makes it pretty efficient for these huge calculations >

Jane: And what really stands out, I think is how they handle those massive ocean grids, especially when dealing with irregular coastlines, because most models use fixed shapes >

Tom: They built a unique graph layout by doing a spatial K-means clustering of the ocean grid point three dee Cartesian coordinates using latitude-based area weights >

Jane: That means the model’s structure actually conforms to where the ocean data is located, which is a big improvement over just sticking to a standard mesh >

Tom: Right. And for training, they use a combination of losses—the Evidence Lower Bound loss and the Continuous Ranked Probability Score loss—to make sure it's both accurate and calibrated >

Jane: I’m really curious about how this translates into real-world predictions, because that’s where the uncertainty estimates matter most for folks who actually need to make decisions about currents or sea ice >

Tom: The experiments show strong performance against deterministic machine learning baselines on both global and regional scales > On the global OceanBench benchmark, Njord achieves lower errors on average across upper-ocean variables compared to real-world observations >

Jane: That’s a solid number to have, but what about the reliability of those predictions? Does it actually give you a good sense of how wrong it might be?

Tom: They show that the ensemble spread has good calibration, which they measure using the Spread-Skill Ratio or SSR, and that number increases steadily toward one > This means the uncertainty estimates are actually trustworthy >

Jane: So, even when things get complicated in places like the Baltic Sea at a two kilometer resolution, it still delivers probabilistic forecasts comparable to traditional deterministic models >

Tom: Precisely. And they also found that if you increase the ensemble size to twenty members, you see a systematic reduction in the root mean square error across all variables and depth levels >

Jane: It sounds like this model is getting really good at capturing the messy physics of ocean dynamics while giving us reliable probabilistic outputs >

Tom: So Njord is positioned as a probabilistic generative model for ocean forecasting that scales to high-resolution grids with irregular shapes, providing calibrated uncertainty estimates for operational use >

Jane: And it sets up some interesting questions about how we can use this kind of AI to help us make better decisions about our oceans and the weather >

The paper's improvements: Tom: So, we’re talking about how they plan to make Njord even better now that they have this initial version >

Jane: Right, Tom, what are the specific tweaks they suggest for future work? They can't just stop at a good result when you’re dealing with something as vast as the ocean >

Tom: The authors say the framework is scalable to large ocean grids by modifying those Interaction and Propagation Networks to use separate dimensionalities for grid embeddings, edge representations, and graph node representations >

Jane: So they are looking at how to handle scaling up the model structure itself so it can manage bigger datasets without breaking >

Tom: And for going even larger, say to global zero point two five degree resolution, they propose a two-stage training schedule: pretraining on one degree resolution data followed by finetuning at that finer resolution >

Jane: That means you start with a big picture view and then refine it down to very fine detail without starting completely from scratch >

Tom: They also mention applying the regional Njord model to the Baltic Sea using quadrilateral graphs instead of the general mesh graphs used for global models >

Jane: That’s interesting because it shows they are tailoring the graph structure specifically to regional geometries, which we already talked about earlier >

Tom: And on ensemble size, they showed that increasing the ensemble size up to twenty members leads to a systematic reduction in the root mean square error across all variables and depth levels >

Jane: That’s concrete evidence that more members in your forecast actually gives you a better prediction, not just more noise >

Tom: So, beyond those specific scaling points, the main implication is that Njord proves probabilistic graph neural networks can handle the complexity of ocean forecasting on a massive scale >

Jane: It moves us past just deterministic answers and into a realm where we can quantify risk and uncertainty in our predictions about ocean currents or sea ice >

Tom: Exactly. The paper shows they’ve built something that matches or beats deterministic machine learning models while providing well-calibrated uncertainty estimates which is crucial for operational use >

Jane: So, the next thing we need to figure out is how this kind of AI can actually get integrated into a real ocean modeling system for decision making >

Conclusion: Tom: So to wrap up, Njord is this model for ocean forecasting that uses probabilistic graph neural networks to give us ensemble forecasts and uncertainty estimates for both global and regional domains >

Jane: That’s right, Tom, it really moves the field from just giving you one answer to showing you the range of possibilities when dealing with chaotic systems like the ocean >

Tom: They showed strong performance against deterministic machine learning baselines on both global and regional scales using a combination of latent variables and graph neural networks >

Jane: And they did it in a way that gives us reliable uncertainty estimates, which is what operational users need to understand risk in things like sea ice or currents >

Tom: Yeah, the calibration of that ensemble spread using the Spread-Skill Ratio shows the uncertainty estimates are actually trustworthy, increasing toward one as expected >

Jane: It’s a really solid piece of work because it shows AI can handle the irregular geometry of the ocean while giving us measurable confidence in its predictions >

Lu: The ability to map gridded inputs to latent representations on a graph structure based on spatial K-means clustering is a powerful way to handle those complex, non-uniform shapes in ocean modeling >

Meng: From an engineering standpoint, getting that level of performance across both global and regional domains is impressive, but I'm still thinking about the computational cost of running twenty ensemble members at once >

Lalam: I’m pretty sure this approach to conditioning the latent variable Zt via KL divergence regularization is what makes the stochasticity in the forecast step actually useful rather than just random noise >

Tom: It seems like Njord successfully scales generative ensemble modeling to high-resolution ocean grids with irregular coastal geometries >

Jane: It certainly sets a high bar for how we can use AI to predict complex, dynamic natural systems and provide those necessary probability distributions >

Lu: The next step in this research direction would be exploring how these graph structures could be dynamically adapted during the forecast itself based on real-time observations >

Meng: If you could optimize the way the embeddings are handled across different dimensionalities, that would make it much easier to deploy this kind of model in a production environment >

Lalam: I’m confident that Njord provides a very reliable foundation for using generative models in forecasting complex physical processes like ocean dynamics >

Tom: We've seen how Njord works and what it achieves on its own, so we'll keep an eye on these scaling improvements as the research continues >

More episodes

← Home