Winformer: Transcending pairwise similarity for time-series generation

Haoyi Zhou, Xin Xue, Tianyu Chen, Jianxin LiOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

Winformer is a novel diffusion-based Transformer that replaces traditional point-to-point attention with a "window-to-window" comparison mechanism called Ample attention. By leveraging the convolution theorem to efficiently compute Fourier-based similarities between time windows, it excels at capturing complex periodic patterns, achieving a 10.67% average performance gain over state-of-the-art models in cross-domain generation.

What Problem Does This Paper Address?

Generating high-quality time-series data is essential for everything from filling in missing sensor data (imputation) to training models on synthetic data (augmentation). However, existing models often struggle with "cross-domain" generation—for example, learning patterns from electricity usage and applying them to traffic flow.

The authors identify a fundamental flaw in how Transformers handle time:

  1. Point-wise Attention: Comparing individual time steps is too granular. It misses long-range dependencies and struggles to see the "big picture" of a repeating cycle.
  2. Patch-wise Attention: Breaking data into fixed chunks (patches) often "breaks" the rhythm. If a cycle doesn't align perfectly with the patch boundaries, the model loses the periodic structure.

The challenge is to create an architecture that can adaptively recognize and transfer periodic patterns across different domains without destroying the underlying temporal trends.

Methods

The authors introduce Winformer, a diffusion model built on a window-wise Transformer. The core innovation is the Ample attention mechanism.

The "Ample Attention" Innovation

Instead of calculating the similarity between two points ($i$ and $j$), Ample attention compares a window of time around $i$ to a window around $j$.

  • Frequency-Domain Similarity: Mathematically, the most robust way to compare two windows is in the frequency domain (using Fourier transforms).
  • The Convolution Trick: Calculating Fourier transforms for every possible window pair is computationally expensive. The authors use the Convolution Theorem to prove that this window-to-window comparison is mathematically equivalent to applying a learnable 2D convolution over the standard attention map ($QK^T$).
  • Initialization: They initialize these convolution kernels using Discrete Cosine Transform (DCT) bases. This gives the model a "head start" in recognizing periodic shapes like sine waves.

Hybrid Architecture

Winformer uses a Hybrid Encoder. It splits attention heads into two groups: vanilla heads (to keep track of exact point-to-point details) and Ample heads (to capture the broader periodic structure). These are integrated into a Diffusion Transformer (DiT) framework, which gradually refines noise into structured time-series data.

Datasets

The model was evaluated on 12 real-world datasets spanning four distinct domains:

  • Energy: Electricity consumption, Solar power, Wind production.
  • Weather: Air quality, Temperature, Rain forecasts.
  • Transportation: Traffic occupancy, Taxi rides, Pedestrian counts.
  • Economic: ATM withdrawals (NN5), Macro-economic indicators (Fred-MD), Exchange rates.

They also used a Synthetic dataset composed of superimposed sine waves with different periods (5 and 50 time steps) to specifically test the model's ability to disentangle overlapping cycles.

Key Insights and Ideas

  • Windows are Semantically Richer: A single data point in a time series is just a number. A window, however, contains a pattern (a rise, a fall, a cycle). By making the window the fundamental unit of attention, the model "sees" the rhythm of the data more clearly.
  • The Denoising Hierarchy: Through visualization, the authors found that Winformer recovers patterns in a specific order. It first identifies major, long-range periodic structures (the "coarse" rhythm) and then fills in the fine-grained, high-frequency details.
  • Domain Adaptability: Because the window-wise alignment is sliding and learnable, it doesn't get "stuck" on fixed patch boundaries. This makes it much better at transferring knowledge between domains with different natural cycles (e.g., daily vs. weekly patterns).

Key Results

  • Superior Accuracy: Winformer outperformed six SOTA baselines (including TimeDP and Diffusion-TS) on 10 out of 12 datasets.
  • 10.67% Improvement: On average, the model reduced the Maximum Mean Discrepancy (MMD)—a measure of how different the generated data is from the real data—by over 10% compared to the previous best model.
  • Periodicity Power: The gains were most dramatic in datasets with strong cycles, such as Solar and Traffic.
  • Efficiency: Despite the added complexity of window-wise comparisons, the convolutional implementation ensures that training and sampling speeds remain comparable to standard point-wise Transformers.

Limitations and Future Work

  • Trend vs. Periodicity: The authors noted that Winformer's advantage is slightly smaller on datasets where "trendiness" (long-term drift) is more dominant than "periodicity" (repeating cycles), such as wind speed or temperature.
  • Conditioning: While the model uses domain prompts, the authors suggest that more powerful conditioning networks could further reduce the reliance on large amounts of source-domain samples.
  • Multimodal Expansion: The researchers view this as a step toward "foundation models" for time series, with future work potentially integrating text-to-series or image-to-series generation.

Summary updated

BibTeX
@misc{zhou2026winformer,
  author = {Haoyi Zhou and Xin Xue and Tianyu Chen and Jianxin Li},
  title = {{Winformer: Transcending pairwise similarity for time-series generation}},
  year = {2026},
  url = {https://openreview.net/forum?id=DY6dnkRKo7},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure