Business Compromise Detection with Agentic AI and LLM-driven Knowledge Discovery
Organizations: Meta
Abstract
Detecting compromised business ad accounts is a challenge in digital advertising, as attackers exploit hijacked accounts to launch fraudulent campaigns. Large Language Model (LLM) agents show promise for integrity enforcement, but hallucinated mistakes on hard cases create business friction. In a study we find the autonomous agent is a strong, recall-heavy signal extractor but an unreliable final arbiter, conceding precision on ambiguous decisions. We therefore keep the agent as an investigator that emits a structured, interpretable signal vector, and delegate the verdict to a neuro-symbolic stage: symbolic rules discovered by Inductive Logic Programming (FOIL-IE), a Naïve Bayes calibration layer, and a data-tuned contradiction layer. Evaluating on a compromise-over-sampled population and a realistic low-prevalence sample with subject-matter-expert labels, this arbiter substitution raises MCC from 0.295 to 0.435 (ΔMCC +0.139, 95% CI [+0.026, +0.245], p=0.018, paired bootstrap), lifting precision from 0.250 to 0.446 (1.8x) at a recall cost (0.920 to 0.660). Benchmarked under identical conditions, it also edge tree ensembles (0.386).The rules encode domain w labels while remaininginterpretable and auditable.
Figures & tables
| Model | Layers | Prec | Rec | F1 | MCC | MCC 95% CI | MCC per-fold SD |
|---|---|---|---|---|---|---|---|
| Human Reviewer | N/A | 0.510 | 0.520 | 0.515 | 0.422 | [0.286, 0.553] | — |
| Agent Only | N/A | 0.250 | 0.920 | 0.393 | 0.295 | [0.214, 0.369] | 0.089 |
| Gradient Boosting | N/A | 0.487 | 0.380 | 0.427 | 0.338 | [0.192, 0.479] | 0.135 |
| Random Forest | N/A | 0.450 | 0.540 | 0.491 | 0.386 | [0.252, 0.513] | 0.065 |
| FOIL-IE | L1 | 0.425 | 0.680 | 0.523 | 0.425 | [0.304, 0.540] | 0.154 |
| NB Only | L2 | 0.426 | 0.520 | 0.468 | 0.358 | [0.227, 0.486] | 0.145 |
| Full stage vs. | MCC [95% CI] | |
|---|---|---|
| LLM Agent alone | 0.018 | |
| Gradient Boosting | 0.163 | |
| L2: NB only | 0.187 | |
| Random Forest | 0.437 | |
| L1 L2: ILP NB | 0.275 | |
| Human Reviewer | 0.881 |
| Configuration | Prec | Rec | F1 | MCC |
|---|---|---|---|---|
| L1+L2: ILP raw-NB | 0.375 | 0.720 | 0.493 | 0.391 |
| A: ILP IE-NB | 0.407 | 0.700 | 0.515 | 0.416 |
| B: A posterior floor | 0.446 | 0.660 | 0.532 | 0.435 |
| C: B veto | 0.446 | 0.660 | 0.532 | 0.435 |
| D: B rescue | 0.446 | 0.660 | 0.532 | 0.435 |
| E: B veto rescue | 0.446 | 0.660 | 0.532 | 0.435 |
| False positives | |||||
|---|---|---|---|---|---|
| Method | Abus. | Agcy. | Shift | Other | FN |
| Agent alone | 10 | 10 | 109 | 9 | 4 |
| L1: FOIL-IE | 4 | 3 | 35 | 4 | 16 |
| L2: NB only | 5 | 4 | 25 | 1 | 24 |
| L1+L2: ILP+NB | 6 | 6 | 44 | 4 | 14 |
| Full (ours) | 4 | 4 | 32 | 1 | 17 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| # | Expert | Mistake reason |
|---|---|---|
| 1 | Abusive | Confused abusive with compromised; over-weighted abuse signals. |
| 2 | Benign | Over-weighted a content-shift signal. |
| 3 | Benign | Confused a legitimate agency with a compromise. |
| 4 | Benign | Hallucination: recognized agency signals yet decided compromise. |
| Component | Setting |
|---|---|
| Backbone | Gemini 2.5 Flash (hosted serving platform) |
| Tool interface | native function calling; tools discovered at runtime via MCP |
| Tools registered | 31 tools produce the signal vector |
| Reasoning loop | multi-turn tool calling; terminates on a final answer with no tool call |
| Step cap | 25 |
| Decoding | max_output_tokens ; temperature at model default |
| Quantity | Mean | p50 | p90 | p99 |
|---|---|---|---|---|
| Tool calls | 3.6 | 1 | 10 | 16 |
| Agent latency (s) | 175.5 | 172.1 | 242.5 | 330.0 |
| Logic Stage latency (ms) | 20.7 | 15.6 | 17.4 | 25.2 |
| Est. tokens | 742 | 770 | 1029 | 1373 |
| Method | Prec | Rec | F1 | MCC |
|---|---|---|---|---|
| Always-positive | 0.702 | 1.000 | 0.825 | 0.000 |
| LLM Agent alone | 0.809 | 0.953 | 0.875 | 0.513 |
| Decision Tree | 0.921 | 0.920 | 0.920 | 0.733 |
| ILP+NB (L1+L2) | 0.916 | 0.939 | 0.927 | 0.749 |
| FOIL-IE (L1) | 0.926 | 0.931 | 0.929 | 0.759 |
| Gradient Boosting | 0.921 | 0.966 | 0.943 | 0.800 |
| Method | Prec | Rec | F1 | MCC (SD) |
|---|---|---|---|---|
| Agent alone | 0.248 | 0.917 | 0.390 | 0.304 (0.087) |
| L2: NB only | 0.414 | 0.483 | 0.446 | 0.340 (0.143) |
| Gradient Boosting | 0.457 | 0.350 | 0.396 | 0.309 (0.133) |
| L1+L2: ILP+NB | 0.350 | 0.683 | 0.463 | 0.360 (0.098) |
| Random Forest | 0.437 | 0.517 | 0.473 | 0.372 (0.082) |
| L1: FOIL-IE | 0.384 | 0.633 | 0.478 | 0.374 (0.093) |
| Type | Resolution |
|---|---|
| Compromise leaning | Rescue a negative prediction if the NB posterior stays above a secondary threshold; override an NB veto when L1 is positive. |
| False-negative leaning | Rescue when neither L1 nor L2 fires but hard indicators (compromised domain/page/pixel) persist and the posterior is above a rescue threshold. |
| False-positive leaning | Veto a positive when conflicting evidence is present, the posterior is uncertain, and no compromise-leaning evidence counterbalances it. |
| Direct rule contradiction | L1 priority: high-confidence confirmations win, else rejections; the flag is also an NB feature. |
| Agent-rejection contradiction | L1 rejection overrides the agent’s positive verdict (rules are grounded in deterministic signals); also an NB feature. |
LLM Agent Reliability
Large language model (LLM) agent reliability concerns dependable, safe, and verifiable behavior across tools, multi-step tasks, and changing environments.
See all 843 papers