NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Transformers Are Adaptable Task Planners

Vidhi Jain, Yixin Lin, Eric Undersander, Yonatan Bisk, Akshara Rai

Abstract

Every home is different, and every person likes things done in their particular way. Therefore, home robots of the future need to both reason about the sequential nature of day-to-day tasks and generalize to user's preferences. To this end, we propose a Transformer Task Planner (TTP) that learns high-level actions from demonstrations by leveraging object attribute-based representations. TTP can be pre-trained on multiple preferences and shows generalization to unseen preferences using a single demonstration as a prompt in a simulated dishwasher loading task. Further, we demonstrate real-world dish rearrangement using TTP with a Franka Panda robotic arm, prompted using a single human demonstration.

The Challenge of Personalized Robotics

Every household is unique, and everyone has their own "right way" of doing chores. For a home robot, this presents a dual challenge: it must understand the sequential logic of a task (e.g., you must open the dishwasher before putting a plate in) and the user's preference (e.g., "I like mugs on the top rack and plates on the bottom").

Traditional symbolic task planning is often too rigid and difficult to scale for every possible home configuration. Conversely, standard Reinforcement Learning (RL) typically struggles with "long-horizon" tasks—those requiring many steps to complete—and often fails to adapt to new styles of execution without extensive retraining. The researchers behind TTP asked: Can we use the sequence-modeling power of Transformers to create a planner that is both logically sound and personally adaptable?

The Transformer Task Planner (TTP) Architecture

The TTP utilizes a "Prompt-Situation" architecture to bridge the gap between general logic and specific preferences:

  1. Object-Centric Representation: Instead of processing raw pixels, the model views the world as a set of "instances" (objects and potential placement locations). Each instance is encoded as a token containing its 3D pose, category (e.g., bowl, cup), and a timestep.
  2. The Prompt Encoder: This component takes a single demonstration (the "prompt") and passes it through a Transformer encoder and a Slot Attention layer. This compresses the demonstration into a "preference embedding" that captures the style of the task.
  3. The Situation Decoder: This is a Transformer decoder conditioned on the preference embedding. It analyzes the current environment (the "situation") and predicts the next best "pick" and "place" action.
  4. Temporal Context: By including specific action tokens to demarcate state changes, the model maintains a temporal history, allowing it to reason about completed steps and remaining requirements.

Experimental Validation

Evaluation was conducted in both high-fidelity simulation (Replica Synthetic Apartment) and on real-world hardware. In simulation, TTP was tested on a dishwasher-loading task with 12 distinct preferences. In the real world, a Franka Panda robotic arm was tasked with sorting dishes into drawers based on human prompts.

Figure 4: The TTP system uses a single demonstration (Prompt) to infer user preferences for rack placement, then executes the task (1-8) in a new environment.

Key Results

  • Superior Adherence: TTP significantly outperformed Graph Neural Network (GNN) baselines. In "Spatial Preference Adherence" (SPA)—a measure of how well objects ended up in the preferred locations—TTP scored 0.62 compared to the GNN's 0.34.
  • Generalization: TTP successfully generalized to unseen preferences (scoring 0.54 SPA) using only a single prompt demonstration.
  • Real-World Success: On a physical Franka arm, the model successfully placed all objects in the correct order in its first attempt, proving the architecture's viability outside of simulation.
  • Ablation Findings: Researchers found that object pose was the most critical attribute for success, followed by category. Performance improved as the number of unique preferences in the training set increased, suggesting the model learns a general "meta-logic" for task planning.

Conclusion and Future Work

TTP demonstrates that Transformers are excellent at capturing the "grammar" of physical tasks. By treating preferences as latent context extracted from a prompt, robots can infer underlying rules and apply them to new scenes with different object counts and positions.

Future work aims to address current limitations, such as sensitivity to perception errors (misclassifying objects) and performance dips when object counts vary significantly from training data. Additionally, the researchers suggest that while demonstrations are powerful, integrating natural language interfaces would provide an even more intuitive way for users to communicate preferences to home robots.

Summary updated

BibTeX
@inproceedings{jain2022transformers,
  author = {Vidhi Jain and Yixin Lin and Eric Undersander and Yonatan Bisk and Akshara Rai},
  title = {{Transformers Are Adaptable Task Planners}},
  booktitle = {Conference on Robot Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=Eal_lL08v_l},
}
Figure