A preprint posted to arXiv on 12 September tests whether language models handle clinical arithmetic better when they write case-specific Python for a restricted executor to run rather than calculating directly. The authors evaluated the approach on MedCalc-Bench Verified, a set of 1,100 cases spanning 55 calculators.

With formulas and variables supplied, the solver lifted Qwen2.5-32B-AWQ from 83.47% to 90.53%, a paired gain of 7.05 points with a 95% interval of [0.47, 14.60]. For Qwen2.5-7B the gain was 3.29 points, from 72.02% to 75.31%, with an interval of [-3.49, 10.38] that includes zero.

A hand-written 22-calculator library was exact on its 440 supported cases but abstained elsewhere, scoring 40.0% overall. The authors audited the benchmark's formulas against current clinical guidelines and flagged 16 of 55 for version, use or coefficient concerns.