Mind Scramble: Unveiling Large Language Model Psychology Via Typoglycemia

Miao Yu, Junyuan Mao, Guibin Zhang, Jingheng Ye, Junfeng Fang +5 more
10/2/2024
cs.AI

No confident code implementation found for this paper.

Abstract

Research into the external behaviors and internal mechanisms of large language models (LLMs) has shown promise in addressing complex tasks in the physical world. Studies suggest that powerful LLMs, like GPT-4, are beginning to exhibit human-like cognitive abilities, including planning, reasoning, and reflection. In this paper, we introduce a research line and methodology called LLM Psychology, leveraging human psychology experiments to investigate the cognitive behaviors and mechanisms of LLMs. We migrate the Typoglycemia phenomenon from psychology to explore the "mind" of LLMs. Unlike human brains, which rely on context and word patterns to comprehend scrambled text, LLMs use distinct encoding and decoding processes. Through Typoglycemia experiments at the character, word, and sentence levels, we observe: (I) LLMs demonstrate human-like behaviors on a macro scale, such as lower task accuracy and higher token/time consumption; (II) LLMs exhibit varying robustness to scrambled input, making Typoglycemia a benchmark for model evaluation without new datasets; (III) Different task types have varying impacts, with complex logical tasks (e.g., math) being more challenging in scrambled form; (IV) Each LLM has a unique and consistent "cognitive pattern" across tasks, revealing general mechanisms in its psychology process. We provide an in-depth analysis of hidden layers to explain these phenomena, paving the way for future research in LLM Psychology and deeper interpretability.

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{yu2024mind,
  title  = {Mind Scramble: Unveiling Large Language Model Psychology Via Typoglycemia},
  author = {Miao Yu and Junyuan Mao and Guibin Zhang and Jingheng Ye and Junfeng Fang and Aoxiao Zhong and Yang Liu and Yuxuan Liang and Kun Wang and Qingsong Wen},
  year   = {2024},
  eprint = {2410.01677},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.01677v3}
}

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.01677.svg)](https://codeofpaper.com/paper/2410.01677)

Discussion