使用BERT对开放式问题进行多标签分类
Multi-label classification of open-ended questions with BERT
AI总结:
本文研究德语社会科学调查中开放式问题的多标签分类,发现BERT相比传统算法具有更低的0/1损失,且仅需单一模型即可实现接近全自动的分类。
摘要:
调查中的开放式问题很有价值,因为它们不限制受访者的回答,从而避免了偏差。然而,开放式问题的答案是文本数据,更难分析。传统上,答案按照编码手册中的规定进行手动分类。自动化编码的大部分努力都集中在较简单的单标签预测问题上,即将答案分类为单个代码。然而,需要多标签分类(即分配多个代码)的开放式问题频繁出现。本文重点关注社会科学调查中开放式调查问题文本答案的多标签分类。我们在德国社会科学调查GLES Panel(N=17,584,55个标签)中,评估了基于Transformer的架构BERT在德语中的性能,并与传统的多标签算法(Binary Relevance、Label Powerset、ECC)进行了比较。我们发现,使用BERT进行分类(强制至少一个标签)在所考虑的方法中具有最小的0/1损失(13.1%)(其他方法为18.9%-21.6%)。正如预期的那样,正确预测对应于单个标签的答案文本(7.1%损失)比对应于多个标签的答案文本(约50%损失)要容易得多。因为BERT仅对1.5%的答案预测为零个标签,所以强制至少一个标签虽然被推荐,但最终并没有显著降低0/1损失。我们的工作对社会科学家具有重要意义:1)我们证明了使用BERT进行多标签分类在德语开放式问题中是有效的。2)对于轻度多标签分类任务,现在的损失似乎足够小,可以允许全自动分类(相比于半自动方法)。3)使用BERT进行多标签分类只需要一个模型。而主要的竞争者ECC则需要遍历单个单标签预测。
英文摘要:
Open-ended questions in surveys are valuable because they do not constrain the respondent's answer, thereby avoiding biases. However, answers to open-ended questions are text data which are harder to analyze. Traditionally, answers were manually classified as specified in the coding manual. Most of the effort to automate coding has gone into the easier problem of single label prediction, where answers are classified into a single code. However, open-ends that require multi-label classification, i.e., that are assigned multiple codes, occur frequently. This paper focuses on multi-label classification of text answers to open-ended survey questions in social science surveys. We evaluate the performance of the transformer-based architecture BERT for the German language in comparison to traditional multi-label algorithms (Binary Relevance, Label Powerset, ECC) in a German social science survey, the GLES Panel (N=17,584, 55 labels). We find that classification with BERT (forcing at least one label) has the smallest 0/1 loss (13.1%) among methods considered (18.9%-21.6%). As expected, it is much easier to correctly predict answer texts that correspond to a single label (7.1% loss) than those that correspond to multiple labels ($\sim$50% loss). Because BERT predicts zero labels for only 1.5% of the answers, forcing at least one label, while recommended, ultimately does not lower the 0/1 loss by much. Our work has important implications for social scientists: 1) We have shown multi-label classification with BERT works in the German language for open-ends. 2) For mildly multi-label classification tasks, the loss now appears small enough to allow for fully automatic classification (as compared to semi-automatic approaches). 3) Multi-label classification with BERT requires only a single model. The leading competitor, ECC, iterates through individual single label predictions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。