Skip to main content
QUICK REVIEW

[Paper Review] Open-Ended Medical Visual Question Answering Through Prefix Tuning of Language Models

Tom van Sonsbeek, Mohammad Mahdi Derakhshani|arXiv (Cornell University)|Mar 10, 2023
Multimodal Machine Learning ApplicationsComputer Science11 citations
TL;DR

The paper presents an open-ended medical VQA approach that uses a visual-to-prefix mapping and prefix/LoRA-based parameter-efficient tuning of large language models to generate answers, evaluated on Slake, OVQA, and PathVQA with strong results.

ABSTRACT

Medical Visual Question Answering (VQA) is an important challenge, as it would lead to faster and more accurate diagnoses and treatment decisions. Most existing methods approach it as a multi-class classification problem, which restricts the outcome to a predefined closed-set of curated answers. We focus on open-ended VQA and motivated by the recent advances in language models consider it as a generative task. Leveraging pre-trained language models, we introduce a novel method particularly suited for small, domain-specific, medical datasets. To properly communicate the medical images to the language model, we develop a network that maps the extracted visual features to a set of learnable tokens. Then, alongside the question, these learnable tokens directly prompt the language model. We explore recent parameter-efficient fine-tuning strategies for language models, which allow for resource- and data-efficient fine-tuning. We evaluate our approach on the prime medical VQA benchmarks, namely, Slake, OVQA and PathVQA. The results demonstrate that our approach outperforms existing methods across various training settings while also being computationally efficient.

Motivation & Objective

  • Motivate open-ended medical VQA to overcome closed-set limitations of classification-based methods.
  • Leverage pre-trained language models to generate free-form answers conditioned on images and questions.
  • Develop a lightweight visual-to-prefix network to communicate visual information to the language model.
  • Explore parameter-efficient fine-tuning strategies to adapt large LMs to small, domain-specific medical datasets.
  • Demonstrate effectiveness across multiple medical VQA benchmarks while remaining computationally efficient.

Proposed method

  • Encode images with a pre-trained vision encoder and map visual features to a visual prefix that the language model can attend to.
  • Use a two-stream encoder (image and question) and a causal language transformer as the decoder to generate answers autoregressively.
  • Construct a structured prompt incorporating question, context (visual prefix), and answer tokens to guide generation.
  • Fine-tune only a small portion of the model via parameter-efficient strategies: Frozen, Prompt Tuning, Prefix Tuning, and LoRA.
  • For LoRA, inject learnable low-rank matrices into the query and value projections while keeping the backbone frozen.
  • Evaluate across GPT2-family models (GPT2, BioGPT, BioMedLM) and compare freezing, prompts, prefixes, and LoRA settings.

Experimental results

Research questions

  • RQ1Can open-ended visual question answering be effectively achieved in the medical domain using generative language models?
  • RQ2Do parameter-efficient fine-tuning strategies enable effective adaptation of large language models on small medical VQA datasets?
  • RQ3How do different language models (general vs. biomedical) and prompting/fine-tuning strategies influence open-ended medical VQA performance?
  • RQ4Does treating VQA as open-ended generation offer advantages over traditional classification-based approaches in terms of accuracy and handling of imbalanced answers?

Key findings

  • Open-ended VQA with prefix-tuning and visual prefixes outperforms existing classification-based methods on Slake, OVQA, and PathVQA across several metrics.
  • LoRA-based fine-tuning generally yields the strongest gains across datasets and metrics, often outperforming prefix/prompts, especially on larger medical VQA benchmarks.
  • GPT2-based models with LoRA sometimes surpass medically specialized models (BioGPT, BioMedLM) due to broader pre-training and better generalization.
  • Using CLIP-based visual embeddings is effective for medical VQA, supporting open-ended generation rather than fixed answer sets.
  • On PathVQA, the open-ended approach particularly mitigates class imbalance advantages enjoyed by some classification methods.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.