Manuscript Offprint
arXiv:2608.26848MedFG-VQA: Low-Frequency Memory and Graph Attention for Lightweight Medical VQA
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Medical Visual Question Answering (Med-VQA) holds significant promise for clinical decision support, yet faces challenges due to limited annotated data and the high computational demands of existing large vision-language models. We propose MedFG-VQA, a lightweight framework that leverages a memory bank to augment DCT-based low-frequency features and employs graph-enhanced cross-attention for effective visual-textual alignment. Specifically, our approach features two key components: Frequency-Memory Fusion (FMF), which enhances low-frequency features by retrieving from a learnable memory bank built on DCT decomposition, and Graph-Aware Cross-Attention (GACA), which aligns visual-textual features via cross-attention and refines them through graph-convolutional aggregation. To address data scarcity, we construct SynMed-VQA, a large-scale synthetic dataset comprising over 2 million question-answer pairs across 9 imaging modalities and 10 major organs, generated with GPT-4o. Extensive experiments on SynMed-VQA and three other standard biomedical VQA benchmarks demonstrate that MedFG-VQA achieves competitive or superior performance compared to much larger models while maintaining significantly lower computational costs, highlighting its efficiency and potential for clinical deployment.
1. Introduction
Radiological imaging serves as a cornerstone of modern medicine, producing over 80 million images each year [2]. With the growing demand for diagnostic interpretation, Medical Visual Question Answering (VQA) has emerged

Which of the following are potential pathological implications of debris accumulation in tissue sections?
A: Result of maladaptive healing leading to fibrosis.
B: Indication of tissue necrosis due to ischemic injury or infection.
C: Early sign of malignancy characterized by atypical cell clusters.
D: Marker of ongoing tissue regeneration and repair.
LLaVA-Med: C
Ours: B
Which anatomical regions of the lungs show abnormal opacities in this radiograph?
Qwen3-VL: Based on the provided chest radiograph (an anterior-posterior view), the abnormal opacities are primarily located in the right lower lobe and left lower lobe. Here's the reasoning: The radiograph shows .....
Ours: The opacities are primarily in the right middle and lower lung zones.
Figure 1. Illustration of VLMs evaluated on the SynMedVQA dataset. Among the 6 VLMs, MedFG-VQA achieves the highest overall score. Qualitative VQA comparison between two models, showcasing the effectiveness of MedFG-VQA.
as a promising direction with substantial clinical relevance. By linking visual content in medical images with natural language queries, it enables more effective diagnostic assistance, image retrieval, and clinical decision support.
In recent years, the rapid advancement of Large
Corresponding author.
Language Models (LLMs) and Vision-Language Models (VLMs) [1, 39, 43, 46] has brought new opportunities for the development of medical VQA. However, unlike general-domain VQA, medical VQA faces two major challenges. First, The lack of high-quality annotated data, especially for cross-modal tasks requiring domain-specific medical knowledge. Although several public datasets have been released [10, 15, 23, 27, 28], their limited scale makes them insufficient for training large VLMs. Second, clinical deployment imposes strict constraints on model size and computational resources, while existing models [8, 14, 17, 22, 24, 32] fail to maintain strong diagnostic capability under lightweight configurations.
Motivated by the aforementioned gap, we propose MedFG-VQA, a lightweight medical visual question answering model with frequency graph fusion, achieving efficient learning and strong generalization through structured module design and high-quality synthetic data. First of all, MedFG-VQA employs a pretrained visual backbone and introduces a lightweight FreqMemoryFusion (FMF) module. By retrieving and residually integrating low-frequency priors in the frequency domain, FMF enhances the model's capacity to capture global structural information. Then, we design a Graph-Aware Cross-Attention (GACA) module to jointly model global cross-modal semantics and local visual structure. Given image and text features, GACA achieves global cross-modal alignment through multi-head mutual attention, producing semantically enriched image representations. Meanwhile, a dynamic KNN-based graph convolution captures local spatial relationships among image patches. A gated residual fusion mechanism then adaptively balances these two complementary perspectives, and the resulting multimodal features are fed into an LLM to accomplish the VQA task. Equipped with the above methods, MedFG-VQA seamlessly integrates frequency-domain global modeling and graph-based local structural reasoning. To train MedFG-VQA, we construct a large-scale medical VQA synthetic dataset SynMedVQA comprising 2.059 million samples, generated with the assistance of GPT-4o. The dataset covers diverse medical scenarios and question types, enabling comprehensive model training. As shown in 1, extensive experiments on multiple benchmarks demonstrate that MedFG-VQA achieves competitive performance with significantly reduced model size and computational cost.
Our contributions are as follows:
(1) We introduce SynMedVQA, a large-scale synthetic multimodal dataset generated via GPT-4o, comprising 2.059 million Q&A pairs. The dataset spans 9 imaging modalities across 10 major organs, offering diverse and comprehensive supervision for medical VQA tasks.
(2) We develop FreqMemoryFusion (FMF), a novel module that leverages a learnable, frequency-domain memory bank. FMF retrieves low-frequency components and injects global structural priors through residual fusion, enhancing the robustness and generalization of lightweight models on structurally-oriented medical questions.
(3) We present Graph-Aware Cross-Attention (GACA), which combines cross-modal attention with a feature-adaptive KNN-based GCN. Adaptively fusing global semantic and local topological information via a gated mechanism, GACA improves alignment between fine-grained visual features and textual descriptions.
(4) Extensive experiments and ablation studies on multiple medical VQA benchmarks demonstrate that our approach achieves competitive performance. Notably, it does so using significantly fewer parameters than mainstream large models, validating the feasibility of small vision language models (SVLMs) in clinically relevant scenarios.
Vision Language Model for Medical VQA. Driven by the development of large-scale vision language models, research in medical VQA has also made significant progress. BiomedCoOp [21] leverages LLMs to achieve semantic consistency through prompt ensembling and combines this with a statistic-based prompt selection strategy for knowledge distillation, enabling efficient learning of prompt contexts. LLaVA-Med [24], on the other hand, fine-tunes general VLMs on GPT-4 generated synthetic data, demonstrating remarkable performance on medical multimodal dialogue tasks. More recently, models such as LLADA-MedV [13] employ diffusion-based vision language models and adopt visual instruction tuning to enhance understanding of biomedical images. Despite these advances, existing methods still face challenges in model lightweighting and fine-grained cross-modal feature alignment, limiting their applicability in resource-constrained clinical environments.

Figure 2. The overall architecture of MedFG-VQA. The model consists of a vision encoder, a FreqMemoryFusion(FMF) module, a GraphAware Cross-Attention(GACA) module and a LLM.
Small Vision Language Model. Recently, small or lightweight vision language models (sVLMs) have emerged to address the efficiency and scalability challenges of large VLMs. Models such as SmolVLM [31], MiniGPT [46], and MobileVLM [11] employ compact visual backbones or low-rank adaptation strategies to substantially reduce computational overhead while preserving strong multimodal reasoning capabilities. However, most existing research has focused on developing general-purpose small models and improving performance on broad-domain benchmarks, with comparatively limited efforts devoted to domain-specific or specialized applications such as medical imaging. This gap can be partly attributed to the fact that small models are more dependent on high-quality, domain-relevant training data. Recent work such as DataRater [7] has shown that training with a smaller amount of high-quality data can outperform training on large but noisy datasets, highlighting the crucial role of data quality in small-model performance. In the medical domain, however, the limited availability of carefully curated datasets and privacy constraints further hinder the development of lightweight VLMs tailored for tasks like medical visual question answering.
3. Method
An overview of the proposed MedFG-VQA framework is illustrated in Figure 2. By leveraging a pre-trained vision encoder to extract rich visual features, our method introduces two key components for effective multimodal feature learning. Specifically, the FMF module enhances low-frequency representations by retrieving from a learnable memory bank and residual integration, while the GACA module aligns visual-textual features via cross-attention and aggregates local spatial context through KNN-based graph convolution. The fused multimodal features are fed into a large language model, generating the final answer and enabling accurate, robust performance on medical VQA tasks.
3.1. FreqMemoryFusion
To better exploit the frequency-domain structural properties of visual representations and enhance the model's capacity for global low-frequency modeling, we introduce the Frequency Memory Fusion (FMF) module. Given an input feature , we first transform it into the frequency domain via Discrete Cosine Transform (DCT), decomposing it into low-frequency and high-frequency components. Since low-frequency components predominantly encode global semantic and structural information of the image, we leverage them as query signals for global prior retrieval.
Specifically, we maintain a learnable memory bank and retrieve the top-k memory entries and corresponding similarity weights based on cosine similarity with the current low-frequency feature . A residual weighted fusion strategy then integrates these entries, yielding the enhanced low-frequency representation:
where is a fusion coefficient that balances the contribution between the original feature and the memory-enhanced feature. This design enables the model to incorporate global structural priors while maintaining feature detail fidelity and representation stability. In practice, we fix based on preliminary experiments, which achieves a good trade-off between feature fusion and stability.
Subsequently, the enhanced low-frequency features are concatenated with the original high-frequency components and transformed back to the spatial domain via Inverse Discrete Cosine Transform (IDCT), producing the reconstructed feature . To adaptively integrate the reconstructed and original features, we employ a lightweight gated residual fusion mechanism:
where is a learnable gating parameter and is a linear projection that adaptively fuses the enhanced features with the original input for effective feature refinement.
Learnable Memory. In FMF, a learnable global memory is introduced to preserve global low-frequency representations, where N denotes the number of memory entries. The memory vectors are orthogonally initialized before training and continuously updated during optimization, allowing the memory to gradually learn representative global priors that capture stable low-frequency feature patterns inherent in the data distribution. However, without proper regularization, the learned memories may collapse into redundant or overlapping representations. To address this, we introduce a diversity loss that encourages the memory embeddings to remain distinct and informative:
Here, denotes the vector in the memory bank. By minimizing the off-diagonal similarities, the loss encourages the memory vectors to remain diverse, thereby enhancing the effectiveness of feature fusion.
3.2. Graph-Aware Cross-Attention
In Graph-Aware Cross-Attention(GACA) module, we design both global semantic interactions across modalities and local structural modeling of visual features. Given image features and text features , we first perform layer normalization on both modalities. We then treat the image features as queries while the text features serve as keys and values. Through multi-head cross-attention, we achieve global cross-modal alignment and obtain semantically enriched visual representations .
To further incorporate local spatial relationships, we construct a dynamic KNN graph based on , where each node represents an image patch and edges form according to feature similarity. The adjacency matrix is defined as:
After symmetrizing and normalizing the adjacency matrix to obtain , we apply a graph convolutional layer to propagate and aggregate information from neighboring nodes, thereby enhancing contextual coherence among locally related visual regions:
where denotes a learnable weight matrix and is a non-linear activation function
Finally, a gated residual fusion mechanism is employed to adaptively integrate the cross-modal semantic representation and locally aggregated structural features . Specifically, the gate value is computed from the concatenation of the two feature types, controlling their relative contributions in fusion. The final representation is obtained as:
where denotes the learned gating weights, which are generated by a learnable linear projection followed by a sigmoid activation. This design enables the model to dynamically balance global semantic alignment and local structural aggregation, yielding a multimodal representation that jointly captures both global and local visual information.
Table 1. Overview of datasets statistics, including image and question counts for training, validation, and test splits. Open and Close questions share the same quantities.
| Dataset | Images | Questions | ||||
|---|---|---|---|---|---|---|
| (train | val | test) | (train | val | test) | |
| CHMNIST [18] | 2496 | 1000 | 1504 | 12480 | 5000 | 7520 |
| RETINA [20] | 2108 | 841 | 1268 | 10540 | 4205 | 6340 |
| BTMRI [33] | 2854 | 1141 | 1717 | 14270 | 5705 | 8585 |
| DermaMNIST [40] | 7006 | 1003 | 2005 | 35030 | 5015 | 10025 |
| BUSI [3] | 389 | 155 | 236 | 1945 | 775 | 1180 |
| OCTMNIST [19] | 97476 | 10832 | 1000 | 487380 | 54160 | 5000 |
| KneeXray [9] | 5778 | 826 | 1656 | 28890 | 4130 | 8280 |
| COVID-19 [38] | 10582 | 4232 | 6351 | 52910 | 21160 | 31755 |
| Kvasir [34] | 2000 | 800 | 1200 | 10000 | 4000 | 6000 |
| CTKidney [16] | 6221 | 2487 | 3738 | 31105 | 12435 | 18690 |
| LungColon [6] | 12500 | 5000 | 7500 | 62500 | 25000 | 37500 |
3.3. Training Strategy & Loss Function
For text generation, we employ the cross-entropy loss . To encourage the memory vectors in the FMF module to remain diverse, we compute the diversity loss as described in §3.1. The final training objective is a linear combination of these losses, which can be formulated as:
4. Dataset
4.1. Data Source
We integrate 11 publicly available medical imaging datasets, i.e., BTMRI [33], BUSI [3], CHMNIST [18], COVID-19 [38], CTKidney [16], DermaMNIST [40], KneeXray [9], Kvasir [34], LungColon [6], OCTMNIST [19], and RETINA [20]. These datasets collectively span nine distinct imaging modalities and ten major anatomical regions, offering a comprehensive and diverse benchmark for multimodal medical visual understanding. Specifically, the included imaging modalities encompass magnetic resonance imaging (MRI), computed tomography (CT), X-ray, ultrasound, dermoscopy, histopathology, fundus photography, optical coherence tomography (OCT), and endoscopy. The datasets further cover a wide range of clinical targets and organs, including the brain, breast, lungs, liver and kidneys, retina, knee, and skin, providing both organ-level and cellular-level visual representations. Such a broad coverage enables our model to learn cross-modality feature alignment and generalizable reasoning patterns across heterogeneous medical domains. By consolidating these diverse datasets, we establish a unified and large-scale foundation that enables comprehensive evaluation and robust training of vision language models for Med-VQA. In total, the integrated dataset contains 205,902 medical images, divided

Figure 3. The construction pipeline of SynMedVQA. The pipeline includes prompt template, samples of Q&A pair generated by GPT-4o and the quality control process.
into 149,410 for training, 28,317 for validation, and 28,175 for testing. The data splits strictly follow the configurations of BiomedCoOp [21] to ensure comparability and consistency across benchmarks.
4.2. Data Generation
To support medical-scene-oriented multimodal visual question answering tasks, we constructed the SynMedVQA dataset by leveraging cleaned and structured image-label information and employing GPT-4o as a semantic generation engine to automatically produce Q&A pairs, the overall pipeline is shown as Figure 3. We develop a unified and adaptable structured prompting framework that casts the model as a senior medical imaging expert and dynamically tailors question generation to the clinical and radiological characteristics of each dataset. This design ensures domain-specific relevance while maintaining structural consistency across datasets. All generated questions follow a consistent schema targeting one of four core aspects: (1) imaging features (e.g., signal intensity, enhancement pattern, morphology), (2) visible anatomical structures, (3) pathological manifestations (e.g., mass effect, edema, invasion), and (4) clinical implications (e.g., symptoms, functional impact, management considerations). Within each aspect, emphasis is customized per disease domain, for instance, brain tumor questions prioritize contrast enhancement and midline shift, pulmonary nodule questions focus on margin characteristics and mediastinal involvement, and liver lesion questions highlight segmental localization and vascular invasion.
For each image, we automatically generate two types of questions via GPT-4o. Open-ended questions include queries such as “Which organ contains the lesion marked in the image?” and “What is the primary abnormality shown in this image?”. For multiple-choice questions, 75% are de-

Figure 4. Sunburst visualization of dataset category proportions, where the inner circle corresponds to datasets and the outer circle to category ratios within each dataset.
signed with one correct answer and three distractors, while the remaining 25% contain four distractors without a correct answer, enhancing both discriminability and robustness.
To ensure clinical accuracy and interpretability, prompt templates are integrated with original annotations, with multiple customized variants designed to address the diversity of imaging modalities and organ-specific characteristics across datasets. Each prompt is structured into System and User components: the former establishes the expert role, “You are a senior medical imaging specialist in DATA_MODAL interpretation and DISEASE_DOMAIN diagnosis”, while the latter provides the image, lesion category, and specific task instructions. JSON formatting is enforced for all outputs to enable efficient rule-based vali-dation. Given the richness and diversity of these prompts, the complete designs and specifications are provided in the Appendix to facilitate reproducibility and future research.
To ensure high quality, the generated Q&A pairs are subjected to a rigorous three-step validation process. First, we apply automated, rule-based filtering to discard duplicate, ambiguous, or incomplete questions. Next, a random subset is reviewed using a combination of Qwen2.5-VL [5] and manual human inspection. This step verifies that the questions are clear, complete, and relevant. In the final stage, we conduct a consistency check to ensure questions, answers, and original image annotations are logically aligned, eliminating any contradictions. This comprehensive process guarantees the dataset is high-quality and well-suited for training and evaluating medical VQA models.
The SynMedVQA dataset comprises 2,059,020 Q&A pairs, equally split between open-ended and multiple-choice questions. The questions cover multiple aspects, including anatomical structures, imaging characteristics, pathological changes, and clinical manifestations. This comprehensive scope provides a diverse and clinically grounded benchmark for advancing multimodal reasoning in medical vision language models. Table 1 details the dataset's statistics, while Figure 4 illustrates the category distributions using a sunburst visualization. In this figure, the inner circle represents the datasets, and the outer circle shows the category proportions within each.
5. Experiments
5.1. Experimental Setup
Datasets and Metrics. Our model is trained and validated on the SynMedVQA dataset mentioned at §4. Meanwhile, to further evaluate its generalization ability, we also conduct experiments on three public medical VQA benchmarks: SLAKE [27], VQA-RAD [23], and PathVQA [15]. Following the evaluation protocol of LLaVA-Med [24], we measure model performance using answer accuracy. For closed-ended questions, correctness is directly determined by comparing the model's response with the ground truth. For open-ended questions, we evaluate model accuracy by constructing multiple-choice options. These options are formed by pairing the reference answer with several alternative responses sampled from the training set, and the model is assessed on its ability to select the correct one.
Implementation Details. We adopt SigLIP2-so400m [41] as the visual backbone and freeze its parameters during training. To improve computational efficiency, modality projection (MP) [37] is applied to reduce the number of visual tokens. The large language model is SmoILM2-360M-Instruct [4], along with its corresponding tokenizer. Both FMF and GACA modules are randomly initialized before training. After initialization, the entire model is trained on the proposed SynMedVQA dataset for 2 epochs. The learning rates are set as follows: 5e-5 for the LLM, 0.003 for the modality projector, and 0.0015 for the FMF and GACA modules. We use AdamW [30] as the optimizer, and all experiments are conducted on 8×4090 GPUs.
5.2. Comparison with Previous Studies
We systematically evaluate model performance on the SynMedVQA benchmark and compare it with five representative vision language models: InternVL3.5 [42], MiniCPM-V 4.0 [44], Qwen3-VL [43], Gemma3 [39], and LLaVA-Med v1.5 [24]. To ensure fair comparison, all models are evaluated under the same data splits and metric. Notably, the baseline models use their publicly available pretrained weights without additional fine-tuning on SynMedVQA.
As shown in Table 2, our model achieves an average accuracy of 0.6441, surpassing next-best model Qwen3-VL by approximately 9.5%, despite having only 795M parameters significantly fewer than all other models. Notably, the model demonstrates superior performance on tasks such as OCTMNIST, CTKidney, COVID-19, and BTMRI, which involve complex anatomical structures or significant lesion variations. These results suggest that the proposed frequency-domain enhancement and cross-modal graph structure modeling effectively improve multimodal understanding and diagnostic reasoning, even under a lightweight model design.
We further evaluate our model on three public medical VQA benchmarks: SLAKE [27], VQA-RAD [23], and PathVQA [15], covering both closed-ended and open-ended question types. The results are summarized in Table 3.
Although our model contains only 795M parameters, which is significantly smaller than the other compared models, it achieves competitive performance across multiple benchmarks. In open-ended tasks, it attains the highest accuracy among all models, demonstrating effective generalization in reasoning over complex semantic questions. LLaVA-Med shows low performance on open-ended tasks because it does not follow the instructions to provide direct answer choices, making accuracy evaluation unsuitable. On closed-ended questions, some larger models perform slightly better, which can be attributed to their substantially larger pretraining datasets while our model only trained on SynMedVQA.
5.3. Ablation Studies
To verify the effectiveness of the proposed Frequency-domain Memory Fusion (FMF) and Graph-based Attention Cross-modal Alignment (GACA) modules, we conducted a series of ablation experiments. The experimental results are presented in Table 4 and Table 5.
It can be observed in Table 4(a) that removing both FMF and GACA modules leads to a significant performance
Table 2. Comparison of model performance on SynMedVQA. All baseline models use their publicly available pretrained weights.
| Method | Params | OCTMNIST | CHMNIST | LungColon | CTKidney | COVID-19 | BTMRI | KneeXray | RETINA | Kvasir | DermalMNIST | BUST | Average |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| InternVL3.5 [42] | 1B | 0.538 | 0.4569 | 0.4802 | 0.4714 | 0.4943 | 0.4261 | 0.5147 | 0.4355 | 0.4588 | 0.5662 | 0.433 | 0.4846 |
| MiniCPM-V 4.0 [44] | 4B | 0.5374 | 0.4964 | 0.4987 | 0.52 | 0.503 | 0.4425 | 0.4838 | 0.4276 | 0.4503 | 0.5288 | 0.5033 | 0.4964 |
| Qwen3-VL [43] | 4B | 0.5872 | 0.5334 | 0.5473 | 0.5547 | 0.5601 | 0.4869 | 0.5647 | 0.4877 | 0.5083 | 0.6076 | 0.5559 | 0.5492 |
| Gemma3 [39] | 4B | 0.5208 | 0.4537 | 0.4474 | 0.4927 | 0.4751 | 0.4162 | 0.4739 | 0.4202 | 0.4142 | 0.4387 | 0.4483 | 0.4590 |
| LLaVA-Med [24] | 7B | 0.4834 | 0.4961 | 0.5395 | 0.3991 | 0.3165 | 0.4096 | 0.5272 | 0.4719 | 0.3703 | 0.5788 | 0.4720 | 0.4834 |
| Ours | 795M | 0.7056 | 0.5372 | 0.6493 | 0.6239 | 0.6733 | 0.6155 | 0.6609 | 0.5372 | 0.5440 | 0.7225 | 0.6284 | 0.6441 |
Table 3. Comparative results on three public medical VQA benchmarks. The best and second-best results are indicated in bold and underline, respectively.
| Model | Params | SLAKE [27] | VQA-RAD [23] | PathVQA [15] | |||||
|---|---|---|---|---|---|---|---|---|---|
| Vision | LLM | Total | Closed | Open | Closed | Open | Closed | Open | |
| InternVL3.5 [42] | 0.3B | 0.8B | 1.1B | 0.6459 | 0.8156 | 0.6140 | 0.6180 | 0.5694 | 0.3187 |
| MiniCPM-V 4.0 [44] | 0.4B | 3.0B | 4.1B | 0.4246 | 0.8315 | 0.7353 | 0.7978 | 0.6376 | 0.4513 |
| Qwen3-VL [43] | 0.4B | 4.0B | 4.4B | 0.5120 | 0.9006 | 0.7868 | 0.8764 | 0.6679 | 0.5249 |
| Gemma3 [39] | 0.4B | 0.6B | 3.2B | 0.5287 | 0.7337 | 0.6507 | 0.8090 | 0.8410 | 0.4608 |
| LLaVA-Med [24] | 0.3B | 7.2B | 7.5B | 0.6567 | 0.1232 | 0.6434 | 0.0730 | 0.7308 | 0.2828 |
| Ours | 412M | 316M | 795M | 0.5502 | 0.9595 | 0.6324 | 0.7865 | 0.6694 | 0.8062 |
Table 4. Ablation studies of the contribution of FMF and GACA, the effect of the memory bank size in FMF, and the impact of the loss balance coefficient .
| FMF | GACA | Acc. | Size | Acc. | λ | Acc. |
|---|---|---|---|---|---|---|
| 0.6270 | 16 | 0.4313 | 0.3 | 0.6415 | ||
| ✓ | 0.6242 | 32 | 0.6385 | 0.5 | 0.6441 | |
| ✓ | 0.4170 | 64 | 0.6441 | 0.7 | 0.6427 | |
| ✓ | ✓ | 0.6441 | 128 | 0.2771 | 0.9 | 0.6410 |
(a)
(b)
(c)
drop, with accuracy falling to 0.627. The combined application of FMF and GACA leads to significant performance gains, effectively strengthening global feature modeling and cross-modal semantic alignment. When both modules are integrated, the accuracy rises to 0.6441, substantially outperforming the baseline. This demonstrates that FMF effectively strengthens global structural perception of visual features, while GACA enhances semantic interactions between images and text, and their synergistic combination leads to a marked improvement in overall performance.
Table 4(b) shows the impact of memory bank size on model performance. Increasing the memory size from 16 to 64 notably improves accuracy, indicating that a larger memory helps capture richer contextual representations. However, further increasing it to 128 leads to a sharp drop, suggesting that excessive memory introduces redundant or
Table 5. Ablation studies on different frequency-domain transformation strategies and module against standard cross-attention.
| Type | Acc. |
|---|---|
| - | 0.6058 |
| FFT | 0.5585 |
| DCT | 0.6441 |
(a)
| Method | Acc. |
|---|---|
| - | - |
| CA | 0.6407 |
| GACA | 0.6441 |
(b)
noisy information that hinders retrieval. Thus, a memory bank size of 64 is adopted as a balanced choice.
Table 4(c) presents the effect of the loss balance factor on model performance. As shown in the table, varying from 0.3 to 0.9 results in only minor fluctuations in accuracy, with the best performance achieved at , reaching an accuracy of 0.6441. Combined with the findings from Table 4(a) and Table 4(b), this indicates that the model's performance is relatively insensitive to the exact choice of . Nevertheless, the memory bank diversity loss remains essential, as it contributes to the richness of the representations captured in the memory bank and underpins the improvements observed in global feature modeling and cross-modal alignment.
Table 5(a) analyzes the effectiveness of frequency-domain transformations in the FMF module. We compare directly feeding image features, applying Fast Fourier Transform (FFT), and applying Discrete Cosine Transform

What are the clinical implications of such a normal chest radiograph for patient management?

A normal chest radiograph indicates healthy lung function, reducing suspicion of respiratory infection, obstructive or restrictive lung diseases, or structural abnormalities, and may serve as a baseline for future assessments.
Okay, let's analyze this chest radiograph and discuss its clinical implications. Assessment of the Radiograph This chest radiograph demonstrates what appears to be a relatively normal appearance of the lungs. Here's a breakdown of what we can see:
Lung Fields ...
Mediastinal Contour: The mediastinum ...
Technique: The quality of the radiograph (patient positioning, technique) can also impact the diagnostic accuracy.
Gemma3


Ours

Given the normal findings, no additional imaging or intervention is necessary at this time.
(a)
Which anatomical structures are prominently visible in this knee joint radiograph?

The image shows the distal femur and proximal tibia with the joint space, as well as the articular surfaces and subchondral bone regions.

In this knee joint radiograph, the following anatomical structures are prominently visible:
-
Femoral condyles – The rounded ...
-
Tibial plateau – The flat, articular ...
-
Joint space – The gap between ...
-
Patellar surface (inferiorly) – Although the patella (kneecap) is not fully visible ...
Qwen3-VL

Ours

Visible structures include the joint line, the articular surfaces of the femur and tibia, and the joint space.
(b)


What are the characteristic imaging features of this extra-axial mass located along the dural surface?
A: The lesion demonstrates a dural tail sign suggesting dural invasion.
B: It typically causes hyperostosis of the adjacent skull bone.
C: The tumor often presents with rounded or lobulated shape.
D: There is no infiltration of the adjacent brain parenchyma into the mass.
Answer with the option's letter from the given choices directly.

A
D
LLaVA-Med
(c)
Figure 5. Qualitative results against (a) Gemma3-4B, (b) Qwen3-VL-4B, and (c) LLaVA-Med v1.5. Responses are abridged for brevity.
(DCT). FFT achieves the best performance with an accuracy of 0.6441, outperforming both the direct and DCT-based settings. This demonstrates that FFT preserves both magnitude and phase information, enabling richer frequency representations, whereas DCT loses phase cues that are crucial for maintaining structural consistency.
Table 5(b) evaluates the proposed GACA module against the standard cross-attention(CA). Replacing CA with GACA consistently improves accuracy, indicating that modeling local geometric relationships further enhances the model's multimodal reasoning capability.
5.4. Qualitative Analysis
To evaluate MedFG-VQA against mainstream models, we conducted comparative experiments across multi-organ, multi-modal medical datasets. As shown in Figure 5(a), for lung X-ray questions, Gemma3 provides lengthy, detailed descriptions that include redundant information and overly long reasoning chains, with recommendations like “further examination is required” that may lead to overdiagnosis. In contrast, our model delivers concise, accurate answers, directly stating “no additional imaging or intervention is required”. In Figure 5(b), for knee X-rays, Qwen3-VL describes multiple anatomical structures, some outside the visible range, while our model focuses on clearly visible key structures, such as the joint line, femoral and tibial articular surfaces, and joint space, with a succinct and targeted phrasing. In Figure 5(c), for a typical extra-axial mass on the dura mater, our model correctly identifies the lesion, while LLaVA-Med provides only a broad, non-specific description, missing critical diagnostic information. Overall, these examples demonstrate our model’s greater accuracy, clarity, and clinical relevance in medical visual question answering.
6. Conclusion
We present MedFG-VQA, a lightweight medical visual question answering (VQA) approach developed to overcome the dual challenges of data scarcity and computational constraints in clinical settings. Our model integrates global frequency-domain priors through FreqMemoryFusion (FMF) and uses a Graph-Aware Cross-Attention (GACA) mechanism to align visual-textual features while aggregating local structural information. This compact architecture delivers strong performance, demonstrating the feasibility of efficient vision language models for practical medical applications. To further facilitate research and development, we also constructed SynMedVQA, a large-scale medical VQA dataset with 2.059 million samples.
Limitation. The quality and diversity of the generated Q&A pairs are inherently constrained by the capability boundaries of the underlying model. This dependency may hinder the framework's adaptability to emerging or novel imaging patterns that extend beyond the model's learned representations. Besides, our dataset is constructed based on single-view images, whereas practical clinical scenarios often involve multi-view and multi-modal imaging data, requiring joint reasoning and cross-modal integration for accurate diagnosis and assessment.
Acknowledgement. This work was supported by the National Natural Science Foundation of China (No. 62472222, U25A20442, 62427808), Natural Science Foundation of Jiangsu Province (No. BK20240080)
References
[1] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023. 2
[2] Yasmeena Akhter, Richa Singh, and Mayank Vatsa. Ai-based radiodiagnosis using chest x-rays: A review. Frontiers in big data, 6:1120989, 2023. 1
[3] Walid Al-Dhabyani, Mohammed Gomaa, Hussien Khaled, and Aly Fahmy. Dataset of breast ultrasound images. Data in brief, 28:104863, 2020. 4
[4] Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, Gabriel Martín Blázquez, Guilherme Penedo, Lewis Tunstall, Andrés Marafioti, Hynek Kydlíček, Agustín Piqueres Lajarín, Vaibhav Srivastav, Joshua Lochner, Caleb Fahlgren, Xuan-Son Nguyen, Clémentine Fourrier, Ben Burtenshaw, Hugo Larcher, Haojun Zhao, Cyril Zakka, Mathieu Morlon, Colin Raffel, Leandro von Werra, and Thomas Wolf. Smollm2: When smol goes big – data-centric training of a small language model, 2025. 6
[5] Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, Humen Zhong, Yuanzhi Zhu, Mingkun Yang, Zhao-hai Li, Jianqiang Wan, Pengfei Wang, Wei Ding, Zheren Fu, Yiheng Xu, Jiabo Ye, Xi Zhang, Tianbao Xie, Zesen Cheng, Hang Zhang, Zhibo Yang, Haiyang Xu, and Junyang Lin. Qwen2.5-vl technical report, 2025. 6
[6] Andrew A Borkowski, Marilyn M Bui, L Brannon Thomas, Catherine P Wilson, Lauren A DeLand, and Stephen M Mastorides. Lung and colon cancer histopathological image dataset (lc25000). arXiv preprint arXiv:1912.12142, 2019. 4
[7] Dan A. Calian, Gregory Farquhar, Iurii Kemaev, Luisa M. Zintgraf, Matteo Hessel, Jeremy Shar, Junhyuk Oh, András György, Tom Schaul, Jeffrey Dean, Hado van Hasselt, and David Silver. Datarater: Meta-learned dataset curation, 2025. 3
[8] Junying Chen, Chi Gui, Ruyi Ouyang, Anningzhe Gao, Shunian Chen, Guiming Hardy Chen, Xidong Wang, Ruifei Zhang, Zhenyang Cai, Ke Ji, et al. Huatuogpt-vision, towards injecting medical visual knowledge into multimodal llms at scale. arXiv preprint arXiv:2406.19280, 2024. 2
[9] Pingjun Chen. Knee osteoarthritis severity grading dataset. Mendeley Data, 1(10.17632):30784984, 2018. 4
[10] Yanyuan Chen, Dexuan Xu, Yu Huang, Songkun Zhan, Hanpin Wang, Dongxue Chen, Xueping Wang, Meikang Qiu, and Hang Li. Mimo: A medical vision language model with visual referring multimodal input and pixel grounding multimodal output. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 24732–24741, 2025. 2
[11] Xiangxiang Chu, Limeng Qiao, Xinyang Lin, Shuang Xu, Yang Yang, Yiming Hu, Fei Wei, Xinyu Zhang, Bo Zhang, Xiaolin Wei, and Chunhua Shen. Mobilevlm : A fast, strong and open vision language assistant for mobile devices, 2023. 3
[12] Haiwen Diao, Xiaotong Li, Yufeng Cui, Yueze Wang, Haoge Deng, Ting Pan, Wenxuan Wang, Huchuan Lu, and Xinlong Wang. Evev2: Improved baselines for encoder-free vision-language models. arXiv preprint arXiv:2502.06788, 2025. 2
[13] Xuanzhao Dong, Wenhui Zhu, Xiwen Chen, Zhipeng Wang, Peijie Qiu, Shao Tang, Xin Li, and Yalin Wang. Llada-medv: Exploring large language diffusion models for biomedical image understanding. arXiv preprint arXiv:2508.01617, 2025. 2
[14] Xiaotang Gai, Jiaxiang Liu, Yichen Li, Zijie Meng, Jian Wu, and Zuozhu Liu. 3d-rad: A comprehensive 3d radiology med-vqa dataset with multi-temporal analysis and diverse diagnostic tasks, 2025. 2
[15] Xuehai He, Yichen Zhang, Luntian Mou, Eric Xing, and Pengtao Xie. Pathvqa: 30000+ questions for medical visual question answering. arXiv preprint arXiv:2003.10286, 2020. 2, 6, 7
[16] Md Nazmul Islam, Mehedi Hasan, Md Kabir Hossain, Md Golam Rabiul Alam, Md Zia Uddin, and Ahmet Soylu. Vision transformer and explainable transfer learning models for auto detection of kidney cyst, stone and tumor from ct-radiography. Scientific Reports, 12(1):11440, 2022. 4
[17] Songtao Jiang, Yuan Wang, Sibo Song, Yan Zhang, Zijie Meng, Bohan Lei, Jian Wu, Jimeng Sun, and Zuozhu Liu. Omniv-med: Scaling medical vision-language model for universal visual understanding, 2025. 2
[18] Jakob Nikolas Kather, Cleo-Aron Weis, Francesco Bianconi, Susanne M Melchers, Lothar R Schad, Timo Gaiser, Alexander Marx, and Frank Gerrit Zöllner. Multi-class texture analysis in colorectal cancer histology. Scientific reports, 6(1):1–11, 2016. 4
[19] Daniel S Kermany, Michael Goldbaum, Wenjia Cai, Carolina CS Valentim, Huiying Liang, Sally L Baxter, Alex McKeown, Ge Yang, Xiaokang Wu, Fangbing Yan, et al. Identifying medical diagnoses and treatable diseases by image-based deep learning. cell, 172(5):1122–1131, 2018. 4
[20] Thomas Köhler, Attila Budai, Martin F Kraus, Jan Odstrčilik, Georg Michelson, and Joachim Hornegger. Automatic no-reference quality assessment for retinal fundus images using vessel segmentation. In Proceedings of the 26th IEEE international symposium on computer-based medical systems, pages 95–100. IEEE, 2013. 4
[21] Taha Koleilat, Hojat Asgariandehkordi, Hassan Rivaz, and Yiming Xiao. Biomedcoop: Learning to prompt for biomedical vision-language models. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 14766–14776, 2025. 2, 5
[22] Yuxiang Lai, Jike Zhong, Ming Li, Shitian Zhao, Yuheng Li, Konstantinos Psounis, and Xiaofeng Yang. Med-r1: Reinforcement learning for generalizable medical reasoning in vision-language models, 2025. 2
[23] Jason J Lau, Soumya Gayen, Asma Ben Abacha, and Dina Demner-Fushman. A dataset of clinically generated visual questions and answers about radiology images. Scientific data, 5(1):1–10, 2018. 2, 6, 7
[24] Chunyuan Li, Cliff Wong, Sheng Zhang, Naoto Usuyama, Haotian Liu, Jianwei Yang, Tristan Naumann, Hoifung Poon, and Jianfeng Gao. Llava-med: Training a large language-and-vision assistant for biomedicine in one day. NeurIPS, 36:28541–28564, 2023. 2, 6, 7
[25] Junnan Li, Dongxu Li, Caiming Xiong, and Steven Hoi. Blip: Bootstrapping language-image pre-training for unified vision-language understanding and generation, 2022. 2
[26] Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models, 2023. 2
[27] Bo Liu, Li-Ming Zhan, Li Xu, Lin Ma, Yan Yang, and Xiao-Ming Wu. Slake: A semantically-labeled knowledge-enhanced dataset for medical visual question answering. In 2021 IEEE 18th international symposium on biomedical imaging (ISBI), pages 1650–1654. IEEE, 2021. 2, 6, 7
[28] Bo Liu, Ke Zou, Li-Ming Zhan, Zexin Lu, Xiaoyu Dong, Yidi Chen, Chengqiang Xie, Jiannong Cao, Xiao-Ming Wu, and Huazhu Fu. Gemex: A large-scale, groundable, and explainable medical vqa benchmark for chest x-ray diagnosis. In ICCV, pages 21310–21320, 2025. 2
[29] Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning, 2023. 2
[30] Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization, 2019. 6
[31] Andrés Marafioti, Orr Zohar, Miquel Farré, Merve Noyan, Elie Bakouch, Pedro Cuenca, Cyril Zakka, Loubna Ben Allal, Anton Lozhkov, Nouamane Tazi, Vaibhav Srivastav, Joshua Lochner, Hugo Larcher, Mathieu Morlon, Lewis Tunstall, Leandro von Werra, and Thomas Wolf. Smolvlm: Redefining small and efficient multimodal models, 2025. 3
[32] Vishwesh Nath, Wenqi Li, Dong Yang, Andriy Myronenko, Mingxin Zheng, Yao Lu, Zhijian Liu, Hongxu Yin, Yucheng Tang, Pengfei Guo, Can Zhao, Ziyue Xu, Yufan He, Greg Heinrich, Yee Man Law, Benjamin Simon, Stephanie Harmon, Stephen Aylward, Marc Edgar, and Michael Zephyr. Vila-m3: Enhancing vision-language models with medical expert knowledge, 2025. 2
[33] Msoud Nickparvar. Brain tumor mri dataset, 2021. 4
[34] Konstantin Pogorelov, Kristin Ranheim Randel, Carsten Griwodz, Sigrun Losada Eskeland, Thomas de Lange, Dag Johansen, Concetto Spampinato, Duc-Tien Dang-Nguyen, Mathias Lux, Peter Thelin Schmidt, et al. Kvasir: A multi-class image dataset for computer aided gastrointestinal disease detection. In Proceedings of the 8th ACM on Multimedia Systems Conference, pages 164–169, 2017. 4
[35] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PmLR, 2021. 2
[36] Miao Rang, Zhenni Bi, Chuanjian Liu, Yehui Tang, Kai Han, and Yunhe Wang. Eve: Efficient multimodal vision language models with elastic visual experts. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 6694–6702, 2025. 2
[37] Wenzhe Shi, Jose Caballero, Ferenc Huszár, Johannes Totz, Andrew P Aitken, Rob Bishop, Daniel Rueckert, and Zehan Wang. Real-time single image and video super-resolution using an efficient sub-pixel convolutional neural network. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 1874–1883, 2016. 6
[38] Anas M Tahir, Muhammad EH Chowdhury, Amith Khan-dakar, Tawsifur Rahman, Yazan Qiblawey, Uzair Khurshid, Serkan Kiranyaz, Nabil Ibtehaz, M Sohel Rahman, Somaya Al-Maadeed, et al. Covid-19 infection localization and severity grading from chest x-ray images. Comput. Biol. Med., 139:105002, 2021. 4
[39] Gemma Team, Aishwarya Kamath, Johan Ferret, Shreya Pathak, Nino Vieillard, Ramona Merhej, Sarah Perrin, Tatiana Matejovicova, Alexandre Ramé, Morgane Rivière, et al. Gemma 3 technical report. arXiv preprint arXiv:2503.19786, 2025. 2, 6, 7
[40] Philipp Tschandl, Cliff Rosendahl, and Harald Kittler. The ham10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions. Scientific data, 5(1):1–9, 2018. 4
[41] Michael Tschannen, Alexey Gritsenko, Xiao Wang, Muhammad Ferjad Naeem, Ibrahim Alabdulmohsin, Nikhil Parthasarathy, Talfan Evans, and Lucas Beyer. Siglip 2: Multilingual vision-language encoders with improved semantic understanding, localization, and dense features, 2025. 6
[42] Weiyun Wang, Zhangwei Gao, Lixin Gu, Hengjun Pu, Long Cui, Xingguang Wei, Zhaoyang Liu, Linglin Jing, Shenglong Ye, Jie Shao, et al. Internvl3. 5: Advancing open-source multimodal models in versatility, reasoning, and efficiency. arXiv preprint arXiv:2508.18265, 2025. 6, 7
[43] An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025. 2, 6, 7
[44] Yuan Yao, Tianyu Yu, Ao Zhang, Chongyi Wang, Junbo Cui, Hongji Zhu, Tianchi Cai, Haoyu Li, Weilin Zhao, Zhihui He, et al. Minicpm-v: A gpt-4v level mllm on your phone. arXiv preprint arXiv:2408.01800, 2024. 6, 7
[45] Sheng Zhang, Yanbo Xu, Naoto Usuyama, Hanwen Xu, Jaspreet Bagga, Robert Tinn, Sam Preston, Rajesh Rao, Mu Wei, Naveen Valluri, Cliff Wong, Andrea Tupini, Yu Wang, Matt Mazzola, Swadheen Shukla, Lars Liden, Jianfeng Gao, Angela Crabtree, Brian Piening, Carlo Bifulco, Matthew P. Lungren, Tristan Naumann, Sheng Wang, and Hoifung Poon. Biomedclip: a multimodal biomedical foundation model pretrained from fifteen million scientific image-text pairs, 2025. 2
[46] Deyao Zhu, Jun Chen, Xiaoqian Shen, Xiang Li, and Mohamed Elhoseiny. Minigpt-4: Enhancing vision-language understanding with advanced large language models. arXiv preprint arXiv:2304.10592, 2023. 2, 3