Skip to main content
QUICK REVIEW

[论文解读] Evaluating Cognitive Maps and Planning in Large Language Models with CogEval

Ida Momennejad, Hosein Hasanbeig|arXiv (Cornell University)|Sep 25, 2023
Topic ModelingComputer Science被引用 22
一句话总结

本文提出 CogEval,一种受认知科学启发的用于评估大语言模型(LLM)的认知地图与规划能力的协议,并在八个模型上进行系统性应用,揭示有限的涌现式规划以及显著的失败模式。

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.

研究动机与目标

  • 将 CogEval 作为一种用于对 LLM 的认知能力进行鲁棒评估的一般性协议(不仅限于语言能力)。
  • 通过受人类实验启发的任务并适配提示,将认知地图与规划操作化,以确保构念效度。
  • 通过统计分析评估跨多种任务结构、领域和环境的鲁棒性。
  • 比较八种 LLM 之间以及在不同温度和任务条件下的表现。
  • 识别规划过程中的失败模式,以指导未来开发与应用。

提出的方法

  • 提出 CogEval 的四条最佳实践:定义潜在能力、确保构念效度、使用多任务与重复以及改变任务条件以提高鲁棒性。
  • 通过受人类认知实验启发的提示,将认知地图与规划操作化,涵盖不同的图结构与领域。
  • 在多种温度下评估 10 种 LLM(包括 GPT-4、GPT-3.5-turbo、Bard、Claude-1、LLaMA、Cohere、Alpaca),OpenAI 模型对每个提示进行 30 次重复。
  • 应用逻辑回归分析,以图结构、领域、条件、LLM 和温度为自变量(含交互项)来建模性能。
  • 在实验 2 中测试简单的 Chain of Thought (CoT) 提示(BFS/DFS 指令)对 GPT-4 性能的影响。
  • 分析失败模式,如边缘幻觉、循环轨迹,以及在密集社区图中寻找最短路径的困难,尤其是在密集社区图中。

实验结果

研究问题

  • RQ1LLMs 是否具备直接就能理解的认知地图理解与规划能力,如通过受人类实验启发的任务所评估?
  • RQ2图结构、任务领域和规划条件如何影响跨模型的 LLM 表现?
  • RQ3简单的 Chain-of-Thought 提示是否可缓解 LLM 的规划失败,尤其是 GPT-4?
  • RQ4当 LLM 面临以认知地图为基础的任务时,主要的失败模式是什么?
  • RQ5LLMs 的规划能力对环境结构和任务需求变化的鲁棒性如何?

主要发现

  • LLMs 仅在需要路线记忆就足够的简单任务上表现出明显的能力。
  • 在不同模型中,表现随图结构、领域和任务条件显著变化。
  • Experiment 1 中温度效应并不鲁棒,但在 Experiment 2 中温度的交互效应具有重要意义。
  • Chain-of-Thought 提示(BFS/DFS 指令)在某些社区图任务中为 GPT-4 提供了有选择性的改进。
  • 常见的失败模式包括边缘幻觉、循环轨迹,以及在密集图中难以找到最短路径。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。