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

在政治科学研究中选择BERT与GPT进行文本分类

Selecting Between BERT and GPT for Text Classification in Political Science Research

Fudan University(复旦大学)

Yu Wang, Wen Qu, Xin Ye

AI总结:

本研究比较了BERT微调与GPT提示工程在政治科学文本分类低数据场景下的表现,发现GPT零样本和少样本学习适合早期探索,但性能通常不及或至多持平BERT微调,并提供了实用指导。

摘要:

政治科学家在文本分类中常常面临数据稀缺的问题。近年来,微调的BERT模型及其变体作为解决这一问题的有效方案而受到关注。在本研究中,我们探讨了基于GPT的模型结合提示工程作为可行替代方案的潜力。我们在一系列不同类别数量和复杂度的分类任务中进行了实验,以评估在低数据场景下基于BERT的模型与基于GPT的模型的效能。我们的研究结果表明,虽然使用GPT模型的零样本和少样本学习提供了合理的性能,并且非常适合早期研究探索,但它们通常不如——或至多持平——BERT微调的性能,特别是在训练集达到相当规模(例如1,000个样本)时。最后,我们从性能、易用性和成本方面对这些方法进行了比较,为面临数据限制的研究人员提供了实用指导。我们的结果对于在低资源环境或有限标注数据下进行定量文本分析的研究人员尤为相关。

英文摘要:

Political scientists often grapple with data scarcity in text classification. Recently, fine-tuned BERT models and their variants have gained traction as effective solutions to address this issue. In this study, we investigate the potential of GPT-based models combined with prompt engineering as a viable alternative. We conduct a series of experiments across various classification tasks, differing in the number of classes and complexity, to evaluate the effectiveness of BERT-based versus GPT-based models in low-data scenarios. Our findings indicate that while zero-shot and few-shot learning with GPT models provide reasonable performance and are well-suited for early-stage research exploration, they generally fall short - or, at best, match - the performance of BERT fine-tuning, particularly as the training set reaches a substantial size (e.g., 1,000 samples). We conclude by comparing these approaches in terms of performance, ease of use, and cost, providing practical guidance for researchers facing data limitations. Our results are particularly relevant for those engaged in quantitative text analysis in low-resource settings or with limited labeled data.

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

↑