EvoTest: Evolutionary Test-Time Learning for Self-Improving Agentic Systems

Yufei He, Juncheng Liu, Yue Liu, Yibo Li, Tri Cao, Zhiyuan Hu, Xinxing Xu, Bryan Hooi

Current AI agents often act like "clever but clueless interns"—they can follow instructions but fail to learn from their mistakes during a single session. EvoTest solves this by using an "Evolver" agent to semantically analyze game transcripts and evolve an "Actor" agent's entire configuration—including prompts, memory, hyperparameters, and tool-use code—without any gradient-based fine-tuning.

The Challenge of Test-Time Learning

Most AI agents are deployed with a fixed policy. While they might be powerful, they lack the human ability to "learn on the fly." If an agent gets stuck in a navigation loop or fails a complex puzzle in a text-adventure game, it will likely repeat that exact mistake in the next attempt because it cannot reform its own internal processes.

Existing solutions fall into two camps, both with major flaws:

  1. In-context methods (Reflection, RAG): These only update the prompt or provide past context. They don't touch the agent's core logic, hyperparameters (like exploration temperature), or how it uses tools.
  2. Weight-update methods (Online RL/Fine-tuning): These are computationally expensive, require specialized hardware (GPUs), and are notoriously data-inefficient. In a "test-time" setting where you only have a few attempts to improve, the sparse rewards of a complex game provide a signal too weak for traditional backpropagation.

The EvoTest Framework

To address these limitations, the authors introduce EvoTest, a framework that treats agent improvement as an evolutionary search in the space of "agentic configurations."

EvoTest Framework Overview

The system consists of two distinct roles:

  • The Actor Agent: Plays the game using a configuration consisting of a system prompt, a structured memory database, decision hyperparameters, and Python-based tool-use routines.
  • The Evolver Agent: A high-level "optimizer" (powered by a model like OpenAI's o3) that analyzes the full trajectory transcript after an episode.

Instead of calculating gradients, the Evolver performs narrative credit assignment. It reads the story, identifies why a failure happened (e.g., "the agent got stuck because it didn't examine the key"), and proposes a new configuration. This evolution includes prompt mutation, memory updates (logging successful state-action pairs), hyperparameter tuning, and tool refinement.

To ensure stability, EvoTest uses the Upper Confidence Bound (UCB) algorithm to select which configuration to try next, balancing the urge to exploit a high-scoring "parent" configuration with the need to explore new "child" mutations.

Evaluation and Key Insights

The researchers evaluate EvoTest using the Jericho Test-Time Learning (J-TTL) benchmark. It utilizes the Jericho suite of Interactive Fiction (text-adventure) games, which are famous for their complex puzzles, long-range planning requirements, and sparse rewards. The benchmark evaluates agents across 50 consecutive episodes of six games to measure how quickly and consistently an agent improves.

EvoTest's success stems from a few core insights:

  • Narrative vs. Scalar Credit Assignment: Traditional RL relies on a single number (the reward) to learn. EvoTest uses the rich, semantic feedback of the game transcript. If the game says "You can't go that way," the Evolver understands that as a specific failure and writes a rule to avoid it.
  • Whole-System Evolution: Prompt engineering isn't enough. An agent might have a perfect prompt but fail because its temperature is too low to explore. By evolving the entire configuration, EvoTest resolves bottlenecks that single-channel methods cannot.
  • Efficiency at Test-Time: EvoTest operates on a timescale of seconds (20-30s per update via API calls) rather than the minutes or hours required for GPU-intensive fine-tuning, making it highly practical.

Key Results

EvoTest significantly outperformed all baselines, including reflection-based methods and online reinforcement learning.

Learning Curves on J-TTL Benchmark
  • Superior Performance: It achieved a 38% improvement over the strongest prompt-evolution baseline and a 57% improvement over online RL (GRPO).
  • Winning Games: EvoTest was the only method capable of actually winning games (Detective and Library) within the 50-episode limit; all other baselines failed to reach the end.
  • Data Efficiency: While gradient-based methods struggled with the "data scarcity" of sparse rewards, EvoTest's semantic analysis allowed it to make massive strategic leaps from just a single failed episode.

Limitations and Future Work

While powerful, EvoTest has limitations. It relies on a frozen backbone, meaning it cannot teach an LLM fundamentally new low-level reasoning skills it doesn't already possess; it only surfaces latent capabilities. Additionally, the evolved strategies are highly specific to the current game instance, suggesting future work could focus on abstracting these into a library of general-purpose skills. Finally, the system's success is heavily tied to the reasoning power of the Evolver Agent, and navigating the vast combinatorial space of prompts, code, and parameters may eventually require more sophisticated population-based algorithms.

Summary updated

BibTeX
@inproceedings{he2026evotest,
  author = {Yufei He and Juncheng Liu and Yue Liu and Yibo Li and Tri Cao and Zhiyuan Hu and Xinxing Xu and Bryan Hooi},
  title = {{EvoTest: Evolutionary Test-Time Learning for Self-Improving Agentic Systems}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=JFnnajbkvP},
}
Figure