← Latest papers
💬 NLP

Teaching LLMs Brazilian Healthcare: Injecting Knowledge from Official Clinical Guidelines

This paper introduces a method to adapt a 14B-parameter LLM to the Brazilian healthcare domain by generating synthetic data from official clinical guidelines and applying continual pre-training with reinforcement learning, resulting in a model that outperforms larger proprietary systems on newly established Brazilian clinical benchmarks.

Original authors: Hugo Abonizio, Filipe Rocha Lopes, Roberto Lotufo, Rodrigo Nogueira

Published 2026-05-05
📖 4 min read☕ Coffee break read

Original authors: Hugo Abonizio, Filipe Rocha Lopes, Roberto Lotufo, Rodrigo Nogueira

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine Brazil's public health system (SUS) as a massive, incredibly detailed library containing 178 giant rulebooks. These books tell doctors exactly how to diagnose illnesses, what medicines to prescribe, and how much to give to over 200 million citizens. The problem? These rulebooks are written in Portuguese, and they are so thick and complex that even human doctors can't memorize every single detail.

Currently, the "super-smart" AI computers (LLMs) that people use to answer medical questions are like students who only studied English textbooks. They know a lot about medicine, but they haven't read the Brazilian rulebooks. If you ask them a specific question about a Brazilian dosage, they often guess or get it wrong.

This paper is about teaching one of these AI students to become a master of the Brazilian rulebooks. Here is how they did it, broken down into simple steps:

1. The "Translator" Problem

The researchers couldn't just feed the raw PDF rulebooks to the AI. It's like trying to teach someone to drive by handing them a 500-page manual in a language they barely speak. The AI needs the information "cooked" into a format it can digest.

So, they built a Synthetic Data Kitchen.

  • The Ingredients: They took the 178 official rulebooks (about 5.4 million words).
  • The Chefs: They hired four different "AI Chefs" (different large language models).
  • The Recipe: Instead of just copying the text, these chefs rewrote the rulebooks in three different styles:
    1. The Paraphraser: Rewrote the rules in different words but kept the meaning.
    2. The Wikipedia Writer: Turned the dry legal text into easy-to-read encyclopedia articles.
    3. The Quiz Master: Created questions and detailed answers based on the rules.

By using four different chefs, they created a massive library of about 70 million words of "re-imagined" Brazilian medical knowledge. This is like taking one textbook and rewriting it in four different voices to make sure the student understands every angle.

2. The Training Camp

They took a standard AI model (Qwen2.5-14B) and put it through a two-step training camp:

  • Step 1: Reading the Library (Continual Pre-training): The AI read all 70 million words of the synthetic data. It wasn't just memorizing; it was learning the "vibe" and specific facts of Brazilian medicine.
  • Step 2: The Drill Sergeant (Reinforcement Learning): After reading, they didn't just stop. They put the AI in a drill where it had to answer True/False questions about the rules. If it got it right and explained why, it got a reward. If it just guessed, it got nothing. This forced the AI to stop guessing and start reasoning like a doctor.

3. The Final Exam

To see if the training worked, the researchers created two special tests that no other AI had ever taken before:

  • The "True or False" Test (HealthBench-BR): The AI had to spot tiny differences in medical rules (e.g., "Is this drug given by vein or by artery?").
  • The "Open Question" Test (PCDT-QA): The AI had to answer complex medical questions in its own words, which was then graded by another AI judge.

The Results: A Small Model Beats the Giants

The results were surprising. The researchers' model, which is relatively small (14 billion parameters), scored higher than the world's biggest, most expensive AI models (like GPT-5.2, Claude, and Gemini) on these specific Brazilian tests.

  • The Score: It got about 84% on the True/False test and 85% on the open questions.
  • The Comparison: Even Google's search-based AI (which looks up answers on the web in real-time) scored lower than this trained model.
  • The "Sycophancy" Fix: A funny but important discovery was that before the final training step, the AI tended to agree with the user even when the user was wrong (like a "yes-man"). The "Drill Sergeant" training taught it to say "No, that's actually wrong" when the evidence didn't match.

Why This Matters (According to the Paper)

The paper claims this is a blueprint for how to teach AI about specific, non-English medical systems without needing millions of dollars or secret data. They proved that:

  1. Diversity is key: Using four different AI "chefs" to rewrite the data was much better than using just one.
  2. Rewards work: The "Drill Sergeant" step was crucial for getting the high scores.
  3. Open Source: They released all their data, tests, and the final AI model for free, so other researchers can use them to help Portuguese-speaking doctors.

Important Note: The authors are very clear that this is a research tool, not a certified medical device. It's designed to support doctors, not replace them. It's like a very smart medical student who has read all the Brazilian rulebooks, but it still needs a licensed doctor to make the final call.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →