UPLex: Fine-Grained Personality Control in Large Language Models via Unsupervised Lexical Modulation

Tianlong Li, Wenhao Liu, Muling Wu, Shihan Dou, Zhenghua Wang +4 more
10/25/2023
cs.CL

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Personality is a crucial factor that shapes human communication patterns, thereby regulating the personalities of large language models (LLMs) holds significant potential in enhancing their user experiences. Previous approaches either relied on fine-tuning LLMs on specific corpora or required manually crafted prompts to evoke specific personalities from LLMs. However, the former is inefficient and costly, while the latter cannot precisely manipulate personality traits at a fine-grained level. To address these challenges, we propose UPLex, a method that uses an Unsupervisedly-Built Personalized Lexicon (UPL) during the decoding phase to manipulate LLM's personality traits. UPL can be constructed from a newly built situational judgment test dataset in an unsupervised fashion, and used to modulate the personality expression of LLMs by dynamically altering their predicted probability of upcoming words in a pluggable fashion. Extensive experimentation demonstrates the remarkable effectiveness and pluggability of our method for fine-grained manipulation of LLMs' personalities.

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. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

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

Cite this paper

@article{li2023uplex,
  title  = {UPLex: Fine-Grained Personality Control in Large Language Models via Unsupervised Lexical Modulation},
  author = {Tianlong Li and Wenhao Liu and Muling Wu and Shihan Dou and Zhenghua Wang and Changze Lv and Xiaohua Wang and Xiaoqing Zheng and Xuanjing Huang},
  year   = {2023},
  eprint = {2310.16582},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.16582v3}
}

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

Discussion