AutoMedPrompt: A New Framework for Optimizing LLM Medical Prompts Using Textual Gradients
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
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2022A Survey on In-context Learningcited by 717
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2023The Falcon Series of Open Language Modelscited by 526
- 2022MedMCQA : A Large-scale Multi-Subject Multi-Choice Dataset for Medical domain Question Answeringcited by 525
- 2023Can Generalist Foundation Models Outcompete Special-Purpose Tuning? Case Study in Medicinecited by 319
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
- 2020Combating Mode Collapse in GAN training: An Empirical Analysis using Hessian Eigenvaluescited by 25
Built on by
Citing papers per year: 2025: 5; 2026: 2.
7 papers.
- 2025The Rise of Small Language Models in Healthcare: A Comprehensive Surveycited by 18
- 2025Reasoning LLMs in the Medical Domain: A Literature Surveycited by 5
- 2025DoctorRAG: Medical RAG Fusing Knowledge with Patient Analogy through Textual Gradientscited by 4
- 2025One Patient, Many Contexts: Scaling Medical AI with Contextual Intelligencecited by 1
- 2025Advances in Large Language Models for Medicinecited by 1
- 2026DeCode: Decoupling Content and Delivery for Medical QAcited by 0
- 2026LLM-Guided Evolution for Medical Decision Pipelinescited by 0
- 2026LLM-Guided Evolution for Medical Decision Pipelines5 Jun 2026
- 2026DeCode: Decoupling Content and Delivery for Medical QA5 Jan 2026
- 2025Advances in Large Language Models for Medicine23 Sep 2025
- 2025Reasoning LLMs in the Medical Domain: A Literature Survey26 Aug 2025
- 2025One Patient, Many Contexts: Scaling Medical AI with Contextual Intelligence11 Jun 2025
- 2025DoctorRAG: Medical RAG Fusing Knowledge with Patient Analogy through Textual Gradients26 May 2025
- 2025The Rise of Small Language Models in Healthcare: A Comprehensive Survey23 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2023An Empirical Evaluation of Prompting Strategies for Large Language Models in Zero-Shot Clinical Natural Language Processing
- 2024OpenMedLM: Prompt engineering can out-perform fine-tuning in medical question-answering with open-source large language models
- 2023From Beginner to Expert: Modeling Medical Knowledge into General LLMs
- 2026Medmarks: A Comprehensive Open-Source LLM Benchmark Suite for Medical Tasks
- 2024From Medprompt to o1: Exploration of Run-Time Strategies for Medical Challenge Problems and Beyond
- 2025Medical Reasoning in the Era of LLMs: A Systematic Review of Enhancement Techniques and Applications
- 2025Instruction Tuning and CoT Prompting for Contextual Medical QA with LLMs
- 2024The Limited Impact of Medical Adaptation of Large Language and Vision-Language Models