Mermaid-GSK vs DIA
How our forecast computes the energy waves trade with each other, and why we stopped approximating it the 1985 way.
What nonlinear transfer does
In a wave spectrum, energy doesn't sit still. Waves of different frequencies and directions interact — most of the time they simply pass through each other, but under specific conditions known as resonant four-wave interactions they "lock in" and exchange energy. This is the four-wave coupling first worked out by Klaus Hasselmann in 1962 [Hasselmann, 1962], and it is the main way a young wind sea grows into longer-period waves.
The resonance conditions — two equations that must both hold
For four waves to exchange energy, they have to maintain a strict balance between the pair that gives energy up and the pair that receives it. Written as equations:
ω₁ + ω₂ = ω₃ + ω₄ (frequency balance)
k₁ + k₂ = k₃ + k₄ (wavenumber balance — vector equation, so direction too)
Important subtlety: the frequencies don't have to be identical, they just have to sum to the same total. Think of it like making change for a dollar. You don't need four quarters — you could use two quarters, four dimes and two nickels. As long as the total comes out right, the exchange is valid. So two medium-frequency waves can interact and produce one higher-frequency (shorter) wave plus one lower-frequency (longer) wave, provided both balance equations are satisfied.
The Hasselmann locus — a figure-eight in k-space
The two balance equations together are surprisingly restrictive. For a given pair of parent waves (k₁, k₂), the set of (k₃, k₄) pairs that satisfy BOTH conditions at once traces out a characteristic figure-eight shape in wavenumber space, known as the Hasselmann locus. Every point on the locus corresponds to one valid resonant quadruplet.
The locus is narrow — most arbitrarily-chosen (k₃, k₄) pairs do NOT land on it and therefore cannot exchange energy with (k₁, k₂). But the ocean's wave spectrum is continuous: every bin is a parent, every bin is a receiver, and millions of quadruplets operate in parallel at every instant. The net effect is a well-defined redistribution pattern across the whole spectrum.
What the coupling actually does to a growing sea
Hasselmann coupling has three visible consequences:
- Downshift (the "red shift"). In a growing sea, the net flow of energy is from higher frequencies (short choppy waves) to lower frequencies (long powerful waves). Mathematically the nonlinear transfer term S_nl has its strongest negative lobe near the spectral peak and a strong positive lobe just below the peak — energy piles up at longer periods as the sea matures. This is a large part of why a young wind sea becomes longer-period sea as it develops.
- Directional spreading. The transfer does not only move energy between periods; it moves it between directions. In our exact calculations it drains the spectral peak and throws energy into two lobes roughly 45° either side of the main direction, plus a ring just below the peak frequency. That pattern (the "butterfly") is one of the things a cheap approximation most easily gets wrong.
- Shape locking. Left to itself, the transfer pushes a wind sea toward a characteristic self-similar shape that is the same, relative to its peak, across a wide range of sea states [Badulin et al., 2005].
Why it's called "nonlinear"
The transfer rate does not scale in proportion to wave amplitude: it scales with the cube of the wave action density. Small waves couple weakly; big waves couple far more than proportionally. That is why it matters most in energetic seas.
Formally, the Boltzmann integral for surface gravity waves is:
dn₁/dt = ∫∫∫ G(k₁, k₂, k₃, k₄) · [n₃n₄(n₁ + n₂) − n₁n₂(n₃ + n₄)] dk₂ dk₃ dk₄
only where: ω₁ + ω₂ = ω₃ + ω₄ AND k₁ + k₂ = k₃ + k₄
Here n is the wave action density (a wave component’s energy divided by its frequency, the quantity wave models carry because, unlike energy, it is conserved when waves meet currents), and G is a coupling coefficient that says how strongly each group of four interacts. The rate is written for wave 1; the full transfer at every point of the spectrum is this sum over all its partners. The products of three n’s are where the nonlinearity lives.
For the mathematically inclined: the two balance conditions enter as delta functions, which collapse the integral onto the Hasselmann locus shown above.
The exact calculation, and why nobody runs it in a forecast
Computing the full integral means adding up every group of four that satisfies both balance equations. The method we use as the exact reference is the one usually called WRT (Webb–Resio–Tracy), based on Webb’s formulation [Webb, 1978]. On our model’s table of 25 wave periods by 24 directions there are 1,469,064 such groups. On a GPU the exact calculation takes about 1.7 seconds per 1,000 ocean cells per time step. Our Atlantic grid has tens of thousands of ocean cells and takes a step every few minutes, so an 8-day forecast with the exact calculation is out of reach for a daily run.
The DIA: one shape, a big multiplier
The Discrete Interaction Approximation [Hasselmann et al., 1985] replaces the full network with a single representative four-wave shape, slides it across the table, and multiplies the result by a large tuned constant to make up for everything it leaves out. It is fast, which is why it became the usual choice in operational wave models.
It is also known to be approximate. On our own grid, scored against the exact calculation with a pattern-match score where 1 is a perfect match:
| Method | Match to exact, typical | Match on the hardest tenth | GPU time per 1,000 cells |
|---|---|---|---|
| Our older DIA code | 0.76 | 0.55 | 26.6 ms |
| WW3’s DIA (our port) | 0.82 | 0.64 | 3.3 ms |
| Mermaid-GSK, 64 patterns (v1) | 0.998 | 0.994 | 23.0 ms |
| Exact (WRT) | 1 | 1 | 1,745 ms |
Measured by us in October 2026 on spectra from model runs the fit never saw. These are scores on our grid with our metric; other studies use other grids and other measures, so numbers from different papers should not be compared directly.
The gap is not only in the total. In the “butterfly” pattern described above, the exact calculation moves energy into two side lobes about 45° either side of the main direction. The DIA we used to run misses those side lobes almost entirely (pattern scores 0.45 and 0.54 on two test spectra, against 0.987 and 0.994 for Mermaid-GSK).
As our wave-models explainer covers, operational models compensate for the DIA’s errors partly through how their other source terms are tuned [Cavaleri et al., 2007]. That makes it hard to swap in a better transfer without retuning everything else, which is exactly what we had to do.
The idea behind Mermaid-GSK
The 1.47 million groups are not 1.47 million different things. Describe each group by where its four waves sit relative to each other, and the same pattern turns up again and again at different places on the table. Moving a pattern to longer waves changes only its strength, by a fixed scaling rule; rotating it changes nothing. On our table there are 11,871 distinct patterns, which we call configurations.
Seen this way, the DIA is one configuration with a large multiplier. So “make a better DIA” becomes a question with a measurable answer: which few configurations, with which multipliers, come closest to the exact calculation? Mermaid-GSK answers it by computer:
- Take a bank of tens of thousands of real buoy spectra and model spectra, each with the exact answer already computed.
- Pick configurations one at a time, each round adding the one that most reduces the remaining mismatch with the exact answer, and refit all the multipliers together.
- Stop at 64 (version 1) or 64 mirror-image pairs (version 2).
- Score only on spectra from stations and model runs the fit never saw.
The name: Gold (our nickname for the exact calculation) Subset, K configurations. Each kept configuration is applied everywhere it fits on the table, so “64 configurations” is tens of thousands of individual four-wave groups per cell (38,640 in v1, 92,832 in v2), not 64. That works because the transfer is concentrated: in v1’s analysis the top 64 configurations carried about 75% of what the exact calculation moves and the top 500 about 99%; a kept configuration with its multiplier also stands in for neighbours that behave alike.
Is this “machine learning”?
Not in the usual sense. The fit is a one-time calculation of the multipliers, against the exact physics (not against buoys or satellites), and the numbers are then frozen. Nothing is learned while the model runs, and it needs no retraining. Fits on different subsets of the data give multipliers that agree to a few per cent and score the same. The DIA has fitted numbers too; they were set by hand in the 1980s.
Version 2 (in the forecast since 21 November 2026)
Version 2 changed three things, each checked against the exact calculation on stations the fit never saw:
- Mirror pairs. Each kept pattern comes with its mirror image, so the transfer has no built-in left–right bias in direction. This gave the biggest single drop in error.
- Conservation in the fit. The fit requires the net energy and wave action moved to match the exact answer, which closed v1’s shortfall on the long-period side of the peak.
- An exact reference with an open short-wave end. The exact reference now accounts for energy that leaves through the shortest waves the model carries (2 seconds), as it would in the real ocean, instead of treating the table’s edge as a wall.
| Against the exact calculation, held-out buoy spectra | v1 | v2 |
|---|---|---|
| Overall error (lower is better) | 0.220 | 0.037 |
| Energy gained on the long-period side of the peak (1 = exact) | 0.836 | 0.987 |
| Energy moved toward longer periods (1 = exact) | 0.858 | 0.995 |
| Interaction entries per cell | 38,640 | 92,832 |
In the forecast itself, v2 made the spectrum shape and the directional spread of wind seas closer to the buoys in all four test periods, and wave height at the buoys slightly worse (by 0.3 to 2 cm). The full before-and-after, including what got worse, is in the v136–v137 model note.
Is it new? Mostly not, and we say so
The core idea was published long before us. The RIAM method of Komatsu and Masuda computes the exact transfer [Komatsu & Masuda, 1996], and its simplified operational form, SRIAM, “approximates an infinite resonant quadruplet with 20 optimized resonance configurations” [Tamura et al., 2008]. Mermaid-GSK is a larger, modern version of that idea. What we add is engineering: the configurations come straight from the exact calculation on the model’s own grid, they are chosen automatically, the fit uses tens of thousands of real spectra with held-out testing, and it runs as one batched GPU operation.
Other routes exist. The Generalized Multiple DIA adds more representative shapes [Tolman, 2013]; the two-scale approximation takes an analytical route [Perrie et al., 2022]; and neural networks have been trained to map a spectrum directly to its transfer, from early work on wind seas in deep water [Tolman et al., 2005] to NLML, which runs inside WAVEWATCH III at about 1.04 times the DIA’s cost and, by its authors’ measure, twice the DIA’s accuracy in global wave energy and mean wave parameters [Ikuyajolu et al., 2026].
What it still gets wrong, and what it costs
- It is not cheap. Against an efficiently written DIA, Mermaid-GSK v1 costs 2 to 7 times as much on a GPU (and v2 has 2.4 times as many entries as v1). It is cheap only relative to the exact calculation. With v2 the whole daily run takes about 45% longer than with v1.
- It needed a different time step treatment. At the exact calculation’s strength, the shortest waves change faster than a 5-minute step can follow, and the plain step overshoots back and forth. The model therefore takes the fastest part of the transfer semi-implicitly: each step looks ahead at how quickly every bin would drain itself (using the exact calculation’s own value for that), so it stays stable at the normal step without caps or clamps. SRIAM’s authors reported trouble with a scheme of this kind with their method [Tamura et al., 2008]; it works for us, but we have not yet published why.
- Two adjustments around it are tuned, not exact. The transfer is scaled down in very light wind (below about 3 m/s), and sped up in cells where the wind is actively feeding the sea. The light-wind scaling dates from spring 2026 and was calibrated on a calm spell at one buoy; the speed-up was calibrated against satellite and buoy scores when Mermaid-GSK was introduced. They are tuned knobs, not physics constants.
- A faithful transfer exposed other errors. When the transfer stopped draining energy by accident, the model held too much energy until the dissipation was recalibrated (see our source-terms article). The current open problem, too much energy in 8–12.5 second waves in steady trade winds, is not fixed by v2.
- Deep water only. The exact reference is a deep-water calculation, so shallow cells near the banks and the coast get the deep-water transfer (as the DIA in our code did too). Shallow water, where the transfer behaves differently, is an open item.
History: MERMAID v10, v11 and V14 (April – October 2026)
Before Mermaid-GSK, this page described MERMAID, our earlier approach. Its first production versions (v10, then v11, spring 2026) learned target spectral shapes from exact solutions on real NDBC buoy spectra and relaxed the model spectrum toward them; we reported a correlation of about 0.89 with the exact transfer for v10, on our grid and our metric at the time. From June to October 2026 production ran MERMAID V14: random forests trained to imitate the exact calculation, retrained daily, with a DIA-family method filling the gaps where the forests were unsure. It worked, but it was complicated, needed daily retraining, and its transfer in young seas was far weaker than the exact one. Mermaid-GSK replaced it on 28 October 2026.
See what it changed
Each release, with what got better and what did not, is in the model notes.
Read the model notes →FAQ
What is Mermaid-GSK?
Mermaid-GSK is the part of our wave model that computes how waves trade energy with each other in groups of four. Instead of the single shape the DIA uses, it keeps 64 matched pairs of the exact calculation’s own interaction patterns, with multipliers fitted once so the result stays close to the exact answer. It has run in the daily forecast since 28 October 2026 (version 2 since 21 November 2026).
Is Mermaid-GSK a neural network?
No. It is a short list of exact interaction patterns with fixed multipliers, fitted once against the exact physics. Nothing is learned while the model runs and it needs no retraining. The earlier MERMAID V14 used random forests; Mermaid-GSK replaced them.
Does it conserve energy?
The four-wave transfer itself only moves energy around. Version 2 was fitted so that the net energy and wave action it moves match the exact calculation, which includes the small amount the exact calculation sends out through the short-wave end of the model’s range. A guard in the model also stops the transfer from creating energy in rare cases.
Is it better than the DIA in the forecast, not just on paper?
Mostly, with costs. Against satellites and buoys, the switch to Mermaid-GSK in October 2026 brought swell period closer to the buoys and lowered the wave-height error against satellites in four test periods; version 2 improved the spectrum shape and directional spread at the buoys but made buoy wave height slightly worse. The details are in the model notes.
References
- Hasselmann, K. (1962). On the non-linear energy transfer in a gravity-wave spectrum. Part 1. General theory. J. Fluid Mech., 12, 481–500. doi:10.1017/S0022112062000373
- Hasselmann, S., Hasselmann, K., Allender, J.H. and Barnett, T.P. (1985). Computations and parameterizations of the nonlinear energy transfer in a gravity-wave spectrum. Part II: Parameterizations of the nonlinear energy transfer for application in wave models. J. Phys. Oceanogr., 15, 1378–1391. doi:10.1175/1520-0485(1985)015<1378:CAPOTN>2.0.CO;2
- Webb, D.J. (1978). Non-linear transfers between sea waves. Deep-Sea Research, 25, 279–298. doi:10.1016/0146-6291(78)90593-3
- Badulin, S.I., Pushkarev, A.N., Resio, D. and Zakharov, V.E. (2005). Self-similarity of wind-driven seas. Nonlin. Processes Geophys., 12, 891–945. doi:10.5194/npg-12-891-2005
- Komatsu, K. and Masuda, A. (1996). A new scheme of nonlinear energy transfer among wind waves: RIAM method — algorithm and performance. J. Oceanography, 52, 509–537. doi:10.1007/BF02239052
- Tamura, H., Waseda, T., Miyazawa, Y. and Komatsu, K. (2008). Current-induced modulation of the ocean wave spectrum and the role of nonlinear energy transfer. J. Phys. Oceanogr., 38, 2662–2684. doi:10.1175/2008JPO4000.1
- Tolman, H.L. (2013). A Generalized Multiple Discrete Interaction Approximation for resonant four-wave interactions in wind wave models. Ocean Modelling, 70, 11–24. doi:10.1016/j.ocemod.2013.02.005
- Perrie, W., Toulany, B. and Casey, M.P. (2022). A generalized two-scale approximation for ocean wave models. Frontiers in Marine Science, 9, 867423. doi:10.3389/fmars.2022.867423
- Tolman, H.L., Krasnopolsky, V.M. and Chalikov, D.V. (2005). Neural network approximations for nonlinear interactions in wind wave spectra: direct mapping for wind seas in deep water. Ocean Modelling, 8, 253–278. doi:10.1016/j.ocemod.2003.12.008
- Ikuyajolu, O., Van Roekel, L., Brus, S. and Thomas, E. (2026). NLML: A deep neural network emulator for the exact nonlinear interactions in a wind wave model. JGR: Machine Learning and Computation, 3. doi:10.1029/2025JH000699
- Mody, D.M. (2026). Accelerated modelling of ocean waves. Transport Phenomena, 1(2). doi:10.1515/tp-2026-0043 (describes the model as of spring 2026; about the paper)
- Cavaleri, L. et al. (2007). Wave modelling — the state of the art. Progress in Oceanography, 75, 603–674. doi:10.1016/j.pocean.2007.05.005