Specifying Reward Functions for RL Without Environment Sampling

Stephane Hatgis-Kessell, W. Bradley Knox, Emma BrunskillRLBRew @ RLC 2026 · OpenReview

TL;DR

The paper introduces Experience-Free Autonomous Reward Specification (EARS), a novel method that learns alignment-ready reward functions from preferences without requiring any environment interaction. By leveraging a structured LLM dialogue to generate reward features and actively sampling "imagined" trajectories within that feature space, EARS completely bypasses the costly and potentially unsafe rollout phases typical of standard Reinforcement Learning from Human Feedback (RLHF).

What Problem Does This Paper Address?

To deploy reinforcement learning (RL) agents safely and effectively, we must provide them with accurate reward functions. While Reinforcement Learning from Human Feedback (RLHF) has emerged as a powerful way to learn rewards from human preferences, traditional online RLHF is incredibly expensive. It requires an iterative loop: training a policy, rolling it out in the environment to sample trajectories, getting human feedback, and updating the reward model.

In real-world applications—like controlling humanoid robots or running complex, physics-based climate simulators—sampling these trajectories is computationally prohibitive, financially costly, or outright dangerous. While one could simply prompt a Large Language Model (LLM) to write a reward function directly, the authors show that even highly detailed prompts often yield poorly aligned rewards. EARS addresses this gap by enabling preference-based reward design with zero environment sampling.

Methods

EARS splits the reward specification process into two distinct stages:

Figure 1: Experience-free Autonomous Reward Specification (EARS): In Stage 1, a natural language task description and a description of the environment observation space are inputted to an LLM-represented stakeholder. The LLM-represented stakeholder deliberates with a LLM- represented facilitator to design a small set of reward features that can be combined linearly to represent different objectives. In Stage 2, imagined trajectory pairs are sampled from the designed feature space and preferences are labeled over those pairs. The output of Stage 2 is a reward function learned from those preferences.

Stage 1: Designing a Set of Reward Features

Instead of asking an LLM to write a complex reward function from scratch, EARS sets up a structured conversation between two LLM roles: a Stakeholder (representing human objectives) and a Facilitator. Given a basic task description and the environment's observation space (provided as Python code), they collaborate to produce:

  1. A small set of interpretable reward features implemented as executable Python functions.
  2. Speculative minimum and maximum ranges for what values these features might take over a given time horizon.

Stage 2: Learning Weights over Imagined Trajectories

Rather than running a live policy to collect trajectories, EARS constructs "imagined" trajectories by directly sampling feature values uniformly from the ranges defined in Stage 1.

To minimize the number of queries needed, EARS uses active learning to strategically select pairs of imagined trajectories that exhibit the highest uncertainty under the current reward model. A preference labeler (either a ground-truth reward function or an LLM conditioned on natural language objectives) evaluates these pairs. Finally, the system optimizes the feature weights using either cross-entropy loss (for stochastic preferences) or linear programming (for noiseless preferences) to construct the final reward function.

Datasets

The authors evaluated EARS across three long-horizon benchmark environments, testing two distinct ground-truth reward functions ($r_1$ and $r_2$) for each:

Summary of the three evaluation environments used in the paper.
  • Pandemic Mitigation: Designing COVID-19 lockdown regulations using a modified SEIR simulator.
  • Glucose Monitoring: Administering insulin to Type II diabetes patients using an FDA-approved simulator.
  • Traffic Control: Controlling an autonomous vehicle fleet on a highway using the FLOW simulator.

Key Insights and Ideas

  • The Power of "Imagined" Trajectories: Even though uniformly sampled feature combinations might not be physically possible or realistic within the actual environment, preferences over these abstract pairs provide enough geometric constraint to accurately learn reward weights.
  • The "Noisy-TV" Problem in Raw Observations: Bypassing the LLM feature-generation stage and sampling directly from raw observation variables drastically degrades performance. Raw observation spaces contain too many irrelevant, redundant features, which misleads active learning uncertainty metrics.
  • Direct Prompting Has a Low Ceiling: Directly prompting an LLM to generate a reward function performs poorly. Surprisingly, providing the LLM with an incredibly detailed, "privileged" description of the target reward math often fails to improve its direct-generation performance over providing no description at all.

Key Results

The primary evaluation metric used is the Trajectory Alignment Coefficient (TAC), which measures the Kendall-Tau correlation between how the learned reward function and the ground-truth reward function rank a set of 500 evaluation trajectories.

Quantitative alignment results (TAC) comparing EARS against direct prompting baselines.
  • Outperforming Direct Prompting: As shown in Table 2, EARS consistently achieves high TAC scores across almost all settings (e.g., reaching up to $0.96$ in the Pandemic domain), whereas direct prompting baselines frequently yield negative or near-zero correlations.
  • Matching Real-Trajectory Baselines: When compared against methods that actually sample real trajectories from the environment (like Offline-RLHF and Learning to Rank Real Trajectories), EARS matches or exceeds their data efficiency while saving 100% of the environment interaction costs.

Limitations and Future Work

  • Linearity Assumption: EARS assumes that the final reward function can be represented as a linear combination of the generated features. If a task requires highly non-linear feature interactions, the current formulation may struggle.
  • Human Cognitive Load: While the paper successfully uses an LLM as a preference labeler, it remains an open question whether human stakeholders can easily reason about abstract, potentially non-physical "imagined" trajectories during the active learning phase.
  • Code Generation Dependency: The success of Stage 1 heavily relies on the LLM's ability to output bug-free, executable Python code for the reward features.

Summary updated

Abstract

Enabling human stakeholders to specify reward functions that lead to their desired outcomes is a key challenge in deploying reinforcement learning agents. Preference-based methods such as online RLHF can reduce the burden of manual reward design, but they require repeatedly training policies, sampling trajectories from the real world, and eliciting feedback, making them impractical in settings where environment interaction is computationally expensive or unsafe. We introduce Experience-Free Automonous Reward Specification (EARS), a method for learning reward functions from preferences without environment interaction. Our approach uses a structured LLM-mediated process to construct a small set of expressive reward features from a task description and the environment observation space, then strategically samples imagined trajectories in this feature space and learns feature weights from preferences over the imagined trajectory pairs. We evaluate on three long-horizon domains: pandemic lockdown regulation design, insulin administration for diabetes patients, and autonomous vehicle control on a highway. We compare EARS to baselines that also enable reward specification without environment interaction—namely, methods that directly prompt an LLM to generate a reward function. When learning from either ground-truth preference labels or preferences labeled by a large language model (LLM), EARS designs reward functions that are more aligned with the ground truth reward function that produced the preferences or LLM context than these baselines. These results suggest that preference-based reward specification remains effective without environment sampling, enabling practical reward design in settings where collecting real trajectories is costly or infeasible.
BibTeX
@inproceedings{hatgiskessell2026specifying,
  author = {Stephane Hatgis-Kessell and W. Bradley Knox and Emma Brunskill},
  title = {{Specifying Reward Functions for RL Without Environment Sampling}},
  booktitle = {RLBRew @ RLC},
  year = {2026},
  url = {https://openreview.net/forum?id=xCe2Hh33Et},
}

Loading related content...

Figure