Lenka Zdeborová, Luca Biggio, Freya Behrens
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; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2407.11542.json · badge: /api/ran/2407.11542.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 |
|---|---|---|
| SPOC-group/counting-attention | canonical (classifier label) classifier basis: census |
7 ran · 1 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| count_parameters | Ran ran, honoured the contract we drafted |
SPOC-group/counting-attention/memory_exp_2layer.py pointer only (licence: NONE) · get_code("f6b944f50d3f15ae") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, SPOC-group/counting-attention 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. |
| generate_orthogonal_vectors | Ran ran, honoured the contract we drafted |
SPOC-group/counting-attention/manual_models.py pointer only (licence: NONE) · get_code("5534e35d2408efa2") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, SPOC-group/counting-attention 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. |
| gram_schmidt | Ran ran, honoured the contract we drafted |
SPOC-group/counting-attention/manual_models.py pointer only (licence: NONE) · get_code("95d4c03cf8d29d9f") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, SPOC-group/counting-attention 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. |
| hist | Ran ran, honoured the contract we drafted |
SPOC-group/counting-attention/memory_exp_2layer.py pointer only (licence: NONE) · get_code("c63cdc1f3f0f51c0") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, SPOC-group/counting-attention 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. |
| inventory | Ran ran; our contract draft was wrong, not the code |
SPOC-group/counting-attention/memory_exp_2layer.py pointer only (licence: NONE) · get_code("64b34a0d72cd6344") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, SPOC-group/counting-attention 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. |
| relu | Ran ran, honoured the contract we drafted |
SPOC-group/counting-attention/manual_models.py pointer only (licence: NONE) · get_code("df689d0142c2d3c9") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, SPOC-group/counting-attention 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. |
| to_cmd | Ran ran; our contract draft was wrong, not the code |
SPOC-group/counting-attention/data_import.py pointer only (licence: NONE) · get_code("9eae764c0ea4d26e") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, SPOC-group/counting-attention 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. |
| train | Not yet run unverified (harvested, no recorded run) |
SPOC-group/counting-attention/random_embd/memory_exp.py pointer only (licence: NONE) · get_code("a543f8665b98f5d4") How it ranThe body of this sample is withheld: GitHub detected no licence in this paper's repository, SPOC-group/counting-attention 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, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 7 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 |
|---|---|---|---|
| count_parameters | 180 other papers 135 dated earlier, 6 the same month, 33 later, 6 same year, order not determinable · 8 only as an assembly brick |
1705.08415 (2017-05) Supervised Community Detection with Line Graph Neural Networks |
1707.01926 (2017-07) Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting 1808.09367 (2018-08) Deriving Machine Attention from Human Rationales and 177 more not named here |
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.
Next to scaling considerations, architectural design choices profoundly shape the solution space of transformers. In this work, we analyze the solutions simple transformer blocks implement when tackling the histogram task: counting items in sequences. Despite its simplicity, this task reveals a complex interplay between predictive performance, vocabulary and embedding sizes, tokenmixing mechanisms, and feed-forward layer capacity. We identify two theoretical counting strategies transformers adopt, relation-based and inventory-based counting, each defining distinct learning regimes for the task. These strategies dictate how functionality is distributed between attention and feed-forward layers. We further show that adding softmax and beginning-of-sequence tokens allow for more robustness when embedding dimensions are comparatively small. Empirical introspection of trained models closely confirms both the learning regimes of the various architectures and the formation of these strategies during training. We demonstrate how a basic task that requires only aggregation and selection is significantly impacted by minor design changes.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2407.11542")
get_code_for_paper("2407.11542")
have("2407.11542")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2407.11542.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2407.11542)
Connect an agent — have() is free.