[Paper Review] Learning to Reason over Scene Graphs: A Case Study of Finetuning GPT-2 into a Robot Language Model for Grounded Task Planning
This paper proposes fine-tuning GPT-2 as a grounded language model (RobLM) for long-horizon robotic task planning by representing environments as scene graphs and linearizing them into natural language prompts. The method enables the model to generate executable, sequential plans from natural language instructions, achieving strong performance on the ALFRED benchmark, especially when provided with contextually rich descriptions of initial actions.
Long-horizon task planning is essential for the development of intelligent assistive and service robots. In this work, we investigate the applicability of a smaller class of large language models (LLMs), specifically GPT-2, in robotic task planning by learning to decompose tasks into subgoal specifications for a planner to execute sequentially. Our method grounds the input of the LLM on the domain that is represented as a scene graph, enabling it to translate human requests into executable robot plans, thereby learning to reason over long-horizon tasks, as encountered in the ALFRED benchmark. We compare our approach with classical planning and baseline methods to examine the applicability and generalizability of LLM-based planners. Our findings suggest that the knowledge stored in an LLM can be effectively grounded to perform long-horizon task planning, demonstrating the promising potential for the future application of neuro-symbolic planning methods in robotics.
Motivation & Objective
- To investigate the feasibility of using a smaller LLM, specifically GPT-2, for grounded long-horizon task planning in robotics.
- To develop a method that translates natural language task requests into executable robot plans using structured scene graph representations.
- To evaluate the generalizability and performance of LLM-based planners against classical planning methods under computational constraints.
- To explore how contextual grounding enhances plan generation accuracy and adaptability in LLM-based planners.
Proposed method
- The domain is represented as a scene graph encoding objects, their attributes, and spatial-semantic relationships.
- The scene graph is linearized into a natural language description to serve as input for fine-tuning GPT-2.
- A fine-tuned GPT-2 model, named RobLM, generates sequential action plans from natural language instructions.
- The model is trained on the ALFRED benchmark using a combination of task goals and contextually enriched descriptions of initial actions.
- The approach uses a prompt engineering strategy that includes full context (up to 1024 tokens) to improve plan accuracy.
- A novel component, Graph2NL, is introduced to convert structured scene graphs into natural language for model input.
Experimental results
Research questions
- RQ1Can a fine-tuned GPT-2 model generate accurate, executable robot plans when grounded in scene graph representations?
- RQ2How does contextual information (e.g., description of the first action) affect the performance of LLM-based planners?
- RQ3How does the performance of the grounded LLM planner compare to classical planning methods in terms of success rate and generalization?
- RQ4To what extent can LLMs reason over long-horizon tasks using commonsense knowledge stored in their weights?
- RQ5What are the computational trade-offs of using LLMs for real-time robotic planning?
Key findings
- RobLM achieves high accuracy on 'full plan' actions and arguments, especially when provided with a natural language description of the first instruction.
- With context, RobLM's performance approaches that of the classical planning baseline, demonstrating strong adaptability to contextual cues.
- The model's inference speed is significantly slower than classical planners, with only 0.2 iterations per second under full context, due to GPT-2's full vocabulary and internal generation mechanism.
- The method shows that grounding LLMs with structured scene graphs enables effective reasoning over long-horizon tasks, even with smaller models like GPT-2.
- The results indicate that LLMs can store and retrieve commonsense knowledge useful for planning, particularly in partially observable environments.
- Despite limitations in speed and consistency, the approach demonstrates promising potential for neuro-symbolic planning in robotics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.