mlsanityData to 7 Oct 2026

AutoMedPrompt: A New Framework for Optimizing LLM Medical Prompts Using Textual Gradients

arXiv 2502.15944 ↗First posted 21 Feb 2025cs.CLcited by 7

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have demonstrated increasingly sophisticated performance in medical and other fields of knowledge. Traditional methods of creating specialist LLMs require extensive fine-tuning and training of models on large datasets. Recently, prompt engineering, instead of fine-tuning, has shown potential to boost the performance of general foundation models. However, prompting methods such as chain-of-thought (CoT) may not be suitable for all subspecialty, and k-shot approaches may introduce irrelevant tokens into the context space. We present AutoMedPrompt, which explores the use of textual gradients to elicit medically relevant reasoning through system prompt optimization. AutoMedPrompt leverages TextGrad's automatic differentiation via text to improve the ability of general foundation LLMs. We evaluated AutoMedPrompt on Llama 3, an open-source LLM, using several QA benchmarks, including MedQA, PubMedQA, and the nephrology subspecialty-specific NephSAP. Our results show that prompting with textual gradients outperforms previous methods on open-source LLMs and surpasses proprietary models such as GPT-4, Claude 3 Opus, and Med-PaLM 2. AutoMedPrompt sets a new state-of-the-art (SOTA) performance on PubMedQA with an accuracy of 82.6%, while also outperforming previous prompting strategies on open-sourced models for MedQA (77.7%) and NephSAP (63.8%).

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 14 of its 25 references that are in the map. First posted on arXiv 21 Feb 2025.

Builds on

14 of 25 references.

References · 14

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  4. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  5. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  6. 2022A Survey on In-context Learningcited by 717
  7. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  8. 2023The Falcon Series of Open Language Modelscited by 526
  9. 2022MedMCQA : A Large-scale Multi-Subject Multi-Choice Dataset for Medical domain Question Answeringcited by 525
  10. 2023Can Generalist Foundation Models Outcompete Special-Purpose Tuning? Case Study in Medicinecited by 319
  11. 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
  12. 2020Combating Mode Collapse in GAN training: An Empirical Analysis using Hessian Eigenvaluescited by 25
2 more
  1. 2020An Information-Theoretic Perspective on Overfitting and Underfittingcited by 6
  2. 2025ELMTEX: Fine-Tuning Large Language Models for Structured Clinical Information Extraction. A Case Study on Clinical Reportscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 2.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023An Empirical Evaluation of Prompting Strategies for Large Language Models in Zero-Shot Clinical Natural Language Processing
  2. 2024OpenMedLM: Prompt engineering can out-perform fine-tuning in medical question-answering with open-source large language models
  3. 2023From Beginner to Expert: Modeling Medical Knowledge into General LLMs
  4. 2026Medmarks: A Comprehensive Open-Source LLM Benchmark Suite for Medical Tasks
  5. 2024From Medprompt to o1: Exploration of Run-Time Strategies for Medical Challenge Problems and Beyond
  6. 2025Medical Reasoning in the Era of LLMs: A Systematic Review of Enhancement Techniques and Applications
  7. 2025Instruction Tuning and CoT Prompting for Contextual Medical QA with LLMs
  8. 2024The Limited Impact of Medical Adaptation of Large Language and Vision-Language Models