Learning Contextually-Adaptive Rewards via Calibrated Features

Alexandra Forsey-Smerek, Julie Shah, Andreea BobuarXiv 2025 · DOI

TL;DR

This paper introduces calibrated features to decouple context-dependent feature importance (saliency) from underlying human preferences in robot reward learning. By using targeted "contextual feature queries," the proposed framework learns how environmental context alters feature relevance, achieving a 10x improvement in sample efficiency over standard multi-task baselines while capturing highly personalized human preferences.

What Problem Does This Paper Address?

When robots operate in human environments, the "right" behavior often depends heavily on context. For example, a robot arm should keep a wide berth from a hot stove but can pass freely over it when it is turned off.

Traditional reward learning methods (like Inverse Reinforcement Learning) typically handle this by treating different contexts as entirely separate tasks, or by using massive multi-task datasets to implicitly learn how context affects behavior. However, these approaches entangle two distinct concepts: what the user's high-level trade-offs are (e.g., prioritizing safety over efficiency) and when specific features become relevant (e.g., stove distance only matters when the stove is hot). This entanglement makes reward learning incredibly data-hungry and impractical for individual end-users to personalize.

Methods

The authors propose explicitly separating context-dependent feature saliency from context-invariant preferences using a two-stage framework:

  1. Contextual Effect Learning: The robot learns how context reshapes individual features. Instead of asking users which full trajectory they prefer, the robot presents contextual feature queries. For example: "In which context does the robot better respect stove distance: when the stove is hot or when it is off?"
  2. Reward Learning: Once the features are "calibrated" to account for context, the robot learns the user's high-level trade-offs over these calibrated features using standard preference queries.
Figure 1: We learn representations that capture how context affects reward feature saliency. (Step 1) Contextual queries reveal when context changes feature importance: stove distance is better respected when the stove is off (top), whereas laptop distance is equally respected whether the cup is empty near the laptop or full but far from it (bottom). (Step 2) Calibrated features enable learning contextually adaptive rewards (high rewards in green and low rewards in red).

Calibrated Features

Mathematically, a calibrated feature $\phi^c(s)$ modifies a base feature $\phi(s)$ as a function of the state context $s$. For instance, if the stove is off, the calibrated feature maps all distances to the same safe value, effectively telling the reward function that stove distance currently doesn't matter.

The framework uses the Bradley-Terry model to learn from pairwise human comparisons. Crucially, it incorporates equivalence labels (allowing users to state that two contexts are "equal"), which helps the model identify regions where context changes do not affect feature saliency.

Datasets

The method was evaluated using three simulated tabletop manipulation environments built in PyBullet, featuring a Jaco robot arm with a 23-dimensional continuous state space:

  • Weighted Block: The robot moves a block whose weight varies, affecting how close it should be carried to a table or a laptop.
  • Cup: The robot moves a cup with variable fullness, affecting how strictly it must maintain an upright orientation.
  • Utensil: The robot moves a tool (spatula, spoon, fork, or knife) with variable sharpness near a human, affecting safe distance thresholds.

Evaluation was performed using both simulated human responses (ground-truth mathematical functions) and an in-person user study ($N=12$).

Key Insights and Ideas

  • Decoupling Saliency from Preference: Saliency is often independent of specific user trade-offs. Whether a user prioritizes speed or safety, a cold stove renders stove distance irrelevant. Isolating this relationship makes learning much cleaner.
  • Modularity and Reuse: Because calibrated features are learned individually per feature, they are highly modular. They can be mixed, matched, and composed into entirely new downstream reward functions without needing to retrain the underlying contextual representations.
  • The Power of Equivalence: Allowing users to say "these two scenarios are equivalent for this feature" is vital for learning where context stops mattering, preventing overfitting in continuous spaces.

Key Results

Quantitative Performance

In simulated experiments, the calibrated features method demonstrated massive sample efficiency gains over multi-task baselines (such as JointPref):

  • 10x Fewer Queries: The proposed method achieved equivalent reward accuracy using ten times fewer preference queries than baseline models.
  • Low-Data Regime Dominance: In highly data-constrained scenarios (only 5–10 queries), the method outperformed baselines by up to 15% in reward accuracy.
Qualitative visualization of how base features are reshaped into calibrated features across different contexts.

User Study Validation

The user study ($N=12$) proved that real humans can easily interpret and answer contextual feature queries.

  • On average, users spent just 11.5 minutes answering 100 queries per feature.
  • Subjective Likert ratings and rankings confirmed that models trained with more contextual queries aligned significantly better with actual human intent.
  • The study highlighted a strong need for personalization: users held highly diverse views on context (e.g., some treated spoons and spatulas identically, while others demanded varying safety margins based on exact tool geometry).
Examples of two unique user preferences captured accurately by the learned calibrated features.

Limitations and Future Work

  • Continuous Space Coverage: Randomly sampling pairwise comparisons can occasionally miss narrow, critical regions of a continuous state space, sometimes failing to capture feature irrelevance perfectly. Future work will explore active learning to query users on more informative edge cases.
  • Dependence on Base Features: The framework requires semantically meaningful base features to start with. The authors suggest pairing this method with Large Language Models (LLMs) or Vision-Language Models (VLMs) that can automatically generate base feature code from raw state data.
  • Generalization Across Objects: Currently, a new calibrated feature must be learned for every unique object type. A promising future direction is learning representations that generalize across broader semantic categories (e.g., treating all "fragile" or "sharp" objects similarly).

Summary updated

BibTeX
@misc{forseysmerek2025learning,
  author = {Alexandra Forsey-Smerek and Julie Shah and Andreea Bobu},
  title = {{Learning Contextually-Adaptive Rewards via Calibrated Features}},
  year = {2025},
  eprint = {2506.15012},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.15012},
}
Figure