Large language models (LLMs) have revolutionized AI, but are constrained by limited context windows, hindering their utility in tasks like extended conversations and document analysis. To enable using context beyond limited context windows, we propose virtual context management, a technique drawing inspiration from hierarchical memory systems in traditional operating systems that provide the appearance of large memory resources through data movement between fast and slow memory. Using this technique, we introduce MemGPT (Memory-GPT), a system that intelligently manages different memory tiers in order to effectively provide extended context within the LLM's limited context window, and utilizes interrupts to manage control flow between itself and the user. We evaluate our OS-inspired design in two domains where the limited context windows of modern LLMs severely handicaps their performance: document analysis, where MemGPT is able to analyze large documents that far exceed the underlying LLM's context window, and multi-session chat, where MemGPT can create conversational agents that remember, reflect, and evolve dynamically through long-term interactions with their users. We release MemGPT code and data for our experiments at https://memgpt.ai.
Integrating Artificial Intelligence into Operating Systems: A Survey on Techniques, Applications, and Future Directions
School of Software Technology, Zhejiang University(浙江大学软件学院);College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);State Key Laboratory of Mathematical Engineering and Advanced Computing(数学工程与先进计算国家重点实验室);Chinese Academy of Engineering(中国工程院);College of Cyber Security, Jinan University(暨南大学网络安全学院)
Why We Need World Models for AGI: Where LLMs Fail and How World Models May Outperform
Department of Computing Technologies(计算技术系);SRM Institute of Science and Technology(SRM科学与技术学院);Bio-Sensing and Bio-Sensors Group(生物传感与生物传感器组);Smart Automation and Communication Technologies Research Institute of Sciences and Engineering(科学与工程智能自动化与通信技术研究所);University of Sharjah, UAE(阿联酋沙迦大学);Department of Computer Engineering(计算机工程系);College of Computing and Informatics(计算与信息学院)
A Novel Multi-Agent Architecture to Reduce Hallucinations of Large Language Models in Multi-Step Structural Modeling
Department of Civil and Architectural Engineering, University of Miami(迈阿密大学土木与建筑工程系);HBC Engineering Company(HBC工程公司);College of Civil Engineering, Hunan University(湖南大学土木学院);Department of Computer Science, University of Illinois Chicago(伊利诺伊大学芝加哥分校计算机科学系);Department of Civil and Environmental Engineering, Lehigh University(莱斯利大学土木与环境工程系);School of Architecture, University of Miami(迈阿密大学建筑学院)
How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMs
State Key Laboratory of General Artificial Intelligence, School of Intelligence Science and Technology, Peking University(通用人工智能国家重点实验室,智能科学与技术学院,北京大学);School of EECS, Peking University(电子工程系,北京大学);Huawei Noah’s Ark Lab(华为诺亚实验室);Center for Machine Learning Research, Peking University(机器学习研究中心,北京大学)
A Comparative Study of Student Perspectives on Technical Writing Feedback Quality: Evaluating LLMs, SLMs, and Humans in Computer Science Topics
McMaster University(麦斯特大学);Department of Computer Science, University of Toronto(多伦多大学计算机科学系);Research Institute for the Study of University Pedagogy, University of Toronto Mississauga(多伦多大学密西根分校大学教学研究学院);Department of Mathematical and Computational Sciences, University of Toronto Mississauga(多伦多大学密西根分校数学与计算科学系)
Protecting Bystander Privacy via Selective Hearing in Audio LLMs
VRAIN, Universitat Politècnica de València(VRAIN,瓦伦西亚理工大学);Department of Engineering, University of Cambridge(剑桥大学工程系);INGENIO (CSIC-Universitat Politècnica de València)(INGENIO(CSIC-瓦伦西亚理工大学))
Context Matters! Relaxing Goals with LLMs for Feasible 3D Scene Planning
Department of Computer, Automation and Management Engineering, Sapienza University of Rome(Sapienza大学计算机、自动化与管理工程系);Department of Electronics and Automation, Mohamed Khider University of Biskra(Mohamed Khider大学电子与自动化系);International University of Rome UNINT, Rome(罗马国际大学UNINT)
ShieldLearner: A New Paradigm for Jailbreak Attack Defense in LLMs
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Institute of Artificial Intelligence, Beijing University of Aeronautics and Astronautics(北京航空航天大学人工智能研究院)
Can large language models assist choice modelling? Insights into prompting strategies and current models' capabilities
Choice Modelling Centre & Institute for Transport Studies, University of Leeds(选择建模中心及交通研究学院,利兹大学);CityAI Lab, Transport and Logistics group, Engineering Systems and Services Department, TU Delft(CityAI实验室,运输与物流组,工程系统与服务部门,代尔夫特理工大学)