SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.12528 · ACL · 2024

SirLLM: Streaming Infinite Retentive LLM

Zuchao Li, Hai Zhao, Yao Yao

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 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; 6 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2405.12528.json · badge: /api/ran/2405.12528.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
zoeyyao27/sirllm canonical (classifier label)
classifier basis: census
3 ran · 2 no recorded run
Zoeyyao27/SirLLM community
Papers with Code archive
4 ran · 0 no recorded run
FunctionStatusWhere it lives
StartRecentKVCache Ran
ran on a synthesized input · constructed an object; no result was computed
Zoeyyao27/SirLLM/sir_llm/kv_cache.py
pointer only (licence: NONE) · get_code("8b89f5185f54b87b")
How it ran

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

apply_rotary_pos_emb_single Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zoeyyao27/sirllm/sir_llm/pos_shift/modify_llama.py
pointer only (licence: NONE); the stored copy get_code serves, from ybai-nlp/CItruS, is pointer only (licence: NONE) · get_code("feb1b3f32d2a6b1d")
How it ran

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

download_url Ran
ran; our contract draft was wrong, not the code
zoeyyao27/sirllm/sir_llm/utils.py
pointer only (licence: NONE) · get_code("d196dde52e17237c")
How it ran

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

keys_dataprocessing Ran
ran; our contract draft was wrong, not the code
zoeyyao27/sirllm/sir_llm/utils.py
pointer only (licence: NONE) · get_code("0641cca815ff48ef")
How it ran

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

slice1d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Zoeyyao27/SirLLM/sir_llm/kv_cache.py
pointer only (licence: NONE) · get_code("d9184aa1916b26b6")
How it ran

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

slice2d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Zoeyyao27/SirLLM/sir_llm/kv_cache.py
pointer only (licence: NONE) · get_code("6d6900170e299613")
How it ran

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

slice3d Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Zoeyyao27/SirLLM/sir_llm/kv_cache.py
pointer only (licence: NONE) · get_code("cb805c8b7c94bf90")
How it ran

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

llama_pos_shift_attention_forward Not yet run
unverified (harvested, no recorded run)
zoeyyao27/sirllm/sir_llm/pos_shift/modify_llama.py
pointer only (licence: NONE) · get_code("ef0dd16ed2fcc837")
How it ran

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

load Not yet run
unverified (harvested, no recorded run)
zoeyyao27/sirllm/sir_llm/utils.py
pointer only (licence: NONE) · get_code("ec56c401313f5cc6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, zoeyyao27/sirllm 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 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 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
apply_rotary_pos_emb_single 3 other papers
3 later
2406.12018 (2024-06)
CItruS : Chunked Instruction-aware State Eviction for Long Sequence Modeling
2502.17599 (2025-02)
MEDA: Dynamic KV Cache Allocation for Efficient Multimodal Long-Context Inference
2603.04759 (2026-03)
Stacked from One: Multi-Scale Self-Injection for Context Window Extension
download_url 2 other papers
1 later, 1 undated
2410.05076 (2024-10)
TidalDecode: Fast and Accurate LLM Decoding with Position Persistent Sparse Attention
openreview_trSWJ99WzS
Less Is More: Fast and Accurate Reasoning with Cross-Head Unified Sparse Attention

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.

Repositories linked to this paper

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

Abstract

As Large Language Models (LLMs) become increasingly prevalent in various domains, their ability to process inputs of any length and maintain a degree of memory becomes essential. However, the one-off input of overly long texts is limited, as studies have shown that when input lengths exceed the LLMs' pre-trained text length, there is a dramatic decline in text generation capabilities. Moreover, simply extending the length of pre-training texts is impractical due to the difficulty in obtaining long text data and the substantial memory consumption costs this would entail for LLMs. Recent efforts have employed streaming inputs to alleviate the pressure of excessively long text inputs, but this approach can significantly impair the model's long-term memory capabilities. Motivated by this challenge, we introduce Streaming Infinite Retentive LLM (SirLLM), which allows LLMs to maintain longer memory during infinite-length dialogues without the need for fine-tuning. SirLLM utilizes the Token Entropy metric and a memory decay mechanism to filter key phrases, endowing LLMs with both long-lasting and flexible memory. We designed three distinct tasks and constructed three datasets to measure the effectiveness of SirLLM from various angles: (1) DailyDialog; (2) Grocery Shopping; (3) Rock-Paper-Scissors. Our experimental results robustly demonstrate that SirLLM can achieve stable and significant improvements across different LLMs and tasks, compellingly proving its effectiveness. When having a coversation, "A sir could forget himself," but SirLLM never does! Our code is publicly available at https://github.com/Zoeyyao27/SirLLM

For agents

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

get_harvested_code_for_paper("2405.12528")
get_code_for_paper("2405.12528")
have("2405.12528")

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

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

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

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

Connect an agent — have() is free.