13 of 13 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, 1 violated it and 0 have no contract verdict; 11 failures of our instrument; 0 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/2409.17422.json · badge: /api/ran/2409.17422.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 |
|---|---|---|
| salesforceairesearch/gemfilter | canonical (classifier label) classifier basis: census |
13 ran · 0 no recorded run |
| Function | Status | Where it lives |
|---|---|---|
| build_chat | Ran ran; our contract draft was wrong, not the code |
salesforceairesearch/gemfilter/eval/LongBench/pred.py code served (permissive licence) · get_code("8339145374a403f3") 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 str. 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.
|
| count_score | Ran ran, honoured the contract we drafted |
salesforceairesearch/gemfilter/eval/LongBench/metrics.py pointer only (licence: Apache-2.0); the stored copy get_code serves, from borealisai/radar-decoding, is pointer only (licence: LGPL-3.0) · get_code("b349b79d9cc2934b") How it ranThe body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from borealisai/radar-decoding, and LGPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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_layer_context | Ran ran; our contract draft was wrong, not the code |
salesforceairesearch/gemfilter/my_utils/my_generation.py code served (permissive licence) · get_code("8023b20549593b60") 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 int, shape (1, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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.
|
| insert_needle | Ran ran; our contract draft was wrong, not the code |
salesforceairesearch/gemfilter/eval/needle/utils.py code served (permissive licence) · get_code("ce3c4802be48b9d2") 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 str. 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.
|
| load_context | Ran ran; our contract draft was wrong, not the code |
salesforceairesearch/gemfilter/eval/needle/utils.py code served (permissive licence) · get_code("6af3fc7115dbdfad") 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 str. 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.
|
| my_forward | Ran ran; our contract draft was wrong, not the code |
salesforceairesearch/gemfilter/my_utils/load_model.py code served (permissive licence) · get_code("74f9afa035c0616b") 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 CausalLMOutputWithPast. 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.
|
| normalize_answer | Ran ran; our contract draft was wrong, not the code |
salesforceairesearch/gemfilter/eval/LongBench/metrics.py pointer only (licence: Apache-2.0); the stored copy get_code serves, from borealisai/radar-decoding, is pointer only (licence: LGPL-3.0) · get_code("e7e75981cb464788") How it ranThe body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from borealisai/radar-decoding, and LGPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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. |
| normalize_zh_answer | Ran ran; our contract draft was wrong, not the code |
salesforceairesearch/gemfilter/eval/LongBench/metrics.py pointer only (licence: Apache-2.0); the stored copy get_code serves, from borealisai/radar-decoding, is pointer only (licence: LGPL-3.0) · get_code("8c5c581f9264c810") How it ranThe body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from borealisai/radar-decoding, and LGPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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. |
| parse_args | Ran ran; our contract draft was wrong, not the code |
salesforceairesearch/gemfilter/eval/LongBench/pred.py code served (permissive licence) · get_code("7e76d6613e17885d") 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 Namespace. 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.
|
| post_process | Ran ran, violated the contract we drafted |
salesforceairesearch/gemfilter/eval/LongBench/pred.py code served (permissive licence) · get_code("4489113b536ca6eb") 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 str. 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.
|
| recover_layer | Ran ran; our contract draft was wrong, not the code |
salesforceairesearch/gemfilter/my_utils/my_generation.py code served (permissive licence) · get_code("7492f636f610e78b") 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 ModelWrapper. 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.
|
| reduce_layer | Ran ran; our contract draft was wrong, not the code |
salesforceairesearch/gemfilter/my_utils/my_generation.py code served (permissive licence) · get_code("9fbfc530cceb902f") 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.
|
| standard_dis_index | Ran ran; our contract draft was wrong, not the code |
salesforceairesearch/gemfilter/my_baseline/GemFilter/gem_filter_utils.py code served (permissive licence) · get_code("1d164ab515de6ff5") 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, ndim 4, 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.
|
Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 3 the same month, 4 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 |
|---|---|---|---|
| normalize_answer | 133 other papers 90 dated earlier, 2 the same month, 40 later, 1 undated · 1 only as an assembly brick |
1508.06615 (2015-08) Character-Aware Neural Language Models |
1606.05250 (2016-06) SQuAD: 100,000+ Questions for Machine Comprehension of Text 1608.07905 (2016-08) Machine Comprehension Using Match-LSTM and Answer Pointer and 130 more not named here |
| normalize_zh_answer | 28 other papers 14 dated earlier, 2 the same month, 10 later, 1 same year, order not determinable, 1 undated |
2311.04934 (2023-11) Prompt Cache: Modular Attention Reuse for Low-Latency Inference |
2311.09198 (2023-11) Never Lost in the Middle: Mastering Long-Context Question Answering with Position-Agnostic Decompositional Training 2024.findings-emnlp.230 (2024 (year only)) CLongEval: A Chinese Benchmark for Evaluating Long-Context Large Language Models and 25 more not named here |
| count_score | 24 other papers 12 dated earlier, 1 the same month, 10 later, 1 undated |
2311.04934 (2023-11) Prompt Cache: Modular Attention Reuse for Low-Latency Inference |
2311.09198 (2023-11) Never Lost in the Middle: Mastering Long-Context Question Answering with Position-Agnostic Decompositional Training 2402.02750 (2024-02) KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache and 21 more not named here |
| post_process | 14 other papers 6 dated earlier, 8 later |
2311.09198 (2023-11) Never Lost in the Middle: Mastering Long-Context Question Answering with Position-Agnostic Decompositional Training |
2402.02750 (2024-02) KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache 2404.14469 (2024-04) SnapKV: LLM Knows What You are Looking for Before Generation and 11 more not named here |
| insert_needle | 1 other paper 1 dated earlier |
2404.15574 (2024-04) Retrieval Head Mechanistically Explains Long-Context Factuality |
|
| load_context | 1 other paper 1 dated earlier |
2404.15574 (2024-04) Retrieval Head Mechanistically Explains Long-Context Factuality |
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.
Large Language Models (LLMs) have demonstrated remarkable capabilities in handling long context inputs, but this comes at the cost of increased computational resources and latency. Our research introduces a novel approach for the long context bottleneck to accelerate LLM inference and reduce GPU memory consumption. Our research demonstrates that LLMs can identify relevant tokens in the early layers before generating answers to a query. Leveraging this insight, we propose an algorithm that uses early layers of an LLM as filters to select and compress input tokens, significantly reducing the context length for subsequent processing. Our method, GemFilter, demonstrates substantial improvements in both speed and memory efficiency compared to existing techniques, such as standard attention and SnapKV/H2O. Notably, it achieves a 2.4$\times$ speedup and 30\% reduction in GPU memory usage compared to SOTA methods. Evaluation on the Needle in a Haystack task shows that GemFilter significantly outperforms standard attention, SnapKV and demonstrates comparable performance on the LongBench challenge. GemFilter is simple, training-free, and broadly applicable across different LLMs. Crucially, it provides interpretability by allowing humans to inspect the selected input sequence. These findings not only offer practical benefits for LLM deployment, but also enhance our understanding of LLM internal mechanisms, paving the way for further optimizations in LLM design and inference. Our code is available at \url{https://github.com/SalesforceAIResearch/GemFilter}.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2409.17422")
get_code_for_paper("2409.17422")
have("2409.17422")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2409.17422.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2409.17422)
Connect an agent — have() is free.