用状态机让大模型随对话动态调整性格,提升交互体验
Dynamic Personality Adaptation in Large Language Models via State Machines
- 用状态机建模性格状态,根据对话上下文动态调整转换概率
- 在医学教育中成功实现性格自适应,帮助用户降低冲突行为
- 轻量级分类器即可精准评分,适合实际部署场景
大型语言模型在复杂交互中难以根据对话变化调节性格表达,限制了其应用效果。本文提出一种与模型无关的动态性格模拟框架,利用状态机表示潜在性格状态,并根据对话上下文动态调整转移概率。系统包含一个模块化连续性格评分管道,可在不依赖特定性格模型、维度或大模型的前提下,沿潜在轴线评估对话质量。这些评分作为动态变量,实时重构系统提示,引导行为一致性。我们在医学教育场景中操作化人际环形模型(IPC),结果表明系统能有效响应用户输入并影响用户行为,助力冲突降级训练。值得注意的是,即使使用轻量级微调分类器,评分精度仍保持相当水平。该研究验证了模块化性格自适应架构在教育、客户服务及人机交互中的可行性。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。