Assessing In-context Learning and Fine-tuning for Topic Classification of German Web Data
Schelb, Julian, Ulloa, Roberto, Spitz, Andreas
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Jul-23-2024
- Country:
- Africa > Ethiopia
- Addis Ababa > Addis Ababa (0.04)
- Asia
- China
- Inner Mongolia > Hohhot (0.04)
- Jiangsu Province > Yancheng (0.04)
- Middle East > Qatar
- Singapore (0.04)
- Taiwan > Taiwan
- Taipei (0.04)
- China
- Europe
- Germany
- Baden-Württemberg > Stuttgart Region
- Stuttgart (0.04)
- Bavaria > Regensburg (0.04)
- Bremen > Bremen (0.04)
- North Rhine-Westphalia > Düsseldorf Region
- Düsseldorf (0.04)
- Saxony > Leipzig (0.04)
- Baden-Württemberg > Stuttgart Region
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- Germany
- North America > United States
- Arizona (0.04)
- California > Los Angeles County
- Long Beach (0.04)
- Florida > Miami-Dade County
- Miami (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Africa > Ethiopia
- Genre:
- Research Report
- Experimental Study (0.93)
- New Finding (1.00)
- Research Report
- Industry:
- Energy > Renewable (0.46)
- Information Technology (0.67)
- Law (0.68)
- Technology:
- Information Technology > Artificial Intelligence
- Machine Learning
- Inductive Learning (0.69)
- Neural Networks > Deep Learning (1.00)
- Performance Analysis > Accuracy (0.67)
- Statistical Learning (0.93)
- Supervised Learning (0.68)
- Natural Language
- Information Retrieval (0.70)
- Large Language Model (1.00)
- Text Classification (1.00)
- Machine Learning
- Information Technology > Artificial Intelligence