The Compressor-Retriever Architecture for Language Model OS
Not on the map. Why?
Abstract (arXiv)
Recent advancements in large language models (LLMs) have significantly enhanced their capacity to aggregate and process information across multiple modalities, enabling them to perform a wide range of tasks such as multimodal data querying, tool usage, web interactions, and handling long documents. These capabilities pave the way for transforming LLMs from mere chatbots into general-purpose agents capable of interacting with the real world. This paper explores the concept of using a language model as the core component of an operating system (OS), effectively acting as a CPU that processes data stored in a context window, which functions as RAM. A key challenge in realizing such an LM OS is managing the life-long context and ensuring statefulness across sessions, a feature limited by the current session-based interaction paradigm due to context window size limit. To address this, we introduce compressor-retriever, a model-agnostic architecture designed for life-long context management. Unlike other long-context solutions such as retrieval-augmented generation, our approach exclusively uses the base model's forward function to compress and retrieve context, ensuring end-to-end differentiability. Preliminary experiments demonstrate the effectiveness of this architecture in in-context learning tasks, marking a step towards the development of a fully stateful LLM OS. Project repo available at: https://github.com/gblackout/LM-OS
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 21 of its 22 references that are in the map. First posted on arXiv 2 Sep 2024.
Builds on
21 of 22 references.
References · 21
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Visual Instruction Tuningcited by 7,792
- 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2024WebVoyager: Building an End-to-End Web Agent with Large Multimodal Modelscited by 424
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2023Adapting Language Models to Compress Contextscited by 350
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
9 more
- 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddingscited by 238
- 2022FOLIO: Natural Language Reasoning with First-Order Logiccited by 233
- 2020ReClor: A Reading Comprehension Dataset Requiring Logical Reasoningcited by 211
- 2022Recurrent Memory Transformercited by 197
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 190
- 2024OmniACT: A Dataset and Benchmark for Enabling Multimodal Generalist Autonomous Agents for Desktop and Webcited by 156
- 2021proScript: Partially Ordered Scripts Generation via Pre-trained Language Modelscited by 21
- 2024Prompt-SAW: Leveraging Relation-Aware Graphs for Textual Prompt Compressioncited by 18
- 2024Can LLMs Reason in the Wild with Programs?cited by 13
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 2.
5 papers.
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
- 2024OSCAR: Operating System Control via State-Aware Reasoning and Re-Planningcited by 37
- 2026Adaptive Information Control for Search-Augmented LLM Reasoningcited by 8
- 2025Long-Context Modeling with Dynamic Hierarchical Sparse Attention for Memory-Constrained LLM Inferencecited by 7
- 2026Position: It is Time to Virtualize Foundation Models with a Self-evolving Operating System Layercited by 0
- 2026Position: It is Time to Virtualize Foundation Models with a Self-evolving Operating System Layer16 Sep 2026
- 2026Adaptive Information Control for Search-Augmented LLM Reasoning2 Feb 2026
- 2025Long-Context Modeling with Dynamic Hierarchical Sparse Attention for Memory-Constrained LLM Inference28 Oct 2025
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
- 2024OSCAR: Operating System Control via State-Aware Reasoning and Re-Planning24 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2025MemOS: An Operating System for Memory-Augmented Generation (MAG) in Large Language Models
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression
- 2025MemOS: A Memory OS for AI System
- 2023Retrieval meets Long Context Large Language Models
- 2024Two are better than one: Context window extension with multi-grained self-injection
- 2026Contextual Memory Virtualisation: DAG-Based State Management and Structurally Lossless Trimming for LLM Agents
- 2024An Effective Framework to Help Large Language Models Handle Numeric-involved Long-context Tasks
- 2026GSM: Efficient Language Modeling with Shared Global State