Introduction
Evaluating Large Language Models (LLMs) in multi-turn, multi-agent environments—such as negotiation or poker—presents a unique challenge: substantial run-to-run variance. In long-horizon interactions, a single small error early in the game can compound over time. This compounding effect is amplified by multi-agent coupling, leading to wildly different game outcomes and destabilizing comparative rankings across repeated tournaments.
To address both this instability and general underperformance, researchers have introduced MEMO (Memory-augmented MOdel context optimization). MEMO is a weight-free, self-play framework that treats an LLM's inference-time context as an optimizable "agentic object." By coupling a persistent memory bank of strategic insights with tournament-style prompt evolution, MEMO nearly doubles win rates in complex multi-agent games while being significantly more sample-efficient than traditional Reinforcement Learning (RL).
The Challenge: Compounding Errors and Optimizer Drift
Current prompt optimization techniques, such as TextGrad or MIPRO, often struggle in multi-agent game settings because they are "batch-local." They update prompts based on a small set of recent games but lack a mechanism to retain long-term strategic lessons. Without a persistent memory, these optimizers frequently experience "drift," rediscovering the same failures in independent runs and failing to anchor the model's performance. This makes it difficult to determine whether a model's success is due to a superior underlying policy or mere luck.
The MEMO Framework: Retention and Exploration
MEMO shifts the paradigm by optimizing the context—the instructions and memory injected into the prompt—rather than updating model weights. This approach fundamentally reshapes the agent's behavior through two main pillars:
1. Retention (The Memory Bank)
MEMO distills completed self-play game trajectories into structured, natural-language insights (e.g., "do not bluff when the opponent holds a high card"). It employs a CRUD (Create, Read, Update, Delete) logic to merge these new insights into a persistent memory bank. This ensures the agent retains successful strategies from previous generations, acting as a "prior" that anchors performance and sharply reduces run-to-run dispersion.
2. Exploration (Tournament & Replay)
To discover new strategies, MEMO utilizes a robust exploration mechanism:
- Tournament Selection: The framework maintains a population of candidate prompts evaluated using TrueSkill, the Bayesian ranking system famous for matchmaking in video games. This ensures that only prompts demonstrating reliable, repeatable success are retained.
- Prioritized Replay: To ensure the model learns from rare but decisive moments, MEMO stores "trajectory prefixes" and revisits them. By focusing on states that exhibited the highest variance in outcomes, the model learns to navigate critical pivot points in the game.
Experimental Setup
The researchers evaluated MEMO across five text-based games categorized by their strategic demands:
- Negotiation: SimpleNegotiation (resource trading) and TwoDollar (splitting a pot with secret instructions).
- Imperfect Information: KuhnPoker (simplified poker) and Briscola (an Italian card game).
- Perfect Information: SimpleTak (a grid-based connection game).
Testing utilized benchmarks from TextArena, SPIN-Bench, and MultiAgentBench against held-out opponent models like Grok-4-Fast and Gemini-2.5-Flash-Lite, with a budget of 2,000 games per task.
Key Findings and Results
- Massive Win Rate Boosts: MEMO dramatically improved performance. For GPT-4o-mini, the mean win rate rose from 24.9% to 49.5%. For Qwen-2.5-7B, it increased from 20.9% to 45.0%.
- Unprecedented Stability: MEMO significantly reduced performance dispersion. In GPT-4o-mini tests, MEMO achieved a Relative Standard Error (RSE) of just 6.4%, compared to 31.1% for the baseline and 12.4% for the next-best optimizer (MIPRO).
- Sample Efficiency: While RL can achieve high performance, it is notoriously data-hungry. MEMO achieved comparable or superior results to RL baselines using 19x fewer games (2,000 versus 38,000).
- Cross-Game Transfer: Strategic insights proved surprisingly universal. A prompt optimized for SimpleTak improved performance in KuhnPoker by 25.9%, demonstrating that the model learned general, protocol-level skills like turn management and opponent modeling. Furthermore, prompts optimized on GPT-4o-mini successfully transferred to Gemini models without further training.
Limitations and Future Directions
Despite its successes, MEMO has boundaries. In perfect-information games (like SimpleTak), traditional RL still tends to outperform MEMO, suggesting that search-heavy games may still require explicit planning or weight-based updates.
Additionally, knowledge transfer exhibits directional asymmetry; for instance, negotiation skills aided card game performance, but the reverse was not always true. Finally, while learned contexts transferred well to Gemini, they degraded performance on Grok-4-Fast. This indicates that optimized contexts may capture strategic structures specific to how certain model families process information, highlighting a key area for future research in structural alignment and model sensitivity.
Summary updated