Systems and methods for visual question answering
Abstract
Embodiments described herein provide a zero-shot visual question answering (VQA) framework, which conjoins foundation network models with zero additional training. A first image and a question relating to the first image are received. The first image is divided into a plurality of image patches. A plurality of relevant image patches that are relevant to the question are determined, using a first neural network model, from the plurality of image patches. A plurality of image captions are generated, using a second neural network model, based on the plurality of relevant image patches. An answer to the question is generated based on the plurality of image captions.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 21 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A method of zero-shot visual question answering, the method comprising: receiving, via a data interface, a first image and a question relating to the first image; dividing the first image into a plurality of image patches; determining, using a first neural network model, relevance of each image patch of the plurality of image patches to the question; generating, using a second neural network model, a plurality of image captions based on the relevance of each image patch to the question, wherein the generating the plurality of image captions includes: sampling the plurality of image patches to generate a plurality of sampled image patches based on the relevance of each image patch; and generating an image caption of the plurality of image captions based on the plurality of sampled image patches; and generating, using a third neural network model, an answer in response to an input of the question and the plurality of image captions.
- Claim 2Depends on #1
The method of claim 1, wherein prior to receiving the first image and the question, each of the first neural network model, the second neural network model, and the third neural network model is pretrained using a separate training dataset.
- Claim 3Depends on #1
The method of claim 1, wherein the relevance of each image patch is determined based on a cross-attention score matrix of the plurality of image patches and the question.
- Claim 4Depends on #1
The method of claim 1, wherein the second neural network model uses stochastic decoding for generating the plurality of captions.
- Claim 5Depends on #1
The method of claim 1, wherein the third neural network model includes a question-answering encoder-decoder model.
- Claim 6Depends on #1
The method of claim 1, wherein the generating the answer further comprises: for each image caption, concatenating the image caption with the question to generate a question and caption combination of a plurality of question and caption combinations; encoding each of the plurality of question and caption combinations to generate a plurality of corresponding encoded representation; combining the plurality of encoded representations to provide a concatenated encoded representation; and generating the answer by decoding the concatenated encoded representation.
- Claim 7Independent Claim
A non-transitory machine-readable medium comprising a plurality of machine-readable instructions which, when executed by one or more processors, are adapted to cause the one or more processors to perform a method comprising: receiving, via a data interface, a first image and a question relating to the first image; dividing the first image into a plurality of image patches; determining, using a first neural network model, relevance of each image patch of the plurality of image patches to the question; generating, using a second neural network model, a plurality of image captions based on the relevance of each image patch to the question; and generating, using a third neural network model, an answer in response to an input of the question and the plurality of image captions, wherein the generating the answer further comprises: for each image caption, concatenating the image caption with the question to generate a question and caption combination of a plurality of question and caption com
- Claim 8Depends on #7
The non-transitory machine-readable medium of claim 7, wherein prior to receiving the first image and the question, each of the first neural network model, the second neural network model, and the third neural network model is pretrained using a separate training dataset.
Technical Overview & Description
RELATED APPLICATIONS This application claims priority to U.S. Provisional Patent Application No. 63/355,298 filed Jun. 24, 2022, which is incorporated by reference herein in its entirety. TECHNICAL FIELD The embodiments relate generally to visual models and machine learning systems, and more specifically to zero-shot visual question answering by conjoining foundation models with zero training. BACKGROUND Visual question answering (VQA) is a vision-and-language reasoning task. For example, given an input image of a bowl of salad and a query “ what are the black objects ” in the image, a VQA model is expected to generate an answer based on the visual content in the image, e.g., “ the black objects are olives. ” Some existing systems adapt pretrained language models (PLMs) for the vision modality, which often entails additional new network components and training objectives for the PLMs. Such setting limits the further application and scalability of the designed VQA model. Therefore, there is a need for developing more efficient VQA models. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a simplified block diagram illustrating the framework of a zero-shot VQA model, according to one embodiment described herein. FIG. 2 is a simplified diagram illustrating a computing device implementing the VQA model described in FIG. 1 , according to one embodiment described herein. FIG. 3 is a simplified block diagram illustrating the framework of a zero-shot VQA model, according to one embodiment described herein. FIGS. 4 A- 5 provide example data tables and experimental results illustrating example data performance of the zero-shot VQA framework of FIG. 3 , according to some embodiments described herein. FIG. 6 is a simplified block diagram illustrating a question answering method adopted by the question answering module shown in FIG.
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (21)
Non-Patent Literature (10)
- Yunan Ye et al., Video question answering via grounded cross-attention network learning,Apr. 16, 2020, Information Processing and Management 57 (2020) 102265,pp. 1-10.
- Vishvak Murahari et al.,
- “
- Large-Scale Pretraining for Visual Dialog: A Simple State-of-the-Art Baseline,
- ”
- Dec. 4, 2020, Computer Vision
- —
- ECCV 2020,pp. 336-349.
- Jiasen Lu et al.,
- “