arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.15708cs.CL
收藏

Persona Switch: 在解码时间混合不同的视角

Persona Switch: Mixing Distinct Perspectives in Decoding Time

Seoul National University(首尔国立大学)

Junseok Kim, Nakyeong Yang, Kyomin Jung

AI总结:

Persona Switch是一种在解码过程中动态结合零样本提示和角色扮演提示优势的新方法,通过比较输出置信度来提升模型性能。

摘要:

角色扮演提示法通过在提示中注入一个角色来引导语言模型的行为,从而提高其零样本推理能力。然而,这种改进在不同任务或实例中是一致的。这种不一致表明,零样本提示和角色扮演提示可能提供互补的优势,而不是其中一个在所有情况下都更优。基于这一见解,我们提出了Persona Switch,一种新的解码方法,该方法动态地结合两种提示策略的优势。我们的方法逐步进行,每一步都通过比较输出的置信度(通过logit gap测量)来选择零样本提示和角色扮演提示中更好的输出。使用广泛使用的LLMs进行的实验表明,Persona Switch在所有情况下都优于竞争性基线,实现了高达5.13%的准确率提升。此外,我们还显示,输出置信度作为选择更可靠输出的有信息度量。

英文摘要:

Role-play prompting is known to steer the behavior of language models by injecting a persona into the prompt, improving their zero-shot reasoning capabilities. However, such improvements are inconsistent across different tasks or instances. This inconsistency suggests that zero-shot and role-play prompting may offer complementary strengths rather than one being universally superior. Building on this insight, we propose Persona Switch, a novel decoding method that dynamically combines the benefits of both prompting strategies. Our method proceeds step-by-step, selecting the better output between zero-shot and role-play prompting at each step by comparing their output confidence, as measured by the logit gap. Experiments with widely-used LLMs demonstrate that Persona Switch consistently outperforms competitive baselines, achieving up to 5.13% accuracy improvement. Furthermore, we show that output confidence serves as an informative measure for selecting the more reliable output.

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

↑