NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Large Language Models for Time Series: A Survey

Xiyuan Zhang, Ranak Roy Chowdhury, Rajesh K. Gupta, Jingbo Shang, Longbiao Wang, Jianwu Dang

Abstract

Large Language Models (LLMs) have demonstrated remarkable reasoning and pattern recognition capabilities in natural language processing. However, their application to time series analysis is hindered by the "modality gap" between discrete text tokens and continuous numerical data. This paper provides a comprehensive roadmap for bridging this gap, identifying five core strategies: prompting, quantization, alignment, vision-bridging, and tool integration. We explore how these methods enable LLMs to excel in diverse tasks such as forecasting, anomaly detection, and classification across multiple domains.

Introduction

Time series analysis is a cornerstone of modern data science, with applications ranging from climate modeling to financial forecasting. While traditional deep learning architectures like CNNs and Transformers have made significant strides, they often lack the broad "world knowledge" and zero-shot reasoning capabilities inherent in Large Language Models.

Figure 1: LLMs can be applied to multiple tasks and diverse domains in time series analysis.

The primary challenge in leveraging LLMs for time series lies in the fundamental mismatch between modalities. LLMs are trained on discrete textual tokens, whereas time series data is continuous and numerical. Standard text tokenizers often fragment numbers in ways that destroy their mathematical relationships (e.g., treating "123" as two separate tokens "12" and "3"). This survey explores the evolving landscape of techniques designed to overcome these hurdles.

Taxonomy of Methods

We categorize the current research into five distinct strategies for adapting LLMs to time series data.

Figure 2: A timeline and taxonomy of LLM-based approaches for time series analysis, categorized by their integration strategy.

1. Prompting

This approach treats numerical data directly as text. Methods range from simple text templates to "Number-Specific" techniques like LLMTime, which ensures the model processes each digit individually by inserting spaces between them, preserving the numerical structure.

2. Quantization

Quantization involves converting continuous signals into a discrete vocabulary. Techniques such as Vector Quantized-Variational AutoEncoders (VQ-VAE) or K-Means clustering map signal segments to specific indices or tokens that the LLM can process as it would words.

3. Aligning

Currently the most prevalent strategy, alignment involves training a dedicated encoder for time series data. Using contrastive loss (similar to CLIP), numerical embeddings are mapped into the same semantic space as the LLM’s pre-trained text embeddings, allowing the model to "understand" the signal in a linguistic context.

4. Vision as a Bridge

Rather than translating numbers to text, these methods convert time series into visual representations like line plots. Vision-Language Models (VLMs) are then employed to "see" patterns and anomalies, leveraging their pre-existing ability to interpret visual relationships.

5. Tool Integration

In this paradigm, the LLM acts as a high-level controller. It identifies the required task and invokes external specialized tools—such as Python scripts or dedicated APIs—to perform numerical computations, combining LLM reasoning with traditional algorithmic precision.

Datasets and Key Results

The development of these methods relies on multimodal datasets that pair signals with textual descriptions. Key examples include Ego4D (IoT), PIXIU (Finance), PTB-XL (Healthcare), and AudioSet.

Empirical results highlight the Few-Shot Superiority of LLM-based methods, which frequently outperform specialized models like Informer or Autoformer when data is scarce. Additionally, models like Time-LLM demonstrate Cross-Domain Success, showing that models trained on web text can be effectively repurposed to forecast electricity loads or other domain-specific signals.

Key Insights

  • Tokenization Sensitivity: Standard Byte Pair Encoding (BPE) is often detrimental to numerical reasoning. Successful models typically use custom tokenization or digit-by-digit processing.
  • Zero-Shot Capabilities: LLMs exhibit surprising "pattern machine" behavior, often performing zero-shot forecasting by treating numerical sequences as linguistic patterns.
  • Backbone Transferability: Models like GPT4TS show that internal attention mechanisms learned from text are highly transferable to numerical sequences, requiring only minimal fine-tuning of adapter layers.

Conclusion and Future Work

While LLMs offer a powerful new frontier for time series analysis, challenges remain regarding computational efficiency for high-frequency data and capturing long-term seasonal dependencies. Future research should focus on theoretical frameworks to explain cross-modal knowledge transfer and the development of privacy-preserving methods for sensitive data.

Summary updated

BibTeX
@inproceedings{zhang2024large,
  author = {Xiyuan Zhang and Ranak Roy Chowdhury and Rajesh K. Gupta and Jingbo Shang and Longbiao Wang and Jianwu Dang},
  title = {{Large Language Models for Time Series: A Survey}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2024},
}
Figure