[Paper Review] Small LLMs for Medical NLP: a Systematic Analysis of Few-Shot, Constraint Decoding, Fine-Tuning and Continual Pre-Training in Italian
This paper systematically analyzes how small LLMs (~1B params) can tackle Italian medical NLP tasks using few-shot prompting, constraint decoding, supervised fine-tuning, and continual pre-training, showing fine-tuning generally yields the best results while inference-time methods offer strong low-resource options.
Large Language Models (LLMs) consistently excel in diverse medical Natural Language Processing (NLP) tasks, yet their substantial computational requirements often limit deployment in real-world healthcare settings. In this work, we investigate whether "small" LLMs (around one billion parameters) can effectively perform medical tasks while maintaining competitive accuracy. We evaluate models from three major families-Llama-3, Gemma-3, and Qwen3-across 20 clinical NLP tasks among Named Entity Recognition, Relation Extraction, Case Report Form Filling, Question Answering, and Argument Mining. We systematically compare a range of adaptation strategies, both at inference time (few-shot prompting, constraint decoding) and at training time (supervised fine-tuning, continual pretraining). Fine-tuning emerges as the most effective approach, while the combination of few-shot prompting and constraint decoding offers strong lower-resource alternatives. Our results show that small LLMs can match or even surpass larger baselines, with our best configuration based on Qwen3-1.7B achieving an average score +9.2 points higher than Qwen3-32B. We release a comprehensive collection of all the publicly available Italian medical datasets for NLP tasks, together with our top-performing models. Furthermore, we release an Italian dataset of 126M words from the Emergency Department of an Italian Hospital, and 175M words from various sources that we used for continual pre-training.
Motivation & Objective
- Evaluate whether small LLMs around 1B parameters can match or surpass larger medical NLP baselines in Italian.
- Systematically compare inference-time strategies (few-shot prompting, constraint decoding) and training-time strategies (supervised fine-tuning, continual pre-training).
- Identify the most effective adaptation combination for diverse clinical NLP tasks in Italian.
- Release Italian medical NLP datasets and top-performing models to enable reproducibility and further research.
Proposed method
- Evaluate small LLM families (Llama-3, Gemma-3, Qwen-3) across 20 clinical NLP tasks (NER, RE, CRF, QA, Argument Mining).
- Assess zero-shot and few-shot prompting with structured prompts and constraint decoding to enforce output formats.
- Fine-tune models with supervised instruction-following using LoRA on training data.
- Apply continual pre-training on large Italian medical corpora (scientific and clinical) prior to fine-tuning.
- Compare against larger baselines (Qwen-3-32B, MedGemma-27B) to quantify benefits of small models.

Experimental results
Research questions
- RQ1Can small LLMs (~1B params) achieve competitive performance on Italian medical NLP tasks compared to larger models?
- RQ2What is the relative impact of few-shot prompting, constraint decoding, fine-tuning, and continual pre-training on small LLM performance?
- RQ3Which combination of inference-time and training-time adaptations yields the best overall performance and generalization to out-of-distribution data?
Key findings
- Fine-tuning (FT) consistently yields the strongest performance gains across models and tasks.
- Continual pre-training (CPT) provides limited or case-specific benefits, with notable improvement mainly for gemma-3-1b-it.
- Few-shot prompting (4-shot) improves average performance but increases inference time; constraint decoding (CD) alone has smaller impact, but combining 4-shot with CD is beneficial.
- Among training-time strategies, FT typically outperforms CPT+FT, and CPT+FT can match larger baselines in some cases.
- Best small model (Qwen3-1.7B + FT) surpasses Qwen3-32B 4-shot by +9.2 points on average; five of six small LLMs outperform larger baselines on in-distribution data.
- Out-of-distribution gains from training are smaller than in-distribution gains, indicating continued need for task- or dataset-specific tuning.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.