Abstract
SDForger is a flexible and efficient framework for generating high-quality multivariate time series using LLMs. Leveraging a compact data representation, SDForger provides synthetic time series generation from a few samples and low-computation fine-tuning of any autoregressive LLM. Specifically, the framework transforms univariate and multivariate signals into tabular embeddings, which are then encoded into text and used to fine-tune the LLM. At inference, new textual embeddings are sampled and decoded into synthetic time series that retain the original data's statistical properties and temporal dynamics. Across a diverse range of datasets, SDForger outperforms existing generative models in many scenarios, both in similarity-based evaluations and downstream forecasting tasks. By enabling textual conditioning in the generation process, SDForger paves the way for multimodal modeling and the streamlined integration of time series with textual information.
Introduction
While foundation models have revolutionized natural language processing and computer vision, time-series analysis continues to face a "data desert" in critical domains such as finance, climate science, and healthcare. High-quality datasets are often scarce, expensive to collect, or restricted by privacy concerns.
Existing generative approaches—including Variational Autoencoders (VAEs), Generative Adversarial Networks (GANs), and Diffusion models—face significant hurdles. They often struggle with long-term dependencies, where long temporal windows lead to exploding training and inference costs. Furthermore, modeling multivariate correlations is notoriously difficult, and most models lack the generalization capabilities of pre-trained models, requiring training from scratch for every new dataset. To address these challenges, we introduce SDForger, a framework that treats time-series generation as a "fill-in-the-middle" text generation task.
The SDForger Framework
SDForger leverages the power of Large Language Models (LLMs) to generate high-quality synthetic multivariate time series by transforming complex signals into compact tabular embeddings. The process follows a five-step pipeline:
- Compact Basis Representation: Instead of feeding raw numerical sequences to an LLM, SDForger uses FastICA (Independent Component Analysis) or FPC (Functional Principal Components) to decompose the time series into a few key coefficients. This compresses the signal, decoupling the complexity of the data from the actual sequence length.
- Textual Encoding: These coefficients are converted into structured text prompts. To prevent the LLM from learning spurious relationships based on the order of features, a Random Feature Order Permutation is applied during training.
- LLM Fine-tuning: A pre-trained autoregressive LLM (such as GPT-2 or IBM’s Granite) is fine-tuned on these textual representations.
- Guided Inference & Filtering: During inference, the LLM generates new textual embeddings. SDForger includes an "in-generation" filtering step that discards duplicates, incomplete generations, or extreme outliers (detected via $\ell_2$ norm analysis) before they are decoded.
- Decoding: The generated coefficients are mapped back to the original time-series space using the learned basis functions.
Experimental Evaluation
The framework was evaluated across 12 diverse public datasets spanning energy (Australian Electricity, ETTH1), mobility (Traffic, Tourism), nature (Weather, Carbon Capture), and finance (Exchange Rate, NN5). These datasets include both stationary and non-stationary signals with sampling frequencies ranging from minutes to months.
Key Insights
- The ICA Advantage: FastICA generally outperforms FPC. Because ICA seeks statistically independent components rather than just variance-ordered ones, it provides the LLM with a set of "equal power" factors to model, leading to more balanced and realistic synthetic samples.
- Efficiency through Compression: By operating on basis coefficients rather than raw time steps, SDForger handles extremely long time windows without a corresponding increase in computational complexity.
- Small Data Effectiveness: The framework remains effective in data-scarce settings, requiring as few as 15–30 training instances to produce high-quality results.
Results and Discussion
Statistical Similarity and Utility
In aggregated benchmarks, SDForger (specifically the ICA variant) consistently outperformed state-of-the-art models like TimeVQVAE and LS4 across distribution-based metrics (Marginal Distribution Difference) and distance-based metrics (Dynamic Time Warping).
Beyond statistical similarity, SDForger demonstrates significant forecasting utility. When used to augment training data for downstream forecasting models (such as Tiny Time Mixers), SDForger-generated data often led to better performance than using real data alone. In the etth1 dataset, a hybrid "Real + Synthetic" approach achieved the best overall RMSE and MASE.
Computational Speedup
SDForger is significantly faster than its competitors. On the bikesharing dataset, it generated sequences in roughly 40 seconds, while TimeVQVAE took over 4,500 seconds—representing a ~112x speedup.
Multimodal Readiness
Because the core engine is an LLM, SDForger naturally incorporates textual conditioning. Users can prompt the model with specific conditions (e.g., "Condition: data is temperature") to guide the generation process, paving the way for context-aware synthetic data.
Conclusion and Future Work
SDForger demonstrates that LLMs, even lightweight versions like GPT-2, can be highly effective for time-series generation when paired with the right representation. While the current implementation uses linear embedding methods (ICA/FPC), future work will explore non-linear embeddings, such as those from Autoencoders, to capture more complex dynamics. Additionally, implementing Parameter-Efficient Fine-Tuning (PEFT) like LoRA could further reduce the computational footprint and improve scalability for larger models.
Summary updated