What and When to Distill: Selective Hindsight Distillation for Multi-Turn Agents

Xiaozhe Li, Tianyi Lyu, Yang Li, Yichuan Ma, Peiji Li +4 more
5/19/2026
cs.AI
rldistillation

No confident code implementation found for this paper.

Abstract

Reinforcement learning can train LLM agents from sparse task rewards, but long-horizon credit assignment remains challenging: a single success-or-failure signal must be distributed across many actions. Existing methods rely on trajectory-level rewards or proxy signals, without fully leveraging per-step environmental feedback.

Show full abstract

Multi-turn agent settings are underexplored, where feedback can include error messages, page changes, observations, or reference trajectories. We systematically study five feedback sources and two insertion granularities and introduce SERL, a selective environment-reweighted learning framework. SERL uses the task reward to determine update direction, while environment feedback adjusts placement and magnitude, focusing on critical actions. On ALFWorld and WebShop, SERL achieves 90.0% and 80.1% success, outperforming strong RL and distillation baselines. Analysis shows that grounded, action-relevant feedback at meaningful points consistently outperforms indiscriminate use of longer or richer context.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026what,
  title  = {What and When to Distill: Selective Hindsight Distillation for Multi-Turn Agents},
  author = {Xiaozhe Li and Tianyi Lyu and Yang Li and Yichuan Ma and Peiji Li and Linyang Li and Qipeng Guo and Dahua Lin and Kai Chen},
  year   = {2026},
  eprint = {2605.19447},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.19447v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.19447.svg)](https://codeofpaper.com/paper/2605.19447)

Discussion