Choose your region

    Lists show the case studies of your region first. Browse and search still hold every case study.

    Europe
    North America

    Coinbase's LLM fraud agent cuts Onramp fraud 30% in A/B test

    Coinbase added a large language model agent behind its fraud models and rules on Onramp, then post-trained a small open-weight model to read each buyer's recent transactions as a sequence.

    CoinbaseUnited StatesPaymentsIn productionWho built it Built in-houseHuman oversight People review exceptionsKind of solution Risk scoring and decisionsScenario Real-time payment fraud detectionBusiness function Risk and fraudOrganization EnterpriseAI types Generative AI, Machine learning, Optimization
    Who built it
    Built in-house
    Human oversight
    People review exceptions
    Scenario
    Real-time payment fraud detection
    Business function
    Risk and fraud
    Organization
    Enterprise
    AI types
    Generative AI, Machine learning, Optimization

    Sources and their publishers

    This case study draws on reporting by the following publishers. Enterprise AI Case Studies combined these accounts and added its own explanation. The reporting, and every passage quoted from it, belongs to whoever published or supplied it.

    1. Cryip

    2. CryptoSlate

    3. Crypto Briefing

    4. Odaily

    5. arXiv

    6. ibl.ai

    tl;drIn a live A/B test, the agent arm saw 30% fewer fraudulent transactions and 22% less fraud value.See the results

    View the solutionBuild this solution yourself

    Coinbase uses a large language model (LLM) agent to screen fraud on Onramp, its service that lets users convert fiat currency into crypto1. The agent reviews transactions that have already cleared Coinbase’s machine learning models and returns a risk level3.

    In October 2026, Coinbase published three engineering articles on how it built, evaluated and post-trained the agent4. In a live A/B test, the arm with the agent saw 30% fewer fraudulent transactions and 22% less fraud value than the control group1.

    A Qwen3.5-9B model that the team post-trained scored 9.6 percentage points higher on F1 than Claude Opus 4.5 on Coinbase’s replay benchmark. In production, its median request latency was 55% lower2.

    Before the deployment

    Onramp’s fraud screening rested on machine learning models and a rules engine. The models scored single-transaction features at speed, and the rules stopped clear anomalies such as repeated failures or sudden device changes4.

    • Guest checkout: Onramp runs inside partner apps and some purchases permit guest checkout, so the platform sees only the current payment and recent behavior4.
    • Split attacks: Fraudsters test a card with a small transaction, change devices, addresses or payment instruments, and then complete a larger purchase4.
    • Row-by-row scoring: Tree-based models score each row on its own unless temporal behavior is engineered into features, and they need retraining when patterns shift5.
    • Late labels: Fraud labels become reliable only after chargebacks or investigations mature5.

    What was built

    The agent is an additional contextual review for selected transactions, and it runs downstream of the established checks1. It reads a user’s recent transactions together, because a payment that looks ordinary alone can stand out in its sequence4.

    • Machine learning models and rules engine: Screen every transaction first at low latency. The agent is invoked only on high-risk or ambiguous cases that need context5.
    • LLM risk agent: Reads the current transaction with a time-ordered window of the user’s recent transactions. It assigns one of five bounded risk levels5.
    • Decision policy: Turns the risk classification into approve, reject or route to manual review. The policy layer, not the model, executes the final action4.
    • Manual review: Takes the transactions that the decision policy routes to people4.
    • Engineers: Build the replay benchmark from Onramp history and post-train the model on fraud outcomes2.

    The model returns a risk level and nothing more, so upstream systems keep running as they were3. During training it can be asked to explain its reasoning, but online payments get only a compact risk result to reduce latency and format errors4.

    Alternatives considered

    The team weighed a commercial model API against a self-hosted open-weight model for the decision step5:

    • Hosted APIs: Reduce infrastructure work but bring per-token pricing, variable network latency and limited control over model upgrades5.
    • Self-hosted model: Trades per-request charges for predictable GPU capacity and allows domain-specific training and tighter data control. The team chose this route with Qwen3.5-9B5.

    Technology and architecture

    Figure 1Where the LLM risk agent sits in Onramp fraud screening
    Where the LLM risk agent sits in Onramp fraud screeningAn Onramp purchase goes first to Coinbase's machine learning models and rules engine. Selected high-risk or ambiguous transactions pass to a context step that orders the user's recent transactions in time. The LLM risk agent, Qwen3.5-9B, reads that window and returns a risk level to the decision policy. The policy approves or rejects the purchase or routes it to manual review. Offline, historical fraud outcomes become rewards for post-training with SkyRL, which updates the agent's model. No element is inferred.every transaction (data) · Documented in sources [4] [5]selected transactions (data) · Documented in sources [1] [5]transaction sequence (data) · Documented in source [4]risk level (data) · Documented in sources [3] [4]route to review (handoff to people) · Documented in source [4]approve or reject (trigger or control) · Documented in source [4]verifiable rewards (data) · Documented in sources [4] [5]LoRA-tuned weights (feedback) · Documented in sources [4] [6]OFFLINE POST-TRAININGONRAMP RISK PIPELINEOnramp purchase · Application · Documented in sources [1] [4]APPLICATIONOnramppurchaseML models and rules engine · System · Documented in sources [4] [5]SYSTEMML models andrules engineRecent-transaction window · Data · Documented in sources [4] [5]DATARecent-transactionwindowLLM risk agent (Qwen3.5-9B) · AI model · Documented in sources [2] [3] [5]AI MODELLLM risk agent(Qwen3.5-9B)Decision policy · System · Documented in sources [2] [4]SYSTEMDecision policyManual review · Team · Documented in source [4]TEAMManual reviewHistorical fraud outcomes · Data · Documented in sources [2] [4]DATAHistoricalfraudoutcomesRL post-training (SkyRL) · Step · Documented in sources [5] [6]RLpost-training(SkyRL)everytransactionselectedtransactionstransactionsequencerisk levelroute to reviewapproveor rejectverifiablerewardsLoRA-tunedweightsWhere the LLM risk agent sits in Onramp fraud screeningAn Onramp purchase goes first to Coinbase's machine learning models and rules engine. Selected high-risk or ambiguous transactions pass to a context step that orders the user's recent transactions in time. The LLM risk agent, Qwen3.5-9B, reads that window and returns a risk level to the decision policy. The policy approves or rejects the purchase or routes it to manual review. Offline, historical fraud outcomes become rewards for post-training with SkyRL, which updates the agent's model. No element is inferred.every transaction (data) · Documented in sources [4] [5]selected transactions (data) · Documented in sources [1] [5]transaction sequence (data) · Documented in source [4]risk level (data) · Documented in sources [3] [4]route to review (handoff to people) · Documented in source [4]approve or reject (trigger or control) · Documented in source [4]verifiable rewards (data) · Documented in sources [4] [5]LoRA-tuned weights (feedback) · Documented in sources [4] [6]OFFLINE POST-TRAININGONRAMP RISK PIPELINEOnramp purchase · Application · Documented in sources [1] [4]APPLICATIONOnramp purchaseML models and rules engine · System · Documented in sources [4] [5]SYSTEMML models andrules engineRecent-transaction window · Data · Documented in sources [4] [5]DATARecent-transactionwindowLLM risk agent (Qwen3.5-9B) · AI model · Documented in sources [2] [3] [5]AI MODELLLM risk agent(Qwen3.5-9B)Decision policy · System · Documented in sources [2] [4]SYSTEMDecision policyManual review · Team · Documented in source [4]TEAMManual reviewHistorical fraud outcomes · Data · Documented in sources [2] [4]DATAHistorical fraudoutcomesRL post-training (SkyRL) · Step · Documented in sources [5] [6]RL post-training(SkyRL)every transactionselected transactionstransaction sequencerisk levelroute to reviewapprove or rejectverifiable rewardsLoRA-tuned weights
    • AI component
    • Data
    • Trigger or control
    • Handoff to people
    • Feedback
    Sources [1][2][3][4][5][6]
    The agent only scores selected transactions, and a decision policy, not the model, acts on each payment.

    The agent’s decision model is Qwen3.5-9B, an open-weight model that Coinbase post-trained with reinforcement learning3. Claude Opus 4.5 is the hosted frontier model that it was measured against2.

    Layer What they used Role Source
    Language model Qwen3.5-9B Reads the transaction window and returns a risk level 2, 3, 5
    Language model Claude Opus 4.5 Hosted model the post-trained model was measured against 2, 6
    Predictive model Machine learning models Score each transaction first, at low latency, before the agent sees selected cases 4, 5
    Rules and decision logic Rules engine Stops clear anomalies such as repeated failures 4
    Rules and decision logic Decision policy Turns the agent’s risk level into approve, reject or route to manual review 2, 4
    Handoff to staff Manual review Takes the transactions that the decision policy routes to people 4
    Training pipeline SkyRL Runs the reinforcement learning that post-trains Qwen3.5-9B on fraud outcomes 5, 6
    Machine learning platform Anyscale Platform on which the SkyRL post-training ran 6
    Model hosting Ray Serve Serves the agent’s model in production 1, 6
    Model hosting vLLM Inference engine for the post-trained model 5, 6
    Offline evaluation Onramp fraud benchmark Replays 16,140 historical transactions to compare models under one fixed policy 2, 5

    Data inputs

    • Transaction window: The current transaction and the user’s recent transactions in time order, with payment rail, amount and destination but no personally identifiable information4, 5.
    • Velocity summary: Retry, timing, amount and channel-velocity signals computed from the window5.
    • Fraud outcomes: Historical transaction outcomes, turned into verifiable rewards for post-training4.
    • Replay benchmark: 16,140 Onramp transactions from the nine weeks before the agent rolled out, with all matured fraud and sampled legitimate traffic2.

    Model post-training

    • Method: The team post-trained Qwen3.5-9B with the SkyRL framework, using GRPO and LoRA on Anyscale5, 6.
    • Training set: All fraud cases plus three non-fraud transactions per fraud case5.
    • Reward: Deterministic rewards from historical fraud outcomes, balanced between fraudulent and legitimate examples2, 5.
    • Hardware: Training ran on a single NVIDIA RTX PRO 6000 96GB GPU for under $1003.
    • Serving: The model is served with Ray Serve LLM and vLLM1, 6.

    How one purchase flows through the system

    1. A user buys crypto through Onramp, sometimes as a guest inside a partner app4.
    2. The machine learning models and rules engine screen the transaction. They pass high-risk or ambiguous cases to the agent5.
    3. The agent software orders the user’s recent transactions in time and hands them to the model as context4.
    4. The model returns one of five risk levels, with no written explanation4, 5.
    5. The decision policy approves the payment, rejects it or routes it to manual review4.

    Results

    Metric Before After Scope and timeframe Reported by
    Fewer fraudulent transactions Models and rules alone 30% Live A/B test, before October 2026 Coinbase, via Cryip, pilot1, 6
    Less fraud value Models and rules alone 22% Live A/B test, before October 2026 Coinbase, via Cryip, pilot1, 6
    F1 gain over Opus 4.5 Opus 4.5 score 9.6 percentage points Replay of 16,140 transactions Coinbase, via CryptoSlate, measured2, 4
    Lower median request latency 1.515 seconds 55% Production, post-trained model against Opus 4.5 Coinbase, via CryptoSlate, measured2
    • Fraudulent transactions and fraud value: The A/B test compared the agent-enabled flow with the existing models and rules alone, in a 50% traffic experiment2, 6. Projected savings were roughly three times the estimated cost of the agent’s inference1.
    • F1: F1 combines precision and recall. On the replay of 16,140 transactions from 7,293 users, with 813 confirmed fraudulent, the post-trained model beat Opus 4.5 on all four metrics2.
    • Other benchmark metrics: The post-trained model’s precision was 7.5 percentage points higher, its recall 12 points higher and its dollar-weighted recall 35.4 points higher than Opus 4.5’s2, 4.
    • Latency: Production measurements put the post-trained model’s median end-to-end request latency at 0.683 seconds, against 1.515 seconds for Opus 4.52.

    Lessons learned

    The A/B result measures the agent as an extra reviewer on top of the existing stack. ibl.ai called it “a composition result, not a replacement result”6.

    Model upgrades changed detection without any change to the prompts or the policy. Opus 5, Sonnet 5 and GPT-5.6 (sol) each had lower recall, F1 and dollar-weighted recall than the versions they followed2, 5. Sonnet’s recall fell 22.2 percentage points, and GPT-5.6 (sol) gained 11.5 points of precision while recall fell 20.7 points2.

    Coinbase’s response is to test a candidate in the actual decision setup first, then change prompts or thresholds separately, with latency, reliability and cost beside detection quality2.

    The comparison with Opus 4.5 isn’t like for like. ibl.ai notes that the 9B model was post-trained on Coinbase’s fraud outcomes, while Opus 4.5 ran as a single-pass agent with no such training6. The paper by Coinbase’s engineers adds that the untrained base 9B model scores far below every other system5.

    The post-trained model’s knowledge is encoded in its weights, so tracking new fraud patterns needs another training and deployment cycle5. The same paper describes a reflection layer that can add verified rules between model refreshes5. Crypto Briefing notes that fraud patterns shift as attackers adapt3.

    The figures are Coinbase’s own, reported by news outlets from its engineering series and by its engineers’ paper on one non-releasable production stream2, 5. The faster inference and the stronger benchmark detection came from different evaluations2.

    Case study scorecard

    Build this solution yourself

    Analysis

    What you need

    • Matured fraud outcomes: The reward and the benchmark both rest on confirmed outcomes such as chargebacks, which arrive only after a delay. Check that your labels mature in time to train on5.
    • An existing screening stack: The agent sees only the selected cases that the models and rules pass on, so they carry the throughput5.
    • A replay benchmark of your own traffic: Coinbase caught the newer models’ drop in recall only because it replayed its own transactions under a fixed policy2.
    • A decision policy outside the model: The model returns only a risk level, so you need software that maps each level to an action and a review route4.

    Reference architecture

    Risk scoring and decisions

    A risk scoring and decisions solution scores each payment, claim, application, or person for a risk such as fraud, financial crime, a loss, or reoffending, and turns the score into a decision or a referral. A model scores each case against its history, and rules and thresholds that the organization sets turn the score into an outcome. People review the referred cases and decide them, and the outcomes that they record train the next model.

    A check mark shows a building block that this case study's sources document.

    Open the reference architecture

    Others who built it

    Cite this case study

    Enterprise AI Case Studies. "Coinbase's LLM fraud agent cuts Onramp fraud 30% in A/B test." Updated Nov 30, 2026. https://case-studies.ai/case-studies/risk-and-compliance/RC-079-onramp-fraud-llm-agent-coinbase/

    @misc{csai-rc-079,
      author = {{Enterprise AI Case Studies}},
      title = {{Coinbase's LLM fraud agent cuts Onramp fraud 30% in A/B test}},
      year = {2026},
      note = {Updated 2026-11-30},
      url = {https://case-studies.ai/case-studies/risk-and-compliance/RC-079-onramp-fraud-llm-agent-coinbase/}
    }

    Sources

    The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership

    1. Source 1:

      Coinbase's New AI Fraud Agent Cuts Fraudulent Onramp Transactions by 30% in Live Testing

      IndependentCryip, Oct 8, 20268 Oct 2026By Ilampirai ArivazhaganAccessed Nov 30, 202630 Nov 2026

      Supporting excerpts (9)
      • Coinbase detailed a new LLM-based fraud detection agent for its Onramp product in an October 6, 2026 blog post
      • In a live online A/B test, the treatment group using the agent saw 30% fewer fraudulent transactions and 22% less fraud value than the control group
      • Coinbase said it ran a live online A/B test comparing the new agent against its existing machine learning models and rule-based systems.
      • projected savings from the fraud prevention were roughly three times the estimated cost of running the AI agent
      • written by Yao Ma, Bo Lei and Xuwei Tan
      • which lets users convert fiat currency into crypto
      • the LLM agent runs downstream of established checks
      • an additional contextual review for selected transactions
      • Architecturally, the system was built on Ray Serve, an open-source framework for scaling machine learning workloads
    2. Source 2:

      Payment fraud detection fell with newer AI in Coinbase test

      IndependentCryptoSlate, Oct 10, 202610 Oct 2026By Liam 'Akiba' WrightAccessed Nov 30, 202630 Nov 2026

      Supporting excerpts (18)
      • Coinbase reported Oct. 7 that newer versions of three major AI model families caught fewer fraudulent payments and a smaller share of fraud value in a historical test of payment screening for its Onramp service, despite an unchanged decision policy.
      • evaluation replayed 16,140 transactions across 7,293 users, including 813 confirmed fraudulent transactions
      • The cohort covered nine weeks before its risk agent rolled out, retaining all matured fraud cases while sampling legitimate traffic.
      • Each candidate reviewed recent transaction behavior under fixed guidance and the same policy for turning risk classifications into decisions.
      • Coinbase compared Opus 4.5 with Opus 5, Sonnet 4.6 with Sonnet 5, and GPT-5.4 with GPT-5.6 (sol). Every newer version had lower recall, a lower combined precision-and-recall score called F1, and lower dollar-weighted recall.
      • recall fell 22.2 percentage points and its dollar-weighted recall dropped 22.9 points
      • recall declined 0.8 points
      • Its precision rose 11.5 percentage points, but recall fell 20.7 points and dollar-weighted recall fell 21.8 points.
      • The replay does not establish customer losses from deploying those versions. Coinbase also said it could identify the regressions without establishing their cause.
      • earlier online experiment compared adding selective LLM review with the existing models and rules alone
      • That agent-enabled flow recorded 30% fewer fraudulent transactions and 22% less fraud value; it did not compare newer model versions.
      • In their limitations, the SR-Fraud researchers say the proprietary dataset cannot be released, restricting independent replication and generalization.
      • Their related payment-fraud study first appeared Sept. 23 and was revised Sept. 30, before the October blogs.
      • In its Oct. 8 disclosure, Coinbase reported that a post-trained Qwen3.5-9B model exceeded Opus 4.5 across four fraud-detection metrics. F1 improved 9.6 percentage points and dollar-weighted recall rose 35.4 points.
      • The company specialized it using historical fraud outcomes and deterministic rewards balancing fraudulent and legitimate examples.
      • Separately, production measurements put median end-to-end LLM-request latency at 0.683 seconds versus 1.515 seconds for Opus 4.5, a 55% relative reduction.
      • Faster inference and stronger benchmark detection came from different evaluations.
      • Coinbase recommends testing that configuration first, then evaluating changed prompts or thresholds separately, with latency, reliability and cost alongside detection quality.
    3. Source 3:

      Coinbase fine-tunes Qwen3.5-9B model for fraud prevention, beating frontier models

      IndependentCrypto Briefing, Oct 11, 202611 Oct 2026By Diego Almada LopezAccessed Nov 30, 202630 Nov 2026

      Supporting excerpts (7)
      • looks at transactions that have already cleared those systems
      • It returns a risk level and nothing more, so upstream systems keep running as they were.
      • Coinbase fine-tuned Qwen3.5-9B using reinforcement learning.
      • The margins ranged from 7.5 to 35.4 percentage points.
      • Coinbase said training the Qwen model cost under $100 on a single NVIDIA RTX PRO 6000 96GB GPU.
      • The savings were estimated at three times the cost of running the model.
      • The findings also apply to one specific task on one specific product, and fraud patterns shift constantly as attackers adapt.
    4. Source 4:

      Coinbase Upgrades Payment Fraud Prevention with a 9-Billion-Parameter Model: Online Fraudulent Transactions Drop 30%

      IndependentOdaily, Oct 13, 202613 Oct 2026By CorundumAccessed Nov 30, 202630 Nov 2026

      Supporting excerpts (16)
      • From October 6 to 8, 2026, Coinbase published three consecutive engineering articles describing how it built an anti-fraud Agent for its Onramp business.
      • Coinbase Onramp allows users to purchase crypto assets within partner apps, and some scenarios permit guest checkout.
      • Guests have no long-term account history, so the information available to the platform mainly comes from the current payment and recent transaction behavior.
      • The existing machine learning models are good at quickly processing single-transaction features, while the rules engine intercepts clear anomaly conditions, such as repeated failures, sudden device changes, or inconsistent payment information.
      • Looking at any single transaction in isolation, the risk signals may be weak; only when the recent actions are examined together does a pattern emerge.
      • Fraudsters, however, often split their attacks into multiple attempts: first testing the card with a small transaction, then changing devices, addresses, or payment instruments, and finally completing a larger purchase.
      • In terms of architecture, machine learning models and rule engines first process individual transactions, and the Agent only reads recent transaction sequences when context is needed and outputs risk classifications.
      • Coinbase organizes recent transactions chronologically into context and then hands them to the large model for risk assessment.
      • The model outputs a brief risk classification, and downstream programs use this classification to decide whether to approve, reject, or route to manual review.
      • The final action is still executed by the policy layer in the system.
      • Coinbase also added amount-weighted recall, because missing a single large fraud typically causes far greater loss than missing a small transaction.
      • The team converted historical transaction outcomes into verifiable rewards
      • Coinbase therefore balanced the contribution of fraud and normal samples and used LoRA to train a small number of additional parameters
      • precision was 7.5 percentage points higher, recall was 12 percentage points higher, F1 was 9.6 percentage points higher, and amount-weighted recall was 35.4 percentage points higher
      • During training, the model can be asked to explain its reasoning; for online payments, only a compact risk result is needed to reduce latency and format errors.
      • Before switching models in production, enterprises need to re-validate using their own test sets and cannot directly use vendor-published overall rankings as the basis for deployment.
    5. Source 5:

      SR-Fraud: An Outcome-Supervised Reflective LLM Agent Framework for Non-Stationary Payment Fraud Detection

      AcademicarXiv, Sep 30, 202630 Sep 2026DocumentAccessed Nov 30, 202630 Nov 2026

      Supporting excerpts (21)
      • Standard GBDTs score rows independently unless temporal behavior is explicitly encoded through engineered aggregate features
      • Second, responding to distribution shifts requires periodic retraining and newly engineered features.
      • In production deployments, risk systems process transactions through a standard machine learning model (e.g., GBDTs) with rule engines performing broad, low-latency screening, while SR-Fraud is selectively invoked on those high-risk or ambiguous edge cases requiring complex contextual reasoning.
      • This modular design balances latency and compute costs while preserving the high-throughput guarantees of the primary risk pipeline.
      • A frozen, stateless decision agent assigns each transaction one of five bounded risk levels from a Hybrid Episodic Window.
      • as payment rail, amount, and destination while excluding personally
      • with retry, timing, amount, and channel-velocity signals.
      • Fraud labels become reliable only after real-world outcomes, such as chargebacks or investigations, mature.
      • per-token pricing, variable network latency, and limited control over model
      • upgrades; and on performance, newer Opus, Sonnet, and GPT releases in fact regress
      • self-hosting instead trades per-request charges for predictable GPU capacity while
      • enabling domain-specific training and tighter data control.
      • We therefore post-train a self-hosted Qwen3.5-9B decision agent
      • the SkyRL framework (Griggs et al., 2025). Despite its
      • three non-fraud transactions per fraud case, yielding roughly
      • and 1 for non-fraud, so constant policies have zero expected class-balanced
      • the reflection layer. Post-training is essential: the untrained base 9B scores far
      • Its knowledge, however, is encoded in model weights:
      • tracking new fraud patterns requires another training and deployment cycle. In
      • contrast, SR-Fraud can incorporate verified symbolic rules between model
      • The study uses one non-releasable production stream.
    6. Source 6:

      A 9B Fine-Tune Beat Opus 4.5. Who Holds the Weights?

      Independentibl.ai, Oct 14, 202614 Oct 2026By Mikel AmigotAccessed Nov 30, 202630 Nov 2026

      Supporting excerpts (4)
      • using GRPO and LoRA via SkyRL on Anyscale, then served with Ray Serve LLM and vLLM.
      • In a 50% traffic A/B experiment, the arm with the agent enabled saw 30% fewer fraudulent transactions and 22% less fraud value
      • That is a composition result, not a replacement result.
      • The two models were not given the same information. The 9B model had been post-trained on Coinbase's historical fraud outcomes; Opus 4.5 was evaluated as a single-pass decision agent with no such training.

    More in Risk & Compliance

    View all