Multimodal Medical Image Parsing with Task-Specific Low-Rank Adapters
Authors: Taha Sabir, Alberto Montero Molina, Thinh Quang Ly, Veronika Dmitrenko, Mohammad Yaqub, Tausifa Jan Saleem
Organizations: Department of Computer Science, Gettysburg College, Gettysburg, PA 17325, USA · Higher School of Computing (ESCOM), Instituto Politécnico Nacional (IPN), Mexico City 07738, Mexico · Department of Computer Science and Engineering, Michigan State University, East Lansing, MI 48824, USA · Faculty of Computer Science and Faculty of Economic Sciences, HSE University, Moscow, Russia · Computing and Mathematical Sciences Division, Mohamed bin Zayed University of Artificial Intelligence, Abu Dhabi, United Arab Emirates
Adapting a single vision-language model to medical image parsing requires training choices that reflect the demands of each task. We study task-specific adaptation with Qwen3.5-9B for FLARE 2026 Task 3, covering six task families and seven imaging modalities. Our system couples a shared, frozen 4-bit backbone with LoRA adapters selected from the input question. We customize adapter ranks and prompts, rebalance rare classification targets, and supplement regression training with dermatology classification examples. On the fixed internal holdout, the task-specific adapters achieve a dataset-macro balanced accuracy of 0.7791 for classification, a dataset-macro micro-F1 of 0.6286 for multi-label classification, a counting mean absolute error (MAE) of 11.73, a dataset-macro detection F1 of 0.8914, a dataset-macro regression MAE of 9.78, and a report-generation CRIMSON score of 0.8204. On the organizer's 1,703-example hidden-validation set, the submitted system achieves 0.8496 classification balanced accuracy, 0.5338 sample-averaged multi-label F1, and 14.5950 regression MAE. The final 30.1 GB container averages 3.1 seconds per case, including model loading, and produces identical outputs across repeated verification runs. The benefits vary across tasks, supporting the use of task-specific adapter configurations and image budgets within a shared medical vision-language model. Code is available at https://github.com/TahaSabir0/FLARE26-Hexapus.
Figures & tables
Figure 1: Routed inference with a shared quantized backbone. The question selects a specialist or the general fallback, together with the image budget and prompt used for answer generation.
Route
Data scope
Pixels
LoRA r/ α
Prompt
Output
Classification
Full labeled pool, oversampled
20482
32/64
Bare
Label string
Multi-label classification
Full labeled pool
20482
64/128
Medical
Label set
Counting
Full labeled pool
20482
8/16
Counting
Numeric string
Detection
Full labeled pool
20482
8/16
Bare
Nested boxes
Regression
A ∪ B + bcn20000 donor mixture
20482
8/16
Bare
Numeric string
Report generation
A ∪ B
7682
8/16
Bare
Free text
Table 1: Per-route configuration of the proposed system. Pixel values denote maximum image-area budgets, not forced square resizing.
Figure 2: Image-grouped development partitions and configuration-screening subsets. Percentages are approximate; A′ and B′ each contain 30% of their parent partition. Public-validation images overlapping the organizer training data were removed.
Component
Setting
System
Ubuntu 22.04.5 LTS (A5000 workstation)
CPU / RAM
32 cores / 256 GB (A5000 workstation)
GPUs
NVIDIA RTX A5000 (24 GB)
NVIDIA RTX PRO 6000 Blackwell (96 GB)
Framework
PyTorch 2.11.0, CUDA 12.8
Training library
LLaMA-Factory 0.9.5
Table 2: Development environment.
Parameter
Setting
Epochs
3
Effective batch size
8
Optimizer
AdamW
Initial learning rate
2×10−4
Learning rate schedule
Linear decay, 3% warm-up
Maximum sequence length
8,192 tokens
Table 3: Shared training settings for the QLoRA adapters.
Figure 3: Zero-shot and adapted Qwen3.5-9B on internal and public-validation data, using the protocols in Section 3.1 . BA denotes balanced accuracy; multi-label F1 is micro-averaged within each dataset. Task scores are dataset macros, except single-dataset counting and report generation. Report means use the same successfully scored cases for both models; no format-assisted report run was performed. Public validation has no regression cases. Arrows indicate the better direction.
Task
Dataset
Metric
n
Resolution
Qwen3.5-9B
Classification
CMMD
BA
357
20482
0.5970
BCN20000
BA
286
20482
0.6900
Dental
BA
420
20482
0.6700
Neojaundice
BA
60
20482
0.8100
Bone marrow
BA
72
20482
0.8660
BUS-UCLM
BA
52
20482
0.9190
Table 4: Per-dataset results of the route-matched Qwen3.5-9B adapters on the internal holdout. The report score uses all 781 adapted-model scores; Fig. 3 uses the 780 reports jointly scored with zero-shot.
Task
Metric
n
Score
Classification
Balanced accuracy ↑
1,126
0.8496
Multi-label classification
Sample-averaged F1 ↑
477
0.5338
Regression
MAE ↓
100
14.5950
Table 5: Official hidden-validation performance of the submitted Qwen3.5-9B system. Scores are pooled by task.
(a) General versus task-specific adapters
Task
Metric
General
Specialist
Classification
BA ↑
0.7348
0.7695
Multi-label classification
F1 ↑
0.6157
0.6130
Counting
MAE ↓
14.3400
13.4500
Detection
F1 ↑
0.8876
0.9194
Regression
MAE ↓
12.1600
10.1800
Table 6: Configuration ablations on the internal holdout. (a) General adapter versus task specialists at matched 7682 input. (b) Resolution comparisons for task specialists. Regression is the mean MAE over two datasets.
Figure 4: Representative successes or low-error predictions (left) and failures (right). Classification and detection use non-overlapping validation-public cases; regression uses the internal holdout because public validation has no regression cases. Blue boxes show ground truth and orange boxes show predictions. All examples use task-specific A∪B adapters.
Measure
Observed
Limit or check
Mean runtime (incl. model loading)
3.1 s/case
≤6.57 s/case
Container image size
30.1 GB
≤35 GB
Repeated-run identity
32/32 cases
Identical outputs
Table 7: Final container verification on 32 cases covering all six tasks.
Balanced accuracy
Multi-label F1
Detection F1
MAE
0.8585
0.5310
0.8633
18.5286
Table 8: Organizer-reported final-testing results for Hexapus.
Requirements
Answer
A meaningful title
Yes
The number of authors ( ≤ 6)
6
Author affiliations and ORCID
Yes
Corresponding author email is presented
Yes
Validation scores are presented in the abstract
Yes
Introduction includes at least three parts: background, related work, and motivation
Yes
Table 9: Checklist Table. Please fill out this checklist table in the answer column.
School of Computer Science and Engineering, Southeast University, Nanjing 211189, China · School of Biological Science & Medical Engineering, Southeast University, Nanjing 211189, China