mlsanityData to 7 Oct 2026

Retrieval-Based Multi-Label Legal Annotation: Extensible, Data-Efficient and Hallucination-Free

arXiv 2605.16767 ↗First posted 16 May 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Multi-label legal annotation requires assigning multiple labels from large, evolving taxonomies to long, fact-intensive documents, often under limited supervision. Parametric encoders typically require task-specific training and retraining when the label set changes, while prompting generative large language models becomes costly and degrades as the label space grows. We cast legal annotation as retrieval: we embed documents and label descriptions with a frozen retrieval model and predict labels via k-nearest neighbors in the embedding space, enabling updates by re-embedding and re-indexing rather than gradient-based backpropagation. Across three legal datasets (ECtHR-A, ECtHR-B, and Eurlex with 100 labels), retrieval achieves competitive accuracy and strong data efficiency; on Eurlex, Qwen-8B retrieval improves Macro-F1 from 40.41 (GPT-5.2, zero-shot) to 49.12 while reducing estimated compute by 20-30 times compared to fine-tuning. With only (N=100) training samples, retrieval nearly doubles Micro-F1 over hierarchical Legal-BERT on ECtHR-A (48.29 vs. 27.87). We also quantify a reliability failure mode of generative inference: GPT-5.2 hallucinates labels outside the provided taxonomy in 0.12-0.9% of test samples under deterministic decoding. In contrast, retrieval strictly respects defined label sets, eliminating hallucination by design. These results suggest retrieval-model-based annotators are a practical, deployable alternative for high-cardinality and rapidly changing legal label spaces.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 25 of its 37 references that are in the map. First posted on arXiv 16 May 2026.

Builds on

25 of 37 references.

References · 25

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  5. 2025Qwen3 Technical Reportcited by 8,195
  6. 2020Scaling Laws for Neural Language Modelscited by 6,411
  7. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  8. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  9. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
  10. 2017Billion-scale similarity search with GPUscited by 2,477
  11. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
  12. 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 328
13 more
  1. 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
  2. 2025Small Language Models are the Future of Agentic AIcited by 254
  3. 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 232
  4. 2018Explainable Prediction of Medical Codes from Clinical Textcited by 231
  5. 2018CAIL2018: A Large-Scale Legal Dataset for Judgment Predictioncited by 168
  6. 2019Large-Scale Multi-Label Text Classification on EU Legislationcited by 104
  7. 2021MultiEURLEX -- A multi-lingual and multi-label legal document classification dataset for zero-shot cross-lingual transfercited by 89
  8. 2025Mitigating Manipulation and Enhancing Persuasion: A Reflective Multi-Agent Approach for Legal Argument Generationcited by 8
  9. 2025Do LLMs Truly Understand When a Precedent Is Overruled?cited by 6
  10. 2024Using LLMs to Discover Legal Factorscited by 5
  11. 2025Automating Legal Interpretation with LLMs: Retrieval, Generation, and Evaluationcited by 5
  12. 2025Universal Legal Article Prediction via Tight Collaboration between Supervised Classification Model and LLMcited by 2
  13. 2025Efficient Prompt Optimisation for Legal Text Classification with Proxy Prompt Evaluatorcited by 2

Built on by

Not cited yet.