11 of 14 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, 2 violated it and 1 has no contract verdict; 8 failures of our instrument; 3 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.10575.json · badge: /api/ran/2404.10575.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 |
|---|---|---|
| amazon-science/contrastive_emc2 | canonical (classifier label) classifier basis: census |
11 ran · 3 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| all_gather_matrices | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
amazon-science/contrastive_emc2/communication.py code served (permissive licence) · get_code("a05a54f3fc3dbfa9") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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.
|
| all_gather_vectors | Ran ran on a synthesized input |
amazon-science/contrastive_emc2/communication.py code served (permissive licence) · get_code("a4d6e26b346c837e") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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.
|
| convert_layers | Ran ran; our contract draft was wrong, not the code |
amazon-science/contrastive_emc2/model.py code served (permissive licence) · get_code("fdcddcdef8722c34") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned SimpleModel. 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.
|
| estimate_inner_prod | Ran ran; our contract draft was wrong, not the code |
amazon-science/contrastive_emc2/cache.py code served (permissive licence) · get_code("6e1acdb5ff584cbb") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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.
|
| find_classes | Ran ran; our contract draft was wrong, not the code |
amazon-science/contrastive_emc2/folder.py code served (permissive licence) · get_code("904c357058bab2d9") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. 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.
|
| get_diagonal_blocks | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
amazon-science/contrastive_emc2/evaluation.py code served (permissive licence) · get_code("cd3d80672004efc8") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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.
|
| has_file_allowed_extension | Ran ran, violated the contract we drafted |
amazon-science/contrastive_emc2/folder.py code served (permissive licence) · get_code("aec20ef76445c38c") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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.
|
| info_nce_loss | Ran ran; our contract draft was wrong, not the code |
amazon-science/contrastive_emc2/main_simclr.py code served (permissive licence) · get_code("044dd7c8dd4adba5") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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.
|
| is_image_file | Ran ran, violated the contract we drafted |
amazon-science/contrastive_emc2/folder.py code served (permissive licence) · get_code("d9fa6dde50b3f702") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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.
|
| parse_args | Ran ran; our contract draft was wrong, not the code |
amazon-science/contrastive_emc2/arguments.py code served (permissive licence) · get_code("d73de0f2b46b2268") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. 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.
|
| remove_diagonal_blocks | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
amazon-science/contrastive_emc2/evaluation.py code served (permissive licence) · get_code("5ceb2c36a8c88939") How it ranRan in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (4, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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.
|
| all_gather_tensors | Not yet run unverified (harvested, no recorded run) |
amazon-science/contrastive_emc2/communication.py code served (permissive licence) · get_code("0f11d82afcfe7ee7") How it ranno invocation recorded. |
| build_model | Not yet run unverified (harvested, no recorded run) |
amazon-science/contrastive_emc2/model.py code served (permissive licence) · get_code("7e5b6f7d2706cbc7") How it ranno invocation recorded. |
| linear_evaluation | Not yet run unverified (harvested, no recorded run) |
amazon-science/contrastive_emc2/linear_eval.py code served (permissive licence) · get_code("2553afafba450290") How it ranno invocation recorded. |
Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 2 later) and 11 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 |
|---|---|---|---|
| is_image_file | 12 other papers 7 dated earlier, 4 later, 1 same year, order not determinable |
2203.14415 (2022-03) Mugs: A Multi-Granular Self-Supervised Learning Framework |
2204.08381 (2022-04) Multiple-environment Self-adaptive Network for Aerial-view Geo-localization 2205.03892 (2022-05) ConvMAE: Masked Convolution Meets Masked Autoencoders and 9 more not named here |
| find_classes | 2 other papers 1 dated earlier, 1 later |
2204.08381 (2022-04) Multiple-environment Self-adaptive Network for Aerial-view Geo-localization |
2506.13406 (2025-06) CALM: Consensus-Aware Localized Merging for Multi-Task Learning |
| has_file_allowed_extension | 1 other paper 1 dated earlier |
2308.09951 (2023-08) Semantics Meets Temporal Correspondence: Self-supervised Object-centric Learning in Videos |
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.
A key challenge in contrastive learning is to generate negative samples from a large sample set to contrast with positive samples, for learning better encoding of the data. These negative samples often follow a softmax distribution which are dynamically updated during the training process. However, sampling from this distribution is non-trivial due to the high computational costs in computing the partition function. In this paper, we propose an Efficient Markov Chain Monte Carlo negative sampling method for Contrastive learning (EMC$^2$). We follow the global contrastive learning loss as introduced in SogCLR, and propose EMC$^2$ which utilizes an adaptive Metropolis-Hastings subroutine to generate hardness-aware negative samples in an online fashion during the optimization. We prove that EMC$^2$ finds an $\mathcal{O}(1/\sqrt{T})$-stationary point of the global contrastive loss in $T$ iterations. Compared to prior works, EMC$^2$ is the first algorithm that exhibits global convergence (to stationarity) regardless of the choice of batch size while exhibiting low computation and memory cost. Numerical experiments validate that EMC$^2$ is effective with small batch training and achieves comparable or better performance than baseline algorithms. We report the results for pre-training image encoders on STL-10 and Imagenet-100.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2404.10575")
get_code_for_paper("2404.10575")
have("2404.10575")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2404.10575.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2404.10575)
Connect an agent — have() is free.