Multi-Label Red Flag Detection System for Fraud Prevention

feedzai · Finance · 2025 · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Fraud and scam detection

Feedzai needed fraud detection that explains observable scam red flags instead of returning only opaque binary scam scores.

Constraints:

Architecture

ScamAlert uses multimodal LLMs to analyze screenshots, detect multiple red flags from a predefined taxonomy, explain why each flag applies, recommend next steps, and benchmark model choices across accuracy, instruction adherence, cost, and latency.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  screenshot-input["Screenshot Input"]
  multimodal-llm["Multimodal LLM"]
  red-flag-taxonomy["Red Flag Taxonomy"]
  structured-output-layer["Structured Output Layer"]
  benchmarking-framework["Benchmarking Framework"]
  screenshot-input --> multimodal-llm
  multimodal-llm --> red-flag-taxonomy
  multimodal-llm --> structured-output-layer
  red-flag-taxonomy --> multimodal-llm
  red-flag-taxonomy --> benchmarking-framework
  structured-output-layer --> multimodal-llm
  benchmarking-framework --> multimodal-llm
  benchmarking-framework --> red-flag-taxonomy
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Screenshot Input Captures suspected scam communications as images. Multimodal LLM
Multimodal LLM Analyzes screenshots and predicts red flags from the taxonomy. Red Flag Taxonomy, Structured Output Layer
Red Flag Taxonomy Defines allowed labels such as suspicious links, urgency tactics, and unusual channels. Multimodal LLM, Benchmarking Framework
Structured Output Layer Returns red flags, explanations, and next-step recommendations. Multimodal LLM
Benchmarking Framework Evaluates models across accuracy, instruction adherence, cost, and latency. Multimodal LLM, Red Flag Taxonomy

Data flow

A user submits a screenshot; the multimodal model identifies taxonomy-constrained red flags, produces explanations and recommendations, and the benchmark pipeline evaluates detection quality, parsing validity, hallucinated flags, cost, and latency.

“The system workflow begins with users submitting images of text messages, emails, product listings, or other communications.”summary, stated
“The system is designed to output structured responses with three components: a list of detected red flags using predefined nomenclature, short explanations for why each flag was identified, and recommendations for next steps.”summary, stated

Why this architecture

Multi-label red-flag detection gives users concrete, inspectable reasons while avoiding overconfident binary judgments in ambiguous fraud contexts.

“By focusing on observable patterns rather than definitive judgments, ScamAlert positions itself as an assistive tool that enhances user awareness rather than making absolute determinations.”summary, stated
“This design philosophy reflects a mature understanding of LLM limitations and how to position AI systems in production environments where user trust and transparency are paramount.”summary, stated

Models used: GPT-5 · Gemini 3 Pro · Gemini 2.5 Pro · commercial multimodal models

Scale

Alternatives considered (roads not taken)

Traditional binary scam classification

Rejected because: Binary classifiers output risk scores without interpretable user-facing reasons.

“moves beyond traditional binary scam classification to identify specific red flags in suspected fraud attempts.”summary, stated

Free-form generated warning labels

Rejected because: Models can hallucinate invalid red flags unless constrained to a predefined taxonomy.

“invalid predictions (hallucinations) occur when the model generates red flags not in the predefined taxonomy.”summary, stated

Patterns

eval-driven-development (quality)

Feedzai built a benchmark spanning recall, precision, F1, instruction adherence, cost, and latency.

“One of the most significant LLMOps contributions of this case study is the rigorous benchmarking methodology developed to evaluate ScamAlert across multiple dimensions.”summary, stated

safety-policy-enforcement (governance)

The red-flag taxonomy constrains model outputs and prevents hallucinated labels from being accepted.

“the system performs multi-label classification where multiple red flags can be present simultaneously.”summary, stated

human-in-the-loop-gate (governance)

The system assists user awareness instead of making absolute decisions, leaving context-aware judgment to users.

“empowering users with concrete information about why something appears suspicious.”summary, stated

Tradeoffs

Use multi-label red flags

Chose Multiple observable taxonomy labels with explanations over Single binary scam score.

Rationale: This improves transparency and supports ambiguous fraud contexts.

“Rather than simply outputting a "scam likelihood" score, ScamAlert identifies specific observable red flags in suspected scam communications”summary, stated

Benchmark beyond accuracy

Chose Accuracy, instruction adherence, cost, and latency over Choosing the most accurate model only.

Rationale: Production deployment depends on behavior, parseability, price, and response time.

“These latter two dimensions ensure that evaluation considers real-world deployment constraints rather than solely focusing on accuracy metrics.”summary, stated

Gotchas (what bit them)

Instruction-following failures can look like detection success unless taxonomy validity is checked.

Root cause: Some models generate red flags outside the predefined taxonomy.

Resolution: Treat formatting errors and invalid predictions as benchmark failures.

“some otherwise capable models showed poor instruction following that undermined their practical utility.”summary, stated

Binary fraud judgments can be misleading without user context.

Root cause: The user may know context that the classifier cannot see.

Resolution: Return observable warning signs and explanations instead of absolute scam determinations.

“a payment request that appears suspicious in isolation might be legitimate given additional information the user possesses.”summary, stated

Evaluation

Feedzai manually annotated screenshots, evaluated recall/precision/F1, instruction adherence, cost, latency, and repeated runs for variability.

Metrics: precision · recall · F1 · instruction adherence · cost per query · latency

“detection accuracy is assessed through red flag recall (percentage of true flags identified), precision (percentage of predicted flags that are correct), and F1 score”summary, stated

Outcomes

The case emphasizes benchmark dimensions and repeated screenshot evaluation rather than live traffic volume.

“Their results showed significant performance variations across models, with GPT-5, Gemini 3 Pro, and Gemini 2.5 Pro leading in accuracy”summary, stated