OATS: Online Data Augmentation for Time Series Foundation Models

Junwei Deng, Chang Xu, Jiaqi W. Ma, Ming Jin, Chenghao Liu, Xu Zhang, Li Zhao, Jiang BianNeurIPS 2026

TL;DR

Training Time Series Foundation Models (TSFMs) requires massive amounts of clean data, so researchers usually bulk up datasets beforehand using static, rule-of-thumb synthetic data tricks. OATS flips this script by generating synthetic time series on the fly during training—measuring which real samples are helping the model learn right now, and using a diffusion model to dream up fresh variations of them. It replaces static guesswork with a dynamic, feedback-driven data diet that helps models learn faster and forecast more accurately.

What Problem Does This Paper Address?

Large language models feast on trillions of words scraped from the web, but Time Series Foundation Models—universal forecasters for everything from heartbeats to power grids—face a tougher pantry. Real-world time series datasets are plagued by missing values, mismatched sampling rates, and massive domain imbalances.

To fix this, practitioners lean heavily on synthetic data augmentation, like adding random noise ("jittering"), blending curves together ("TSMixup"), or injecting sine waves. However, this traditional playbook has two major blind spots:

  1. It relies on guesswork: Handcrafted rules are agnostic to the model. What helps one architecture might actively confuse another.
  2. It is frozen in time: Standard augmentation is offline and static—you generate synthetic data once before training begins and feed it in uniformly. Yet recent optimization research shows a model's nutritional needs change as it learns; a sample that is vital at step 1,000 might be dead weight by step 20,000.

The authors ask: Instead of guessing what synthetic data a model needs beforehand, can we mathematically measure what helps it at each specific training step and generate more of that on the fly?

Methods

Enter OATS (Online Data Augmentation for Time Series Foundation Models), a closed-loop system that pairs real-time data valuation with generative AI. At every training step, OATS samples a mini-batch of real data and runs a two-stage relay:

Figure 1: Architecture of OATS. OATS employs two mod- ules: 1⃝Time-Series Influence Scores (TSIS) create generation guiding signals as high-quality data samples, and 2⃝guide time series synthetic data generation for augmentation.
  1. Finding the "Guiding Signals" (TSIS): First, OATS grades every sample in the current mini-batch using a novel Time-Series Influence Score (TSIS). Rather than relying on heuristics, TSIS uses data attribution—calculating the dot product between a training sample's gradient and the gradient of a tiny validation set. Intuitively, this first-order Taylor approximation asks: "If the model takes a step using this sample right now, will validation loss drop?" To prevent noisy anomalies from gaming the math, TSIS pairs this gradient check with a domain-specific filter that penalizes samples below a minimum Signal-to-Noise Ratio (SNR). The top-scoring half of the batch ($H_t$) is crowned high-quality.
  2. Dreaming Up Variations (Guided Diffusion): Instead of crudely perturbing those winning samples, OATS feeds them as prompts into a conditional denoising diffusion model (pre-trained on just 5% of the training corpus). Building on a time-series prototype U-Net architecture, the generator extracts semantic prototype weights from the high-scoring prompt and combines them with a subset class embedding (e.g., "Electricity") to synthesize realistic, high-fidelity new sequences ($S_t$).
Figure 2: The architecture of the denoising diffu- sion model to generate synthetic data conditioned on constructed generation signals.

Finally, the TSFM updates its weights on a hybrid batch: half real MVPs ($H_t$) and half freshly minted synthetic variations ($S_t$).

Datasets

No new benchmarks are introduced; the authors use established time series corpora to test cross-domain generalization:

  • Pre-training: Models (matching popular Encoder-only Moirai and Decoder-only Chronos setups) are pre-trained on LOTSA, a massive multi-domain collection of time series. (The diffusion generator is trained on a 5% random slice of LOTSA).
  • Evaluation: Zero-shot / out-of-distribution forecasting is evaluated on six standard LSF benchmark datasets: ETTm1, ETTm2, ETTh1, ETTh2 (electricity transformer temperatures), Weather, and Electricity. A tiny 32-sample slice held out from the test sets (or held-out training data in ablations) serves as the validation compass for TSIS.

Key Insights and Ideas

  • Dataset size $\neq$ dataset value: By tracking influence scores across training, the authors found that a tiny sub-dataset (solar_power, just 3.2% of the corpus) did heavy lifting in driving down test loss, while a massive bucket of others (61.1% of the data) contributed only ~10% of the positive influence.
  • A shifting appetite: The influence of different sub-datasets fluctuates wildly across training steps, proving why static data mixing leaves performance on the table.
  • Selection + Generation > Either Alone: Ablations reveal a neat synergy. Simply filtering for high-TSIS samples without generating new ones starves the model of diversity. Conversely, unconditional diffusion adds variety, but pollutes batches with low-quality samples. Combining targeted selection with guided generation unlocks the best of both worlds.
  • Zero-shot friendly: Even when you don't have 32 target-domain samples for TSIS, using held-out in-domain training samples as the validation compass still reliably beats regular training.

Key Results

Across both 10M-parameter Encoder-only and Decoder-only TSFMs (and scaling cleanly up to a 100M-parameter model), OATS consistently beats regular training and static baselines (TSMixup and Jitter), which actually degrade performance on several benchmarks.

  • Sharper Forecasts: On the Encoder-only TSFM, OATS drops overall Negative Log-Likelihood (NLL) on ETTm1 from 1.854 (Regular) and 1.715 (TSMixup) down to 1.614, while slashing Mean Absolute Percentage Error (MAPE) from 0.783 to 0.623. On Weather, overall MAPE drops from 2.267 to 1.659.
  • Faster Convergence: Tracking test loss across training steps shows OATS plunges steeper and settles lower than every baseline.
Test loss (NLL) curves on ETTm2 showing OATS converging faster and lower than baselines.
  • Accurate Approximations: Despite being a fast first-order approximation, TSIS rankings correlate remarkably well with true single-step leave-one-out influence (0.926 Spearman correlation under AdamW).

Limitations and Future Work

  • Compute Overhead: Calculating per-sample gradients and running reverse diffusion inside the training loop isn't free. (The authors propose an explore–exploit caching trick in the appendix to soften this blow).
  • Validation Dependency: OATS needs a small, clean validation set to define what "good" looks like; while in-domain data works, target-domain few-shot samples work noticeably better.
  • Forecasting Only (For Now): The experiments focus strictly on forecasting. Extending online influence-guided synthesis to time series classification and anomaly detection remains an open frontier.

Summary updated

Abstract

Time Series Foundation Models (TSFMs) are a powerful paradigm for time series analysis and are often enhanced by synthetic data augmentation to improve the training data quality. Existing augmentation methods, however, typically rely on heuristics and static paradigms. Motivated by dynamic data optimization, which shows that the contribution of samples varies across training stages, we propose OATS (Online Data Augmentation for Time Series Foundation Models), a principled strategy that generates synthetic data tailored to different training steps. OATS leverages valuable training samples as principled guiding signals and dynamically generates high-quality synthetic data conditioned on them. We further design a diffusion-based framework to produce realistic time series. Experiments on TSFMs demonstrate that OATS consistently outperforms regular training and yields substantial performance gains over static data augmentation baselines across six validation datasets and two TSFM architectures. The code is available at the link https://github.com/microsoft/TimeCraft.
BibTeX
@inproceedings{deng2026oats,
  author = {Junwei Deng and Chang Xu and Jiaqi W. Ma and Ming Jin and Chenghao Liu and Xu Zhang and Li Zhao and Jiang Bian},
  title = {{OATS: Online Data Augmentation for Time Series Foundation Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=HejOWQctCX},
}
Figure