SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.13039 · 2024

LaPA: Latent Prompt Assist Model For Medical Visual Question Answering

arXiv · PDF · Open in the Atlas

Code that ran

3 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2404.13039.json · badge: /api/ran/2404.13039.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
garygutc/lapa_model canonical (classifier label)
classifier basis: census
3 ran · 4 no recorded run
FunctionStatusWhere it lives
adapt_position_encoding Ran
ran; our contract draft was wrong, not the code
garygutc/lapa_model/m3ae/modules/vision_encoders/clip_model.py
pointer only (licence: NONE) · get_code("24bfe03a8fb0e475")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, garygutc/lapa_model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

attention Ran
ran; our contract draft was wrong, not the code
garygutc/lapa_model/m3ae/modules/language_encoders/bert_model.py
pointer only (licence: NONE) · get_code("6eef58b15279e099")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, garygutc/lapa_model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

clones Ran
ran; our contract draft was wrong, not the code
garygutc/lapa_model/m3ae/modules/language_encoders/bert_model.py
pointer only (licence: NONE) · get_code("dabc5c8e7c1ae006")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, garygutc/lapa_model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_model Not yet run
unverified (harvested, no recorded run)
garygutc/lapa_model/m3ae/modules/vision_encoders/clip_model.py
pointer only (licence: NONE) · get_code("7bdcea40fc62d192")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, garygutc/lapa_model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_pretrained_tokenizer Not yet run
unverified (harvested, no recorded run)
garygutc/lapa_model/m3ae/datamodules/base_datamodule.py
pointer only (licence: NONE) · get_code("7620b2fb3b2800ef")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, garygutc/lapa_model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_tf_weights_in_bert Not yet run
unverified (harvested, no recorded run)
garygutc/lapa_model/m3ae/modules/language_encoders/bert_model.py
pointer only (licence: NONE); the stored copy get_code serves, from CSU-NLP-Group/MARE, is pointer only (licence: NONE) · get_code("efbb0f3903b5f779")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, garygutc/lapa_model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

normalize_word Not yet run
unverified (harvested, no recorded run)
garygutc/lapa_model/prepro/glossary.py
pointer only (licence: NONE) · get_code("8f1a44ab20956301")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, garygutc/lapa_model when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 5 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 5 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
clones 79 other papers
60 dated earlier, 2 the same month, 16 later, 1 same year, order not determinable · 11 only as an assembly brick
1411.4555 (2014-11)
Show and Tell: A Neural Image Caption Generator
1612.00563 (2016-12)
Self-critical Sequence Training for Image Captioning
1706.03762 (2017-06)
Attention Is All You Need
and 76 more not named here
load_tf_weights_in_bert 8 other papers
3 dated earlier, 4 later, 1 same year, order not determinable
Dou_An_Empirical_Study_of_Training_End-to-End_Vision-and-Language_Transformers_CVPR_2022_paper (2022 (year only))
An Empirical Study of Training End-to-End Vision-and-Language Transformers
2210.10678 (2022-10)
Towards Realistic Low-resource Relation Extraction: A Benchmark with Empirical Baseline Study
2023.acl-long.182 (2023 (year only))
HyPe: Better Pre-trained Language Model Fine-tuning with Hidden Representation Perturbation
and 5 more not named here
normalize_word 6 other papers
2 dated earlier, 4 later
2305.10722 (2023-05)
Discffusion: Discriminative Diffusion Models as Few-shot Vision and Language Learners
2310.00582 (2023-10)
Pink: Unveiling the Power of Referential Comprehension for Multi-modal LLMs
2405.17461 (2024-05)
EMR-MERGING: Tuning-Free High-Performance Model Merging
and 3 more not named here
attention 5 other papers
3 dated earlier, 2 later
2008.02693 (2020-08)
Fashion Captioning: Towards Generating Accurate Descriptions with Semantic Rewards
2021.acl-long.459 (2021 (year only))
Cross-modal Memory Networks for Radiology Report Generation
2403.05396 (2024-03)
HistGen: Histopathology Report Generation via Local-Global Feature Encoding and Cross-modal Context Interaction
and 2 more not named here
adapt_position_encoding 1 other paper
1 later
2506.05890 (2025-06)
Unleashing the Potential of Consistency Learning for Detecting and Grounding Multi-Modal Media Manipulation

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Medical visual question answering (Med-VQA) aims to automate the prediction of correct answers for medical images and questions, thereby assisting physicians in reducing repetitive tasks and alleviating their workload. Existing approaches primarily focus on pre-training models using additional and comprehensive datasets, followed by fine-tuning to enhance performance in downstream tasks. However, there is also significant value in exploring existing models to extract clinically relevant information. In this paper, we propose the Latent Prompt Assist model (LaPA) for medical visual question answering. Firstly, we design a latent prompt generation module to generate the latent prompt with the constraint of the target answer. Subsequently, we propose a multi-modal fusion block with latent prompt fusion module that utilizes the latent prompt to extract clinical-relevant information from uni-modal and multi-modal features. Additionally, we introduce a prior knowledge fusion module to integrate the relationship between diseases and organs with the clinical-relevant information. Finally, we combine the final integrated information with image-language cross-modal information to predict the final answers. Experimental results on three publicly available Med-VQA datasets demonstrate that LaPA outperforms the state-of-the-art model ARL, achieving improvements of 1.83%, 0.63%, and 1.80% on VQA-RAD, SLAKE, and VQA-2019, respectively. The code is publicly available at https://github.com/GaryGuTC/LaPA_model.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2404.13039")
get_code_for_paper("2404.13039")
have("2404.13039")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2404.13039.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2404.13039.svg)](https://syntology.ai/paper/2404.13039)

Connect an agent — have() is free.