Abstract
Large Language Models (LLMs) are increasingly being integrated into healthcare workflows, yet their reliance on general-domain training data poses significant risks regarding demographic and geographic bias. This paper presents the Healthcare Comprehensive Commons Corpus (HC4), a specialized 89-billion-token dataset designed for medical LLM pretraining. By training a suite of Small Language Models (SLMs) on HC4 and comparing them against general-domain baselines, we investigate how domain-specific data influences both linguistic performance and clinical bias. Our evaluation introduces the Net Bias Prescription Score (NBPS) to quantify disparities in medical decision-making, specifically regarding opioid prescriptions. Results indicate that while medical-specific datasets significantly improve perplexity and general neutrality, they also reveal deep-seated biases in clinical recommendations that vary across model architectures.
Introduction
The potential for LLMs to revolutionize healthcare is tempered by the quality of their training data. Most frontier models are trained on massive web crawls, such as Common Crawl, which often contain systemic biases. In a clinical context, these biases can manifest as inequitable treatment recommendations or skewed diagnostic logic. To address this, researchers from M42 in Abu Dhabi have developed the Healthcare Comprehensive Commons Corpus (HC4) and a rigorous evaluation framework to move beyond general sentiment analysis into high-stakes clinical bias probing.
The HC4 Dataset: Curation and Pipeline
The HC4 dataset comprises 89.08 billion tokens, primarily sourced from peer-reviewed literature (S2ORC, PubMed), metadata repositories (OpenAlex), and clinical guidelines. The curation process followed a rigorous four-stage pipeline:
- Collection: Aggregating high-quality medical and scientific text.
- Filtering: Removing non-medical or low-quality content.
- Cleaning: Standardizing text formats and removing noise.
- Deduplication: Utilizing MinHash Locality Sensitive Hashing (LSH) to eliminate near-duplicate documents, preventing models from over-learning specific studies or repetitive data.
Compared to general datasets like SlimPajama and FineWeb, HC4 provides a more concentrated foundation for medical language understanding.
Methodology: Probing Clinical Bias
To evaluate the impact of HC4, the researchers trained nine Small Language Models (SLMs) ranging from 124M to 179M parameters, based on GPT-2, Llama-3, and Mistral architectures. These models were evaluated using two primary frameworks:
General Sentiment Evaluation
Using the BOLD (Bias in Open-Ended Language Generation) benchmark, the study measured how models completed prompts related to various demographics. Interestingly, models trained on the medical-heavy HC4 dataset produced more neutral completions than those trained on general web data, suggesting that scientific text may serve as a buffer against polarized online sentiment.
Clinical Decision Bias (NBPS)
The study introduced the Net Bias Prescription Score (NBPS). This metric quantifies a model's propensity to over-prescribe or under-prescribe medications—specifically opioids—for different demographic groups compared to a neutral control case. The evaluation set was derived from MedQA, filtered specifically for scenarios involving patient pain management.
Key Results and Insights
Performance and Alignment
Llama-3.2 trained on HC4 achieved a validation perplexity of 11.84, a marked improvement over the ~19.5 perplexity achieved by the same architecture trained on FineWeb or SlimPajama. This demonstrates that HC4 is significantly better aligned with the nuances of medical nomenclature and scientific discourse.
Demographic Disparities in Pain Management
The bias probe revealed that models often mirrored real-world healthcare inequities:
- Ethnicity: Llama-HC4 and Mistral-HC4 consistently over-prescribed opioids for "American Indian or Alaska Native" and "Middle Eastern or North African" groups.
- Age: HC4-trained models showed a strong tendency to under-prescribe opioids for elderly patients, whereas general-domain models tended to over-prescribe for the same demographic.
- Gender: In general contexts, most models shifted sentiment from neutral to positive more frequently for female-associated prompts than male ones.
The Role of Architecture
A critical finding was that model architecture influences bias independently of the training data. Even when trained on the exact same HC4 dataset, Llama and Mistral architectures exhibited distinct bias profiles, suggesting that internal mechanisms like attention or normalization play a role in how prejudices are encoded.
Limitations and Future Work
While this study provides a new benchmark for clinical LLM transparency, several limitations remain. The use of SLMs (under 200M parameters) may not fully capture the emergent behaviors of larger frontier models. Additionally, the clinical bias analysis was focused narrowly on opioid prescriptions; future research should expand to diagnostic accuracy and surgical recommendations.
By releasing a subset of HC4 and the NBPS framework, the authors advocate for a "standard procedure" of domain-specific bias testing, ensuring that clinical LLMs are both technically proficient and ethically sound before deployment in real-world medical settings.
Summary updated