Manuscript Offprint

arXiv:2611.00684

Density-Aware Calibration for Resource-Efficient Medical Vision-Language Models

Tien-Dat Dam, Huu-Thuan Huynh, Minh-Triet Tran, Trung-Nghia Le

Tien-Dat Dam1,2^{1,2}, Huu-Thuan Huynh1,2^{1,2}, Minh-Triet Tran1,2^{1,2}, and Trung-Nghia Le∗1,2^{*1,2}

1^{1} University of Science, Ho Chi Minh City, Vietnam

2^{2} Vietnam National University, Ho Chi Minh City, Vietnam

23120118@student.hcmus.edu.vn, hhthuan@hcmus.edu.vn,

tmtriet@fit.hcmus.edu.vn, ltnghia@fit.hcmus.edu.vn

Abstract. Medical vision-language models (VLMs) show promise for clinical image understanding, but their computational and memory requirements hinder deployment on resource-constrained clinical hardware. Post-training quantization (PTQ) offers a practical compression strategy without retraining, yet its effectiveness depends strongly on the calibration data. We propose CoreCalib, a training-free and quantizer-agnostic framework for constructing compact calibration sets that preserve the target medical VQA distribution. CoreCalib stratifies data by clinical question class, identifies representative visual modes using frozen DI-NOv2 features with UMAP and HDBSCAN, and expands selected images into class-balanced question-answer pairs. On Kvasir-VQA-x1, we evaluate CoreCalib with MASQuant, GPTQ, and QIG using a fixed 128-pair budget. CoreCalib achieves the best METEOR with all three quantizers and the best ROUGE-L with MASQuant and GPTQ. With W4A8 MASQuant, it improves METEOR from 0.5672 with COCO calibration to 0.6234, recovering approximately 41% of the degradation relative to BF16. These results support CoreCalib as a data-centric component for resource-efficient medical VLM deployment. Project page: https://magnusdtd.github.io/CoreCalib/.

Keywords: Medical Vision-Language Models · Post-Training Quantization · Calibration Data Selection · Resource-Efficient AI · Medical Visual Question Answering

1 Introduction

Medical visual question answering (VQA) aims to answer clinical questions about medical images and has become a promising building block for decision support in radiology, pathology, and gastrointestinal (GI) endoscopy [18,13,11]. Modern VQA systems increasingly rely on large vision-language models (VLMs), such as Qwen3.5 [27], that can be adapted to clinical domains with parameter-efficient fine-tuning [14,8]. On the Kvasir-VQA-x1 benchmark [10], a 4-billion-parameter

∗^{*} Corresponding author.

Tien-Dat Dam et al.

Qwen3.5 model fine-tuned for GI endoscopy VQA provides strong performance. However, deploying such a model in a clinical environment is substantially different from running it in a research setting: inference close to the endoscopy suite favors local and on-premises computing, where accelerator memory, latency, and computational budgets can be considerably tighter than those of large-scale research servers. A medical VLM that requires substantial resources can therefore become difficult to deploy beyond high-end GPU infrastructure.

A practical clinical VLM should ideally operate across a spectrum of computing environments, ranging from local GPU servers and hospital workstations to resource-constrained computers and, ultimately, edge systems located close to image acquisition. Model compression is an important step toward this goal. Post-training quantization (PTQ) is particularly attractive because it converts a trained model to low-bit representations without requiring expensive retraining [24]. By reducing the numerical precision of weights and, for suitable methods, activations, PTQ can reduce the resource burden of inference while preserving the original model architecture and learned capabilities. This makes PTQ a natural interface between a trained medical VLM and a resource-efficient clinical deployment pipeline.

However, low-bit quantization introduces a fundamental trade-off between resource efficiency and model fidelity. This trade-off is especially consequential for medical VLMs, where changes in visual-language representations can alter clinically meaningful answers. Recent PTQ methods for multimodal models differ in how they estimate and control quantization error: SmoothQuant-style methods migrate activation outliers into weights [34,19,15], GPTQ reconstructs weights using approximate second-order information [9], and QIG reweights tokens using quantization-aware integrated gradients [33]. Despite these advances, the calibration data used by PTQ is often treated as a fixed implementation detail. Multimodal PTQ methods commonly use small generic COCO-based image-caption sets [19,33], even when the target model has been specialized to a substantially different clinical distribution.

For medical VQA, this calibration mismatch is particularly important because a calibration example is not simply an image. The same endoscopic image may be paired with questions about abnormality presence, polyp type, instrument presence, counts, anatomical landmarks, or image quality. These question types induce different textual and multimodal interactions, while the underlying images exhibit recurrent but fine-grained visual patterns. Consequently, a calibration set can be visually representative but poorly cover the clinical tasks that the model must perform, or it can cover frequent question classes while spending a limited visual budget on atypical images. We therefore view calibration as a multimodal workload-construction problem: the calibration set should jointly represent the target visual distribution and the clinical question distribution under a very small budget.

Our observations on Kvasir-VQA-x1 further motivate this view. Simply replacing generic calibration data with randomly selected in-domain examples is insufficient: under W4A8 MASQuant [15], a random in-domain calibration set produces a 0.0870 METEOR drop relative to the half-precision model. This indicates that the path from a full-precision medical VLM toward a resource-efficient model is sensitive not only to the final quantization precision, but also to which target-domain examples are exposed to the PTQ procedure.

To address this problem, we propose Core-Distribution Calibration (Core-Calib), a training-free and quantizer-agnostic framework designed as a data-centric component of medical VLM compression. CoreCalib explicitly separates three decisions that are often conflated: which clinical question classes should contribute to calibration, which real images best represent the visual modes of each class, and which QA pairs should be drawn from those images. The first stage stratifies the training data by clinical question class. The second embeds images with a frozen DINOv2 encoder [25], reduces the representation with UMAP [23], and uses HDBSCAN [5] with CoDA-style post-processing [36] to retrieve real representatives from high-density regions. The third expands the representatives into their available QA pairs and fills the fixed calibration budget with a class-balanced round-robin policy. The resulting calibration set is passed unchanged to an existing PTQ algorithm. Unlike approaches that introduce a new learned compression component, CoreCalib does not modify the fine-tuned VLM or the internal objective of the PTQ algorithm. Instead, it improves the information presented to the existing quantization procedure. This separation makes the method compatible with different PTQ mechanisms and allows calibration to be optimized independently of the final deployment hardware.

We evaluate CoreCalib on Kvasir-VQA-x1 with three PTQ methods, MASQuant, GPTQ, and QIG, using the same 128-pair calibration budget. CoreCalib obtains the best METEOR among the compared calibration strategies for all three quantizers, and the best ROUGE-L with MASQuant and GPTQ. Under W4A8 MASQuant, it improves METEOR from 0.5672 with generic COCO calibration to 0.6234, recovering approximately 41% of the METEOR degradation relative to the BF16 model. These results show that calibration-set construction is a substantive component of capability-preserving medical VLM compression and provides a practical data-centric step toward resource-constrained clinical deployment.

Our contributions are as follows:

– We identify calibration-data construction as an important component of resource-efficient medical VLM deployment and formulate it as a fixed-budget data selection problem for post-training quantization.

– We propose CoreCalib, a training-free and quantizer-agnostic framework that combines clinical question-class stratification, density-aware visual core discovery, and class-balanced question-answer expansion to construct a compact calibration set from the target medical distribution.

– We systematically evaluate CoreCalib with three representative PTQ methods, namely MASQuant, GPTQ, and QIG, under the same 128-pair calibration budget. CoreCalib achieves the best METEOR with all three quantizers and the best ROUGE-L with two of the three, demonstrating robust capability retention across different quantization mechanisms.

Tien-Dat Dam et al.

References (35)