Winformer: Transcending Pairwise Similarity for Time-series Generation

Haoyi Zhou, Xin Xue, Tianyu Chen, lanhao li, Lijun Sun, Jianxin LiICML 2026

Generating realistic time-series data across diverse domains—such as shifting from electricity usage to traffic flow—presents a significant challenge known as domain confusion. While normalizing the magnitude of data is relatively straightforward, aligning the underlying periodicity (the "rhythm" or phase) is highly complex. Existing Transformer-based models typically process data in one of two ways, both of which have distinct drawbacks:

  1. Point-wise: Comparing individual time steps. This approach is often too granular to capture long-range cycles effectively.
  2. Patch-wise: Breaking data into fixed, non-overlapping segments. This rigid slicing often disrupts the natural flow of a trend or cycle if the patch boundary lands in an awkward spot.

To overcome these limitations, researchers have introduced Winformer, a novel diffusion-based model that replaces standard point-to-point attention with a sliding "window-wise" approach. By leveraging learnable convolutions to align periodic patterns, Winformer achieves a 10.67% average performance boost over current state-of-the-art methods.

The Core Innovation: Ample Attention

At the heart of Winformer is the Ample Attention mechanism. Instead of relying on the standard pairwise similarity used in vanilla Transformers, Winformer introduces a window-to-window comparison paradigm. Rather than comparing point $A$ to point $B$, the model compares a sliding window around $A$ to a sliding window around $B$. Because sliding windows are adaptive rather than rigid, the model can find optimal alignments between sequences even when their phases are shifted.

Bridging the Spectral and Spatial Domains

The authors establish a fascinating theoretical equivalence: calculating window-wise similarity in the frequency (spectral) domain is mathematically analogous to applying a learnable 2D convolution to a standard spatial attention score map.

To maintain computational efficiency and avoid the overhead of complex numbers, Winformer initializes these convolutional kernels using a Discrete Cosine Transform (DCT) basis. This "Reduced Kernel" approach allows the model to learn periodic patterns natively without requiring heavy Fourier transforms during every forward pass.

Hybrid Encoding and Diffusion

Winformer employs a hybrid architecture, combining these new Ample attention heads with vanilla attention heads. This ensures the model captures both global periodic structures and local point-to-point details.

This attention mechanism is integrated into a Diffusion Probabilistic Model, which iteratively refines noise into a structured time-series signal. Interestingly, during the diffusion process, Winformer exhibits a coarse-to-fine denoising behavior. It tends to recover large-scale, long-period cycles (e.g., a 50-day cycle) before filling in fine-grained, short-period details (e.g., a 5-day cycle), mimicking human pattern perception.

Experimental Setup and Key Results

The authors evaluated Winformer across 12 real-world datasets spanning four domains:

  • Energy: Electricity, Solar, and Wind.
  • Weather: Air quality, Temperature, and Rain.
  • Transportation: Traffic, Taxi rides, and Pedestrian counts.
  • Economic: NN5 (cash withdrawals), Fred-MD (macro-indicators), and Exchange rates.

They also utilized a synthetic dataset of superimposed sinusoidal waves to test the model's ability to recover multi-layered periodic patterns.

Winformer outperformed six representative state-of-the-art baselines (including TimeDP and Diffusion-TS). Key highlights include:

  • MMD Improvement: An average performance gain of 10.67% in Maximum Mean Discrepancy (MMD), indicating the generated distribution closely matches the real one.
  • Domain Strengths: The model demonstrated particular strength on datasets with heavy periodicity, such as Solar and Traffic.
  • Frequency Accuracy: Spectral visualizations confirmed that Winformer's generated data closely matches the frequency signature of real data, avoiding the "noisy" or "blurry" frequencies common in previous models.

Limitations and Future Directions

While highly effective for periodic data, the authors acknowledge that Winformer struggles slightly with "trend-dominated" datasets (like wind or temperature) that lack clear repeating cycles. Integrating explicit trend decomposition could help mitigate this issue.

Additionally, the current model focuses on univariate sequences. Real-world data is often multivariate, featuring complex cross-channel dependencies. Extending window-wise attention to handle these scenarios—perhaps via Graph Convolutional Networks—remains a promising area for future research. Finally, selecting the optimal window size ($s$) can be challenging for extremely long seasonal cycles, though a sufficiently large window is generally backward-compatible with smaller cycles.

Summary updated

BibTeX
@inproceedings{zhou2026winformer,
  author = {Haoyi Zhou and Xin Xue and Tianyu Chen and lanhao li and Lijun Sun and Jianxin Li},
  title = {{Winformer: Transcending Pairwise Similarity for Time-series Generation}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ZCvKiMJh9O},
}
Figure