From Acting to Learning: Experience Selection toward Continually Learning Agents

Yaoyuan Yan, Haoxiang Jie, Zhiyou Heng, Kailin Wang, Yumiao Li, Lifeng Liu, Anwan Yan

It’s late, you’ve likely spent the day wrestling with model convergence or data pipelines, and the last thing you want is a dry lecture on "data selection." But stick with me: imagine you’re coaching a student. If they successfully solve 100 math problems, but 90 of them are simple addition, should they spend their limited study time reviewing all 100? Or should they pick the few that actually taught them something new?

This paper, From Acting to Learning, asks that exact question for AI agents.

TL;DR

Just because an AI agent succeeded at a task doesn't mean that specific record is a high-quality "lesson" for its future self. By using optimizer-aware gradient selection, the authors show we can cherry-pick the most informative experiences to boost an agent's success rate by over 8% compared to random selection, proving that what you learn is just as important as how you learn.

What Problem Does This Paper Address?

We are moving toward "continual learning" agents—AI that acts in an environment, gathers data, and updates itself. However, interaction is expensive and training budgets are limited.

The standard approach is often "train on everything that worked." But successful actions can be redundant. Conversely, training on things the model found "surprising" (high uncertainty) might just lead it to learn from its own mistakes or noise. The authors tackle the experience selection problem: out of a pool of successful interactions, which ones actually provide the best gradient signal to make the agent smarter?

Methods

The researchers used a Qwen3-4B language model as their base agent and fine-tuned it using LoRA (Low-Rank Adaptation). The core of their approach is a technique called LESS-style optimizer-aware relevance.

Here is the intuitive version:

  1. The Gold Standard: They start with 40 "public support" actions—expert-level demonstrations of what a good agent should do.
  2. The Gradient Signature: They calculate the gradients (the direction the model's weights need to move) for these 40 expert actions.
  3. The Matchmaker: For every new experience the agent has, they calculate its gradient. If that gradient "points" in a similar direction to the expert gradients, it’s considered high-relevance.
  4. The Selection: They rank all experiences by this relevance score and pick the top 256 unique contents to train on.
Figure 1: Method and controlled evaluation. (a) LESS-style relevance to 40 public actions ranks successful experience; students restart from the original base. (b) Ranking rules are crossed with task/action quotas or global selection. Cells denote conditions, not outcomes; global baselines share the gradient rule’s selection freedom. (c) Each checkpoint is reused without further SFT on disjoint development and reserved panels under a common executor. Query answers never enter scoring. Snowflakes/flames denote frozen/trainable parameters. Feature preparation and collection costs are reported separately.

They also introduced a clever experimental variable: Selection Freedom.

  • Matched Selection: Forces the agent to pick a certain number of experiences from every task type (keeping the "diet" balanced).
  • Global Selection: Lets the agent pick the absolute best experiences, even if they all come from just a few task types.

Datasets

The study uses ALFWorld, a popular benchmark where agents perform household tasks (like "put the clean sponge in the cabinet") via a text interface.

  • Experience Pools: Two historical sets of successful runs, "API" (418 distinct contents) and "Generic" (508 distinct contents).
  • Evaluation: The agents were tested on 128 "development" task groups and a separate, "reserved" set of 128 task groups to ensure the results weren't just a fluke of the specific tasks used during development.

Key Insights and Ideas

  • Gradients Beat "Surprise": A common heuristic is to train on data with high NLL (Negative Log-Likelihood)—basically, the stuff that surprised the model. This paper finds that gradient similarity is a much more reliable signal for agent improvement than NLL.
  • The Freedom Paradox: This is the "aha!" moment. If you use a smart selector (Gradient), giving it the "freedom" to ignore certain tasks and double down on others (Global selection) makes it better. If you give that same freedom to a Random selector, it gets worse.
The interaction between the ranking rule and selection freedom. Gradient selection thrives when constraints are relaxed.
  • Consistency is King: The researchers didn't just run this once. They used 8 different initialization seeds and 2 sampling seeds (288 students total). The gradient-based advantage held up across the board.

Key Results

The quantitative jump is significant for this field:

  • Success Rates: In the "API" pool, the gradient-selected agent reached 81.45% success, compared to 73.19% for random selection.
  • The Margin: That’s an 8.25 percentage point gain over random and a 4.10 point gain over the high-NLL baseline.
  • Generalization: On the reserved (unseen) tasks, the gradient-minus-random difference remained strong at +7.03 points.
Comparison of success rates across different selection rules. Gradient selection (purple) consistently leads.

Limitations and Future Work

While the results are robust, the authors note a few boundaries:

  • Single Environment: The study is confined to ALFWorld. Whether these gradient signatures translate to vastly different environments (like web navigation or robotics) remains to be seen.
  • One-Shot Selection: The experiments isolate a single selection-and-training stage. In a true "continual" setting, an agent would do this dozens of times. The authors haven't yet explored if this method leads to "catastrophic forgetting" over very long sequences.
  • Compute Overhead: Calculating gradients for every candidate experience is more expensive than just picking at random. The paper accounts for this in their "cost" section, but for massive datasets, this could become a bottleneck.

In short: if you're building an agent that learns from its own history, don't just feed it everything. Listen to the gradients; they know what the model actually needs to hear.

Summary updated

Abstract

Successful agent interactions provide training data, but success alone does not determine which records a student should learn from. We examine experience selection for a 4B language agent as a component of continual agent learning. Nine selectors are compared across two fixed experience pools, eight initialization seeds, and two sampling seeds, yielding 288 trained students. Each student is evaluated on 128 development task groups with a common executor. With equal global selection freedom, 256 distinct contents, and 768 training presentations, optimizer-aware gradient selection reaches 81.45\% and 73.19\% success in the two pools. Its gains over global random selection are 8.25 and 5.96 percentage points; gains over global high-NLL selection are 4.10 and 4.05 points. All eight initialization-level contrasts are positive against both baselines in each pool. Relaxing coverage constraints improves gradient selection but reduces random-selection performance, showing that the ranking rule and selection space must be considered together. A separately frozen replication on 128 reserved task groups is complete; its equal-source gradient-minus-random and gradient-minus-high-NLL differences are +7.03 and +5.03 points, respectively.
BibTeX
@misc{yan2026from,
  author = {Yaoyuan Yan and Haoxiang Jie and Zhiyou Heng and Kailin Wang and Yumiao Li and Lifeng Liu and Anwan Yan},
  title = {{From Acting to Learning: Experience Selection toward Continually Learning Agents}},
  year = {2026},
  eprint = {2611.27159},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27159},
}
Figure