mlsanityData to 7 Oct 2026

Large Language Models can Implement Policy Iteration

arXiv 2210.03821 ↗First posted 7 Oct 2022cs.LGcited by 31

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2017Proximal Policy Optimization Algorithmscited by 14,441
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  6. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  7. 2022Emergent Abilities of Large Language Modelscited by 2,483
  8. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  9. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,302
  10. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
  11. 2022Inner Monologue: Embodied Reasoning through Planning with Language Modelscited by 1,057
  12. 2022Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agentscited by 1,029
22 more
  1. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
  2. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
  3. 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
  4. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  5. 2021Persistent Anti-Muslim Bias in Large Language Modelscited by 376
  6. 2022Video PreTraining (VPT): Learning to Act by Watching Unlabeled Online Videoscited by 338
  7. 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
  8. 2021Towards Understanding and Mitigating Social Biases in Language Modelscited by 294
  9. 2022Pre-Trained Language Models for Interactive Decision-Makingcited by 220
  10. 2022Multi-Game Decision Transformerscited by 212
  11. 2020Improving Vision-and-Language Navigation with Image-Text Pairs from the Webcited by 177
  12. 2021Understanding the Capabilities, Limitations, and Societal Impact of Large Language Modelscited by 159
  13. 2022Prompting Decision Transformer for Few-Shot Policy Generalizationcited by 143
  14. 2022On the Relation between Sensitivity and Accuracy in In-context Learningcited by 71
  15. 2020Human Instruction-Following with Deep Reinforcement Learning via Transfer-Learning from Textcited by 59
  16. 2022Semantic Exploration from Language Abstractions and Pretrained Representationscited by 51
  17. 2022PERFECT: Prompt-free and Efficient Few-shot Learning with Language Modelscited by 40
  18. 2021Learning Knowledge Graph-based World Models of Textual Environmentscited by 31
  19. 2022LISA: Learning Interpretable Skill Abstractions from Languagecited by 30
  20. 2022HARP: Autoregressive Latent Video Prediction with High-Fidelity Image Generatorcited by 22
  21. 2021Pre-trained Language Models as Prior Knowledge for Playing Text-based Gamescited by 21
  22. 2021Inherently Explainable Reinforcement Learning in Natural Languagecited by 16

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 15; 2025: 9; 2026: 6.

31 papers.

Sort:

By area:

  1. 2024ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolutioncited by 266
  2. 2023Generative agent-based modeling with actions grounded in physical, social, or digital space using Concordiacited by 119
  3. 2024Agent-Pro: Learning to Evolve via Policy-Level Reflection and Optimizationcited by 93
  4. 2024Can large language models explore in-context?cited by 75
  5. 2024Agents Thinking Fast and Slow: A Talker-Reasoner Architecturecited by 35
  6. 2024EVOLvE: Evaluating and Optimizing LLMs For In-Context Explorationcited by 33
  7. 2024LMAct: A Benchmark for In-Context Imitation Learning with Long Multimodal Demonstrationscited by 32
  8. 2024Large Language Models Are Neurosymbolic Reasonerscited by 31
  9. 2024Efficient Reinforcement Learning with Large Language Model Priorscited by 30
  10. 2025Reward Is Enough: LLMs Are In-Context Reinforcement Learnerscited by 29
  11. 2024LLMs Are In-Context Bandit Reinforcement Learnerscited by 27
  12. 2025Self-Generated In-Context Examples Improve LLM Agents for Sequential Decision-Making Taskscited by 17
19 more
  1. 2025Toward Efficient Exploration by Large Language Model Agentscited by 15
  2. 2024Problem Solving Through Human-AI Preference-Based Cooperationcited by 11
  3. 2025The Evolving Landscape of LLM- and VLM-Integrated Reinforcement Learningcited by 10
  4. 2025Formalizing Learning from Language Feedback with Provable Guaranteescited by 10
  5. 2026KernelBlaster: Continual Cross-Task CUDA Optimization via Memory-Augmented In-Context Reinforcement Learningcited by 10
  6. 2024On the Modeling Capabilities of Large Language Models for Sequential Decision Makingcited by 9
  7. 2024Retrieval-Augmented Hierarchical in-Context Reinforcement Learning and Hindsight Modular Reflections for Task Planning with LLMscited by 8
  8. 2025Improving Large Language Model Planning with Action Sequence Similaritycited by 7
  9. 2025Enhancing Decision-Making of Large Language Models via Actor-Criticcited by 7
  10. 2024Deploying Foundation Model Powered Agent Services: A Surveycited by 4
  11. 2024Enhancing Q-Learning with Large Language Model Heuristicscited by 2
  12. 2026Cognitive Models and AI Algorithms Provide Templates for Designing Language Agentscited by 2
  13. 2024Attaining Human`s Desirable Outcomes in Human-AI Interaction via Structural Causal Gamescited by 1
  14. 2026Transformers Provably Implement In-Context Reinforcement Learning with Policy Improvementcited by 1
  15. 2025Conversational Planning for Personal Planscited by 0
  16. 2025Empowering LLMs with Parameterized Skills for Adversarial Long-Horizon Planningcited by 0
  17. 2026When are LLMs Sufficient Policy Optimizers for Sequential RL Tasks?cited by 0
  18. 2026Large Language Models as Optimizers: A Survey of Direct vs. Tool-Augmented Approaches and Their Performance Frontierscited by 0
  19. 2026In-Context Learning as Implicit Policy Gradientcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025Scalable In-Context Q-Learning
  2. 2026In-Context Reinforcement Learning under Non-Stationarity: A Survey
  3. 2026Policy Iteration with Human Feedback: Bringing Post-Training RL to In-context Learning
  4. 2026In-Context Reinforcement Learning for Tool Use in Large Language Models
  5. 2025Refined Policy Distillation: From VLA Generalists to RL Experts
  6. 2025Leveraging In-Context Learning for Language Model Agents
  7. 2026Rationale-Guided Policy Optimization: Learning to Reason with Adaptive Rationale Scaffolding
  8. 2025In-Context Iterative Policy Improvement for Dynamic Manipulation