SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.13254 · 2024

CounterCurate: Enhancing Physical and Semantic Visio-Linguistic Compositional Reasoning via Counterfactual Examples

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 0 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/2402.13254.json · badge: /api/ran/2402.13254.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
hansolo9682/countercurate canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
box_relation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hansolo9682/countercurate/datasets/generate_position.py
pointer only (licence: NONE) · get_code("b942191a436da690")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hansolo9682/countercurate 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.

determine_phrase Ran
ran; our contract draft was wrong, not the code
hansolo9682/countercurate/datasets/generate_counting.py
pointer only (licence: NONE) · get_code("e9640ff5f0d5316e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hansolo9682/countercurate 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.

encode_image Ran
ran; our contract draft was wrong, not the code
hansolo9682/countercurate/datasets/gpt4v_prompt_gen.py
pointer only (licence: NONE); the stored copy get_code serves, from jongwoopark7978/LVNet, is pointer only (licence: NONE) · get_code("f41cb1a19b154297")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hansolo9682/countercurate 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.

id_to_phrase Ran
ran; our contract draft was wrong, not the code
hansolo9682/countercurate/datasets/generate_counting.py
pointer only (licence: NONE) · get_code("87fe787f6cbd51b5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hansolo9682/countercurate 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.

id_to_phrase Ran
ran; our contract draft was wrong, not the code
hansolo9682/countercurate/datasets/generate_position.py
pointer only (licence: NONE) · get_code("cfaee872ca165c72")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hansolo9682/countercurate 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.

non_overlapping_boxes Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hansolo9682/countercurate/datasets/generate_counting.py
pointer only (licence: NONE) · get_code("e2a6c2c1944894fd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hansolo9682/countercurate 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.

overlapping_sentence Ran
ran; our contract draft was wrong, not the code
hansolo9682/countercurate/datasets/generate_position.py
pointer only (licence: NONE) · get_code("d105cdac089154c1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hansolo9682/countercurate 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.

swap_locations Ran
ran, violated the contract we drafted
hansolo9682/countercurate/datasets/gligen_inference_up_down.py
pointer only (licence: NONE) · get_code("f73f61f7f61415d6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hansolo9682/countercurate 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.

Also present in other papers' code

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

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

FunctionAlso present inEarliest-datedOthers named
encode_image 76 other papers
6 dated earlier, 4 the same month, 65 later, 1 same year, order not determinable
2309.05950 (2023-09)
Language Models as Black-Box Optimizers for Vision-Language Models
2311.15732 (2023-11)
GPT4Vis: What Can GPT-4 Do for Zero-shot Visual Recognition?
2312.14867 (2023-12)
VIEScore: Towards Explainable Metrics for Conditional Image Synthesis Evaluation
and 73 more not named here

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

We propose CounterCurate, a framework to comprehensively improve the visio-linguistic compositional reasoning capability for both contrastive and generative multimodal models. In particular, we identify two critical under-explored problems: the neglect of the physically grounded reasoning (counting and position understanding) and the potential of using highly capable text and image generation models for semantic counterfactual fine-tuning. Our work pioneers an approach that addresses these gaps. We first spotlight the near-chance performance of multimodal models like CLIP and LLaVA in physically grounded compositional reasoning. We then apply simple data augmentation using grounded image generation model GLIGEN to generate fine-tuning data, resulting in significant performance improvements: +33% and +37% for CLIP and LLaVA, respectively, on our newly curated Flickr30k-Positions benchmark. Moreover, we exploit the capabilities of high-performing text generation and image generation models, specifically GPT-4V and DALLE-3, to curate challenging semantic counterfactuals, thereby further enhancing compositional reasoning capabilities on benchmarks such as SugarCrepe, where CounterCurate outperforms GPT-4V. To facilitate future research, we release our code, dataset, benchmark, and checkpoints at https://countercurate.github.io.

For agents

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

get_harvested_code_for_paper("2402.13254")
get_code_for_paper("2402.13254")
have("2402.13254")

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

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

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

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

Connect an agent — have() is free.