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

Yao Ma, Xuwei Tan, Akshit Trehan, Aman Choudhary, Eric Tang, Sumanth Hegde, Seiji Eicher, Jess Kong8 Oct 2026

Problem

Coinbase runs an LLM risk agent on top of its existing ML model and rules for Onramp. With a hosted frontier model (Opus 4.5), the team could change prompts, the agent harness or the model version, but not the weights. Each newer hosted version also scored lower on recall and F1 on the team's fraud benchmark, so staying on the API meant accepting that drift. Hosted calls also add latency and send transaction context to an external API.

Example from the article: the narrow task is to read recent behavioral context of a transaction and return a risk classification, which the harness turns into a decision.

Solution in brief

Post-train an open-weight 9B model (Qwen3.5-9B) with reinforcement learning on historical fraud outcomes. A deterministic reward scores each risk classification against the known outcome and balances fraud and legitimate examples. The merged LoRA checkpoint is served on autoscaled GPUs, and the model returns only a compact verdict.

Questions this case answers
  • How to specialize a small open-weight language model on proprietary labeled outcomes so it beats a larger hosted model on a narrow rare-event classification task
  • How to define a deterministic, class-balanced reward from historical outcomes for reinforcement-learning post-training of a classifier
  • How to make a small open-weight LLM beat a frontier API model on our own fraud-classification task?
  • How to train a model on historical fraud outcomes without an LLM judge or hand-labeled explanations?

Tools and methods

  • GRPO with verifiable rewards (RLVR) — trains the model toward classifications that match known outcomes
  • LoRA — trains a small set of added parameters, keeps the pretrained backbone
  • SkyRL (Megatron backend, vLLM rollouts) — runs generation, reward and updates, with a custom fraud environment
  • Ray Serve LLM and vLLM on Anyscale — serves the merged checkpoint behind an OpenAI-compatible API
  • Qwen3.5-9B — base model, small enough for single-GPU serving
Continue reading — it's free

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