CastMind: An Interaction-Driven Agentic Reasoning Framework for Cognition-Inspired Time Series Forecasting

Xiaohan Zhang, Tian Gao, Monica Xiao Cheng, Beibei Pan, Ze Guo, Ying Liu, Xiaoyu Tao, Liu, Qi · DOI

Abstract

Time series forecasting plays a crucial role in decision-making across many real-world applications. Despite substantial progress, most existing methods still treat forecasting as a static, single-pass regression problem. In contrast, human experts form predictions through iterative reasoning that integrates temporal features, domain knowledge, case-based references, and supplementary context, with continuous refinement. In this work, we propose CastMind, an interaction-driven agentic reasoning framework that enables accurate time series forecasting with training-free large language models. CastMind reformulates forecasting as an expert-like process and organizes it into a multi-stage workflow involving context preparation, reasoning-based generation, and reflective evaluation, transforming forecasting from a single-pass output into a multi-turn, autonomous interaction process. To support diverse perspectives commonly considered by human experts, we develop a lightweight toolkit comprising a feature set, a knowledge base, a case library, and a contextual pool that provides external support for LLM-based reasoning. Extensive experiments across multiple benchmarks show that CastMind generally outperforms representative baselines.

Introduction: Moving Beyond Static Regression

Traditional time series forecasting models typically operate as static, single-pass regression engines. Historical data is mapped directly to a predicted window through a fixed mathematical function. While effective for stable patterns, these models often struggle with volatility and causal shifts because they lack the ability to incorporate external context or domain-specific logic.

Comparison between static regression and the cognition-inspired interactive process.

In contrast, human experts approach forecasting as an iterative, cognitive process. They analyze historical trends, consult domain knowledge (e.g., physical laws), reference similar past cases, and refine their hypotheses based on logical consistency. CastMind bridges this gap by reimagining forecasting as an agentic reasoning process powered by Large Language Models (LLMs).

The CastMind Framework

CastMind organizes the forecasting task into a three-stage workflow involving specialized agents and a comprehensive toolkit.

The CastMind architecture featuring the Investigator, Generator, and Reflector agents.

1. The Investigator (Context Preparation)

The Investigator agent is responsible for gathering all necessary evidence using the Forecasting Toolkit. This toolkit consists of:

  • Feature Set: Extracts statistical and temporal features like skewness and seasonality.
  • Knowledge Base: Retrieves domain-specific principles (e.g., Joule's law for electricity or mass conservation in hydrology).
  • Case Library: Finds historical "neighbors" and retrieves baseline predictions from traditional models (e.g., DLinear or PatchTST) to provide a starting point.
  • Contextual Pool: Ingests external textual information such as public holidays or scheduled events.

2. The Generator (Reasoning-Based Forecasting)

Rather than predicting from scratch, the Generator uses Chain-of-Thought (CoT) reasoning to adjust the baseline predictions provided by the Case Library. By acting as an "editor" rather than an "author," the LLM leverages its logical strengths while avoiding the pitfalls of complex mental arithmetic.

3. The Reflector (Iterative Refinement)

The Reflector acts as a quality control mechanism. It evaluates the generated forecast for physical consistency and logical coherence. If a prediction violates known constraints (e.g., a sudden temperature drop without a causal trigger), the Reflector provides feedback, prompting the Generator to revise its output.

Key Insights

  • Escaping the Mean-Reversion Trap: Traditional models often "play it safe" by predicting the mean, which leads to missing critical spikes. CastMind’s causal reasoning allows it to anticipate and model these fluctuations accurately.
  • The Necessity of Self-Reflection: Ablation studies show that without the Reflector, LLM-based reasoning can lead to hallucinations. The iterative feedback loop is essential for maintaining physical and logical grounding.
  • LLMs as Editors: The framework plays to the LLM's strengths (logic and context) while mitigating its weaknesses (precise arithmetic) by initializing with a prediction from a traditional model and asking the LLM to adjust it.

Performance and Results

CastMind was evaluated across diverse domains, including electricity price forecasting (EPF) and long-term energy/hydrology tasks. It consistently outperformed 12 representative baselines, including state-of-the-art deep learning models (PatchTST, iTransformer) and foundation models (Chronos).

For example, in the Windy Power dataset, CastMind achieved an MSE of 1548.8, significantly lower than DLinear (1932.2) and the foundation model Chronos (2268.5). In the Belgium Electricity market, it achieved an MSE of 536.4, outperforming iTransformer (606.5).

Conclusion

CastMind demonstrates that time series forecasting can be significantly improved by shifting from static regression to interactive, agentic reasoning. By equipping LLMs with a specialized toolkit and a reflective workflow, the framework achieves superior accuracy and interpretability. Future work will focus on reducing the latency and computational costs associated with multi-turn LLM interactions.

Summary updated

BibTeX
@misc{zhang2025castmind,
  author = {Xiaohan Zhang and Tian Gao and Monica Xiao Cheng and Beibei Pan and Ze Guo and Ying Liu and Xiaoyu Tao and Liu, Qi},
  title = {{CastMind: An Interaction-Driven Agentic Reasoning Framework for Cognition-Inspired Time Series Forecasting}},
  year = {2025},
  eprint = {2511.08947},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.08947},
}
Figure