Skip to main content
QUICK REVIEW

[Paper Review] Integration of Large Language Models within Cognitive Architectures for Autonomous Robots

Miguel Á. González-Santamarta, González-Fernández, Irene|arXiv (Cornell University)|Sep 26, 2023
AI-based Problem Solving and PlanningComputer Science3 citations
TL;DR

This paper proposes integrating quantized Large Language Models (LLMs) into the MERLIN2 cognitive architecture for autonomous robots using the llama_ros ROS 2 tool, enabling LLM-based reasoning in place of traditional PDDL planning. While LLMs improve natural language interaction and flexibility, experiments show PDDL-based planning remains significantly more efficient in terms of time and distance traveled, with LLMs taking 1.5 to 3.2 times longer and covering nearly double the distance in mission scenarios.

ABSTRACT

Symbolic reasoning systems have been used in cognitive architectures to provide inference and planning capabilities. However, defining domains and problems has proven difficult and prone to errors. Moreover, Large Language Models (LLMs) have emerged as tools to process natural language for different tasks. In this paper, we propose the use of LLMs to tackle these problems. This way, this paper proposes the integration of LLMs in the ROS 2-integrated cognitive architecture MERLIN2 for autonomous robots. Specifically, we present the design, development and deployment of how to leverage the reasoning capabilities of LLMs inside the deliberative processes of MERLIN2. As a result, the deliberative system is updated from a PDDL-based planner system to a natural language planning system. This proposal is evaluated quantitatively and qualitatively, measuring the impact of incorporating the LLMs in the cognitive architecture. Results show that a classical approach achieves better performance but the proposed solution provides an enhanced interaction through natural language.

Motivation & Objective

  • To enable the integration of large language models (LLMs) into cognitive architectures for autonomous robots using ROS 2.
  • To develop a lightweight, efficient, and deployable LLM inference tool tailored for embedded robotic systems.
  • To evaluate the impact of replacing PDDL-based planning with LLM-based reasoning in terms of decision-making performance and system efficiency.
  • To explore the feasibility of using LLMs as reasoning engines in real-world robotic missions while addressing challenges like prompt sensitivity and hallucination.
  • To provide a practical, open-source framework (llama_ros) for researchers to integrate quantized LLMs into robotic software stacks.

Proposed method

  • Developed llama_ros, a ROS 2-compatible tool that provides bindings for Ggerganov’s llama.cpp library with GPU support, enabling efficient offline LLM inference.
  • Integrated the LLM into the MERLIN2 cognitive architecture as a replacement for the PDDL-based planning layer, using a chain-of-thought prompting strategy.
  • Employed model quantization (e.g., GGUF format) to reduce computational and memory requirements, enabling deployment on resource-constrained robotic platforms.
  • Used a vector database to store and retrieve world state information, reducing prompt length and improving retrieval efficiency during reasoning.
  • Designed a feedback loop where the LLM checks goal achievement after each action, enabling replanning if the goal is not met.
  • Conducted controlled experiments in simulation using the RB1 robot, comparing LLM-based planning (FI, NEI, NCGI, NENCGSI) against the original PDDL-based MERLIN2 system.

Experimental results

Research questions

  • RQ1Can LLMs effectively replace PDDL-based planning in a cognitive architecture for autonomous robots while maintaining acceptable performance?
  • RQ2What are the quantitative and qualitative trade-offs between LLM-based reasoning and traditional PDDL planning in terms of execution time and path efficiency?
  • RQ3How does prompt engineering and the use of vector databases affect the reliability and efficiency of LLM-based reasoning in robotic decision-making?
  • RQ4To what extent do LLMs suffer from hallucinations during goal verification, and how does this impact system robustness?
  • RQ5Can quantized LLMs be efficiently deployed in real-time robotic systems using ROS 2, and what infrastructure is required to support this?

Key findings

  • The PDDL-based MERLIN2 planner outperformed all LLM-based approaches in both mission scenarios, with execution times 1.5 to 3.2 times faster than LLM variants.
  • In Mission 1, the LLM-based FI approach took 257.763 seconds on average, compared to MERLIN2’s 162.720 seconds, a 1.58× increase in time.
  • In Mission 2, the LLM-based NENCGSI approach took 508.021 seconds on average, while MERLIN2 took only 257.763 seconds, a 1.96× increase.
  • The LLM-based systems covered significantly more distance: on average, 53.100 meters in Mission 1 and 53.701 meters in Mission 2, compared to MERLIN2’s 62.957 and 53.100 meters respectively, indicating less efficient navigation.
  • The NCGI variant (using vector database) had a 1.2× higher execution time than NEI in both missions, indicating that retrieval overhead increases latency.
  • Quantized LLMs were found to be more sensitive to prompt variations than full-precision models, requiring careful prompt engineering for consistent behavior.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.