TSFLab: A Self-Improving Agent-Agnostic Workbench for Time Series Forecasting Research

ChengAo Shen, Yanjun Zhao, Haoxin Liu, Bonnie Chen, Miles Ma, Dongjin Song, Hanghang Tong, Qingsong Wen, Jingrui He, Jingchao NiarXiv 2026

TL;DR

TSFLab is a self-improving, agent-agnostic "workbench" designed to help AI agents conduct time series forecasting (TSF) research more efficiently. By providing a shared infrastructure of structured knowledge and automated workflows, it improves task completion by up to 163% while significantly reducing token costs and development time.

What Problem Does This Paper Address?

The field of time series forecasting is exploding, with thousands of new papers published every year. However, the community faces a massive reproducibility crisis: only about 20% of these papers release their code. Even when code is available, it often requires significant manual effort to maintain and integrate into existing libraries.

The gap between published papers and available code/libraries is widening.

While AI agents (like Claude or Codex) show promise in automating research, using them "out of the box" is problematic. They are expensive to run, struggle with long-term memory across different research sessions, and often implement experiments inconsistently, making results hard to compare. TSFLab addresses these gaps by moving domain-specific knowledge and experimental logic out of the agent and into a reusable, shared workbench.

Methods

TSFLab introduces a "workbench" architecture that sits outside the AI agent, making it compatible with any LLM without needing to modify the model itself. It consists of four core modules:

  1. TSF-Domain Guide: A set of standardized workflows and "skills" that guide agents through tasks like data integration and evaluation, preventing common pitfalls (e.g., incorrect data splitting).
  2. Knowledge Structurer: Organizes information about 323 models and 93 datasets into "knowledge cards." These cards use "progressive disclosure," allowing agents to read high-level summaries first and only dive into complex code or paper details when necessary, saving on token costs.
  3. Experiment Workflower: A unified execution engine. Instead of writing custom training scripts, agents declare experiments in a simple configuration format. The workbench handles the heavy lifting of data loading, training, and consistent evaluation.
  4. Recursive Improver: A self-maintenance loop. It automatically verifies new models or datasets produced by agents and integrates them back into the workbench, allowing future agents to benefit from previous work.
Comparison of general agents versus agents equipped with the TSFLab workbench.

Datasets

The authors evaluated TSFLab across several standard and new TSF datasets:

  • Reproduction & Development: ETTh1 (energy), Traffic, and Weather.
  • New-Data Benchmarking: Two newly compiled datasets from real-time tracks: ERCOT (hourly load for Texas weather zones) and Openmeteo (hourly temperatures for 82 cities).

Key Insights and Ideas

  • Workbench vs. Harness: Most AI research tools build a "harness" around a specific agent. TSFLab builds a "workbench" outside the agent. This means as LLMs get smarter, they can immediately plug into TSFLab and become even more effective researchers.
  • Agent-Agnosticism: Because the workbench is external, it works equally well with different models like GPT-6 or Claude 3.5 Sonnet.
  • Structured Knowledge Saves Tokens: By providing "knowledge cards" instead of raw code, the system drastically reduces the amount of text an agent needs to process to make a decision.
  • Self-Maintenance is Key: The "Recursive Improver" ensures the library doesn't become obsolete. It turns every research session into a contribution to the shared infrastructure.

Key Results

TSFLab was tested on three major research tasks: paper reproduction, benchmarking on new data, and new method development.

  • Higher Completion: In reproduction and benchmarking, TSFLab improved task completion rates by 20–163% compared to baselines like TSLib or using no workbench.
  • Cost Efficiency: It reduced the number of "fresh tokens" (the expensive ones) by 11–66% per completed task.
  • Faster Development: In a pilot study for developing new forecasting methods, agents using TSFLab were 9.2–68.8% faster and used 32.8–73.6% fewer tokens while achieving better forecasting accuracy.
  • Accuracy: TSFLab reproduced 73% of results within 10% of the original paper's error, far outperforming other settings (21–46%).

Limitations and Future Work

The authors acknowledge that TSFLab is currently specialized for time series forecasting. While the concept of a workbench is general, the specific guides and tools would need to be rebuilt for other domains like chemistry or computer vision. Additionally, while the system helps agents develop competitive new methods, it hasn't yet produced a "breakthrough" model that significantly outperforms all existing state-of-the-art benchmarks. Future work will focus on more effective search strategies and extending the workbench to other research domains.

Summary updated

Abstract

As publications and products on time series forecasting (TSF) proliferate, researchers face a growing burden of analyzing existing work. First, not all publications release code. For instance, only about 20% of arXiv TSF papers have a code link in the surveyed period. Second, released code also requires manual maintenance. Thus, TSF researchers must constantly adapt or implement existing works. However, independent implementations can differ in experimental settings and are difficult to maintain. We therefore propose to use AI agents for benchmarking TSF research and even supporting autoresearch, e.g., developing new TSF models. Yet directly applying existing coding agents, such as Claude Code and Codex, is suboptimal: prohibitive costs, limited scalability to large research projects (e.g., benchmarking), and lack of self-maintenance. To address these challenges, we propose TSFLab, a self-improving agent-agnostic "workbench" that equips compatible coding agents with shared resources and tools for low-cost TSF research and continuous maintenance of research resources. Our experiments cover reproduction, benchmarking, and new method development. In reproduction and benchmarking, TSFLab improves task completion by 20-163% and cuts fresh tokens per completed task by 11-66% across baselines. A pilot study of agent-driven method development also shows improved forecasting accuracy via TSFLab, with 32.8-73.6% fewer fresh tokens and 9.2-68.8% less development time than the other settings.
BibTeX
@misc{shen2026tsflab,
  author = {ChengAo Shen and Yanjun Zhao and Haoxin Liu and Bonnie Chen and Miles Ma and Dongjin Song and Hanghang Tong and Qingsong Wen and Jingrui He and Jingchao Ni},
  title = {{TSFLab: A Self-Improving Agent-Agnostic Workbench for Time Series Forecasting Research}},
  year = {2026},
  eprint = {2610.40901},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.40901},
}
Figure