DigestAI news desk

Cut through the AI noise.

Research

Researchers propose MedCode to boost LLMs’ medical calculation accuracy by 20–30%

A new framework called MedCode aims to improve large language models’ ability to perform precise medical calculations. Current LLMs struggle with tasks requiring exact numerical outputs, such as medication dosing or organ-function assessments, where errors can have severe consequences. MedCode trains models to generate embedded, executable code for calculations, delegating arithmetic to a…

1 source primary source

Key points

  • MedCode framework embeds executable code in LLMs for medical calculations, improving accuracy by 20–30% on benchmarks
  • Tests on LLaMA3-8B, Qwen2.5-7B, and Mistral-7B show gains in MedCalc and ICU scenario datasets
  • Weighted Direct Preference Optimization (wDPO) adapts to emphasize difficult-to-distinguish medical calculation tasks

The approach uses supervised fine-tuning and preference datasets from the MedCalc benchmark and ICU scenarios. Researchers also introduce weighted Direct Preference Optimization (wDPO) to prioritize harder-to-distinguish preference pairs. Testing on LLaMA3-8B, Qwen2.5-7B, and Mistral-7B shows absolute accuracy gains of 20–30 percentage points, suggesting embedded code generation significantly improves reliability in medical calculations.

Read the original at arXiv cs.AI · by Tianshi Ming, Yingying Zhang, Xian Wu primary sourceOpen source ↗
Topics · follow one to build your own front page
LLaMA3-8BQwen2.5-7BMistral-7B

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.

Comments

via GitHub Discussions

More in Research

All →

Related stories