← Latest papers
💻 computer science

LogSemFuse: Semantic Evidence Fusion for Explainable Log Anomaly Detection

LogSemFuse is an evidence-guided plug-in framework that enhances existing log anomaly detectors by fusing backbone predictions with reusable semantic evidence from local patterns, LLM reasoning, and executable rules to improve detection accuracy and provide actionable, explainable insights with minimal runtime overhead.

Original authors: Hassan Jabri, Zeyang Ma, Zhijie Wang, Tse-Hsun Chen

Published 2026-07-07
📖 5 min read🧠 Deep dive

Original authors: Hassan Jabri, Zeyang Ma, Zhijie Wang, Tse-Hsun Chen

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 security guard for a massive, bustling city (a modern software system). Every day, millions of people (log messages) walk through the gates, shouting what they are doing. Your job is to spot the troublemakers (anomalies) before they cause a disaster.

For a long time, you've had a high-tech security camera system (existing AI detectors like DeepLog or LogBERT). This camera is great at counting faces and spotting patterns. If someone walks through the door 50 times in a minute, the camera screams, "ALARM!" But here's the problem: the camera only gives you a red light and a score. It doesn't tell you why it's alarmed. Is that person a thief? Are they just in a hurry? Did they trip? You have to stare at the raw video footage yourself to figure it out, which is slow and exhausting.

Recently, someone suggested hiring a super-smart detective (a Large Language Model, or LLM) to watch the video. This detective is great at understanding context and can tell you, "That person is running because they are stealing a bag." But there's a catch: hiring this detective for every single person walking through the gate is incredibly expensive and slow. Plus, sometimes the detective gets confused or makes up stories that aren't actually in the video.

Enter LogSemFuse.

The authors of this paper built a "plug-in" system that acts like a smart assistant for your existing security camera. It doesn't replace the camera; it just gives the camera a superpower: the ability to explain itself using evidence.

Here is how LogSemFuse works, using three simple tools:

1. The "Pattern Spotter" (Local Event Patterns)

Think of this as a list of "suspicious behaviors" you wrote down from past crimes.

  • How it works: The system looks at the raw data and finds short, specific sequences that always happen when something goes wrong. For example, "If someone tries to open a door, then immediately tries to break a window, then runs away," that's a bad pattern.
  • The Analogy: It's like having a cheat sheet that says, "If you see these three specific steps in a row, it's definitely a crime." This part is fast, free, and doesn't need the expensive detective.

2. The "Rule Book" (Cluster-Derived Rules)

Sometimes, crimes are more complex. They don't happen in a straight line; they happen in a messy group.

  • How it works: The system groups similar past crimes together (clustering) and asks the super-smart detective to write a "Rule Book" for each group. The detective says, "In this group of crimes, the bad guys always leave a note, but they never lock the back door." The system turns this into a strict rule.
  • The Analogy: Instead of asking the detective to watch every new person, you give the security guard a rule book: "If you see a note AND an unlocked back door, sound the alarm." The detective only writes the book once (during training), and the guard uses it forever.

3. The "On-Demand Detective" (LLM Reasoning)

What if a new, weird situation happens that isn't on your cheat sheet or in your rule book?

  • How it works: The system calls the super-smart detective only for that specific, confusing situation. The detective looks at the events, explains what's happening, and gives a confidence score. Crucially, the system saves this explanation. If that same weird situation happens again later, the system just pulls the saved explanation from its pocket instead of calling the detective again.
  • The Analogy: It's like calling a consultant for a unique problem, writing down their advice, and then filing it away so you never have to pay them for that same problem twice.

Putting It All Together

When a new "person" (log session) walks through the gate:

  1. The Camera (the original AI) takes a look and gives a score.
  2. The Pattern Spotter checks the cheat sheet.
  3. The Rule Book checks the strict rules.
  4. The On-Demand Detective is called only if the first three are unsure or if the situation is new.

All these pieces of evidence are combined. If any of them say "This looks bad," the system raises the alarm. But more importantly, it hands you a report that says: "We flagged this because: (1) They did the 'door-window-run' pattern, AND (2) They left a note but didn't lock the door, AND (3) The detective confirmed this looks like a theft."

Why is this a big deal?

The paper tested this on three different "cities" (datasets: HDFS, BGL, and Liberty) using four different security cameras.

  • Better Detection: It caught almost all the criminals the original cameras missed (recovering 98.8% of false negatives).
  • Better Explanations: When they asked human experts to read the explanations, they preferred LogSemFuse's reports over the detective's raw reports. The experts found LogSemFuse's explanations clearer, more logical, and better connected to the actual events.
  • Cheap and Fast: Because it reuses the cheat sheets and rule books, it doesn't need to call the expensive detective for every single person. It adds only a tiny, stable amount of time to the process.

In short: LogSemFuse takes a smart but silent security camera and gives it a voice, a notebook of rules, and a way to ask for help only when necessary. It makes the system smarter, faster, and much easier for humans to trust.

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 →