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

开发安全且负责任的大语言模型:我们能否在大语言模型中兼顾偏见减少与语言理解?

Developing Safe and Responsible Large Language Model : Can We Balance Bias Reduction and Language Understanding in Large Language Models?

Vector Institute for Artificial Intelligence(人工智能矢量研究院);University of Limerick(利默里克大学);Sheridan College(谢里登学院)

Shaina Raza, Oluwanifemi Bamgbose, Shardul Ghuge, Fatemeh Tavakol, Deepak John Reji, Syed Raza Bashir

AI总结:

本文提出SR_LLM,通过安全微调与定制数据集上的指令微调,在减少生成文本偏见的同时保持语言理解和知识完整性。

摘要:

大语言模型(LLM)推动了文本生成、翻译等各类自然语言处理(NLP)任务的发展。然而,这些模型往往会生成可能延续偏见的文本。现有缓解这些偏见的方法通常会损害知识保留。本研究探讨LLM能否在不牺牲知识或理解能力的情况下生成安全、无偏见的输出。我们提出了安全且负责任的大语言模型(Safe and Responsible Large Language Model,SR_LLM),该模型在经过安全微调的自回归仅解码器LLM之上进行指令微调,以减少生成文本中的偏见。我们构建了一个专门数据集,其中包含不安全示例及其相应的安全改写版本,用于训练SR_LLM识别并纠正带有偏见的文本。在专门数据集和分布外测试集上的实验表明,SR_LLM能够有效减少偏见,同时保持知识完整性。这一表现优于对较小语言模型进行传统微调,以及仅依赖提示技术的基础LLM。研究结果表明,在为去偏见等任务定制的数据集上进行指令微调,是在最大限度减少LLM偏见的同时保留其固有知识与能力的高效策略。代码和数据集可在SR-LLM获取:https://github.com/shainarazavi/Safe-Responsible-LLM。

英文摘要:

Large Language Models (LLMs) have advanced various Natural Language Processing (NLP) tasks, such as text generation and translation, among others. However, these models often generate texts that can perpetuate biases. Existing approaches to mitigate these biases usually compromise knowledge retention. This study explores whether LLMs can produce safe, unbiased outputs without sacrificing knowledge or comprehension. We introduce the Safe and Responsible Large Language Model (\textbf{SR}$_{\text{LLM}}$), which has been instruction fine-tuned atop of a safe fine-tuned auto-regressive decoder-only LLM to reduce biases in generated texts. We developed a specialized dataset with examples of unsafe and corresponding safe variations to train \textbf{SR}$_{\text{LLM}}$ to identify and correct biased text. Experiments on our specialized dataset and out-of-distribution test sets reveal that \textbf{SR}$_{\text{LLM}}$ effectively reduces biases while preserving knowledge integrity. This performance surpasses that of traditional fine-tuning of smaller language models and base LLMs that merely reply on prompting techniques. Our findings demonstrate that instruction fine-tuning on custom datasets tailored for tasks such as debiasing is a highly effective strategy for minimizing bias in LLM while preserving their inherent knowledge and capabilities. The code and dataset are accessible at \href{https://github.com/shainarazavi/Safe-Responsible-LLM}{SR-LLM}

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

↑