arXiv:2611.08706cs.LGNov 2026

Manuscript Offprint

arXiv:2611.08706

Dual-Stream LLM-Guided Reward Design for Reject-Inference-Aware Reinforcement Learning in E-Commerce Payment Fraud Detection

Bo Qu, Zhurong Wang, Frank Zahradnik, Ming Ouyang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Production fraud-detection models learn from a censored slice of their own traffic: transactions a legacy system blocked never receive fraud labels, so models train on a biased, approved-only distribution. We extend LLM-guided reward design—the framework of Qu et al. (2025), where an LLM evolves the reward of a two-step REINFORCE fraud-blocking policy—to attack this reject-inference problem inside the reward. A single LLM designs a dual-stream reward: stream 1 applies the standard dollar-weighted precision objective to labeled transactions; stream 2 scores legacy-blocked, unlabeled transactions by contrasting the newest gradient-boosted risk signal against the legacy scores that drove the original block. Rather than prescribe which signals matter, we expose a superset of evidence and let the LLM decide for itself which to use, guided by evaluation feedback alone; because it writes the reward as code, that choice is directly auditable. On a held-out four-month out-of-time test, the dual-stream agent beats the prior labeled-only agent at every target recall—by +4.7, +2.4 and +3.0 points of dollar-weighted precision at 80%, 85% and 90% recall—and the production baseline by +6.8 points on average. The resulting policy is architecturally identical to Qu et al. (2025) and adds no inference cost.

1 Introduction

Large language models (LLMs) now match or exceed human performance on code generation (Chen et al., 2021) and reasoning (Kojima et al., 2022), and a growing line of work uses them to design the reward functions of RL agents automatically: prompting an LLM as a proxy reward evaluator (Kwon et al., 2023), and the evolutionary code-generation paradigm of EUREKA (Ma et al., 2024a), Text2Reward (Xie et al., 2024) and Language-to-Rewards (Yu et al., 2023)—the LLM

writes reward code, a policy is trained per candidate, and feedback conditions the next generation—later extended with reward critics (Li et al., 2024), sim-to-real transfer (Ma et al., 2024b) and sample-efficient reformulations (Sarukkai et al., 2024; Sun et al., 2025). This literature is dominated by robotics and game benchmarks, where every rollout yields a reward. Prior work brought this paradigm to e-commerce payment fraud: Qu et al. (2025) frames transaction risk as a multi-step Markov decision process (MDP) and lets an LLM evolve the reward for a two-step REINFORCE policy that blocks or passes each transaction at pre- and post-authorization, outperforming both human-designed Lagrangian rewards and the production gradient-boosted-machine (GBM) baseline in dollar-weighted precision at target recall.

The censored-label gap. That system, like essentially all supervised fraud models, trains on approved transactions only—those the legacy model and rules let through, whose fraud outcome (a chargeback) is eventually observed. But a large fraction of traffic is blocked before it can produce an outcome. These blocked rows are scored by the same newest GBM models that feed the RL policy and carry the legacy scores that drove the block, yet their ground-truth label is fundamentally unobservable. Training on the approved slice alone thus optimizes on a distribution systematically narrower—and lower-risk—than the deployment population. This is the classical reject-inference / selective-labels problem of credit scoring (Heckman, 1979; Lakkaraju et al., 2017; Ehrhardt et al., 2021), here appearing inside an LLM-guided RL reward-design loop for the first time. Classical remedies attack it with explicit machinery—Heckman selection correction, self-labeling (Kozodoi et al., 2020), reject-aware multi-task networks (Liu et al., 2022), and positive-unlabeled estimators (Elkan and Noto, 2008; du Plessis et al., 2015; Bekker and Davis,

*Corresponding Author.

Figure

Figure 1: Dual-Stream LLM-Guided Reward Design. An open-weight Qwen3-class LLM (FP8, single A100 80 GB) evolves candidate get_reward functions with adaptive temperature, retaining the best. Each AST-validated candidate scores two streams under one REINFORCE gradient and one two-step policy: Stream 1, the dollar-weighted Lagrangian on labeled approved rows; Stream 2, a censored-outcome reward on historically blocked rows whose label is unobservable. The prompt exposes a superset of candidate signals and the LLM selects which to rely on from evaluation feedback (§4.3). Legacy scores enter only the reward, so the trained policy is architecturally identical to the labeled-only baseline and adds no inference cost.

2020); we instead let one LLM reason over each blocked row's newest-versus-legacy score structure and synthesize the censored-outcome reward directly.

Positioning. Our reward sits in the cost-sensitive, constrained-RL tradition rather than the data- or loss-level imbalance remedies (Chawla et al., 2002; Lin et al., 2017): fraud as sequential decisioning (Shen and Kurshan, 2020; Vimal et al., 2021; Qayoom et al., 2024; Henderson et al., 2023), a per-stage precision constraint in the spirit of Tessler et al. (2019), a dollar-weighted objective (Dervovic et al., 2023), and cost-sensitive decision theory (Elkan, 2001; Bahnsen et al., 2015; Höppner et al., 2022; Verbraken et al., 2013; Cotter et al., 2019). It inverts RLHF/RLAIF (Ouyang et al., 2022; Bai et al., 2022; Lee et al., 2024)—the LLM designs a reward for an external policy and is never updated—aligning with code-as-policy work (Liang et al., 2023; Wang et al., 2024). LLMs appear in industrial trust-and-safety pipelines (Qiao et al., 2024; Chakraborty et al., 2024; Yang et al., 2025; Fan et al., 2025; Kath et al., 2026) and e-commerce fraud detection (Rodrigues et al., 2022; Mutemi and Bacao, 2024); none applies LLM-guided reward design to censored fraud labels.