Metis: Bridging Text and Code Memory for Self-Evolving Agents

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Robotics & Autonomous Systems · Depth: Expert, quick

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

Method

Metis organizes textual experience into execution plans, environment facts, and pitfalls, then selectively crystallizes recurring plans into validated callable tools.

In practice

Topics

Best for: Research Scientist, NLP Engineer, AI Scientist, AI Engineer, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.