惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
P
Privacy International News Feed
Vercel News
Vercel News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 叶小钗
F
Fortinet All Blogs
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LINUX DO - 最新话题
AWS News Blog
AWS News Blog
Engineering at Meta
Engineering at Meta
Attack and Defense Labs
Attack and Defense Labs
Recent Announcements
Recent Announcements
Recent Commits to openclaw:main
Recent Commits to openclaw:main
PCI Perspectives
PCI Perspectives
Cloudbric
Cloudbric
AI
AI
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
IT之家
IT之家
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
J
Java Code Geeks
M
MIT News - Artificial intelligence
Cisco Talos Blog
Cisco Talos Blog
V2EX - 技术
V2EX - 技术
Webroot Blog
Webroot Blog
Microsoft Security Blog
Microsoft Security Blog
Cyberwarzone
Cyberwarzone
博客园 - 聂微东
G
Google Developers Blog
W
WeLiveSecurity
罗磊的独立博客
P
Privacy & Cybersecurity Law Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
T
Tailwind CSS Blog
V
Visual Studio Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
Secure Thoughts
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
Google DeepMind News
Google DeepMind News
Google DeepMind News
Google DeepMind News
雷峰网
雷峰网
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Full Disclosure
Blog — PlanetScale
Blog — PlanetScale
The Last Watchdog
The Last Watchdog
P
Proofpoint News Feed

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Ways Devs Are Plugging LLMs Into Anomaly Detection
Athreya aka Maneshwar · 2026-06-24 · via DEV Community

Hello, I'm Maneshwar. I'm building git-lrc, a Micro AI code reviewer that runs on every commit. It is free and source-available on Github. Star git-lrc to help devs discover the project. Do give it a try and share your feedback.


Anomaly detection is one of those problems that just refuses to be "solved."

Every time a shiny new ML paradigm shows up (deep learning, GNNs, self-supervised learning), someone immediately points it at anomaly detection to see if this is the thing that finally cracks it.

LLMs are no exception. And some of the patterns emerging are pretty clever.

Quick mental model before we dive in. A classic anomaly detection workflow looks like this:

The fun part: LLMs can slot into every single stage. Let's go stage by stage (and then some).

1. Direct Anomaly Detection

The idea: Hand the raw data to an LLM and just... ask it.

"Is this normal or not?" You're betting that the model's pretrained knowledge (plus whatever you stuff into the prompt) is enough to separate weird from normal.

This works beautifully when your data is already text.

The LogPrompt approach did exactly this for system log analysis: feed in raw logs, get back a prediction and a human-readable explanation.

The secret sauce was prompt engineering, namely chain-of-thought, a few labeled examples for in-context learning, and some hand-written domain rules.

For non-text data like time series, you've got a conversion problem first.

SIGLLM handled this with a pipeline that scales, quantizes, windows, and tokenizes the series so the LLM can actually "read" it.

From there, you either prompt directly or flag anomalies based on the gap between the LLM's forecast and reality.

When to reach for it: You want a fast prototype, your data is text-ish, and you can craft a decent prompt.

The catch: You're assuming the model's pretrained knowledge already knows what "normal" looks like in your domain.

For anything niche, that assumption falls apart fast.

Add in info loss during data conversion, shaky scalability, and cost, and you've got a great starting point that doesn't scale to a great finish.

2. Data Augmentation

The idea: The eternal anomaly detection pain is that you have basically zero labeled anomalies, so supervised learning is off the table.

But LLMs are generative.

So why not have them synthesize realistic anomalous samples and balance out your dataset?

NVIDIA did this with their Cyber Language Models.

They trained a GPT-2-sized model directly on raw cybersecurity logs, then used it to generate synthetic logs: user-specific behavior, scenario simulations, suspicious events on demand.

Those fed straight back into the next training cycle to cut down false positives.

When to reach for it: Your detector is drowning in false positives because it's never seen enough variety of "weird" (or enough variety of "normal").

The catch: How do you know the synthetic anomalies are actually plausible, diverse, and representative? Validating generated data quality is still very much an open problem. Generate garbage, train on garbage.

3. Anomaly Explanation

The idea: A binary "yes, anomaly" label is rarely enough in practice.

You need the why to decide what to do next.

Traditional methods stop at the label.

LLMs can bridge that gap between prediction and action.

One study used GPT-4 and LLaMA 3 to generate natural-language explanations for time-series anomalies.

Not just "point 18 is weird" but actual reasoning like "the values plateau here when the established cycle says they should drop after the peak, which breaks the pattern."

But here's the honest bit the paper surfaced: explanation quality is not uniform.

Point anomalies get clean explanations.

Context-dependent ones (shape anomalies, seasonal and trend stuff) are much harder for the model to nail.

When to reach for it: You need reasoning to guide a downstream action, and plain statistical explanations aren't cutting it.

The catch: Hallucination.

The model will happily produce a confident, plausible, wrong explanation.

Treat its reasoning as a draft, not gospel.

4. LLM-Based Representation Learning

The idea: If LLMs can do the detection step and the explanation step... why not the feature engineering step too? Here, the LLM is a feature transformer: it converts raw data into rich semantic embeddings, and then a boring, battle-tested anomaly detection algorithm (PCA, clustering, whatever) runs on those vectors.

This is where embeddings really shine.

You transform your data, whether text, images, or time series, into vectors that capture the underlying patterns and relationships.

In that high-dimensional space, similar things cluster together and anomalies stick out as the points that drift far from the typical distribution.

Great fit for fraud detection, network security, and quality control.

Databricks showed this off for fraudulent purchase detection: embed the purchase data with an LLM, score abnormality with PCA, flag anything past a threshold.

The neat twist is they made it a hybrid, where anomalies caught by embeddings and PCA then get passed back to an LLM for a contextual explanation (yep, that's Pattern #3 again).

Accuracy and interpretability, while keeping cost down and scalability up.

When to reach for it: You want classic algorithms' speed and maturity, but your raw features are too shallow to capture the real patterns.

The catch: Three things. Embeddings are opaque high-dimensional vectors, so good luck root-causing an anomaly from them.

Quality depends entirely on what the pretrained model knows, so domain-specific data can produce meaningless embeddings. And every embedding is a forward pass through a giant network, which is way slower and pricier than traditional feature engineering. Real-time systems, beware.

5. Intelligent Detection Model Selection

The idea: Picking the right anomaly detection algorithm is a genuine headache, even for veterans.

There are so many algorithms and no obvious winner per dataset.

Traditionally it's expert intuition plus trial and error.

But LLMs have read a lot of papers, so let them recommend the model.

PyOD 2 shipped exactly this.

Its LLM-driven model selection runs in three steps:

  1. Model Profiling: analyze each algorithm's papers and source to extract metadata about strengths ("great in high dimensions") and weaknesses ("computationally heavy").
  2. Dataset Profiling: compute stats like dimensionality, skewness, and noise, then have the LLM turn those into standardized tags.
  3. Intelligent Selection: symbolic matching followed by LLM reasoning to weigh trade-offs and pick the winner.

The nice part is the choices are transparent and explainable, and the system adapts easily when new models drop.

When to reach for it: "LLM as a judge" in the AutoML sense, especially valuable for junior folks without deep stats and ML expertise, and for codifying your team's best practices straight into a prompt so solutions stay consistent.

The catch: Hallucinated recommendations and hallucinated justifications.

Always read the reasoning trace.

Also, anomaly detection moves fast, and an LLM working from stale knowledge will recommend last year's method.

RAG over current literature is basically mandatory here.

6. Multi-Agent Systems for Autonomous Detection

The idea: Instead of one LLM, you orchestrate several specialized agents, each with its own tools, instructions, and context, collaborating toward end-to-end autonomous detection.

The Argos system is a clean example for cloud time-series anomalies.

It generates reproducible, explainable detection rules through a three-agent loop:

Notice it's a loop, not a straight line.

The Review Agent kicks bad rules back to Repair, and good-but-incomplete logic back to Detection.

Argos also fuses its LLM-generated rules with existing, production-tuned detectors, giving you the best of both the analytical and generative worlds.

When to reach for it: You want genuine end-to-end autonomy and the problem is complex enough to justify specialized division of labor.

The catch: You inherit every multi-agent headache.

Way more design, implementation, and maintenance complexity, cascading errors when one agent misunderstands another, and cost plus latency that can make real-time or large-scale deployments a non-starter.

So... Which One Do I Use?

Quick cheat sheet:

If you want to... Reach for
Prototype fast on text data #1 Direct detection
Fix a data scarcity / false-positive problem #2 Data augmentation
Turn labels into actionable reasoning #3 Explanation
Boost classic algorithms with richer features #4 Representation learning
Stop agonizing over model choice #5 Model selection
Build something fully autonomous #6 Multi-agent systems

The big takeaway: LLMs aren't a single tool you bolt onto anomaly detection.

They can touch every stage of the pipeline, from feature engineering to detection to explanation. And the reverse direction (anomaly detection guarding LLM systems) is quietly becoming its own field, making the relationship genuinely bidirectional.

Pick the pattern that fits your actual constraints, not the flashiest one. A boring PCA on good embeddings will beat a six-agent system that costs $40 per inference every single time.

Patterns and case studies summarized from research on LogPrompt, SIGLLM, NVIDIA Cyber Language Models, PyOD 2, Argos, and SentinelAgent. Worth digging into the original papers if any of these click for your use case.

Disclaimer: This article was written by me; AI was used to fix grammar and improve readability.


AI agents write code fast. They also silently remove logic, change behavior, and introduce bugs — without telling you. You often find out in production.

git-lrc fixes this. It hooks into git commit and reviews every diff before it lands. 60-second setup. Completely free.

Any feedback or contributors are welcome! It's online, source-available, and ready for anyone to use.

⭐ Star it on GitHub:


GenAI today is a race car without brakes. It accelerates fast -- you describe something, and large blocks of code appear instantly. But AI agents silently break things: they remove logic, relax constraints, introduce expensive cloud calls, leak credentials, and change behavior -- without telling you. You often find out in production.

git-lrc is your braking system. It hooks into git commit and runs an AI review on every diff before it lands. 60-second setup. Completely free.

In short, git-lrc helps Prevent Outages, Breaches, and Technical Debt Before They Happen

At a glance: 10 risk categories · 100+ failure patterns tracked · every commit…