Paper deep dive
MedPixel: A Unified Pixel-Language Model for Medical Reasoning and Segmentation
Haoyu Yang, Meixing Shi, Zengjie Chen, Haoran Sun, Haitao Leng, Xiaoming Shi, Yuxiang Cai, Yankai Jiang
Intelligence
Status: not_run | Model: - | Prompt: - | Confidence: 0%
Entities (0)
Relation Signals (0)
No relation signals yet.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:Reliable medical image understanding requires models to connect clinical language and visual reasoning with pixel-level grounding. Yet medical vision-language models often lack precise localization, whereas medical segmenters typically rely on explicit target categories or precise spatial prompts. This divide is reinforced by a supervision mismatch: segmentation datasets provide precise masks but little language supervision, whereas medical vision-language data rarely pair language with dense spatial annotations. To address this gap, we present MedPixel, a unified medical pixel-language model built around a shared language--mask interface. To provide scalable supervision, we introduce MedPLG-440K, comprising approximately 440K pixel-language task samples constructed through a clinically motivated synthesis process without external LLM annotation. MedPixel is trained with joint multi-task supervised fine-tuning followed by Pixel-Level Preference Optimization, which uses ground-truth masks as offline verifiers to derive response preferences from mask quality. MedPixel supports a broad spectrum of tasks spanning explicit grounding, implicit reasoning, spatial interaction, grounded explanation, and medical VQA. Across this task spectrum, MedPixel achieves strong performance in both pixel-level prediction and response generation, together with effective zero-shot transfer to external grounding benchmarks and robustness to imperfect spatial prompts. Code and model checkpoints will be released at this https URL.
Tags
Links
- Source: https://arxiv.org/abs/2608.09818v1
- Canonical: https://arxiv.org/abs/2608.09818v1
Trouble viewing inline? Open PDF directly ā
Full Text
93,440 characters extracted from source content.
Expand or collapse full text
MedPixel: A Unified Pixel-Language Model for Medical Reasoning and Segmentation Haoyu Yang 1 , Meixing Shi 1 , Zengjie Chen 1 , Haoran Sun 2 Haitao Leng 3 , Xiaoming Shi 4 , Yuxiang Cai 1 , Yankai Jiang 5 1 Zhejiang University 2 Fudan University 3 Kuaishou 4 East China Normal University 5 Shanghai Artificial Intelligence Laboratory yanghaoyu, shimeixing, caiyuxiang@zju.edu.cn; jyk1996ver@zju.edu.cn Abstract Reliable medical image understanding requires models to connect clinical language and visual reasoning with pixel- level grounding. Yet medical vision-language models often lack precise localization, whereas medical segmenters typ- ically rely on explicit target categories or precise spatial prompts. This divide is reinforced by a supervision mis- match: segmentation datasets provide precise masks but little language supervision, whereas medical vision-language data rarely pair language with dense spatial annotations. To ad- dress this gap, we present MedPixel, a unified medical pixel- language model built around a shared languageāmask inter- face. To provide scalable supervision, we introduce MedPLG- 440K, comprising approximately 440K pixel-language task samples constructed through a clinically motivated synthe- sis process without external LLM annotation. MedPixel is trained with joint multi-task supervised fine-tuning followed by Pixel-Level Preference Optimization, which uses ground- truth masks as offline verifiers to derive response preferences from mask quality. MedPixel supports a broad spectrum of tasks spanning explicit grounding, implicit reasoning, spa- tial interaction, grounded explanation, and medical VQA. Across this task spectrum, MedPixel achieves strong per- formance in both pixel-level prediction and response gen- eration, together with effective zero-shot transfer to exter- nal grounding benchmarks and robustness to imperfect spa- tial prompts. Code and model checkpoints will be released athttps://github.com/yhy-whu/Medpixel. 1 Introduction Medical image analysis is evolving from isolated recognition and segmentation tasks toward general systems that can sup- port broader clinical decision making. Clinicians synthesize imaging findings with anatomical knowledge, clinical con- text, and diagnostic intent to identify relevant abnormalities, interpret their significance, and determine where they oc- cur. This evolution expands the role of medical models from processing fixed image inputs to understanding images, lan- guage, and spatial prompts, and from producing fixed outputs to supporting reasoning, interaction, localization, and expla- nation. We summarize these practical requirements into five representative medical task formats: explicit grounding, im- plicit reasoning, spatial interaction, grounded explanation, and medical visual question answering. Together, these in- teractions reflect a broader trend toward medical systems that integrate clinical understanding with spatially grounded visual analysis. Current medical models emphasize different aspects of this functionality. Mainstream medical vision-language mod- els focus primarily on image-level understanding and text generation, including medical question answering, report generation, and clinical reasoning (Li et al. 2023; Sellergren et al. 2025; Bannur et al. 2024). Medical segmentation mod- els provide accurate pixel-level predictions across diverse imaging modalities, but usually rely on predefined target cat- egories or explicit spatial prompts (Kirillov et al. 2023; Ravi et al. 2025; Ma et al. 2024, 2025; Cheng et al. 2023; Zhao et al. 2024). Recent pixel-language models, including LISA, Pix- elLM, SAM4MLLM, and UniPixel, connect multimodal lan- guage understanding with dense prediction through shared languageāmask representations, enabling natural-language grounding, reasoning segmentation, and visual-prompt in- teraction (Lai et al. 2024; Ren et al. 2024; Chen et al. 2024c; Liu et al. 2026). Related medical models extend pixel-level grounding to biomedical images and increasingly support complex or implicit clinical queries that require target in- ference before localization (Huang et al. 2025a; Wu et al. 2025; Huang et al. 2025b; Yan et al. 2026). Despite this progress, unified support for diverse medical pixel-language interactions remains limited. As the capability space broadens, supervision becomes a new bottleneck. Different forms of languageāpixel interac- tion often require different types of supervision. This chal- lenge is particularly pronounced in medicine, where exist- ing data are highly asymmetric. Segmentation datasets pro- vide abundant pixel-accurate masks but little language su- pervision, whereas medical vision-language datasets contain rich questions and answers but rarely pair them with dense spatial annotations. Although recent efforts have expanded biomedical datasets with spatial grounding and reasoning supervision (Wu et al. 2025; Deng et al. 2025; Huang et al. 2025b; Yan et al. 2026), constructing dedicated supervision for each interaction form remains costly. The central chal- lenge is therefore not simply to add more capabilities, but to obtain diverse medical pixel-language supervision in a scalable manner. This motivates us to reconsider the role of existing segmen- tation masks. A mask is conventionally treated as the target arXiv:2608.09818v1 [cs.CV] 10 Aug 2026 4 Explanatory Segmentation (T4) A small, oval tumor is present in the central region, displaying well-circumscribed, smooth margins, hypoechoic relative to surrounding tissue, with mildly heterogeneous texture. Explanation + <SEG> 5 Medical VQA (T5) Coronal Plane What is the scanning plane of this image? What organ is the gray part on the left of the image? Liver 1 Referring Segmentation (T1) <SEG> Please segment right kidney in this abdominal CT. 2 Reasoning Segmentation (T2) Reasoning + <SEG> Segment the region associated with hypoxemia and bilateral infiltrates. 3 Interactive Segmentation (T3) Click (point) Box <REF> + <SEG> Segment the marked region. Characterize the tumor in this ultrasound and provide a segmentation mask. Figure 1: Representative task interfaces supported by MedPixel. T1āT4 produce pixel-grounded outputs through the <SEG> interface, with T3 additionally incorporating point or box guidance through <REF>; T5 produces text-only answers. MedPixel unifies referring, reasoning, interactive, and explanatory segmentation with medical VQA in a single framework. of a segmentation objective, yet the corresponding annotated region also provides a spatial anchor for connecting image content with language. Together with image, category, and modality information, it can support descriptions of where a finding appears, how it is visually characterized, and what target is being referred to. Inspired by clinical image anal- ysis, these cues can be organized from visual observation and characterization toward target interpretation and spatial grounding. Existing medical masks therefore constitute an underused source of structured pixel-language supervision. Based on this insight, we construct MedPLG-440K (Medical Pixel-Language Grounding 440K), comprising approximately 440K pixel-language task samples across four grounded interaction formats. These samples are synthesized from existing medical segmentation annotations through a clinically motivated process without external LLM annota- tion. We separately incorporate medical VQA data to pre- serve general image-level understanding. Figure 1 illustrates the resulting task spectrum. Built on this supervision, we introduce MedPixel, a uni- fied medical pixel-language model based on Qwen2.5-VL and SAM2 (Bai et al. 2025; Ravi et al. 2025). A shared languageāmask interface connects language generation with dense mask decoding through a special <SEG> token, en- abling diverse interaction forms to share a common backbone and segmentation pathway. The shared languageāmask interface also creates an align- ment problem. The hidden representation of each generated <SEG> token directly conditions mask decoding, yet stan- dard supervised fine-tuning optimizes reference responses and target masks without comparing the spatial consequences of alternative generations. Responses that are similarly plau- sible in language may therefore produce different <SEG> representations and masks of substantially different quality, creating a mismatch between response likelihood and pixel- level correctness. We introduce Pixel-Level Preference Op- timization (PLPO) to address this mismatch. Ground-truth masks act as task-native offline verifiers that rank candi- date responses by the quality of their induced masks. These rankings are converted into response preferences, aligning language generation with pixel-level outcomes without re- quiring an external reward model. Another practical consideration is the quality of user- provided spatial prompts. Promptable segmentation methods are typically trained and evaluated with precise point or box prompts, whereas real users may provide only approximate spatial guidance. As prompt quality decreases, segmentation performance can degrade substantially (Kirillov et al. 2023; Ravi et al. 2025; Ma et al. 2024, 2025; Huang et al. 2024). By combining semantic descriptions with spatial cues, Med- Pixel can use language to clarify the intended target when the spatial prompt is incomplete or inaccurate. Our contributions are summarized as follows: ⢠We introduce MedPLG-440K, comprising approx- imately 440K pixel-language samples across four grounded interaction formats, synthesized without exter- nal LLM annotation. ⢠We present MedPixel, a unified model for four pixel-level interactions and medical VQA, together with PLPO for aligning language generation with mask quality. ⢠MedPixel achieves leading localization and response- generation performance, with effective zero-shot transfer and robustness to imperfect box prompts. 2 Related Work 2.1 Medical Vision-Language and Segmentation Models Medical vision-language models have advanced medical im- age understanding through multimodal pretraining and in- struction tuning. Representative models such as LLaVA- Med, MedGemma, and MAIRA-2 support medical ques- tion answering, report generation, and clinical reasoning (Li et al. 2023; Sellergren et al. 2025; Bannur et al. 2024). In parallel, foundation segmentation models such as SAM and SAM2 have inspired medical adaptations including MedSAM, MedSAM2, and SAM-Med2D, while Biomed- Parse extends category-driven segmentation across diverse biomedical modalities (Kirillov et al. 2023; Ravi et al. 2025; Ma et al. 2024, 2025; Cheng et al. 2023; Zhao et al. 2024). These two directions provide complementary strengths: vision-language models offer flexible semantic in- teraction, whereas segmentation models provide precise spa- tial outputs. This complementary development has motivated models that connect language understanding with pixel-level grounding. 2.2 Pixel-Level Grounding and Medical Reasoning Pixel-level vision-language models connect language under- standing and dense prediction. LISA introduces a special seg- mentation token that maps language-model representations to masks, enabling reasoning segmentation from natural- language instructions (Lai et al. 2024). PixelLM extends this paradigm to multi-object grounding, SAM4MLLM incorpo- rates visual prompts for richer multimodal interaction, and UniPixel unifies referring, mask generation, visual prompt- ing, and object-centric reasoning (Ren et al. 2024; Chen et al. 2024c; Liu et al. 2026). Together, these methods make pixel- level prediction an integral part of multimodal interaction and reasoning rather than merely a final output. This direction has also been extended to medical imaging. MedPLIB and UniBiomed combine medical language un- derstanding with pixel-level prediction across diverse tasks and imaging settings (Huang et al. 2025a; Wu et al. 2025). MedSeg-R reasons over complex clinical instructions beyond explicit target descriptions, while MedReasoner further ad- dresses implicit queries that require target inference before localization (Huang et al. 2025b; Yan et al. 2026). Build- ing on this progression, MedPixel unifies multiple grounded medical interaction formats, while MedPLG-440K system- atically derives their supervision from existing segmentation annotations rather than constructing separate supervision for each format. 3 Method Figure 2 summarizes the overall design of MedPixel. The framework consists of three parts: (a) MedPLG-440K con- struction, (b) unified MedPixel architecture, (c) two-stage training strategy. We first build MedPLG-440K from exist- ing medical segmentation annotations, then use it to support a shared languageāmask interface for unified text generation and dense prediction, and finally optimize the model with joint multi-task supervised fine-tuning followed by PLPO. 3.1 Task Interfaces and Architecture Task Formulation. Given a medical image I, a task instruc- tion q, and, for interactive segmentation, an optional spatial reference r, MedPixel generates a textual response y and, when required, a segmentation mask Ė M. As summarized in Figure 1, the first four tasks produce mask-grounded re- sponses, whereas medical VQA produces text-only answers. LanguageāMask Interface. MedPixel couples Qwen2.5- VL (Bai et al. 2025) with a SAM2 (Ravi et al. 2025) mask decoding branch. Qwen2.5-VL performs multimodal under- standing and language generation, while the mask branch produces dense segmentation outputs. All interaction for- mats are processed through the same multimodal backbone. Segmentation-oriented responses contain a special <SEG> token, while interactive inputs additionally contain a spatial reference token <REF>. For segmentation-oriented tasks, MedPixel generates a special <SEG> token at the position where mask predic- tion is required. Let h <SEG> denote the hidden state of this token. A learnable projection Φ seg maps it into the SAM2 prompt embedding space: z seg = Φ seg (h <SEG> ).(1) Given the SAM2 image embedding F I , the mask decoder predicts Ė M =D SAM2 (F I ,z seg ),(2) where D SAM2 denotes the mask decoding pathway. This shared languageāmask interface allows different query and response formats to use a common dense prediction mecha- nism. Spatial Reference Injection. Interactive segmentation in- corporates point or box guidance through a special <REF> token. Given a spatial referencer, a trainable prompt encoder converts it into a sparse spatial representation, which is then projected to the language-model hidden dimension: z ref = Φ ref (E ref (r)),(3) where E ref denotes the spatial prompt encoder and Φ ref the projection into the Qwen2.5-VL embedding space. Before the sequence is processed by the language model, z ref replaces the original token embedding at the <REF> position. Spa- tial guidance therefore enters the same multimodal sequence as image and text inputs, allowing the subsequent <SEG> representation to integrate semantic and spatial information before mask decoding. 3.2 MedPLG-440K Construction As illustrated in Figure 2(a), MedPLG-440K is constructed from existing medical segmentation annotations. Each source sample provides a medical image I, a ground-truth mask M, a target category c, and metadata m. Based on these annota- tions, we first perform visual attribute extraction to obtain a visual descriptor d, and then synthesize four segmentation- oriented interaction formats: (I,M,c,m) A āā d T āā(x t ,y t ,M ) 4 t=1 ,(4) Figure 2: Overview of MedPixel. (a) Construction of MedPLG-440K. (b) MedPixel architecture for unified language generation and mask prediction. (c) Two-stage training with multi-task SFT and PLPO. where A denotes visual attribute extraction and T denotes task-specific synthesis. Visual Attribute Extraction. For each annotated region, we derive a structured visual descriptor from mask geometry and image statistics. The descriptor captures location, size, shape, contrast, component structure, boundary, and uniformity. Lo- cation and size are obtained from the mask centroid and rel- ative area; shape and component structure are characterized by region geometry and connected components; boundary regularity is estimated from contour measurements. Contrast and uniformity are computed from differences between the foreground and background and from variation within the re- gion. Appearance attributes are expressed using terminology appropriate to the imaging modality. For example, appear- ance characteristics may be described in terms of density for CT, signal intensity for MRI, echogenicity for ultrasound, or opacity for X-ray. This process yields a compact visual descriptor aligned with the annotated region. Task-Specific Synthesis. The source annotations and vi- sual descriptor are combined according to the target inter- action format. For T1 referring segmentation, the target cat- egory and metadata are used to construct explicit referring prompts. For T2 reasoning segmentation, category informa- tion is paired with curated templates to form implicit queries that require target inference before localization. For T3 inter- active segmentation, points or bounding boxes are sampled from the ground-truth mask, while the visual descriptor is converted into a concise region description. For T4 explana- tory segmentation, the visual descriptor is combined with concise clinical context to construct an explanatory response grounded in the target region. Each synthesized sample is paired with the original ground-truth mask to form a pixel- language training pair. Through this pipeline, we construct MedPLG-440K, comprising approximately 440K pixel-language task sam- ples. During Stage 1, MedPLG-440K is further combined with medical VQA and auxiliary clinical reasoning data to support joint training across five tasks. Dataset sources and construction details are provided in Appendices A and B. 3.3 Two-Stage Training Figure 2(c) summarizes the two-stage optimization proce- dure of MedPixel. Stage 1 learns the shared languageāmask interface through joint multi-task supervised fine-tuning. Stage 2 further aligns response generation with mask quality through PLPO. Stage 1: Joint Multi-Task SFT. Stage 1 jointly trains Med- Pixel on a unified mixture of all tasks. The objective com- bines autoregressive language modeling with mask supervi- sion: L SFT =L ce + Ī» seg L seg ,(5) whereL ce denotes the language modeling loss andL seg de- notes the pixel-level segmentation loss. For samples with segmentation supervision, the mask objective is L seg = Ī» focal L focal + Ī» dice L dice + Ī» iou L iou + Ī» obj L obj . (6) For samples without mask supervision, the mask term is omitted. This joint objective allows the five task formats to share the same languageāmask interface while learning both language generation and pixel-level prediction. Stage 2: Pixel-Level Preference Optimization. Building on the Stage 1 checkpoint, we construct response preference pairs from reasoning segmentation samples ac- cording to the quality of the masks induced by alternative generations. For each input x i , we sample N candidate re- sponses from Ļ SFT and decode the mask associated with each generated <SEG> representation. The quality of the n- th candidate is measured against the corresponding ground- truth mask: s (n) i = Dice Ė M (n) i ,M gt i ,(7) where Ė M (n) i denotes the mask induced by the n-th candidate response. Ground-truth masks are used only for offline scor- ing and are never exposed during candidate generation. This process converts pixel-level outcomes into response pref- erence supervision without requiring an additional reward model or online rollouts. We discard empty responses and candidates that do not produce a valid <SEG> output from which a mask can be de- coded. Among the remaining candidates, the highest-scoring response is selected as the chosen responsey + i , while a lower- scoring valid response is selected as the rejected response y ā i . To avoid weak or ambiguous preference supervision, we retain a pair only when s + i ā„ Ļ min , s + i ā s ā i ā„ Ļ gap ,(8) where Ļ min ensures sufficient quality of the chosen response and Ļ gap enforces a meaningful quality difference between the chosen and rejected responses. Inputs that do not satisfy these criteria are discarded. The resulting preference dataset is P = (x i ,y + i ,y ā i ) |P| i=1 .(9) Given P, we optimize MedPixel using Direct Preference Optimization (Rafailov et al. 2023). Let Ļ Īø denote the train- able policy and Ļ ref = Ļ SFT the frozen reference policy. We define the relative preference log-ratio as ā Īø = log Ļ Īø (y + | x) Ļ ref (y + | x) ā log Ļ Īø (y ā | x) Ļ ref (y ā | x) .(10) The preference objective is L PLPO =āE P [logĻ (βā Īø )] + Ī» nll L nll y + | x , (11) where β controls the preference strength and the NLL term anchors the model to the chosen response. During Stage 2, the segmentation projector Φ seg and the SAM2 mask decoder remain frozen. Preference optimization therefore reshapes the response distribution and the resulting <SEG> representations while preserving the dense decoding pathway learned in Stage 1. In this way, MedPixel converts differences in pixel-level mask quality into response-level preferences, encouraging generations whose <SEG> repre- sentations induce more accurate segmentation outcomes. 4 Experiments 4.1 Experimental Setup Training data. Stage 1 trains MedPixel on a 1.84M-sample mixture of medical VQA (64%), segmentation (32%), and clinical reasoning (4%) data. MedPLG-440K provides the four segmentation-oriented tasks (T1āT4), which are incor- porated through task-specific sampling and replication. The VQA component is aggregated from public medical QA datasets (Chen et al. 2024b; Rückert et al. 2024; Zhang et al. 2023; Liu et al. 2021; Jin et al. 2019; Pal, Umapathi, and Sankarasubbu 2022; Jin et al. 2021; Chen et al. 2025), while the reasoning component combines HuatuoGPT-o1, Medical-R1-Distill, Citrus-S3 (Chen et al. 2024a; Freedom- Intelligence 2025; Wang et al. 2025a), and image-grounded reasoning synthesized from PubMedVision (Chen et al. 2024b). The resulting checkpoint is used to mine offline preference pairs for Stage 2. Full data statistics and train- ing settings are provided in Appendix C. Evaluation Sets. T1āT4 are derived from the held-out offi- cial BiomedParse test split, which is excluded from training. T1 evaluates explicit referring segmentation on 24,391 repre- sentative slices selected to reduce redundancy in volumetric studies. T2 and T4 contain 2,500 samples each for implicit reasoning and grounded explanation, respectively. T3 con- tains 2,000 interactive samples, with point and box prompts derived from ground-truth masks. T5 contains 10,267 image- based and text-based multiple-choice questions from public medical QA benchmarks. We further evaluate external trans- fer on the test sets of MeCoVQA-G+ and U-MRG-14K with- out benchmark-specific training. Metrics. For T1āT4, we report Dice and normalized surface Dice (NSD) with a 5-pixel tolerance; both are expressed as percentages, with the ā%ā symbol omitted. For T2 and T4, we additionally report METEOR (Banerjee and Lavie 2005) for response similarity. For T2, we also report target ground- ing accuracy (TGA), which measures whether the inferred target concept is fully recovered. Empty or invalid responses receive zero scores. For T5, we report multiple-choice ac- curacy. MeCoVQA-G+ is evaluated using slice-level micro and modality-level macro Dice, NSD, and HD95, while U- MRG-14K is evaluated using Dice. Full evaluation protocols are provided in Appendix D. Baselines. We compare MedPixel with pixel-language mod- els, segmentation specialists, and medical VQA models. Pixel-language baselines include LISA (Lai et al. 2024) and LISA++ (Yang et al. 2023), PixelLM (Ren et al. 2024), SAM4MLLM (Chen et al. 2024c), VisionReasoner (Liu et al. 2025), UniBiomed (Wu et al. 2025), Citrus-V (Wang et al. 2025b), MMedAgent (Li et al. 2024), MedPLIB (Huang et al. 2025a), and UniPixel (Liu et al. 2026). Segmentation special- ists include BiomedParse (Zhao et al. 2024), MedSAM (Ma et al. 2024), MedSAM2 (Ma et al. 2025), SAM2 (Ravi et al. 2025), and SAM-Med2D (Cheng et al. 2023). For T5, we additionally compare with LLaVA-Med (Li et al. 2023), Qwen2.5-VL (Bai et al. 2025) and HuatuoGPT-Vision (Chen et al. 2024b). Implementation details. We train MedPixel at 3B and 7B scales using Qwen2.5-VL as the multimodal backbone. LoRA (Hu et al. 2022) is applied to the q/k/v/o attention projections of both the language model and Qwen vision tower, using r=128 and α=256, while their base weights remain frozen. Stage 1 optimizes the language adapters, multimodal projector, special token embeddings, segmenta- tion projector, spatial reference modules, and SAM2 branch. Stage 2 updates the response-generation modules while freezing the segmentation branch. 4.2 Main Results Table 1 compares MedPixel with segmentation specialists, pixel-language models, and medical VQA baselines. Med- Pixel achieves strong performance throughout the evalu- ated interfaces. On T1 referring segmentation, MedPixel-7B reaches 85.0 Dice and 61.7 NSD, exceeding BiomedParse by 5.0 and 6.7 points, respectively, showing that the unified framework retains strong explicit grounding performance. The advantage becomes substantially larger when localiza- tion requires semantic target inference, with improvements of 29.2 Dice on T2 reasoning segmentation and 40.7 Dice on T4 explanatory segmentation over the strongest baselines. MedPixel also achieves the highest METEOR on both tasks and the strongest TGA on T2, showing that the localiza- MethodSize T1 Refer.T2 Reason.T3 Interact.T4 Explan.T5 VQA Dice NSD Dice NSD MET. TGA Dice NSD Dice NSD MET. IMCQ TMCQ Segmentation specialists MedSAM93Mā 43.6 32.9ā MedSAM238Mā 75.7 52.4ā SAM20.2Bā 61.7 31.9ā SAM-Med2D0.3Bā 58.6 30.2ā BiomedParse0.3B 80.0 55.0ā Pixel-language and VQA models UniBiomed1B 65.0 27.7 28.3 14.44.9 27.3ā 35.8 19.17.37.06.6 Citrus-V8B 45.7 27.9 37.5 25.9ā 35.1 23.0 10.241.151.1 VisionReasoner7B 42.4 14.6 33.4 14.5 29.7 39.8ā 31.1 13.0 17.241.647.0 LISA++7B 34.77.8 22.88.97.90.1ā 12.15.3 12.0ā SAM4MLLM8B 27.13.5 20.83.6ā 21.44.2ā LISA7B 26.97.7 26.3 13.2ā 23.09.0ā MMedAgent7B 27.87.9 25.6 12.8ā 25.4 12.5ā6.78.8 MedPLIB7B 17.14.4 8.33.1ā 11.13.8ā36.431.0 PixelLM7B 30.63.3 18.23.08.14.9ā 10.01.5 11.6ā UniPixel7B 39.09.6 27.97.53.00.0 26.67.2 30.29.53.2ā LLaVA-Med7Bā28.537.1 Qwen2.5-VL3Bā38.143.4 HuatuoGPT-Vision 7Bā42.046.7 MedPixel3B84.360.462.749.550.264.176.052.173.952.240.442.952.5 MedPixel7B85.061.766.753.451.370.875.953.176.555.242.347.558.1 Table 1: Comparison with representative methods across five tasks. MET. denotes METEOR, and TGA denotes target grounding accuracy. IMCQ and TMCQ denote image- and text-based multiple-choice accuracy, respectively. āāā denotes unsupported native interfaces. For T3, results are averaged over point and box protocols. tion gains are achieved while preserving response similar- ity and target identification. On T3, MedPixel reaches 76.0 Dice under its native interface combining semantic and spa- tial cues, remaining competitive with specialized promptable segmenters while supporting a broader interaction format. On T5, MedPixel-7B surpasses the strongest baselines by 5.5 and 7.0 points on image- and text-based MCQs, respec- tively. Scaling from 3B to 7B further improves MedPixelās overall capability, with gains across most tasks and particularly clear improvements on T2, T4, and T5. T1 improves modestly, while T3 remains essentially unchanged. This pattern sug- gests that increased model capacity strengthens semantic in- terpretation, target inference, and response generation, while the spatially guided interactive pathway is already strong at the 3B scale. Scaling enhances higher-level medical un- derstanding without compromising dense grounding ability. Representative examples are shown in Figure 1. 4.3 External Generalization MeCoVQA-G+. We evaluate zero-shot transfer on MeCoVQA-G+, which contains 2,719 grounding samples across eight medical modalities. The benchmark is not used during training, and all results in Table 2 are reproduced un- der the same evaluation protocol. Since MedPLIB is trained on MeCoVQA-G+, we report it only as a benchmark-trained reference rather than a zero-shot baseline. MedPixel-7B achieves the strongest overall performance among zero-shot text-driven models, improving over BiomedParse by +5.3 Method DiceāNSDāHD95ā SMSMSM MedPLIB-7B ā 47.236.037.127.3220.7378.2 MedPixel-7B41.1 47.4 26.8 33.5 152.3 123.0 MedPixel-3B40.5 47.3 26.2 33.2 163.5 132.5 BiomedParse35.8 44.0 25.6 32.4 224.3 177.1 UniBiomed-1B31.8 36.9 18.6 22.8 230.6 229.2 VisionReasoner-7B 26.5 33.3 12.0 18.0 291.7 243.6 LISA-7B19.7 20.1 7.3 8.9 404.1 432.4 LISA++-7B17.8 16.6 4.5 4.7 433.2 490.7 MMedAgent-7B13.7 12.2 5.1 5.5 419.2 449.3 SAM4MLLM-8B 11.9 12.9 2.5 4.2 559.1 580.0 PixelLM-7B11.1 10.4 1.9 1.9 539.7 567.4 Table 2: Zero-shot transfer on MeCoVQA-G+. S/M denote slice-level micro and modality-level macro averages. Bold denotes the best zero-shot result. ā marks a benchmark- trained reference. Dice at the slice level and +3.4 Dice at the modality level. It also reduces HD95 from 224.3/177.1 to 152.3/123.0, indi- cating more stable boundary localization across modalities. U-MRG-14K. U-MRG-14K is a medical reasoning ground- ing benchmark introduced by MedReasoner (Yan et al. 2026), containing 2,480 test samples across ten modalities. Each sample pairs an implicit clinical query with a target mask. MedPixel is evaluated directly on the test set with- out benchmark-specific training. Results for the remaining General MLLMsMedical MLLMsGrounding MLLMs MethodDice MethodDice MethodDice GPT-4o4.72 MedR1-2B14.73 VLMR1-REC-3B 22.19 Gemini-2.5-flash 14.29 MiniInternVL-4B 4.76 SegZero-7B26.05 Qwen2.5-VL-7B 22.73 MedGemma-4B 8.90 SAM4MLLM-8B 16.49 InternVL3-8B9.23 HuatuoGPT-7B 19.76 MedReasoner-7B 37.78 Qwen2.5-VL-72B 29.71 Lingshu-7B16.48MedPixel-7B37.91 InternVL3-78B 7.23 Chiron-o1-8B 10.05 Table 3: Zero-shot transfer on U-MRG-14K. Scale SFT PLPO T2 ReasoningT4 Explanatory Diceā NSDā MET.ā Diceā NSDā MET.ā ā58.2 46.5 50.5 72.1 51.2 39.7 3B ā62.749.550.273.952.240.4 ā62.9 49.8 51.0 75.6 54.5 41.5 7B ā66.753.451.376.555.242.3 Table 4: Effect of Pixel-Level Preference Optimization (PLPO) on T2 and T4. MET. denotes METEOR. methods in Table 3 are taken from the published MedRea- soner evaluation, where MLLMs generate spatial prompts for a fixed MedSAM2 segmenter. MedPixel-7B achieves comparable performance to MedReasoner-7B (37.91 vs. 37.78 Dice), while producing masks within a single unified model. This result further demonstrates that the resulting unified pixel-language model transfers effectively to unseen reasoning-grounding benchmarks. 4.4 Ablation Study We present the main findings here and defer further analyses to Appendix E. Effect of PLPO. Table 4 shows that PLPO consistently im- proves Dice and NSD on T2 and T4 at both model scales, with larger gains on reasoning segmentation, while METEOR re- mains broadly stable. Since the segmentation projector and mask decoder are frozen during Stage 2, these improvements indicate better alignment between generated <SEG> repre- sentations and pixel-level outcomes. DiceāReasoning Alignment. We use gpt-5.6-sol to deter- mine whether each reasoning trace identifies the ground-truth target and compare these labels with Dice-based preferences. Reasoning-correct responses achieve much higher mean Dice than incorrect ones, both before PLPO (84 vs. 34) and af- ter PLPO (87 vs. 42). Among preference pairs, 83.6% favor a reasoning-correct response over an incorrect one, while only 0.4% show the reverse, demonstrating strong alignment between Dice-based preferences and target-level reasoning. Robustness to Box Perturbations. To evaluate robustness to imperfect box prompts, we scale the width and height of each GT-tight box by a factor s while keeping its center fixed and clipping the resulting box to the image boundaries. Here, s = 1 denotes the exact box, whereas s < 1 and s > 1 produce tighter and looser prompts, respectively. Fig- ure 3 shows that SAM specialists perform strongly with exact boxes but degrade markedly as the box scale deviates from 0.25 0.51.01.52.0 Relative Box Scale s 0 30 60 90 Dice Exact box MedPixel 7BMedPixel 3BSAM family range Figure 3: Robustness to box scaling on T3. Box width and height are scaled by s with the center fixed; s = 1 denotes the GT-tight box. The shaded region denotes the performance range of SAM-family baselines. 1. In contrast, MedPixel remains stable over a broad range of scales, demonstrating greater robustness to approximate spatial guidance. 5 Limitations MedPixel has several limitations. First, because MedPLG- 440K is constructed by repurposing existing segmentation annotations, its coverage is limited to the anatomical struc- tures and imaging modalities represented in the source datasets. Although the synthesis process requires neither additional annotation for individual samples nor external LLM annotation, language generated from rules and tem- plates is less diverse than natural clinical interactions. Sec- ond, PLPO requires ground-truth masks for offline preference mining, limiting its applicability when pixel-level supervi- sion is unavailable. Third, our evaluation mainly covers 2D or slice-based images and single-turn interactions, leaving vol- umetric, longitudinal, and multi-turn pixelālanguage reason- ing underexplored. Finally, reference-based language metrics cannot fully assess the clinical correctness and completeness of generated explanations, calling for further evaluation by clinical experts. 6 Conclusion This work presents MedPixel, a unified model for medical language understanding, reasoning, interaction, and pixel- level localization. MedPLG-440K converts existing seg- mentation annotations into diverse pixelālanguage supervi- sion, while PLPO uses mask quality to improve the align- ment between generated responses and segmentation out- comes. Across five tasks, MedPixel achieves strong perfor- mance, with particularly clear gains on reasoning and ex- planatory segmentation. It also generalizes well to external benchmarks and remains robust to imperfect spatial prompts. Taken together, these results demonstrate the feasibility of unifying medical language reasoning, interaction, and pixel- level localization within a single framework, with model con- clusions grounded in precise visual evidence. References Bai, S.; Chen, K.; Liu, X.; Wang, J.; Ge, W.; Song, S.; Dang, K.; Wang, P.; Wang, S.; Tang, J.; Zhong, H.; Zhu, Y.; Yang, M.; Li, Z.; Wan, J.; Wang, P.; Ding, W.; Fu, Z.; Xu, Y.; Ye, J.; Zhang, X.; Xie, T.; Cheng, Z.; Zhang, H.; Yang, Z.; Xu, H.; and Lin, J. 2025. Qwen2.5-VL Technical Report. arXiv preprint arXiv:2502.13923. Banerjee, S.; and Lavie, A. 2005. METEOR: An auto- matic metric for MT evaluation with improved correlation with human judgments. In Proceedings of the acl workshop on intrinsic and extrinsic evaluation measures for machine translation and/or summarization, 65ā72. Bannur, S.; Bouzid, K.; Castro, D. C.; Schwaighofer, A.; Thieme, A.; Bond-Taylor, S.; Ilse, M.; PĆ©rez-GarcĆa, F.; Sal- vatelli, V.; Sharma, H.; et al. 2024. Maira-2: Grounded radi- ology report generation. arXiv preprint arXiv:2406.04449. Chen, H.; Fang, Z.; Singla, Y.; and Dredze, M. 2025. Bench- marking large language models on answering and explaining challenging medical questions. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the As- sociation for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), 3563ā3599. Chen, J.; Cai, Z.; Ji, K.; Wang, X.; Liu, W.; Wang, R.; Hou, J.; and Wang, B. 2024a. Huatuogpt-o1, towards medical com- plex reasoning with llms. arXiv preprint arXiv:2412.18925. Chen, J.; Gui, C.; Ouyang, R.; Gao, A.; Chen, S.; Chen, G. H.; Wang, X.; Cai, Z.; Ji, K.; Wan, X.; et al. 2024b. Towards injecting medical visual knowledge into multimodal llms at scale. In Proceedings of the 2024 conference on empirical methods in natural language processing, 7346ā7370. Chen, Y.-C.; Li, W.-H.; Sun, C.; Wang, Y.-C. F.; and Chen, C.-S. 2024c. Sam4mllm: Enhance multi-modal large lan- guage model for referring expression segmentation. In Eu- ropean Conference on Computer Vision, 323ā340. Springer. Cheng, J.; Ye, J.; Deng, Z.; Chen, J.; Li, T.; Wang, H.; Su, Y.; Huang, Z.; Chen, J.; Jiang, L.; et al. 2023. Sam-med2d. arXiv preprint arXiv:2308.16184. Deng, Z.; He, R.; Liu, J.; Wang, Y.; Meng, Z.; Jiang, S.; Xie, Y.; and Liu, Z. 2025. Med-GLIP: Advancing medi- cal language-image pre-training with large-scale grounded dataset. arXiv preprint arXiv:2508.10528. FreedomIntelligence. 2025. Medical-R1-Distill-Data. https: //huggingface.co/datasets/FreedomIntelligence/Medical- R1-Distill-Data. SFT data distilled from DeepSeek-R1 on HuatuoGPT-o1 verifiable medical problems. Hu, E. J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; Chen, W.; et al. 2022. Lora: Low-rank adaptation of large language models. Iclr, 1(2): 3. Huang, X.; Shen, L.; Liu, J.; Shang, F.; Li, H.; Huang, H.; and Yang, Y. 2025a. Towards a multimodal large language model with pixel-level insight for biomedicine. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, 3779ā3787. Huang, Y.; Peng, Z.; Zhao, Y.; Yang, P.; Yang, X.; and Shen, W. 2025b. Medseg-r: Reasoning segmentation in medical im- ages with multimodal large language models. arXiv preprint arXiv:2506.10465. Huang, Y.; Yang, X.; Zhou, H.; Cao, Y.; Dou, H.; Dong, F.; and Ni, D. 2024. Robust box prompt based sam for medical image segmentation. In International Workshop on Machine Learning in Medical Imaging, 1ā11. Springer. Jin, D.; Pan, E.; Oufattole, N.; Weng, W.-H.; Fang, H.; and Szolovits, P. 2021. What disease does this patient have? a large-scale open domain question answering dataset from medical exams. Applied Sciences, 11(14): 6421. Jin, Q.; Dhingra, B.; Liu, Z.; Cohen, W.; and Lu, X. 2019. Pubmedqa: A dataset for biomedical research question an- swering. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th inter- national joint conference on natural language processing (EMNLP-IJCNLP), 2567ā2577. Kirillov, A.; Mintun, E.; Ravi, N.; Mao, H.; Rolland, C.; Gustafson, L.; Xiao, T.; Whitehead, S.; Berg, A. C.; Lo, W.-Y.; et al. 2023. Segment anything. In Proceedings of the IEEE/CVF international conference on computer vision, 4015ā4026. Lai, X.; Tian, Z.; Chen, Y.; Li, Y.; Yuan, Y.; Liu, S.; and Jia, J. 2024. Lisa: Reasoning segmentation via large lan- guage model. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 9579ā9589. Li, B.; Yan, T.; Pan, Y.; Luo, J.; Ji, R.; Ding, J.; Xu, Z.; Liu, S.; Dong, H.; Lin, Z.; et al. 2024. Mmedagent: Learning to use medical tools with multi-modal agent. In Findings of the Association for Computational Linguistics: EMNLP 2024, 8745ā8760. Li, C.; Wong, C.; Zhang, S.; Usuyama, N.; Liu, H.; Yang, J.; Naumann, T.; Poon, H.; and Gao, J. 2023. Llava-med: Train- ing a large language-and-vision assistant for biomedicine in one day. Advances in Neural Information Processing Sys- tems, 36: 28541ā28564. Liu, B.; Zhan, L.-M.; Xu, L.; Ma, L.; Yang, Y.; and Wu, X.-M. 2021. Slake: A semantically-labeled knowledge-enhanced dataset for medical visual question answering. In 2021 IEEE 18th international symposium on biomedical imaging (ISBI), 1650ā1654. IEEE. Liu, Y.; Ma, Z.; Pu, J.; Qi, Z.; Wu, Y.; Shan, Y.; and Chen, C. 2026. Unipixel: Unified object referring and segmentation for pixel-level visual reasoning. Advances in Neural Information Processing Systems, 38: 126078ā126108. Liu, Y.; Qu, T.; Zhong, Z.; Peng, B.; Liu, S.; Yu, B.; and Jia, J. 2025. Visionreasoner: Unified visual perception and reasoning via reinforcement learning. arXiv e-prints, arXivā 2505. Ma, J.; He, Y.; Li, F.; Han, L.; You, C.; and Wang, B. 2024. Segment anything in medical images. Nature communica- tions, 15(1): 654. Ma, J.; Yang, Z.; Kim, S.; Chen, B.; Baharoon, M.; Fallah- pour, A.; Asakereh, R.; Lyu, H.; and Wang, B. 2025. Med- sam2: Segment anything in 3d medical images and videos. arXiv preprint arXiv:2504.03600. Pal, A.; Umapathi, L. K.; and Sankarasubbu, M. 2022. Medmcqa: A large-scale multi-subject multi-choice dataset for medical domain question answering. In Conference on health, inference, and learning, 248ā260. PMLR. Rafailov, R.; Sharma, A.; Mitchell, E.; Manning, C. D.; Er- mon, S.; and Finn, C. 2023. Direct preference optimization: Your language model is secretly a reward model. Advances in neural information processing systems, 36: 53728ā53741. Ravi, N.; Gabeur, V.; Hu, Y.-T.; Hu, R.; Ryali, C.; Ma, T.; Khedr, H.; RƤdle, R.; Rolland, C.; Gustafson, L.; et al. 2025. Sam 2: Segment anything in images and videos. In Inter- national Conference on Learning Representations, volume 2025, 28085ā28128. Ren, Z.; Huang, Z.; Wei, Y.; Zhao, Y.; Fu, D.; Feng, J.; and Jin, X. 2024. Pixellm: Pixel reasoning with large multimodal model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 26374ā26383. Rückert, J.; Bloch, L.; Brüngel, R.; Idrissi-Yaghir, A.; SchƤfer, H.; Schmidt, C. S.; Koitka, S.; Pelka, O.; Abacha, A. B.; G. Seco de Herrera, A.; et al. 2024. Rocov2: Radi- ology objects in context version 2, an updated multimodal image dataset. Scientific Data, 11(1): 688. Sellergren, A.; Kazemzadeh, S.; Jaroensri, T.; Kiraly, A.; Traverse, M.; Kohlberger, T.; Xu, S.; Jamil, F.; Hughes, C.; Lau, C.; et al. 2025. Medgemma technical report. arXiv preprint arXiv:2507.05201. Wang, G.; Gao, M.; Yang, S.; Zhang, Y.; He, L.; Huang, L.; Xiao, H.; Zhang, Y.; Li, W.; Chen, L.; et al. 2025a. Citrus: Leveraging expert cognitive pathways in a medical language model for advanced medical decision support. arXiv preprint arXiv:2502.18274. Wang, G.; Zhao, J.; Liu, X.; Liu, Y.; Cao, X.; Li, C.; Liu, Z.; Sun, Q.; Zhou, F.; Xing, H.; et al. 2025b. Citrus-V: Ad- vancing Medical Foundation Models with Unified Medical Image Grounding for Clinical Reasoning. arXiv preprint arXiv:2509.19090. Wu, L.; Nie, Y.; He, S.; Zhuang, J.; Luo, L.; Li, T.; Xie, Z.; Chen, D.; Zhao, Y.; Mahboobani, N.; et al. 2025. Unibiomed: A universal foundation model for grounded biomedical im- age interpretation. arXiv preprint arXiv:2504.21336. Yan, Z.; Diao, M.; Yang, Y.; Jing, R.; Xu, J.; Zhang, K.; Yang, L.; Liu, Y.; Liang, K.; and Ma, Z. 2026. Medrea- soner: Reinforcement learning drives reasoning grounding from clinical thought to pixel-level precision. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, 11577ā11585. Yang, S.; Qu, T.; Lai, X.; Tian, Z.; Peng, B.; Liu, S.; and Jia, J. 2023. Lisa++: An improved baseline for reasoning segmentation with large language model. arXiv preprint arXiv:2312.17240. Zhang, X.; Wu, C.; Zhao, Z.; Lin, W.; Zhang, Y.; Wang, Y.; and Xie, W. 2023. Pmc-vqa: Visual instruction tun- ing for medical visual question answering. arXiv preprint arXiv:2305.10415. Zhao, T.; Gu, Y.; Yang, J.; Usuyama, N.; Lee, H. H.; Nau- mann, T.; Gao, J.; Crabtree, A.; Abel, J.; Moung-Wen, C.; et al. 2024. Biomedparse: a biomedical foundation model for image parsing of everything everywhere all at once. arXiv preprint arXiv:2405.12971. Appendix Supplementary Material Overview Appendix AData Sources Appendix BMedPLG-440K Construction Appendix CTraining Data and Optimization Appendix DEvaluation Protocols Appendix EAdditional Experimental Results Appendix FQualitative Results Appendix GLicenses A Data Sources This section summarizes the data used to construct MedPLG- 440K and the auxiliary corpora used during Stage 1 training. Detailed dataset construction and training-mixture composi- tion are provided in Appendices B and C. A.1 Segmentation Data Sources MedPLG-440K is constructed from the training annotations aggregated by BiomedParse (Zhao et al. 2024). Table 5 lists the corresponding original datasets according to the subset mapping provided by BiomedParse. A.2 Medical QA and Clinical-Reasoning Sources In addition to MedPLG-440K, Stage 1 incorporates image- based medical VQA data from PubMedVision, ROCOv2, PMC-VQA, and SLAKE (Chen et al. 2024b; Rückert et al. 2024; Zhang et al. 2023; Liu et al. 2021); text-based QA data from PubMedQA, MedMCQA, MedQA, and Medbul- lets (Jin et al. 2019; Pal, Umapathi, and Sankarasubbu 2022; Jin et al. 2021; Chen et al. 2025); and clinical-reasoning data from HuatuoGPT-o1, Medical-R1-Distill, and Citrus- S3 (Chen et al. 2024a; FreedomIntelligence 2025; Wang et al. 2025a). PubMedVision is additionally used to synthe- size image-grounded reasoning samples. Table 6 summarizes these auxiliary sources. B MedPLG-440K Construction MedPLG-440K contains 444,297 pixelālanguage records constructed from existing medical segmentation annotations across four tasks: T1 Referring, T2 Reasoning, T3 Interac- tive, and T4 Explanatory. The construction uses deterministic imageāmask measurements, curated clinical knowledge, and predefined templates, without external LLM annotation. B.1 Dataset Composition Each source sample provides a medical image, its ground- truth mask, the target category, and imaging modality. Visual attributes are first extracted from the imageāmask pair and then combined with task-specific templates to generate four interaction formats. T1 directly refers to a named target, T2 requires target in- ference from indirect clinical clues, T3 introduces a point or box prompt, and T4 combines segmentation with a medical explanation. A source annotation may be reused across mul- tiple formats. Table 7 summarizes the resulting composition. TaskRecords Primary supervision T1 Referring94,261 Explicit target reference T2 Reasoning21,367 Indirect clinical query T3 Interactive318,670 Point or box guidance T4 Explanatory9,999 Grounded medical explanation Total 444,297 Table 7: Composition of MedPLG-440K. B.2 Visual Attribute Extraction For each imageāmask pair, nine numerical measurements are deterministically converted into seven language de- scriptors: location, size, shape, components, boundary, con- trast, and uniformity. Let I ā R HĆW denote the image, M ā 0, 1 HĆW the target mask, and A = |M| its fore- ground area. Location. The mask centroid (c x ,c y ) is assigned to a 3Ć 3 spatial grid using boundaries at W/3, 2W/3, H/3, and 2H/3. This produces central, left, right, upper, lower, and four corner descriptors. Size. The relative area r A = A HW (12) is mapped to tiny, small, moderate-sized, large, or extensive using cutoffs at 0.02, 0.08, 0.20, and 0.45. Shape. For tight bounding-box dimensions (w b ,h b ), we compute Ļ = max(w b ,h b ) min(w b ,h b ) , Ī· = A w b h b ,(13) where Ļ is the aspect ratio and Ī· the foreground fill ratio. The target is classified as irregular if Ī· < 0.45; otherwise, it is round if Ļ < 1.3, oval if Ļ < 2.0, and elongated otherwise. Components. LetK denote the number of connected fore- ground components. We use single region for K ⤠1, a few scattered foci for 2⤠K ⤠3, and multiple scattered foci for K ā„ 4. Boundary. From the largest external contour, we compute C = 4ĻA c P 2 , V = A c A hull , R = P ā A c , (14) where A c , P, and A hull denote the contour area, perimeter, and convex-hull area. The boundary score is s = 2I(C > 0.75) + I(0.55 < C ⤠0.75) + 2I(V > 0.90) + I(0.75 < V ⤠0.90) + 2I(R < 4.5) + I(4.5⤠R < 6.5), (15) where I(Ā·) denotes the indicator function. Scores s ā„ 5, s = 4, s = 3, s = 2, and s < 2 correspond to well- circumscribed and smooth margins, well-defined margins, partially defined margins, lobulated and partially irregular margins, and irregular and ill-defined margins, respectively. SubsetOriginal datasetSubsetOriginal dataset ACDCAutomated Cardiac Diagnosis ChallengeLGGLGG MRI Segmentation amos22AMOS 2022LIDC-IDRILIDC-IDRI BreastUSBUSILiverUSUltrasound Simulation and Segmentation CAMUSCAMUSMMsM&Ms CDD-CESMCDD-CESMMSDMedical Segmentation Decathlon COVID-19_CTCOVID-19 CT Segmentation DatasetNeoPolypBKAI-IGH NeoPolyp COVID-QU-ExCOVID-QU-ExOCT-CMEIntraretinal Cystoid Fluid Dataset CXR_Masks_and Labels Chest Xray Masks and LabelsPanNukePanNuke DRIVEDRIVEPolypGenPolypGen FH-PS-AOPFH-PS-AOPQaTa-COV19QaTa-COV19 G1020G1020RadiographyCOVID-19 Radiography Database GlaSGlaSREFUGEREFUGE ISICISIC 2018 siim-acr- pneumothorax SIIM-ACR Pneumothorax kits23KiTS23 UWaterloo SkinCancer UWaterloo Skin Cancer Dataset Table 5: Segmentation datasets underlying MedPLG-440K. Subset identifiers and dataset mappings follow the BiomedParse organization. Data groupDataset Image VQA PubMedVision (Jin et al. 2019) ROCOv2 (Rückert et al. 2024) PMC-VQA (Zhang et al. 2023) SLAKE (Liu et al. 2021) Text QA PubMedQA (Jin et al. 2019) MedMCQA (Pal, Umapathi, and Sankarasubbu 2022) MedQA (Jin et al. 2021) Medbullets (Chen et al. 2025) Clinical reasoning HuatuoGPT-o1 (Chen et al. 2024a) Medical-R1-Distill (FreedomIntelligence 2025) Citrus-S3 (Wang et al. 2025a) Table 6: Medical question-answering and reasoning datasets used during Stage 1 training. Contrast. The foreground-to-background intensity ratio I r = μ fg μ bg (16) is classified as high for I r > 1.15, low for I r < 0.85, and iso otherwise. These levels are expressed using the modality- specific terms in Table 8. Uniformity. The foreground intensity standard deviation Ļ fg is mapped to homogeneous for Ļ fg < 12, relatively uni- form for Ļ fg < 30, mildly heterogeneous for Ļ fg < 55, and markedly heterogeneous otherwise. For homogeneous regions, the wording is adapted to the modality: internal echotexture for ultrasound, attenuation for CT, density for mammography, signal intensity for MRI, and internal tex- ture otherwise. ModalityHighIsoLow CThyperdenseisodense hypodense MRIhyperintenseisointense hypointense Ultrasoundhyperechoicisoechoic hypoechoic X-rayradiopaqueāradiolucent Mammography hyperdenseisodense hypodense OCThyperreflective āhyporeflective Table 8: Modality-specific terminology for relative intensity. B.3 Task-Specific Synthesis The extracted visual information is incorporated into prede- fined task-specific templates together with category names, imaging modalities, clinical clues, and spatial prompts. T1 directly uses the category name, T2 and T4 use the complete descriptor set, and T3 uses only location, size, and shape. Unavailable contrast and uniformity clauses are omitted au- tomatically. T1 Referring T1 explicitly names the target category. Its prompt bank covers seven styles, including direct commands, polite requests, questions, technical expressions, and pres- ence checks. A representative prompt is āSegment the cat- egory.ā The response is sampled from five short templates, such as āSure, the segmentation mask is <|seg|>.ā T2 Reasoning T2 omits the category name and describes the target through functional, anatomical, symptomatic, di- agnostic, exclusion-based, or appearance-based clues. A rep- resentative prompt is āSegment the structure responsible for function.ā The response contains a template-constructed reasoning trace, a conclusion identifying the inferred target, and an observation instantiated from the extracted descrip- tors: <think> openingā clue interpretationā category inferenceā segmentation approach </think> TaskInstruction and response T1 ReferringUser: Segment the liver. Assistant: The target is <|seg|>. T2 ReasoningUser: Where is the large solid organ in the right upper quadrant of the abdomen? Segment it. Assistant: <think> This requires anatomical reasoning to determine the segmentation target. The query specifies the large solid organ in the right upper quadrant of the abdomen as the defining landmark. The liver is the structure that fits the description of the large solid organ in the right upper quadrant of the abdomen. I will now produce a precise mask for the liver. </think> This is the liver, located as described. I can see the liver in the central region. It is a large, oval structure displaying well-circumscribed, smooth margins, hyperechoic relative to surrounding tissue, with mildly heterogeneous texture. <|seg|> T3 InteractiveUser: Find the edges of the organ here <|ref|> and tell me how big it is. Assistant: This is the liver in abdominal ultrasound. It presents in the central region as a large, oval structure. <|seg|> T4 ExplanatoryUser: Provide a clinical assessment of this ultrasound and segment the relevant structures. Assistant: <think> My task is to identify the liver in this ultrasound based on its imaging characteristics. I can distinguish the liver from adjacent structures based on its typical anatomical position and imaging appearance. The segmentation will follow the margin of the liver, capturing its complete extent in this view. </think> On careful review, the liver is visible in the central region as a large, oval structure with well-circumscribed, smooth margins, hyperechoic relative to surrounding tissue, with mildly heterogeneous texture. It receives dual blood supply from the hepatic artery and portal vein. <|seg|> Table 9: Representative MedPLG-440K examples. conclusion The category occupies the location re- gion as a size components with shape contours and boundarycontrast clauseuniformity clause. <|seg|> T3 Interactive T3 pairs an instruction with either a posi- tive foreground point or a tight bounding box. Point and box prompts are sampled from separate template banks, for ex- ample, āSegment the foreground object marked by the point.ā For non-organ categories, organ is replaced with structure. The response identifies the indicated target and describes its location, size, and shape: This structure is the category, situated in the location region with a size, shape appearance. <|seg|> T4 Explanatory T4 uses explicit, implicit, and clinical prompt families with probabilities 0.40, 0.30, and 0.30, re- spectively. Explicit prompts name the target, implicit prompts request pathology detection, and clinical prompts request general image analysis. Implicit prompts fall back to the ex- plicit form for non-pathological targets. The response combines a template-constructed reasoning trace, a visual observation, and an optional medical knowl- edge sentence: <think> openingā visual analysisā segmentation approachā optional modality cue </think> prefix The category is visible in the location region as a size, shape structure with components and bound- arycontrast clauseuniformity clause. medical knowl- edge <|seg|> Template diversity is further increased through predefined clinical phrases, synonym substitution for T2 clues, modality- specific terminology, and automatic article correction. Ta- ble 9 presents verbatim examples generated from a shared liver annotation. Data sourceInstances Share MedPLG-440K grounding591,29132% Medical VQA and QA1,178,76064% Distilled clinical reasoning72,7514% Total 1,842,802 100% Table 10: Effective Stage 1 training mixture. C Training Data and Optimization C.1 Stage 1 Training Mixture Stage 1 combines MedPLG-440K, public medical VQA and QA corpora, and distilled clinical-reasoning data. Table 10 summarizes the effective mixture after task-level replication. T1 and T4 are repeated twice, T2 three times, and T3 once, yielding N ground = 2Ć 94,261 + 3Ć 21,367 + 318,670 + 2Ć 9,999 = 591,291. (17) Replication changes only sampling frequency; MedPLG- 440K retains 444,297 unique records. C.2 Stage 1 Supervised Fine-Tuning The 3B and 7B variants use the same Stage 1 training config- uration. For the joint objective defined in the main paper, we set Ī» seg = 1, Ī» focal = 100, and Ī» dice = Ī» iou = Ī» obj = 5. The focal loss uses α = 0.25 and γ = 2. Samples without pixel-level annotations are optimized only with the language modeling loss. The LoRA dropout is set to 0.1. The language- and vision- side LoRA adapters, multimodal and task-specific projection modules, token embeddings, and language output head use a learning rate of 1.5Ć 10 ā5 . The SAM2 image encoder, prompt encoder, and mask decoder are jointly optimized with a smaller learning rate of 5Ć 10 ā6 . Training uses AdamW for one epoch with a cosine learning-rate schedule and a 3% warmup ratio. We use a per- device batch size of 1, gradient accumulation over 4 steps, a maximum sequence length of 4,096, and bf16 precision. C.3 Stage 2 Pixel-Level Preference Optimization Candidate generation. For each T2 reasoning- segmentation input, the Stage 1 policy generates N = 8 candidate responses: one greedy decode, three stochastic samples with temperature 0.3 and top-p = 0.9, and four samples with temperature 0.7 and top-p = 0.95. The maximum generation length is 1,024 new tokens. Pair construction. Following the filtering and scoring pro- cedure described in the main paper, we set Ļ min = 0.30 and Ļ gap = 0.10. When multiple lower-scoring candidates satisfy the required Dice margin, the highest-scoring one is retained as the rejected response. Inputs without a qualified pair are discarded, resulting in 1,786 preference pairs from the T2 training branch. Optimization settings. The Stage 1 checkpoint initializes the trainable policy and serves as the frozen reference pol- icy. Reference log-probabilities are precomputed and cached before training. We set β = 0.25 and Ī» nll = 0.05, without response-length normalization. Stage 2 is trained for three epochs with a learning rate of 1Ć 10 ā6 . The per-device batch size is 1 with gradient accumulation over 4 steps. The maximum DPO sequence length is 2,048, and the maximum gradient norm is 0.5. The original language and visual backbone weights remain frozen. Stage 2 optimizes their q/k/v/o LoRA adapters, to- gether with the visual merger, token embeddings, and lan- guage output head. The segmentation projector and the com- plete SAM2 branch remain frozen. All training is conducted on NVIDIA RTX PRO 6000 GPU. D Evaluation Protocols D.1 In-Domain Evaluation Sets T1āT4 are constructed from the official BiomedParse test directories, without introducing an additional trainātest split. Sequence construction is performed independently within each official split. Clip construction. Eight volumetric datasets, including ACDC, MSD, AMOS22, KiTS23, LGG, LIDC-IDRI, MMs, and COVID-19 CT, are treated as 3D data. Their slices are grouped by volume identity and target category, ordered by slice index, and divided when the gap between adjacent an- notated slices is at least three. Sequences longer than 16 frames are further divided using a window length of 16 and a stride of 8. Intermediate slices without target annotations are retained as negative frames with empty masks. Images from the remaining 2D datasets are represented as single-frame clips. This procedure produces 24,391 test clips, comprising 17,489 single-frame clips and 6,902 multi-frame clips. T1 evaluation. T1 evaluates all 24,391 test clips using one frame per clip. For a clip with L frames, the frame at index āL/2ā is selected. If the middle frame does not contain a valid target mask, an annotated frame from the same clip is used instead. T2āT4 evaluation. T2, T3, and T4 are sampled from the official test pool using dataset-balanced sampling with a fixed random seed of 123. Candidates must be single-frame sam- ples with valid masks, and duplicate frameāmask pairs are removed. T2 further restricts targets to the predefined organ- knowledge set. The resulting sets contain 2,500 T2 samples, 2,000 T3 samples, and 2,500 T4 samples. T3 contains equal numbers of point-prompted and box-prompted examples. T5 evaluation. T5 contains 10,267 multiple-choice ques- tions from public medical QA benchmarks, including 1,647 image-based and 8,620 text-based samples. D.2 External Evaluation We evaluate zero-shot transfer on the official test sets of MeCoVQA-G+ and U-MRG-14K, containing 2,719 and 2,480 evaluation samples, respectively. No benchmark- specific fine-tuning or preference optimization is performed. For MeCoVQA-G+, slice-level results are aggregated over all samples to obtain micro scores, while modality-level scores are computed separately and averaged to obtain macro performance. U-MRG-14K is evaluated using its official seg- mentation protocol. D.3 Evaluation Metrics For a predicted mask Ė M and ground-truth mask M, Dice is computed as Dice( Ė M,M ) = 2| Ė M ā© M| | Ė M| +|M| .(18) Normalized surface Dice is computed with a boundary tol- erance of five pixels. HD95 measures the 95th-percentile bidirectional surface distance, with lower values indicating better boundary agreement. For T2 and T4, METEOR (Banerjee and Lavie 2005) mea- sures response similarity, while target grounding accuracy measures whether the normalized target concept is fully re- covered. Empty or invalid responses and outputs without a decodable mask receive zero scores. For T5, the predicted option is extracted from the generated response and evaluated using multiple-choice accuracy. E Additional Experimental Results E.1 Detailed Interactive Segmentation Results T3 interactive segmentation contains two equally sized sub- sets: 1,000 point-prompted samples and 1,000 box-prompted Prompt MedPixel-3B MedPixel-7B Diceā NSDā Diceā NSDā Box72.36 49.39 71.65 49.79 Point 79.65 54.88 80.16 56.47 Avg. 76.00 52.14 75.91 53.13 Table 11: Detailed T3 interactive-segmentation results under point and box prompts. Each subset contains 1,000 samples. Avg. denotes the arithmetic mean over the two prompt types. samples. While the main paper reports the average perfor- mance over the two subsets, Table 11 presents the separate Dice and NSD results. As shown in Table 11, point prompts consistently outper- form box prompts for both model scales. For MedPixel-3B, point prompting improves Dice and NSD by 7.29 and 5.49 points, respectively, while MedPixel-7B achieves gains of 8.51 Dice and 6.68 NSD. MedPixel-7B obtains the strongest point-prompted performance, reaching 80.16 Dice and 56.47 NSD. The stronger performance under point prompts is also en- couraging for practical use, as a point can be specified with a single click and requires less interaction effort than draw- ing a bounding box. These results suggest that MedPixel can achieve accurate interactive segmentation from lightweight spatial guidance. E.2 Detailed Effect of Pixel-Level Preference Optimization We provide a detailed comparison between the Stage 1 SFT and Stage 2 PLPO checkpoints across all five tasks. For T1ā T4, we report Dice, gIoU, cIoU, and NSD. For the language- generative T2 and T4 tasks, we additionally report METEOR (MET.) and target grounding accuracy (TGA). TGA mea- sures whether all tokens in the reference target phrase are re- covered in the generated response. For T5, IMCQ and TMCQ denote image-based and text-based medical multiple-choice accuracy, respectively. Higher values are better for all met- rics. Dashes indicate that the corresponding NSD results were not retained during the earlier 3B Stage 1 evaluation. Table 12 shows that PLPO produces its largest improve- ments on T2 reasoning segmentation. For MedPixel-3B, Dice, gIoU, and cIoU increase by 4.51, 4.10, and 5.58 points, respectively. The corresponding gains for MedPixel- 7B are 3.75, 3.37, and 4.79 points, together with a 3.55-point improvement in NSD. These consistent changes show that PLPO improves both sample-level overlap and dataset-level pixel aggregation. T4 explanatory segmentation also benefits from PLPO. For MedPixel-3B, Dice, gIoU, and cIoU improve by 1.81, 1.58, and 2.01 points, respectively. MedPixel-7B obtains smaller but consistent improvements across all four segmentation metrics. METEOR and TGA also improve on T4 for both model scales, indicating that the pixel-level gains do not degrade the generated explanations. On T2, the response metrics remain broadly stable. ME- TEOR changes by onlyā0.3 and +0.3 points for the 3B and 7B models, respectively, while TGA changes by +1.2 and ā1.7 points. These variations are small relative to the seg- mentation gains, suggesting that PLPO mainly improves the pixel-level outcomes while preserving the learned reasoning behavior. In contrast, T1 referring segmentation and T3 interactive segmentation remain nearly unchanged after PLPO. Their Dice, gIoU, cIoU, and NSD values exhibit only minor fluc- tuations, with no consistent degradation. T5 medical VQA is similarly preserved: IMCQ improves at both scales, while TMCQ remains nearly unchanged for MedPixel-3B and im- proves slightly for MedPixel-7B. Overall, PLPO selectively improves reasoning- and explanation-oriented segmentation while maintaining refer- ring segmentation, interactive segmentation, and medical question-answering performance. E.3 DiceāReasoning Alignment We conduct an additional analysis to examine whether the pixel-level preference signal used by PLPO is consistent with target-level reasoning. The analysis covers the 2,500 re- sponses generated on the T2 test set before and after PLPO, together with the 1,786 mined preference pairs. The head- line comparisons are reported in the main paper; here, we describe the reasoning-annotation protocol and provide com- plementary statistics. Reasoning annotation protocol. We use gpt-5.6-sol to de- termine whether each generated <think>trace identifies the ground-truth segmentation target. For each response, the judge receives the segmentation query, the ground-truth tar- get, and the generated reasoning trace. The image, predicted mask, and Dice score are excluded from the judging input, so the reasoning label is assigned independently of segmen- tation quality. The judge returns one of three labels: yes, partial, or no. A response is labeled yes when its concluded target matches the ground-truth structure, allowing synonyms, clinically equiv- alent expressions, and equivalent image- and patient-side laterality descriptions. A partial label denotes the correct or- gan with an incorrect substructure or a genuinely ambiguous conclusion. A no label denotes a different structure, incorrect laterality, or the absence of an identifiable target. Only yes is counted as reasoning-correct; partial, no, and unparseable outputs are treated as incorrect. The same fixed rubric is ap- plied to the SFT and PLPO outputs and to both responses in every preference pair. The exact judging prompt is reproduced below. System prompt. You are a strict judge of medical image- segmentation reasoning. For each item you get: QUESTION (what to segment), GT (the ground-truth target structure whose mask is the correct answer), and REASONING (the modelās <think> text). Decide whether the REASONING concludes a target that is the SAME structure as GT. Al- low synonyms, laterality equivalence between image-side and patient-side wording, and clinical equivalence. Judge IDENTITY ONLY against GT; ignore mask and segmenta- tion quality, and ignore whether the wording in QUESTION appears to contradict GT, since GT is authoritative. Scale Training T1 ReferringT2 ReasoningT3 InteractiveT4 ExplanatoryT5 VQA Dice gIoU cIoU NSD Dice gIoU cIoU NSD MET. TGA Dice gIoU cIoU NSD Dice gIoU cIoU NSD MET. TGA IMCQ TMCQ Stage 1 84.29 76.95 82.15 60.39 58.19 50.99 47.92 46.45 50.5 62.9 75.72 67.94 72.69 52.16 72.12 65.35 67.06 51.19 39.7 82.4 42.14 52.46 3B Stage 284.3076.9682.1560.4062.7055.0953.5049.4650.264.176.0068.1772.9052.1473.9366.9369.0752.1840.483.442.8752.45 Stage 1 85.02 77.83 83.00 61.65 62.90 55.83 53.48 49.80 51.0 72.5 75.97 68.84 74.34 53.22 75.63 68.59 71.28 54.50 41.5 87.6 47.30 57.84 7B Stage 285.0077.8182.9761.6766.6559.2058.2753.3551.370.875.9168.8373.7553.1376.4669.4271.9655.2442.387.947.4858.14 Table 12: Detailed effect of Stage 2 Pixel-Level Preference Optimization across all five tasks. MET. denotes METEOR, and TGA denotes target grounding accuracy. Labelyes when the concluded target equals GT or an equiv- alent structure; label partial when the correct organ is identified but the substructure is incorrect, or when the con- clusion is genuinely ambiguous; and label no when the re- sponse concludes a different structure, uses incorrect lateral- ity, or contains no clear target. Return only a compact JSON array, with one object per item and no additional prose: "uid":"...","c":"yes|no|partial","t":"concluded target". User-message template. Judge these items: "uid":"...","question":"<segmentation query>", "gt":"<ground-truth target>", "reasoning":"<generated reasoning trace>". Response-level association. As shown in Fig. 4(a), reasoning-correct responses decode substantially better masks under both policies. Their mean Dice scores are 84.4 versus 33.8 for SFT and 86.6 versus 41.7 after PLPO. Treat- ing Dice as a score for distinguishing reasoning-correct from reasoning-incorrect responses yields AUC values of 0.861 and 0.842, respectively. The consistently high AUC indi- cates that the association between target-level reasoning and mask quality remains strong after preference optimization. Preference-level association. Figure 4(b) shows that 93.5% of chosen responses are reasoning-correct, compared with 10.3% of rejected responses. At the pair level, 83.6% prefer a reasoning-correct response over an incorrect one, whereas only 0.4% exhibit the reverse ordering. Among pairs whose candidates differ in reasoning correctness, the higher-Dice response is correct in 99.5% of cases. Thus, the preference ordering induced by mask quality is highly consistent with target-level reasoning. Reasoning preservation after PLPO. On the same 2,500 T2 test samples, PLPO increases mean Dice from 62.9 to 66.7, while the reasoning-correct rate changes from 57.4% to 55.6%. This difference is not statistically significant under McNemarās test (p = 0.07). Moreover, reasoning changes from correct to incorrect while Dice improves in only 1.4% of samples. These results indicate that PLPO improves seg- mentation without a detectable systematic degradation in target-level reasoning. E.4 Detailed Evaluation of Generated Responses Evaluation protocol. We further evaluate the pixel-level predictions and generated responses on the 2,500-sample T2 reasoning-segmentation and T4 explanatory-segmentation test sets. For T2, we retain the complete reasoning and final answer after removing structural tags, segmentation tokens, coordinate tokens, and chat templates. For T4, we evaluate the final explanatory text after the reasoning block. Evaluation metrics. Dice and NSD evaluate region over- lap and boundary agreement, respectively. Avg. Len. reports the average number of content words after text cleaning. ME- TEOR (MET.) measures similarity to the reference response. Target grounding accuracy (TGA) requires all tokens in the reference target phrase to be recovered, while Head Match requires recovery of its principal anatomical or finding term. Avg. Len. has no preferred direction. Results. Table 13 shows that MedPixel achieves the strongest overall combination of pixel-level prediction and language generation on both tasks. On T2, MedPixel-7B ob- tains the best Dice, NSD, METEOR, TGA, and Head Match results. VisionReasoner is the strongest baseline with com- plete reasoning responses, but it remains substantially behind MedPixel in both segmentation quality and implicit target recovery. LISA++, PixelLM, and UniPixel mainly produce short templates or segmentation-oriented outputs, resulting in limited target recovery. Citrus-V is included for pixel-level comparison, but its per-sample T2 reasoning responses are unavailable. On T4, MedPixel-7B again achieves the highest Dice, NSD, and METEOR, together with high target-recovery accuracy. Citrus-V obtains perfect TGA and Head Match because its short responses almost always contain the target name. However, its substantially lower METEOR and segmentation scores indicate that recovering the tar- get name alone does not constitute a complete and accu- rately grounded explanation. VisionReasoner produces much longer responses but remains behind MedPixel in mask qual- ity, reference similarity, and target recovery. Target recovery is generally more difficult on T2 because its query does not explicitly name the target. The model must first infer the intended anatomical structure or finding be- fore producing the mask and reasoning response. T4 instead evaluates the description of an identified target, leading to higher target-recovery scores and shorter responses. Overall, MedPixel consistently combines accurate masks with com- plete and target-consistent language generation across both reasoning and explanatory segmentation. E.5 Robustness to Bounding-Box Perturbations Experimental setup. We use the same 1,000-sample box test set as in the T3 evaluation, with a fixed random seed of 42. All methods receive identically perturbed boxes and are evaluated against the original ground-truth masks at their native resolution. We report Dice and normalized surface Dice (NSD) with a tolerance of five pixels. SFTPLPO 0.0 0.2 0.4 0.6 0.8 1.0 Mask Dice mask success (a) Dice by reasoning correctness Reasoning correct incorrect ChosenRejected 0% 20% 40% 60% 80% 100% Reasoning correct (b) Reasoning correctness in preference pairs 93.5% 10.3% reasoning correct reasoning incorrect Figure 4: Diceāreasoning alignment on T2. (a) Reasoning-correct responses achieve substantially higher Dice before and after PLPO. (b) Higher-Dice chosen responses are substantially more likely to be reasoning-correct than rejected responses. Method T2 Reasoning SegmentationT4 Explanatory Segmentation Diceā NSDā Len. MET.ā TGAā Headā Diceā NSDā Len. MET.ā TGAā Headā Citrus-V-8B37.5 25.9ā35.1 23.01610.2 100.0 100.0 VisionReasoner-7B 33.4 14.58729.639.847.431.1 13.0 18221.272.076.9 UniBiomed-1.4B28.3 14.4864.927.329.935.8 19.1557.323.725.9 LISA++-7B22.88.967.90.10.212.15.34612.09.311.1 PixelLM-7B18.23.0198.14.95.810.01.53011.614.215.1 UniPixel-7B27.97.523.00.00.030.29.553.20.00.0 MedPixel-3B62.749.59250.264.173.973.952.24440.483.487.8 MedPixel-7B66.753.49251.370.879.276.555.24242.387.991.0 Table 13: Detailed evaluation of pixel-level predictions and generated responses on T2 reasoning segmentation and T4 explana- tory segmentation. Avg. Len. is measured in content words, and TGA denotes target grounding accuracy based on recovery of all target tokens. Scale-only perturbation. To isolate the effect of box size, we keep the original box center fixed and symmetrically scale its width and height. Let (c x ,c y ),w, andh denote the original box center, width, and height, respectively. The scaled box is defined as c ā² x = c x , c ā² y = c y , w ā² = sw, h ā² = sh. (19) Here, s = 1.00 preserves the original tight box, while s < 1.00 shrinks it and s > 1.00 enlarges it. As shown in Table 14 and Figure 6, the SAM-family meth- ods are strongly dependent on box scale. Their performance generally peaks near the original tight box ats = 1.00 and de- creases when the box is either contracted or enlarged. By con- trast, MedPixel exhibits a substantially flatter performance profile. MedPixel is particularly stable for enlarged boxes. MedPixel-7B increases from 71.65 Dice ats = 1.00 to 75.32 at s = 2.00, whereas all SAM-family baselines degrade as additional background is introduced. Stronger degradation is observed under severe contraction, because the box may no longer contain the complete target. Joint shift-and-scale perturbation. Starting from the tight ground-truth bounding box, we randomly shift its center in the horizontal and vertical directions, and independently contract or expand its left, right, top, and bottom sides rela- tive to the shifted center. The resulting box therefore contains both positional displacement and asymmetric extent varia- tion. Let the original box have center (c x ,c y ), width w, height h, and center-to-side distances d k , where k āl, r, t, b. We perturb the box as c ā² x = c x + ε x w, ε x ā¼U (ār,r), c ā² y = c y + ε y h, ε y ā¼U (ār,r), d ā² k = α k d k ,α k ā¼U (1ā r, 1 + r). (20) Methods = 0.25 s = 0.50 s = 0.70 s = 0.75 s = 0.85 s = 1.00 s = 1.15 s = 1.25 s = 1.30 s = 1.50 s = 1.75 s = 2.00 MedSAM6.0624.3748.2055.4270.8083.9780.0175.3873.2663.8653.1444.59 MedSAM220.0850.3571.4575.1879.3680.8877.9874.4572.5565.4858.7654.02 SAM216.9942.9265.3370.2176.4477.2170.2964.2660.4648.8239.0532.51 SAM-Med2D 13.2734.0354.1258.9266.0267.3662.4958.6656.9851.0644.3339.67 MedPixel-3B58.9462.4668.1169.2670.6272.3673.0272.8873.1273.0072.2872.22 MedPixel-7B51.0566.9570.4270.5370.9971.6572.2772.3472.8073.3874.1475.32 Table 14: Dice under scale-only bounding-box perturbations. The box center remains fixed, while its width and height are multiplied by s; s = 1.00 corresponds to the original tight box. 0.000.150.250.300.500.751.00 Perturbation Ratio r 10 20 30 40 50 60 70 80 90 Dice Score (%) MedSAM MedSAM2 SAM2 SAM-Med2D MedPixel-3B MedPixel-7B Figure 5: Dice under joint bounding-box shift-and-scale per- turbations. Larger r indicates stronger center displacement and side variation. MedPixel degrades more gradually than the SAM-family baselines. The four side-scaling factors are sampled independently. The resulting box is B ā² = c ā² x ā d ā² l ,c ā² y ā d ā² t ,c ā² x + d ā² r ,c ā² y + d ā² b .(21) Here, r = 0.00 retains the original tight box, while larger values produce stronger center displacement and side varia- tion. As shown in Table 15 and Figure 5, the SAM-family meth- ods perform strongly with tight boxes but degrade rapidly as the perturbation increases. Their Dice curves decline sharply once the box is substantially displaced or asymmetrically resized. In contrast, both MedPixel variants remain compar- atively stable across increasing perturbation strengths. At r = 1.00, MedPixel-7B retains 62.34 Dice and 43.26 NSD, corresponding to decreases of only 9.31 and 6.53 points, respectively. The comparatively flat MedPixel curves indicate that its predictions are less dependent on precise agreement between the input box and the target extent. Qualitative analysis. We further examine representative endoscopic-polyp and chest-X-ray examples under both per- turbation settings. In the joint-perturbation visualizations, 0.250.500.700.750.851.001.151.251.301.501.752.00 Box Scale Factor s 0 10 20 30 40 50 60 70 80 90 Dice Score (%) MedSAM MedSAM2 SAM2 SAM-Med2D MedPixel-3B MedPixel-7B Tight Box Figure 6: Dice under scale-only bounding-box perturbations. The dashed line marks the tight box at s = 1.00. MedPixel remains comparatively stable as the box is contracted or en- larged. green, magenta, and yellow indicate the ground-truth con- tour, predicted contour, and perturbed box, respectively, and D denotes the Dice score of the displayed prediction. Scale-only examples. Figures 7 and 8 visualize the effect of changing the box size while preserving its center. The two examples illustrate the different effects of box contraction and enlargement across target scales. The scale-only examples explain the asymmetric behavior observed in Table 14. Enlarged boxes preserve the complete target and mainly introduce additional background, which MedPixel can largely suppress. In contrast, strongly con- tracted boxes may remove essential target regions and pro- vide insufficient spatial evidence. This effect is especially visible for the large bilateral lung target, where MedPixel-7B is better able to recover the complete anatomy from an in- complete box. For the smaller and visually distinctive polyp, both MedPixel variants remain stable over a broad range of box scales. As a geometric reference, using the tight box directly as the foreground mask yields 66.18 Dice and 15.44 NSD, con- Method r = 0.00r = 0.15r = 0.25r = 0.30r = 0.50r = 0.75r = 1.00ā 0ā1 Dice NSD Dice NSD Dice NSD Dice NSD Dice NSD Dice NSD Dice NSDDiceNSD MedSAM83.97 62.10 73.47 41.82 62.25 31.43 56.98 27.96 37.56 19.04 20.39 12.70 12.14 8.20 ā71.83 ā53.90 MedSAM280.88 57.14 76.28 48.07 70.02 39.38 66.85 35.79 50.55 25.02 31.90 17.28 20.82 12.06 ā60.06 ā45.08 SAM277.21 41.47 71.87 34.83 62.02 27.99 56.84 25.71 38.18 17.68 21.70 11.99 12.64 7.72 ā64.57 ā33.75 SAM-Med2D 67.36 36.17 63.23 31.69 56.66 26.83 52.79 24.60 36.87 18.07 20.90 12.28 12.90 8.57 ā54.46 ā27.60 MedPixel-3B72.3649.3972.5649.6071.3648.4571.0048.0267.8945.0962.7141.1558.6138.95ā13.75ā10.44 MedPixel-7B71.6549.7971.2949.4670.8649.1570.6048.8267.5446.6663.0143.4662.3443.26ā9.31ā6.53 Table 15: Robustness to joint bounding-box shift-and-scale perturbations. The perturbation ratio r controls both center displace- ment and independent variation of the four box sides, with r = 0.00 corresponding to the original tight box. firming that MedPixel predicts target boundaries rather than simply reproducing the box. Together, the quantitative and qualitative results show that MedPixel can use image and target evidence to remain stable under inaccurate spatial prompts, with degradation occurring primarily when severe perturbations remove a substantial portion of the target. Joint-perturbation examples. Figures 9 and 10 provide repre- sentative comparisons for a localized endoscopic lesion and a large bilateral anatomical structure. The qualitative examples support the aggregate trend in Table 15. For the localized polyp, MedPixel continues to recover the target contour even when the perturbed box is visibly displaced or asymmetrically resized. The lung ex- ample reveals a more difficult failure mode: when the box excludes a substantial portion of the bilateral anatomy, the prediction may become incomplete. Nevertheless, MedPixel- 7B remains stable over a wider perturbation range, whereas the SAM-family methods frequently fragment, expand into background regions, or collapse to an incorrect structure. F Qualitative Results Figures 11ā15 present representative outputs across the five MedPixel task types. For T1āT4, each example shows the user prompt, input image, predicted mask, and ground-truth mask. T2 and T4 additionally display the generated reasoning and final grounded response, while T3 demonstrates interac- tion through point or bounding-box prompts. T5 presents medical question-answering examples that do not require pixel-level prediction. Across the five task types, MedPixel adapts its output to the requested interaction form. T1 directly grounds an explicitly named target, whereas T2 infers the intended structure from functional or clinical evidence before localization. T3 follows point- and box-based spatial prompts, and T4 couples visual explanation with mask prediction. T5 further demonstrates that the unified model preserves medical question-answering capability when no pixel-level output is required. F.1 Licenses MedPLG-440K is derived from datasets aggregated by BiomedParse (Zhao et al. 2024). These source datasets are distributed under different licenses and usage conditions, and downstream users remain responsible for complying with the terms specified by the original data providers. We do not redistribute the underlying medical images. MedPLG-440K and MedPixel are intended for research use only and have not been validated for clinical diagnosis or treatment decisions. MedPixel-3B D=0.991 s = 0.50 D=0.991 s = 0.75 D=0.992 s = 1.00 D=0.991 s = 1.50 D=0.991 s = 2.00 MedPixel-7B D=0.986D=0.992D=0.992D=0.992D=0.992 MedSAM D=0.345D=0.673D=0.990D=0.735D=0.361 MedSAM2 D=0.563D=0.989D=0.990D=0.826D=0.676 SAM2 D=0.566D=0.882D=0.989D=0.580D=0.000 SAM-Med2D D=0.487D=0.891D=0.983D=0.819D=0.133 Endoscopy / Polyp GT mask contourPredicted mask contourPerturbed box Figure 7: Qualitative robustness to scale-only perturbations for an endoscopic polyp. MedPixel preserves an accurate target contour across both contracted and enlarged boxes, while the SAM-family methods are more sensitive to deviations from the original tight box. MedPixel-3B D=0.182 s = 0.50 D=0.146 s = 0.75 D=0.990 s = 1.00 D=0.990 s = 1.50 D=0.990 s = 2.00 MedPixel-7B D=0.991D=0.990D=0.991D=0.991D=0.991 MedSAM D=0.025D=0.576D=0.986D=0.630D=0.407 MedSAM2 D=0.253D=0.904D=0.980D=0.946D=0.943 SAM2 D=0.025D=0.633D=0.809D=0.501D=0.551 SAM-Med2D D=0.009D=0.024D=0.429D=0.266D=0.287 X-ray / Lung GT mask contourPredicted mask contourPerturbed box Figure 8: Qualitative robustness to scale-only perturbations for the lungs in a chest X-ray. Severe contraction removes a substantial portion of the target and is therefore more challenging than box enlargement. MedPixel-7B remains stable across the evaluated scales, whereas MedPixel-3B is more sensitive when the box covers only a small central part of the lungs. MedPixel-3B D=0.992 r = 0.00 D=0.992 r = 0.15 D=0.991 r = 0.30 D=0.991 r = 0.50 D=0.987 r = 0.75 MedPixel-7B D=0.992D=0.992D=0.992D=0.992D=0.691 MedSAM D=0.990D=0.883D=0.546D=0.095D=0.190 MedSAM2 D=0.990D=0.988D=0.988D=0.000D=0.548 SAM2 D=0.989D=0.988D=0.022D=0.484D=0.001 SAM-Med2D D=0.983D=0.982D=0.889D=0.103D=0.000 Endoscopy / Polyp GT mask contourPredicted mask contourPerturbed box Figure 9: Qualitative robustness to joint shift-and-scale perturbations for an endoscopic polyp. The perturbation strength increases from left to right. MedPixel remains closely aligned with the target under moderate box displacement and asymmetric resizing, whereas the compared SAM-family methods become increasingly sensitive to the perturbed box. MedPixel-3B D=0.990 r = 0.00 D=0.990 r = 0.15 D=0.173 r = 0.30 D=0.710 r = 0.50 D=0.606 r = 0.75 MedPixel-7B D=0.991D=0.991D=0.991D=0.991D=0.603 MedSAM D=0.986D=0.726D=0.601D=0.001D=0.009 MedSAM2 D=0.980D=0.596D=0.603D=0.932D=0.001 SAM2 D=0.809D=0.835D=0.540D=0.000D=0.000 SAM-Med2D D=0.429D=0.190D=0.084D=0.037D=0.045 X-ray / Lung GT mask contourPredicted mask contourPerturbed box Figure 10: Qualitative robustness to joint shift-and-scale perturbations for the lungs in a chest X-ray. The lung example is more challenging because a displaced box may exclude a large portion of the bilateral target. MedPixel-7B remains accurate under moderate perturbations, while severe target exclusion eventually causes degradation. T1 Referring Segmentation Input ImageGround TruthPred Mask Input ImageGround TruthPred Mask Input ImageGround TruthPred Mask User: Please segment kidney in abdominal CT. User: Please segment left heart ventricle. User: Please segment polyp in colon endoscope. Figure 11: Qualitative results for T1 referring segmentation. Given an explicitly specified target, MedPixel directly predicts the corresponding mask. The examples cover kidney segmentation in abdominal CT, left-ventricle segmentation in cardiac MRI, and polyp segmentation in colonoscopy. Thinking: I need to reason about the target based on the given description. The query references the organ responsible for respiratory ventilation and perfusion throughout the thoracic cavity. The lung is well-known for its role in respiratory ventilation and perfusion throughout the thoracic cavity. I will now produce a precise mask for the lung. Answer: The lung is confirmed as the structure involved in respiratory ventilation and perfusion throughout the thoracic cavity. The lung is visualized in the central region, appearing large with round form, partially defined margins, radiolucent relative to surrounding tissue, with mildly heterogeneous texture. <|seg|>. T2 Reasoning Segmentation User: Segment the structure responsible for respiratory ventilation and perfusion throughout the thoracic cavity. Input ImagePred MaskGround Truth Thinking: I need to identify the target based on the clinical clue. The radiological pattern is consistent with glaucoma. The diagnosis of glaucoma involves the eye, which is the expected site. I will segment the optic cup based on this reasoning. Answer: The eye is the site of glaucoma in this case. The optic cup is located in the left region, demonstrating tiny dimensions, round contour, and well-circumscribed, smooth margins, with relatively uniform parenchymal texture. <|seg|>. User: The findings are consistent with glaucoma. Provide the segmentation mask. Input ImagePred MaskGround Truth Figure 12: Qualitative results for T2 reasoning segmentation. MedPixel infers the intended target from functional or clinical clues before producing the grounded response and segmentation mask. The examples identify the lungs from their physiological function and the optic cup from a glaucoma-related diagnostic clue. Response: This is the kidney tumor in abdominal CT. It presents in the left region as a small, round structure. <|seg|>. T3 Interactive Segmentation User: Can you segment the region I'm pointing to? Input ImagePred MaskGround Truth Response: This is the right lung in chest X-Ray, visible in the left region as a moderate-sized, oval structure. <|seg|>. User: Segment the right lung. Input ImagePred MaskGround Truth Response: The bounded area shows the glandular structure in colon pathology. It is located in the central region as a large, irregular structure. <|seg|>. User: Extract the foreground object confined within these bounding lines. Input ImagePred Mask Ground Truth Response: The bounded area shows the fetal head in transperineal ultrasound. It is located in the central region as a moderate-sized, round structure. <|seg|>. User: Segment the fetal head. Input ImagePred Mask Ground Truth Figure 13: Qualitative results for T3 interactive segmentation. MedPixel identifies and segments targets indicated by point or bounding-box prompts. The examples cover abdominal CT, chest radiography, colon pathology, and transperineal ultrasound. The generic textual instruction specifies the requested operation, while the spatial prompt determines the target region. Thinking: I will analyze this CT scan to find the kidney tumor. The CT attenuation characteristics of the kidney tumor are consistent with its known tissue composition. The kidney tumor shows characteristic imaging features that differentiate it from the surrounding structures in this area. I will carefully outline the kidney tumor, following its contour to produce an accurate segmentation result. Answer: A tiny, round kidney tumor is identified in the left region with well-circumscribed, smooth margins, hyperdense relative to surrounding tissue, with relatively uniform parenchymal texture. Notably, renal cell carcinoma is the most common primary renal malignancy, with an increased risk of metastasis to regional lymph nodes and distant sites. <|seg|>. T4 Explanatory Segmentation User: What is the kidney tumor in this image? Describe it and provide the segmentation mask. Input ImagePred MaskGround Truth Thinking: I will analyze this endoscopy image to find the polyp. The tissue properties of the polyp, including its signal intensity and border characteristics, help identify it. I will produce a precise mask that follows the true border of the polyp based on the observed tissue boundaries. Answer: Upon examination, a large polyp is present in the central region, displaying round margins, with mildly heterogeneous texture. Notably, polyp morphology on endoscopy includes pedunculated, sessile, and flat subtypes, each with different management implications. <|seg|>. User: Can you describe the polyp in this endoscopy image and outline it with a segmentation mask? Input ImagePred MaskGround Truth Figure 14: Qualitative results for T4 explanatory segmentation. MedPixel jointly generates a visual explanation and a segmentation mask. The responses identify and describe the location, morphology, boundary, and appearance of a kidney tumor in abdominal CT and a polyp in endoscopy. T5 Medical VQA Question: A 71-year-old male who had a left total hip arthroplasty a decade ago presents with progressive hip and thigh pain that began 18 months ago. In the last 6 weeks, the pain has become severe enough to prevent ambulation even with walker assistance. Physical examination reveals mild pain during passive internal and external hip rotation, and he is unable to walk during the office visit. Laboratory findings show: WBC 10,300, CRP 0.2, and ESR 13. Upon review of the provided radiograph (figure A), what is the most appropriate treatment strategy? A. Revision arthroplasty with a total femur prosthesis B. Revision arthroplasty with a fully coated cementless stem, cable wiring, and bone graft C. Revision arthroplasty with a modular, tapered stem and bone grafting of the diaphyseal fixation D. Radionuclide bone scan and MRI E. Open reduction internal fixation with a cable plate and allograft strut Response: B) Revision arthroplasty with a fully coated cementless stem, cable wiring, and bone graft Question: How to prevent the occurrence of the disease on the lower right lobe of lung in this image? Response: The patient should avoid smoking and keep healthy. Question: What part of the body is the radiograph showing? A. Elbow B. Ankle C. Wrist D. Knee Response: C) Wrist Figure 15: Qualitative results for T5 medical VQA. MedPixel retains general medical question-answering capability without requiring pixel-level output. The examples cover treatment-strategy selection, preventive guidance based on a chest radiograph, and anatomical recognition from radiographs.