Every rates desk, bank treasury and insurer's ALM committee sees forecasts of the yield curve: from economists, vendors and, increasingly, machine-learning models. The decision is how much weight to give them when setting hedges and duration. The hard benchmark is the forecast that requires no model at all: next month's curve will look like today's.

I tested a deep-learning model (an LSTM network) and the standard factor model used in the literature against that benchmark, on daily US Treasury yields from 1990 to October 2026, forecasting at every month-end from January 2006 and refitting each model once a year on data known at the time.

26.0 bp
Typical one-month surprise in the 10-year yield under 'no change'; the LSTM's was 26.1 bp
+5.1%
Best improvement on 'no change' by the neural network (1-year yield); not statistically significant
−5% to −19%
Diebold-Li factor model versus 'no change', one month ahead: worse at every maturity
2–4 bp
Size of the network's typical forecast moves, against actual monthly moves of 21–27 bp

Executive summary

The question. Should a forecast of the Treasury curve from a neural network, or from the standard factor model, drive hedging and duration decisions over the assumption that yields stay where they are?

The approach. Eight maturities from 3 months to 10 years; 249 one-month and 247 three-month forecasts from January 2006 to October 2026; three models; annual refits with no look-ahead; error, out-of-sample R-squared, a Diebold-Mariano significance test and an illustrative duration-timing overlay.

The answer. "No change" is very hard to beat. The neural network matched it at the long end and improved on it by 4% to 5% at 3 months to 1 year, an improvement that is not statistically significant. The Nelson-Siegel factor model (Diebold-Li), which the academic literature often uses as the benchmark to beat, was 5% to 19% worse than no change at every maturity. Three months ahead, both models lost everywhere.

The decision. Treat any curve forecast, however sophisticated, as unproven until it beats no change out of sample, by maturity and horizon. Size hedges on the distribution of surprises, not on the point forecast.

Business outcomes

DecisionWhat the data showedWhat it means
Steer duration with the factor model5% to 19% more squared error than no change one month ahead; significantly worse at 2Y and 3Y (t = 2.2, 2.1)The textbook model would have added error to every hedge decision
Steer duration with the neural network3.7% to 5.1% better at 3M–1Y, 0.1% to 0.8% worse at 5Y–10Y; best significance t = −1.45Indistinguishable from no change where duration risk lives
Time 10-year duration on the forecastsLSTM +$41.0M over 249 months, Diebold-Li −$51.8M, at $100k per basis point; Sharpe-like ratios 0.22 and −0.28Neither result is distinguishable from luck over 21 years
Size risk on the surpriseOne-month 10-year surprise of 26 bp in normal years, 44 bp in 2022$2.6M to $4.4M a month on a $100k-per-bp book
Use forecasts three months outBoth models worse than no change at every maturityLonger horizons do not rescue the models

Errors are root-mean-square, in basis points, of 249 one-month forecasts made at month-ends from January 2006 to September 2026. The duration overlay takes a long or short position each month on the sign of the 10-year forecast, sized at $100,000 per basis point (roughly $125M of 10-year notes), and counts yield moves only: no carry, roll or trading costs. Illustrative.

End to end in five steps

StepWhat happensOutput
1. SourceDaily US Treasury par yields, January 1990 to October 2026Checksum-pinned public data
2. CurveEight maturities complete since 1990: 3M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y9,211 trading days
3. ModelsNo change; Nelson-Siegel factors with an autoregression per factor; an LSTM network reading the last 21 daysThree forecasters
4. Walk-forwardForecast at each month-end from January 2006; refit each January using only data known then249 one-month and 247 three-month forecasts
5. JudgeError by maturity, out-of-sample R-squared, Diebold-Mariano test, direction, duration overlay, sub-periodsDid any model beat no change?

The data

US Treasury daily par yield curve, via the public defeatbeta Yahoo Finance mirror on Hugging Face (ODC-BY), pinned by checksum. I used the eight maturities with complete history since January 1990 and dropped the 1-month, 2-month and 20-year series, which start later or have gaps. Yields are in percent; forecast errors are in basis points.

The three forecasters

ModelWhat it assumesHow it forecasts
No change (random walk)Next month's curve equals today'sNothing to fit
Nelson-Siegel factors (Diebold-Li)The curve is a level, a slope and a curvature, and each drifts back toward its averageFit the three factors each day; regress each factor's value h days ahead on today's; rebuild the curve
LSTM neural networkRecent daily moves and the curve's shape carry information about the next moveRead the last 21 days of the curve relative to today, plus today's level; predict the change in all eight yields; average three seeds

The LSTM has one layer of 32 units, is trained with weight decay and stops early on the most recent 15% of its training window. At each annual refit, only training examples whose target date is on or before the refit date are used.

The results

Grouped bar chart of one-month-ahead forecast error in basis points by Treasury maturity for no change, the Diebold-Li model and the LSTM
Root-mean-square forecast error one month ahead, in basis points, 249 forecasts from January 2006.

One month ahead, the three models sit within about two basis points of each other at every maturity. No change had a typical 10-year error of 26.0 bp, the LSTM 26.1 bp and Diebold-Li 27.0 bp.

Bar charts of out-of-sample R-squared against no change by maturity for Diebold-Li and the LSTM, one month and three months ahead
Out-of-sample R-squared against no change: the share of squared error removed. Below zero means worse than assuming yields stay put.

The neural network removed 3.7% to 5.1% of squared error at 3 months to 1 year, where yields are anchored by the policy rate and its recent path carries some information. At 5 to 10 years it was slightly worse. The Diebold-Mariano test cannot tell either result from zero: the best t-statistic is −1.45. The factor model was worse than no change at every maturity and horizon, and significantly worse at 2 and 3 years. Fitting three smooth factors and projecting each forward adds estimation error that, at a one-month horizon, outweighs whatever the factors' drift captures.

Line chart of rolling three-year 10-year forecast error of each model relative to no change, 2009 to 2026
10-year forecast error relative to no change over the previous three years. Below 1 means the model was more accurate.

The factor model's worst stretch was the three years to 2015, when its 10-year error ran up to a quarter above no change. The network rarely strayed far from 1 in either direction, because it rarely forecast much at all: its typical forecast move was 2 to 4 bp, against actual monthly moves of 21 to 27 bp. Trained honestly, it learned that the best guess is close to no change.

Cumulative profit and loss of a 10-year duration-timing overlay driven by each model's forecasts, 2006 to 2026
Illustrative: long or short 10-year duration each month on the sign of the forecast, $100k per basis point, yield moves only.

Accuracy and money are different questions. Because the overlay only uses the sign of the forecast, the network's small moves still called direction right 54% of the time at 10 years and made $41.0M over 249 months, mostly between 2017 and 2023, when yields trended. The factor model called direction right 44% of the time and lost $51.8M. With monthly swings of $2.6M, neither result is distinguishable from luck over 21 years.

PeriodNo change, 10YLSTM, 10YDiebold-Li, 10YNo change, 2YLSTM, 2YDiebold-Li, 2Y
2006–2015 (120 months)26.626.927.421.821.623.2
2016–2026 (129 months)25.525.426.625.625.325.9
2022 hiking year (12 months)43.643.645.245.345.347.5

Root-mean-square one-month forecast error, basis points.

Recommendations

  • Decision: adopt "beats no change out of sample, by maturity and horizon" as the minimum standard before any curve forecast, in-house or vendor, influences hedge ratios or duration targets.
  • Controls: require walk-forward tests with no look-ahead, significance tests, and sub-periods that include 2022; reject results reported only in-sample or on one horizon.
  • Hedging: size hedges on the distribution of surprises (26 bp typical, 44 bp in 2022 at 10 years) rather than on point forecasts.
  • Where to look for value: the front end is the only place either model added accuracy. Test policy-path information there before reaching for more complex networks.
  • Governance: re-test every forecast in use annually; retire any that fall below no change over the last three years.

Limits

  • One market and one curve: US Treasury par yields. Results for swap curves or other countries may differ.
  • The network is deliberately small and uses only the curve itself. Macro data, futures-implied policy paths or survey forecasts may add information; they are not tested here.
  • 249 monthly forecasts is enough to rule out large gains, not small ones.
  • The duration overlay ignores carry, roll-down and trading costs.
  • Independent research on public data. Not deployed; not investment advice.

How it was built

Pipeline flowchart from Treasury par yields through three forecasters to the walk-forward test and evaluation
The full pipeline. Blue: external sources. Lavender: code steps. Red: checks and gates.

Sources

  • US Treasury daily par yield curve, via huggingface.co/datasets/defeatbeta/yahoo-finance-data (ODC-BY).
  • Diebold, F. X. and Li, C. (2006). "Forecasting the Term Structure of Government Bond Yields." Journal of Econometrics 130(2).
  • Nelson, C. R. and Siegel, A. F. (1987). "Parsimonious Modeling of Yield Curves." Journal of Business 60(4).
  • Diebold, F. X. and Mariano, R. S. (1995). "Comparing Predictive Accuracy." Journal of Business & Economic Statistics 13(3).
  • Campbell, J. Y. and Thompson, S. B. (2008). "Predicting Excess Stock Returns Out of Sample." Review of Financial Studies 21(4).
  • Hochreiter, S. and Schmidhuber, J. (1997). "Long Short-Term Memory." Neural Computation 9(8).

Independent research on public data, not investment advice; dollar figures are illustrative. Analysis, code, charts and text were produced with AI assistance and reviewed by the author.