Manuscript Offprint

arXiv:2611.02011

MedPsy: State-of-the-Art Small Medical Language Models for Efficient Edge Deployment

Davide Vitabile, Alexandro Buffa, Akshay Nambiar, Amril Nazir

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Davide Vitabile, Alexandro Buffa, Akshay Nambiar, Amril Nazir

Tether Data, S.A. de C.V. d.b.a. Tether AI Research

https://huggingface.co/collections/qvac/medpsy

https://github.com/tether-ai-research/qvac-medpsy

Medical language models promise expert clinical support, but the strongest open-source LLMs remain too large for private edge-device deployment, while compact medical models still trail substantially on knowledge-intensive and real-world healthcare tasks. Moreover, reasoning models that fit edge memory budgets can produce long reasoning traces, increasing sequential decoding, end-to-end latency, energy consumption, and KV-cache memory pressure. We present MEDPsy, a family of text-only 1.7B and 4B medical language models designed for edge deployment, explicitly targeting this accuracy-generation-efficiency trade-off. Our recipe combines a synthetic medical data pipeline over biology, medicine, and health seeds with chain-of-thought targets from a 235B medical-focused LLM teacher; a four-stage post-training curriculum comprising two SFT stages followed by two RL stages with hard-sample mining; and an edge deployment evaluation spanning multiple GGUF quantization variants and real-device inference on laptop and smartphone hardware. On seven closed-ended medical benchmarks, MEDPsy-4B surpasses MedGemma-1.5-4B by 19.34 points and matches MedGemma-27B while being 6.75×6.75\times smaller; MEDPsy-1.7B outperforms MedGemma-1.5-4B by 11.42 points despite being less than half its size. On HealthBench-Hard, MEDPsy-4B surpasses MedGemma-27B by 15.33 points, while MEDPsy-1.7B surpasses it by 11.66 points despite being 16×16\times smaller. Beyond accuracy, MEDPsy reduces average response length by 1.7×1.7\times (1.7B) and 3.2×3.2\times (4B) versus its Qwen3 backbones, while Q4_K_M quantization preserves the aggregate score within 1 point of BF16 with ∼\sim 69% lower disk footprint. In real-device inference, MEDPsy-4B's shorter generations translate into 75% lower median end-to-end latency and estimated energy per answer than its Qwen3 backbone at matched quantization, while peak RAM remains below 5 GB across our tested laptop and smartphone configurations.

1 Introduction

Medical knowledge and capabilities of language models have advanced rapidly, yet their deployment remains centralized. Among open-weight medical systems, strong models such as MedGemma-27B-text-it [1] still require substantial accelerator memory for practical deployment, while proprietary medical systems such as Med-PaLM-style models and large GPT-4-based clinical assistants are typically accessed through cloud infrastructure. Both fundamentally conflict with the privacy, latency, and reliability requirements of healthcare. Patient records, symptom descriptions, and clinical notes are protected health information governed by strict regulatory regimes (HIPAA, GDPR, and equivalents). The dominant cloud paradigm requires this data to leave the device, traverse network infrastructure, and be processed remotely, creating attack surfaces, compliance burdens, and a fundamental tension between AI capability and patient privacy.

Figure

(a) Capability per parameter: closed-ended average score vs. parameter count (log scale). MEDPsy-4B matches 27B–70B medical LLMs at a fraction of the size; the dashed line connects the MEDPsy pareto frontier. Scores from Tables 1 and 9.

Figure

(b) Capability per gigabyte: closed-ended average score vs. GGUF disk size (log scale) across seven quantization formats. Scores stay near BF16 until 3-bit precision, with a sharp cliff at IQ3_XXS; highlighted points mark the capacity-vs-precision crossover. Data from Table 4(a).

Figure 1: Efficiency along both deployment axes. MEDPsy models deliver frontier-level medical accuracy per parameter (a) and per gigabyte of quantized footprint (b).

The compact-medical gap. The current open landscape has a sharp trade-off between capability and deployability. MedGemma-27B-text-it delivers strong medical performance, but at 27B parameters it is infeasible for edge deployment, requiring tens of GB of VRAM. MedGemma-1.5-4B-it [2] is technically runnable on a high-end laptop but lacks the domain-specific capabilities of its larger variant on medical benchmarks, and, to the best of our knowledge, no open model in the 1–4B range delivers accuracy comparable to large medical-model baselines. This is not a pure compression problem: smaller models trained with conventional recipes suffer disproportionately on knowledge-intensive medical tasks, where factual precision and safe, well-structured responses are essential. Nor does fitting device memory guarantee efficient inference: compact reasoning models can still overthink, producing long traces that increase sequential decoding latency, energy use, and KV-cache traffic.

Our thesis. For compact medical LLMs, medical capability and deployment efficiency can be optimized jointly: high-quality synthetic supervision and staged post-training build accuracy, while length-aware alignment and quantization reduce generation and memory costs for private on-device use. We test this thesis by constructing the MEDPsy 1^{1} family of two text-only medical models, MEDPsy-1.7B and MEDPsy-4B 2^{2}, on top of Qwen3 backbones [3] with a four-stage post-training recipe (two Supervised Fine-Tuning (SFT) stages over a synthetic medical corpus built from public Genesis III biology/medicine seed prompts [4] and newly generated health seeds derived from FineFineWeb [5], then two Reinforcement Learning (RL) stages with hard-sample mining inspired by Fleming-R1 [6]), and we evaluate them across eight benchmark suites spanning clinical exams (MedQA-USMLE [7], MedMCQA [8]), health literacy (MMLU-Health, MMLU-Pro Health [9, 10]), expert reasoning (MedXpertQA [11]), biomedical research (PubMedQA [12]), underserved-region medicine (AfriMedQA [13]), and real-world clinical scenarios (HealthBench and HealthBench-Hard [14]).

Contributions. Our contributions are:

• State-of-the-Art Efficient Models. MEDPsy-4B matches MedGemma-27B on closed-ended accuracy and surpasses on HealthBench suites both MedGemma-4B (+20/+28.33) and 27B (+9.0/+15.3). Similarly, MEDPsy-1.7B exceeds MedGemma-4B on closed-ended tasks and outperforms both MedGemma variants on HealthBench, achieving these leads at up to 16×16\times smaller scale (Fig. 1a; Sec. 5).

1^{1}In MedPsy, “Med” denotes the medical specialization, while “Psy” is the shared suffix used across our organization’s model families, inspired by psychohistory in Isaac Asimov’s fiction rather than psychology.

2^{2}Models and supporting artifacts are available at https://huggingface.co/collections/qvac/medpsy.

  • Post-training recipe. We combine single-teacher synthetic supervision, broad-to-focused SFT, and easy-to-hard DAPO with deterministic failure mining. Component ablations separate the roles of SFT, DAPO's drift-enabling changes, the overlong-response penalty, and Stage-2 mining (Sec. 5.4; App. A.17).

  • Token efficiency for the edge. MEDPsy-4B and MEDPsy-1.7B achieve 3.2× and 1.7× token reductions over Qwen3 backbones, significantly lowering on-device latency (Sec. 5.5). This efficiency stems from RL-side compression, primarily a soft overlong-response penalty that maintains accuracy while ensuring the training curriculum remains Pareto-dominant (App. A.17.2).

  • Quantized edge deployment. At Q4_K_M, both model sizes retain aggregate score within one point of BF16 while reducing disk footprint by 68–69%. On-device measurements connect MEDPsy-4B's shorter generations to 75% lower median latency and estimated energy per answer at matched quantization, while peak RAM remains below 5 GB in the tested laptop and smartphone configurations. A broader six-format study identifies a capacity-vs-precision effect at matched footprint (Sec. 5.6; App. A.12).

References (37)