Back to AI Research

AI Research

LLM-Generated Feature Pools for Time Series Anomaly... | AI Research

Key Takeaways

  • This paper explores how far a simple, statistical approach can go in detecting anomalies in time series data.
  • We study how far a simple statistical pipeline can go on univariate time series anomaly detection under a strict selection protocol.
  • The method extracts a small pool of statistics over sliding windows, scores each window with a transductive robust (MAD) model, and selects a feature subset per domain on a held-out tuning split.
  • Ablations locate the cause: across three selection strategies and a hindsight oracle the score moves by $0.031$, and across the aggregation grid by $0.096$, while changing the candidate pool moves it by $0.226$.
  • The candidate pool sets the ceiling; the search over it is second-order.
Paper AbstractExpand

We study how far a simple statistical pipeline can go on univariate time series anomaly detection under a strict selection protocol. The method extracts a small pool of statistics over sliding windows, scores each window with a transductive robust (MAD) model, and selects a feature subset per domain on a held-out tuning split. On TSB-AD-U it reaches $0.529$ per-series VUS-PR, above the best neural ($0.45$) and statistical ($0.44$) entries on the public leaderboard and within $0.06$ of the strongest pretrained foundation model, several of which use more supervision than ours. Ablations locate the cause: across three selection strategies and a hindsight oracle the score moves by $0.031$, and across the aggregation grid by $0.096$, while changing the candidate pool moves it by $0.226$. The candidate pool sets the ceiling; the search over it is second-order. We therefore generate a pool per domain by prompting a multimodal LLM with in-context example windows from that domain. The generated pools match the hand-crafted one under matched selection, and the two cover different domains: selecting over their union improves on the generated pool in all twelve generator-seed pairs and lifts the pipeline to $0.588$, matching the performance of the best entry on the leaderboard.

This paper explores how far a simple, statistical approach can go in detecting anomalies in time series data. While many modern methods rely on complex neural networks or large-scale pretraining, the authors demonstrate that a straightforward pipeline—using sliding windows, basic statistical features, and a robust scoring model—can be highly competitive. The study reveals that the primary bottleneck for these systems is not the complexity of the detector, but the "vocabulary" of features they are given to work with.

The Power of a Better Vocabulary

The authors argue that a feature-based detector is only as good as the features it uses. If a specific anomaly (such as a subtle shift in variance or a change in periodicity) is not captured by any of the features in the pool, the detector will remain blind to it. Rather than simply enlarging a static library of features, which often leads to diminishing returns, the researchers propose a shift toward adaptive, task-conditioned feature discovery. By using a multimodal language model to generate custom features based on visual examples of a specific domain, the system can "learn" what to look for in a way that static, hand-crafted libraries cannot.

How the Pipeline Works

The pipeline operates in a fully transductive manner, meaning it computes everything from the series being analyzed without needing external training data. It follows five steps: 1. Windowing: The series is broken into sliding windows based on its dominant period. 2. Feature Extraction: A set of statistical features is calculated for each window. 3. Robust Scoring: A median/MAD (Median Absolute Deviation) model is applied to identify anomalies. 4. Feature Aggregation: Individual feature scores are combined into a single window score. 5. Point Aggregation: Overlapping window scores are averaged to produce a final anomaly score for each point in the series. The same large language models question is explored in Kernel-Managed Shared Memory for System-Wide Personalization, which adds a research perspective.
The key innovation is the use of a multimodal language model to generate the feature pool. The model is shown plots of normal and anomalous windows from a specific domain and is prompted to write Python code for features that would help distinguish between them. These generated features are then combined with expert-curated features to create a "union pool."

Key Findings and Performance

The results show that this approach is remarkably effective. The hand-crafted version of the pipeline already outperforms the best existing neural and statistical entries on the TSB-AD-U benchmark. When the pipeline uses the "union pool" of both expert-designed and LLM-generated features, it reaches a performance level that matches the strongest pretrained foundation models on the leaderboard. The same large language models question is explored in Making Alternative Data Work, which adds a research perspective.
The authors also performed "ablations"—systematic tests to see which parts of the pipeline matter most. They found that changing the feature pool has a much larger impact on performance than changing the selection strategy or the way scores are aggregated. This confirms that the "ceiling" of the detector's performance is set by the quality and relevance of the feature vocabulary, rather than the sophistication of the search process.

Important Considerations

While the results are strong, the study highlights that the effectiveness of this method depends on the quality of the generated features. A language model alone is not always perfectly reliable, which is why the "union" approach—combining LLM-generated features with human-expert features—consistently provides the best results. The study suggests that for future anomaly detection, the most productive path is to focus on generating task-specific features rather than simply building larger, static libraries or increasingly complex neural architectures. The same large language models question is explored in FlashVector, which adds a research perspective. as detailed in the full paper on Arxiv

Comments (0)

No comments yet

Be the first to share your thoughts!