LLMs as annotators of credibility assessment in Danish asylum decisions: evaluating classification performance and errors beyond aggregated metrics
Summary
A study investigates the effectiveness of off-the-shelf large language models (LLMs) for automating text annotation in specialized legal domains and underrepresented languages, specifically Danish asylum decisions. Researchers introduce RAB-Cred, a Danish text classification dataset with expert annotations, annotator confidence, and asylum case outcomes. The work benchmarks 21 open-weight models and 30 system-user prompt combinations for zero-shot and few-shot classification, focusing on identifying the presence and sentiment of credibility assessments. Evaluation extends beyond aggregated metrics to analyze error consistency across LLMs, inter-class confusion, correlation with human confidence, and the severity of mistakes. Results indicate LLMs offer potential for cost-effective labeling but are imperfect and inconsistent, necessitating evaluation beyond a single model's predictions. The RAB-Cred dataset and code are publicly available.
Key takeaway
For legal NLP engineers or researchers automating text annotation in specialized domains like asylum decisions, relying solely on a single LLM or basic performance metrics is insufficient. You should systematically benchmark multiple LLM and prompt combinations, conducting detailed error analysis to understand consistency, inter-class confusion, and the severity of mistakes. This approach ensures more robust and reliable annotation pipelines, especially for critical applications involving underrepresented languages.
Key insights
LLMs can annotate specialized legal texts but require careful, multi-faceted evaluation beyond simple metrics due to inherent inconsistency.
Principles
- LLM effectiveness varies by domain and language.
- Error analysis is crucial beyond aggregate metrics.
- Single LLM predictions can be inconsistent.
Method
Benchmark 21 open-weight LLMs and 30 prompt combinations on a novel legal NLP task using zero-shot and few-shot classification, then analyze errors beyond aggregated metrics.
In practice
- Use RAB-Cred for Danish legal NLP tasks.
- Evaluate LLM annotators beyond accuracy.
- Compare multiple LLM/prompt combinations.
Topics
- Large Language Models
- Text Annotation
- Legal NLP
- Danish Language
- Asylum Decisions
- Credibility Assessment
- Error Analysis
Code references
Best for: Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Paper Index on ACL Anthology.