Large Language Models can Implement Policy Iteration
Not on the map. Why?
Abstract (arXiv)
This work presents In-Context Policy Iteration, an algorithm for performing Reinforcement Learning (RL), in-context, using foundation models. While the application of foundation models to RL has received considerable attention, most approaches rely on either (1) the curation of expert demonstrations (either through manual design or task-specific pretraining) or (2) adaptation to the task of interest using gradient methods (either fine-tuning or training of adapter layers). Both of these techniques have drawbacks. Collecting demonstrations is labor-intensive, and algorithms that rely on them do not outperform the experts from which the demonstrations were derived. All gradient techniques are inherently slow, sacrificing the "few-shot" quality that made in-context learning attractive to begin with. In this work, we present an algorithm, ICPI, that learns to perform RL tasks without expert demonstrations or gradients. Instead we present a policy-iteration method in which the prompt content is the entire locus of learning. ICPI iteratively updates the contents of the prompt from which it derives its policy through trial-and-error interaction with an RL environment. In order to eliminate the role of in-weights learning (on which approaches like Decision Transformer rely heavily), we demonstrate our algorithm using Codex, a language model with no prior knowledge of the domains on which we evaluate it.
Key facts. Cited by 31 papers in the map (data through 7 Oct 2026). Builds on 34 of its 46 references that are in the map. First posted on arXiv 7 Oct 2022.
Builds on
34 of 46 references.
References · 34
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,302
- 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
- 2022Inner Monologue: Embodied Reasoning through Planning with Language Modelscited by 1,057
- 2022Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agentscited by 1,029
22 more
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2021Persistent Anti-Muslim Bias in Large Language Modelscited by 376
- 2022Video PreTraining (VPT): Learning to Act by Watching Unlabeled Online Videoscited by 338
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2021Towards Understanding and Mitigating Social Biases in Language Modelscited by 294
- 2022Pre-Trained Language Models for Interactive Decision-Makingcited by 220
- 2022Multi-Game Decision Transformerscited by 212
- 2020Improving Vision-and-Language Navigation with Image-Text Pairs from the Webcited by 177
- 2021Understanding the Capabilities, Limitations, and Societal Impact of Large Language Modelscited by 159
- 2022Prompting Decision Transformer for Few-Shot Policy Generalizationcited by 143
- 2022On the Relation between Sensitivity and Accuracy in In-context Learningcited by 71
- 2020Human Instruction-Following with Deep Reinforcement Learning via Transfer-Learning from Textcited by 59
- 2022Semantic Exploration from Language Abstractions and Pretrained Representationscited by 51
- 2022PERFECT: Prompt-free and Efficient Few-shot Learning with Language Modelscited by 40
- 2021Learning Knowledge Graph-based World Models of Textual Environmentscited by 31
- 2022LISA: Learning Interpretable Skill Abstractions from Languagecited by 30
- 2022HARP: Autoregressive Latent Video Prediction with High-Fidelity Image Generatorcited by 22
- 2021Pre-trained Language Models as Prior Knowledge for Playing Text-based Gamescited by 21
- 2021Inherently Explainable Reinforcement Learning in Natural Languagecited by 16
Built on by
Citing papers per year: 2023: 1; 2024: 15; 2025: 9; 2026: 6.
31 papers.
Sort:
By area:
- 2024ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolutioncited by 266
- 2023Generative agent-based modeling with actions grounded in physical, social, or digital space using Concordiacited by 119
- 2024Agent-Pro: Learning to Evolve via Policy-Level Reflection and Optimizationcited by 93
- 2024Can large language models explore in-context?cited by 75
- 2024Agents Thinking Fast and Slow: A Talker-Reasoner Architecturecited by 35
- 2024EVOLvE: Evaluating and Optimizing LLMs For In-Context Explorationcited by 33
- 2024LMAct: A Benchmark for In-Context Imitation Learning with Long Multimodal Demonstrationscited by 32
- 2024Large Language Models Are Neurosymbolic Reasonerscited by 31
- 2024Efficient Reinforcement Learning with Large Language Model Priorscited by 30
- 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learnerscited by 29
- 2024LLMs Are In-Context Bandit Reinforcement Learnerscited by 27
- 2025Self-Generated In-Context Examples Improve LLM Agents for Sequential Decision-Making Taskscited by 17
19 more
- 2025Toward Efficient Exploration by Large Language Model Agentscited by 15
- 2024Problem Solving Through Human-AI Preference-Based Cooperationcited by 11
- 2025The Evolving Landscape of LLM- and VLM-Integrated Reinforcement Learningcited by 10
- 2025Formalizing Learning from Language Feedback with Provable Guaranteescited by 10
- 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learningcited by 10
- 2024On the Modeling Capabilities of Large Language Models for Sequential Decision Makingcited by 9
- 2024Retrieval-Augmented Hierarchical in-Context Reinforcement Learning and Hindsight Modular Reflections for Task Planning with LLMscited by 8
- 2025Improving Large Language Model Planning with Action Sequence Similaritycited by 7
- 2025Enhancing Decision-Making of Large Language Models via Actor-Criticcited by 7
- 2024Deploying Foundation Model Powered Agent Services: A Surveycited by 4
- 2024Enhancing Q-Learning with Large Language Model Heuristicscited by 2
- 2026Cognitive Models and AI Algorithms Provide Templates for Designing Language Agentscited by 2
- 2024Attaining Human`s Desirable Outcomes in Human-AI Interaction via Structural Causal Gamescited by 1
- 2026Transformers Provably Implement In-Context Reinforcement Learning with Policy Improvementcited by 1
- 2025Conversational Planning for Personal Planscited by 0
- 2025Empowering LLMs with Parameterized Skills for Adversarial Long-Horizon Planningcited by 0
- 2026When are LLMs Sufficient Policy Optimizers for Sequential RL Tasks?cited by 0
- 2026Large Language Models as Optimizers: A Survey of Direct vs. Tool-Augmented Approaches and Their Performance Frontierscited by 0
- 2026In-Context Learning as Implicit Policy Gradientcited by 0
- 2026In-Context Learning as Implicit Policy Gradient25 Jul 2026
- 2026When are LLMs Sufficient Policy Optimizers for Sequential RL Tasks?29 May 2026
- 2026Transformers Provably Implement In-Context Reinforcement Learning with Policy Improvement7 May 2026
- 2026Large Language Models as Optimizers: A Survey of Direct vs. Tool-Augmented Approaches and Their Performance Frontiers9 Apr 2026
- 2026Cognitive Models and AI Algorithms Provide Templates for Designing Language Agents26 Feb 2026
- 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learning15 Feb 2026
- 2025Empowering LLMs with Parameterized Skills for Adversarial Long-Horizon Planning16 Sep 2025
- 2025Formalizing Learning from Language Feedback with Provable Guarantees12 Jun 2025
- 2025Enhancing Decision-Making of Large Language Models via Actor-Critic4 Jun 2025
- 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learners21 May 2025
- 2025Improving Large Language Model Planning with Action Sequence Similarity2 May 2025
- 2025Self-Generated In-Context Examples Improve LLM Agents for Sequential Decision-Making Tasks1 May 2025
19 more
- 2025Toward Efficient Exploration by Large Language Model Agents29 Apr 2025
- 2025Conversational Planning for Personal Plans26 Feb 2025
- 2025The Evolving Landscape of LLM- and VLM-Integrated Reinforcement Learning21 Feb 2025
- 2024Deploying Foundation Model Powered Agent Services: A Survey18 Dec 2024
- 2024LMAct: A Benchmark for In-Context Imitation Learning with Long Multimodal Demonstrations2 Dec 2024
- 2024Agents Thinking Fast and Slow: A Talker-Reasoner Architecture10 Oct 2024
- 2024Efficient Reinforcement Learning with Large Language Model Priors10 Oct 2024
- 2024EVOLvE: Evaluating and Optimizing LLMs For In-Context Exploration8 Oct 2024
- 2024On the Modeling Capabilities of Large Language Models for Sequential Decision Making8 Oct 2024
- 2024LLMs Are In-Context Bandit Reinforcement Learners7 Oct 2024
- 2024Problem Solving Through Human-AI Preference-Based Cooperation14 Aug 2024
- 2024Retrieval-Augmented Hierarchical in-Context Reinforcement Learning and Hindsight Modular Reflections for Task Planning with LLMs12 Aug 2024
- 2024Attaining Human`s Desirable Outcomes in Human-AI Interaction via Structural Causal Games26 May 2024
- 2024Enhancing Q-Learning with Large Language Model Heuristics6 May 2024
- 2024Can large language models explore in-context?22 Mar 2024
- 2024Agent-Pro: Learning to Evolve via Policy-Level Reflection and Optimization27 Feb 2024
- 2024ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolution2 Feb 2024
- 2024Large Language Models Are Neurosymbolic Reasoners17 Jan 2024
- 2023Generative agent-based modeling with actions grounded in physical, social, or digital space using Concordia6 Dec 2023
- 2023Generative agent-based modeling with actions grounded in physical, social, or digital space using Concordiacited by 119
- 2025Self-Generated In-Context Examples Improve LLM Agents for Sequential Decision-Making Taskscited by 17
- 2025Toward Efficient Exploration by Large Language Model Agentscited by 15
- 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learningcited by 10
- 2024Deploying Foundation Model Powered Agent Services: A Surveycited by 4
- 2026Cognitive Models and AI Algorithms Provide Templates for Designing Language Agentscited by 2
- 2026Cognitive Models and AI Algorithms Provide Templates for Designing Language Agents26 Feb 2026
- 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learning15 Feb 2026
- 2025Self-Generated In-Context Examples Improve LLM Agents for Sequential Decision-Making Tasks1 May 2025
- 2025Toward Efficient Exploration by Large Language Model Agents29 Apr 2025
- 2024Deploying Foundation Model Powered Agent Services: A Survey18 Dec 2024
- 2023Generative agent-based modeling with actions grounded in physical, social, or digital space using Concordia6 Dec 2023
- 2024Agents Thinking Fast and Slow: A Talker-Reasoner Architecturecited by 35
- 2024EVOLvE: Evaluating and Optimizing LLMs For In-Context Explorationcited by 33
- 2024Large Language Models Are Neurosymbolic Reasonerscited by 31
- 2025Conversational Planning for Personal Planscited by 0
- 2025Conversational Planning for Personal Plans26 Feb 2025
- 2024Agents Thinking Fast and Slow: A Talker-Reasoner Architecture10 Oct 2024
- 2024EVOLvE: Evaluating and Optimizing LLMs For In-Context Exploration8 Oct 2024
- 2024Large Language Models Are Neurosymbolic Reasoners17 Jan 2024
- 2024ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolutioncited by 266
- 2024Can large language models explore in-context?cited by 75
- 2024Efficient Reinforcement Learning with Large Language Model Priorscited by 30
- 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learnerscited by 29
- 2024LLMs Are In-Context Bandit Reinforcement Learnerscited by 27
- 2024Problem Solving Through Human-AI Preference-Based Cooperationcited by 11
- 2025The Evolving Landscape of LLM- and VLM-Integrated Reinforcement Learningcited by 10
- 2025Formalizing Learning from Language Feedback with Provable Guaranteescited by 10
- 2025Improving Large Language Model Planning with Action Sequence Similaritycited by 7
- 2025Enhancing Decision-Making of Large Language Models via Actor-Criticcited by 7
- 2024Enhancing Q-Learning with Large Language Model Heuristicscited by 2
- 2024Attaining Human`s Desirable Outcomes in Human-AI Interaction via Structural Causal Gamescited by 1
12 most cited of 17 All 17 (JSON)
- 2026In-Context Learning as Implicit Policy Gradient25 Jul 2026
- 2026When are LLMs Sufficient Policy Optimizers for Sequential RL Tasks?29 May 2026
- 2026Transformers Provably Implement In-Context Reinforcement Learning with Policy Improvement7 May 2026
- 2026Large Language Models as Optimizers: A Survey of Direct vs. Tool-Augmented Approaches and Their Performance Frontiers9 Apr 2026
- 2025Empowering LLMs with Parameterized Skills for Adversarial Long-Horizon Planning16 Sep 2025
- 2025Formalizing Learning from Language Feedback with Provable Guarantees12 Jun 2025
- 2025Enhancing Decision-Making of Large Language Models via Actor-Critic4 Jun 2025
- 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learners21 May 2025
- 2025Improving Large Language Model Planning with Action Sequence Similarity2 May 2025
- 2025The Evolving Landscape of LLM- and VLM-Integrated Reinforcement Learning21 Feb 2025
- 2024Efficient Reinforcement Learning with Large Language Model Priors10 Oct 2024
- 2024LLMs Are In-Context Bandit Reinforcement Learners7 Oct 2024
12 newest of 17 All 17 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Scalable In-Context Q-Learning
- 2026In-Context Reinforcement Learning under Non-Stationarity: A Survey
- 2026Policy Iteration with Human Feedback: Bringing Post-Training RL to In-context Learning
- 2026In-Context Reinforcement Learning for Tool Use in Large Language Models
- 2025Refined Policy Distillation: From VLA Generalists to RL Experts
- 2025Leveraging In-Context Learning for Language Model Agents
- 2026Rationale-Guided Policy Optimization: Learning to Reason with Adaptive Rationale Scaffolding
- 2025In-Context Iterative Policy Improvement for Dynamic Manipulation