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:
- It relies on guesswork: Handcrafted rules are agnostic to the model. What helps one architecture might actively confuse another.
- 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:
- 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.
- 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$).
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 ofothers(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) and1.715(TSMixup) down to1.614, while slashing Mean Absolute Percentage Error (MAPE) from0.783to0.623. On Weather, overall MAPE drops from2.267to1.659. - Faster Convergence: Tracking test loss across training steps shows OATS plunges steeper and settles lower than every baseline.
- Accurate Approximations: Despite being a fast first-order approximation, TSIS rankings correlate remarkably well with true single-step leave-one-out influence (
0.926Spearman 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