arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.01495cs.CL
收藏

面向语言模型操作系统的压缩器-检索器架构

The Compressor-Retriever Architecture for Language Model OS

Georgia Institute of Technology(佐治亚理工学院);Monash University(莫纳什大学)

Yuan Yang, Siheng Xiong, Ehsan Shareghi, Faramarz Fekri

AI总结:

本文提出compressor-retriever架构,利用基础模型前向函数实现终身上下文压缩与检索,以构建有状态的语言模型操作系统。

摘要:

大语言模型(LLMs)的最新进展显著增强了其跨多模态聚合与处理信息的能力,使其能够执行多模态数据查询、工具使用、网络交互以及长文档处理等广泛任务。这些能力为将LLMs从单纯的聊天机器人转变为能够与现实世界交互的通用智能体铺平了道路。本文探讨了将语言模型用作操作系统(OS)核心组件的概念,使其有效地充当CPU,处理存储在上下文窗口中的数据,而上下文窗口则起到RAM的作用。实现这种语言模型操作系统的一个关键挑战是管理终身上下文并确保跨会话的有状态性,而当前基于会话的交互范式由于上下文窗口大小限制而无法充分支持这一特性。为解决这一问题,我们提出了compressor-retriever,这是一种与模型无关的架构,专为终身上下文管理而设计。与检索增强生成等其他长上下文解决方案不同,我们的方法仅使用基础模型的前向函数来压缩和检索上下文,从而确保端到端的可微性。初步实验证明了该架构在上下文学习任务中的有效性,标志着向开发完全有状态的语言模型操作系统迈出了一步。项目代码库可在以下地址获取:https://github.com/gblackout/LM-OS

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑