Elamur Research

COVR: A Test-Bed for Visually Grounded Compositional Generalization with Real Images

Paper · 2021 · Ben Bogin, Shivanshu Gupta, Matt Gardner et al.

Summary

Recognizing the parts of a question and understanding how they fit together are different achievements. A system might learn to check whether every object of a certain kind has a property, and it might learn to find objects described by a relationship. Can it check the property for every object that satisfies the relationship when that combination is new? COVR, short for Compositional Visual Reasoning, turns that question into a visual question answering experiment. It uses real photographs, presents several related images with a question, and records the operations that give the question its meaning. Those records let the researchers decide which combinations appear during training and which are reserved for evaluation.

The authors build questions from scene graphs, annotations that identify objects, attributes, and relationships in photographs. A question’s image set can include photographs that satisfy a description and others that differ in a detail that matters to the answer. For example, the depicted person or activity might be the same across images while the object involved changes. The authors use templates to turn the annotations into questions and executable programs. The programs can count matching objects, compare quantities, or group objects by image before counting. Crowdworkers check the evaluation examples and rewrite the generated questions in more fluent English. The paper describes COVR as containing 262k examples drawn from ∼89k images.

On the ordinary COVR test split, where training and evaluation follow the same sampling scheme, VisualBERT reaches 67.6% accuracy on the generated questions. On the corresponding paraphrased test questions it reaches 57.9%. The authors estimate human accuracy at 91.9% on a sample of 160 questions. To test compositional generalization, they then remove selected examples from training. Some evaluations reserve a combination entirely, while others leave a small number of examples of the target construction. The paper reports generalization scores in the 0%-70% range in 10 out of the 21 setups. This score measures how much of the accuracy gap between a text-only system and a size-matched reference the system closes.

The failures depend on what is withheld. VisualBERT transfers well to some combinations involving counting and to held-out pairs of words. It struggles when it must apply all to a group defined by a more complex description, even after seeing all and complex descriptions in other contexts. It also struggles with some withheld question templates whose component operations occur elsewhere in training. The authors suggest that larger structures may be harder to combine. The varied outcomes are part of COVR’s contribution: a single test accuracy would conceal which combinations transfer and which still need direct examples.

Deep dive: COVR: A Test-Bed for Visually Grounded Compositional Generalization with Real Images

COVR uses real photographs and executable questions to test when visual question answering can combine familiar reasoning steps in new ways. · about 37 minutes to read

The problem and its context

What has to carry over from training?

A conventional train–test split can establish that a system answers new questions about new photographs. It can leave open whether the system learned a reusable operation. Suppose a training question asks whether every bird has a certain color. Another asks which objects rest on a particular surface. A question about whether every object on that surface has a certain color brings familiar operations together under a new dependency. The system has to establish which objects belong to the group before it can check the claim about all of them. An ordinary split may give it many worked examples of that dependency. A compositional split can reserve the dependency itself for evaluation.

The paper calls the ability to handle such cases compositional generalization. Its motivating observation is that people can frequently understand a new combination once they know its parts. The authors use that observation to motivate a test of reasoning across language and images. The visual setting adds a problem familiar from ordinary question answering: the words identify what evidence is needed, and the photographs supply that evidence. A system must connect an expression such as a description of a person’s activity to the appropriate people in the images. It then has to use those people, or the objects related to them, in a count, a comparison, or a truth judgment.

The paper relates this challenge to earlier work in semantic parsing. There, the task is to map an utterance to a formal expression of its meaning. Work on text-to-SQL evaluation and COGS helped motivate tests that partition examples by their meaning or structure. COVR keeps a formal account of each question’s meaning so the researchers can build comparable splits. The question-answering system receives the question and photographs during the task. The formal account belongs to the benchmark’s construction and evaluation.

That distinction matters because an answer provides less evidence about a procedure than a predicted program would. A correct count might come from correctly identifying the relevant objects. It might also come from exploiting the frequency of an answer or overlooking a condition that happens to make no difference for this particular image set. COVR addresses this ambiguity at two points. Its programs give the experimenter a precise way to identify what a question requires, and its choice of photographs gives the system a reason to attend to details that could otherwise be skipped.

What earlier visual tests controlled

The paper describes several earlier ways to make visual questions harder. GQA’s structure split groups examples by their surface construction. A separation at that level can leave the same underlying program on both sides of the split, since wording can change while the required procedure stays the same. GQA’s content split instead tests transfer to unfamiliar lexical concepts. That is a useful test of vocabulary and grounding. In COVR’s principal compositional tests, the authors want the relevant concepts to be familiar and the way they are assembled to be the variable under study.

C-VQA constructs compositional splits from question–answer pairs. That gives a handle on combinations of questions and responses, but the split has no direct description of the operations inside each question. The paper also discusses CLEVR-CoGenT, which reserves combinations of visual attributes. A system might have to recognize a familiar color on a shape that appeared with other colors during training. Such transfer concerns how properties of objects come together. COVR can ask about those properties within a larger procedure and reserve, for example, a particular combination of filtering and counting.

Program-based tests such as CLOSURE already made it possible to control what a question means when building a split. The earlier tests discussed in this part of the paper use artificial scenes, with inventories of entities and relations described as ≤ 20. Synthetic images give the experimenter control over scene contents. The motivation for COVR is to retain control over question structure while moving to photographs with a broader range of objects and relations. That move requires a way of handling imperfect annotations, because the benchmark builder cannot simply consult the process that rendered a photograph.

GQA already pairs real images with mechanically generated questions and supplies a basis for describing question meaning. The COVR authors argue that the range of possible splits depends on how many different procedures remain after the vocabulary is stripped away. If names of objects, attributes, and relations are replaced by a common placeholder, the paper counts 79 distinct programs in GQA and 640 in COVR. This comparison concerns the variety of procedures available to the split designer. It also depends on how the authors abstract away lexical content. A program for counting one kind of object and a program for counting another can become the same structure under that abstraction.

The use of several photographs expands the kinds of collections that a question can refer to. An ordinary object count treats the object as the unit. A question about how many images meet a condition treats an image as the unit and can require a separate count within each image. The authors see that distinction as important for building an inventory of reasoning operations. Real-image datasets with human-written questions, including reasoning about language grounded in photographs, offer another kind of variety. As characterized in the paper, they lack the question-level meaning representations the COVR procedure uses to define its splits.

Why the other photographs matter

Earlier work on overcoming priors in visual question answering motivates the authors’ concern about shortcuts. The problem is broader than the possibility of guessing an answer from the words. A system can look at a photograph and still use only part of the question. If the question identifies a person by both an activity and an item of clothing, a set with only one person might let the system answer without checking either condition. Adding unrelated pictures may leave the same shortcut intact.

A useful distractor shares enough features with the target that an incomplete description also fits it. Consider the paper’s example built around someone catching a frisbee while wearing jeans. A picture of someone catching a ball preserves the activity and changes its object. Another picture can preserve the frisbee and change the person. Which distractor is useful depends on which part of the description the question relies on. The benchmark treats that choice as part of the experiment. An image set should make the relevant distinction matter to the answer, just as the split should make the target combination matter to the interpretation.

The method, step by step

From photographs to a question with a known answer

The generation procedure begins with a description already attached to a photograph. The authors extract a small connected part of that description, find photographs with the same pattern or a carefully chosen variant, and then look for question templates that the resulting group of photographs can support. The template turns the graph information into both a sentence and a program. The remaining steps balance the dataset, check the evaluation examples against the photographs, and improve the wording.

How COVR generates and checks an example

The steps in order.

How COVR generates and checks an exampleStep 1: Start with an annotated photograph1. Start with an annotated photographStep 2: Extract a subgraph around an object2. Extract a subgraph around an objectStep 3: Retrieve matching photographs and candidate distractors3. Retrieve matching photographs and candidate distractorsStep 4: Screen distractors for overlap and missing annotations4. Screen distractors for overlap and missing annotationsStep 5: Fill a template and build its program5. Fill a template and build its programStep 6: Balance question types, structures, and answers6. Balance question types, structures, and answersStep 7: Validate evaluation examples against the photographs7. Validate evaluation examples against the photographsStep 8: Paraphrase selected questions in fluent English8. Paraphrase selected questions in fluent English

A COVR example has the following form.

(q, I, a)

Here, q is the question, I is the set of photographs shown with it, and a is the expected answer. The parentheses group these fields into one example. An example can contain up to 5 images. Its attached program expresses the operations needed to interpret the question and derive the answer from the annotated scenes. The same program is available for defining a split even when the question is later reworded.

Extract descriptions from scene graphs

A scene graph describes the contents of a photograph in pieces. An object node can represent a person, a bottle, or a tool. An attribute can describe a visible feature of an object. A relation can connect a person to a held object or place one object beside another. COVR uses GQA’s cleaned version of scene graphs from Visual Genome and uses imSitu as another source. The Visual Genome annotations provide detail, while imSitu supplies a wider range of activities and makes it possible to represent events with an additional participant, such as a tool used in an action.

A subgraph is a connected part of the scene description centered on a selected object. In the paper’s example of a man opening a wine bottle with a corkscrew, the man can serve as the root, meaning the object from which the description starts. An attribute can describe his posture. The action connects him to the bottle, and a relation modifier connects the action to the instrument. The relation modifier makes it possible to represent what the man is using as part of the action itself. An inventory containing only independent pairs would give the construction procedure less direct access to that role.

The extraction rules specify the allowed graph shape. Each object can have edges to at most 2 relation nodes and at most one attribute node. Each relation has one outgoing connection to an object and may also have connections to relation modifiers. Each modifier in turn leads to one object. A path from the root to its end passes through at most two relation nodes. The graph is directed, so these connections distinguish the object being described from the objects used to describe it.

These rules allow several kinds of referring expression. A description can branch when it identifies its root through separate relationships. It can also follow a chain, starting at one object and then describing it through a relationship whose other participant has a relationship of its own. A modifier adds a different kind of complexity by attaching information to an action. All of these shapes can appear inside a larger question. A count, for instance, can operate on a collection whose members are identified by a chain or by a more local property.

Retrieve matches and near misses

For a source subgraph g, the first kind of related photograph has the same pattern in its annotation. Additional matching photographs make it possible to build examples about several instances of a description. A quantifier can apply across the selected images, and a count can vary as the image set changes. The other kind of photograph is a candidate distractor. Its annotation contains a similar subgraph, yet the source pattern should be absent from the photograph.

The authors define graph edit distance here through substitutions between nodes of the same type. Changing an object name is an eligible operation, and so is replacing an attribute with another attribute. The distance is the smallest number of allowed substitutions that changes one graph into the other. Candidate distractors have a related subgraph at distance 1 or 2. The query also excludes images whose scene graph already contains g. The authors use a graph database to find candidate images under these conditions.

This retrieval rule preserves most of a description when searching for photographs. Its practical value is easiest to see with a relationship. A candidate can include the same kind of person and object while changing what the person does with the object. A question about the activity would then require more evidence than the presence of the nouns. By the same logic, a candidate that changes the wrong part of the graph may be useful for one question and irrelevant to another. The templates impose their own conditions after retrieval.

Screen replacement words for overlap

Two graph labels can differ while describing the same visual situation. A person using a phone may be holding it, and a person described with a broad category can also belong to a narrower category. Treating every label difference as a change in the scene would admit photographs that still satisfy the source description. The authors therefore learn a score for the suitability of a substitution.

m(x₁, x₂) > 0.5

Here, m is the predicted probability that the labels are mutually exclusive in the sense used by the filter, and x₁ and x₂ are nodes of the same type. The greater-than sign compares that probability with 0.5, the cutoff for allowing a substitution. In the case of relations, the paper uses a directional annotation rule. The score then represents the suitability of replacing the first label with the second under that rule.

The authors start with RoBERTa Large, already adapted to the MNLI inference task, and carry out separate fine-tuning for nouns, attributes, and relations. They seek plausible substitutions by collecting terms that already occur in comparable contexts. For attributes, that means looking at labels attached to the same kind of object. For nouns, it means looking at nouns used with the same relation. For relations, it means finding labels used between the same pair of nouns. This concentrates the annotation effort on alternatives that are relevant to graph retrieval.

The paper reports 6,366 manually annotated word pairs for this stage. For nouns, it treats synonymy and broader or narrower category membership as potential overlap. The classifier uses contradiction for pairs judged mutually exclusive and neutral for the rest. On the held-out noun pairs, it reaches 94.4% accuracy. The corresponding attribute accuracy is 95.7%, and the held-out relation accuracy is 82.5%. These percentages measure judgments about replacement labels, a preparatory task distinct from answering a COVR question.

Direction matters for a relation such as riding versus being near. A scene annotation of someone riding a motorcycle may omit a more general proximity relation. Taking that photograph as a negative example for proximity would create an ambiguous question. A photograph of a person described as standing near a motorcycle can be a reasonable candidate for a question about riding it. The paper makes this choice based on the expected specificity of the scene annotations. The result is a filter that can admit a substitution in one direction and reject it in the other.

Check what the graph may have missed

Rejecting a candidate whose graph contains the target description is useful only to the extent that the graph records what is in the photograph. A missing annotation can make a valid match look like a distractor. It can also make a group look smaller than it is. The authors address the first problem with LXMERT, which they adapt to predict whether a simple subgraph occurs in an image. The simple subgraphs contain at most 2 object nodes, up to a single relation, and up to a single attribute. The authors reserve this check for those pieces because they do not assume that the classifier can reliably interpret an entire complex description.

For training, a positive pair consists of a simple subgraph and a photograph whose annotation contains it. A negative pair uses a candidate distractor drawn through the substitution and overlap procedure. For a description of a man wearing jeans, a photograph with a corresponding annotation is positive. A photograph with a similarly described man wearing shorts can supply a negative. An alternate label that might still refer to the jeans would be screened out by the earlier overlap check. The value of the negative pairs therefore depends on the first filter as well as the retrieval rule.

The authors report 6,520,367 positive and negative examples for the visual filter. They use images from the source collections’ training and test portions to build these examples. They then split the filter’s examples into 5 image-based partitions and train a separate classifier for each held-out partition. When checking a photograph, they use the classifier that did not train on that photograph. This partitioning belongs to the dataset-construction filter. The question-answering experiments use their own image separation and their own question subsets.

At the filtering stage, the system checks the simple subgraphs of g in the candidate image. If every component scores above the cutoff, the photograph is rejected as a potential match to the source description. The paper denotes the cutoff by τ. It uses 441 manually annotated examples to guide early stopping and the selection of cutoffs, with the aim of identifying missing subgraphs correctly at a rate above 95% on that check. The decision is conservative in a specific sense: if the components appear to be present, the image can be dropped before it becomes a questionable distractor.

The chosen cutoff depends on what differs between the source and candidate graph. The paper gives the following values.

τ = 0.05 for an object difference

Here, τ is the score threshold for checking a candidate with an object substitution, and the equals sign assigns it the value 0.05.

τ = 0.1 for a relation difference

Here, τ is the threshold when the difference is a relation substitution, and 0.1 is its assigned value.

τ = 0.5 for an attribute difference

Here, τ is the threshold for an attribute substitution, with the assigned value 0.5. When the set of differing nodes includes several types, the procedure uses the largest of their thresholds.

A separate check looks for additional instances when some are already annotated. If the graph records apples in a photograph, the procedure takes the positions of those apples and suppresses features from regions that overlap the annotated boxes. It then asks the same classifier whether evidence for an apple remains. This uses region features based on boxes proposed by Faster R-CNN. The authors use a threshold of 0.5 for the additional-instance check. They also suppress 15% of the boxes during the filter’s fine-tuning so the classifier encounters inputs with features removed before it is used in this way. The check is particularly relevant when an unrecorded instance would change a count or make a supposedly unique description apply to several objects.

Turn the checked images into questions and programs

The authors write 15 question templates. A template defines the task, the slots to fill, and the conditions a subgraph and its distractors must meet. The available tasks include asking for an attribute, choosing an object from alternatives, comparing counts, verifying a quantified statement, and counting groups defined by image. A template can produce many programs because a slot can hold a simple object description or a longer description with attributes, relations, and nested references.

One kind of precondition asks whether the source subgraph contains the information required to fill a slot. An attribute-verification question needs an attribute attached to the root object. The template can put the description of the root in the question and reserve the attribute for the claim being checked. In the paper’s sink example, the reference locates the sink relative to a towel, and the question asks whether the sink is white. Splitting those pieces makes the target property something the reader has to verify.

Another precondition controls the distractors. For attribute verification, the distractor has to differ in the root attribute and in an additional node. If the only difference were color, the reference might pick out a target and a distractor equally well. A second change can give the question a way to identify which object it asks about, while keeping an object with a competing attribute in view. The rule serves two purposes. It gives the system a plausible alternative and provides the evidence needed to tell the alternatives apart.

The slots draw from several sources. Some are filled from the original subgraph, as when a description mentions a woman lighting a cigar and names the instrument used. Another slot can draw an alternative instrument from a distracting graph. A comparison of counts can use one description from the source and another associated with a distractor, such as descriptions distinguished by jacket color. Finally, slots that determine the operation come from a closed inventory, including expressions for comparing which group has more members or whether the counts agree. Changing such an expression changes what the program checks, even if the groups remain the same.

After the slots are filled, the generator builds a program. Each row applies an operator to literal arguments, earlier outputs, or both. Find retrieves objects with a given name across the scene annotations. Filter retains objects with the requested attribute. WithRelation selects objects connected to another collection through a specified relation. A subsequent operator can count those objects, ask for the name of a uniquely identified object, or compare their number with another count. The order of these operations determines what the question means.

The paper illustrates this with a question about how many images contain exactly 2 books on wooden tables. The program first finds tables and filters for wood. It finds books separately and then retains those connected to the filtered tables by the appropriate relation. At this point the output consists of matching books. Grouping by image then produces entries that associate each image with its matching books. The program keeps groups of size 2 and counts the remaining groups. In this procedure, books are the unit of the inner check and images are the unit of the final answer.

The inventory also includes operators for checking a condition across a collection. All tests whether a subprogram succeeds for every relevant object. Some checks whether it succeeds for any, and None checks whether any object would make the condition true and succeeds when there is no such object. The input collection is part of the meaning. A description that restricts the collection to objects with a certain attribute changes the scope of the quantifier, meaning the group over which it ranges. Programs also represent conjunction and disjunction and can compare numeric results for equality or order. That structure gives the authors a direct way to distinguish a quantifier’s identity from the complexity of its scope.

Balance the examples and check the language

The initial generation runs separately on the training and validation image portions of GQA and imSitu. The paper reports 13 million training candidates and 1 million validation candidates at this stage. It divides the latter pool into development and test portions and keeps identical question strings from appearing in both. Throughout the compositional experiments, the underlying image partition keeps training photographs out of the evaluation sets. Development and test text separation serves a different purpose by preventing the same generated wording from spanning those two evaluation portions.

Generating questions for every eligible combination creates imbalances. Some templates apply more often, some answers are easier to generate, and particular graph shapes are more common. The authors also want the photographs to matter to the answer. When possible, they generate the same wording with different image sets and different correct answers. The paper reports that 186,841 training questions, or 75.3%, occur with at least two different answers. The repeated question is useful precisely because its wording holds steady while the visual evidence changes.

The downsampling procedure groups questions by template and allocates the same number of places to each group. The paper describes the allocation as follows.

S = N / T

Here, S is the number of questions allotted to a template, N is the total question count used for the allocation, and T is the number of template groups. The slash means division, and the equals sign defines the quota S.

Within each template group, the procedure first selects questions that appear with different answers. It fills the remaining places by giving priority to answers that appear least frequently among the examples selected so far. Among candidates with the chosen answer, it then favors underrepresented source-graph structures, where structure is characterized by graph size and depth. The resulting balance is a property of the selection heuristic. It gives the authors leverage over which examples are common without requiring every type of question to have the same answer inventory.

Crowdworkers validate the development and test examples by looking at the question, photographs, and proposed answer. They can reject an answer as wrong, reject a question they cannot understand, or flag a case in which correctness cannot be determined. Workers qualify on examples the authors have judged, and the authors monitor sampled responses and provide feedback. The validation rejects 17% of the examples it reviews. Visual inspection matters here because a question can be executable against an annotation and still be ambiguous or wrong when a person examines the photograph.

For paraphrasing, workers rewrite the automatically generated questions in fluent English while preserving their meaning. This applies to all development and test questions and to 3990 training examples. The authors qualify workers by checking their rewrites for both fluency and semantic fidelity. They also remove examples on which workers leave comments. Among the paper’s examples, a mechanically expressed comparison between boats and surfboards becomes a short comparative sentence, and a question with a relative clause about a person’s jacket becomes a more direct description. In both cases the intended answer and the underlying operation carry over. The authors release the COVR dataset and its generation code.

Define what the system can see during training

A compositional split is a rule over question properties. The authors derive those properties from the program, the graph that generated it, or the answer type. A property can say that a program uses a quantifier, that it uses the specific quantifier all, that its quantifier ranges over objects selected by a relation or attribute, or that it includes a particular form of counting. Other properties track the generating template, a graph shape, the presence of a node name, or whether the answer is a number. A property evaluates to true or false for each example.

For a zero-shot test of two properties together, training keeps examples where the properties occur separately and removes examples where they co-occur. The evaluation subset contains the co-occurrence. For the split involving all and complex scope, training can still show all with a simple scope and other quantifiers with complex scopes. Evaluation asks the system to use all over a collection that first has to be selected by an attribute or relation. This holds out a dependency between familiar operations. There are also tests that remove an entire template or a union of templates, leaving the relevant reasoning operations available in other forms.

The random program split withholds 20% of the programs after anonymizing names. It tests transfer to an unfamiliar arrangement of operators and arguments rather than transfer to an unfamiliar word. The random lexical split does the converse in a more limited sense. It prevents selected pairs of node names from appearing together during training. The paper creates 3 random lexical splits and holds out 20% of the pairs in each. A word in a held-out pair can still appear in other contexts. The system has to deal with a new pairing of familiar names.

For a few-shot learning test, the training set retains only a small allowance of examples possessing the target property. The authors call the allowance M. The rest of the original training examples with that property are removed, and evaluation uses examples that have it. The main few-shot experiments set M to 250. The distinction between a broad property and a narrow one matters here. Limiting all uses of quantification withholds a larger family of constructions than limiting uses of all, since the latter leaves other quantifiers available in the usual training contexts.

Experiments and results

The data, systems, and comparisons

The dataset statistics table reports 248.1k training questions and 13.9k questions across development and test. It lists 79.0k distinct training images and 9.5k distinct images for development and test together. The typical image set also differs across those partitions. Training examples contain an average of 4.4 photographs, compared with 3.4 for the combined evaluation portion. The paper’s distribution for training shows that most questions reach the maximum of 5 images. These figures describe the dataset before any particular removal of questions for a compositional experiment.

The answer formats include truth judgments, a choice between stated alternatives, numbers, and open responses. The last category includes requests such as naming an object or giving its attribute. Excluding true and false, the answer distribution in training is led by the numbers 0-5, followed by frequent colors, attributes, and relations. The mix matters when comparing results. Guessing one of two named alternatives provides a different starting point from supplying an object name that the question never gives.

For the ordinary split, the authors compare learned systems against the majority answer in training and against an oracle that knows which template generated the question. The oracle uses the majority answer for that template or, if the question states two alternatives, chooses between them at random. Knowing the template gives the oracle information about question type and the range of likely answers. The text-only VisualBERT comparison receives the words with image representations zeroed out. It can use the wording and answer frequencies it learns during training.

The main visual system adapts VisualBERT to questions with multiple photographs. It obtains a representation for the question paired separately with each photograph. The set of representations then passes through two transformer layers with an added classification token, written [CLS]. The representation of that token goes through a classifier to predict the answer. The layers added for this task are randomly initialized, and the authors fine-tune the full system. They also run ViLBERT under the controlled Volta setup to check how much depends on the choice of pretrained system.

The raw metric is answer accuracy on the identified evaluation subset. For compositional comparisons, full-data VisualBERT gives a reference trained with the usual range of examples. The authors also create a size-matched reference by uniformly downsampling the original training data to a size similar to the filtered compositional training set. This retains ordinary access to the target property or combination. The compositional system and both references are evaluated on the same target examples, so that a comparison within a split holds the questions and photographs fixed. Compositional training runs for 8 epochs, with early stopping based on a development subset that excludes the properties under test.

The paper defines its generalization score as the share of the gap from the text-only baseline to the size-matched reference that the compositionally trained system closes. That description can be written as follows.

G = (Acomp − Atext) / (Asize − Atext)

Here, G denotes the gap fraction. Acomp is the accuracy of the system trained with the compositional restriction, Atext is the text-only accuracy, and Asize is the accuracy of the ordinarily trained, size-matched reference. The parentheses group each difference, the minus sign subtracts the text-only accuracy, and the slash divides the achieved improvement by the reference improvement. The paper discusses the fraction as a percentage. It also flags cases in which compositional accuracy falls below text-only accuracy. Raw accuracies make those cases visible even where the reported generalization score is at the bottom of the scale.

The size-matched comparison is important because removing a property can also remove a substantial number of questions. If a system loses accuracy after filtering, reduced training volume is one possible explanation. Uniform downsampling creates a reference that also has fewer examples but can still encounter the target construction. The generalization score asks how well targeted removal performs relative to this reference. Since the text-only starting point and reference accuracy can both change across splits, two similar raw accuracies can reflect quite different degrees of transfer.

Performance on the ordinary split

On generated COVR questions, the fully trained VisualBERT reaches 69.2% development accuracy and 67.6% test accuracy. The text-only comparison reaches 45.6% on development and 44.8% on test. The test accuracy of the template oracle is 41.5%, and the global majority baseline reaches 26.8%. The authors describe the test gap from the template oracle to text-only VisualBERT as 3.3%. Much of what the text-only system achieves on this test is therefore also available from coarse information about question and answer type.

Answer accuracy on generated questions in the ordinary COVR test split

VisualBERT trained with selected distractors has the highest test accuracy of the automated systems.

Answer accuracy on generated questions in the ordinary COVR test splitTraining majority answer: 26.8Training majority answer26.8Template-aware majority answer: 41.5Template-aware majority answer41.5Text-only VisualBERT: 44.8Text-only VisualBERT44.8VisualBERT trained with random distractors: 56.9VisualBERT trained with randomdistractors56.9VisualBERT trained with selected distractors (this paper): 67.6VisualBERT trained with selecteddistractors (this paper)67.6
The numbers
System or settingaccuracy %
Training majority answer26.8
Template-aware majority answer41.5
Text-only VisualBERT44.8
VisualBERT trained with random distractors56.9
VisualBERT trained with selected distractors (this paper)67.6

When evaluation switches to the paraphrased COVR test questions, the ordinary VisualBERT system reaches 57.9% accuracy. For training on generated examples, the authors report a 9.7% drop from the generated test version. The paraphrased development accuracy is 61.1%. The paper reports 91.9% as an estimate of human accuracy on 160 questions, displayed with the paraphrased test results. The sample supports a comparison with human answers on the task while leaving uncertainty about how people would perform on every template or compositional split.

Overall accuracy also hides considerable variation by template. On generated ordinary test questions, full-data VisualBERT reaches 87.7% on verifying counts and 73.1% on giving counts. It reaches 60.3% on counting across groups of objects by image. For open questions, accuracy is 47.1% on querying an attribute and 14.4% on querying an object. These results describe the individual test subsets, which differ in both required operations and allowed answer formats. They show where average performance comes from without, by themselves, isolating the effect of an individual operation.

Few-shot performance

The paper reports a generalization score of ≤ 70 in 5 out of 11 few-shot setups. In the split that restricts all quantifier examples, few-shot VisualBERT reaches 55.8% accuracy on the generated evaluation questions. Text-only accuracy on that subset is 50.8%, and size-matched accuracy is 78.1%. In the split that restricts all specifically, the few-shot system reaches 69.2%, against 50.7% for text-only and 75.2% for the size-matched reference. Both few-shot conditions use the same allowance for the target property. They differ in the related quantifier examples still available outside that allowance.

Answer accuracy on generated COVR few-shot questions containing quantifiers

Giving the system a limited set of quantifier examples improves accuracy while leaving a gap to ordinary training.

Answer accuracy on generated COVR few-shot questions containing quantifiersText-only VisualBERT: 50.8Text-only VisualBERT50.8VisualBERT with the few-shot quantifier allowance: 55.8VisualBERT with the few-shot quantifierallowance55.8Size-matched ordinarily trained VisualBERT: 78.1Size-matched ordinarily trainedVisualBERT78.1Full-data ordinarily trained VisualBERT (this paper): 80.5Full-data ordinarily trained VisualBERT(this paper)80.5
The numbers
System or settingaccuracy %
Text-only VisualBERT50.8
VisualBERT with the few-shot quantifier allowance55.8
Size-matched ordinarily trained VisualBERT78.1
Full-data ordinarily trained VisualBERT (this paper)80.5

A similar pattern occurs with comparatives. When all comparative examples are restricted, the few-shot system gets 57.5%, the text-only system gets 54.3%, and the size-matched reference gets 76.4%. When the restriction concerns the particular comparison more, the corresponding accuracies are 79.8%, 53.8%, and 81.3%. The authors read these comparisons as evidence that exposure to related operations can help a system use a withheld member of the same family. They also report a perfect generalization score when the few-shot property concerns conjunction specifically. On that generated subset the few-shot system reaches 74.8%, and the size-matched reference reaches 72.3%.

Other few-shot tests separate seeing a number in a question from seeing it as an answer. When the restriction concerns the number 3 in the question, the paper reports a generalization score of 92%. The few-shot accuracy is 68.8% against 70.8% for the size-matched reference. When the restriction also makes 3 rare as an answer, the paper reports a score of 0%. Few-shot accuracy there is 25.8%, with 26.2% for text-only and 65.6% for the size-matched reference. The authors suggest that seeing numbers in answers can help the system build representations it later uses when interpreting numbers in questions. The comparison gives that suggestion a concrete basis while leaving open what is being transferred.

Zero-shot performance

In the generated zero-shot tests, VisualBERT reaches 57.7% on questions combining all with a complex scope. Text-only accuracy on those same questions is 50.8%, and the size-matched reference reaches 77.3%. The paper reports a generalization score of 26% for this combination. The quantified construction is the one held out; training still contains quantifiers over complex groups in other forms and contains all in simpler forms.

Answer accuracy on generated COVR zero-shot questions combining all with complex scope

Training without the target combination leaves accuracy much closer to the text-only baseline than to ordinary training.

Answer accuracy on generated COVR zero-shot questions combining all with complex scopeText-only VisualBERT: 50.8Text-only VisualBERT50.8VisualBERT trained without the target combination: 57.7VisualBERT trained without the targetcombination57.7Size-matched ordinarily trained VisualBERT: 77.3Size-matched ordinarily trainedVisualBERT77.3Full-data ordinarily trained VisualBERT (this paper): 78.2Full-data ordinarily trained VisualBERT(this paper)78.2
The numbers
System or settingaccuracy %
Text-only VisualBERT50.8
VisualBERT trained without the target combination57.7
Size-matched ordinarily trained VisualBERT77.3
Full-data ordinarily trained VisualBERT (this paper)78.2

Some withheld templates produce even weaker raw results. When object choice is held out, VisualBERT reaches 1.6% on the generated evaluation questions, compared with 52.0% for text-only and 62.6% for the size-matched reference. With attribute verification held out, it reaches 0.0%, compared with 49.6% and 75.4% for those references. When both count-verification templates are removed, accuracy is 41.7%, below the text-only accuracy of 49.8%. These tests reserve recognizable question forms along with the operation combinations associated with them. Training leaves some of the parts available through other templates.

There are also strong zero-shot results. Combining counting with an attribute gives 58.7% accuracy, compared with 41.2% for text-only and 62.6% for the size-matched reference. Counting in the presence of a more complex subgraph gives 74.1%, against 40.5% and 82.2% for those references. The complex subgraphs in that split include relation modifiers, branches, or chains. The comparatively strong result matters because the input description can have visible structural complexity even when the new combination transfers well.

The random splits draw a further contrast. On held-out anonymized programs, the paper reports 49.5 ± 3.6 for zero-shot accuracy, 43.8 ± 4.5 for text-only accuracy, and 61.5 ± 4.4 for the size-matched reference. On held-out lexical pairs, the corresponding results are 71.5 ± 1.1, 46.4 ± 0.1, and 72.2 ± 1.5. The reported values put the zero-shot system close to the size-matched reference on lexical pairing and farther from it on program structure. They summarize the random-split experiments and should be read alongside the more targeted holds on quantifiers and templates.

What the ablations show

Choosing distractors changes the training problem

The paper’s easy-distractor experiment replaces the selected distractors with random photographs during training. On the generated ordinary test, that version reaches 56.9% accuracy, and the authors report a 10.7% drop relative to training with selected distractors. On the paraphrased ordinary test, the random-distractor version reaches 49.0%. The change alters what the training image sets require a system to distinguish. Random photographs are less likely to preserve the parts of a description that could support a shortcut while varying the detail that determines the answer.

The result supports the usefulness of difficult distractors as a training condition. It does not isolate the contribution of each screening stage. Graph retrieval, judgments about overlapping labels, and visual checks for missing annotations contribute to the selected image sets together. The word-pair accuracies and missing-subgraph check measure pieces of that process on their own tasks. The answer-accuracy experiment measures the combined consequence of training with the resulting distractors. A reader can use both kinds of evidence without treating them as interchangeable measurements.

The text-only comparison addresses a related question. On many templates with a restricted answer format, text-only scores are near the 50% level the paper uses as a chance reference. Other templates leave different opportunities for guessing. A system can exploit which answer types are common, and some words may narrow the possibilities even with visual input removed. The paper’s counterexamples with identical question wording and varied correct answers make a purely textual strategy less reliable, while the controlled removal of image representations shows how much such a strategy still achieves.

Paraphrasing tests transfer across wording

Generated and paraphrased versions allow the authors to examine what happens when intended meaning is retained and the expression changes. In the principal compositional experiments, they use the generated questions to reduce the effect of switching language styles. The paraphrased evaluations combine the held-out reasoning condition with the additional demand of handling human rewrites. The paper reports lower generalization scores on the paraphrased compositional questions overall.

For example, on the paraphrased zero-shot subset combining all with complex scope, VisualBERT reaches 54.5%, against 50.1% for text-only and 68.9% for the size-matched reference. Every comparison uses the paraphrased questions for that subset. This matters because ordinary accuracy can also fall with paraphrasing, changing the reference gap as well as the compositional system’s score. The observed effect is consequently about performance under the experiment’s training and evaluation styles. It gives no direct measure of how the same system would learn if it had comparable exposure to fluent human-written questions during training.

The per-template ordinary results help locate differences masked by the aggregate. Generated object-choice questions reach 66.4% with full-data VisualBERT, while the paraphrased object-choice questions reach 41.9% in the corresponding test results. Verifying counts reaches 87.7% on generated questions and 80.9% on paraphrases. Both templates have generated programs that can be retained through rewriting, yet the accuracy changes are different. Wording is thus part of what the evaluation asks the system to handle. A result for one generated template cannot simply be carried over to another way of asking it.

Exposure helps at different rates for different properties

The authors vary M, the number of training examples allowed to contain the target property, and plot development accuracy for two compositional splits. They report that 50 examples make little difference in those experiments, with most improvement occurring in the range from 125 to 2500 examples. Additional examples beyond that range bring smaller improvements. This is an analysis of the selected splits and their available training pools. It shows how the system’s accuracy changes as direct exposure increases under the benchmark conditions.

The comparison between broad and narrow restrictions gives a related view of exposure. Restricting all quantification leaves the system with scant experience of an entire form of reasoning. Restricting just all leaves many examples with other quantifiers. The narrower restriction produces much stronger transfer in the reported VisualBERT results. The comparative experiments have the same direction of effect. In each case the data left outside the held-out set can supply practice with an operation related to the target.

The number experiment shows why exposure has to be defined in terms of both the program and the answer. The system may encounter a number from producing it, even when examples using that number in the question are scarce. The sharp change when the answer channel is restricted is consistent with transfer between those roles. It is also consistent with effects of answer availability and frequency. The experiment’s value is that it identifies which exposure matters enough to investigate, while the accuracy measure leaves the learning mechanism unresolved.

The choice of pretrained system explains only some variation

The ViLBERT experiments use a system with the same pretraining data and parameter count in the appendix’s controlled comparison. The authors report broadly similar generalization scores on most splits. In the generated lexical split, both zero-shot systems have a reported central accuracy of 71.5, with their own accompanying variation values. The object-choice holdout is difficult for both. ViLBERT reaches 2.0% on that generated subset and VisualBERT reaches 1.6%. This repetition makes it less plausible that the difficulty of those splits comes completely from a peculiarity of VisualBERT.

Individual rows still vary. On generated questions combining all and complex scope, ViLBERT reaches 64.7% zero-shot accuracy, while VisualBERT reaches 57.7%. The corresponding size-matched accuracies are 76.4% and 77.3%. On the few-shot split restricting all quantification, ViLBERT reaches 65.6%, compared with 55.8% for VisualBERT. The paper’s broader conclusion concerns the recurrence of weak transfer across architectures under similar conditions. The differences in particular splits are a reason to keep the system identity and reference accuracy attached to each result.

What the rejected examples reveal

The authors inspect 40 examples rejected during human validation. In that sample, they attribute 70% of the errors to problematic scene annotations. Missing annotations account for 53% of the rejected examples examined, while wrong annotations account for 17%. A missing object can lower a count or make a description appear uniquely identifying. An incorrect label can affect any question that uses it. The construction filters look for missing visual evidence, but the audit shows that enough missing information survives to motivate human review.

The audit also identifies ambiguity that a correct graph label can leave unresolved. The authors attribute 6% of the sampled errors to color questions. Two objects tagged with the same basic color can have shades a person would judge different when asked whether their colors match. They attribute the remaining 16% to various ambiguities, including questions where it is unclear what should count as a separate item. These observations explain some failures of dataset construction in concrete terms. The sample consists of rejected questions, so the percentages characterize causes of rejection in that sample. They give no rate for the remaining questions after validation.

Limitations

Limits the authors identify

The authors leave open a general explanation of when compositional transfer succeeds. They conjecture that combining large or complex structures can be harder than composing more elementary operations. The contrast between the program and lexical splits fits that possibility, as does the failure to apply all over an unfamiliar complex scope. Yet the relatively good result for counting over structurally complex descriptions shows why a single complexity measure would be premature. Different splits vary in the operations they reserve, the examples they leave available, and the relation of a new question to earlier questions.

The visual filters are also limited by design. The simple-subgraph classifier checks small descriptions because the authors do not assume it can interpret a full complex graph. Individual pieces can appear in an image without forming the particular configuration the full question names. Conversely, a classifier can miss an object or relation because the depiction is difficult. The authors’ error analysis confirms that missing annotations can survive their checks. The filter for absent or extra objects also offers no general correction for a graph that assigns an incorrect label to something visible.

Paraphrasing makes the language more fluent and preserves the intended operation as far as the authors can check. The paper finds that compositional evaluation becomes harder in this version. Consequently, the main compositional tables use generated questions to reduce the influence of transfer across language styles. Readers interested in flexible human phrasing have to consider both evaluations. The generated version gives tighter control over language, while the paraphrased version makes that control less complete and brings in a source of difficulty the authors measure separately.

Limits that follow from the evaluation design

A held-out composition is absent from the selected COVR training data. The split procedure establishes that absence using the benchmark programs and question properties. The tested systems have already been pretrained, so the experiment does not establish that comparable combinations were absent from their earlier experience. “Zero-shot” in this setting concerns the controlled training split. The strength of the design is that the experimenter can specify what direct examples that split gives the system. It supplies no comparable inventory of everything encountered before fine-tuning.

Raw accuracy and the generalization score also answer different questions. Raw accuracy includes errors from perception, reference resolution, counting, and selecting an answer. The gap fraction puts performance in relation to a text-only baseline and an ordinarily trained system with a similar amount of data. The reference itself can be far from perfect. Closing its gap therefore leaves room for substantial error on the benchmark. Conversely, a poor score on a split can reflect several demands that the split changes together. The size-matched comparison addresses the volume of training data, while the choice of what to remove can change which answer formats and nearby constructions are available.

A useful example is the held-out object-choice template. The paper identifies the constituent skills elsewhere in training, which makes this a reasonable transfer test. The restriction also removes the usual pairing of a question form with its expected kind of answer. A system that fails may have trouble combining operations, recognizing that expected answer type, or applying both kinds of knowledge together. The observed accuracy establishes that the required behavior did not transfer reliably under the split. It does not locate the failure inside the answer procedure.

The executable program describes the intended interpretation and allows the experimenter to define the split. The question-answering system produces an answer through its classifier. Matching the expected answer gives indirect evidence that the system dealt with the relevant construction, especially when distractors make superficial strategies less effective. It gives no execution trace showing that the system followed the program. For the same reason, a wrong answer can come from misidentifying a visible object early in the process even when the system handles the logical operation correctly.

Using photographs broadens the visual material available to the benchmark. The source scene graphs, graph extraction rules, and hand-written templates still determine which distinctions the benchmark can systematically test. A relation that is rarely annotated is harder to exploit, and a type of reference outside the allowed graph shapes is outside this generation procedure. Human paraphrasing varies the expression of a chosen meaning. It leaves the selection of meanings in the hands of the generator. These features bound the conclusions to the families of questions that COVR instantiates.

The human estimate provides a check that people can generally answer the task as presented, but it comes from 160 questions. The authors’ broader analogy with how people learn from few examples motivates the work and informs their interpretation of the few-shot curve. The experiments do not run a parallel human training study that varies exposure to the same restricted properties. The measured human accuracy and the system’s exposure curve therefore serve distinct roles in the paper.

What came after

Winoground takes up the question of how to probe compositionality jointly in vision and language. Its connection to COVR is the distinction between finding familiar elements and understanding how they fit together. COVR expresses that distinction through executable questions and reserved combinations of program properties. Winoground’s stated focus is the joint compositional ability itself. It belongs to the broader line of work that asks for evidence of structured interpretation in addition to successful recognition.

When and why vision-language models behave like bags-of-words, and what to do about it? pursues a more specific question about the behavior behind weak composition. A bag-of-words view treats the words present as the main evidence and pays little attention to the relationships their arrangement expresses. That concern is close to COVR’s use of distractors that preserve familiar objects and vary an attribute or relation. The later work frames the issue around when and why such behavior occurs and how it might be addressed. COVR frames it around which reasoning combinations transfer when direct training examples are withheld.

Together, the two papers show the different questions that follow from COVR’s distinction. A probe can ask whether a system responds to composition across the two modalities. A study of bag-of-words behavior can ask what kind of information the system uses when composition fails. COVR supplies a complementary form of evidence by recording which operations a question requires, controlling which combinations appear during training, and comparing the result with references that share the evaluation questions.

Cite

Cite as Ben Bogin, Shivanshu Gupta, Matt Gardner and Jonathan Berant. 2021. COVR: A Test-Bed for Visually Grounded Compositional Generalization with Real Images. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.emnlp-main.774

@inproceedings{bogin2021covr,
  title = {{COVR: A Test-Bed for Visually Grounded Compositional Generalization with Real Images}},
  author = {Ben Bogin, Shivanshu Gupta, Matt Gardner and Jonathan Berant},
  booktitle = {Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.774},
  url = {https://doi.org/10.18653/v1/2021.emnlp-main.774}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bogin-2021-covr-test-bed-visually-grounded/