paper-with-me

홈 › Papers

HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Model

2024-08-18 · Mengkang Hu, Tianxing Chen, Qiguang Chen, Yao Mu, Wenqi Shao, Ping Luo

Large Language Model (LLM)-based agents exhibit significant potential across various domains, operating as interactive systems that process environmental observations to generate executable actions for target tasks. The effectiveness of these agents is significantly influenced by their memory mechanism, which records historical experiences as sequences of action-observation pairs. We categorize memory into two types: cross-trial memory, accumulated across multiple attempts, and in-trial memory (working memory), accumulated within a single attempt. While considerable research has optimized performance through cross-trial memory, the enhancement of agent performance through improved working memory utilization remains underexplored. Instead, existing approaches often involve directly inputting entire historical action-observation pairs into LLMs, leading to redundancy in long-horizon tasks. Inspired by human problem-solving strategies, this paper introduces HiAgent, a framework that leverages subgoals as memory chunks to manage the working memory of LLM-based agents hierarchically. Specifically, HiAgent prompts LLMs to formulate subgoals before generating executable actions and enables LLMs to decide proactively to replace previous subgoals with summarized observations, retaining only the action-observation pairs relevant to the current subgoal. Experimental results across five long-horizon tasks demonstrate that HiAgent achieves a twofold increase in success rate and reduces the average number of steps required by 3.8. Additionally, our analysis shows that HiAgent consistently improves performance across various steps, highlighting its robustness and generalizability. Project Page: https://github.com/HiAgent2024/HiAgent .

📄 PDF Abstract BibTeX arXiv:2408.09559

Code (1)

hiagent2024/hiagent 공식 구현

Tasks

Language ModelingLanguage ModellingLarge Language ModelManagement

Similar Papers 제목 키워드 기반

Cognitive Workspace: Active Memory Management for LLMs -- An Empirical Study of Functional Infinite Context

2025-08-08 · Tao An arxiv

Large Language Models (LLMs) face fundamental limitations in context management despite recent advances extending context windows to millions of tokens. We propose Cognitive Workspace, a novel paradigm that transcends tr…

Information Retrieval

Hierarchical Working Memory and a New Magic Number

2024-08-14 · Weishun Zhong, Mikhail Katkov, Misha Tsodyks

The extremely limited working memory span, typically around four items, contrasts sharply with our everyday experience of processing much larger streams of sensory information concurrently. This disparity suggests that w…

Chunking

HiMe: Hierarchical Embodied Memory for Long-Horizon Vision-Language-Action Control

2026-07-03 · Li Ji, Siyin Wang, Pengfang Qian, Xiaopeng Yu 외 arxiv

Current Vision-Language-Action (VLA) models excel at robotic manipulation but often struggle with non-Markovian tasks requiring long-term memory and reasoning due to their reliance on immediate observations. Existing sol…

AgentSys: Secure and Dynamic LLM Agents Through Explicit Hierarchical Memory Management

2026-02-07 · Ruoyao Wen, Hao Li, Chaowei Xiao, Ning Zhang arxiv

Indirect prompt injection threatens LLM agents by embedding malicious instructions in external content, enabling unauthorized actions and data theft. LLM agents maintain working memory through their context window, which…

Language Hierarchization Provides the Optimal Solution to Human Working Memory Limits

2026-01-06 · Luyao Chen, Weibo Gao, Junjie Wu, Jinshan Wu 외 arxiv

Language is a uniquely human trait, conveying information efficiently by organizing word sequences in sentences into hierarchical structures. A central question persists: Why is human language hierarchical? In this study…