Sanghamitra Dutta, Saumitra Mishra, Daniele Magazzeni, Faisal Hamman, Erfaun Noorani
7 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 3 failures of our instrument; 2 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/2305.11997.json · badge: /api/ran/2305.11997.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 |
|---|---|---|
| faisalhamman/trex-counterfactuals | canonical (classifier label) classifier basis: classifier_2025 |
1 ran · 0 no recorded run |
| FaisalHamman/TReX-Counterfactuals | marked official in Papers with Code Papers with Code archive |
6 ran · 2 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| StableNeighborSearch | Ran ran on a synthesized input · constructed an object; no result was computed |
FaisalHamman/TReX-Counterfactuals/consistency/attack_methods.py code served (permissive licence) · get_code("f1d41520cefa2f03") 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 an instance of its own class, StableNeighborSearch: the run constructed the object and did not call it, so no result was computed. 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.
|
| clip_with_clamp | Ran ran, violated the contract we drafted |
FaisalHamman/TReX-Counterfactuals/consistency/attack_methods.py code served (permissive licence) · get_code("4d4615a7744c5f0b") 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 EagerTensor, ndim 2, dtype family float, shape (2, 4) 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_k_neighbors | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
faisalhamman/trex-counterfactuals/baselines.py code served (permissive licence) · get_code("fa92ac9ae7819d87") 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 ndarray, ndim 2, dtype family int, shape (1, 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.
|
| l2_norm | Ran ran, honoured the contract we drafted |
FaisalHamman/TReX-Counterfactuals/consistency/attack_methods.py code served (permissive licence) · get_code("b7f8b80927ae3ce4") 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 EagerTensor, ndim 2, dtype family float, shape (2, 1) 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.
|
| linear_integral | Ran ran; our contract draft was wrong, not the code |
FaisalHamman/TReX-Counterfactuals/consistency/attack_methods.py code served (permissive licence) · get_code("8b9d457986deacbd") 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 EagerTensor, ndim 2, dtype family float, shape (50, 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.
|
| unit_vector | Ran ran, honoured the contract we drafted |
FaisalHamman/TReX-Counterfactuals/consistency/attack_methods.py code served (permissive licence) · get_code("1b2bcf5bb57b781b") 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 EagerTensor, ndim 2, dtype family float, shape (2, 4) 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.
|
| update_delta | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
FaisalHamman/TReX-Counterfactuals/consistency/attack_methods.py code served (permissive licence) · get_code("5c9de896d6de458d") 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 EagerTensor, ndim 2, dtype family float, shape (2, 4) 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.
|
| SNS | Not yet run unverified (harvested, no recorded run) |
FaisalHamman/TReX-Counterfactuals/consistency/attack_methods.py code served (permissive licence) · get_code("557503066f0101f5") How it ranno invocation recorded. |
| batch_sns_search | Not yet run unverified (harvested, no recorded run) |
FaisalHamman/TReX-Counterfactuals/consistency/attack_methods.py code served (permissive licence) · get_code("fd9a4033f6f32ccd") How it ranno invocation recorded. |
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, 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 9 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.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
There is an emerging interest in generating robust counterfactual explanations that would remain valid if the model is updated or changed even slightly. Towards finding robust counterfactuals, existing literature often assumes that the original model m and the new model M are bounded in the parameter space, i.e., ∥Params(M )-Params(m)∥<∆. However, models can often change significantly in the parameter space with little to no change in their predictions or accuracy on the given dataset. In this work, we introduce a mathematical abstraction termed naturally-occurring model change, which allows for arbitrary changes in the parameter space such that the change in predictions on points that lie on the data manifold is limited. Next, we propose a measure -that we call Stability -to quantify the robustness of counterfactuals to potential model changes for differentiable models, e.g., neural networks. Our main contribution is to show that counterfactuals with sufficiently high value of Stability as defined by our measure will remain valid after potential "naturally-occurring" model changes with high probability (leveraging concentration bounds for Lipschitz function of independent Gaussians). Since our quantification depends on the local Lipschitz constant around a data point which is not always available, we also examine practical relaxations of our proposed measure and demonstrate experimentally how they can be incorporated to find robust counterfactuals for neural networks that are close, realistic, and remain valid after potential model changes 1 . This work also has interesting connections with model multiplicity, also known as, the Rashomon effect.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2305.11997")
get_code_for_paper("2305.11997")
have("2305.11997")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2305.11997.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2305.11997)
Connect an agent — have() is free.