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