mlsanityData to 7 Oct 2026

Large Language Model Prompt Chaining for Long Legal Document Classification

arXiv 2308.04138 ↗First posted 8 Aug 2023cs.CLcited by 7

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

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  4. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  5. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  6. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  7. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  8. 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 734
  9. 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
  10. 2022Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLPcited by 316
  11. 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
  12. 2022Generate rather than Retrieve: Large Language Models are Strong Context Generatorscited by 296
17 more
  1. 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 288
  2. 2021AI Chains: Transparent and Controllable Human-AI Interaction by Chaining Large Language Model Promptscited by 265
  3. 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 199
  4. 2022BRIO: Bringing Order to Abstractive Summarizationcited by 161
  5. 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
  6. 2022PromptChainer: Chaining Large Language Model Prompts through Visual Programmingcited by 134
  7. 2020How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligencecited by 128
  8. 2021MultiEURLEX -- A multi-lingual and multi-label legal document classification dataset for zero-shot cross-lingual transfercited by 89
  9. 2022GPT Takes the Bar Examcited by 65
  10. 2022Legal Prompting: Teaching a Language Model to Think Like a Lawyercited by 60
  11. 2022Legal Prompt Engineering for Multilingual Legal Judgement Predictioncited by 54
  12. 2022Multi-LexSum: Real-World Summaries of Civil Rights Lawsuits at Multiple Granularitiescited by 47
  13. 2022An Exploration of Hierarchical Attention Transformers for Efficient Long Document Classificationcited by 38
  14. 2023ChatGPT may Pass the Bar Exam soon, but has a Long Way to Go for the LexGLUE benchmarkcited by 33
  15. 2022Efficient Classification of Long Documents Using Transformerscited by 30
  16. 2022Processing Long Legal Documents with Pre-trained Transformers: Modding LegalBERT and Longformercited by 20
  17. 2021Comparative Study of Long Document Classificationcited by 12

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 3; 2025: 3.

7 papers.