Which Successes Make Good References? Action-Sequence Alignment for Multi-Turn On-Policy Distillation

Mufei Li, Nikki Lijing Kuang, Zhuoer Wang, Samson Koelle, Jie Yuan, Manqing Mao, Hong Wang, Yanjun Lin, James Feng, Daniel Edmiston, Pan Li, Wei NiuarXiv 2026

TL;DR

Training multi-turn agents is hard because a single mistake can lead to a completely different environment state, making standard "correct" examples irrelevant. This paper proposes using Longest Common Subsequence (LCS) to select the most compatible successful reference trajectory for a student's failed attempt, ensuring the teacher's guidance is actually applicable to the student's current path.

What Problem Does This Paper Address?

In On-Policy Distillation (OPD), a "student" model learns from its own mistakes by having a "teacher" model score its trajectories. For complex, multi-turn tasks (like a robot cleaning a house or a chatbot using APIs), researchers often use reference-augmented OPD, where the teacher is shown a successful "reference" trajectory to help it provide better feedback.

The core challenge is path dependence. In interactive environments, early actions change what is possible later. If a task can be solved in multiple ways (e.g., picking up Newspaper A then B, or B then A), and the student starts with Path A while the teacher uses a reference for Path B, the teacher's advice might be technically "correct" for Path B but completely nonsensical for the student's current state. This "misleading supervision" can actually degrade the student's performance.

Methods

The authors frame reference selection as a free-target optimal transport problem, which effectively means finding the "nearest" successful reference for every failed student attempt.

To measure "nearness" or compatibility without knowing the hidden internal states of the environment, they propose Action-Sequence Alignment. Specifically, they use Longest Common Subsequence (LCS):

  • Why LCS? Unlike a simple prefix match (which stops at the first mistake), LCS identifies a shared "backbone" of actions. It allows for "recoverable detours"—extra or redundant actions that don't fundamentally change the path—while still recognizing that two trajectories are following the same general strategy.
  • The Pipeline:
    1. Collect a pool of successful teacher trajectories for each task.
  • During training, for every failed student rollout, use LCS to find the most compatible success from the pool.
  • The teacher provides feedback conditioned on this specific reference.
  • Updates are applied only to failed rollouts to avoid disrupting valid (but different) successful behaviors the student might have already discovered.
LCS selects compatible references by identifying a shared backbone of actions, even when detours occur.

Datasets

The authors evaluated their method on two distinct benchmarks:

  1. ALFWorld: A synthetic embodied environment where agents must perform household tasks (e.g., "Clean a mug and put it in a cabinet") using text-based interactions.
  2. $\tau^3$-bench: A tool-use benchmark simulating real-world customer service domains.
  3. Airline Domain: Used for training and in-domain evaluation.
  4. Retail Domain: Used to test cross-domain transfer (applying the airline-trained model to retail tasks without further tuning).

Key Insights and Ideas

  • Compatibility > Optimality: A reference that is slightly longer or "less efficient" but follows the student's logic is often a better teaching tool than a "perfect" short trajectory that uses a completely different strategy.
  • Actions as State Proxies: In partially observable environments, you can't see the "true" state. However, the sequence of actions taken is a powerful observable proxy for the path an agent is carving through the state space.
  • The "Detour" Intuition: Agents often make redundant moves (e.g., opening a drawer they already opened). Methods like Longest Common Prefix (LCP) treat these as total failures of alignment. LCS correctly identifies that the agent is still "on the right track" despite the fluff.
An example in ALFWorld where the student's choice of which newspaper to pick up first dictates which reference is most helpful.

Key Results

LCS was the only selector among eight tested (including BM25, Edit Distance, and Embedding similarity) to consistently improve over vanilla OPD across all metrics.

  • ALFWorld: For a Qwen2.5-3B student, LCS improved the success rate on unseen tasks from 78.4% to 85.8%.
  • $\tau^3$-bench (Airline): It significantly boosted the "Pass^4" metric (solving a task consistently across four trials) from 30.0% to 41.7% for the 2B model.
  • Zero-Shot Transfer: Models trained on the Airline domain using LCS showed superior performance when moved to the Retail domain, proving that learning from compatible references builds more robust, generalizable skills.
Training dynamics show that LCS scores (blue) remain higher and more stable than stricter alignment methods like LCP (orange).

Limitations and Future Work

  • Reference Pool Requirement: The method requires a pre-collected pool of successful trajectories. While the paper shows that even a few (2-4) successes per task are enough, very rare or difficult tasks might lack these.
  • Computational Overhead: Conditioning the teacher on long reference trajectories increases the context length and compute cost during the distillation phase.
  • Stochastic Environments: The theoretical guarantees assume deterministic environment dynamics. Future work could explore how to adapt action-alignment when the same action might lead to different outcomes.

Summary updated

BibTeX
@misc{li2026which,
  author = {Mufei Li and Nikki Lijing Kuang and Zhuoer Wang and Samson Koelle and Jie Yuan and Manqing Mao and Hong Wang and Yanjun Lin and James Feng and Daniel Edmiston and Pan Li and Wei Niu},
  title = {{Which Successes Make Good References? Action-Sequence Alignment for Multi-Turn On-Policy Distillation}},
  year = {2026},
  eprint = {2611.13135},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.13135},
}
Figure