Skip to main content
QUICK REVIEW

[论文解读] When "A Helpful Assistant" Is Not Really Helpful: Personas in System Prompts Do Not Improve Performances of Large Language Models

Mingqian Zheng, Jiaxin Pei|arXiv (Cornell University)|Nov 16, 2023
Topic ModelingComputer Science被引用 13
一句话总结

该研究系统性地评估了跨三个开源大语言模型在2457道MMLU题目上的系统提示中的162个社会角色,发现人际关系和性别中立的角色通常能提升性能,但预测最佳角色具有挑战性。

ABSTRACT

Prompting serves as the major way humans interact with Large Language Models (LLM). Commercial AI systems commonly define the role of the LLM in system prompts. For example, ChatGPT uses ``You are a helpful assistant'' as part of its default system prompt. Despite current practices of adding personas to system prompts, it remains unclear how different personas affect a model's performance on objective tasks. In this study, we present a systematic evaluation of personas in system prompts. We curate a list of 162 roles covering 6 types of interpersonal relationships and 8 domains of expertise. Through extensive analysis of 4 popular families of LLMs and 2,410 factual questions, we demonstrate that adding personas in system prompts does not improve model performance across a range of questions compared to the control setting where no persona is added. Nevertheless, further analysis suggests that the gender, type, and domain of the persona can all influence the resulting prediction accuracies. We further experimented with a list of persona search strategies and found that, while aggregating results from the best persona for each question significantly improves prediction accuracy, automatically identifying the best persona is challenging, with predictions often performing no better than random selection. Overall, our findings suggest that while adding a persona may lead to performance gains in certain settings, the effect of each persona can be largely random. Code and data are available at https://github.com/Jiaxin-Pei/Prompting-with-Social-Roles.

研究动机与目标

  • 评估在系统提示中添加社会角色是否会影响多模型多任务下的LLM性能。
  • 识别哪些类别和具体角色能带来最大性能提升。
  • 研究解释角色效应的因素(领域、性别、相似性、困惑度)。
  • 探索自动策略以选择或预测有效的提示角色。

提出的方法

  • 整理一组包含6种人际关系类型和8种职业的162个社会角色。
  • 在2457道MMLU题目上评估3个开源指令微调LLM(FLAN-T5-XXL、LLaMA-2-7b-chat、OPT-iml-max-1.3B)。
  • 设计六种提示模板(角色、受众、人际、及其变体),有无角色离散化;包含带有Imagine的释义以作为鲁棒性检查。
  • 按类别、域内与域外映射、以及性别角色分析角色效应。
  • 计算单词频率、提示-问题相似性、以及提示困惑度的相关性作为潜在机制。
  • 测试若干自动角色搜索策略(随机、最佳角色、基于相似性、领域分类器、角色分类器、自选)以寻找最佳提示角色。
Figure 1: Our overall research question: does adding social roles in prompts affect LLMs’ performance?
Figure 1: Our overall research question: does adding social roles in prompts affect LLMs’ performance?

实验结果

研究问题

  • RQ1在不同模型和问题上,在提示中加入社会角色是否会影响LLM性能?
  • RQ2哪些类型或具体角色会带来更高的性能,并且这些效应在不同模型和数据集上的一致性如何?
  • RQ3哪些机制(领域对齐、性别、相似性、困惑度)可以解释社会角色对性能的影响?
  • RQ4自动策略能否有效识别出最佳的提示角色?

主要发现

  • 与对照提示相比,带有社会角色的提示显著提升性能。
  • 人际角色和性别中立的角色在多个模型和数据集上往往获得更高的性能。
  • 域内与域外的角色对齐没有普遍的优势;效应取决于数据集与问题。
  • 受众提示(指定受众)的总体表现通常优于角色提示和人际提示。
  • 角色效应与词频、提示-问题相似性、以及提示困惑度之间显示出弱到中等的相关性;没有单一因素能完全解释收益。
  • 自动角色搜索策略可以胜过基线并接近最佳角色的表现,但在每个问题上可靠地预测最佳角色仍具有挑战性。
Figure 2: Overall model performance when being prompted with different social roles (e.g. “You are a lawyer.”) for FLAN-T5-XXL and LLAMA2-7B-Chat. Tested on 2457 MMLU questions. Best-performing roles are highlighted in red. We also highlight “helpful assistant” as it is commonly used in commercial A
Figure 2: Overall model performance when being prompted with different social roles (e.g. “You are a lawyer.”) for FLAN-T5-XXL and LLAMA2-7B-Chat. Tested on 2457 MMLU questions. Best-performing roles are highlighted in red. We also highlight “helpful assistant” as it is commonly used in commercial A

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。