Dynamic Personality Adaptation in Large Language Models via State Machines

Leon Pielage, Ole Hätscher, Mitja Back, Bernhard Marschall, Benjamin Risse
2/25/2026
cs.CLcs.HCcs.LG

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

Abstract

The inability of Large Language Models (LLMs) to modulate their personality expression in response to evolving dialogue dynamics hinders their performance in complex, interactive contexts. We propose a model-agnostic framework for dynamic personality simulation that employs state machines to represent latent personality states, where transition probabilities are dynamically adapted to the conversational context. Part of our architecture is a modular pipeline for continuous personality scoring that evaluates dialogues along latent axes while remaining agnostic to the specific personality models, their dimensions, transition mechanisms, or LLMs used. These scores function as dynamic state variables that systematically reconfigure the system prompt, steering behavioral alignment throughout the interaction.We evaluate this framework by operationalizing the Interpersonal Circumplex (IPC) in a medical education setting. Results demonstrate that the system successfully adapts its personality state to user inputs, but also influences user behavior, thereby facilitating de-escalation training. Notably, the scoring pipeline maintains comparable precision even when utilizing lightweight, fine-tuned classifiers instead of large-scale LLMs. This work demonstrates the feasibility of modular, personality-adaptive architectures for education, customer support, and broader human-computer interaction.

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. 2 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!

Similar Papers

Cite this paper

@article{pielage2026dynamic,
  title  = {Dynamic Personality Adaptation in Large Language Models via State Machines},
  author = {Leon Pielage and Ole Hätscher and Mitja Back and Bernhard Marschall and Benjamin Risse},
  year   = {2026},
  eprint = {2602.22157},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.22157v1}
}

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

Discussion