CastFlow: Bridging Evidence Acquisition and Accurate Prediction in Agentic Time Series Forecasting

Bokai Pan, Mingyue Cheng, Xiaoyu Tao, Zhiding Liu, Shuo Yu +4 more
4/30/2026
1 citation
cs.LGcs.AI

Official code: Forever-Pan/CastFlow (18 stars, Python, MIT, last commit 2026-10-16).

Abstract

Time series forecasting is a fundamental task in temporal data analytics, and large language model (LLM)-based agents offer a promising paradigm through autonomous tool interaction and evidence-grounded reasoning. However, two fundamental challenges remain: how to acquire forecast-relevant evidence through adaptive tool interactions, and how to translate such evidence into accurate numerical predictions.

Show full abstract

To address these challenges, we propose CastFlow, a role-specialized agentic forecasting framework that bridges general-purpose tool reasoning and specialized temporal forecasting. Specifically, CastFlow introduces an Experience Memory that distills successful tool-use trajectories from training data, guiding a frozen LLM to orchestrate a multi-view toolkit for evidence acquisition. A lightweight specialized LLM then performs evidence-grounded temporal reasoning to refine an ensemble forecasting prior. To enhance this capability, we develop a two-stage training strategy combining supervised fine-tuning and reinforcement learning with verifiable rewards, where final forecasting outcomes of the overall workflow guide the optimization of the specialized model. Extensive experiments on ten real-world benchmarks demonstrate that CastFlow outperforms competitive baselines on nine datasets. Our findings highlight the importance of bridging autonomous evidence acquisition and specialized temporal reasoning for accurate and adaptive agentic forecasting. The source code is available at https://github.com/Forever-Pan/CastFlow.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of CastFlow: Bridging Evidence Acquisition and Accurate Prediction in Agentic Time Series Forecasting.

181Python, ShellApr 30, 20261 months agoMIT

Similar Papers

Cite this paper

@article{pan2026castflow,
  title  = {CastFlow: Bridging Evidence Acquisition and Accurate Prediction in Agentic Time Series Forecasting},
  author = {Bokai Pan and Mingyue Cheng and Xiaoyu Tao and Zhiding Liu and Shuo Yu and Yuchong Wu and Qi Liu and Defu Lian and Enhong Chen},
  year   = {2026},
  eprint = {2604.27840},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.27840v3}
}

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/2604.27840.svg)](https://codeofpaper.com/paper/2604.27840)

Discussion