Detecting Time Series Anomalies Like an Expert: A Multi-Agent LLM Framework with Specialized Analyzers
The paper introduces SAGE, a multi-agent LLM framework that enhances time series anomaly detection by decomposing the task into four specialized analyzers for different anomaly types, utilizing evidence-grounded consolidation and synthetic in-context learning to achieve superior performance and interpretability compared to existing baselines.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are a doctor trying to diagnose a patient who is acting strangely. In the past, you might have used a single, general-purpose tool (like a thermometer) to get one number and say, "The patient is sick." But that doesn't tell you why they are sick, or what kind of sickness it is.
This paper introduces SAGE (Specialized Analyzer Group for Expert-like Detection), a new way to use Artificial Intelligence (specifically Large Language Models) to act like a team of expert doctors rather than a single generalist.
Here is how SAGE works, broken down into simple concepts:
1. The Problem: The "One-Size-Fits-All" Doctor
Time-series data is like a heartbeat monitor or a stock market chart—it's a line of numbers changing over time. Sometimes, something goes wrong (an "anomaly").
- Old AI methods were like a single doctor who just looked at the chart and said, "Something is wrong here." They gave a score but couldn't explain if it was a sudden spike, a slow drift, a broken rhythm, or a weird pattern.
- The Limitation: If the AI can't explain what is wrong, it's hard for a human to trust it or fix the problem.
2. The Solution: A Team of Specialists (SAGE)
Instead of one AI trying to do everything, SAGE sets up a team of four specialized "detectives" (called Analyzers). Each one has a specific job and uses special tools to look at the data from a different angle:
- The Point Detective (Point Analyzer): Looks for sudden, isolated spikes or drops. Analogy: Like spotting a single person in a crowd who suddenly jumps up and down.
- The Structure Detective (Struct Analyzer): Looks for changes in the overall shape or trend. Analogy: Like noticing the whole crowd has suddenly started walking in a different direction or the ground has tilted.
- The Rhythm Detective (Season Analyzer): Checks if the repeating patterns (like daily cycles) are broken. Analogy: Like noticing a clock that usually ticks every second is now ticking every three seconds.
- The Pattern Detective (Pattern Analyzer): Looks for weird shapes or distortions in the wave itself. Analogy: Like noticing a song that usually sounds smooth is now sounding scratchy or warped.
3. The Evidence Room: "Dual Representation"
To help these detectives work, SAGE gives them two versions of the data:
- The Raw Data: A precise, high-definition version for the math tools to crunch numbers (like calculating exact averages).
- The Summary: A compressed, easy-to-read version for the AI to read quickly (like a news headline).
This saves the AI from getting overwhelmed by too much text while still letting the math tools do their job accurately.
4. The Judge: The "Detector"
Once the four detectives finish their work, they all bring their findings to a Judge (the Detector).
- The Judge doesn't just count votes; it looks at the evidence.
- If the Point Detective says "Spike!" and the Structure Detective says "Trend Change!" and they both point to the same spot, the Judge gives it a high confidence score (e.g., 95% sure).
- If the evidence is weak or conflicting, the Judge lowers the score.
- Crucially: The Judge doesn't just say "Anomaly." It says, "Anomaly detected between 2:00 PM and 2:05 PM, likely a 'Spike' and 'Trend Change,' with 95% confidence."
5. The Report Writer: The "Supervisor"
Finally, a Supervisor takes the Judge's technical notes and writes a plain-English report for the human analyst.
- Instead of just numbers, it says: "Alert! The system is acting urgently. We see a massive spike in values. This looks like a sensor error. Check the upstream pipeline."
- This turns raw data into actionable advice.
6. The Secret Sauce: "Synthetic Training"
Usually, to teach an AI to spot a "broken clock," you need to show it thousands of pictures of broken clocks. But in the real world, we often don't have enough examples of broken things (anomalies).
- SAGE's Trick: It takes "normal" data and fakes the anomalies. It mathematically injects a spike or a trend change into a normal pattern to create a "synthetic example."
- It uses these fake examples to teach the AI what to look for, without needing real-world disaster data. This allows it to learn the concept of an anomaly without needing a library of real disasters.
The Results
The paper tested SAGE on three different types of real-world data (web traffic, IT server metrics, and web service stats).
- Performance: SAGE outperformed both traditional math-based methods and other AI methods.
- Human Trust: When humans (experts in the field) reviewed the reports, they rated SAGE's explanations as much clearer, more accurate, and more useful than the other methods.
Summary
SAGE is like upgrading from a single security guard who just yells "Intruder!" to a specialized security team with a point-scout, a trend-analyst, a rhythm-checker, and a pattern-expert. They all gather evidence, vote on the threat level, and send a clear, written report to the manager explaining exactly what happened and what to do about it.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.