Large Language Model Prompt Chaining for Long Legal Document Classification
Not on the map. Why?
Abstract (arXiv)
Prompting is used to guide or steer a language model in generating an appropriate response that is consistent with the desired outcome. Chaining is a strategy used to decompose complex tasks into smaller, manageable components. In this study, we utilize prompt chaining for extensive legal document classification tasks, which present difficulties due to their intricate domain-specific language and considerable length. Our approach begins with the creation of a concise summary of the original document, followed by a semantic search for related exemplar texts and their corresponding annotations from a training corpus. Finally, we prompt for a label - based on the task - to assign, by leveraging the in-context learning from the few-shot prompt. We demonstrate that through prompt chaining, we can not only enhance the performance over zero-shot, but also surpass the micro-F1 score achieved by larger models, such as ChatGPT zero-shot, using smaller models.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 29 of its 39 references that are in the map. First posted on arXiv 8 Aug 2023.
Builds on
29 of 39 references.
References · 29
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 734
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2022Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLPcited by 316
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
- 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 296
17 more
- 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 288
- 2021AI Chains: Transparent and Controllable Human-AI Interaction by Chaining Large Language Model Promptscited by 265
- 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 199
- 2022BRIO: Bringing Order to Abstractive Summarizationcited by 161
- 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
- 2022PromptChainer: Chaining Large Language Model Prompts through Visual Programmingcited by 134
- 2020How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligencecited by 128
- 2021MultiEURLEX -- A multi-lingual and multi-label legal document classification dataset for zero-shot cross-lingual transfercited by 89
- 2022GPT Takes the Bar Examcited by 65
- 2022Legal Prompting: Teaching a Language Model to Think Like a Lawyercited by 60
- 2022Legal Prompt Engineering for Multilingual Legal Judgement Predictioncited by 54
- 2022Multi-LexSum: Real-World Summaries of Civil Rights Lawsuits at Multiple Granularitiescited by 47
- 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classificationcited by 38
- 2023ChatGPT may Pass the Bar Exam soon, but has a Long Way to Go for the LexGLUE benchmarkcited by 33
- 2022Efficient Classification of Long Documents Using Transformerscited by 30
- 2022Processing Long Legal Documents with Pre-trained Transformers: Modding LegalBERT and Longformercited by 20
- 2021Comparative Study of Long Document Classificationcited by 12
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 3.
7 papers.
- 2024Interpretable Cross-Examination Technique (ICE-T): Using highly informative features to boost LLM performancecited by 2
- 2025LegalGuardian: A Privacy-Preserving Framework for Secure Integration of Large Language Models in Legal Practicecited by 2
- 2023Opportunities and Challenges of Applying Large Language Models in Building Energy Efficiency and Decarbonization Studies: An Exploratory Overviewcited by 1
- 2024Measuring the Groundedness of Legal Question-Answering Systemscited by 1
- 2025Conditional Multi-Stage Failure Recovery for Embodied Agentscited by 1
- 2024Towards Supporting Legal Argumentation with NLP: Is More Data Really All You Need?cited by 0
- 2025Legal Document Summarization: Enhancing Judicial Efficiency through Automation Detectioncited by 0
- 2025Legal Document Summarization: Enhancing Judicial Efficiency through Automation Detection25 Jul 2025
- 2025Conditional Multi-Stage Failure Recovery for Embodied Agents8 Jul 2025
- 2025LegalGuardian: A Privacy-Preserving Framework for Secure Integration of Large Language Models in Legal Practice19 Jan 2025
- 2024Measuring the Groundedness of Legal Question-Answering Systems11 Oct 2024
- 2024Towards Supporting Legal Argumentation with NLP: Is More Data Really All You Need?16 Jun 2024
- 2024Interpretable Cross-Examination Technique (ICE-T): Using highly informative features to boost LLM performance8 May 2024
- 2023Opportunities and Challenges of Applying Large Language Models in Building Energy Efficiency and Decarbonization Studies: An Exploratory Overview18 Dec 2023