Introduction
Generating realistic synthetic time series is a persistent challenge in machine learning. While foundation models for time series are improving, they often struggle with "concept drift" (changing patterns over time) and require massive amounts of high-quality data—which is often unavailable in specialized fields like finance, climate science, or medicine.
Existing generative approaches like Variational Autoencoders (VAEs) and Generative Adversarial Networks (GANs) have significant drawbacks: they often require task-specific retraining, struggle to capture long-term dependencies, and can be computationally expensive.
To address these limitations, researchers introduce SDForger, a novel framework that repurposes Large Language Models (LLMs) to generate high-quality synthetic time series data. By converting complex signals into compact "textual embeddings," SDForger allows even lightweight LLMs like GPT-2 to learn and replicate intricate temporal patterns, outperforming traditional GANs and VAEs while remaining efficient enough to work in data-scarce environments.
Methods: The SDForger Pipeline
The SDForger architecture is designed to decouple the generation process from the raw length of the time series, making it highly scalable. The pipeline is divided into three main stages:
- From Time Series to Tabular Embeddings: Instead of feeding raw numbers into an LLM (which is highly token-inefficient), SDForger uses basis decomposition techniques—specifically FastICA (Independent Component Analysis) or FPC (Functional Principal Components). These methods compress a long time series into a few "embedding coefficients" that capture the signal's core structure.
- Textual Encoding and LLM Fine-tuning: These numerical coefficients are converted into structured text prompts using a "Fill-In-The-Middle" template. To prevent the LLM from developing a bias based on the order of features, the authors use Random Feature Order Permutation. An autoregressive LLM is then fine-tuned on these text strings.
- Inference and Decoding: At inference time, the LLM generates new text strings representing synthetic embeddings. These are passed through an in-generation filter that discards duplicates or extreme outliers. Finally, the synthetic coefficients are decoded back into the original time-series space using the basis functions learned in the first step.
Datasets
The authors evaluated SDForger across 12 diverse, publicly available datasets covering several domains, including Energy (e.g., ETTH1, ECL), Mobility & Transport (e.g., Bikesharing, Traffic), Nature (e.g., Weather), and Finance (e.g., Exchange Rate). These datasets include both stationary and non-stationary data, with sampling frequencies ranging from 2 minutes to monthly.
Key Insights
- The Power of Decoupling: By generating embeddings rather than raw data points, the LLM avoids the "noise" of individual timestamps. This makes the framework incredibly scalable for long-horizon data.
- ICA > FPC for LLMs: FastICA generally outperformed FPC. While FPC focuses on variance, ICA seeks statistically independent components. This "disentangled" representation is easier for LLMs to model as a joint distribution.
- Small Data, Big Results: SDForger is remarkably efficient in data-scarce settings. It can produce high-quality results with as few as 15 to 30 training instances—a scenario where GANs typically fail to converge.
- Multimodal Readiness: Because the core engine is a language model, SDForger can naturally incorporate textual metadata. The authors demonstrated this by "conditioning" the model with natural language instructions to generate specific types of signals.
Key Results
Superior Similarity: In "multisample" and "univariate" settings, SDForger consistently achieved the best or second-best scores across similarity metrics (like Dynamic Time Warping and Correlation difference) compared to state-of-the-art baselines like TimeVQVAE and SdeGAN.
Downstream Utility: When synthetic data from SDForger was used to augment real data for training a forecasting model (Tiny Time Mixers), it often led to better performance than using real data alone.
As shown in the forecasting results, in the etth1 dataset, synthetic data alone actually surpassed the performance of the original real data. Furthermore, SDForger is significantly faster than its competitors, generating synthetic sequences 1 to 2 orders of magnitude faster than TimeVQVAE.
Limitations and Future Work
While SDForger is a major step forward, the authors acknowledge a few areas for future improvement:
- Linear Constraints: The current embedding methods (ICA/FPC) are linear. Future versions could explore non-linear embeddings, such as those from neural autoencoders, to capture even more complex dynamics.
- LLM Architectures: The current framework is built for autoregressive (decoder-only) models. Expanding this to encoder-only models or different generation paradigms (like masked token prediction) could yield further gains.
- Fine-tuning Stability: Using too many components relative to the number of training samples can lead to unstable fine-tuning. Parameter-Efficient Fine-Tuning (PEFT) techniques like LoRA could help mitigate this and improve domain adaptation.
Summary updated