Representing Time Series as Structured Programs for LLM Reasoning
On the map: LLM reasoning → Time series reasoning
Abstract (arXiv)
Large language models (LLMs) have demonstrated strong reasoning and instruction-following capabilities, making them potentially powerful tools for time-series analysis. However, time series lie outside their native textual modality, raising a fundamental question: how should time series be represented so that LLMs can reason about them effectively? Existing work typically serializes raw numerical sequences or fine-tunes pre-trained LLMs on time-series data. These approaches place the burden of extracting temporal structure directly on the LLM, creating a modality mismatch that often degrades performance on long sequences and introduces substantial computational overhead. In this work, we introduce Time-Series-to-Structured-Program representation (T2SP), a deterministic, training-free method that represents a time series as a structured symbolic program. T2SP decomposes time series into trends, periods, and salient events, expressing them in a program-friendly format aligned with the textual and code-like modalities on which LLMs are natively trained. By shifting temporal-structure extraction from the model to the representation itself, T2SP enables off-the-shelf LLMs to leverage their existing reasoning capabilities for time-series understanding. We evaluate T2SP on three reasoning tasks -- editing, captioning, and question answering -- where it consistently improves performance, reduces reasoning time, and lowers failure rates compared with raw-string representations. Our results demonstrate that T2SP provides an effective interface between time series and LLMs.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Time series reasoning, one of 17 directions in LLM reasoning. Builds on 11 of its 34 references that are in the map. First posted on arXiv 10 Jun 2026.
Builds on
11 of 34 references.
Closest ancestors · 3
Same direction, newest first
- 2026LLaTiSA: Towards Difficulty-Stratified Time Series Reasoning from Visual Perception to Semantics19 Apr
- 2026Adaptive Time Series Reasoning via Segment Selection20 Feb
- 2025OpenTSLM: Time-Series Language Models for Reasoning over Multivariate Medical Text- and Time-Series Data2 Oct
Other references · 8
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2024The AI Scientist: Towards Fully Automated Open-Ended Scientific Discoverycited by 1,071
- 2025Humanity's Last Examcited by 491
- 2025Harnessing Vision Models for Time Series Analysis: A Surveycited by 26
- 2025FoNE: Precise Single-Token Number Embeddings via Fourier Featurescited by 22
- 2025BEDTime: A Unified Benchmark for Automatically Describing Time Seriescited by 12
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026TimeSeriesExamAgent: Creating Time Series Reasoning Benchmarks at Scale
- 2025Toward Reasoning-Centric Time-Series Analysis
- 2025When LLM Meets Time Series: Can LLMs Perform Multi-Step Time Series Reasoning and Inference
- 2023Time-LLM: Time Series Forecasting by Reprogramming Large Language Models
- 2025TS-Reasoner: Aligning Time Series Foundation Models with LLM Reasoning
- 2025TimeSense:Making Large Language Models Proficient in Time-Series Analysis
- 2024Understanding Why Large Language Models Can Be Ineffective in Time Series Analysis: The Impact of Modality Alignment
- 2026Thoth: Mid-Training Bridges LLMs to Time Series Understanding