VerbalTS: Generating Time Series from Texts

Shuqi Gu, Chuyue Li, Baoyu Jing, Kan RenICML 2025

Time series synthesis is a foundational task underpinning decision-making across various domains, from finance to climate science. Traditionally, generating realistic time series data has relied heavily on structured conditions—for example, prompting a model with rigid metadata like "Trend: Linear, Seasonality: 4."

However, this approach has significant limitations. Structured metadata is inherently "lossy"; it struggles to capture unique, sample-specific details such as "a double peak at the very beginning." Furthermore, labeling massive datasets with these structured tags requires expensive expert knowledge, making large-scale data synthesis impractical.

Structured vs. Unstructured Text

To address these challenges, researchers have introduced VerbalTS, a novel framework that generates high-quality time series data directly from unstructured text descriptions. By moving beyond rigid metadata, VerbalTS captures nuanced temporal patterns and enables fine-grained control over data synthesis. The core challenge it solves is bridging the gap between the discrete, semantic world of natural language and the continuous, numerical world of time series data.

A Multi-Focal Diffusion Architecture

VerbalTS is built on a Conditional Diffusion Model architecture, introducing a Multi-focal Alignment and Generation framework to handle the complexity of free-form text.

  1. Multi-view Noise Estimator: Instead of processing the time series as a single block, the model analyzes it from three distinct "views":
  2. Temporal View: Captures data at multiple resolutions, balancing global trends with local fluctuations.
  3. Spatial View: Models interactions between different variables in multivariate data (e.g., how wind speed correlates with temperature).
  4. Diffusion View: Adapts to the reality that different stages of the denoising process handle varying levels of detail.
  5. Multi-focal Text Processor: The model employs learnable "anchor vectors" to reprogram text embeddings. This allows VerbalTS to selectively focus on different parts of a sentence depending on the task—for instance, prioritizing "overall trend" during early generation stages and "local peaks" during final polishing.
  6. Semantic Alignment Adapter: Inspired by adaptive layer normalization (AdaLN), this component aligns the text and time series views using a gating and scaling mechanism, ensuring the generated data faithfully follows the prompt's instructions.

Datasets and Evaluation

The researchers evaluated VerbalTS across six diverse datasets:

  • Synthetic: Synth-U (univariate) and Synth-M (multivariate), designed to test specific attributes.
  • Real-world: Weather (climate indicators) and BlindWays (3D motion trajectories), featuring human-written annotations.
  • Augmented: ETTm1 and Traffic, where features were extracted and converted into text descriptions using templates.

Key Insights and Results

Text Outperforms Structure: One of the most striking findings is that models trained on unstructured text produce more diverse and better-aligned data than those using structured labels. Structured conditions often lead to "mode collapse," where the model generates nearly identical curves for the same label.

The "CLIP" for Time Series: To quantitatively measure text-to-data alignment, the authors developed the CTTP (Contrastive Text-Time Series Pretraining) score. Similar to the CLIP score in image generation, it provides a metric to verify if a generated curve truly matches descriptions like "a downward trend with a sag."

Superior Fidelity and Precise Editing: VerbalTS outperformed baselines like TimeWeaver and TEdit across the board, achieving over a 20% improvement in fidelity metrics (FID and J-FTSD) on the Synth-M and Weather datasets. Because the model understands specific tokens, it also excels at time series editing—allowing users to modify specific sections of an existing curve (e.g., "add double peaks at the end") without altering the rest.

t-SNE Visualization of Generated Distributions

Qualitative Alignment: Visualizations using t-SNE demonstrated that VerbalTS's generated distribution overlaps much more closely with ground-truth data. In contrast, baseline models often clustered into narrow, unrealistic "islands."

Limitations and Future Work

The primary limitation of VerbalTS is generation efficiency. Because it relies on a diffusion process with numerous denoising steps, it is slower than "one-shot" generative models like GANs or VAEs, potentially hindering real-time applications. Future directions include exploring more efficient sampling methods (such as consistency models) and scaling the framework to larger, "in-the-wild" multimodal datasets where text-time series relationships are even more complex.

Summary updated

BibTeX
@inproceedings{gu2025verbalts,
  author = {Shuqi Gu and Chuyue Li and Baoyu Jing and Kan Ren},
  title = {{VerbalTS: Generating Time Series from Texts}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=KaukiEQcbk},
}
Figure