Learning in Context, Guided by Choice: A Reward-Free Paradigm for Reinforcement Learning with Transformers
Abstract
In-context reinforcement learning (ICRL) pretrains transformer models to adapt to unseen tasks from context alone. However, ICRL methods to date presume scalar reward signals at both pretraining and deployment, which is restrictive in settings where rewards are ambiguous or costly to obtain. This paper asks a fundamental question: does in-context decision-making require rewards at all, or is ordinal information, that is, knowing which of two behaviors is better, already enough? We show that ordinal information suffices: a transformer pretrained on comparisons alone solves tasks it has never seen, adapting from a handful of preference observations in context and without a single parameter update. We call this paradigm In-Context Preference-based Reinforcement Learning (ICPRL) and study it under two feedback regimes: step preferences, which compare two actions at the same state, and trajectory preferences, which compare whole trajectories. We first show that supervised pretraining with optimal-action labels remains effective with preference-only context, then introduce one preference-native algorithm per regime, neither of which requires rewards or optimal-action labels. Despite this lack of information, on complex navigation and continuous control tasks, ICPRL performs on par with ICRL methods that consume full reward supervision. In particular, strong performance persists even when every preference label comes from an off-the-shelf LLM annotator, proving the scalability of ICPRL. These results suggest that preference feedback can serve as a scalable foundation for in-context decision-making and open a path to in-context agents that need only to be told which behavior is better.