NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

$M^3 QuestionIng$: Multi-modal Multi-span Medical Question Answering

Anisha Saha, Vaibhav Rathore, Abhisek Tiwari, Akash Ghosh, Sai Ruthvik Edara, Sriparna SahaarXiv 2026

TL;DR

The paper introduces $M^3QuestionIng$, a novel dataset and framework for multimodal, multi-span medical question answering. Unlike traditional systems that extract a single continuous text block, this framework ($M^3QAFrame$) extracts answers scattered across multiple non-contiguous text segments and pairs them with relevant illustrative images. By utilizing domain-specific encoders and a sparse attention mechanism, it significantly outperforms both standard text-based models and state-of-the-art Vision-Language Models (VLMs) like GPT-4o.

What Problem Does This Paper Address?

When you look up a medical condition online, the answer rarely sits in a single, neat paragraph. Consumer health materials (like WebMD articles) are complex: they contain long textual descriptions interspersed with anatomical diagrams, process infographics, and annotated figures.

Existing Medical Question Answering (MedQA) systems suffer from two major limitations:

  1. Unimodality: They focus almost entirely on text, ignoring the rich, complementary information embedded in medical images.
  2. Single-span constraints: They assume the answer lies within one continuous segment of text, whereas real-world answers are often distributed across multiple non-contiguous sections (multi-span) of a document.

While Visual Question Answering (VQA) and medical VLMs exist, they struggle to reason across exceptionally long text contexts (often exceeding 2,000 words) combined with pools of multiple images to extract discrete, precise answer spans.

Fig. 1. M3QA processes medical queries by extracting relevant sentences and images from clinical documents and an associated pool of images, thereby incorporating visual information to enhance contextual understanding.

Methods

The authors propose $M^3QAFrame$, a multi-task learning framework designed to simultaneously predict relevant text sentences and select corresponding images from a document pool.

Key components of the architecture include:

  • Text Processing: The query and context are concatenated and passed through BiomedBERT, leveraging its domain-specific pretraining on biomedical text. Sentences are separated using a custom [CSEP] token.
  • Image Processing: Embeddings for individual images are extracted using a Vision Transformer (ViT) trained via the self-supervised DINO method.
  • Sparse Inter-Sentence Attention: Because a long medical document might contain dozens of sentences but only a few relevant answer spans, standard softmax attention suffers from severe skewness. To fix this, the authors implement $\alpha$-entmax, a sparsified attention mechanism that forces irrelevant sentences' weights to absolute zero, allowing the model to focus purely on the true answer spans.
  • Multi-Task Classification Head: The model uses a joint binary cross-entropy loss function to optimize both sentence relevance and image relevance prediction, using a weighted loss ratio ($\lambda_s = 0.7$ for text, $\lambda_i = 0.3$ for images).

Datasets

Because no dataset existed for this specific task, the authors curated the $M^3QuestionIng$ corpus:

  • Source: Built by extending the text-only QueSeMSpan / MASH-QA datasets, which feature real-world healthcare queries from WebMD answered by medical practitioners.
  • Size: Contains 3,012 samples, with an average context length of 686 words and an average of 4.78 images per context.
  • Annotations: Medical professionals and biology graduates annotated each sample with relevant multi-span text answers, query types, user intents, and a pool of up to five didactic, open-source medical illustrations per context.
Example of infographic-style images used in the dataset to enhance answer interpretability.

Key Insights and Ideas

  • Didactic vs. Diagnostic Images: In consumer health, images are rarely diagnostic (like an X-ray or CT scan). Instead, they are didactic—designed to help a layperson visually grasp complex physiological processes or symptoms.
  • The Power of Sparsity: Replacing standard softmax with $\alpha$-entmax was crucial. It prevents the model from diluting its attention over long, irrelevant paragraphs, which is a common failure mode in long-document QA.
  • Why Generative VLMs Struggle: Large autoregressive models like GPT-4o or fine-tuned Qwen2.5-VL are prone to generating free-form, conversational responses. In structured multi-span tasks, this leads to poor alignment with precise reference spans, causing lower F1 and Exact Match scores compared to specialized extractive frameworks.

Key Results

The $M^3QAFrame$ model sets a strong baseline on the new dataset, outperforming both unimodal architectures and powerful generative VLMs:

  • Top Performance: $M^3QAFrame$ (with images) achieved 94.34% Accuracy, 91.32% F1-Score, and 94.34% Exact Match.
  • Ablation Impact: Removing images from the framework dropped performance to 90.51% Accuracy and 86.10% F1-Score, proving that visual cues directly improve text-span extraction accuracy.
  • VLM Comparison: State-of-the-art general and medical VLMs lagged significantly behind. GPT-4o achieved an accuracy of 81.2%, while a fine-tuned Qwen2.5-VL reached 65.38% Accuracy but suffered a critically low F1-score (5.07%) due to structural misalignment in its free-form text generation.

Limitations and Future Work

The authors point out several areas for improvement:

  1. Visual Bias: The dataset naturally favors highly visual medical topics (e.g., anatomy or dermatology) over abstract or systemic conditions.
  2. OCR Limitations: The current vision encoder cannot reliably read or reason about text embedded inside the infographic images.
  3. Frozen Encoders: The framework relies on frozen text and vision backbones. Future iterations aim to explore deeper cross-modal alignment mechanisms (like Q-Former) and integrate generative diffusion modules to automatically synthesize illustrative diagrams tailored to the text answer.

Summary updated

BibTeX
@misc{saha2026m,
  author = {Anisha Saha and Vaibhav Rathore and Abhisek Tiwari and Akash Ghosh and Sai Ruthvik Edara and Sriparna Saha},
  title = {{$M^3 QuestionIng$: Multi-modal Multi-span Medical Question Answering}},
  year = {2026},
  eprint = {2606.28329},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.28329},
}
Figure