Retrospective In-Context Learning for Temporal Credit Assignment with Large Language Models
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 28 of its 39 references that are in the map. First posted on arXiv 19 Feb 2026.
Builds on
28 of 39 references.
References · 28
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2015Trust Region Policy Optimizationcited by 2,503
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 1,980
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
- 2017Hindsight Experience Replaycited by 1,096
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 965
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 814
- 2019Advantage-Weighted Regression: Simple and Scalable Off-Policy Reinforcement Learningcited by 750
- 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 542
- 2025Cognitive Behaviors that Enable Self-Improving Reasoners, or, Four Habits of Highly Effective STaRscited by 373
- 2023Language Models can Solve Computer Taskscited by 371
16 more
- 2025RAGEN: Understanding Self-Evolution in LLM Agents via Multi-Turn Reinforcement Learningcited by 357
- 2018Maximum a Posteriori Policy Optimisationcited by 318
- 2023Language to Rewards for Robotic Skill Synthesiscited by 307
- 2023Robots That Ask For Help: Uncertainty Alignment for Large Language Model Plannerscited by 298
- 2024RLHF Workflow: From Reward Modeling to Online RLHFcited by 265
- 2023Reward Design with Language Modelscited by 257
- 2024Iterative Reasoning Preference Optimizationcited by 244
- 2018BabyAI: A Platform to Study the Sample Efficiency of Grounded Language Learningcited by 238
- 2023Grounding Large Language Models in Interactive Environments with Online Reinforcement Learningcited by 193
- 2024BALROG: Benchmarking Agentic LLM and VLM Reasoning On Gamescited by 141
- 2017Intrinsic Motivation and Automatic Curricula via Asymmetric Self-Playcited by 139
- 2023Retroformer: Retrospective Large Language Agents with Policy Gradient Optimizationcited by 110
- 2024RLHF Deciphered: A Critical Analysis of Reinforcement Learning from Human Feedback for LLMscited by 89
- 2023Auto MC-Reward: Automated Dense Reward Design with Large Language Models for Minecraftcited by 60
- 2024Improving Large Language Models via Fine-grained Reinforcement Learning with Minimum Editing Constraintcited by 39
- 2024Assessing the Zero-Shot Capabilities of LLMs for Action Evaluation in RLcited by 7
Built on by
Citing papers per year: 2026: 2.
2 papers.