# Learning in Context, Guided by Choice: A Reward-Free Paradigm for Reinforcement Learning with Transformers

*Juncheng Dong, Moyang Guo, Bowen He, Ethan Fang, Zhuoran Yang, Vahid Tarokh*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152897) · [OpenReview](https://openreview.net/forum?id=PbbNvAUOLl) · [alphaXiv](https://www.alphaxiv.org/abs/2602.08244) · [Open on the map](../papers.html#p152897)

Category: [Reinforcement Learning & Games](../pcat/10.md) › [Reward-Shaped Reinforcement Learning](../pgroup/267.md) · Type: new method · Keywords: in-context reinforcement learning, preference-based learning, transformer models, reward-free RL, preference feedback

Areas: [RL for LLMs & Agents](../areas/llm-rl.md) › Language Model Reinforcement Learning › Diffusion and Flow Policies

## Summary
ICPRL introduces a reward-free in-context reinforcement learning paradigm that uses only preference feedback, enabling transformers to solve unseen tasks without explicit reward signals.

## Explained to a 5-year-old
Imagine a robot that learns to play games by asking people which moves are better, instead of being told a score. It looks at many examples of people's choices and tries to guess the best actions on its own. When it sees a new game, it uses what it learned to decide what to do. This way, the robot can try many things without needing a clear rule for right and wrong. It just follows the preferences it has collected.

## Explained to a 5-year-old, longer
Imagine a robot that wants to learn how to do something fun, like solving puzzles. Usually, people give it a score or a rule that says what is right and what is wrong. But sometimes it is hard to know the right score, or it takes a lot of work to make one. So instead, the robot asks people which choices they like better. It watches many examples where people compare two actions and says which one they prefer. From these preferences, the robot builds a picture of what works well. When it meets a new problem it has never seen, it uses the picture it learned to guess the best move. This way, the robot can try many things without needing a perfect rule. It learns from the opinions of many people, not from a single number. The robot can also learn from small pieces of feedback, like which step was better, or from whole sequences of actions. By using only what people like, the robot can adapt to many different situations. This makes learning faster and easier for everyone. It helps the robot be useful in real life where clear scores are not always available.

## For a technical reader
The paper presents a way to train transformer-based agents using only human preference data instead of explicit reward signals. It introduces two feedback granularities: per-step choices and whole-trajectory comparisons, and shows how both can be incorporated into in-context learning. Experiments on bandit, navigation, and control tasks demonstrate that the approach generalizes to unseen problems as well as traditional reward-driven methods. This eliminates the need to design or annotate reward functions, simplifying deployment in domains where rewards are costly or ambiguous. The result is a more flexible reinforcement-learning pipeline that can be applied to a variety of sequential decision-making problems.

## Problem
Existing in-context reinforcement learning methods rely on explicit reward signals, which can be ambiguous, hard to specify, or costly to obtain, limiting their applicability when rewards are not readily available.

## Method
The approach uses preference feedback instead of rewards, studying two variants that differ in feedback granularity: per-step preferences (I-PRL) and trajectory-level comparisons (T-PRL). It explores both supervised pretraining on preference datasets and alternative preference-native frameworks that directly optimize transformer policies from preference data without reward signals or optimal action labels.

## Results
The approach shows strong in-context generalization to unseen tasks, matching the performance of reward-supervised ICRL methods.

## Contributions
It introduces a reward-free in-context RL paradigm that relies solely on preference feedback, proposes two preference granularity variants, and demonstrates effective generalization across diverse tasks.

## Research questions this paper is counted under

- [How can reinforcement learning agents effectively learn from sparse, delayed rewards in long-horizon tasks?](../q/1.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152897)
