Retrospective In-Context Learning for Temporal Credit Assignment with Large Language Models

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chen, Wen-Tse, Chen, Jiayu, Tajwar, Fahim, Zhu, Hao, Duan, Xintong, Salakhutdinov, Ruslan, Schneider, Jeff
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915807752093696
author Chen, Wen-Tse
Chen, Jiayu
Tajwar, Fahim
Zhu, Hao
Duan, Xintong
Salakhutdinov, Ruslan
Schneider, Jeff
author_facet Chen, Wen-Tse
Chen, Jiayu
Tajwar, Fahim
Zhu, Hao
Duan, Xintong
Salakhutdinov, Ruslan
Schneider, Jeff
contents Learning from self-sampled data and sparse environmental feedback remains a fundamental challenge in training self-evolving agents. Temporal credit assignment mitigates this issue by transforming sparse feedback into dense supervision signals. However, previous approaches typically depend on learning task-specific value functions for credit assignment, which suffer from poor sample efficiency and limited generalization. In this work, we propose to leverage pretrained knowledge from large language models (LLMs) to transform sparse rewards into dense training signals (i.e., the advantage function) through retrospective in-context learning (RICL). We further propose an online learning framework, RICOL, which iteratively refines the policy based on the credit assignment results from RICL. We empirically demonstrate that RICL can accurately estimate the advantage function with limited samples and effectively identify critical states in the environment for temporal credit assignment. Extended evaluation on four BabyAI scenarios show that RICOL achieves comparable convergent performance with traditional online RL algorithms with significantly higher sample efficiency. Our findings highlight the potential of leveraging LLMs for temporal credit assignment, paving the way for more sample-efficient and generalizable RL paradigms.
format Preprint
id arxiv_https___arxiv_org_abs_2602_17497
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Retrospective In-Context Learning for Temporal Credit Assignment with Large Language Models
Chen, Wen-Tse
Chen, Jiayu
Tajwar, Fahim
Zhu, Hao
Duan, Xintong
Salakhutdinov, Ruslan
Schneider, Jeff
Machine Learning
Learning from self-sampled data and sparse environmental feedback remains a fundamental challenge in training self-evolving agents. Temporal credit assignment mitigates this issue by transforming sparse feedback into dense supervision signals. However, previous approaches typically depend on learning task-specific value functions for credit assignment, which suffer from poor sample efficiency and limited generalization. In this work, we propose to leverage pretrained knowledge from large language models (LLMs) to transform sparse rewards into dense training signals (i.e., the advantage function) through retrospective in-context learning (RICL). We further propose an online learning framework, RICOL, which iteratively refines the policy based on the credit assignment results from RICL. We empirically demonstrate that RICL can accurately estimate the advantage function with limited samples and effectively identify critical states in the environment for temporal credit assignment. Extended evaluation on four BabyAI scenarios show that RICOL achieves comparable convergent performance with traditional online RL algorithms with significantly higher sample efficiency. Our findings highlight the potential of leveraging LLMs for temporal credit assignment, paving the way for more sample-efficient and generalizable RL paradigms.
title Retrospective In-Context Learning for Temporal Credit Assignment with Large Language Models
topic Machine Learning
url https://arxiv.org/abs/2602.17497