arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.19160cs.CLcs.AI
收藏

利用大语言模型检测刻板印象评估的语言学指标

Detecting Linguistic Indicators for Stereotype Assessment with Large Language Models

Fraunhofer IAIS(弗劳恩霍夫智能分析与信息系统研究所);Lamarr Germany(德国拉马尔研究所)

Rebekka Görge, Michael Mock, Héctor Allende-Cid

AI总结:

提出基于SCSC框架的语言学指标检测方法,利用大语言模型上下文学习自动评估句子中的刻板印象,并通过评分函数量化其强度,实验验证了模型性能与规模的关系。

摘要:

社会类别和刻板印象嵌入在语言中,并可能将数据偏差引入大语言模型(LLMs)。尽管有防护措施,这些偏差往往持续存在于模型行为中,可能导致输出中的代表性伤害。虽然社会语言学研究为刻板印象的形成提供了有价值的见解,但用于刻板印象检测的NLP方法很少基于这一基础,且往往缺乏客观性、精确性和可解释性。为填补这一空白,在本工作中我们提出了一种新方法,用于检测和量化句子中刻板印象的语言学指标。我们从社会类别与刻板印象沟通(SCSC)框架中推导出语言学指标,这些指标表明语言中强烈的社会类别形成和刻板印象化,并利用它们构建了一个分类方案。为实现自动化,我们使用上下文学习指示不同的LLMs将该方法应用于句子,其中LLM检查语言学属性并为细粒度评估提供基础。基于对不同语言学指标重要性的实证评估,我们学习了一个评分函数,用于衡量刻板印象的语言学指标。我们对刻板印象句子的标注表明,这些指标存在于这些句子中,并解释了刻板印象的强度。在模型性能方面,我们的结果表明,模型在检测和分类用于表示类别的类别标签的语言学指标方面通常表现良好,但有时难以正确评估相关的行为和特征。在提示中使用更多少样本示例显著提高了性能。模型性能随规模增加而提升,Llama-3.3-70B-Instruct和GPT-4取得了可比较的结果,超过了Mixtral-8x7B-Instruct、GPT-4-mini和Llama-3.1-8B-Instruct。

英文摘要:

Social categories and stereotypes are embedded in language and can introduce data bias into Large Language Models (LLMs). Despite safeguards, these biases often persist in model behavior, potentially leading to representational harm in outputs. While sociolinguistic research provides valuable insights into the formation of stereotypes, NLP approaches for stereotype detection rarely draw on this foundation and often lack objectivity, precision, and interpretability. To fill this gap, in this work we propose a new approach that detects and quantifies the linguistic indicators of stereotypes in a sentence. We derive linguistic indicators from the Social Category and Stereotype Communication (SCSC) framework which indicate strong social category formulation and stereotyping in language, and use them to build a categorization scheme. To automate this approach, we instruct different LLMs using in-context learning to apply the approach to a sentence, where the LLM examines the linguistic properties and provides a basis for a fine-grained assessment. Based on an empirical evaluation of the importance of different linguistic indicators, we learn a scoring function that measures the linguistic indicators of a stereotype. Our annotations of stereotyped sentences show that these indicators are present in these sentences and explain the strength of a stereotype. In terms of model performance, our results show that the models generally perform well in detecting and classifying linguistic indicators of category labels used to denote a category, but sometimes struggle to correctly evaluate the associated behaviors and characteristics. Using more few-shot examples within the prompts, significantly improves performance. Model performance increases with size, as Llama-3.3-70B-Instruct and GPT-4 achieve comparable results that surpass those of Mixtral-8x7B-Instruct, GPT-4-mini and Llama-3.1-8B-Instruct.

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

↑