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.
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:
- 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).
- 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.
- 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.
- 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.
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