Home Knowledge Base Planning with LLMs

Planning with LLMs involves using large language models to generate action sequences that achieve specified goals — leveraging LLMs' understanding of tasks, common sense, and procedural knowledge to create plans for robots, agents, and automated systems, bridging natural language goal specifications with executable action sequences.

What Is AI Planning?

Why Use LLMs for Planning?

How LLMs Generate Plans

1. Goal Understanding: LLM interprets the natural language goal.

2. Plan Generation: LLM generates a sequence of actions. ``` Goal: "Make a cup of coffee"

LLM-generated plan: 1. Fill kettle with water 2. Boil water 3. Put coffee grounds in filter 4. Pour hot water over grounds 5. Wait for brewing to complete 6. Pour coffee into cup ```

3. Refinement: LLM can refine the plan based on feedback or constraints.

4. Execution: Actions are executed by a robot or system.

LLM Planning Approaches

Example: Household Robot Planning

Goal: "Set the table for dinner"

LLM-generated plan:
1. Navigate to kitchen
2. Open cabinet
3. Grasp plate
4. Place plate on table
5. Repeat steps 2-4 for additional plates
6. Grasp fork from drawer
7. Place fork next to plate
8. Repeat steps 6-7 for additional forks
9. Grasp knife from drawer
10. Place knife next to plate
11. Repeat steps 9-10 for additional knives
12. Grasp glass from cabinet
13. Place glass on table
14. Repeat steps 12-13 for additional glasses

Challenges

LLM + Classical Planning

1. LLM translates natural language goal to formal specification (PDDL). 2. Classical planner finds valid plan. 3. LLM translates plan back to natural language or executable actions.

Example: LLM Translating to PDDL

Natural Language Goal: "Move all blocks from table A to table B"

LLM-generated PDDL:
(define (problem move-blocks)
  (:domain blocks-world)
  (:objects
    block1 block2 block3 - block
    tableA tableB - table)
  (:init
    (on block1 tableA)
    (on block2 tableA)
    (on block3 tableA))
  (:goal
    (and (on block1 tableB)
         (on block2 tableB)
         (on block3 tableB))))

Classical planner generates valid action sequence.

Applications

LLM Planning with Feedback

Example: Replanning

Initial Plan: "Pick up cup from table"
Execution: Robot attempts to grasp cup → fails (cup is too slippery)

LLM Replanning:
"Cup is slippery. Alternative plan:
1. Get paper towel
2. Dry cup
3. Pick up cup with better grip"

Evaluation

LLMs vs. Classical Planning

Benefits

Limitations

Planning with LLMs is an emerging and promising approach — it makes AI planning more accessible and flexible by leveraging natural language understanding and common sense, though it requires careful integration with verification and execution systems to ensure reliability.

planning with llmsai agent

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.