A Picture is Worth A Thousand Numbers: Enabling LLMs Reason about Time Series via Visualization
Haoxin Liu, Chenghao Liu, B. Aditya Prakash
TL;DR
This work addresses the challenge of enabling and evaluating large language models for time-series reasoning. It introduces TimerBed, a hierarchical testbed that probes TsR across stratified reasoning patterns, real-world tasks, and multiple LLMs with varied reasoning strategies, revealing systematic weaknesses in zero-shot and few-shot settings due to direct numerical data modeling. To overcome these limitations, the authors propose VL-Time, a prompt-based framework that uses visualization-based data modeling plus language guided reasoning in a plan-then-solve workflow, achieving substantial gains such as up to $140\%$ average improvement and up to $433\%$ in few-shot settings with greatly reduced token costs (about $1\%$ of numeric modeling). The study demonstrates that visualization and targeted prompting are effective for unlocking multimodal LLM TsR capabilities, suggesting a practical path for integrating LLMs into time-series analysis and planning future visual-centric approaches. The work has practical implications for deploying efficient, interpretable TsR reasoning in domains requiring rapid analysis of long time-series data.
Abstract
Large language models (LLMs), with demonstrated reasoning abilities across multiple domains, are largely underexplored for time-series reasoning (TsR), which is ubiquitous in the real world. In this work, we propose TimerBed, the first comprehensive testbed for evaluating LLMs' TsR performance. Specifically, TimerBed includes stratified reasoning patterns with real-world tasks, comprehensive combinations of LLMs and reasoning strategies, and various supervised models as comparison anchors. We perform extensive experiments with TimerBed, test multiple current beliefs, and verify the initial failures of LLMs in TsR, evidenced by the ineffectiveness of zero shot (ZST) and performance degradation of few shot in-context learning (ICL). Further, we identify one possible root cause: the numerical modeling of data. To address this, we propose a prompt-based solution VL-Time, using visualization-modeled data and language-guided reasoning. Experimental results demonstrate that Vl-Time enables multimodal LLMs to be non-trivial ZST and powerful ICL reasoners for time series, achieving about 140% average performance improvement and 99% average token costs reduction.
