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

评估上下文学习与微调在德语网页数据主题分类中的应用

Assessing In-context Learning and Fine-tuning for Topic Classification of German Web Data

University of Konstanz(康斯坦茨大学);Cluster of Excellence “The Politics of Inequality”(卓越集群“不平等政治”)

Julian Schelb, Roberto Ulloa, Andreas Spitz

AI总结:

本文将德语网页主题检测建模为二元分类任务,比较微调预训练编码器与上下文学习策略,发现少量标注数据即可训练有效分类器,微调效果优于上下文学习,结合URL与内容特征表现最佳。

摘要:

政治与社会科学研究者常依赖分类模型,通过分析数百万网页的浏览历史来研究信息消费趋势。由于人工标注不切实际,需要自动化的可扩展方法。本文将主题相关内容的检测建模为二元分类任务,并比较了微调的预训练编码器模型与上下文学习策略的准确性。利用每个主题仅数百个标注数据点,我们在抓取的网页数据库中检测与三项德国政策相关的内容。我们比较了多语言与单语言模型,以及零样本和少样本方法,并研究了负采样策略的影响以及URL与基于内容的特征组合的影响。结果表明,少量标注数据足以训练出有效的分类器。微调基于编码器的模型比上下文学习效果更好。同时使用URL与基于内容的特征的分类器表现最佳,而在内容不可用时仅使用URL也能提供足够的结果。

英文摘要:

Researchers in the political and social sciences often rely on classification models to analyze trends in information consumption by examining browsing histories of millions of webpages. Automated scalable methods are necessary due to the impracticality of manual labeling. In this paper, we model the detection of topic-related content as a binary classification task and compare the accuracy of fine-tuned pre-trained encoder models against in-context learning strategies. Using only a few hundred annotated data points per topic, we detect content related to three German policies in a database of scraped webpages. We compare multilingual and monolingual models, as well as zero and few-shot approaches, and investigate the impact of negative sampling strategies and the combination of URL & content-based features. Our results show that a small sample of annotated data is sufficient to train an effective classifier. Fine-tuning encoder-based models yields better results than in-context learning. Classifiers using both URL & content-based features perform best, while using URLs alone provides adequate results when content is unavailable.

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

↑