SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.07616 · 2024

Anchor-based Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

6 of 12 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 1 has no contract verdict; 5 failures of our instrument; 6 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/2402.07616.json · badge: /api/ran/2402.07616.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.

RepositoryRoleRan
pangjh3/anllm canonical (classifier label)
classifier basis: census
6 ran · 6 no recorded run
FunctionStatusWhere it lives
create_prompt Ran
ran; our contract draft was wrong, not the code
pangjh3/anllm/inference.py
pointer only (licence: NONE) · get_code("4a62d89cb68ccb26")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pangjh3/anllm 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.

create_prompt Ran
ran on a synthesized input
pangjh3/anllm/analysis/get_infer_attention.py
pointer only (licence: NONE) · get_code("65a7d55fbb2fbdf6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pangjh3/anllm 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.

create_prompt Ran
ran; our contract draft was wrong, not the code
pangjh3/anllm/applications/translation/inference_allmnoacinput.py
pointer only (licence: NONE) · get_code("6ed5904743254ffa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pangjh3/anllm 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.

read_input Ran
ran; our contract draft was wrong, not the code
pangjh3/anllm/inference.py
pointer only (licence: NONE) · get_code("2a686c7dfc4f6740")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pangjh3/anllm 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.

read_instruct Ran
ran; our contract draft was wrong, not the code
pangjh3/anllm/inference.py
pointer only (licence: NONE) · get_code("1a23d98ad0f9c590")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pangjh3/anllm 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.

read_instruct Ran
ran; our contract draft was wrong, not the code
pangjh3/anllm/analysis/get_infer_attention.py
pointer only (licence: NONE) · get_code("341ad8f9aaad0613")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pangjh3/anllm 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.

llamamodel_forward_noflashattn Not yet run
unverified (harvested, no recorded run)
pangjh3/anllm/codes/llama_sft_forward_thisversion.py
pointer only (licence: NONE) · get_code("499b99e50f9e7aa2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pangjh3/anllm 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.

llamamodel_forward_onlyfortraining Not yet run
unverified (harvested, no recorded run)
pangjh3/anllm/codes/fortest.py
pointer only (licence: NONE) · get_code("af993c4bf4ab277b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pangjh3/anllm 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.

llamamodel_forwardforinfer_onlykvcache_realtime Not yet run
unverified (harvested, no recorded run)
pangjh3/anllm/codes/fortest.py
pointer only (licence: NONE) · get_code("e0b319e22a605469")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pangjh3/anllm 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.

llamamodel_forwardforinfer_realtime_asan Not yet run
unverified (harvested, no recorded run)
pangjh3/anllm/codes/fortest.py
pointer only (licence: NONE) · get_code("a902b911ae31d497")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pangjh3/anllm 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.

llamamodel_forwardforinfer_realtime_asan Not yet run
unverified (harvested, no recorded run)
pangjh3/anllm/codes/llama_sft_forward_thisversion.py
pointer only (licence: NONE) · get_code("6c2ee79bf4242e7b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pangjh3/anllm 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.

llamamodel_forwardforinfer_realtime_asan Not yet run
unverified (harvested, no recorded run)
pangjh3/anllm/codes/llama_sft_forward_thisversion_new.py
pointer only (licence: NONE) · get_code("dcb6d4e3ddac178f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pangjh3/anllm 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.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 2 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.

FunctionAlso present inEarliest-datedOthers named
read_instruct 5 other papers
4 dated earlier, 1 later
2308.12097 (2023-08)
Instruction Position Matters in Sequence Generation with Large Language Models
2308.12674 (2023-08)
Improving Translation Faithfulness of Large Language Models via Augmenting Instructions
2401.08350 (2024-01)
Salute the Classic: Revisiting Challenges of Machine Translation in the Age of Large Language Models
and 2 more not named here
read_input 4 other papers
3 dated earlier, 1 later
2308.12674 (2023-08)
Improving Translation Faithfulness of Large Language Models via Augmenting Instructions
2311.09071 (2023-11)
How Vocabulary Sharing Facilitates Multilingualism in LLaMA?
2401.08350 (2024-01)
Salute the Classic: Revisiting Challenges of Machine Translation in the Age of Large Language Models
and 1 more not named here
create_prompt 2 other papers
2 dated earlier
2401.08350 (2024-01)
Salute the Classic: Revisiting Challenges of Machine Translation in the Age of Large Language Models
2401.12873 (2024-01)
Improving Machine Translation with Human Feedback: An Exploration of Quality Estimation as a Reward Model
create_prompt 1 other paper
1 dated earlier
2401.08350 (2024-01)
Salute the Classic: Revisiting Challenges of Machine Translation in the Age of Large Language Models

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.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large language models (LLMs) predominantly employ decoder-only transformer architectures, necessitating the retention of keys/values information for historical tokens to provide contextual information and avoid redundant computation. However, the substantial size and parameter volume of these LLMs require massive GPU memory. This memory demand increases with the length of the input text, leading to an urgent need for more efficient methods of information storage and processing. This study introduces Anchor-based LLMs (AnLLMs), which utilize an innovative anchor-based self-attention network (AnSAN) and also an anchor-based inference strategy. This approach enables LLMs to compress sequence information into an anchor token, reducing the keys/values cache and enhancing inference efficiency. Experiments on question-answering benchmarks reveal that AnLLMs maintain similar accuracy levels while achieving up to 99% keys/values cache reduction and up to 3.5 times faster inference. Despite a minor compromise in accuracy, the substantial enhancements of AnLLMs employing the AnSAN technique in resource utilization and computational efficiency underscore their potential for practical LLM applications.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2402.07616")
get_code_for_paper("2402.07616")
have("2402.07616")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2402.07616.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2402.07616.svg)](https://syntology.ai/paper/2402.07616)

Connect an agent — have() is free.