Skip to content

A 44M open-weights model for log anomalies that works on logs it has never seen

Arseniy Shishaev and Nicolò Magnante

· 5 min read

Superlog Photon 1.0 is a small open-weights model that reads every line your systems log and flags the ones that look like a real problem. It runs on a single CPU core and works on a system it has never seen before. In our tests it was as accurate as Claude Opus at this job, and thousands of times faster.

We wrote a paper about it. This post is the short version. Read the full paper for the details on how we trained and evaluated Photon.

The weights are on Hugging Face under Apache-2.0, and the code, runtime, and reproduction scripts are on GitHub.

On four systems it had never seen, Photon scored 0.989 F1, the same as Claude Opus, and caught 98% of the stretches of log that contained a real problem.

  1. Photon 1.00.989
  2. Claude Opus + cache0.989
  3. Keyword filter + cache0.962
  4. Claude Opus alone0.854
Figure 1: Accuracy (mean F1, higher is better) on four systems the models never saw.

And it runs on one CPU core, thousands of times faster than Opus.

  1. Photon 1.065,700× faster than Opus0.08 ms
  2. LogAction0.89 ms
  3. LogMoE7.3 ms
  4. Claude Opus5.5 s
Figure 2: Time to process 100 log lines, log scale (lower is better).

Why Photon

Software is getting more complex, and AI-assisted coding is speeding that up. More code ships faster, and it fails in new ways that nobody wrote an alert for. Google's 2024 DORA report found that every 25% increase in AI adoption came with an estimated 7.2% drop in software delivery stability.1

Language models can now read a log line and judge whether it signals a problem. So why not run anomaly detection on every log line, instead of relying on alert rules written in advance?

Cost. Large systems write terabytes of logs a day. Running a large model on all of them needs GPUs and is too slow and too expensive to run around the clock.

Research has not solved this either. Most log anomaly detectors are classifiers trained once on one system's labeled logs. They break on systems they have not seen and go stale as code changes. Newer LLM-based detectors transfer better, but they need GPUs and a labeled warm-up period before they work.

We can just read all the logs

Frontier coding agents can deeply inspect source code and make countless queries to telemetry. Even though no one can afford running frontier LLMs on every log line, they can work hand in hand with smaller detector models.

Such detector models can continuously learn from LLM investigations and improve their accuracy, better adapt to the target system's faults, and raise fewer false positives.

If we had a cheap and accurate detector model, we could actually just read all the logs.

How Photon works

  1. Train a small encoder. An 8B LLM labeled thousands of log messages for severity and for whether they signal a fault. We trained a 33M-parameter text encoder on those labels in 28 seconds. On systems it has never seen, it ranks log messages as well as the 8B LLM on three of four, with 240 times fewer parameters. The released model is 44M parameters in total: the 33M encoder plus 11M parameters of unmodified base-model layers that Photon uses to compare log messages.
  2. Remember what it has seen. Logs repeat. Once numbers and IDs are stripped out, more than 99.9% of lines match a message pattern Photon has seen before. Photon scores each new pattern once, in about 10 ms, and looks the score up after that.
  3. Ask only about new suspicious patterns. When a pattern looks bad, Photon asks the investigator about it once and remembers the answer.
  4. Learn the local rules. Every system has its own normal. Each answer from the investigator adjusts what Photon treats as a problem on that system, without retraining the model.

How well it works

We tested Photon on 29.7 million log lines from four supercomputers: BGL, Liberty, Spirit, and Thunderbird.2 These are public logs from Blue Gene/L at Lawrence Livermore National Laboratory and three clusters at Sandia National Laboratories, distributed through LogHub.3 Each time, Photon was trained on the other three logs and had never seen the system it was tested on.

Photon sent the investigator very little work: 152 log patterns in total.

  1. Photon 1.039× fewer than sending every new pattern152
  2. Claude Opus + cache555
  3. Keyword filter + cache1,157
  4. Every new pattern6,011
Figure 3: Log patterns sent to the investigator across all four systems (lower is better). At the same accuracy, Photon makes 3.6 times fewer calls than Claude Opus with a verdict cache.

The alerts it did raise were almost always right.

  1. Photon 1.0Fewer than 1 in 400 alerts0.23%
  2. Claude Opus + cache0.64%
  3. Keyword filter + cache0.69%
  4. Claude Opus alone22.63%
Figure 4: Share of alerts that were false alarms (lower is better). Without a verdict cache, more than one in five of Claude Opus’s alerts were wrong.

The full comparison, including how long each approach takes on a log pattern it has not seen before:

Photon 1.01 CPU coreOpus + cacheOpus aloneKeyword + cacheEvery new pattern
Detection
Accuracy (F1)0.9890.9890.8540.962≈0.999
False alarms0.23%0.64%22.63%0.69%not measured
Cost
Investigator calls1525556901,1576,011
Unnecessary calls1024735941,0745,872
Time per new pattern10 ms4.6 snot measurednot measurednot measured
Time per 100 lines0.08 msnot measured5.5 s<0.05 msnot measured

Photon also beat two recent research detectors, LogMoE and LogAction, on their own benchmark setup. The difference is largest on the system whose failures look nothing like the training data.

What's next

We believe anomaly detection will become one of the pillars of monitoring.

One of our goals at Superlog is to let more teams scan their logs for failures and security issues all the time. We are already finding serious faults in production for our customers.

We will keep pushing research on anomaly detection forward. If you want Superlog to watch your logs, sign up here.

References

  1. DORA Research Team. Accelerate State of DevOps Report 2024. Google Cloud, 2024.
  2. Adam Oliner and Jon Stearley. What Supercomputers Say: A Study of Five System Logs. IEEE/IFIP International Conference on Dependable Systems and Networks (DSN), 2007.
  3. LogHub, a collection of public system log datasets. github.com/logpai/loghub.

Ready to respond?

Start investigating

Hit space to startTap to start