Notes & Sources · Chapter 5: Why AI Needs Mathematics
Chapter 5: Why AI Needs Mathematics, note 3
The study is by Movassaghi, Momenzadeh and Meyer. The random forests that matched the accuracy of the version in scikit-learn, a standard open-source library, were written by GPT-o4-mini-high and by Gemini Pro 2.5, as the study’s authors call them, the second after the pasted error message; the comparison ran over a hundred random splits of a classic small dataset of flower measurements. The five methods were random forests (Breiman, 2001), ComBat batch correction (Johnson and colleagues, 2007), the Augusta network-inference method (Musilova and colleagues, 2024), SERRF (Fan and colleagues, 2019) and a gene-set enrichment workflow. For ComBat, a method for removing the distortions that creep in when samples are processed in separate batches, the implementations that ran at the first attempt matched the reference package on three measures across a hundred synthetic datasets. For SERRF, one model could not produce a working implementation at the first attempt, though its code sometimes ran, and another succeeded at the second attempt, once the structure of the data had been explained to it. GPT-o4-mini-high succeeded on every task it was given. Several other pairings of model and task failed: Claude 4 Sonnet could not accept the PDF and the prompt together for the random forest, and GPT-4o and Gemini 2.5 Flash failed at ComBat. The authors call their benchmark “intentionally limited in scope”; there were generally fewer than ten attempts per task, by the authors’ estimate. Movassaghi, Momenzadeh, and Meyer, “From Articles to Code.”
- Address
/n/ch05-n003/(provisional until the first edition is printed)