# Evaluating Prompting Strategies with MedGemma for Medical Order Extraction

Source: https://www.youtube.com/watch?v=pn5c72DkoeE
Recap page: https://rapidrecap.app/video/pn5c72DkoeE
Generated: 2025-11-17T13:34:14.526+00:00

---
## Quick Overview

The MedGemma 27B model, when tested on medical order extraction, significantly outperformed the one-shot prompting approach by employing a multi-step, explicit reasoning process, achieving an average score of 0.549 compared to the one-shot's 0.370, demonstrating that complex reasoning structures, despite higher computational cost, are superior for high-fidelity clinical data tasks.

**Key Points:**
- MedGemma 27B achieved an average score of 0.549 using multi-step reasoning compared to 0.370 for the one-shot prompt.
- The successful prompting strategy involved four specialized roles: Identifier, Mapper, Reasoner, and Validator, ensuring robust output.
- The one-shot approach, while simple, failed to filter out noise and systematic errors present in the low-fidelity training data.
- The Agent 3 (Structure) approach, which used the explicit reasoning steps, performed significantly better than the simple declarative prompt (Agent 2).
- The primary limitation identified is that the superior performance of complex prompting is entirely dependent on the availability of clean, manually annotated ground truth data for training.
- The study tested three distinct prompting strategies: Simple One-Shot, React (Reasoning and Acting), and Structured Decomposition (Agent 3).

![Screenshot at 05:55: Comparison of prompting complexity where the structured decomposition approach \(Agent 3\) is shown to handle complexity better than the simpler one-shot prompt.](https://ss.rapidrecap.app/screens/pn5c72DkoeE/00-05-55.png)

**Context:** This AI Paper Podcast episode analyzes research evaluating different prompting strategies for large language models (LLMs), specifically the MedGemma 27B model, on the difficult task of extracting structured information from complex medical orders. The core challenge is ensuring high accuracy and reliability when dealing with noisy, real-world clinical data, which often contains ambiguities and inconsistencies.

## Detailed Analysis

The discussion centers on evaluating three prompting strategies for medical order extraction using the MedGemma 27B model: Simple One-Shot, React (Reasoning and Acting), and Structured Decomposition (Agent 3). The one-shot approach, which is simple and declarative, performed poorly, scoring an average of 0.370. This strategy failed to filter out noise, inconsistencies, and ambiguities in the low-fidelity input data, leading to errors like misinterpreting dialogue or cancelling procedures like chest X-rays. The more complex, structured approach (Agent 3), which breaks the task into four specialized roles (Identifier, Mapper, Reasoner, Validator) using explicit step-wise reasoning, achieved a significantly higher average score of 0.549. While the one-shot approach is computationally cheaper, the structured approach proved far more robust and accurate, especially for high-stakes clinical data. The researchers noted that this superior performance is heavily reliant on the availability of clean, manually annotated ground truth data, highlighting a critical dependency for deploying such systems in real clinical settings.

### Prompting Strategy Comparison

- Simple One-Shot (0.370 avg score)
- React
- Structured Decomposition (Agent 3, 0.549 avg score)

### Agent 3 Roles

- Identifier (identifies order type/labs)
- Mapper (pairs orders with clinical reasons)
- Reasoner (generates action)
- Validator (final quality control check)

### Performance Metrics

- Structured decomposition outperformed one-shot by a significant margin (0.549 vs 0.370), proving explicit reasoning is necessary for complex medical tasks.

### Data Limitations

- The success of the high-scoring structured model relies entirely on high-fidelity, manually annotated MedQA data, which is a major practical limitation.

### Failure Modes of One-Shot

- Simple prompting led to errors like misinterpreting dialogue, context shifts, and failing to identify correct order categories (e.g., cancelling a necessary chest X-ray).

![Screenshot at 00:21: Introduction of the concept of Ambient Clinical Intelligence \(ACI\) as the core problem area.](https://ss.rapidrecap.app/screens/pn5c72DkoeE/00-00-21.png)
![Screenshot at 01:25: Visual representation of the different prompting strategies being compared, contrasting simple vs. complex reasoning.](https://ss.rapidrecap.app/screens/pn5c72DkoeE/00-01-25.png)
![Screenshot at 02:54: Explanation that the AI must show its work, highlighting the need for interpretability over simple guessing.](https://ss.rapidrecap.app/screens/pn5c72DkoeE/00-02-54.png)
![Screenshot at 04:38: Discussion on the structure of the 'React' framework, which involves reasoning and acting in multiple steps.](https://ss.rapidrecap.app/screens/pn5c72DkoeE/00-04-38.png)
![Screenshot at 06:15: The final validation step in the structured process, acting as a quality control check against the original transcript.](https://ss.rapidrecap.app/screens/pn5c72DkoeE/00-06-15.png)
![Screenshot at 07:57: The explicit comparison of the scores: 0.549 for structured vs. 0.370 for one-shot, emphasizing the performance gap.](https://ss.rapidrecap.app/screens/pn5c72DkoeE/00-07-57.png)
![Screenshot at 09:58: Concluding thought that the annotated data quality is the ultimate determinant of success for complex models.](https://ss.rapidrecap.app/screens/pn5c72DkoeE/00-09-58.png)
