Teaching Text Agents to Learn Sequential Decision Making from Failure

Text-based reinforcement-learning agents improve their policies by interacting with their environments to collect more training data.However, these self-collected data inevitably contain intermediate failed actions caused by attempting physically infeasible behaviors and/or hallucinations.Directly learning a policy from such trajectories can reinforce incorrect behaviors and reduce task success rates.In this paper, we propose a failed action-aware objective that suppresses the negative impact of failed actions during training by assigning zero return based on textual feedback.Building on this objective, we introduce a perturbation method that leverages unsuccessful trajectories to construct new successful ones that share the same goal.This allows agents to benefit from diverse experiences without further interaction with the environment.Experiments in ALFWorld and ScienceWorld demonstrate that our method significantly outperforms strong baselines and generalizes across environments.Code is available at https://github.com/ riken-grp/text-agent.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-long.1526
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Teaching Text Agents to Learn Sequential Decision Making from Failure

Canasai Kruengkrai, Koichiro Yoshino
Software Engineering Research
article

Teaching Text Agents to Learn Sequential Decision Making from Failure

Canasai Kruengkrai, Koichiro Yoshino
article en

Abstract

Text-based reinforcement-learning agents improve their policies by interacting with their environments to collect more training data.However, these self-collected data inevitably contain intermediate failed actions caused by attempting physically infeasible behaviors and/or hallucinations.Directly learning a policy from such trajectories can reinforce incorrect behaviors and reduce task success rates.In this paper, we propose a failed action-aware objective that suppresses the negative impact of failed actions during training by assigning zero return based on textual feedback.Building on this objective, we introduce a perturbation method that leverages unsuccessful trajectories to construct new successful ones that share the same goal.This allows agents to benefit from diverse experiences without further interaction with the environment.Experiments in ALFWorld and ScienceWorld demonstrate that our method significantly outperforms strong baselines and generalizes across environments.Code is available at https://github.com/ riken-grp/text-agent.

Peace, Justice and strong institutions
Openalex Percentile: Top 71%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Teaching Text Agents to Learn Sequential Decision Making from Failure — Canasai Kruengkrai, Koichiro Yoshino · (2025) | TGRS Research Map | TGRS