MedPsy: State-of-the-Art Small Medical Language Models for Efficient Edge Deployment
Organizations: Tether Data, S.A. de C.V. d.b.a. Tether AI Research
Abstract
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. 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, 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.75x 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 ~16x smaller. Beyond accuracy, MedPsy reduces average response length by 1.7x (1.7B) and 3.2x (4B) versus its Qwen3 backbones, while Q4_K_M quantization preserves the aggregate score within 1 point of BF16 with ~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.
Figures & tables
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Group | Source / Role | Rows | License / Note |
| Corpus 1: Broad SFT & Seeds | |||
| Seeds | Genesis III (Biology/Medicine) | 8,089,891 | CC-BY-NC-4.0 |
| Seeds | FineFineWeb (Health) | 2,133,642 | Apache-2.0 |
| SFT-1 | Synthetic Broad Med Corpus | 10,223,533 | Inherited |
| Corpus 2: Focused SFT | |||
| SFT-2 | AfriMedQA MCQ Train | 124 | CC-BY-4.0 |
| Teacher | CompassJudger | Llama-3.3-70B | GPT-OSS-120B |
| Baichuan-M3-235B | 77 | 71 | 58 |
| GPT-OSS-120B | 69.67 | 63 | 52.33 |
| Fleming-R1-32B | 67 | 61 | 45.67 |
| SFT target source | Closed-ended avg | HealthBench |
| Fleming-R1-32B only | 63.43 | 59.5 |
| Baichuan-M3-235B only | 63.02 | 71.0 |
| Both teachers, mixed | 63.40 | 60.0 |
| Model | CompassJudger | Llama-3.3-70B | GPT-OSS-120B |
| Qwen3-4B-Thinking-2507 | 63 | 56 | 36.67 |
| Qwen3-4B (Thinking) | 62 | 55 | 37.67 |
| gemma-3-4b-it | 59 | 53 | 33.33 |
| SmolLM3-3B | 50 | 43.67 | 24 |
| Llama-3.2-3B-Instruct | 37.33 | 32 | 14.67 |
| Model | CompassJudger | Llama-3.3-70B | GPT-OSS-120B |
| Qwen3-1.7B (Thinking) | 53 | 47.33 | 27.67 |
| LFM2.5-1.2B-Thinking | 49 | 41.67 | 22.33 |
| Llama-3.2-1B-Instruct | 25 | 22 | 5.33 |
| SmolLM2-1.7B-Instruct | 23 | 18.67 | 6 |
| Parameter | Qwen3-1.7B | Qwen3-4B |
| Hidden size | 2,048 | 2,560 |
| FFN hidden size | 6,144 | 9,728 |
| Layers | 28 | 36 |
| Attention heads | 16 | 32 |
| KV groups (GQA) | 8 | 8 |
| Vocab size | 151,936 | 151,936 |
| Hyperparameter | S1 (1.7B) | S1 (4B) | S2 (1.7B) | S2 (4B) |
| Asymmetric clip | ||||
| Entropy coefficient | ||||
| Optimizer / precision | AdamW, bf16 mixed | |||
| Learning rate | (constant) | |||
| Train batch (prompts) | ||||
| PPO mini-batch | ||||
| Benchmark | MedPsy -4B outcomes | Pairwise score | |||
| Win | Tie | Loss | MedPsy -4B | MedGemma-27B-text-it | |
| AfriMedQA | 640 | 10,258 | 832 | 49.1816% | 50.8184% |
| MMLU-Health | 147 | 2,944 | 176 | 49.5562% | 50.4438% |
| MedQA-USMLE | 325 | 3,209 | 285 | 50.5237% | 49.4763% |
| PubMedQA | 123 | 1,298 | 79 | 51.4667% | 48.5333% |
| MedMCQA | 1,155 | 10,164 | 1,230 | 49.7012% | 50.2988% |
| Format | Score 4B | Score 1.7B | 1.7B / 4B ratio |
| Q8_0 | 0.15 | 0.00 | — |
| Q4_K_M | 0.81 | 0.73 | 1 |
| IQ4_NL | 1.02 | 1.70 | 1.7 |
| IQ4_XS | 1.08 | 1.79 | 1.7 |
| IQ3_M | 1.50 | 3.58 | 2.4 |
| IQ3_XXS | 5.56 | 12.46 | 2.2 |
| Model | Peak RAM | tok/s | tokens/answer | TTFT | time/answer | energy/answer |
| MedPsy-1.7B | 2.22 GB | 15.27 | 789 | 8.90 s | 55.6 s | 420 J |
| MedPsy-4B | 3.98 GB | 6.63 | 422 | 15.04 s | 105.4 s | 508 J |
| Model/quant | Decode @512 | Decode @8K | Peak RAM @8K | TTFT @512 |
| MedPsy -1.7B Q4_K_M | 164 tok/s | 109 tok/s | 3.16 GB | 0.06 s |
| MedPsy -4B IQ3_M | 91 tok/s | 66 tok/s | 4.32 GB | 0.12 s |
| MedPsy -4B Q4_K_M | 89 tok/s | 63 tok/s | 4.83 GB | 0.12 s |
| Model | Task 1 | Task 2 |
| MedPsy -4B | 0.855 | 0.875 |
| MedGemma-27B-text-it | 0.828 | 0.802 |
| MedPsy -1.7B | 0.590 | 0.670 |
| MedGemma-1.5-4B-it | 0.565 | 0.364 |
Medical LLMs
Medical large language models are AI systems adapted to clinical and biomedical data for health reasoning, information extraction, and communication.
See all 416 papers