mlsanityData to 14 Oct 2026

SirLLM: Streaming Infinite Retentive LLM

arXiv 2405.12528 ↗First posted 21 May 2024cs.CLcited by 16

Not on the map. Why?

Abstract (arXiv)

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

Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 22 of its 31 references that are in the map. First posted on arXiv 21 May 2024.

Builds on

22 of 31 references.

References · 22

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2023GPT-4 Technical Reportcited by 18,396
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2020Longformer: The Long-Document Transformercited by 3,413
  6. 2016Pointer Sentinel Mixture Modelscited by 3,096
  7. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  8. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
  9. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  10. 2023Large Language Modelscited by 780
  11. 2017DailyDialog: A Manually Labelled Multi-turn Dialogue Datasetcited by 652
  12. 2019Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecastingcited by 607
10 more
  1. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 474
  2. 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
  3. 2024CodeAid: Evaluating a Classroom Deployment of an LLM-based Programming Assistant that Balances Student and Educator Needscited by 84
  4. 2023Advancing Transformer Architecture in Long-Context Large Language Models: A Comprehensive Surveycited by 72
  5. 2024CoCo-Agent: A Comprehensive Cognitive MLLM Agent for Smartphone GUI Automationcited by 70
  6. 2023Automating Customer Service using LangChain: Building custom open-source GPT Chatbot for organizationscited by 61
  7. 2024LLM as Prompter: Low-resource Inductive Reasoning on Arbitrary Knowledge Graphscited by 13
  8. 2023Optimizing Retrieval-augmented Reader Models via Token Eliminationcited by 10
  9. 2023ArcGPT: A Large Language Model Tailored for Real-world Archival Applicationscited by 3
  10. 2023Approach Intelligent Writing Assistants Usability with Seven Stages of Actioncited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 5; 2025: 9; 2026: 2.

16 papers.

Sort:

By area: