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.
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(中国科学院计算技术研究所)
FlexDraft: Flexible Speculative Decoding via Attention Tuning and Bonus-Guided Calibration
EPIC Lab, SJTU(上海交通大学EPIC实验室);UESTC;School of Software Engineering, HUST(华中科技大学软件工程学院);Tsinghua University(清华大学);HKUST(GZ)(香港科技大学(广州));Shanghai AI Laboratory(上海人工智能实验室)
DECIDER: A Dual-System Rule-Controllable Decoding Framework for Language Generation
Key Laboratory of Brain Health Intelligent Evaluation and Intervention, Ministry of Education, School of Medical Technology, Bejing Institute of Technology (BIT), China(脑健康智能评估与干预关键实验室,教育部,医学技术学院,北京理工大学(BIT),中国);School of Computer Science and Technology, BIT, China(计算机科学与技术学院,北京理工大学(BIT),中国);Nanjing University of Aeronautics and Astronautics, Nanjing, China(南京航空航天大学,南京,中国)