Jing Zhang, Jiebo Luo, Yong Xia, Zhiyong Wang, Kun Hu, Wenxi Yue
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, 0 violated it and 0 have no contract verdict; 11 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/aaai_28514.json · badge: /api/ran/aaai_28514.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 |
|---|---|---|
| wenxi-yue/SurgicalSAM | canonical (classifier label) classifier basis: census |
11 ran · 3 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| create_binary_masks | Ran ran; our contract draft was wrong, not the code |
wenxi-yue/SurgicalSAM/surgicalSAM/utils.py code served (permissive licence) · get_code("c415b7a608d4e28f") 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.
|
| create_endovis_masks | Ran ran; our contract draft was wrong, not the code |
wenxi-yue/SurgicalSAM/surgicalSAM/utils.py code served (permissive licence) · get_code("cc557c224482ee77") 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.
|
| dice_loss | Ran ran; our contract draft was wrong, not the code |
wenxi-yue/SurgicalSAM/surgicalSAM/loss.py code served (permissive licence) · get_code("27cddc06d6605b4e") 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.
|
| eval_endovis | Ran ran; our contract draft was wrong, not the code |
wenxi-yue/SurgicalSAM/surgicalSAM/utils.py code served (permissive licence) · get_code("fd120c1f88221c37") 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.
|
| get_rel_pos | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
wenxi-yue/SurgicalSAM/segment_anything/modeling/image_encoder.py code served (permissive licence) · get_code("733d7f0bedcb74c2") 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 Tensor, ndim 3, dtype family float, shape (3, 4, 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.
|
| model_forward_function | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
wenxi-yue/SurgicalSAM/surgicalSAM/model_forward.py code served (permissive licence) · get_code("45e6963aa726c950") 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.
|
| postprocess_masks | Ran ran; our contract draft was wrong, not the code |
wenxi-yue/SurgicalSAM/surgicalSAM/model_forward.py code served (permissive licence) · get_code("c3b872692385a7a1") 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 4, dtype family float, shape (2, 3, 768, 640) 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.
|
| reduce_loss | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
wenxi-yue/SurgicalSAM/surgicalSAM/loss.py pointer only (licence: MIT); the stored copy get_code serves, from OpenFirework/pytorch_solov2, is pointer only (licence: NONE) · get_code("b2b9a1966482ef96") 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 OpenFirework/pytorch_solov2, 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. |
| weight_reduce_loss | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
wenxi-yue/SurgicalSAM/surgicalSAM/loss.py code served (permissive licence) · get_code("bd54cbe9d9fb8b02") 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.
|
| window_partition | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
wenxi-yue/SurgicalSAM/segment_anything/modeling/image_encoder.py pointer only (licence: MIT); the stored copy get_code serves, from LeapLabTHU/EchoWorld, is pointer only (licence: NONE) · get_code("105fa08885dc36cc") 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 LeapLabTHU/EchoWorld, 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. |
| window_unpartition | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
wenxi-yue/SurgicalSAM/segment_anything/modeling/image_encoder.py pointer only (licence: MIT); the stored copy get_code serves, from yatengLG/ISAT_with_segment_anything, is pointer only (licence: NOASSERTION) · get_code("27be441cc8213e52") 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 yatengLG/ISAT_with_segment_anything, 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. A run is recorded. |
| build_sam_vit_b | Not yet run unverified (harvested, no recorded run) |
wenxi-yue/SurgicalSAM/segment_anything/build_sam.py pointer only (licence: MIT); the stored copy get_code serves, from yatengLG/ISAT_with_segment_anything, is pointer only (licence: NOASSERTION) · get_code("f9bc5f31ce61cee8") 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 yatengLG/ISAT_with_segment_anything, 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. |
| build_sam_vit_h | Not yet run unverified (harvested, no recorded run) |
wenxi-yue/SurgicalSAM/segment_anything/build_sam.py pointer only (licence: MIT); the stored copy get_code serves, from yatengLG/ISAT_with_segment_anything, is pointer only (licence: NOASSERTION) · get_code("6b77c1f11fff3ed6") 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 yatengLG/ISAT_with_segment_anything, 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. |
| build_sam_vit_l | Not yet run unverified (harvested, no recorded run) |
wenxi-yue/SurgicalSAM/segment_anything/build_sam.py pointer only (licence: MIT); the stored copy get_code serves, from yatengLG/ISAT_with_segment_anything, is pointer only (licence: NOASSERTION) · get_code("3f8890e695469246") 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 yatengLG/ISAT_with_segment_anything, 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. |
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, 14 are also present in other papers whose code we hold (14 with at least one paper dated earlier, 0 the same month, 6 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_rel_pos | 47 other papers 23 dated earlier, 7 later, 17 same year, order not determinable · 5 only as an assembly brick |
2304.02643 (2023-04) Segment Anything |
2304.06790 (2023-04) Inpaint Anything: Segment Anything Meets Image Inpainting 2304.12306 (2023-04) Segment Anything in Medical Images and 44 more not named here |
| window_partition | 47 other papers 22 dated earlier, 6 later, 19 same year, order not determinable · 1 only as an assembly brick |
2304.02643 (2023-04) Segment Anything |
2304.06790 (2023-04) Inpaint Anything: Segment Anything Meets Image Inpainting 2304.12306 (2023-04) Segment Anything in Medical Images and 44 more not named here |
| window_unpartition | 46 other papers 22 dated earlier, 6 later, 18 same year, order not determinable · 1 only as an assembly brick |
2304.02643 (2023-04) Segment Anything |
2304.06790 (2023-04) Inpaint Anything: Segment Anything Meets Image Inpainting 2304.12306 (2023-04) Segment Anything in Medical Images and 43 more not named here |
| build_sam_vit_h | 37 other papers 17 dated earlier, 5 later, 15 same year, order not determinable · 2 only as an assembly brick |
2304.06790 (2023-04) Inpaint Anything: Segment Anything Meets Image Inpainting |
2304.12306 (2023-04) Segment Anything in Medical Images 2305.01586 (2023-05) An Alternative to WSSS? An Empirical Study of the Segment Anything Model (SAM) on Weakly-Supervised Semantic Segmentation Problems and 34 more not named here |
| build_sam_vit_b | 34 other papers 17 dated earlier, 3 later, 14 same year, order not determinable |
2304.06790 (2023-04) Inpaint Anything: Segment Anything Meets Image Inpainting |
2304.12306 (2023-04) Segment Anything in Medical Images 2305.01586 (2023-05) An Alternative to WSSS? An Empirical Study of the Segment Anything Model (SAM) on Weakly-Supervised Semantic Segmentation Problems and 31 more not named here |
| build_sam_vit_l | 34 other papers 17 dated earlier, 3 later, 14 same year, order not determinable |
2304.06790 (2023-04) Inpaint Anything: Segment Anything Meets Image Inpainting |
2304.12306 (2023-04) Segment Anything in Medical Images 2305.01586 (2023-05) An Alternative to WSSS? An Empirical Study of the Segment Anything Model (SAM) on Weakly-Supervised Semantic Segmentation Problems and 31 more not named here |
| reduce_loss | 18 other papers 12 dated earlier, 6 same year, order not determinable |
2003.10152 (2020-03) SOLOv2: Dynamic and Fast Instance Segmentation |
2003.10778 (2020-03) PanNuke Dataset Extension, Insights and Baselines 2107.08430 (2021-07) YOLOX: Exceeding YOLO Series in 2021 and 15 more not named here |
| create_binary_masks | 1 other paper 1 dated earlier |
2308.08746 (2023-08) SurgicalSAM: Efficient Class Promptable Surgical Instrument Segmentation |
|
| create_endovis_masks | 1 other paper 1 dated earlier |
2308.08746 (2023-08) SurgicalSAM: Efficient Class Promptable Surgical Instrument Segmentation |
|
| dice_loss | 1 other paper 1 dated earlier |
2308.08746 (2023-08) SurgicalSAM: Efficient Class Promptable Surgical Instrument Segmentation |
|
| eval_endovis | 1 other paper 1 dated earlier |
2308.08746 (2023-08) SurgicalSAM: Efficient Class Promptable Surgical Instrument Segmentation |
|
| model_forward_function | 1 other paper 1 dated earlier |
2308.08746 (2023-08) SurgicalSAM: Efficient Class Promptable Surgical Instrument Segmentation |
|
| postprocess_masks | 1 other paper 1 dated earlier |
2308.08746 (2023-08) SurgicalSAM: Efficient Class Promptable Surgical Instrument Segmentation |
|
| weight_reduce_loss | 1 other paper 1 dated earlier |
2308.08746 (2023-08) SurgicalSAM: Efficient Class Promptable Surgical Instrument Segmentation |
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.
The Segment Anything Model (SAM) is a powerful foundation model that has revolutionised image segmentation. To apply SAM to surgical instrument segmentation, a common approach is to locate precise points or boxes of instruments and then use them as prompts for SAM in a zeroshot manner. However, we observe two problems with this naive pipeline: (1) the domain gap between natural objects and surgical instruments leads to inferior generalisation of SAM; and (2) SAM relies on precise point or box locations for accurate segmentation, requiring either extensive manual guidance or a well-performing specialist detector for prompt preparation, which leads to a complex multi-stage pipeline. To address these problems, we introduce SurgicalSAM, a novel end-to-end efficient-tuning approach for SAM to effectively integrate surgical-specific information with SAM's pre-trained knowledge for improved generalisation. Specifically, we propose a lightweight prototype-based class prompt encoder for tuning, which directly generates prompt embeddings from class prototypes and eliminates the use of explicit prompts for improved robustness and a simpler pipeline. In addition, to address the low inter-class variance among surgical instrument categories, we propose contrastive prototype learning, further enhancing the discrimination of the class prototypes for more accurate class prompting. The results of extensive experiments on both EndoVis2018 and En-doVis2017 datasets demonstrate that SurgicalSAM achieves state-of-the-art performance while only requiring a small number of tunable parameters. The source code is available at https://github.com/wenxi-yue/SurgicalSAM.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("aaai_28514")
get_code_for_paper("aaai_28514")
have("aaai_28514")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/aaai_28514.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/aaai_28514)
Connect an agent — have() is free.