TL;DR
OATS (Online Data Augmentation for Time Series) moves beyond static, heuristic-based data augmentation by dynamically generating synthetic training samples tailored to a model's current learning stage. By using data attribution to identify high-influence samples and a diffusion model to generate new data conditioned on them, OATS significantly improves the performance and convergence of Time Series Foundation Models (TSFMs).
What Problem Does This Paper Address?
Time Series Foundation Models (TSFMs) have revolutionized forecasting, but their success is tethered to the quality and diversity of their training data. Traditionally, researchers have used "static" data augmentation—applying simple transformations like jittering (adding noise) or TSMixup (blending samples) to the entire dataset before training begins.
However, these methods face two major hurdles:
- Heuristic Limitations: What works for one dataset (e.g., finance) might fail for another (e.g., climate science). There is no "principled" way to know which augmentations actually help the model learn.
- Training Dynamics: Recent research suggests that the "value" of a data sample changes as a model trains. A sample that is highly informative early on might become redundant later. Static augmentation ignores this evolution.
OATS addresses these by creating an online loop: it identifies what the model needs right now and generates synthetic data to fill that gap.
Methods
OATS consists of three integrated modules that turn data augmentation into a dynamic optimization problem:
- Time-Series Influence Scores (TSIS): This is the "selection" mechanism. It uses data attribution (specifically a first-order Taylor approximation of validation loss change) to quantify how much a specific training sample would improve the model's performance on a small validation set. It also incorporates a Signal-to-Noise Ratio (SNR) filter to ensure the model isn't being "guided" by low-quality, noisy data.
- High-Quality Guided Data Generation: Once high-influence samples are identified, they serve as "prompts" for a denoising diffusion model. This generative model creates new, realistic time series that share the semantic patterns of the high-value samples. It uses a U-Net architecture enhanced with time-series prototypes and class embeddings to ensure the generated data is both diverse and domain-relevant.
- Explore-Exploit Mechanism: Calculating influence scores for every sample at every step is computationally prohibitive. OATS uses an $\epsilon$-greedy strategy:
- Explore: Occasionally sample new data to update the influence score cache.
- Exploit: Mostly use the existing cache to sample from known high-quality data subsets, drastically reducing overhead.
To further optimize speed, the authors implement the "Ghost Inner Product" trick, which allows them to calculate per-sample gradients (necessary for influence scores) with only one additional backpropagation pass.
Datasets
- Pre-training: The TSFMs were pre-trained on the LOTSA-100M dataset, a massive collection of diverse time-series data.
- Evaluation (LSF Benchmark): The models were tested on six out-of-distribution datasets from the Long-term Series Forecasting (LSF) benchmark:
- ETTm1, ETTm2, ETTh1, ETTh2 (Electricity Transformer Temperature)
- Weather
- Electricity
- Validation: A tiny subset (only 32 samples) from the evaluation datasets was used to calculate the influence scores during training.
Key Insights and Ideas
- Data Value is Not Proportional to Size: The authors found that small sub-datasets (like solar power data) often provided significantly more "influence" on reducing test loss than much larger, generic datasets.
- The "Aha" Moment for Online Augmentation: The experiment showed that the contribution of different data subsets fluctuates throughout the training process. This confirms that a static "one-size-fits-all" augmentation strategy is sub-optimal.
- Principled vs. Heuristic: By using validation loss as a guiding signal, OATS removes the guesswork. The model effectively "asks" for the type of data it finds most difficult to generalize on.
- Generative Synergy: The ablation study revealed that simply training on the "best" real samples isn't enough. The diffusion model's ability to generate new variations based on those high-value samples is what drives the most significant performance gains.
Key Results
- Superior Performance: OATS consistently outperformed regular training and standard baselines (Jitter, TSMixup) across all six datasets.
- Metric Gains: On the Electricity dataset, OATS achieved a Negative Log-Likelihood (NLL) of 5.945, compared to 6.260 for regular training.
- Efficiency: Using the explore-exploit mechanism with $\epsilon=0.3$, OATS achieved better results than regular training while maintaining a manageable computational overhead (0.95s per step vs. 0.74s for regular training).
- Robustness: Unlike Jitter and TSMixup, which occasionally increased error (indicated by red cells in the paper's tables), OATS showed consistent improvement, proving to be a more stable augmentation strategy.
Limitations and Future Work
- Computational Overhead: While the explore-exploit strategy helps, OATS is still slower than standard training. The authors note that as TSFMs grow larger, the relative cost of the generation model will decrease, but it remains a factor for smaller models.
- Hyperparameter Sensitivity: The performance is somewhat sensitive to the SNR threshold ($k$) and the explore rate ($\epsilon$). Finding the optimal balance requires some initial tuning.
- Validation Set Dependency: The quality of the "guidance" depends on the small validation set used for influence scoring. If this set isn't representative of the target task, the augmentation might be misdirected.
- Future Directions: The authors suggest exploring more sophisticated data filtering methods and applying OATS to even larger-scale foundation models to see if the benefits scale linearly with model size.
Summary updated