SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.04960 · CVPR · 2024

PairAug: What Can Augmented Image-Text Pairs Do for Radiology?

Qi Wu, Yutong Xie, Qi Chen, Yong Xia, Sinuo Wang, Minh-Son To, Iris Lee, Ee Khoo, Kerolos Hendy, Daniel Koh

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2404.04960.json · badge: /api/ran/2404.04960.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
YtongXie/PairAug canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
chatgpt_completion Ran
ran; our contract draft was wrong, not the code
YtongXie/PairAug/InterAug_Step1.py
pointer only (licence: NONE) · get_code("d655f2b78b965b4a")
How it ran

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

diffusion_step Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YtongXie/PairAug/utils/ptp_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from TFNTF/PostEdit, is pointer only (licence: NONE) · get_code("a042902caede448b")
How it ran

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

get_matrix Ran
ran; our contract draft was wrong, not the code
YtongXie/PairAug/utils/seq_aligner.py
pointer only (licence: NONE); the stored copy get_code serves, from Supercomputing-System-AI-Lab/InstantEdit, is pointer only (licence: NONE) · get_code("d167441d997c52ce")
How it ran

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

get_matrix Ran
ran, honoured the contract we drafted
YtongXie/PairAug/utils/seq_aligner.py
pointer only (licence: NONE); the stored copy get_code serves, from Supercomputing-System-AI-Lab/InstantEdit, is pointer only (licence: NONE) · get_code("81db21bf982ca0fe")
How it ran

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

get_traceback_matrix Ran
ran, honoured the contract we drafted
YtongXie/PairAug/utils/seq_aligner.py
pointer only (licence: NONE); the stored copy get_code serves, from Supercomputing-System-AI-Lab/InstantEdit, is pointer only (licence: NONE) · get_code("beb8f6a30678a4d9")
How it ran

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

latent2image Ran
ran; our contract draft was wrong, not the code
YtongXie/PairAug/utils/ptp_utils.py
pointer only (licence: NONE) · get_code("e3c3bb87bbe9b4a7")
How it ran

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

text_under_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YtongXie/PairAug/utils/ptp_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from TFNTF/PostEdit, is pointer only (licence: NONE) · get_code("85d5eb123674597d")
How it ran

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

aggregate_attention Not yet run
unverified (harvested, no recorded run)
YtongXie/PairAug/IntraAug_Step2_T2I.py
pointer only (licence: NONE) · get_code("23ca7e055397296f")
How it ran

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

num_tokens_from_string Not yet run
unverified (harvested, no recorded run)
YtongXie/PairAug/InterAug_Step1.py
pointer only (licence: NONE) · get_code("4511b96bc04402fb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YtongXie/PairAug 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 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 7 later) and 1 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
text_under_image 14 other papers
11 dated earlier, 2 later, 1 same year, order not determinable
2307.12493 (2023-07)
TF-ICON: Diffusion-Based Training-Free Cross-Domain Image Composition
2307.14352 (2023-07)
General Image-to-Image Translation with One-Shot Image Guidance
2309.14494 (2023-09)
Free-Bloom: Zero-Shot Text-to-Video Generator with LLM Director and LDM Animator
and 11 more not named here
latent2image 13 other papers
9 dated earlier, 3 later, 1 same year, order not determinable
2305.15581 (2023-05)
Unsupervised Semantic Correspondence Using Stable Diffusion
2305.19164 (2023-05)
LANCE: Stress-testing Visual Models by Generating Language-guided Counterfactual Images
2308.06160 (2023-08)
DatasetDM: Synthesizing Data with Perception Annotations Using Diffusion Models
and 10 more not named here
get_matrix 11 other papers
7 dated earlier, 3 later, 1 same year, order not determinable
2208.01626 (2022-08)
Prompt-to-Prompt Image Editing with Cross Attention Control
2305.19164 (2023-05)
LANCE: Stress-testing Visual Models by Generating Language-guided Counterfactual Images
2307.14352 (2023-07)
General Image-to-Image Translation with One-Shot Image Guidance
and 8 more not named here
diffusion_step 10 other papers
7 dated earlier, 2 later, 1 same year, order not determinable
2305.19164 (2023-05)
LANCE: Stress-testing Visual Models by Generating Language-guided Counterfactual Images
2308.06160 (2023-08)
DatasetDM: Synthesizing Data with Perception Annotations Using Diffusion Models
2309.14494 (2023-09)
Free-Bloom: Zero-Shot Text-to-Video Generator with LLM Director and LDM Animator
and 7 more not named here
get_traceback_matrix 10 other papers
6 dated earlier, 3 later, 1 same year, order not determinable
2305.19164 (2023-05)
LANCE: Stress-testing Visual Models by Generating Language-guided Counterfactual Images
2307.14352 (2023-07)
General Image-to-Image Translation with One-Shot Image Guidance
2308.06160 (2023-08)
DatasetDM: Synthesizing Data with Perception Annotations Using Diffusion Models
and 7 more not named here
get_matrix 9 other papers
6 dated earlier, 2 later, 1 same year, order not determinable
2305.19164 (2023-05)
LANCE: Stress-testing Visual Models by Generating Language-guided Counterfactual Images
2307.14352 (2023-07)
General Image-to-Image Translation with One-Shot Image Guidance
2308.06160 (2023-08)
DatasetDM: Synthesizing Data with Perception Annotations Using Diffusion Models
and 6 more not named here
aggregate_attention 3 other papers
2 dated earlier, 1 same year, order not determinable
2211.09794 (2022-11)
Null-text Inversion for Editing Real Images using Guided Diffusion Models
2307.14352 (2023-07)
General Image-to-Image Translation with One-Shot Image Guidance
aaai_28210 (2024 (year only))
AdapEdit: Spatio-Temporal Guided Adaptive Editing Algorithm for Text-Based Continuity-Sensitive Image Editing
num_tokens_from_string 2 other papers
1 dated earlier, 1 later
2402.05668 (2024-02)
JailbreakRadar: Comprehensive Assessment of Jailbreak Attacks Against LLMs
2410.14211 (2024-10)
Paths-over-Graph: Knowledge Graph Empowered Large Language Model Reasoning

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-23.

Repositories linked to this paper

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

Abstract

Current vision-language pre-training (VLP) methodologies predominantly depend on paired image-text datasets, a resource that is challenging to acquire in radiology due to privacy considerations and labelling complexities. Data augmentation provides a practical solution to overcome the issue of data scarcity, however, most augmentation methods exhibit a limited focus, prioritising either image or text augmentation exclusively. Acknowledging this limitation, our objective is to devise a framework capable of concurrently augmenting medical image and text data. We design a Pairwise Augmentation (PairAug) approach that contains an Inter-patient Augmentation (InterAug) branch and an Intra-patient Augmentation (IntraAug) branch. Specifically, the InterAug branch of our approach generates radiology images using synthesised yet plausible reports derived from a Large Language Model (LLM). The generated pairs can be considered a collection of new patient cases since they are artificially created and may not exist in the original dataset. In contrast, the IntraAug branch uses newly generated reports to manipulate images. This process allows us to create new paired data for each individual with diverse medical conditions. Our extensive experiments on various downstream tasks covering medical image classification zero-shot and fine-tuning analysis demonstrate that our PairAug, concurrently expanding both image and text data, substantially outperforms image-/text-only expansion baselines and advanced medical VLP baselines. Our code is released at https://github.com/YtongXie/PairAug.

For agents

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

get_harvested_code_for_paper("2404.04960")
get_code_for_paper("2404.04960")
have("2404.04960")

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

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

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

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

Connect an agent — have() is free.