LangTime: A Language-Guided Unified Model for Time Series Forecasting with Proximal Policy Optimization

Wenzhe Niu, Zongxia Xie, Yanru Sun, Wei He, Man Xu +1 more
3/11/2025
cs.LG

No official code found. Best implementation: niuwz/LangTime (15 stars, Apache-2.0, last commit 2026-02-09).

Abstract

Recent research has shown an increasing interest in utilizing pre-trained large language models (LLMs) for a variety of time series applications. However, there are three main challenges when using LLMs as foundational models for time series forecasting: (1) Cross-domain generalization. (2) Cross-modality alignment. (3) Error accumulation in autoregressive frameworks. To address these challenges, we proposed LangTime, a language-guided unified model for time series forecasting that incorporates cross-domain pre-training with reinforcement learning-based fine-tuning. Specifically, LangTime constructs Temporal Comprehension Prompts (TCPs), which include dataset-wise and channel-wise instructions, to facilitate domain adaptation and condense time series into a single token, enabling LLMs to understand better and align temporal data. To improve autoregressive forecasting, we introduce TimePPO, a reinforcement learning-based fine-tuning algorithm. TimePPO mitigates error accumulation by leveraging a multidimensional rewards function tailored for time series and a repeat-based value estimation strategy. Extensive experiments demonstrate that LangTime achieves state-of-the-art cross-domain forecasting performance, while TimePPO fine-tuning effectively enhances the stability and accuracy of autoregressive forecasting.

View on arXivView PDF

Code Implementations(1)

niuwz/LangTimeCommunity66%
Apache-2.0

Official implementation for "LangTime: A Language-Guided Unified Model for Time Series Forecasting with Proximal Policy Optimization"

151Shell, PythonMar 10, 20258 months agoApache-2.0

Similar Papers

Cite this paper

@article{niu2025langtime,
  title  = {LangTime: A Language-Guided Unified Model for Time Series Forecasting with Proximal Policy Optimization},
  author = {Wenzhe Niu and Zongxia Xie and Yanru Sun and Wei He and Man Xu and Chao Hao},
  year   = {2025},
  eprint = {2503.08271},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.08271v2},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.08271.svg)](https://codeofpaper.com/paper/2503.08271)

Discussion