Papers › GeReA: Question-Aware Prompt Captions for Knowledge-based Visual Question Answering

GeReA: Question-Aware Prompt Captions for Knowledge-based Visual Question Answering

4 Feb 2024arXiv:2402.02503archive 2025-07-28

Ziyu Ma, Shutao Li, Bin Sun, Jianfei Cai, Zuxiang Long, Fuyan Ma

Knowledge-based visual question answering (VQA) requires world knowledge beyond the image for accurate answer. Recently, instead of extra knowledge bases, a large language model (LLM) like GPT-3 is activated as an implicit knowledge engine to jointly acquire and reason the necessary knowledge for answering by converting images into textual information (e.g., captions and answer candidates). However, such conversion may introduce irrelevant information, which causes the LLM to misinterpret images and ignore visual details crucial for accurate knowledge. We argue that multimodal large language model (MLLM) is a better implicit knowledge engine than the LLM for its superior capability of visual understanding. Despite this, how to activate the capacity of MLLM as the implicit knowledge engine has not been explored yet. Therefore, we propose GeReA, a generate-reason framework that prompts a MLLM like InstructBLIP with question relevant vision and language information to generate knowledge-relevant descriptions and reasons those descriptions for knowledge-based VQA. Specifically, the question-relevant image regions and question-specific manual prompts are encoded in the MLLM to generate the knowledge relevant descriptions, referred to as question-aware prompt captions. After that, the question-aware prompt captions, image-question pair, and similar samples are sent into the multi-modal reasoning model to learn a joint knowledge-image-question representation for answer prediction. GeReA unlocks the use of MLLM as the implicit knowledge engine, surpassing all previous state-of-the-art methods on OK-VQA and A-OKVQA datasets, with test accuracies of 66.5% and 63.3% respectively. Our code will be released at https://github.com/Upper9527/GeReA.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.02503")

Code

Syntology Ran 11 of 18 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 11 ran with no contract checked.

By repository: official repository: 18 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

upper9527/gerea officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 11 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

11ran
7unverified

Licence: 18 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from upper9527/gerea. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

calc_banned_bad_words_ids upper9527/gerea/src/generation_utils.py official repository ran no licence file found · pointer only · e3ead4161d5e3d4a · report
calc_banned_ngram_tokens upper9527/gerea/src/generation_utils.py official repository ran no licence file found · pointer only · 8d77347cfa15b834 · report
check_answer upper9527/gerea/src/evaluation.py official repository ran no licence file found · pointer only · 637b51b8df78832a · report
encode_passages upper9527/gerea/src/data.py official repository ran no licence file found · pointer only · bc0dae797248182b · report
get_checkpoint_path upper9527/gerea/src/util.py official repository ran no licence file found · pointer only · e3a0e6ac26d46ae2 · report
has_answer upper9527/gerea/src/evaluation.py official repository ran no licence file found · pointer only · fa4ecbff4b9a354b · report
init_logger upper9527/gerea/src/util.py official repository ran no licence file found · pointer only · 1700ba94a8342336 · report
okvqa_ems upper9527/gerea/leaderboard_evaluation.py official repository ran no licence file found · pointer only · 3762227466b20f21 · report
select_examples_NQ upper9527/gerea/src/preprocess.py official repository ran no licence file found · pointer only · e2f8b9900fd662b1 · report
select_examples_TQA upper9527/gerea/src/preprocess.py official repository ran no licence file found · pointer only · e544cd4b39e5ec61 · report
top_k_top_p_filtering upper9527/gerea/src/generation_utils.py official repository ran no licence file found · pointer only · 0dc219ab6716a127 · report
calculate_matches upper9527/gerea/src/evaluation.py official repository unverified no licence file found · pointer only · 7a4988952dd3a127 · report
exact_match_score upper9527/gerea/leaderboard_evaluation.py official repository unverified no licence file found · pointer only · 108d116eb5bdf952 · report
get_options upper9527/gerea/src/options.py official repository unverified no licence file found · pointer only · 4c076a246978c67e · report
load upper9527/gerea/src/util.py official repository unverified no licence file found · pointer only · a16b92bf7d32bad5 · report
load_data upper9527/gerea/src/data.py official repository unverified no licence file found · pointer only · 67eac65279649d0a · report
load_tf_weights_in_t5 upper9527/gerea/src/modeling_t5.py official repository unverified no licence file found · pointer only · 52fdf83141474e49 · report
normalize_answer upper9527/gerea/leaderboard_evaluation.py official repository unverified no licence file found · pointer only · b92b07bb3574992a · report

Tasks

Language ModelingLanguage ModellingLarge Language ModelMultimodal Large Language ModelQuestion AnsweringVisual Question AnsweringVisual Question Answering (VQA)World Knowledge

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDropoutGPT-3Layer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionResidual ConnectionSoftmaxWeight Decay

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections