ChatTS: Aligning Time Series with LLMs via Synthetic Data for Enhanced Understanding and Reasoning

Zhe Xie, Zeyan Li, Xiao He, Longlong Xu, Xidao Wen, Tieying Zhang, Jianjun Chen, Rui Shi, Dan Pei · DOI

TL;DR

This paper introduces ChatTS, a novel multimodal large language model (MLLM) designed to understand and reason about time series data. By leveraging synthetically generated time series data and a novel evolutionary instruction tuning method, ChatTS achieves significant improvements in both time series alignment and reasoning tasks compared to existing methods.

What Problem Does This Paper Address?

Understanding and reasoning about time series data is crucial across many domains, from finance to healthcare. While large language models (LLMs) have excelled in text and vision tasks, their application to time series analysis, particularly for complex understanding and reasoning, has been limited. This is largely due to a scarcity of high-quality datasets that align time series with textual information. Existing approaches often struggle with prompt length limitations (text-based), resolution issues (vision-based), or reliance on external tools (agent-based), leading to challenges in accurately interpreting global features, detailed patterns, and complex relationships within multivariate time series.

Methods

ChatTS addresses the data scarcity challenge by proposing a two-pronged approach:

  • Attribute-Based Synthetic Data Generation: The authors developed a method to generate synthetic time series data with detailed attribute descriptions. This involves an "Attribute Selector" that uses a comprehensive set of attributes (trend, periodicity, noise, local fluctuations) and a "GPT Selector" to align these attributes with real-world metrics and scenarios. A "Time Series Generator" then creates time series arrays that precisely match these attributes.
  • Time Series Evol-Instruct (TSEvol): To create diverse and accurate question-answering datasets for training, TSEvol is introduced. Inspired by Evol-Instruct, it dynamically incorporates time series attributes and correlation pools into an evolutionary process, generating a broad range of Q&As that enhance the model's reasoning capabilities.

The core of ChatTS is a Context-Aware Time-Series Multimodal LLM. It processes time series data by dividing it into patches and encoding them using a simple MLP, then concatenating these encoded patches with text tokens. This approach preserves contextual information and allows the LLM to capture temporal and contextual dependencies across different metrics. A Value-Preserved Time Series Normalization technique is also employed to retain crucial numerical information during normalization.

Datasets

  • Training Datasets:
    • UTS: Univariate time series tasks for basic attribute descriptions.
  • MTS-Shape: Multivariate time series with global trend correlations.
  • MTS-Local: Multivariate time series with correlated local fluctuations.
  • TSEvol: Datasets generated by the Time Series Evol-Instruct algorithm for enhanced Q&A and reasoning.
  • Instruct Follow: A dataset for instruction following.
  • Evaluation Datasets:
    • Dataset A: Real-world time series data from AIOps, weather, NAB, and Oracle systems.
  • Dataset B: A larger-scale dataset generated using the attribute-based time series generator and LLM for reasoning questions.
  • MCQ2: An open-source dataset for comparison reasoning tasks.

Key Insights and Ideas

  • Synthetic Data is Key: The paper strongly advocates for the effectiveness of synthetically generated data for training time series MLLMs, demonstrating that it can achieve strong alignment and reasoning capabilities comparable to or exceeding real-world data-trained models in certain aspects.
  • Native Time Series Modality is Crucial: ChatTS's architecture, which natively encodes time series data, significantly outperforms text-only or vision-based approaches, especially for multivariate time series tasks where context and inter-metric relationships are vital.
  • Attribute-Based Generation for Precision: The attribute-based generation method is crucial for creating precise textual descriptions that accurately map to time series patterns, which is a significant improvement over previous methods.
  • TSEvol for Reasoning Depth: The TSEvol algorithm effectively diversifies Q&A formats and enhances the model's reasoning abilities, proving more impactful for reasoning tasks than for alignment tasks.

Key Results

  • ChatTS significantly outperforms existing baseline models, including GPT-40, on both alignment and reasoning tasks.
  • Alignment Tasks: Achieved a 46.0% improvement in alignment tasks.
  • Reasoning Tasks: Achieved a 25.8% improvement in reasoning tasks.
  • ChatTS demonstrated superior performance in multivariate tasks, where text-only models struggled with prompt length and agent-based methods faced limitations with tool accuracy and selection.
  • The synthetic data generation method was shown to be more effective than using GPT-generated datasets from existing benchmarks, particularly for local fluctuation detection and numerical analysis.

Limitations and Future Work

  • Real-World Data: While synthetic data is effective, the authors acknowledge that real-world data is essential for further enhancing TS-MLLM capabilities.
  • Multimodal Encoding: Exploring more advanced multimodal encoding and integration methods beyond the current MLP encoder is suggested.
  • Comprehensive Evaluation: More labeled real-world data is needed for a more comprehensive evaluation of TS-MLLMs.
  • Time Series Generation: Developing multimodal models capable of generating time series based on textual input is identified as a promising future research direction.

Summary updated

BibTeX
@article{xie2025chatts,
  author = {Zhe Xie and Zeyan Li and Xiao He and Longlong Xu and Xidao Wen and Tieying Zhang and Jianjun Chen and Rui Shi and Dan Pei},
  title = {{ChatTS: Aligning Time Series with LLMs via Synthetic Data for Enhanced Understanding and Reasoning}},
  journal = {Proc. VLDB Endow.},
  year = {2025},
  doi = {10.14778/3742728.3742735},
}
Figure