Skip to content
Back to skills

Time Ra Eval

ASecurity

Evaluates the ability of LLMs and MLLMs to diagnose anomalies in univariate and multivariate time series data. It probes the models' capacity for structured reasoning (generating a 'Thought') and precise action classification ('ActionID') based on raw or visualized temporal data. Use when the user wants to benchmark on RATs40K, or asks about evaluating this task. Reports Label Matching F1.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
researchpythongoexpressperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill time-ra-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Time Ra Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Time Ra Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-time-ra-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-time-ra-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: time-ra-eval
description: Evaluates the ability of LLMs and MLLMs to diagnose anomalies in univariate and multivariate time series data. It probes the models' capacity for structured reasoning (generating a 'Thought') and precise action classification ('ActionID') based on raw or visualized temporal data. Use when the user wants to benchmark on RATs40K, or asks about evaluating this task. Reports Label Matching F1.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2507.15066
  bibtex_key: yang2025timera
  confidence: high
---

# time-ra-eval

> Time-RA: Towards Time Series Reasoning for Anomaly Diagnosis with LLM Feedback — Yang et al. (2025) (arXiv:2507.15066, 2025)

## What this evaluates

Evaluates the ability of LLMs and MLLMs to diagnose anomalies in univariate and multivariate time series data. It probes the models' capacity for structured reasoning (generating a 'Thought') and precise action classification ('ActionID') based on raw or visualized temporal data.

## Datasets

- **RATs40K** — total ?; splits: test (-1)

## Metrics

- `Label Matching F1` **(primary)** — range: [0, 1]
  - Weighted F1 score computed from precision and recall of exact label matches between predicted and ground truth anomaly labels.
- `ActionID Matching F1` — range: [0, 1]
  - Weighted F1 score for exact matching of the predicted anomaly action category against the ground truth.
- `Thought Matching (Cosine, TF-IDF, Levenshtein, Token, RCS)` — range: [0, 1]
  - Semantic and lexical similarity metrics comparing the generated reasoning text to the ground truth explanation. Includes cosine similarity, TF-IDF similarity, Levenshtein distance, token overlap, and RCS.

## Input / output format

**Input**: Time series data (univariate or multivariate), optionally accompanied by visualized plots, formatted into a fixed instruction template.

**Output**: A text response containing a structured 'Thought' (reasoning) and 'Action' (anomaly classification/action ID).

## Scoring recipe

```python
import re
pred_thought = re.search(r'Thought:\s*(.*)', output, re.DOTALL).group(1).strip()
pred_action = re.search(r'Action:\s*(.*)', output, re.DOTALL).group(1).strip()
pred_label = extract_label(pred_action)
gold_label = extract_label(gold_action)
precision = (pred_label == gold_label).mean()
recall = precision
f1 = 2 * precision * recall / (precision + recall + 1e-8)
score_cosine = cosine_similarity(embed(pred_thought), embed(gold_thought))
score_tfidf = tfidf_similarity(pred_thought, gold_thought)
score_lev = 1 - levenshtein_distance(pred_thought, gold_thought) / max(len(pred_thought), len(gold_thought))
score_token = jaccard(set(pred_thought.split()), set(gold_thought.split()))
score_rcs = compute_rcs(pred_thought, gold_thought)
```

## Common pitfalls

- Regex-based extraction of 'Thought' and 'Action' may fail if the model deviates from the expected formatting, leading to missing or malformed predictions.
- Semantic similarity metrics (Cosine, TF-IDF) for 'Thought Matching' are sensitive to phrasing variations and may not fully capture the quality or correctness of the diagnostic reasoning.
- Performance gains from Supervised Fine-Tuning (SFT) are inconsistent, particularly in complex multivariate scenarios where models may stagnate or regress.

## Evidence (verbatim from paper)

> To evaluate the model outputs, we design regular expressions to automatically extract the predicted Thought and Action, which will then be compared against the ground truth. Evaluation metrics follow the definition of the Time-RAtask, with the best results in bold and second-best underline. F1 means weighted-F1 score.

## Citation

```bibtex
@misc{yang2025timera,
  title={Time-RA: Towards Time Series Reasoning for Anomaly Diagnosis with LLM Feedback},
  author={Yang et al. (2025)},
  year={2025},
  note={arXiv:2507.15066}
}
```

- arXiv: 2507.15066

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.