Part 1/3 Owning Intelligence Series: How Coinbase Built, Evaluated, and Post-Trained a Fraud Agent

Yao Ma, Bo Lei, Xuwei Tan6 Oct 2026

Problem

Coinbase Onramp lets people buy crypto inside partner apps, including as a guest without a Coinbase account. The existing ML model and rules engine screen these payments quickly and cheaply, but they struggle with attacks whose signals appear only across several transactions. A guest has no account history, and predefined aggregates such as counts or spending totals must be designed in advance and capture only part of a sequence. Fraud labels also arrive late, so new patterns are hard to evaluate in time.

Example from the article: a transaction that looks routine in isolation may warrant closer review once the timing, payment methods and destinations of recent activity are read together.

Solution in brief

An LLM agent sits after the model and rules and reviews selected transactions. It gets the current transaction, the recent history with precomputed summaries, and written review guidance, and returns only a risk level from 1 to 5. Application code turns the level into a decision: the agent can block an upstream allow but cannot reverse a block.

Questions this case answers
  • How to detect attacks whose signal appears only in a sequence of events when predefined aggregate features miss it and entities have almost no history
  • How to add a language-model reviewer on top of a fast screening stack under a latency budget without letting it reverse upstream decisions
  • How to catch fraud that only shows up across several transactions when the account has little or no history?
  • How to add an LLM review layer to an existing ML model and rules without giving it control over payments?

Tools and methods

  • LLM risk agent (Claude Opus) — reads recent transaction context and outputs a risk level
  • Ray Serve — runs the ML model, rules and agent in one deployment
  • Prompt with review guidance and calibration examples — encodes fraud-review rules in natural language, no retraining
  • Online A/B experiment — compares model and rules alone with the added agent layer
Continue reading — it's free

Google or a one-time email code. No password.