Retrieve, Generate, Evaluate: A Case Study for Medical Paraphrases Generation with Small Language Models
Ioana Buhnila, Aman Sinha, Mathieu Constant
TL;DR
The paper tackles the risk of medical hallucinations and resource costs in large language models by proposing pRAGe, a Retrieval Augmented Generation pipeline that uses open-source Small Language Models and a French medical knowledge base (RefoMed-KB) to generate concise sub-sentential paraphrases for medical terms. It combines encoder-retriever-decoder architecture with prompted decoding and finetuning (via Q-LoRA) on the RefoMed dataset, and builds a substantial French KB from Wikipedia to ground outputs. Through extensive automatic and fine-grained human evaluation, the study shows that finetuning BIOMISTRAL within pRAGe improves the quality and correctness of short, patient-friendly paraphrases while maintaining manageable hallucination rates, and that RAG grounding can outperform purely parametric LM memory in certain conditions. The approach offers a reproducible, open-source pathway to safer, grounded medical text generation for lay audiences, with practical implications for accessible patient education and downstream Q&A tasks.
Abstract
Recent surge in the accessibility of large language models (LLMs) to the general population can lead to untrackable use of such models for medical-related recommendations. Language generation via LLMs models has two key problems: firstly, they are prone to hallucination and therefore, for any medical purpose they require scientific and factual grounding; secondly, LLMs pose tremendous challenge to computational resources due to their gigantic model size. In this work, we introduce pRAGe, a pipeline for Retrieval Augmented Generation and evaluation of medical paraphrases generation using Small Language Models (SLM). We study the effectiveness of SLMs and the impact of external knowledge base for medical paraphrase generation in French.
