Autoregressive transformers trained on tokenized tabular event streams are a simple and strong baseline for predicting financial events such as fraud. Yet institutions do not act on probabilities; they act on decisions whose consequences are asymmetric and heteroscedastic: the cost of a missed high-value fraud and that of a wrongly declined small purchase are not the same. The standard bridge is post-hoc Bayes-optimal thresholding of calibrated probabilities under a cost matrix. We ask whether fine-tuning the model to the decision objective can do better. We fine-tune the same pretrained model so that its restricted softmax over label tokens (already a distribution over business actions) maximizes expected utility under an institution-specified, amount-scaled cost matrix. Because the reward is a known function of (action, outcome, amount) and the outcome is observed in the data, the expected-utility objective and its gradient are available in closed form. This is example-dependent cost-sensitive learning whose per-example loss is linear in the predicted probability, with no sampling, critics, or advantage estimation. A KL anchor to the pretrained model and an auxiliary language-modeling term preserve calibration and the generative event model. A sampled, group-normalized (GRPO-style) variant provides the extension point to trajectory-level rewards.
Figures & tables
D1 fraud
rtp (intervene, y=1 )
1.00m−0.02
rfp (intervene, y=0 )
−0.05−0.05m
rfn (pass, y=1 )
−1.00m
rtn (pass, y=0 )
+0.002m
Table 1. Primary cost matrix. Entries are ϕ+γm with m the row’s stake. m is a monotone severity proxy derived from the amount bucket, normalized to (0,1] , not a dollar figure (§ 4 ); § 5 re-scores every result under two alternative scalings of m , including a dollar-proportional one.
Method
Utility/1k
%gap
PR-AUC
ROC-AUC
ECE
Interv. rate
Always-pass
0.19±0.06
0
–
–
–
0
B1 LogReg + Bayes ‡
−0.09±0.03[o0.66]
0.5
0.014
0.760
0.0001
0.0002
B2 HistGBM + Bayes ‡
−0.00±0.06[o0.66]
12.4
0.098
0.842
0.0003
0.0010
B3 STEP-CE + Bayes
1.173±0.069
70.4
0.690
0.972
0.00030
0.0012
B4a + TempScale
1.183±0.062
71.1
0.690
0.972
0.00020
0.0012
B4b + Platt
1.199±0.065
72.2
0.690
0.972
0.00010
0.0014
Table 2. Main results (mean ± s.d. over 10 seeds). Utility per 1,000 decisions; %gap = share of the always-pass → oracle gap closed. STEP methods (B3–M2) score the identical decision set per seed (shared oracle/floors), enforced by assertion. B1/B2 are computed on a separate user-level harness (one decision per client, higher positive rate) with a different oracle , shown in brackets [o] after their utility; their %gap is relative to their own oracle. B1/B2 utility/1k is therefore not comparable to the STEP rows. ( ‡ marks the separate-harness rows.) Best utility among matched STEP methods in bold ; the best ECE is bolded separately. The Focal (B6) %gap is omitted: with utility far below the always-pass floor the normalized gap is uninformative. B8 is B5 plus STEP-D’s KL anchor, and separates the anchor from the objective (§ 5 ).
β
λ
Utility/1k
ECE
Interv.
0 (no anchor)
0.1
1.278±0.060
0.00116
0.00220
0.01
0.1
1.297±0.080
0.00091
0.00186
0.05
0.1
1.307±0.084
0.00055
0.00134
0.2
0.1
1.280±0.080
0.00040
0.00109
1.0
0.1
1.244±0.084
0.00035
0.00102
0.05
0
1.315±0.079
0.00060
0.00120
Table 3. Anchor-coefficient sweep on D1 (seeds {41,42,43} ; all reference rows computed on the same three seeds). (β,λ)=(0.05,0.1) is the default used everywhere else in the paper. Utility is insensitive to both coefficients over the practical range; calibration and intervention rate improve monotonically with β . The utility-optimal settings are not the defaults—see § 5 for what the defaults buy instead.
Method
As-run
Rank
Dollars
Always-pass
0.19
0.21
−0.02
B3 STEP-CE + Bayes
1.17(70.4)
1.15(69.2)
0.49(68.2)
B5 Weighted-CE
−0.76(−69)
−0.82(−78)
−0.48(−61)
B6 Focal
−28.8
−30.3
−11.2
B7 Oversample
0.06(−10)
0.01(−16)
−0.08(−8)
B8 Weighted-CE + KL
−0.34(−39)
−0.39(−46)
−0.28(−35)
Table 4. Severity-scale robustness on D1 (utility per 1,000 decisions, mean over 10 seeds; %gap in parentheses). As-run is the scale the models were trained and originally scored under; rank is the normalized bucket rank (b+0.5)/32 ; dollars is proportional to the bucket median ticket. Policies are unchanged across columns—only t∗(m) and the accounting differ. Every ordering, sign and significance level is preserved.
Method
cat-TV ↓
label-TV ↓
amt-KS ↓
fraud ratio
( ×10−3 )
( →1 )
B3 STEP-CE
0.284±0.003
0.40±0.26
0.197±0.066
0.64±0.26
M1 STEP-D ( eu )
0.242±0.008
0.40±0.11
0.100±0.043
0.89±0.39
M2 STEP-D ( grpo )
0.242±0.008
0.48±0.16
0.100±0.043
0.87±0.48
anchor controls (the 2×2 )
eu , β=0 (no anchor)
0.242±0.010
1.11±0.85
0.100±0.053
1.58±0.77
Table 5. Generative fidelity on D1 (mean ± s.d. over seeds {41,42,43} ; 3,000 held-out windows, 20 samples each). Each model conditions on 5 real event rows and generates the next 5 ; generated columns are compared to the real continuation. Lower is better for cat-TV, label-TV, amt-KS; the fraud-rate ratio is best at 1.0 . The middle block is the anchor 2×2 : adding the anchor to a heuristic loss (B5 → B8) barely helps, while removing it from STEP-D ( β=0 ) costs a factor of 2.8 in label-TV. Loss form dominates; the anchor is a second-order correction on top of the right loss.
Figure 1. Robustness to FP-cost misspecification. Utility (mean ± 1 s.d. across seeds) as rfp is scaled at evaluation time. eu dominates B3 across the full range ( 0.25 – 8× ).
Figure 2. D1: Utility per 1,000 transactions as a function of the decision threshold t . Shaded bands show ±1 s.d. across 10 seeds.
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Method
Utility/1k
%gap
Interv. rate
D2 — churn (Rosbank)
STEP-CE + Bayes
49.4
91.9
1.00
STEP-D ( eu )
49.4
91.9
1.00
STEP-D ( grpo )
49.4
91.9
1.00
D3 — loan default (PKDD’99)
STEP-CE + Bayes
23.4
86.0
1.00
Appendix
Table 6. Summary of the excluded tasks (mean over seeds; D2 uses 5 seeds, D3 uses 10). Utility is per 1,000 decisions on each task’s own reward scale and is not comparable across tasks or to D1; %gap is the share of the always-pass → oracle gap closed by the Bayes rule. On both tasks the Bayes-optimal intervention rate is ≈1.0 , so STEP-CE + Bayes already closes most of the gap and STEP-D ( eu / grpo ) ties it to within noise—i.e. no decision headroom.