Gonen Singer, Yaniv Livertovsky, Shahar Somin
7 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; 1 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 4 failures of our instrument; 1 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/2606.19150.json · badge: /api/ran/2606.19150.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 |
|---|---|---|
| yanivlivert/cahp | canonical (classifier label) classifier basis: census |
7 ran · 1 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| bhattacharyya_distance | Ran ran, violated the contract we drafted |
yanivlivert/cahp/cahp/graph/distance.py pointer only (licence: NONE) · get_code("a48d853dd6faf745") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, yanivlivert/cahp 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. |
| calc_mss_value | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
yanivlivert/cahp/cahp/graph/mss.py pointer only (licence: NONE) · get_code("51a32610ab156334") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, yanivlivert/cahp 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_distance | Ran ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT) |
yanivlivert/cahp/cahp/graph/distance.py pointer only (licence: NONE) · get_code("f666deff835a22b2") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, yanivlivert/cahp 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_head_mappings | Ran ran; our contract draft was wrong, not the code |
yanivlivert/cahp/cahp/utils/model_utils.py pointer only (licence: NONE) · get_code("a8d5329e5e791998") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, yanivlivert/cahp 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_num_heads | Ran ran, honoured the contract we drafted |
yanivlivert/cahp/cahp/utils/model_utils.py pointer only (licence: NONE) · get_code("323459fced55d3dd") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, yanivlivert/cahp 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_transformer_blocks | Ran ran; our contract draft was wrong, not the code |
yanivlivert/cahp/cahp/utils/model_utils.py pointer only (licence: NONE) · get_code("e997ffa9c70cf767") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, yanivlivert/cahp 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. |
| jm_distance | Ran ran, violated the contract we drafted |
yanivlivert/cahp/cahp/graph/distance.py pointer only (licence: NONE) · get_code("d5291dfb0f66b25a") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, yanivlivert/cahp 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. |
| compute_head_importance | Not yet run unverified (harvested, no recorded run) |
yanivlivert/cahp/cahp/utils/head_utils.py pointer only (licence: NONE) · get_code("ef685c5311f0bcc1") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, yanivlivert/cahp 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. |
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, 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 8 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-23.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
The remarkable success of Transformer-based models in natural language processing stems from architectural scaling, which leads to a large number of parameters and hinders deployment in resource-constrained environments. While structured pruning offers a pathway to compression, existing state-ofthe-art methods often rely on gradient-based importance ranking or stochastic gating, which suffer from instability, structural degeneration, and the need for extensive manual hyperparameter tuning. In this paper, we introduce CAHP (Complementary Attention Head Pruning), a novel post-hoc framework that redefines head selection as a global graph-theoretical problem. Rather than evaluating heads in isolation, CAHP utilizes graphbased clustering combined with information-theoretic distance measures to identify and preserve a topologically diverse subset of complementary attention heads. Without requiring a predefined sparsity level or pruning ratio, the framework automatically determines the number of selected attention heads across layers by identifying a diminishing marginal performance curve, where pruning additional heads leads to a sharp degradation in performance, as determined by the chosen polynomial degree. Extensive evaluations on the SST-5 and MNLI benchmarks, across different Transformer model scales, demonstrate that CAHP consistently outperforms competitive baselines, particularly in high-compression regimes. Furthermore, our structural analysis shows that CAHP avoids the "proximity bias" of gradient-based pruning methods, which tend to preserve heads mainly in layers close to the output, and instead retains a functionally critical set of attention heads in the model's intermediate layers.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2606.19150")
get_code_for_paper("2606.19150")
have("2606.19150")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2606.19150.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2606.19150)
Connect an agent — have() is free.