← Latest papers
💻 computer science

FAME: Failure-Aware Mixture-of-Experts for Message-Level Log Anomaly Detection

FAME is a label-efficient, mixture-of-experts framework that leverages a single offline LLM annotation pass to train lightweight on-premise models for high-accuracy, message-level log anomaly detection, significantly reducing annotation costs while effectively identifying failures across heterogeneous systems.

Original authors: Huanchi Wang, Zihang Huang, Yifang Tian, Kristina Dzeparoska, Hans-Arno Jacobsen, Alberto Leon-Garcia

Published 2026-05-22
📖 6 min read🧠 Deep dive

Original authors: Huanchi Wang, Zihang Huang, Yifang Tian, Kristina Dzeparoska, Hans-Arno Jacobsen, Alberto Leon-Garcia

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 the manager of a massive, 24/7 factory. Every second, thousands of machines are churning out tiny slips of paper (log messages) describing what they are doing. Most of these slips say, "I'm fine," or "I'm doing my job." But occasionally, a slip says, "I'm broken!" or "Something is wrong!"

The problem is that you get millions of these slips a day. If you try to read every single one, you'll go crazy. If you try to read them in big bundles (like "the last 100 slips"), you might catch a problem, but you won't know which specific slip caused the alarm. You'd have to manually sift through hundreds of "I'm fine" slips just to find the one "I'm broken" slip. This is slow, expensive, and frustrating.

This paper introduces FAME, a new system designed to find the exact "broken" slip instantly, without needing a human to read millions of lines.

Here is how FAME works, explained through simple analogies:

1. The Problem: The "One-Size-Fits-All" Trap

Most current systems act like a single, overworked security guard trying to spot a thief in a crowd of 10 million people. They look at groups of people. If the group looks suspicious, they flag the whole group. But to find the actual thief, you still have to interview everyone in that group.

Furthermore, the "thieves" (errors) come in many different flavors: a broken memory chip, a network glitch, a software crash. Trying to teach one guard to recognize all these different types of crimes at once is incredibly hard and often leads to mistakes.

2. The Solution: The "Specialist Team" (Mixture of Experts)

FAME changes the game by hiring a team of specialists instead of one generalist.

  • The Concept: Imagine a hospital. Instead of one doctor trying to diagnose heart attacks, broken bones, and flu symptoms all at once, you have a cardiologist, an orthopedist, and a virologist.
  • How FAME does it: It splits the millions of log messages into different "failure domains" (like different medical departments).
    • One expert only looks at "Memory Errors."
    • Another only looks at "Network Failures."
    • Another looks at "Software Crashes."

Because each expert only focuses on one specific type of problem, they become incredibly good at spotting it.

3. The "Smart Receptionist" (The Router)

You can't send every single slip of paper to every specialist; that would be chaos. FAME uses a Smart Receptionist (a lightweight AI router).

  • When a new log message arrives, the Receptionist glances at it and says, "This looks like a memory issue," and instantly sends it to the Memory Expert.
  • If it looks like a network issue, it sends it to the Network Expert.
  • If it looks like a normal "I'm fine" message, it sends it to a "Universal Normal" bin.

This happens in milliseconds. The Receptionist doesn't need to be a genius; it just needs to know which door to open.

4. The "One-Time Brainstorm" (Using the Big AI)

Here is the clever part. How do you decide which specialists to hire and what their job titles should be?

  • The Old Way: You might try to train the whole team from scratch, which requires reading millions of labeled examples (a human reading and tagging every single slip as "broken" or "fine"). This is too expensive and slow.
  • The FAME Way: You call in a Super-Intelligent AI (a Large Language Model) just once, offline.
    • You show the Super AI a few examples of different errors.
    • The Super AI says, "Okay, I see a pattern. Let's create a 'Memory Error' team, a 'Network Error' team, etc."
    • The Super AI draws the map of the factory and assigns the roles.
    • Crucially: Once this map is drawn, you never call the expensive Super AI again. You fire the Super AI for the day.

From that point on, the factory runs entirely on the cheap, fast, local team of specialists and the receptionist.

5. The "Few-Shot" Trick (Saving Money on Labels)

Usually, to train a specialist, you need thousands of examples of "broken" slips. FAME uses a statistical trick.

  • If you look at a specific type of log message (a "template") and you see 100 examples, and all 100 are broken, you don't need to train a complex detector for it. You just tell the Receptionist: "If you see this type of message, it's broken. Send it to the broken pile."
  • If the 100 examples are mixed (some broken, some fine), then you train a small, local detector for that specific group.
  • The Result: Instead of needing humans to label 4.7 million lines, FAME only needed humans to label about 53,000 lines (a 76x reduction). It's like hiring a human to check just a few samples of a product line rather than checking every single item.

6. The Results: Fast, Cheap, and Accurate

  • Speed: It can process over 1 million log lines per hour on a standard computer.
  • Cost: It costs about $10 to set up and run (mostly for that one-time AI brainstorm). In contrast, using a big AI to check every single line would cost thousands of dollars per run.
  • Accuracy: On a real-world supercomputer dataset, it found 98% of the errors with very few false alarms. It even found errors in log types it had never seen before by guessing which "specialist" they belonged to based on the message content.

Summary

FAME is like building a highly efficient factory inspection line. Instead of hiring one giant, expensive robot to read every single note, you:

  1. Ask a smart consultant once to design the workflow.
  2. Hire a team of cheap, fast, local specialists who only look at one specific type of problem.
  3. Use a simple receptionist to sort the notes to the right specialist.

The result is a system that is fast, cheap to run, requires very little human training data, and finds the exact broken part immediately.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →