Introduction
Time-series anomaly detection (TSAD) is a critical task across domains ranging from healthcare to web traffic monitoring. While Multimodal Large Language Models (MLLMs) like GPT-4o have shown remarkable visual capabilities, they fundamentally lack time-series priors. When presented with a line plot, they tend to "eyeball" the data, easily spotting massive spikes but missing nuanced temporal shifts, frequency changes, or slow trend drifts.
AnomSeer is a novel post-training framework designed to transform MLLMs into expert-level time-series analysts. By unifying classical signal processing with advanced reinforcement learning, AnomSeer enables models to not only detect anomalies with high precision but also generate verifiable, numerically grounded explanations.
The "Eyeballing" Trap
Current MLLMs treat time-series plots as generic images rather than structured sequences of data. This leads to a "shallow understanding" trap: models rely on coarse visual heuristics (e.g., "the line goes up suddenly") rather than detailed, multi-dimensional reasoning. Furthermore, standard fine-tuning often fails to incentivize the actual process of reasoning, resulting in models that might guess the correct anomaly for the wrong reasons. AnomSeer addresses this by forcing the model to ground its reasoning in precise, structural details.
Methodology: Bridging Visual Intuition and Numerical Rigor
To bridge the gap between visual intuition and statistical rigor, the researchers introduce two core innovations:
1. Expert Chain-of-Thought (ExpCoT)
Instead of relying on LLM-generated explanations—which are prone to hallucination—AnomSeer utilizes classical algorithms to generate "gold standard" reasoning traces. By leveraging tools like Fast Fourier Transforms (FFT) for frequency analysis, Matrix Profiles for pattern similarity, and Z-scores for outliers, the framework builds a disciplined reasoning path: Observation (global/local scans) $\rightarrow$ Reasoning & Validation (statistical testing) $\rightarrow$ Conclusion. This forces the model's internal monologue (using <think> tags) to reference specific timestamps and statistical deviations, making the output testable and verifiable.
2. Time-series Grounded Policy Optimization (TimerPO)
To effectively train the model on these expert traces, the authors propose TimerPO, a specialized Reinforcement Learning (RL) algorithm featuring two unique components:
- Optimal Transport (OT): This measures how closely the model’s reasoning aligns with the expert's logic at a semantic level, rather than just rewarding exact keyword matches.
- Orthogonal Projection: A mathematical safeguard ensuring that the auxiliary "reasoning reward" (learning to explain well) does not interfere with the primary "task reward" (learning to accurately detect the anomaly). This keeps training stable and prevents the model from generating verbose but inaccurate outputs.
Datasets and Evaluation
AnomSeer was trained and evaluated across a diverse mix of synthetic and real-world datasets:
- AnomLLM: A synthetic dataset featuring frequency, trend, and point anomalies, serving as the primary training ground for ExpCoT supervision.
- VisualTimeAnomaly: A hybrid benchmark converting numerical series into images across a broad spectrum of anomaly types.
- TSB-UAD: A massive real-world collection of 1,635 univariate series from domains like ECG (heart rates) and web traffic.
Key Results
Built on the Qwen2.5-VL-3B and 7B-Instruct architectures, AnomSeer demonstrates that smaller, specialized models can significantly outperform massive generalist models in domain-specific tasks.
- Superior Accuracy and Localization: AnomSeer-3B and 7B outperformed larger commercial models like GPT-4o and Gemini-2.5-Pro in both classification and localization. On the AnomLLM benchmark, AnomSeer-7B achieved an average F1 score of 84.4%, completely eclipsing GPT-4o’s 41.2%.
- Zero-Shot Generalization: Despite being trained primarily on synthetic data, AnomSeer generalized remarkably well to real-world datasets (TSB-UAD). It even successfully detected "Shapelet" anomalies—a category it was never exposed to during training.
- Classical Stats as the "Teacher": The results highlight a fascinating insight: "old-school" signal processing is far from obsolete. By forcing MLLMs to align with FFT and Matrix Profile results, classical statistics serve as the perfect supervisor, teaching modern AI to "see" features it previously ignored.
Limitations and Future Work
While AnomSeer represents a major leap forward, the current iteration is focused on univariate (single-variable) time series. Future work will likely explore multivariate data, potentially by rendering variables as subplots. Additionally, the model occasionally struggles with boundary cases (anomalies at the very beginning or end of a sequence) and lacks external "world knowledge" (e.g., knowing a traffic spike is normal during a holiday sale). Integrating such metadata remains an exciting frontier for time-series MLLMs.
Summary updated