# OTformer: Non-Stationarity-Aware Adaptive Optimal Transport Attention for Time Series Forecasting

*Zhaowei Liu, Kaixiang Wang, Sheng Liu, zengyang zhang, HaitaoYang, Rufei Gao, Zongxing Zhao, Yao Shan, Yongchao Song, Yanwei Yu, Anzuo Jiang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148743) · [Open on the map](../papers.html#p148743)

Category: [Time Series, PDEs & Probabilistic ML](../pcat/9.md) › [Time Series Foundation Models](../pgroup/16.md) · Type: new method · Keywords: time series forecasting, optimal transport attention, non-stationarity detection, Sinkhorn regularization, phase embedding, cross-variate modeling

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Dynamic and relational architectures › Time Series Forecasting; [Time Series](../areas/time-series.md) › Foundation Models and Irregular Data › Probabilistic and Irregular Forecasting

## Summary
OTformer introduces a non-stationarity-aware Optimal Transport attention mechanism that adapts routing sharpness based on estimated non-stationarity, improving time series forecasting performance.

## Explained to a 5-year-old
Time series are data that change over time, like temperature or traffic. Current models look at this data using a fixed way of focusing, which can be uneven. The new method checks how much the data is changing and adjusts its focus to be smoother when things are chaotic and sharper when they are steady. It also adds a hint about repeating patterns, like day and night, to help understand cycles. This helps make better predictions for many real-world tasks.

## Explained to a 5-year-old, longer
Time series are like records of things that happen over time, such as the temperature each hour or the number of cars on a road. Predicting what will happen next in these records is useful for many things, like planning energy use or controlling traffic. Traditional models look at the data using a simple attention mechanism that treats all parts equally. This simple attention can be uneven, meaning some parts get too much focus while others get too little. It also keeps the same sharpness of focus no matter how much the data is changing. When the data changes a lot (non-stationary), the simple attention does not work as well. The new method first measures how much each piece of data is changing by looking at its raw statistics. Based on this measurement, it tweaks the smoothness of its transport plan, making it smoother for chaotic data and sharper for steady data. It also adds a special hint about cycles, like day and night, to help the model understand repeating patterns. These improvements help the model focus better on the most important parts of the data. As a result, the predictions become more accurate for many different forecasting tasks. This makes the model useful for real-world applications such as energy management, climate modeling, traffic control, and industrial monitoring.

## For a technical reader
The paper proposes adapting Transformer attention for time series by modeling it as an optimal transport problem that can vary with data non-stationarity. A lightweight scorer computes per-sample non-stationarity from raw statistics and modulates the Sinkhorn entropy regularization coefficient, yielding smoother transport plans for volatile inputs and sharper routing for stable ones. A shared phase embedding injects cyclic context into variate tokens, enhancing temporal pattern capture. Experiments on eight benchmarks and 32 settings show consistent MSE improvements over the iTransformer baseline, with notable gains on ECL (-4.4%) and Solar (-12.5%).

## Problem
Existing Transformer-based time series models use Softmax attention that routes information unevenly and maintains fixed sharpness, which is suboptimal when the underlying data exhibits varying non-stationarity. This leads to inefficient cross-variate dependency modeling and degraded forecasting accuracy.

## Method
The approach estimates sample-wise non-stationarity from raw statistics and uses this signal to adapt the Sinkhorn entropy regularization coefficient, producing smoother transport plans for non-stationary inputs and sharper routing for stationary ones. Additionally, a shared phase embedding injects cycle-aware context into variate tokens.

## Results
The approach achieves average MSE reductions of 4.4% on ECL and 12.5% on Solar across four forecasting horizons, consistently outperforming the iTransformer baseline on eight benchmarks and 32 settings.

## Contributions
A non-stationarity-aware attention mechanism that dynamically adjusts transport plan sharpness based on estimated non-stationarity, and a cycle-aware phase embedding for variate tokens, leading to improved forecasting performance.

## Research questions this paper is counted under

- [How can transformer attention adapt to varying data scales and non-stationarity while staying computationally efficient?](../q/699.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148743)
