paper-with-me

홈 › Papers

M$^\star$: Every Task Deserves Its Own Memory Harness

2026-04-10 · Wenbo Pan, Shujie Liu, Xiangyang Zhou, Shiwei Zhang, Wanlu Shi, Mirror Xu, Xiaohua Jia arxiv

Large language model agents rely on specialized memory systems to accumulate and reuse knowledge during extended interactions. Recent architectures typically adopt a fixed memory design tailored to specific domains, such as semantic retrieval for conversations or skills reused for coding. However, a memory system optimized for one purpose frequently fails to transfer to others. To address this limitation, we introduce M$^\star$, a method that automatically discovers task-optimized memory harnesses through executable program evolution. Specifically, M$^\star$ models an agent memory system as a memory program written in Python. This program encapsulates the data Schema, the storage Logic, and the agent workflow Instructions. We optimize these components jointly using a reflective code evolution method; this approach employs a population-based search strategy and analyzes evaluation failures to iteratively refine the candidate programs. We evaluate M$^\star$ on four distinct benchmarks spanning conversation, embodied planning, and expert reasoning. Our results demonstrate that M$^\star$ improves performance over existing fixed-memory baselines robustly across all evaluated tasks. Furthermore, the evolved memory programs exhibit structurally distinct processing mechanisms for each domain. This finding indicates that specializing the memory mechanism for a given task explores a broad design space and provides a superior solution compared to general-purpose memory paradigms.

📄 PDF Abstract BibTeX arXiv:2604.11811

Code (0)

등록된 구현이 없습니다.

Tasks

Semantic Retrieval

Similar Papers 제목 키워드 기반

Continual Harness: Online Adaptation for Self-Improving Foundation Agents

2026-05-11 · Seth Karten, Joel Zhang, Tersoo Upaa, Ruirong Feng 외 arxiv

Coding harnesses such as Claude Code and OpenHands wrap foundation models with tools, memory, and planning, but no equivalent exists for embodied agents' long-horizon partial-observability decision-making. We first repor…

What Deserves Memory: Adaptive Memory Distillation for LLM Agents

2025-08-05 · Wenquan Ma, Jiayan Nan, Wenlong Wu, Yize Chen arxiv

Memory systems for LLM agents struggle to determine what information deserves retention. Existing approaches rely on predefined heuristics such as importance scores, emotional tags, or factual templates, encoding designe…

Knowledge Distillation

Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses

2026-04-28 · Jiahang Lin, Shichun Liu, Chengjun Pan, Lizhi Lin 외 arxiv

Harnesses are now central to coding-agent performance, mediating how models interact with tools and execution environments. Yet harness engineering remains a manual craft, because automating it faces a heterogeneous acti…

General Modular Harness for LLM Agents in Multi-Turn Gaming Environments

2025-07-15 · Yuxuan Zhang, Haoyang Yu, Lanxiang Hu, Haojian Jin 외 arxiv

We introduce a modular harness design for LLM agents that composes of perception, memory, and reasoning components, enabling a single LLM or VLM backbone to tackle a wide spectrum of multi turn gaming environments withou…

Delivery, Not Storage: Cue-Anchored Working Memory as a Harness Property for Coding Agents

2026-07-23 · Swapnanil Saha arxiv

Coding agents ship with one kind of memory: documents. Instruction files, plan artifacts, and auto-written memory directories are deliberately authored and deliberately retrieved: the agent must choose to write them and …