Input Radiograph - A radiograph (e.g., chest X-ray) is fed into the system. 2. Visual…
- User
Input Radiograph
- A radiograph (e.g., chest X-ray) is fed into the system.
-
Visual Encoding with LLaMA 3.2 Vision 13B
- The radiograph is processed by LLaMA 3.2 Vision's encoder module.
- This includes a visual transformer to extract latent visual features as embeddings representing the radiograph.
-
Intermediate Report Generation
- The text generation module of LLaMA 3.2 Vision takes:
- Latent visual features
- A generation prompt
- It generates an intermediate report, which serves as the initial textual output of the model.
- The text generation module of LLaMA 3.2 Vision takes:
-
**related and unrelated references related to that image are there.
-
Reward System
- The generated intermediate report is evaluated using a reward system that measures:
- Clinical Accuracy: Comparing findings in the generated report with related and unrelated references clinical labels (e.g., using CheXpert).
- Linguistic Quality: Scoring the fluency, grammatical correctness, and readability using BLEU, ROUGE, or METEOR.
- Repetition Penalty: Deducting scores for repetitive content.
- A weighted reward function aggregates these metrics to compute the total reward.
- The generated intermediate report is evaluated using a reward system that measures:
-
Policy Optimization via Reinforcement Learning (RL)
- The reward is used to update the policy of the LLaMA 3.2 Vision model using RL algorithms like Proximal Policy Optimization (PPO) or Self-Critical Sequence Training (SCST).
- This process fine-tunes the model to improve its performance on subsequent report generations.
-
Final Report Generation (Coarse-to-Fine Decoding)
- The intermediate report is refined using a coarse-to-fine decoding process, which incorporates:
- The latent visual features
- The intermediate report
- A refinement prompt
- This stage ensures the final report is precise, domain-aligned, and coherent with binary cross entropy between final report and gold standard reports.
- The intermediate report is refined using a coarse-to-fine decoding process, which incorporates:
- Assistant