mlsanityData to 7 Oct 2026

Exploring Large Language Models and Hierarchical Frameworks for Classification of Large Unstructured Legal Documents

arXiv 2403.06872 ↗First posted 11 Mar 2024cs.CL cs.AIcited by 4

Not on the map. Why?

Abstract (arXiv)

Legal judgment prediction suffers from the problem of long case documents exceeding tens of thousands of words, in general, and having a non-uniform structure. Predicting judgments from such documents becomes a challenging task, more so on documents with no structural annotation. We explore the classification of these large legal documents and their lack of structural information with a deep-learning-based hierarchical framework which we call MESc; "Multi-stage Encoder-based Supervised with-clustering"; for judgment prediction. Specifically, we divide a document into parts to extract their embeddings from the last four layers of a custom fine-tuned Large Language Model, and try to approximate their structure through unsupervised clustering. Which we use in another set of transformer encoder layers to learn the inter-chunk representations. We analyze the adaptability of Large Language Models (LLMs) with multi-billion parameters (GPT-Neo, and GPT-J) with the hierarchical framework of MESc and compare them with their standalone performance on legal texts. We also study their intra-domain(legal) transfer learning capability and the impact of combining embeddings from their last layers in MESc. We test these methods and their effectiveness with extensive experiments and ablation studies on legal documents from India, the European Union, and the United States with the ILDC dataset and a subset of the LexGLUE dataset. Our approach achieves a minimum total performance gain of approximately 2 points over previous state-of-the-art methods.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 27 of its 43 references that are in the map. First posted on arXiv 11 Mar 2024.

Builds on

27 of 43 references.

References · 27

  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. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  5. 2020Longformer: The Long-Document Transformercited by 3,362
  6. 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,841
  7. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  8. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  9. 2020Reformer: The Efficient Transformercited by 1,658
  10. 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
  11. 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
  12. 2019Neural Legal Judgment Prediction in Englishcited by 208
15 more
  1. 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 199
  2. 2018CAIL2018: A Large-Scale Legal Dataset for Judgment Predictioncited by 168
  3. 2020How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligencecited by 128
  4. 2019HIBERT: Document Level Pre-training of Hierarchical Bidirectional Transformers for Document Summarizationcited by 120
  5. 2021ILDC for CJPE: Indian Legal Documents Corpus for Court Judgment Prediction and Explanationcited by 78
  6. 2021Paragraph-level Rationale Extraction through Regularization: A case study on European Court of Human Rights Casescited by 77
  7. 2020Distinguish Confusing Law Articles for Legal Judgment Predictioncited by 62
  8. 2022Legal Prompting: Teaching a Language Model to Think Like a Lawyercited by 60
  9. 2022Legal Prompt Engineering for Multilingual Legal Judgement Predictioncited by 54
  10. 2022A Survey on Legal Judgment Prediction: Datasets, Metrics, Models and Challengescited by 50
  11. 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classificationcited by 38
  12. 2019Charge-Based Prison Term Prediction with Deep Gating Networkcited by 31
  13. 2022LSG Attention: Extrapolation of pretrained Transformers to long sequencescited by 16
  14. 2020Utilizing BERT Intermediate Layers for Aspect Based Sentiment Analysis and Natural Language Inferencecited by 14
  15. 2019Deepening Hidden Representations from Pre-trained Language Modelscited by 1

Built on by

Cited by year

Citing papers per year: 2024: 2; 2025: 2.

4 papers.