arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.01891cs.CLcs.AI
收藏

解码时的多人格生成

Multi-Personality Generation of LLMs at Decoding-time

Institute of Computing Technology, Chinese Academy of Sciences University of Chinese Academy of Sciences(中国科学院计算技术研究所 中国科学院大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)

Rongxin Chen, Yunfan Li, Yige Yuan, Bingbing Xu, Huawei Shen

AI总结:

本文提出了一种解码时多人格生成框架,通过块级拒绝采样实现高效多人格生成,实验显示在MBTI和角色扮演任务中性能提升达16%-18%。

摘要:

多人格生成对于大语言模型而言,使同时体现多种个性化属性成为基本挑战。现有的基于重新训练的方法成本高且难以扩展,而解码时的方法往往依赖外部模型或启发式方法,限制了灵活性和鲁棒性。在本文中,我们提出了一种新的多人格生成(MPG)框架,基于解码时的组合范式。它在不依赖稀缺的多维模型或额外训练的情况下,灵活地控制多人格,利用单维模型中的隐含密度比作为"免费午餐",将任务重新表述为从目标策略聚合这些比率进行采样。为了高效实现MPG,我们设计了推测块级拒绝采样(SCR),它以块生成响应,并通过滑动窗口内的估计阈值并行验证。这显著降低了计算开销,同时保持高质量生成。在MBTI性格和角色扮演上的实验展示了MPG的有效性,显示了高达16%-18%的改进。代码和数据可在https://github.com/Libra117/MPG上获得。

英文摘要:

Multi-personality generation for LLMs, enabling simultaneous embodiment of multiple personalization attributes, is a fundamental challenge. Existing retraining-based approaches are costly and poorly scalable, while decoding-time methods often rely on external models or heuristics, limiting flexibility and robustness. In this paper, we propose a novel Multi-Personality Generation (MPG) framework under the decoding-time combination paradigm. It flexibly controls multi-personality without relying on scarce multi-dimensional models or extra training, leveraging implicit density ratios in single-dimensional models as a "free lunch" to reformulate the task as sampling from a target strategy aggregating these ratios. To implement MPG efficiently, we design Speculative Chunk-level based Rejection sampling (SCR), which generates responses in chunks and parallelly validates them via estimated thresholds within a sliding window. This significantly reduces computational overhead while maintaining high-quality generation. Experiments on MBTI personality and Role-Playing demonstrate the effectiveness of MPG, showing improvements up to 16%-18%. Code and data are available at https://github.com/Libra117/MPG .

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑