基于深度学习方法的有毒评论识别与非预期模型偏差最小化
Determination of toxic comments and unintended model bias minimization using Deep learning approach
AI总结:
本研究针对有毒评论检测任务中模型因数据不平衡产生的非预期身份偏差问题,采用加权损失微调BERT模型,相比传统逻辑回归模型大幅提升了分类准确率,同时实现偏差最小化。
摘要:
在线对话可能含有毒性内容,会涉及威胁、辱骂或骚扰。多年来,学界已提出多种深度学习与机器学习模型用于识别有毒文本评论。但近期研究表明,由于训练数据存在不平衡性,部分模型更易表现出包括性别偏差、身份偏差在内的非预期偏差。本研究旨在通过微调基于注意力机制的模型BERT(Bidirectional Encoder Representation from Transformers,即基于Transformer的双向编码器表征),实现有毒评论检测,并降低与种族、性别、性取向、宗教等身份特征相关的非预期偏差。我们采用加权损失解决数据不平衡问题,并对比了微调BERT模型与传统Logistic Regression(逻辑回归)模型在分类效果和偏差最小化方面的性能。搭载TFIDF向量化器的Logistic Regression模型准确率为57.1%,而微调BERT模型的准确率为89%。相关代码可在https://github.com/zim10/Determine_Toxic_comment_and_identity_bias.git 获取。
英文摘要:
Online conversations can be toxic and subjected to threats, abuse, or harassment. To identify toxic text comments, several deep learning and machine learning models have been proposed throughout the years. However, recent studies demonstrate that because of the imbalances in the training data, some models are more likely to show unintended biases including gender bias and identity bias. In this research, our aim is to detect toxic comment and reduce the unintended bias concerning identity features such as race, gender, sex, religion by fine-tuning an attention based model called BERT(Bidirectional Encoder Representation from Transformers). We apply weighted loss to address the issue of unbalanced data and compare the performance of a fine-tuned BERT model with a traditional Logistic Regression model in terms of classification and bias minimization. The Logistic Regression model with the TFIDF vectorizer achieve 57.1% accuracy, and fine-tuned BERT model's accuracy is 89%. Code is available at https://github.com/zim10/Determine_Toxic_comment_and_identity_bias.git
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。