Mitchell Wortsman, Ali Farhadi, Simon Kornblith, Hannaneh Hajishirzi, Gabriel Ilharco, Ludwig Schmidt, Yitzhak Samir, Gadre, Shuran Song
5 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, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/2208.05592.json · badge: /api/ran/2208.05592.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.
| Repository | Role | Ran |
|---|---|---|
| mlfoundations/patching | canonical (classifier label) classifier basis not recorded on the link |
5 ran · 3 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| basic_clean | Ran ran; our contract draft was wrong, not the code |
mlfoundations/patching/clip/tokenizer.py pointer only (licence: MIT); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("98f385d847636a3e") How it ranThe body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ltpwy/MSCI, and GitHub detected no licence in that repository 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. |
| convert | Ran ran; our contract draft was wrong, not the code |
mlfoundations/patching/src/datasets/cifar10.py pointer only (licence: MIT); the stored copy get_code serves, from BAIKLAB/SiM, is pointer only (licence: NONE) · get_code("6d77ee840479c381") How it ranThe body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from BAIKLAB/SiM, and GitHub detected no licence in that repository 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. |
| cosine_lr | Ran ran; our contract draft was wrong, not the code |
mlfoundations/patching/src/utils.py pointer only (licence: MIT); the stored copy get_code serves, from BAIKLAB/SiM, is pointer only (licence: NONE) · get_code("2d5d7a12d8de02b7") How it ranThe body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from BAIKLAB/SiM, and GitHub detected no licence in that repository 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_pairs | Ran ran; our contract draft was wrong, not the code |
mlfoundations/patching/clip/tokenizer.py code served (permissive licence) · get_code("d919ae32e5e4e616") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned set. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.
|
| whitespace_clean | Ran ran; our contract draft was wrong, not the code |
mlfoundations/patching/clip/tokenizer.py pointer only (licence: MIT); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("9542161e9640b858") How it ranThe body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ltpwy/MSCI, and GitHub detected no licence in that repository 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. |
| accuracy | Not yet run unverified (harvested, no recorded run) |
mlfoundations/patching/src/utils.py code served (permissive licence) · get_code("aafcff3ad1ccef6e") How it ranno invocation recorded. |
| build_model | Not yet run unverified (harvested, no recorded run) |
mlfoundations/patching/clip/model.py pointer only (licence: MIT); the stored copy get_code serves, from anonymousmlsubmission/datadistributiontransfer, is pointer only (licence: NOASSERTION) · get_code("4e1f6a9710dc6279") How it ranThe body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from anonymousmlsubmission/datadistributiontransfer, and GitHub could not classify the licence of that repository (NOASSERTION). 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. |
| torch_load | Not yet run unverified (harvested, no recorded run) |
mlfoundations/patching/src/utils.py code served (permissive licence) · get_code("2235e9caabb77a27") How it ranno invocation recorded. |
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, 8 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 3 the same month, 8 later) and 0 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.
| Function | Also present in | Earliest-dated | Others named |
|---|---|---|---|
| get_pairs | 258 other papers 25 dated earlier, 1 the same month, 231 later, 1 undated · 4 only as an assembly brick |
1802.06474 (2018-02) A Closed-form Solution to Photorealistic Image Stylization |
1803.01128 (2018-03) Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples 1809.00125 (2018-09) Simple Fusion: Return of the Language Model and 255 more not named here |
| whitespace_clean | 231 other papers 12 dated earlier, 1 the same month, 217 later, 1 undated · 4 only as an assembly brick |
1901.07441 (2019-01) PadChest: A large chest x-ray image dataset with multi-label annotated reports |
2107.06383 (2021-07) How Much Can CLIP Benefit Vision-and-Language Tasks? 2108.10904 (2021-08) SimVLM: Simple Visual Language Model Pretraining with Weak Supervision and 228 more not named here |
| basic_clean | 218 other papers 12 dated earlier, 1 the same month, 204 later, 1 undated · 4 only as an assembly brick |
1901.07441 (2019-01) PadChest: A large chest x-ray image dataset with multi-label annotated reports |
2107.06383 (2021-07) How Much Can CLIP Benefit Vision-and-Language Tasks? 2108.10904 (2021-08) SimVLM: Simple Visual Language Model Pretraining with Weak Supervision and 215 more not named here |
| accuracy | 22 other papers 1 dated earlier, 21 later |
2207.05333 (2022-07) IDEA: Increasing Text Diversity via Online Multi-Label Recognition for Vision-Language Pre-training |
2211.12914 (2022-11) Open-vocabulary Attribute Detection 2305.12827 (2023-05) Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models and 19 more not named here |
| cosine_lr | 11 other papers 11 later |
2305.12827 (2023-05) Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models |
2308.12213 (2023-08) CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say No aaai_27950 (2024 (year only)) LAMM: Label Alignment for Multi-Modal Prompt Learning and 8 more not named here |
| build_model | 8 other papers 8 later |
2212.00638 (2022-12) Finetune like you pretrain: Improved finetuning of zero-shot vision models |
2302.13602 (2023-02) The Role of Pre-training Data in Transfer Learning 2308.01313 (2023-08) PerceptionCLIP: Visual Classification by Inferring and Conditioning on Contexts and 5 more not named here |
| convert | 8 other papers 8 later |
2312.15901 (2023-12) Black-Box Tuning of Vision-Language Models with Effective Gradient Approximation |
2405.07813 (2024-05) Localizing Task Information for Improved Model Merging and Compression 2406.05184 (2024-06) The Unmet Promise of Synthetic Training Images: Using Retrieved Real Images Performs Better and 5 more not named here |
| torch_load | 2 other papers 2 later |
2308.12213 (2023-08) CLIPN for Zero-Shot OOD Detection: Teaching CLIP to Say No |
2410.03782 (2024-10) DaWin: Training-free Dynamic Weight Interpolation for Robust Adaptation |
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.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Open-vocabulary models like CLIP achieve high accuracy across many image classification tasks. However, there are still settings where their zero-shot performance is far from optimal. We study model patching, where the goal is to improve accuracy on specific tasks without degrading accuracy on tasks where performance is already adequate. Towards this goal, we introduce PAINT, a patching method that uses interpolations between the weights of a model before fine-tuning and the weights after fine-tuning on a task to be patched. On nine tasks where zeroshot CLIP performs poorly, PAINT increases accuracy by 15 to 60 percentage points while preserving accuracy on ImageNet within one percentage point of the zero-shot model. PAINT also allows a single model to be patched on multiple tasks and improves with model scale. Furthermore, we identify cases of broad transfer, where patching on one task increases accuracy on other tasks even when the tasks have disjoint classes. Finally, we investigate applications beyond common benchmarks such as counting or reducing the impact of typographic attacks on CLIP. Our findings demonstrate that it is possible to expand the set of tasks on which open-vocabulary models achieve high accuracy without re-training them from scratch. * Equal contribution. Code available at https://github.com/mlfoundations/patching.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2208.05592")
get_code_for_paper("2208.05592")
have("2208.05592")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2208.05592.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2208.05592)
Connect an agent — have() is free.