SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2103.09591 · NAACL · 2021

Automatic Generation of Contrast Sets from Scene Graphs: Probing the Compositional Consistency of GQA

Roy Schwartz, Yonatan Bitton, Gabriel Stanovsky, Michael Elhadad

arXiv · PDF · Open in the Atlas

Code that ran

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

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

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

RepositoryRoleRan
yonatanbitton/automatic_generation_of_contrast_sets_from_scene_graphs community
Papers with Code archive
1 ran · 4 no recorded run
FunctionStatusWhere it lives
words_similarity Ran
ran, honoured the contract we drafted
yonatanbitton/automatic_generation_of_contrast_sets_from_scene_graphs/src/question_templates/is_the_x_relation_the_y.py
pointer only (licence: NONE) · get_code("64cfbe1330de9070")
How it ran

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

is_the_x_relation_the_y_abstract Not yet run
unverified (harvested, no recorded run)
yonatanbitton/automatic_generation_of_contrast_sets_from_scene_graphs/src/question_templates/is_the_x_relation_the_y.py
pointer only (licence: NONE) · get_code("aff8f9037f9bfe64")
How it ran

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

is_the_x_relation_the_y_change_relation Not yet run
unverified (harvested, no recorded run)
yonatanbitton/automatic_generation_of_contrast_sets_from_scene_graphs/src/question_templates/is_the_x_relation_the_y.py
pointer only (licence: NONE) · get_code("c6d7cd15e47cef60")
How it ran

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

isplural Not yet run
unverified (harvested, no recorded run)
yonatanbitton/automatic_generation_of_contrast_sets_from_scene_graphs/src/question_templates/is_the_x_relation_the_y.py
pointer only (licence: NONE) · get_code("9b03744fa584e212")
How it ran

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

question_template Not yet run
unverified (harvested, no recorded run)
yonatanbitton/automatic_generation_of_contrast_sets_from_scene_graphs/src/question_templates/is_the_x_relation_the_y.py
pointer only (licence: NONE) · get_code("506f66cfcf5f35be")
How it ran

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

Also present in other papers' code

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

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

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

Repositories linked to this paper

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

Abstract

Recent works have shown that supervised models often exploit data artifacts to achieve good test scores while their performance severely degrades on samples outside their training distribution. Contrast sets (Gardner et al., 2020) quantify this phenomenon by perturbing test samples in a minimal way such that the output label is modified. While most contrast sets were created manually, requiring intensive annotation effort, we present a novel method which leverages rich semantic input representation to automatically generate contrast sets for the visual question answering task. Our method computes the answer of perturbed questions, thus vastly reducing annotation cost and enabling thorough evaluation of models' performance on various semantic aspects (e.g., spatial or relational reasoning). We demonstrate the effectiveness of our approach on the popular GQA dataset (Hudson and Manning, 2019) and its semantic scene graph image representation. We find that, despite GQA's compositionality and carefully balanced label distribution, two strong models drop 13-17% in accuracy on our automatically-constructed contrast set compared to the original validation set. Finally, we show that our method can be applied to the training set to mitigate the degradation in performance, opening the door to more robust models. 1 1 Our contrast sets and code are available at https://github.com/yonatanbitton/ AutoGenOfContrastSetsFromSceneGraphs.

For agents

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

get_harvested_code_for_paper("2103.09591")
get_code_for_paper("2103.09591")
have("2103.09591")

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

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

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

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

Connect an agent — have() is free.