Unlocking Structured Thinking in Language Models with Cognitive Prompting

Oliver Kramer, Jill Baumann
10/3/2024
cs.CL

No confident code implementation found for this paper.

Abstract

We propose cognitive prompting as a novel approach to guide problem-solving in large language models (LLMs) through structured, human-like cognitive operations, such as goal clarification, decomposition, filtering, abstraction, and pattern recognition. By employing systematic, step-by-step reasoning, cognitive prompting enables LLMs to tackle complex, multi-step tasks more efficiently. We introduce three variants: a deterministic sequence of cognitive operations, a self-adaptive variant in which the LLM dynamically selects the sequence of cognitive operations, and a hybrid variant that uses generated correct solutions as few-shot chain-of-thought prompts. Experiments with LLaMA, Gemma~2, and Qwen models in each two sizes on the arithmetic reasoning benchmark GSM8K demonstrate that cognitive prompting significantly improves performance compared to standard question answering.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kramer2024unlocking,
  title  = {Unlocking Structured Thinking in Language Models with Cognitive Prompting},
  author = {Oliver Kramer and Jill Baumann},
  year   = {2024},
  eprint = {2410.02953},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.02953v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.02953.svg)](https://codeofpaper.com/paper/2410.02953)

Discussion