TimeSeriesExamAgent: Creating TimeSeries Reasoning Benchmarks at Scale

Malgorzata Gwiazda, Yifu Cai, Mononito Goswami, Artur Dubrawski

TL;DR

This paper introduces TimeSeriesExamAgent, a novel framework that automates the creation of diverse and high-quality time series reasoning benchmarks. By leveraging domain expert input and a multi-agent pipeline, it addresses the scalability and labor-intensive nature of existing benchmarks, while also highlighting the current limitations of Large Language Models (LLMs) in complex time series reasoning.

What Problem Does This Paper Address?

Evaluating the reasoning capabilities of Large Language Models (LLMs) on time series data is crucial, but current benchmarks face significant challenges. Many existing benchmarks are either too narrow, focusing only on simple time series properties like trend or seasonality, or they are domain-specific and require extensive manual curation, making them labor-intensive and difficult to scale. Furthermore, automated benchmark generation methods often produce lower-quality exams due to a lack of rigorous verification. This gap hinders our ability to accurately assess LLMs' understanding of complex, real-world time series phenomena, which often involve integrating multiple reasoning skills like anomaly detection and classification.

Methods

The core of this work is the TimeSeriesExamAgent, a multi-agent framework designed for automated benchmark creation. The process begins with a domain expert providing a dataset, a natural language description of the desired exam, and a simple data-loading method. The agent then orchestrates a sophisticated pipeline:

  • Generation: A "Generator LLM" creates question templates (Python functions) rather than individual questions. This abstraction offers scalability and robustness. These templates are designed to sample data, formulate questions, and derive correct answers based on predefined rules or auxiliary data.
  • Verification: A multi-stage verification process is employed to ensure the quality of generated templates. This includes:
  • Structure Verification: Checking if the template executes without errors.
  • Content Verification: Using an LLM verifier to assess grammatical correctness, ambiguity, and bias.
  • Capability-Aligned Filtering: Evaluating templates with test-taking LLMs to discard those that don't scale with model capability, indicating potential flaws.
  • Iterative Refinement: If a template fails verification, it's returned to the generation agent with feedback for improvement, allowing for up to three attempts before discarding.

The framework also incorporates "detractors" (plausible but incorrect answer choices) and "context condensation" to manage LLM context windows during regeneration.

Datasets

The framework was demonstrated and evaluated on three real-world datasets:

  • MIT-BIH: A medical dataset (cardiac signals).
  • PTB-XL: Another medical dataset (electrocardiogram signals).
  • Yahoo Finance Stock Dataset: A financial dataset (stock prices).

The paper introduces benchmarks generated from these datasets using TimeSeriesExamAgent. These newly generated benchmarks are compared to existing ones like ECG-QA.

Key Insights and Ideas

  • Template-based generation is key: Generating question templates rather than individual questions is a crucial insight for scalability and robustness, allowing for the creation of many diverse questions from a single template.
  • Multi-stage verification is essential for quality: Automated generation without rigorous verification leads to low-quality exams. The proposed multi-stage verification process (structure, content, capability-aligned filtering) is vital for ensuring reliable benchmarks.
  • Domain-agnosticism is achievable: The framework's ability to generate benchmarks across diverse domains (healthcare and finance) demonstrates its potential for broad applicability.
  • LLMs still struggle with complex time series reasoning: Despite advancements, current LLMs show limited accuracy on complex time series reasoning tasks, especially those requiring domain-specific knowledge or the integration of multiple skills.

Key Results

  • The TimeSeriesExamAgent framework successfully generated domain-agnostic benchmarks with diversity comparable to human-generated counterparts.
  • Evaluation of state-of-the-art LLMs on these generated benchmarks revealed that accuracy remains limited, with performance varying across different question types and domains. For instance, general-purpose multimodal models performed better on finance-related questions than on healthcare ones.
  • The framework produced benchmarks that are more diverse and adaptable than existing ones, as indicated by comparisons using embedding and normalized Levenshtein distance, and G-Eval metrics (specificity, unambiguity, domain relevance, answerability).

Limitations and Future Work

The authors acknowledge several limitations:

  • The quality of generated exams is dependent on the quality and coverage of the input time series dataset.
  • Domain specialists need to provide carefully crafted prompts for optimal results.

Future work directions include:

  • Human-in-the-loop improvements: Incorporating clinician feedback to enhance template generation quality.
  • Validation through agentic frameworks: Training time series-text alignment models and testing their performance on other benchmarks.
  • Enabling agentic frameworks: Allowing these frameworks to write code to answer benchmark questions, providing deeper insights into their reasoning capabilities.

Summary updated

Abstract

We introduce TimeSeriesExamAgent, a scalable and domain-agnostic framework for automatically generating and validating time series reasoning benchmarks. Existing benchmarks lack scalability, are limited to a few specific domains, while building them remains labor intensive. Automated solutions for benchmark creation have been proposed, but these typically rely on a single-step generation process without verification, leading to lower-quality exams. Our framework addresses these limitations by enabling domain experts to easily create high-quality, domain-specific exams from their own datasets. A domain expert provides a dataset, a natural language description, and a simple data-loading method. The agent then orchestrates the generation pipeline, including creating question templates, robustness verification from multiple perspectives, and iterative refinement. We demonstrate the framework on three datasets from two diverse domains-- healthcare and finance; and evaluate multiple state-of-the-art language models on the exams generated by TimeSeriesExamAgent. Empirically, we demonstrate that the framework produces domain-agnostic benchmarks whose diversity matches human-generated counterparts, and our evaluation of several Large Language Models shows that accuracy remains limited, underscoring open challenges in time-series reasoning.
BibTeX
@inproceedings{gwiazda2026timeseriesexamagent,
  author = {Malgorzata Gwiazda and Yifu Cai and Mononito Goswami and Artur Dubrawski},
  title = {{TimeSeriesExamAgent: Creating TimeSeries Reasoning Benchmarks at Scale}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=DewXWSvQPH},
}
Figure