TSFM Meets LLM: Context as Covariates
Hemanth Ram, Sai Shankar Narasimhan, Shubhankar Agarwal, Sandeep Chinchali
Abstract
Textual information is ubiquitous in real-world time series datasets, appearing as news, reports, and annotations that hold key predictive signals not deducible from numerical history alone. Large Language Models (LLMs) interpret text but lack numerical precision, while Time Series Foundation Models (TSFMs) are quantitatively accurate but cannot reason about the effects of text. Moreover, the lack of large-scale paired multimodal datasets limits progress in bridging this gap. In this work, we address this challenge by providing a scalable approach for generating realistic multimodal datasets by annotating real-world time series with LLMs. Building on this, we propose Context as Covariates (CoCo), a forecasting framework in which an LLM distills its textual reasoning into numerically grounded forecast and confidence covariates that guide a TSFM backbone, thereby exploiting the strengths of both LLMs and TSFMs. We align the two models in stages, first fine-tuning the LLM via Group Relative Policy Optimization (GRPO) with a reward tied to covariate-induced improvement in forecasting performance, and then fine-tuning the TSFM on covariates generated by the aligned LLM. Our experiments show that models trained on our synthetic multimodal corpus generalize to real benchmarks spanning finance, economics, weather, traffic, and security. Notably, CoCo with Qwen3-4B-Instruct-2507 as the LLM and Chronos2 as the TSFM achieves up to 12% MAE improvement over state-of-the-art TSFMs and LLM forecasters, such as GPT-4o. Code, checkpoints, and the evaluation datasets are publicly available.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
Related papers
CovNovBench: A Benchmark for Evaluating Time Series Foundation Models under Covariate Novelty
Shared title terminologycs.LGWenhao Pan, Ravi Kiran Selvam, Michael W. Mahoney et al.
State Space Attention: Learning Context-Dependent Memory Retention
Shared title terminologycs.LGEge Çakar, Cengiz Pehlevan
Sparse Adaptation for In-Context Learning on Data Streams
Shared title terminologycs.LGJoão Neves, Afonso Lourenço, Lizy K. John et al.
Best Arm Identification with Unknown Post-Action Context Distribution
Shared title terminologycs.LGAmir Mohammad Abouei, Mohammad Shahverdikondori, Emad Emamjomeh et al.
Sample-Efficient In-Context Adaptation via Sleep
Shared title terminologycs.LGSangyun Lee, Zhang Enyan, Michael Xu et al.
How do Transformers Perform Low-Level Control In-Context?
Shared title terminologycs.LGEbonye Smith, Aidan Andrews, Phoenix Wilson et al.