PsyCoT: Psychological Questionnaire as Powerful Chain-of-Thought for Personality Detection

Tao Yang, Tianyuan Shi, Fanqi Wan, Xiaojun Quan, Qifan Wang +2 more
10/31/2023
cs.CL

Official code: TaoYang225/PsyCoT (27 stars, last commit 2023-10-26).

Abstract

Recent advances in large language models (LLMs), such as ChatGPT, have showcased remarkable zero-shot performance across various NLP tasks. However, the potential of LLMs in personality detection, which involves identifying an individual's personality from their written texts, remains largely unexplored. Drawing inspiration from Psychological Questionnaires, which are carefully designed by psychologists to evaluate individual personality traits through a series of targeted items, we argue that these items can be regarded as a collection of well-structured chain-of-thought (CoT) processes. By incorporating these processes, LLMs can enhance their capabilities to make more reasonable inferences on personality from textual input. In light of this, we propose a novel personality detection method, called PsyCoT, which mimics the way individuals complete psychological questionnaires in a multi-turn dialogue manner. In particular, we employ a LLM as an AI assistant with a specialization in text analysis. We prompt the assistant to rate individual items at each turn and leverage the historical rating results to derive a conclusive personality preference. Our experiments demonstrate that PsyCoT significantly improves the performance and robustness of GPT-3.5 in personality detection, achieving an average F1 score improvement of 4.23/10.63 points on two benchmark datasets compared to the standard prompting method. Our code is available at https://github.com/TaoYang225/PsyCoT.

View on arXivView PDF

Code Implementations(1)

TaoYang225/PsyCoTOfficial100%

Source code of EMNLP 2023 accepted paper "PsyCoT: Psychological Questionnaire as Powerful Chain-of-Thought for Personality Detection"

279Jupyter NotebookOct 14, 20232 years ago

Similar Papers

Cite this paper

@article{yang2023psycot,
  title  = {PsyCoT: Psychological Questionnaire as Powerful Chain-of-Thought for Personality Detection},
  author = {Tao Yang and Tianyuan Shi and Fanqi Wan and Xiaojun Quan and Qifan Wang and Bingzhe Wu and Jiaxiang Wu},
  year   = {2023},
  eprint = {2310.20256},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.20256v2}
}

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

Discussion