mlsanityData to 7 Oct 2026

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

arXiv 2407.16516 ↗First posted 23 Jul 2024cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 15 of its 42 references that are in the map. First posted on arXiv 23 Jul 2024.

Builds on

15 of 42 references.

References · 15

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  6. 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
  7. 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
  8. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  9. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  10. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  11. 2020German's Next Language Modelcited by 144
  12. 2023Text Classification via Large Language Modelscited by 104
3 more
  1. 2023LEXTREME: A Multi-Lingual and Multi-Task Benchmark for the Legal Domaincited by 68
  2. 2024Revisiting Demonstration Selection Strategies in In-Context Learningcited by 57
  3. 2021FHAC at GermEval 2021: Identifying German toxic, engaging, and fact-claiming comments with ensemble learningcited by 7

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.