Skip to main content
QUICK REVIEW

[Paper Review] Evaluating Cognitive Maps and Planning in Large Language Models with CogEval

Ida Momennejad, Hosein Hasanbeig|arXiv (Cornell University)|Sep 25, 2023
Topic ModelingComputer Science22 citations
TL;DR

This paper introduces CogEval, a cognitive science–inspired protocol for evaluating cognitive map and planning abilities in LLMs, and systematically applies it across eight models, revealing limited emergent planning and notable failure modes.

ABSTRACT

Recently an influx of studies claim emergent cognitive abilities in large language models (LLMs). Yet, most rely on anecdotes, overlook contamination of training sets, or lack systematic Evaluation involving multiple tasks, control conditions, multiple iterations, and statistical robustness tests. Here we make two major contributions. First, we propose CogEval, a cognitive science-inspired protocol for the systematic evaluation of cognitive capacities in Large Language Models. The CogEval protocol can be followed for the evaluation of various abilities. Second, here we follow CogEval to systematically evaluate cognitive maps and planning ability across eight LLMs (OpenAI GPT-4, GPT-3.5-turbo-175B, davinci-003-175B, Google Bard, Cohere-xlarge-52.4B, Anthropic Claude-1-52B, LLaMA-13B, and Alpaca-7B). We base our task prompts on human experiments, which offer both established construct validity for evaluating planning, and are absent from LLM training sets. We find that, while LLMs show apparent competence in a few planning tasks with simpler structures, systematic evaluation reveals striking failure modes in planning tasks, including hallucinations of invalid trajectories and getting trapped in loops. These findings do not support the idea of emergent out-of-the-box planning ability in LLMs. This could be because LLMs do not understand the latent relational structures underlying planning problems, known as cognitive maps, and fail at unrolling goal-directed trajectories based on the underlying structure. Implications for application and future directions are discussed.

Motivation & Objective

  • Introduce CogEval as a general protocol for robust evaluation of cognitive abilities in LLMs (beyond language proficiency).
  • Operationalize cognitive maps and planning through human-experiment–inspired tasks adapted to prompts, ensuring construct validity.
  • Assess robustness across multiple task structures, domains, and environments with statistical analysis.
  • Compare performance across eight LLMs and across varying temperatures and task conditions.
  • Identify failure modes in planning to inform future development and applications.

Proposed method

  • Propose CogEval with four best practices: define latent ability, ensure construct validity, use multiple tasks and repetitions, and vary task conditions for robustness.
  • Operationalize cognitive maps and planning via prompts inspired by human cognitive experiments, spanning different graph structures and domains.
  • Evaluate 10 LLMs (including GPT-4, GPT-3.5-turbo, Bard, Claude-1, LLaMA, Cohere, Alpaca) across multiple temperatures, with 30 repetitions per prompt for OpenAI models.
  • Apply a logistic regression analysis to model performance as a function of graph structure, domain, condition, LLM, and temperature, including interaction terms.
  • Test the impact of simple Chain of Thought (CoT) prompts (BFS/DFS instructions) on GPT-4 performance in Experiment 2.
  • Analyze failure modes such as edge hallucination, looping trajectories, and difficulty in shortest-path planning, especially in dense community graphs.

Experimental results

Research questions

  • RQ1Do LLMs possess out-of-the-box cognitive map comprehension and planning abilities as assessed by human-experiment–inspired tasks?
  • RQ2How do graph structure, task domain, and planning condition affect LLM performance across models?
  • RQ3Can simple Chain-of-Thought prompts mitigate planning failures in LLMs, particularly GPT-4?
  • RQ4What are the main failure modes when LLMs are challenged with cognitive map–based tasks?
  • RQ5How robust are LLMs’ planning abilities to variations in environment structure and task demands?

Key findings

  • LLMs show apparent competence only on simpler tasks where route memorization suffices.
  • Performance varies significantly with graph structure, domain, and task condition across models.
  • Temperature effects were not robust in Experiment 1, but interactions with temperature mattered in Experiment 2.
  • Chain-of-Thought prompts (BFS/DFS instructions) provide selective improvements for GPT-4 on some community-graph tasks.
  • Common failure modes include edge hallucinations, looping trajectories, and difficulty finding shortest paths in dense graphs.

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.