Metis: Bridging Text and Code Memory for Self-Evolving Agents
Summary
Metis is a novel self-evolving agent system that addresses the limitations of existing approaches, which typically rely on either natural-language text or code for experience memory without understanding their trade-offs. A controlled study revealed that text and code memories offer complementary benefits in construction cost, execution efficiency, and transferability, indicating neither is sufficient alone. Guided by these findings, Metis employs a hierarchical dual-representation memory. It organizes textual experiences into execution plans, environment facts, and common pitfalls, while selectively converting frequently reused plans into validated callable tools. This design effectively merges the broad applicability of text memory with the execution efficiency of code memory, incurring tool-generation costs only when justified by repeated reuse. Evaluated on the challenging AppWorld benchmark, Metis improved task accuracy by up to 20.6% over ReAct and reduced execution cost by up to 22.8%, demonstrating a superior balance across accuracy, efficiency, and memory-construction cost.
Key takeaway
For AI Engineers developing self-evolving agents, you should move beyond single-representation memory systems. Implement a hierarchical dual-representation memory like Metis, which combines the broad applicability of text with the efficiency of code. This approach allows you to selectively convert frequently used textual plans into validated callable tools, significantly improving task accuracy by up to 20.6% and reducing execution costs by up to 22.8% compared to traditional methods. Prioritize systems that dynamically balance memory types based on reuse frequency.
Key insights
Self-evolving agents benefit from a hierarchical dual-representation memory that bridges text and code for optimal performance.
Principles
- Text and code memories offer complementary trade-offs.
- Neither memory type alone is sufficient for agents.
- Justify tool generation cost by repeated reuse.
Method
Metis organizes textual experience into execution plans, environment facts, and pitfalls, then selectively crystallizes recurring plans into validated callable tools.
In practice
- Implement dual-representation memory for agent experience.
- Convert frequently used textual plans into callable code tools.
- Benchmark memory systems on cost, efficiency, and transferability.
Topics
- Self-Evolving Agents
- Dual-Representation Memory
- Text Memory
- Code Memory
- Metis System
- Agent Architectures
Best for: Research Scientist, NLP Engineer, AI Scientist, AI Engineer, Machine Learning Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.