Elamur Research

ProgPrompt: Generating Situated Robot Task Plans using Large Language Models

Paper · 2022 · Ishika Singh, Valts Blukis, Arsalan Mousavian et al.

Summary

ProgPrompt addresses a gap in using large language models for robot task planning. Existing approaches either rank every possible next step, which breaks down when the action space is combinatorial, or produce free text. That text must then be matched to robot actions and may refer to objects the scene does not contain. The authors instead write the prompt as Python code. It has three parts:

  • an import line that declares the robot's available actions and their parameters,
  • a list of the objects currently in the environment,
  • a few example task functions whose bodies are sequences of action calls.

The LLM completes a new function named after the instruction, and the result is a plan that can be executed directly. Plans include natural-language comments that mark subgoals. They also include assertions that check preconditions and trigger recovery actions when a check fails. Ablations show that both comments and assertion-based feedback improve task success. The method reaches state-of-the-art success rates on VirtualHome household tasks and also runs on a physical robot arm doing tabletop tasks. This shows that familiar code structure can ground LLM output in what a specific robot can actually do.

Key points

  • The prompt contains three parts: an import statement of action primitives (e.g. grab_and_putin, switchon, open), an object list, and example plan functions. GPT-3 then completes the next function.
  • Planning is formalised as a tuple ⟨O, P, A, T, I, G, t⟩. The agent never sees the goal state and receives only a high-level task description t.
  • Inside each plan, comments split the task into subtasks, in the spirit of chain of thought. Assertions such as checking that the agent is close to salmon fall back to a recovery action like find('salmon').
  • Ablations in Tab. I isolate the contribution of comments (COMMENTS column) and of assertion feedback (FEEDBACK column).
  • The paper positions itself against SayCan, Inner Monologue and Socratic models. It reports state-of-the-art results in VirtualHome plus a real-robot tabletop deployment.

Interesting ideas

  • I1. Declaring the allowed actions and objects as a typed code header steers the LLM to emit only items from that inventory, instead of free text that later needs fuzzy matching.
  • I2. Each step carries a precondition check, and a failed check calls a recovery step rather than aborting, so state errors are caught locally and explainably.
  • I3. Short natural-language subgoal comments placed before groups of actions keep generation on track. They also make the plan readable.
  • I4. Ablation columns that switch prompt features on and off one at a time make it clear which parts of a prompt actually help.
  • I5. Separating the world state, the action transitions and a goal that is hidden behind a short description gives a clean formal frame for grounding instructions.

For Mova

How these ideas could serve Mova, our small open language model — its files, stages and tests:

  • I1 (learn): LLM teacher tiers could be prompted with an explicit list of allowed frame labels and VerbNet roles. Their silver output would then map onto Mova's schema without any post-hoc string matching.
  • I2 (world): when the world of a text applies an event (e.g. giving an object), it could first assert the giver holds it. On failure it would log a repair or infer a missing earlier event.
  • I3 (answer): the maths word-problem solver could attach a plain-English step label to each operation. This would give a human-readable trace of the solution for free.
  • I4 (learn): each component of a teacher prompt (examples, schema list, comments) could be removed in turn to measure its effect on agreement with witness parsers.
  • I5 (world): text worlds could be modelled the same way, as objects, properties and state-changing events, so that questions about outcomes become checks against the reached state.

Our summary of the paper, in our own words — not its text. The work belongs to its authors; read it at the links above.

 Institutions

 Fields, topics and concepts

Appears in

Mentioned in articles aboutReading

Cite

Cite as Ishika Singh, Valts Blukis, Arsalan Mousavian, Ankit Goyal, Danfei Xu, Jonathan Tremblay, Dieter Fox, Jesse Thomason and Animesh Garg. 2022. ProgPrompt: Generating Situated Robot Task Plans using Large Language Models. arXiv:2209.11302.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2209.11302 · arXiv 2209.11302

@misc{singh2022progprompt,
  title = {{ProgPrompt: Generating Situated Robot Task Plans using Large Language Models}},
  author = {Ishika Singh, Valts Blukis, Arsalan Mousavian, Ankit Goyal, Danfei Xu, Jonathan Tremblay, Dieter Fox, Jesse Thomason and Animesh Garg},
  year = {2022},
  doi = {10.48550/arxiv.2209.11302},
  eprint = {2209.11302},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2209.11302}
}

References

39 references, from the paper's own bibliography.

  1. W. Huang, F. Xia, T. Xiao, H. Chan, J. Liang, P. Florence, A. Zeng, J. Tompson, I. Mordatch, Y. Chebotar, P. Sermanet, N. Brown, T. Jackson, L. Luu, S. Levine, K. Hausman, and B. Ichter, “Inner monologue: Embodied reasoning through planning with language models,” in arXiv preprint arXiv:2207.05608, 2022. OpenAlex ↗ · Scholar ↗
  2. W. Huang, P. Abbeel, D. Pathak, and I. Mordatch, “Language models as zero-shot planners: Extracting actionable knowledge for embodied agents,” arXiv preprint arXiv:2201.07207, 2022. our card
  3. A. Zeng, M. Attarian, B. Ichter, K. Choromanski, A. Wong, S. Welker, F. Tombari, A. Purohit, M. Ryoo, V. Sindhwani, J. Lee, V. Vanhoucke, and P. Florence, “Socratic models: Composing zero-shot multimodal reasoning with language,” arXiv, 2022. our card
  4. M. Ahn, A. Brohan, N. Brown, Y. Chebotar, O. Cortes, B. David, C. Finn, K. Gopalakrishnan, K. Hausman, A. Herzog, D. Ho, J. Hsu, J. Ibarz, B. Ichter, A. Irpan, E. Jang, R. J. Ruano, K. Jeffrey, S. Jesmonth, N. J. Joshi, R. Julian, D. Kalashnikov, Y. Kuang, K.-H. Lee, S. Levine, Y. Lu, L. Luu, C. Parada, P. Pastor, J. Quiambao, K. Rao, J. Rettinghouse, D. Reyes, P. Sermanet, N. Sievers, C. Tan, A. Toshev, V. Vanhoucke, F. Xia, T. Xiao, P. Xu, S. Xu, and M. Yan, “Do as i can, not as i say: Grounding language in robotic affordances,” 2022. our card
  5. R. E. Fikes and N. J. Nilsson, “Strips: A new approach to the application of theorem proving to problem solving,” in Proceedings of the 2nd International Joint Conference on Artificial Intelligence, ser. IJCAI'71. 1em plus 0.5em minus 0.4em San Francisco, CA, USA: Morgan Kaufmann Publishers Inc., 1971, p. 608–620. our card
  6. C. R. Garrett, T. Lozano-Pérez, and L. P. Kaelbling, “Pddlstream: Integrating symbolic planners and blackbox samplers via optimistic adaptive planning,” Proceedings of the International Conference on Automated Planning and Scheduling, vol. 30, no. 1, pp. 440–448, Jun. 2020. OpenAlex ↗ · Scholar ↗
  7. Y. Jiang, S. Zhang, P. Khandelwal, and P. Stone, “Task planning in robotics: an empirical comparison of pddl-based and asp-based systems,” 2018. OpenAlex ↗ · Scholar ↗
  8. X. Puig, K. Ra, M. Boben, J. Li, T. Wang, S. Fidler, and A. Torralba, “Virtualhome: Simulating household activities via programs,” in 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018, pp. 8494–8502. OpenAlex ↗ · Scholar ↗
  9. M. Shridhar, J. Thomason, D. Gordon, Y. Bisk, W. Han, R. Mottaghi, L. Zettlemoyer, and D. Fox, “ALFRED: A Benchmark for Interpreting Grounded Instructions for Everyday Tasks,” in The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020. our card
  10. J. A. Baier, F. Bacchus, and S. A. McIlraith, “A heuristic search approach to planning with temporally extended preferences,” in Proceedings of the 20th International Joint Conference on Artifical Intelligence, ser. IJCAI'07. 1em plus 0.5em minus 0.4em San Francisco, CA, USA: Morgan Kaufmann Publishers Inc., 2007, p. 1808–1815. OpenAlex ↗ · Scholar ↗
  11. J. Hoffmann, “Ff: The fast-forward planning system,” AI Magazine, vol. 22, no. 3, p. 57, Sep. 2001. OpenAlex ↗ · Scholar ↗
  12. M. Helmert, “The fast downward planning system,” J. Artif. Int. Res., vol. 26, no. 1, p. 191–246, jul 2006. our card
  13. D. Bryce and S. Kambhampati, “A tutorial on planning graph based reachability heuristics,” AI Magazine, vol. 28, no. 1, p. 47, Mar. 2007. OpenAlex ↗ · Scholar ↗
  14. B. Eysenbach, R. R. Salakhutdinov, and S. Levine, “Search on the replay buffer: Bridging planning and reinforcement learning,” in Advances in Neural Information Processing Systems, H. Wallach, H. Larochelle, A. Beygelzimer, F. d Alché-Buc, E. Fox, and R. Garnett, Eds., vol. 32. 1em plus 0.5em minus 0.4em Curran Associates, Inc., 2019. OpenAlex ↗ · Scholar ↗
  15. D. Xu, S. Nair, Y. Zhu, J. Gao, A. Garg, L. Fei-Fei, and S. Savarese, “Neural task programming: Learning to generalize across hierarchical tasks,” in 2018 IEEE International Conference on Robotics and Automation (ICRA), 2018, pp. 3795–3802. OpenAlex ↗ · Scholar ↗
  16. D. Xu, R. Martín-Martín, D.-A. Huang, Y. Zhu, S. Savarese, and L. F. Fei-Fei, “Regression planning networks,” in Advances in Neural Information Processing Systems, H. Wallach, H. Larochelle, A. Beygelzimer, F. d Alché-Buc, E. Fox, and R. Garnett, Eds., vol. 32. 1em plus 0.5em minus 0.4em Curran Associates, Inc., 2019. OpenAlex ↗ · Scholar ↗
  17. T. Silver, R. Chitnis, N. Kumar, W. McClinton, T. Lozano-Perez, L. P. Kaelbling, and J. Tenenbaum, “Inventing relational state and action abstractions for effective and efficient bilevel planning,” in The Multi-disciplinary Conference on Reinforcement Learning and Decision Making (RLDM), 2022. OpenAlex ↗ · Scholar ↗
  18. D. Shah, A. T. Toshev, S. Levine, and brian ichter, “Value function spaces: Skill-centric state abstractions for long-horizon reasoning,” in International Conference on Learning Representations, 2022. OpenAlex ↗ · Scholar ↗
  19. A. Srinivas, A. Jabri, P. Abbeel, S. Levine, and C. Finn, “Universal planning networks: Learning generalizable representations for visuomotor control,” in Proceedings of the 35th International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, J. Dy and A. Krause, Eds., vol. 80. 1em plus 0.5em minus 0.4em PMLR, 10–15 Jul 2018, pp. 4732–4741. OpenAlex ↗ · Scholar ↗
  20. T. Kurutach, A. Tamar, G. Yang, S. J. Russell, and P. Abbeel, “Learning plannable representations with causal infogan,” in Advances in Neural Information Processing Systems, S. Bengio, H. Wallach, H. Larochelle, K. Grauman, N. Cesa-Bianchi, and R. Garnett, Eds., vol. 31. 1em plus 0.5em minus 0.4em Curran Associates, Inc., 2018. OpenAlex ↗ · Scholar ↗
  21. A. Akakzia, C. Colas, P.-Y. Oudeyer, M. CHETOUANI, and O. Sigaud, “Grounding language to autonomously-acquired skills via goal generation,” in International Conference on Learning Representations, 2021. OpenAlex ↗ · Scholar ↗
  22. S. Nair and C. Finn, “Hierarchical foresight: Self-supervised learning of long-horizon tasks via visual subgoal generation,” in International Conference on Learning Representations, 2020. OpenAlex ↗ · Scholar ↗
  23. Y. Jiang, S. S. Gu, K. P. Murphy, and C. Finn, “Language as an abstraction for hierarchical deep reinforcement learning,” in Advances in Neural Information Processing Systems, H. Wallach, H. Larochelle, A. Beygelzimer, F. d Alché-Buc, E. Fox, and R. Garnett, Eds., vol. 32. 1em plus 0.5em minus 0.4em Curran Associates, Inc., 2019. OpenAlex ↗ · Scholar ↗
  24. S. Mirchandani, S. Karamcheti, and D. Sadigh, “Ella: Exploration through learned language abstraction,” in Advances in Neural Information Processing Systems, M. Ranzato, A. Beygelzimer, Y. Dauphin, P. Liang, and J. W. Vaughan, Eds., vol. 34. 1em plus 0.5em minus 0.4em Curran Associates, Inc., 2021, pp. 29 529–29 540. OpenAlex ↗ · Scholar ↗
  25. P. Sharma, A. Torralba, and J. Andreas, “Skill induction and planning with latent language,” in Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 1em plus 0.5em minus 0.4em Dublin, Ireland: Association for Computational Linguistics, May 2022, pp. 1713–1726. our card
  26. Y. Zhu, J. Tremblay, S. Birchfield, and Y. Zhu, “Hierarchical planning for long-horizon manipulation with geometric and symbolic scene graphs,” 2020. OpenAlex ↗ · Scholar ↗
  27. T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. M. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. Litwin, S. Gray, B. Chess, J. Clark, C. Berner, S. McCandlish, A. Radford, I. Sutskever, and D. Amodei, “Language models are few-shot learners,” 2020. our card
  28. M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. d. O. Pinto, J. Kaplan, H. Edwards, Y. Burda, N. Joseph, G. Brockman, A. Ray, R. Puri, G. Krueger, M. Petrov, H. Khlaaf, G. Sastry, P. Mishkin, B. Chan, S. Gray, N. Ryder, M. Pavlov, A. Power, L. Kaiser, M. Bavarian, C. Winter, P. Tillet, F. P. Such, D. Cummings, M. Plappert, F. Chantzis, E. Barnes, A. Herbert-Voss, W. H. Guss, A. Nichol, A. Paino, N. Tezak, J. Tang, I. Babuschkin, S. Balaji, S. Jain, W. Saunders, C. Hesse, A. N. Carr, J. Leike, J. Achiam, V. Misra, E. Morikawa, A. Radford, M. Knight, M. Brundage, M. Murati, K. Mayer, P. Welinder, B. McGrew, D. Amodei, S. McCandlish, I. Sutskever, and W. Zaremba, “Evaluating large language models trained on code,” 2021. our card
  29. T. Luong, H. Pham, and C. D. Manning, “Effective approaches to attention-based neural machine translation,” in Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing. 1em plus 0.5em minus 0.4em Lisbon, Portugal: Association for Computational Linguistics, Sept. 2015, pp. 1412–1421. our card
  30. S. Wiseman, S. Shieber, and A. Rush, “Challenges in data-to-document generation,” in Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing. 1em plus 0.5em minus 0.4em Copenhagen, Denmark: Association for Computational Linguistics, Sept. 2017, pp. 2253–2263. OpenAlex ↗ · Scholar ↗
  31. A. Holtzman, J. Buys, L. Du, M. Forbes, and Y. Choi, “The curious case of neural text degeneration,” in International Conference on Learning Representations, 2020. our card
  32. P. Jansen, “Visually-grounded planning without vision: Language models infer detailed plans from high-level instructions,” in Findings of the Association for Computational Linguistics: EMNLP 2020. 1em plus 0.5em minus 0.4em Online: Association for Computational Linguistics, Nov. 2020, pp. 4412–4417. OpenAlex ↗ · Scholar ↗
  33. S. Li, X. Puig, C. Paxton, Y. Du, C. Wang, L. Fan, T. Chen, D.-A. Huang, E. Akyürek, A. Anandkumar, J. Andreas, I. Mordatch, A. Torralba, and Y. Zhu, “Pre-trained language models for interactive decision-making,” 2022. our card
  34. R. Patel and E. Pavlick, “Mapping language models to grounded conceptual spaces,” in International Conference on Learning Representations, 2022. OpenAlex ↗ · Scholar ↗
  35. P. Liu, W. Yuan, J. Fu, Z. Jiang, H. Hayashi, and G. Neubig, “Pre-train, prompt, and predict: A systematic survey of prompting methods in natural language processing,” 2021. our card
  36. J. Wei, X. Wang, D. Schuurmans, M. Bosma, B. Ichter, F. Xia, E. Chi, Q. Le, and D. Zhou, “Chain of thought prompting elicits reasoning in large language models,” 2022. our card
  37. M. Danielczuk, A. Mousavian, C. Eppner, and D. Fox, “Object rearrangement using learned implicit collision functions,” IEEE International Conference on Robotics and Automation (ICRA), 2021. OpenAlex ↗ · Scholar ↗
  38. M. Sundermeyer, A. Mousavian, R. Triebel, and D. Fox, “Contact-graspnet: Efficient 6-dof grasp generation in cluttered scenes,” in 2021 IEEE International Conference on Robotics and Automation (ICRA), 2021, pp. 13 438–13 444. OpenAlex ↗ · Scholar ↗
  39. X. Gu, T.-Y. Lin, W. Kuo, and Y. Cui, “Open-vocabulary object detection via vision and language knowledge distillation,” in International Conference on Learning Representations, 2022. OpenAlex ↗ · Scholar ↗

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/singh-2022-progprompt-generating-situated-robot-task/