Research
Flexible Language-Guided Representation Editing for Adaptive Robot Behavior
Trajectory demonstrations show a robot how to move but not which properties of the scene actually matter to the person, so the robot must guess — and when it guesses wrong, its internal…

- arXiv
- 2610.28893 · accepted · CORL
- Published
- 2026-10-20
- Authors
- Audrey Lee, Nathaniel Dennler, Ilia Sucholutsky, Andreea Bobu
In plain words
Trajectory demonstrations show a robot how to move but not which properties of the scene actually matter to the person, so the robot must guess — and when it guesses wrong, its internal representation is misaligned with the human's and it behaves incorrectly.
AI summary
Overview
Research area: Robot reward learning and representation alignment — specifically, using natural language corrections to edit the set of features a robot uses to represent a task, combined with demonstration-based reward optimization.
Technical level: Advanced. The paper assumes familiarity with Markov decision processes, linear reward models over state features, maximum-entropy inverse reinforcement learning, and Bayesian inference.
Scope: The paper introduces Flex, a pipeline in which a language model interprets a user's natural language correction and applies three operations — Add, Generalize, and Mask — to iteratively refine a robot's feature set, evaluated in 2D navigation, 7DoF Franka tabletop simulation, and a 12-participant user study.
What This Paper Is About
Trajectory demonstrations show a robot how to move but not which properties of the scene actually matter to the person, so the robot must guess — and when it guesses wrong, its internal representation is misaligned with the human's and it behaves incorrectly. Because task features are often semantic (avoid electronics, stay near the table), the authors argue language is the right signal for specifying which features matter, while demonstrations remain the right signal for learning how much they matter. Flex is their method for using iterative natural language corrections to add missing features, generalize overly specific ones, and remove irrelevant ones.
Key Contributions
- A unified three-operation editing framework. Flex combines Add (introduce a missing feature), Generalize (raise an existing feature to a higher level of abstraction), and Mask (remove irrelevant features) in a fixed order — Add → Generalize → Mask — whereas prior work supported only one edit type per system (adding, removing, or generalizing).
- A formulation of feature specification as inference from language. The authors extend the joint feature-and-reward estimation problem so that the refined feature set is conditioned on a language correction rather than demonstrations alone, and approximate the resulting posterior directly with a language model.
- Operation-level scaffolding as a design principle. The paper isolates each operation and every pairwise combination, showing that scaffolding the edit into explicit operations outperforms both single-operation restrictions and an unstructured "let the LM rewrite the whole feature set" baseline.
- Simulated and human-subject validation. Evaluation spans seven 2D navigation scenarios, five-stage sequential correction sequences in three 7DoF Franka tabletop variants, and an IRB-approved within-subjects study with N=12 participants giving typed natural language corrections, plus offline learning with real demonstrations collected on the physical Franka.
Main Findings
- All three operations are necessary. In Table 1 (seven 2D navigation scenarios, mean normalized reward ± SE), Flex scored 1.00 ± .00 on Add Only, .91 ± .03 on Generalize Only, 1.00 ± .00 on Mask Only, 1.00 ± .00 on Add+Generalize, 1.00 ± .00 on Add+Mask, 1.00 ± .01 on Mask+Generalize, and .99 ± .01 on All Three — the highest of any method in all seven.
- Single-operation baselines collapse outside their specialty. ALGAE scored 1.00 ± .00 on Add Only but .59 ± .02 on Generalize Only and .59 ± .02 on Add+Mask. MFE scored 1.00 ± .00 on Mask Only but .43 ± .01 on Add+Mask. Degradation is most severe where Generalize is required.
- Unstructured LM editing is inconsistent. The Unscaffolded (USF) baseline ranged from .64 ± .06 on Add Only — the simplest scenario — to .99 ± .01 on Add+Mask, a spread the authors attribute to the absence of operation-level scaffolding.
- Flex handles sequential, stacked corrections. Across five-stage correction sequences in the CoffeeRobot, CandleRobot, and BallRobot Franka variants, Flex learns the user's ground-truth reward after one or two corrections and maintains performance across all evaluation stages, while baselines require additional corrections and degrade as stages accumulate.
- Real users preferred Flex. With N=12 participants, Flex was rated significantly higher than ALGAE on task performance (p=.035), intent understanding (p=.006), and robustness to unintended consequences (p=.047), and significantly higher than MFE on intent understanding (p=.031), with a marginal advantage on robustness (p=.074). Flex also received the highest ratings on ease of use and collaborativity, but those differences were not significant.
- Simulated corrections transfer to hardware. Offline learning using participants' real corrections combined with expert demonstrations collected on the physical Franka showed Flex learning the user's reward by the end of the sequence.
Methodology in Plain English
The robot represents a trajectory's reward as a weighted sum of features — computable numbers like distance to an object — so the reward is a weighted tradeoff across those features. Standard reward learning assumes the feature list is correct and only fits the weights; Flex instead treats the feature list itself as something to be repaired over time.
At each round the robot shows the trajectory it currently thinks is best. The human compares it to what they actually wanted and types a correction. A language model then applies up to three edits:
- Add asks the model twice — once to judge whether the current features already explain the correction (a yes/no sufficiency score) and propose a new feature name, and once to write code that computes that feature. If the existing set is sufficient, nothing is added.
- Generalize first zero-shot prompts the model to extract the higher-level intent behind the correction, then asks, feature by feature, whether that feature should be rewritten at a broader level (for example, distance to a laptop becoming distance to electronic devices). It replaces features without changing how many there are.
- Mask queries the model once per feature for a yes/no relevance judgment and drops the ones marked irrelevant.
The order matters: Add runs first so new features get processed, Generalize runs next, and Mask runs last so removals are decided on features' final forms. Once the feature set is updated, the weights are re-estimated from demonstrations using a maximum-entropy/Boltzmann model of a noisily rational human, and the robot replans.
The evaluations randomize start, goal, and object positions across five seeds and report normalized reward, R̂ = (R − R_worst)/(R_best − R_worst), where 1 is optimal and 0 is worst-case. GPT-4o is used as the language model in all experiments.
Why This Matters
Impact on research. The paper reframes representation misalignment as a three-way failure mode — incomplete, over-specified, or wrongly abstracted feature sets — and shows that separate prior fixes for each (adding, masking, generalizing) are individually insufficient. It also gives evidence for a division of labor between feedback modalities: language for specifying what to represent, demonstrations for how much it matters. The component-isolation table and the stacked-correction protocol give the field a cleaner benchmark design than single-edit comparisons.
Real-world applications:
- Personal and service robots in cluttered homes, where "don't spill coffee on my laptop" implies avoiding electronics generally, not one specific object.
- Warehouse or lab automation where the set of fragile or hazardous items changes as the environment is reconfigured.
- Assistive robotics, where a user's preferences are idiosyncratic and must be corrected conversationally rather than through many demonstrations.
- Any deployment where a non-expert must correct a robot on the fly and new objects appear after deployment.
Industry relevance. The approach reduces the demonstration burden and lets deployed systems be corrected in natural language, which is cheaper than collecting new demonstration datasets per user and per environment change. Because the design is agnostic to the underlying reward-learning algorithm, it can be layered onto existing preference-learning stacks, though it does require a language model in the loop and generated code to compute each feature.
Future Directions
- Extend beyond quasi-static rigid objects. The authors note Flex targets quasi-static manipulation where features are naturally expressible in language, and that dynamic tasks or deformable objects may need modalities beyond language.
- Personalize the language model's common-sense priors. Flex handles widely held preferences well but breaks down for personal or counterintuitive ones, motivating personalized user models.
- Handle corrections that encode weights as well as features. Utterances like "stay even further away from the laptop" mix representation and preference; Flex currently assumes the correction is conditionally independent of the reward weights and ignores that component.
- Run closed-loop studies on physical hardware. The user study collected closed-loop feedback in simulation (for safety, since some baselines produced erratic arm motions) with hardware checked offline; the authors call for a full closed-loop study on a real robot.
Target Audience
Robotics and machine learning researchers working on reward learning, inverse reinforcement learning, and language-conditioned control; HRI researchers interested in how non-expert users correct robots; and practitioners building deployed robots that must be adapted by end users after shipping. Readers without a background in MDPs and maximum-entropy reward learning will find the formal sections demanding, though the three-operation framing and the user-study results are accessible on their own.
Authors’ 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…
The full abstract on arXivRelated papers
- Language-Guided Terrain-Adaptive Neural MPC for Autonomous Traversal of Articulated Tracked Robots 2026-09-11 · cs.RO · Key terms of the title in common
- One Scan is Enough: Demonstration-Free Adaptation for Language-Guided Navigation 2026-10-24 · cs.RO · Key terms of the title in common
- SPEAR: Selective Preference Elicitation with Adaptive Rewards for VLM-Guided Robotic Manipulation 2026-10-15 · cs.RO · Key terms of the title in common
- Asking Smarter Questions: Targeted Active Preference Learning for Underspecified Rewards 2026-10-15 · cs.RO · Also by Andreea Bobu
- When, Where, and What to Correct: Human-Guided Adaptive Residual Correction for Robot Policies 2026-10-27 · cs.RO · Key terms of the title in common