Flexible Language-Guided Representation Editing for Adaptive Robot Behavior

1MIT CSAIL 2New York University
ArXiv Code Video
Conference on Robot Learning (CoRL) 2026



TBD This website is still a work in progress. Please check back closer to CORL 2026 for the updated site. Thank you for your interest!

Abstract


Trajectory demonstrations show robots how to behave but not why, leaving them to guess which features of the task actually matter. Incorrect guesses produce misaligned internal representations and lead to incorrect robot behaviors. Because task features are often semantically defined, we argue that natural language is better suited for specifying features rather than relying on demonstrations. Although existing representation editing methods have proposed using language to specify new features, only allowing additive edits produces feature sets that are often over-specified or too narrowly scoped, especially in sequential editing tasks. We propose the Feature Editing Pipeline (FLEX), which uses language models to iteratively refine a robot's internal representation of task features from natural language corrections via three complementary operations: Add missing features, Generalize existing specific features, and Mask irrelevant features. We evaluate FLEX on 2D navigation scenarios, 7DoF Franka tabletop manipulation tasks, and a real-world study using naturalistic human language corrections and real-robot demonstrations. Comparisons against single-operation and unscaffolded baselines show that all three operations are necessary in interactive scenarios, and that FLEX achieves consistently higher normalized reward compared to other feature editing approaches while maintaining compact, transferable representations.


Method: FLEX

FLEX separates feature specification from reward optimization. Language corrections specify which features matter, and demonstrations then set how much each feature matters. The robot models reward as a linear combination of features, \( R_\theta(\tau) = \theta^\top \Phi(\tau) \), and learns the weights \( \theta \) from demonstrations with maximum-entropy IRL.

At each iteration \( k \), the robot executes its best trajectory under its current feature set \( \Phi^k \). The human compares it to the behavior they wanted and gives a language correction \( \ell^k \). A language model approximates the updated feature set, \( \Phi^{k+1} \approx f_{\text{LM}}(\Phi^k, \ell^k) \), by applying three operations in sequence:

  1. ADD proposes a new feature and generates code to compute it if the current set does not explain the correction, so that \( \Phi' \supseteq \Phi \).
  2. GENERALIZE extracts the higher-level intent \( \omega \) behind the correction and broadens features to match (e.g., "laptop" → "electronic devices"), keeping \( |\Phi'| = |\Phi| \).
  3. MASK queries the LM once per feature to estimate a relevance score \( m_i \in \{0, 1\} \) and drops irrelevant features, so that \( \Phi' \subseteq \Phi \).

The order ADD → GENERALIZE → MASK reflects dependencies between the operations: new features are fully processed first, and masking decisions are made on features' final, generalized forms.

Experiments

We evaluate FLEX in a 2D Navigation domain and a 7DoF Franka tabletop manipulation domain, using GPT-4o as the language model. The main metric is normalized reward \( \hat{R} \) (1 = optimal behavior, 0 = worst case). We compare against ALGAE (add-only), Mask-From-Exhaustive (MFE, mask-only), and Unscaffolded (USF, a single LM query with no operation decomposition).

Simulation domains: a 9x9 2D navigation grid (KitchenWorld and LavaLand variants) and a 7DoF Franka tabletop manipulation environment with several object variants.
(A) 2D Navigation: a robot moves across a 9x9 grid (KitchenWorld, LavaLand) while avoiding obstacles
(B) 7DoF Franka Tabletop Manipulation: a robot arm carries an object (coffee, a lit candle, or a bowling ball)

RQ1: Isolation of FLEX's Components (2D Navigation)

We build seven scenarios in two variants, KitchenWorld and LavaLand. Each tests a different combination of ADD, GENERALIZE, and MASK. FLEX achieves the highest normalized reward in all seven. The single-operation baselines do well only on the edit they were designed for and degrade substantially when GENERALIZE is needed. USF is inconsistent: 0.64 on the simple ADD-only scenario but 0.99 on ADD+MASK.

MethodAddGen.MaskAdd+Gen.Add+MaskMask+Gen.All Three
ALGAE1.00.59.95.77.59.63.69
MFE.95.701.00.75.43.67.83
USF.64.72.90.80.99.78.78
FLEX (Ours)1.00.911.001.001.001.00.99
FLEX achieves the highest average normalized reward across all seven 2D Navigation scenarios (see paper for SEs)

RQ2: Sequential Corrections in Continuous Control (7DoF Franka)

Users rarely correct a robot just once, so we build five-stage correction sequences in three variants (CoffeeRobot, CandleRobot, BallRobot). Each stage starts from the representation produced by the previous one, and the objects change between stages to expose new misalignments. All three operations become necessary at some point in the sequence. FLEX learns the user's reward after one or two corrections and keeps high performance on earlier and later stages. The baselines need more corrections and degrade as they accumulate spurious features, fail to re-abstract earlier features, and overfit to the stage they were trained on.

Example 5-stage, simulated 7DoF Franka sequence, where objects change between stages to expose new misalignments and make each operation necessary.
Over a 5-stage correction sequence, each stage's feature updates apply to the next stage and new object configurations expose new misalignments
Simulation results for the 7DoF Franka sequences (with simulated human language and demonstrations).
FLEX sustains high normalized reward across all five stages, while baselines degrade as corrections accumulate

RQ3: Real Corrections and Demonstrations (User Study)

We ran a within-subjects study (N = 12) where participants gave typed corrections across three five-stage blocks, one each for FLEX, ALGAE, and MFE. Participants viewed robot behavior in simulation for safety, since some baselines produced erratic arm motions. We then ran offline learning with participants' real corrections and expert demonstrations collected on a physical Franka. FLEX learns the user's reward by the end of the sequence, while baselines degrade as spurious features accumulate (Fig. 5). Participants rated FLEX highest on all five Likert dimensions. It was significantly higher than ALGAE on task performance (p = .035), intent understanding (p = .006), and robustness to unintended consequences (p = .047). It was also significantly higher than MFE on intent understanding (p = .031), and marginally higher on robustness (p = .074). Differences in ease of use and collaborativity were not significant.

User study interface example
Participants can replay the goal and current trajectories, view the robot from different angles, and type their language corrections
Task performance results for the 7DoF Franka sequences (with real human corrections and demonstrations collected on a real robot)
With real human corrections and demonstrations, FLEX learns the user's preference quickly and maintains its high performance afterward, while baselines accumulate spurious features
User's Likert scale responses to robot's task performance, intent understanding, robustness to unintended consequences, ease of use, and collaborativity
Participants rated FLEX highest on all five dimensions, significantly above ALGAE and MFE on three dimensions

BibTeX

@inproceedings{lee2026flex,
  title     = {Flexible Language-Guided Representation Editing for Adaptive Robot Behavior},
  author    = {Lee, Audrey and Dennler, Nathaniel and Sucholutsky, Ilia and Bobu, Andreea},
  booktitle = {Conference on Robot Learning (CoRL)},
  year      = {2026},
}