mlsanityData to 14 Oct 2026

Task Memory Engine (TME): Enhancing State Awareness for Multi-Step LLM Agent Tasks

arXiv 2504.08525 ↗First posted 11 Apr 2025cs.AI cs.CLcited by 7

On the map: LLM agents and tool use → Agent memory systems

Abstract (arXiv)

Large Language Models (LLMs) are increasingly used as autonomous agents for multi-step tasks. However, most existing frameworks fail to maintain a structured understanding of the task state, often relying on linear prompt concatenation or shallow memory buffers. This leads to brittle performance, frequent hallucinations, and poor long-range coherence. In this work, we propose the Task Memory Engine (TME), a lightweight and structured memory module that tracks task execution using a hierarchical Task Memory Tree (TMT). Each node in the tree corresponds to a task step, storing relevant input, output, status, and sub-task relationships. We introduce a prompt synthesis method that dynamically generates LLM prompts based on the active node path, significantly improving execution consistency and contextual grounding. Through case studies and comparative experiments on multi-step agent tasks, we demonstrate that TME leads to better task completion accuracy and more interpretable behavior with minimal implementation overhead. A reference implementation of the core TME components is available at https://github.com/biubiutomato/TME-Agent, including basic examples and structured memory integration. While the current implementation uses a tree-based structure, TME is designed to be graph-aware, supporting reusable substeps, converging task paths, and shared dependencies. This lays the groundwork for future DAG-based memory architectures.

Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 1 of its 10 references that are in the map. First posted on arXiv 11 Apr 2025.

Builds on

1 of 10 references.

References · 1

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695

Built on by

Cited by year (2026 to 14 Oct)

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

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Task Memory Engine: Spatial Memory for Robust Multi-Step LLM Agents
  2. 2025LEGOMem: Modular Procedural Memory for Multi-agent LLM Systems for Workflow Automation
  3. 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontiers
  4. 2025ReAcTree: Hierarchical LLM Agent Trees with Control Flow for Long-Horizon Task Planning
  5. 2025MapAgent: Trajectory-Constructed Memory-Augmented Planning for Mobile Task Automation
  6. 2026AdMem: Advanced Memory for Task-solving Agents
  7. 2025MemTool: Optimizing Short-Term Memory Management for Dynamic Tool Calling in LLM Agent Multi-Turn Conversations
  8. 2025Intrinsic Memory Agents: Heterogeneous Multi-Agent LLM Systems through Structured Contextual Memory