- Article
We tested whether large language models (LLMs) can tune the settings (hyperparameters) of machine-learning fraud detectors. In a pre-registered study on three public fraud benchmarks, Claude Opus 5.5 proposed settings for XGBoost and LightGBM and was compared with random search and a Bayesian optimiser (TPE); every model was tested on a later period than it was tuned on, with 10 repeats per condition. After 10 trials, the LLM’s median PR-AUC was within the pre-registered margin of 0.005 of TPE’s after 40 trials on two benchmarks, with non-inferiority shown in three of these four comparisons; on the third benchmark it was 0.008–0.011 lower. In a post hoc comparison, a smaller model, Claude Haiku 5.5, was non-inferior to Opus at about 3% of the fees. Naming the dataset met the pre-registered rule for an advantage, but the gains were negligible (at most 0.003). The LLM’s proposals followed altered trial scores in 79% of cases, which shows sensitivity to the evidence but does not exclude memorised knowledge. With only 28 frauds in the tuning data, no reliable positive relation between tuning scores and later performance was detected. Contrary to common advice, tuning on the most recent data did not select better models than tuning on a random sample; a post hoc controlled refit indicated that both the number of trees chosen by early stopping and the selected settings contributed to this gap. The evidence is limited to three benchmarks and two gradient-boosting libraries.
23 November 2026





