arXiv:2611.08714cs.LGNov 2026

Manuscript Offprint

arXiv:2611.08714

Patching the Blind Spots: Reversible LLM Rule Overlay for Frozen Fraud Detectors

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

In industrial tabular fraud classification, gradient-boosted trees remain state-of-the-art, but even a well-trained model has blind spots, and retraining the deployed model is not always safe. We propose a framework that patches such a model without modifying it: LLMs propose rules anchored on features the model underweights by SHAP, and the resulting noisy pool is screened for empirical support and calibrated into an additive, reversible log-lift overlay that runs at the production cut-off. Single-LLM benefit is high-variance and inverts between datasets, so we pool three diverse backbones by equal-weight logit averaging—trading peak gain for a bounded worst case. On a real-world e-commerce fraud detector trained on selection-biased data, continued training regresses even when carefully tuned, whereas the overlay gains on average +2.26% recall at equal precision (ΔR@P\Delta R@P) and +1.60% precision at equal recall (ΔP@R\Delta P@R) over production cut-offs spanning 30–57% precision and 23–63% recall. On a public benchmark of seven designed bias-shift variants it raises ΔP@R\Delta P@R on every variant and keeps ΔR@P\Delta R@P near neutral. Each amendment is a readable predicate naming the fraud pattern it covers.

1 Introduction

Gradient-boosted trees dominate tabular fraud classification (Ke et al., 2017; Chen and Guestrin, 2016), trained once on historical labelled transactions, then degrade under the temporal distribution shift ubiquitous in financial data (Quinonero-Candela et al., 2009; Gama et al., 2014; Dal Pozzolo et al., 2018): new fraud patterns emerge, the population shifts, and discrimination quietly erodes with no visible retraining signal.

In production, such a detector also has loopholes: fraud patterns it scores too low, which persist after deployment. Closing them is constrained in two

ways in our setting. The model’s scores and cut-offs drive downstream decisions, so changing the model means a redeployment. Its training data are selection-biased: a rule engine and a screening model filter transactions before they are recorded, so training sees approved traffic only, while the model serves the full population (a small unbiased cohort is kept for evaluation; Section 3). Patterns that rarely pass the filters are under-represented, and the usual fix—continued training on a fresh window—fits the same bias: in our experiments it regresses on the unbiased cohort (Section 4). The practical question is how to find a frozen model’s loopholes and improve how it generalizes, without modifying it.

Key idea: LLMs reason about the frozen GBM’s blind spots and patch them proactively. Instead of updating the model, we let large language models reason over its diagnostics (SHAP attributions and a digest of its trees) and propose human-readable rules for the fraud it misses; the adaptation window is used only to screen and calibrate them, so no model parameter changes. Generation is steered through the model’s weak dimensions: each rule’s primary anchor must be a feature the model underweights by SHAP. The rules are calibrated into a band-conditioned log-lift overlay on the frozen base—additive in logit space, hence reversible—and mapped back to the production score scale, so the overlay runs at the existing cut-off. Every amendment is a human-auditable predicate, in line with calls for interpretable high-stakes models (Rudin, 2019).

Prior work uses LLMs on tabular data either as the predictor itself, on serialized rows (Hegselmann et al., 2023; Dinh et al., 2022), or to engineer features and rules for a model that is then trained or retrained: CAAFE generates features from dataset descriptions (Hollmann et al., 2023), FeatLLM turns LLM-written rules into features for

*Corresponding Author.

few-shot learning (Han et al., 2024), and OCTree refines feature-generation rules with decision-tree feedback (Nam et al., 2024). Closest to us, DeLTa has an LLM rewrite a tree ensemble's rules into one that corrects the ensemble's outputs (Ye et al., 2025). These methods target accuracy on public benchmarks, where the predictor can be rebuilt freely. Our setting differs in three ways: the model is deployed and frozen, so the rules act as a reversible overlay at its existing cut-off; generation is anchored on the features the model underweights rather than on refining its existing tree rules; and the training data are selection-biased, so the gain must hold on a population the model was not trained on.

As the rule proposer, a single LLM produces high-variance outcomes not predictable from in-distribution signal: the backbone that performs best on the real-world generalization test is among the worst on the BAF variants, and vice versa (Section 4). We therefore prompt three architecturally diverse backbones (Wei et al., 2022; DeepSeek-AI, 2025; Qwen Team, 2026; Gemma Team, 2026) across independent shots and average all retained shots in logit space (Dietterich, 2000), with no dataset-specific selection.