WeaQA: Weak Supervision via Captions for Visual Question Answering
Paper · 2021 · Pratyay Banerjee, Tejas Gokhale, Yezhou Yang et al.
Summary
A photograph can support many questions, but writing and answering those questions by hand takes work. It also influences what a system learns. If a particular kind of question typically receives the same answer in training, a system can score well by picking up that pattern even when the picture supports a different answer. WeaQA asks whether a more direct source of supervision can help. The authors start with captions that describe what people see, turn those descriptions into questions and answers, and train systems to answer questions about images. They then test the systems on established benchmarks for visual question answering, or VQA.
The authors generate questions in several ways. Templates ask about objects, numbers, colors, locations, and whether something is present. A separate procedure asks about the participants and circumstances of actions described in a caption. Paraphrasing and translation through another language vary how questions are worded. The answers inherited from captions can be much more detailed than the answers expected by benchmarks, so training gives partial credit to shorter alternatives drawn from a full answer. The visual input also changes. The authors divide each picture into overlapping patches at several scales, giving the system views of the whole scene and its parts without requiring bounding boxes around individual objects.
The patch-based encoder reaches an overall score of 47.3 on the VQA-CP-v2 test set without training on human-written questions and answers from that benchmark. The supervised UpDown baseline scores 39.1. Several supervised systems score higher than WeaQA, including systems that use additional supervised samples. The same encoder scores 46.8 on VQA-v2 test-standard and 33.7 in exact-match accuracy on GQA validation. Supervised baselines remain stronger on those benchmarks. GQA places more emphasis on relationships between objects, and the authors find that their captions seldom supply the detailed spatial descriptions needed to generate such questions.
The paper also asks what benchmark scores miss. In the authors’ error analysis, the reference answer is part of the system’s longer prediction for 42% of questions. The authors manually review 100 such cases and judge 87% of those predictions plausible. Captions can therefore teach answers that describe the right thing with extra detail, while the scoring procedure still favors the benchmark’s shorter wording. WeaQA shows that caption-derived supervision can support transfer to human-written visual questions, especially when familiar question patterns are associated with different answers at test time. Whether that transfer succeeds depends on which facts the captions describe and which answers the benchmark accepts.
Deep dive: WeaQA: Weak Supervision via Captions for Visual Question Answering
WeaQA turns image captions into training questions and uses image patches to test how well visual question answering transfers to human-written benchmarks. · about 37 minutes to read
The problem and its context
What a question can tell you without the picture
Visual question answering brings together a picture and a question about it. A question can direct attention to an object, ask how many instances are visible, or require the reader to connect details across a scene. Learning from examples typically means seeing a picture alongside a question and its recorded answer. Repeated examples teach the system what questions mean and how to use image evidence. They can also teach that certain answers are common after certain kinds of wording. That shortcut becomes attractive when it earns credit often in the training set.
The field began with the proposal of a visual Turing challenge and subsequently acquired datasets built around human-written questions and answers. The paper uses this history to explain why collecting more answers was only part of the problem. If a test set preserves the question styles and answer preferences of the training set, a system may do well by relying on both visual and linguistic cues. The score by itself makes it difficult to tell how much work the image did. Researchers had seen related annotation effects in language-only tasks, where a regularity introduced during data collection could help predict a label.
The authors describe earlier attempts to change the distribution of examples by balancing answers, reducing biases, and asking for more varied questions. Work on balancing binary questions and increasing the importance of the image in VQA motivated that approach. Designing such a collection requires deciding what the annotators should ask, how to make the questions cover different scenes and answers, and how to collect enough judgments to make the differences meaningful. WeaQA changes the source of the training signal by starting from a collection in which people have already described visible scenes. Making the V in VQA Matter
Captions and answers are written under different instructions
A caption and a visual question can refer to the same photograph while requiring different judgments. The paper contrasts the instructions given to contributors to Microsoft COCO with those used in VQA. COCO captioners were directed toward things they could see and away from speculation about what happened earlier, what might happen next, or what a person in the scene might say. VQA question writers were encouraged to ask interesting questions that a person could answer and that might challenge an automated system. Respondents could use common sense or guess the answer that other people would probably give.
Consider the paper’s example of a car whose doors are only partly visible. A respondent might give the number of doors they can see, or infer the total from what they know about cars. Both readings have a rationale, and a question about the car’s doors need not specify which reading it intends. Another example concerns a surface for which different respondents choose descriptions such as transparent or reflective. There is also a question in GQA whose wording can direct the reader toward either the skier or the person taking the photograph. In each case, the question introduces a choice about what evidence counts or what entity the answer should describe.
Captions make a different choice. A captioner can mention the most conspicuous details and leave other parts of the picture undescribed. When a caption identifies a person’s clothing or an object the person is holding, there is a direct route from that statement to a question and a candidate answer. That same caption may give the reader few clues about what objects are in the background, precisely how many objects there are, or where they sit in relation to each other. The reason to use captions is that they already supply some descriptions suitable for this conversion. The content selected by the captioner then helps determine what the resulting training set can teach.
The kinds of shift a benchmark can expose
The authors distinguish changes in the inputs from changes involving the answers. A change in the input domain can arise when questions are written in unfamiliar ways, when scenes contain unfamiliar objects, or when familiar objects occur in new arrangements. The paper describes earlier evaluations based on questions with unseen words or objects, novel combinations, and logical connectives. It also discusses evaluations that ask whether a system answers consistently across questions that follow from one another or across simpler questions that probe parts of the same problem. Other studies varied linguistic style or the reasoning needed to answer. These tests show how many different properties can change under the broad heading of domain shift.
The paper expresses the case where the training domain fails to cover the test domain as follows.
S ∩ T ≠ T
S is the set of inputs in the training domain, and T is the set in the test domain. The intersection sign ∩ selects inputs common to both. The sign ≠ says that the shared part differs from the entire test domain. Some test inputs therefore fall outside the coverage of the training domain as defined in the comparison.
The paper gives a parallel expression for absent answers.
Aₛ ∩ Aₜ ≠ Aₜ
Aₛ is the set of answers seen in training, and Aₜ is the set of answers at test time. The subscripts identify the training and test sets. As before, ∩ takes the shared elements and ≠ marks the failure of the intersection to cover the entire target set. An answer can be missing as a complete label even if its words occur inside other answers.
Answer frequencies can also change while familiar answer strings remain in use. The paper discusses VQA-CP in this connection. Its splits change which answers tend to go with a given type of question. A system that learned to expect a certain answer from the question alone can thus lose some of the benefit of that expectation when evaluated on the test set. This frequency change and the absence of a particular answer from training are distinct difficulties. The first asks whether a system can adjust to a different association. The second asks whether its training or output representation lets it produce the required answer at all.
Where caption-derived supervision fits
The authors draw on work in extractive question answering, where a system learns to find answers in text even when human-written questions aligned with the relevant passages are unavailable. Earlier approaches generated questions and answers procedurally from a source of text. In vision and language, other researchers had turned captions into questions about logical understanding or used captions in work on common-sense understanding of video. The paper also describes research that generated a question given an image and an answer. WeaQA starts with the image and its description, then uses the description to supply both sides of the question–answer pair.
There was a precedent for using structured question templates with scenes whose contents could be described explicitly. The paper connects templates used for synthetic scenes in CLEVR to generation for more complex natural scenes in GQA and to work on referring expressions. Other examples of weak supervision included learning to localize objects or actions from less detailed labels, and using language to identify relevant visual content. These precedents motivate treating a caption as evidence about what appears in a picture without requiring it to specify every region relevant to a given question.
The visual representation posed a related problem. Earlier VQA systems commonly represented pictures through features from detected objects. A detector supplies descriptions of selected regions, often in the form of bounding boxes. That representation gives the answering system a useful starting point for questions about identifiable things. It also means the answering system receives a picture already filtered through the detector’s decisions. WeaQA examines whether regions selected by a simple grid can support the task. Together, the two changes ask how much task-specific annotation is necessary to obtain usable training questions and a usable representation of the scene.
The method, step by step
Start with a photograph and its descriptions
WeaQA starts from MS-COCO images and their associated captions. The paper describes the image collection it uses as ∼204k images. The captions are written by people, but the training questions and answers are generated from them. That is the sense in which the supervision is weak. The original descriptions were collected for a captioning task, while the training procedure uses them to supply examples for another task. A caption provides evidence that the objects and events it mentions are present in the scene. Procedures for analyzing and editing the sentence then determine which parts become questions, answers, or alternatives.
The authors keep the image associated with each new question and answer. The caption is available when the question is constructed, and its contents determine the training target. The corresponding photograph is what the system has to use when learning to answer that question. At test time the system receives a photograph and an independently supplied question. Human-written benchmark questions enter training only in the separate supervised adaptation experiments. This distinction lets the authors measure what transfers from their synthetic data before examining what changes when the system learns the target benchmark’s conventions.
How WeaQA learns from captioned photographs
The steps in order.
Turn named details into template questions
The first pass identifies words or phrases that refer to objects. When object words are explicitly available, the authors use them. Otherwise, they use heuristics such as extracting noun phrases. These groups of words can contain the object’s name, its modifiers, and a quantity. A numerical expression attached to a noun phrase gives the procedure a cue for a count. The authors treat such quantities as approximations of what the scene contains. A caption can mention a group without establishing that the rest of the image contains no other members of that category.
For object questions, a candidate object expression is removed from the caption and replaced by an interrogative. The remaining words supply clues about which object the question concerns. The procedure can simplify a long sentence by using a shorter part of it and can change an indefinite determiner to a definite one. The resulting question is intended to refer to a particular object in the picture. In an example of the resulting data, the object being held near a person’s face is the answer. The question keeps the action and its context while leaving the object name for the system to predict.
Counting questions use much the same organization with a different blank. The procedure takes the quantity associated with a noun phrase as the answer and asks for the count of the entities named in that phrase. Color questions start by finding a color adjective and the noun phrase it describes. The noun phrase identifies the target of the question, and the adjective supplies the answer. The paper’s examples include questions about a table’s color and the color of someone’s eyes. A location question can be based on language that places something in a scene, place, or container. Expressions introduced by words such as in and within help the procedure locate the corresponding answer span.
For yes-or-no questions, the authors remove modal verbs as part of the template procedure and prepend a question opening chosen from alternatives. A description that establishes the presence of an object or depicts an activity can yield a positive example. The procedure creates negative examples by negating a statement or changing a word to an antonym or to a similar object word for an object treated as absent. In one example, the caption supports a question about a seated person wearing a hat. Replacing the person with a dog gives the authors a question whose intended answer is negative.
A similar replacement can make a negative example more informative than swapping in a entirely unrelated word. The question retains much of the language of the positive example, making the changed object important to the answer. The authors use vector representations of words to measure similarity for this purpose. These vectors allow the procedure to find related words even when the caption itself supplies only the positive description. The implementation uses GloVe for the similarity calculation.
The appendix illustrates related transformations by changing the polarity of a question or substituting an entity. For example, a counting question about puppies can become a question about cats in the same location. The resulting answer depends on the changed referent. These examples show why the generation step has to attach an answer to the transformed question, in addition to changing the wording. A paraphrase is intended to preserve the answer, whereas substituting an object or negating the question can change it.
Ask about the roles people and objects play
The templates handle facts that appear in recognizable linguistic forms. Captions also describe events involving participants, objects, places, and times. To extract supervision from these descriptions, WeaQA uses question–answer-driven semantic role labeling, called QA-SRL. A semantic role describes how an expression participates in an event. A person can do something, an object can be affected or held, and a place can indicate where the action occurs. QA-SRL represents such roles with a question about the event and a phrase from the description that answers the question.
The paper describes using span detection with beginning, inside, and outside tags, together with sequence-to-sequence methods. Span detection identifies which words belong to an answer in the caption. The beginning tag marks its start, the inside tag identifies subsequent words within it, and the outside tag identifies words outside the span. A sequence-to-sequence procedure produces a text sequence from another text sequence. Here the approach supplies questions about who, what, where, or when, paired with the spans that answer them.
A caption example describes a girl holding an apple while sitting in an open field. The holding action supports a question about the item in her hands. The sitting action supports questions about the person and the place. If the question asks who is seated, the answer can include the description of what the girl wears and what she holds. If it asks where the person is sitting, the answer can retain the adjectives that describe the field. The answer span keeps the information in the caption even if only part of it would suffice in an ordinary conversation.
QA-SRL frequently uses generic expressions such as someone or something in the question. The question can therefore be short while the answer carries most of the identifying detail. With the image available, answering involves associating the action in the question with the right person, object, or location. This differs from asking about the color of a named object, where the words already specify much of what to look for. The paper groups these action-related answers under Phrases. The template-derived categories cover Yes-No, Number, Color, Location, and Object.
Change the wording while keeping the intended answer
Even a wide range of caption contents would provide limited linguistic variation if every question of the same type always began the same way. WeaQA applies paraphrasing and back-translation to diversify the template questions. Paraphrasing rewrites a question in the same language with the intention of retaining its meaning. The authors train a T5 system on the Quora Question Pairs Corpus for this task. They train a separate T5 system on Opus for back-translation, which rewrites a question by translating it out of English and then back into English. The intermediate languages the paper names are French, German, and Spanish. T5
The paper illustrates back-translation with a question about a girl near sailboats. Spanish serves as the intermediate language. The returned English version uses a verb about carrying a backpack in place of the original wording about wearing one and expresses the girl’s position more compactly. The visual details needed for the intended answer are kept in view, while the wording changes. In the appendix, some direct paraphrases recast a counting question as a confirmation question or add a conversational opening. They illustrate the sort of variety the procedure can produce and how noticeably the form of a question can change during rewriting.
These operations expand the ways an existing caption can be queried. QA-SRL also expands the kinds of information that can be queried, because it can turn a participant or circumstance of an action into a target. Together with the basic templates, the procedures produce questions with different lengths, references, and expected answer styles. They also leave an imprint of the generation process. A template repeatedly asks for a quantity in a familiar form, while a generic QA-SRL question can say little about the identity of the participant. The evaluation uses human-written questions whose wording comes from a different process.
Give the encoder several views of the picture
A region selected by an object detector can be an excellent input for a question about that object. Detection can also miss small or uncommon objects. The paper illustrates the consequence with bananas. If the detector recognizes only some of the bananas in a picture, a system answering from detected regions will receive features for only those detections. A counting question may then depend on evidence left out of the representation. WeaQA gives the system regular regions of the picture so that extracting a feature from a region does not depend on first identifying an object there. The detector used in the object-feature comparisons is Faster R-CNN.
The authors use a spatial pyramid, a collection of image divisions at different resolutions. A coarse division yields patches that preserve more of the scene context, while finer divisions provide more local views. The image appears at several scales in the input sequence. The paper denotes the input image by I and describes each division using a square grid.
kᵢ × kᵢ
Here i identifies a resolution in the pyramid, and kᵢ is the number of grid divisions along each dimension at that resolution. The multiplication sign × gives the row-by-column layout of patches. The paper groups the resulting patches by resolution and extracts a feature vector from each patch. A feature vector is the numerical representation passed on to the answering system.
The features come from ResNet-50 pretrained on ImageNet. The patches are extracted with 50% overlap, allowing portions of the image near a patch boundary to appear in neighboring views. The spatial position supplied later tells the encoder which part of the picture each patch came from. For the detector-based comparison, the authors use a Faster R-CNN feature extractor pretrained on Visual Genome. The patch and object pipelines therefore differ in how regions are selected and in the pretrained features used to describe them. Deep Residual Learning for Image Recognition
A whole-picture feature can retain information about the general scene but make a localized cue hard to pick out. A fine patch can expose a local detail but contain little evidence about its relationship to something farther away. The pyramid lets both kinds of evidence enter the same encoder. For questions about relative position, the spatial encoding provides information about where to locate a patch in the picture. For questions about an object, the same representation can supply a local view and a broader view of its surroundings.
Put word pieces and patch features into one sequence
The encoder follows the single-stream design used by UNITER. A single stream means that features for the text and features for the image are placed in a joint sequence. The text originates as a caption or as a question with answer positions, depending on the training task. The paper represents its sequence of tokens as follows.
w = {w₁, …, wₜ}
The symbol w denotes the text sequence and each indexed w denotes a token in that sequence. The subscript ₁ marks the first position, and the ellipsis stands for any intervening positions. The terminal t, written T in the paper’s notation, is the length of the text sequence. The braces collect an ordered sequence here, so the positions of the tokens matter.
The encoder divides the text into WordPieces, using the kind of subword tokenization associated with BERT. A token can therefore represent a whole word or a piece of one. The text embedding component turns the tokens into vectors. The paper separately denotes the patch feature sequence by v.
v = {v₁, …, vₖ}
The symbol v denotes the visual sequence, and each indexed v is the feature vector for a patch. The subscript ₁ marks its first member, the ellipsis stands for the intervening feature vectors, and the terminal k corresponds to K, the number of patch features. K counts the full sequence supplied to the encoder. The grid symbol kᵢ describes one resolution used to assemble that sequence.
A fully connected layer projects the patch vectors into the same size of representation as the text vectors. A further projected encoding is added to represent the region’s position in the picture. After concatenating the two sequences, the system passes them through L attention layers, where L denotes the number of layers. Attention lets the representation at a given position use information from other positions. In the joint sequence, a question word can therefore use visual information, and a visual feature can be interpreted in the context of the words. This is the paper’s cross-modality attention mechanism. Transformer and attention
The layers share parameters, a design the authors relate to ALBERT. Parameter sharing allows multiple applications of the attention computation while limiting the number of separately learned weights. Each layer also uses a residual connection and layer normalization. The residual connection carries the incoming representation forward alongside the layer’s computation. Normalization adjusts the activations before processing continues. The paper’s main encoder setup has 8 cross-modal layers and a hidden dimension of 768, the size of the internal representations.
Learn from missing words, missing answers, and caption matches
In masked language modeling, abbreviated MLM, the authors randomly mask 15% of a caption’s word tokens. The system sees the image and the caption with blanks, and learns to recover the missing tokens. Context can narrow down the set of plausible words. The picture can disambiguate among words that still fit. For instance, a statement about someone wearing a hat can be grammatically complete with several different descriptions of the person. The picture gives the system evidence about which description the caption used.
Masked question answering, or MQA, replaces the answer tokens associated with a generated question with mask tokens. The system sees the question and learns to fill in the answer positions using accompanying visual information. The paper illustrates this with a question about when an activity takes place. The masked answer refers to nighttime, a detail that can be supported by the scene. MLM reconstructs words from a partially observed description, while MQA puts the missing information in the position of an answer. Both use prediction heads that operate on representations at particular token positions.
Image–text matching, or ITM, uses captions as whole statements. For an image, the five associated MS-COCO captions provide positive examples. To get negative examples, randomly select captions associated with other images whose sets of objects differ. A classifier then predicts whether the picture and description match. This training signal asks the encoder to summarize how compatible an entire caption is with a scene, in addition to representing the local information needed to recover words or answer phrases.
For image–text matching and visual question answering, the paper uses the final representation of the special classification token [CLS] to drive a feed-forward prediction layer. This token collects information from across the combined sequence through attention. The masked tasks use a separate feed-forward path for the relevant token representations. The authors train the three pretraining tasks with cross-entropy, which penalizes assigning low probability to the training target. They also train an answer head using a separate loss that can give credit to several answer strings for the same question.
Give shorter answer choices partial weight
One consequence of generating answers from captions is that the same visible detail can be described at different levels of specificity. A phrase about parked cars can identify the objects and also say how many there are and what color they are. A benchmark may use only the object name. If the full phrase is the sole positive target for that example, the training procedure rewards the longer expression and gives no explicit encouragement to predict the simpler alternative. WeaQA builds several target strings from the available answer and gives each a weight based on length.
Wₛᵤᵦ = WordCount(sub) / WordCount(ans)
Wₛᵤᵦ is the training weight for a shorter alternative. The term sub is the extracted subphrase, and ans is the complete caption-derived answer. WordCount gives the number of words in its argument. The slash divides the subphrase’s word count by the complete answer’s word count. The equals sign assigns the result to the weight. The full answer retains the highest weight.
For the paper’s example of parked black cars, the complete phrase two black cars receives 1.0. Alternatives that keep only one aspect, such as two, black, or cars, receive 0.33. The procedure also includes the numerical spelling 2 and the singular car at 0.33. Shorter descriptions retaining a pair of components, such as two cars, 2 cars, or black cars, receive 0.66. The examples show that the alternatives can include normalization of numbers or word forms as well as removal of words. They also show why the authors treat the weights as training targets for several alternatives. Their values express relative preference for the complete description.
The answer vocabulary comes from the synthetic question–answer data. For a given example, the full answer and the alternatives get entries in a target vector over that vocabulary. The corresponding prediction uses a sigmoid, which assigns a score to each entry and allows several entries to have positive targets for the same question. The paper writes the subphrase-weighted answer loss as follows.
Lₛwₐ = Lᵦ꜀ₑ(σ(z[CLS]), y_wₐ)
Lₛwₐ denotes the subphrase-weighted answer loss, and Lᵦ꜀ₑ denotes binary cross-entropy. The function σ is the sigmoid. In the paper’s notation, z[CLS] refers to the classification token’s final representation used by the answer prediction head. The token representation supplies the information from which the head scores the answer vocabulary. The term y_wₐ is the weighted target vector. The comma separates the prediction and target passed to the loss, which penalizes disagreement between the two.
The authors combine this loss with the masked and matching tasks in one objective.
L = L_MLM + L_MQA + α · L_ITM + β · L_SWA
L is the total training loss. L_MLM is the masked language modeling loss, L_MQA is the masked question answering loss, and L_ITM is the image–text matching loss. L_SWA is the subphrase-weighted answer loss written above. The plus signs add the contributions, and the multiplication dots scale the matching and weighted-answer losses by α and β, respectively. Each of those coefficients is greater than 0 and at most 1. The masked language and masked answer losses enter the sum directly.
Train for transfer, then test supervised adaptation separately
The main training setup uses Adam, a learning rate of 1e−5, and a batch size of 256 for 40 pretraining epochs. A learning rate sets the size scale of parameter updates, a batch is the group of examples used for an update, and an epoch denotes a pass through the training data under the chosen sampling procedure. The paper describes standard initialization from Hugging Face, and the appendix reports use of the Hugging Face and PyTorch frameworks. The authors train using 4 Nvidia V100 GPUs with 16 GB of memory each. They evaluate the visual extractor both with its weights fixed and with them updated for the task, and report better performance when updating it.
At zero-shot transfer, the answer head trained from synthetic data is used for benchmark questions. In the fully supervised setting, the authors use human-annotated training examples from the target benchmark to adapt the system, a procedure known as fine-tuning. The main setup gives a learning rate of 1e−5 or 5e−5, a batch size of 32, and 10 epochs for that stage. The reported fully supervised results use a final classification layer trained from scratch. This allows the adapted system to learn how the target benchmark names answers while reusing the representations learned from captions and generated questions.
Experiments and results
The comparisons answer different questions
The authors evaluate on VQA-CP-v2, VQA-v2, and GQA. VQA-CP-v2 tests transfer under a change in the association between question types and answers. VQA-v2 provides a comparison on a standard visual question answering benchmark. GQA gives greater weight to questions that require composing visual facts or determining relationships between objects. The reported main comparisons use the VQA-CP-v2 test set, VQA-v2 test-standard, and GQA validation. Keeping the splits explicit matters because the paper also reports separate validation ablations and includes a VQA-v2 comparison row evaluated on validation.
The VQA benchmarks use the VQA scoring metric, which gives credit according to agreement with the recorded answers. The paper reports overall results and scores for Yes-No, Number, and Other questions. GQA uses exact-match accuracy and reports overall, Binary, and Open scores. Exact match measures whether the answer given by the system matches the benchmark’s target. An answer can contain relevant information and still miss an exact match. The paper’s later analysis of longer responses bears directly on how to interpret these scores.
The zero-shot comparisons include UpDown trained on synthetic questions with object features, UpDown trained on synthetic questions with patch features, and the authors’ patch-based encoder. With UpDown fixed, the two rows show what happens when the visual representation changes in that system. Comparing the two patch-based rows shows what happens when the system using the patches changes. Those rows involve different architectures and training procedures. The comparison with supervised benchmarks asks a broader question about how competitive the full caption-trained approach is when the other systems can learn from target question–answer annotations.
The authors distinguish their setup from that of pretrained vision-and-language systems that use large collections with dense object annotations and task supervision. Earlier work they discuss combines captioning and VQA sources and uses collections described as containing 3 million images. WeaQA’s target-task supervision and image representation are deliberately more limited. In the fully supervised comparison it gains access to the target training split, while still building its patch representation without bounding boxes. The benchmark tables let readers compare the resulting scores across those different sources of supervision.
VQA-CP-v2 shows the strongest transfer relative to supervised baselines
On the VQA-CP-v2 test set, the caption-trained UpDown system gets 40.8 overall with object features and 41.2 with patches. The patch-based encoder gets 47.3. The supervised UpDown comparison scores 39.1. The two UpDown runs trained on synthetic questions thus both score above the supervised UpDown comparison in this table, and the encoder improves further on the synthetic-training results. This is the benchmark on which training from a different source of question–answer pairs has the clearest advantage over some systems trained on the benchmark itself.
Overall VQA score on the VQA-CP-v2 test set
The caption-trained patch encoder surpasses supervised UpDown and trails the highest-scoring supervised entries.
The numbers
| System or setting | VQA accuracy % |
|---|---|
| Supervised UpDown | 39.1 |
| Caption-trained UpDown with objects | 40.8 |
| Caption-trained UpDown with patches | 41.2 |
| Caption-trained patch encoder (this paper) | 47.3 |
| Supervised LMH | 52.4 |
| Supervised CSS with extra samples | 58.9 |
| Supervised MUTANT with extra samples | 69.5 |
The overall score combines categories in which the systems perform differently. The patch encoder scores 73.4 on Yes-No questions, 39.8 on Number questions, and 35.6 on Other questions in the VQA-CP-v2 test set. The corresponding supervised UpDown scores are 62.4, 15.1, and 34.5. The numbers show a comparatively strong result for caption-derived training on counting in this setting. They also show that the Other category has a different pattern. LXMERT, for instance, scores 55.5 on Other questions and 46.2 overall. A system’s advantage in the aggregate can coexist with a much weaker result on a particular group of questions.
The supervised comparison group spans older architectures and systems designed to address biases in VQA. RUBi scores 47.1 overall on the VQA-CP-v2 test set, SCR scores 48.4, and LMH scores 52.4. The patch encoder sits among these results. The paper flags CSS and MUTANT as using additional supervised samples. Their higher overall scores show the range achievable with different training resources. The caption-trained result establishes that this source of supervision can be competitive on the changing-priors benchmark, with the observed advantage depending on which supervised approach and which question category serve as the comparison.
VQA-v2 favors direct supervision overall
On VQA-v2 test-standard, the zero-shot patch encoder scores 46.8 overall. The caption-trained UpDown system scores 41.4 with object features and 40.6 with patches. Here the switch to patches within UpDown yields a slightly lower overall result, while the switch from patch-based UpDown to the patch encoder again raises it. The supervised GVQA comparison gets 48.2 and supervised UpDown gets 65.3 overall on test-standard. The scores show a larger advantage for learning from the target benchmark than the comparison with supervised UpDown on VQA-CP-v2.
The caption-trained patch encoder obtains 72.1 on Yes-No, 34.4 on Number, and 34.1 on Other questions on VQA-v2 test-standard. The supervised UpDown row gives 72.0, 31.1, and 34.7 in those categories, and the paper marks the category results as unavailable for some of its other supervised entries. The overall and category values should be read as reported. The overall UpDown comparison remains 65.3 in the table, and the paper’s layout gives less information about the conditions of some category scores than it does for the overall comparison. The headline zero-shot result uses the caption-trained encoder’s own test-standard row.
After supervised adaptation, the patch encoder reaches 65.3 overall on VQA-v2 test-standard and the patch-based UpDown system reaches 63.4. For the patch encoder, the test-standard scores are 80.5 for Yes-No, 48.94 for Number, and 56.2 for Other questions. The supervised object-feature UpDown variant trained with the authors’ procedure is listed at 66.8 overall, with an explicit validation-split marker. Its score belongs to that split. Among the test-standard comparison systems, MCAN reports 70.4 overall and UNITER reports 72.7. The gap persists even after the patch encoder learns from the target training data.
GQA exposes a gap in spatial and compositional coverage
On GQA validation, the caption-trained patch encoder reaches 33.7 overall exact-match accuracy, with 55.5 on Binary questions and 21.2 on Open questions. Caption-trained UpDown scores 30.7 overall with object features and 31.1 with patch features. Its Open score is 17.6 with object features and 16.8 with patches. The patch representation’s comparative effect within UpDown therefore varies with the question group. The authors’ complete zero-shot encoder improves the overall result but leaves a sizable gap to the supervised entries.
Overall exact-match accuracy on GQA validation
Supervised adaptation raises the patch encoder’s accuracy into the range of the supervised comparison systems.
The numbers
| System or setting | Exact-match accuracy % |
|---|---|
| Caption-trained UpDown with objects | 30.7 |
| Caption-trained UpDown with patches | 31.1 |
| Caption-trained patch encoder (this paper) | 33.7 |
| Supervised CNN + LSTM | 46.6 |
| Supervised UpDown | 49.7 |
| Supervised MAC | 54.1 |
| Adapted patch encoder | 55.2 |
| Supervised BAN | 57.1 |
| Supervised LXMERT | 60.3 |
The adapted patch encoder gets 73.6 on Binary and 38.8 on Open questions on GQA validation. Its overall score of 55.2 falls between MAC at 54.1 and BAN at 57.1. The adapted UpDown variants get 50.4 overall with objects and 46.4 with patches. The authors emphasize that their patch encoder attains its result without the object relationship annotations used by MAC and BAN in the comparison they discuss. The results show that the patch encoder can learn representations useful for GQA once it receives supervision from that task.
The authors attribute some of the weaker zero-shot performance on GQA to what is available in captions. A caption may describe a person holding an object while omitting descriptions of how nearby objects are arranged. A GQA question can ask the system to resolve several such relationships in order to identify the answer. Better visual access to the objects helps supply the necessary evidence, while learning which relationships a question refers to also depends on seeing suitable training questions. The supervised adaptation gives the patch encoder examples of that target behavior.
What the ablations show
Several sources of questions work better together
The authors train with different question-generation sources while keeping spatial patches as the image input. The comparison includes basic templates, templates with paraphrasing and back-translation, QA-SRL questions, and the combined collection. This comparison asks whether the variety comes from several sources providing useful information or whether a single collection of procedural questions can do most of the work.
GQA validation provides a clear example of the result. In zero-shot transfer, the patch encoder scores 18.5 with templates, 23.6 when rewriting is added to those templates, and 21.4 with QA-SRL alone. The combined question collection reaches 33.7. With UpDown, the corresponding GQA validation scores are 11.6, 14.8, 18.9, and 31.1. The ordering of the individual sources therefore depends on the architecture. Augmented templates are the stronger individual setting for the encoder on GQA, and QA-SRL is the stronger individual setting for UpDown. The full collection leads for both.
These comparisons support two narrower interpretations of the generated data. First, changing wording can help even when the source questions are still based on the same template mechanisms. Second, questions about the roles and circumstances of actions provide additional supervision that is useful alongside templates. The combined setting changes the number and mix of examples as well as their form. The study does not hold the number of questions fixed while varying each source, so the gains establish the value of the full collection under the tested procedure. They give less direct evidence about the benefit of each generation method for a fixed training budget.
A pyramid needs both scene context and local views
The grid ablation starts with a whole-image view and adds increasingly fine resolutions. In the paper’s set notation, a resolution names the number of divisions along a side. Each successive row keeps the coarser grids while introducing a finer one. GQA validation illustrates the trajectory for the zero-shot encoder.
GQA validation exact-match accuracy by encoder patch resolutions
Adding finer grids helps through the best tested pyramid, then accuracy falls when the finest grid is included.
The numbers
| System or setting | Exact-match accuracy % |
|---|---|
| {1} | 15.3 |
| {1, 3} | 28.8 |
| {1, 3, 5} | 30.9 |
| {1, 3, 5, 7} (this paper) | 33.7 |
| {1, 3, 5, 7, 9} | 31.2 |
The UpDown run shows the same shape on GQA validation. It scores 11.3 using the whole-image view, then 24.5 and 29.5 as finer grids are introduced. It reaches 31.1 with the pyramid ending at 7 × 7 and drops to 29.3 when the grid at resolution 9 is added. On the other benchmarks, the authors also report a peak when the finest grid in the pyramid is 7 × 7. The comparison concerns that entire pyramid, with coarser levels still present. Its best row therefore describes the value of combining scales at this point in the experiment.
The paper interprets the pattern as a balance between retaining scene context and making local cues accessible. Starting from a whole-image representation, additional grid levels make it easier to associate a question with a particular part of the picture. The final tested grid increases the number of local views and produces a worse result under the authors’ setup. That observation pins down a useful choice among the tested resolutions. It leaves open which aspect of the last change, including the patch size or the longer visual sequence, accounts for the decline.
Other feature comparisons help identify what matters in that setup. Moving from ResNet-50 to ResNet-101 yields improvements that the paper reports as ranging from 0.01% to 0.30%, without giving a separate breakdown of that range by split in its discussion. Removing visual position embeddings produces drops reported at 4.60% to 8.00% across zero-shot and fully supervised settings. Region appearance and region position supply different information. The latter comparison shows that the explicit indication of where a patch comes from contributes substantially in the tested encoders.
The auxiliary tasks improve the zero-shot answer head
The loss ablation keeps subphrase-weighted answer training because that head is the mechanism the authors use to answer benchmark questions in the zero-shot condition. The comparison tests what happens when masked caption completion, masked answer prediction, and image–text matching are included alongside it. The row containing only the weighted answer objective is therefore the starting point for measuring the contribution of the auxiliary tasks.
In GQA validation, the weighted answer loss alone gives the encoder 25.4 zero-shot exact-match accuracy. Adding masked language modeling gives 27.8, while adding masked question answering gives 26.6. Combining both masked tasks with weighted answer training reaches 29.7. The combination of masked language modeling, image–text matching, and weighted answer training reaches 28.9. The row using all objectives reaches 31.2 in this comparison.
The results indicate that reconstructing caption words, filling in answers, and discriminating matching captions can contribute information useful to the answer head. The comparison with both masked tasks gives the cleanest view of what adding image–text matching does to that particular combination. The table contains no corresponding zero-shot result with the weighted answer head removed. It consequently measures how the auxiliary objectives contribute when the weighted answer objective is present. It also reports 31.2 for its all-task GQA row, while the main GQA result is 33.7. Each figure belongs to its own reported comparison, and the paper does not give a full account of the difference between those settings.
The amount of generated data and how it is sampled both matter
The paper plots validation accuracy for the zero-shot encoder as the amount of synthetic question–answer training data changes. The authors describe performance as leveling off once the training set reaches 10⁶ examples in the learning-curve analysis. This is a threshold in the reported experiment with the available question-generation procedures. More generated examples can repeat the same types of visual facts and the same general forms of question. The curve cannot tell whether adding questions about genuinely different facts would produce the same result as adding more of the existing kinds.
The authors also compare training on the full collection with randomly sampling a set of questions per image in each epoch. They report a 4% gain for the sampling procedure. The prose gives this as a result of the sampling comparison without naming an individual benchmark split for the gain. The two procedures expose training to the collection in different ways. Sampling changes which questions recur together for an image and how examples are distributed across epochs. The experiment establishes a benefit for the sampled setup without identifying which of those changes accounts for it.
The answer format explains some recorded errors
The zero-shot answer head frequently favors a descriptive phrase where the benchmark expects a shorter response. The paper illustrates this with a prediction that includes the color of a car when the target is simply the object name. The longer prediction may refer to the same visible object, while matching the target requires suppressing the extra description. The weighted loss helps expose the answer head to shorter alternatives, but the authors continue to observe the tendency to choose full phrases.
The automated analysis finds that the recorded answer is a subphrase of the prediction for 42% of questions. The paper then looks at 100 instances drawn from cases of that kind and judges 87% of the detailed predictions plausible. The manual evaluation gives a way to distinguish some differences in answer granularity from clear visual mistakes. Because the cases were selected for containing the target within the prediction, the plausibility rate describes that subset of errors. It cannot be used as an accuracy estimate for the complete set of predictions.
The supervised classifier comparison examines the same issue from a different angle. The authors try adapting the pretrained answer classifier with the weighted loss and compare this with learning a fresh feed-forward layer for the target. The fresh layer performs better, with an improvement reported as +6% in the discussion of supervised adaptation. The paper does not assign that figure to a particular benchmark split in the surrounding prose. The reused classifier tends to retain longer forms. The new head provides evidence that the shared encoder can supply useful visual and linguistic features even when the original answer vocabulary and its preferences do not fit the benchmark.
Limitations
Limits the authors identify
The authors identify a mismatch between synthetic and human-written questions. The distributions of question types illustrate one aspect of it. Yes-or-no questions make up 50.18% of the synthetic pretraining examples, compared with 41.86% of the VQA-CP evaluation examples in the appendix. Number questions make up 8.32% of the synthetic examples and 11.91% of the VQA-CP evaluation examples. These are proportions of questions, not scores. Caption-based generation introduces its own preferences about which kinds of questions to ask, even when it avoids inheriting the target training split’s preferences directly.
The paper also compares the wording of the questions by projecting their vector representations into a lower-dimensional view. The visualization brings the human-authored VQA and GQA questions into overlapping areas and shows a more distinct grouping for the generated questions. The appendix presents a projection using question representations based on mean-pooled GloVe embeddings. Averaging word vectors gives a summary of the words in a question. Visible grouping in the projection supports the observation that the sources use language differently. The figure cannot establish which individual wording differences cause failures on a benchmark.
The answer sets also differ. The paper describes a synthetic vocabulary with 90k distinct answer phrases in its main discussion. It notes that around 200 VQA answers are absent from the synthetic phrases, including clock times and some proper names. The text uses different approximate counts for the benchmark vocabularies in its main discussion and appendix. The supported conclusion is that the synthetic collection has a much larger set of distinct answer strings, largely because it retains descriptive phrases. The large vocabulary still leaves out some of the specific answers the benchmark expects.
Some missing answers are matters of coverage and others are matters of form. A caption may never supply a team name or a precise clock time. In another case it may supply a phrase specifying a location relative to a table, while a benchmark expects only a direction such as left. Seeing a word within a longer answer gives the system some exposure to its meaning, but the word has a different role when used as the complete label. The weighted answer training addresses part of this mismatch, and the error analysis shows that the mismatch persists.
The authors also single out spatial and compositional questions as a limitation of the caption-derived collection. Captions rarely specify the detailed relationships among objects needed to generate many questions of the kind GQA asks. Some scenes supply rich descriptions of actions with little information about the positions of surrounding objects. The generation procedures can reuse facts made explicit by those descriptions. The authors leave open whether better question generation can close the remaining gap in weakly supervised performance.
Finally, the authors discuss subjectivity and social bias in the data. Captioning instructions encourage descriptions that are relatively concrete, while people still choose what to mention and how to describe it. The paper cites prior work finding gender bias in image captioning data and amplification of that bias in learned systems. WeaQA’s evaluation of changing question–answer priors concerns a particular kind of dataset dependence. The paper offers no separate measurement showing that its training procedure reduces gender bias.
Limits that follow from the evaluation
The visual comparison involves pretrained feature extractors. The patch system uses an extractor trained for ImageNet classification, and the object baseline uses a detector trained on Visual Genome. The method removes the requirement for object bounding boxes in the patch-based VQA pipeline, while its inherited visual features still come from a previously trained extractor. Similarly, the language augmentation procedures use separately trained systems and text corpora. The annotation claim is most precisely understood in terms of what is required to build and train the answering system for this study. Its caption-based setup relies on human-written descriptions, and the benchmarks supply human answers for evaluation.
The strongest overall zero-shot comparison comes from VQA-CP-v2. This benchmark changes answer distributions conditioned on the type of question, making it a suitable test of the shortcut that motivated the paper. It does not by itself isolate the reason for every improvement. Changing from benchmark supervision to generated supervision changes which content is taught and how answers are distributed. Changing the visual frontend, the architecture, and the objectives introduces further differences in comparisons with external systems. The within-study ablations isolate several useful choices, while the benchmark scores establish how the complete configurations transfer.
A related issue concerns the generated negatives. A caption’s silence about an object can reflect what the writer noticed or chose to describe. It is weaker evidence of absence than an explicit check of the image. A similar replacement can make a question more discriminating if the substituted object is indeed absent. The paper provides illustrations of intended negative examples, while leaving the overall reliability of such labels unquantified. The same distinction applies to counts derived from caption text. A caption can support the count as part of a description without ruling out other visible instances.
The manual plausibility check offers a complementary view of errors within a selected group. A broader assessment of answer quality would also have to consider predictions that omit the target, attach the wrong modifier, or identify a different entity. Even a detailed answer that contains the expected noun can add a color, quantity, or relation unsupported by the image. The observed plausibility rate is evidence for giving closer attention to some descriptive predictions. The checked sample alone leaves the prevalence of valid alternatives across the full evaluation undetermined.
What came after
No later studies are documented here as extending WeaQA. The authors leave open whether caption-derived questions can teach more of the spatial and compositional reasoning required by GQA, and whether more sophisticated generation can narrow the gap with direct supervision. Their plausibility analysis also leaves an evaluation question open. A benchmark needs to distinguish a longer answer that correctly describes the scene from one that adds an unsupported detail. WeaQA documents cases where that distinction matters and provides a caption-trained baseline against which further work on those questions can be compared.
Cite
Cite as Pratyay Banerjee, Tejas Gokhale, Yezhou Yang and Chitta Baral. 2021. WeaQA: Weak Supervision via Captions for Visual Question Answering. Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021.
@inproceedings{banerjee2021weaqa,
title = {{WeaQA: Weak Supervision via Captions for Visual Question Answering}},
author = {Pratyay Banerjee, Tejas Gokhale, Yezhou Yang and Chitta Baral},
booktitle = {Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021},
year = {2021},
doi = {10.18653/v1/2021.findings-acl.302},
url = {https://doi.org/10.18653/v1/2021.findings-acl.302}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/banerjee-2021-weaqa-weak-supervision-captions-visual/