mlsanityData to 7 Oct 2026

Leveraging Large Language Models for Topic Classification in the Domain of Public Affairs

arXiv 2306.02864 ↗First posted 5 Jun 2023cs.AI cs.CLcited by 13

Not on the map. Why?

Abstract (arXiv)

The analysis of public affairs documents is crucial for citizens as it promotes transparency, accountability, and informed decision-making. It allows citizens to understand government policies, participate in public discourse, and hold representatives accountable. This is crucial, and sometimes a matter of life or death, for companies whose operation depend on certain regulations. Large Language Models (LLMs) have the potential to greatly enhance the analysis of public affairs documents by effectively processing and understanding the complex language used in such documents. In this work, we analyze the performance of LLMs in classifying public affairs documents. As a natural multi-label task, the classification of these documents presents important challenges. In this work, we use a regex-powered tool to collect a database of public affairs documents with more than 33K samples and 22.5M tokens. Our experiments assess the performance of 4 different Spanish LLMs to classify up to 30 different topics in the data in different configurations. The results shows that LLMs can be of great use to process domain-specific documents, such as those in the domain of public affairs.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 19 of its 23 references that are in the map. First posted on arXiv 5 Jun 2023.

Builds on

19 of 23 references.

References · 19

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2023GPT-4 Technical Reportcited by 18,132
  5. 2022Training language models to follow instructions with human feedbackcited by 15,712
  6. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  7. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  8. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  9. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  10. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  11. 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,813
  12. 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
7 more
  1. 2023PaLM 2 Technical Reportcited by 1,154
  2. 2020SensitiveLoss: Improving Accuracy and Fairness of Face Representations with Discrimination-Aware Deep Learningcited by 50
  3. 2021MarIA: Spanish Language Modelscited by 36
  4. 2023Human-Centric Multimodal Machine Learning: Recent Advances and Testbed on AI-based Recruitmentcited by 32
  5. 2021Spanish Legalese Language Model and Corporacited by 11
  6. 2023Measuring Bias in AI Models: An Statistical Approach Introducing N-Sigmacited by 11
  7. 2022RigoBERTa: A State-of-the-Art Language Model For Spanishcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 5; 2024: 3; 2025: 4; 2026: 1.

13 papers.

Sort: