ICML 2026poster0 citations

From Outcomes to Actions: Leveraging Hindsight for Long-Horizon Language Agent Training

Zishang Jiang, tingyun li, Jinyi Han, Xinyi Wang, Sihang Jiang, Yizhou Ying, Xiaojun Meng, Jiansheng Wei

Abstract

Reinforcement learning (RL) has become a widely adopted technique for improving large language models (LLMs) on complex tasks. Despite this progress, existing RL methods still face challenges in training agents with longer-horizon interactions. One major bottleneck is distinguishing the contribution of different actions in long-horizon interaction, leading to high optimization variance. To address this, we introduce a novel policy gradient method, Hindsight Policy Optimization (HPO), that projects both the current policy distribution and the hindsight distribution into an intent space and extracts low-variance learning signals from the Wasserstein distance between them. We theoretically and empirically show that aggregating semantically similar states and actions in the intent space yields a bounded-variance estimator and improves policy performance stably. Our code is available online.

LLMAgentsRLOptimizationTheoryRetrieval
BibTeX
@inproceedings{
jiang2026from,
title={From Outcomes to Actions: Leveraging Hindsight for Long-Horizon Language Agent Training},
author={Zishang Jiang and tingyun li and Jinyi Han and Xinyi Wang and Sihang Jiang and Yizhou Ying and Xiaojun Meng and Jiansheng Wei and Jiaqing Liang and Yanghua Xiao},
booktitle={Forty-third International Conference on Machine Learning},
year={2026},
url={https://openreview.net/forum?id=iK3yDEvQ4y}
}