Exploring Large Language Models and Hierarchical Frameworks for Classification of Large Unstructured Legal Documents
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,841
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
- 2019Neural Legal Judgment Prediction in Englishcited by 208
15 more
- 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 199
- 2018CAIL2018: A Large-Scale Legal Dataset for Judgment Predictioncited by 168
- 2020How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligencecited by 128
- 2019HIBERT: Document Level Pre-training of Hierarchical Bidirectional Transformers for Document Summarizationcited by 120
- 2021ILDC for CJPE: Indian Legal Documents Corpus for Court Judgment Prediction and Explanationcited by 78
- 2021Paragraph-level Rationale Extraction through Regularization: A case study on European Court of Human Rights Casescited by 77
- 2020Distinguish Confusing Law Articles for Legal Judgment Predictioncited by 62
- 2022Legal Prompting: Teaching a Language Model to Think Like a Lawyercited by 60
- 2022Legal Prompt Engineering for Multilingual Legal Judgement Predictioncited by 54
- 2022A Survey on Legal Judgment Prediction: Datasets, Metrics, Models and Challengescited by 50
- 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classificationcited by 38
- 2019Charge-Based Prison Term Prediction with Deep Gating Networkcited by 31
- 2022LSG Attention: Extrapolation of pretrained Transformers to long sequencescited by 16
- 2020Utilizing BERT Intermediate Layers for Aspect Based Sentiment Analysis and Natural Language Inferencecited by 14
- 2019Deepening Hidden Representations from Pre-trained Language Modelscited by 1
Built on by
Citing papers per year: 2024: 2; 2025: 2.
4 papers.
- 2025When Large Language Models Meet Law: Dual-Lens Taxonomy, Technical Advances, and Ethical Governancecited by 3
- 2024Exploring the Human-LLM Synergy in Advancing Theory-driven Qualitative Analysiscited by 2
- 2024Ayn: A Tiny yet Competitive Indian Legal Language Model Pretrained from Scratchcited by 1
- 2025Aplicacc~ao de Large Language Models na An'alise e S'intese de Documentos Jur'idicos: Uma Revis~ao de Literaturacited by 0
- 2025When Large Language Models Meet Law: Dual-Lens Taxonomy, Technical Advances, and Ethical Governance10 Jul 2025
- 2025Aplicacc~ao de Large Language Models na An'alise e S'intese de Documentos Jur'idicos: Uma Revis~ao de Literatura1 Apr 2025
- 2024Exploring the Human-LLM Synergy in Advancing Theory-driven Qualitative Analysis9 May 2024
- 2024Ayn: A Tiny yet Competitive Indian Legal Language Model Pretrained from Scratch20 Mar 2024