LLMs for LLMs: A Structured Prompting Methodology for Long Legal Documents
Not on the map. Why?
Abstract (arXiv)
The rise of Large Language Models (LLMs) has had a profoundly transformative effect on a number of fields and domains. However, their uptake in Law has proven more challenging due to the important issues of reliability and transparency. In this study, we present a structured prompting methodology as a viable alternative to the often expensive fine-tuning, with the capability of tacking long legal documents from the CUAD dataset on the task of information retrieval. Each document is first split into chunks via a system of chunking and augmentation, addressing the long document problem. Then, alongside an engineered prompt, the input is fed into QWEN-2 to produce a set of answers for each question. Finally, we tackle the resulting candidate selection problem with the introduction of the Distribution-based Localisation and Inverse Cardinality Weighting heuristics. This approach leverages a general purpose model to promote long term scalability, prompt engineering to increase reliability and the two heuristic strategies to reduce the impact of the black box effect. Whilst our model performs up to 9% better than the previously presented method, reaching state-of-the-art performance, it also highlights the limiting factor of current automatic evaluation metrics for question answering, serving as a call to action for future research. However, the chief aim of this work is to underscore the potential of structured prompt engineering as a useful, yet under-explored, tool in ensuring accountability and responsibility of AI in the legal domain, and beyond.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 54 of its 83 references that are in the map. First posted on arXiv 2 Sep 2025.
Builds on
54 of 83 references.
References · 54
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2023BloombergGPT: A Large Language Model for Financecited by 939
- 2023A Survey on Multimodal Large Language Modelscited by 909
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 688
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 619
38 more
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 431
- 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 310
- 2023Large Language Models are Zero-Shot Rankers for Recommender Systemscited by 309
- 2024MM-LLMs: Recent Advances in MultiModal Large Language Modelscited by 278
- 2022A Survey on Generative Diffusion Modelcited by 240
- 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 236
- 2024Generative Representational Instruction Tuningcited by 233
- 2023Recommender Systems in the Era of Large Language Models (LLMs)cited by 189
- 2023Active Prompting with Chain-of-Thought for Large Language Modelscited by 154
- 2024SaulLM-7B: A pioneering Large Language Model for Lawcited by 142
- 2023BooookScore: A systematic exploration of book-length summarization in the era of LLMscited by 137
- 2023Large Language Models in Law: A Surveycited by 128
- 2024Revolutionizing Finance with LLMs: An Overview of Applications and Insightscited by 90
- 2023Practical and Ethical Challenges of Large Language Models in Education: A Systematic Scoping Reviewcited by 83
- 2021ILDC for CJPE: Indian Legal Documents Corpus for Court Judgment Prediction and Explanationcited by 78
- 2023Review of Large Vision Models and Visual Prompt Engineeringcited by 77
- 2022Legal Prompting: Teaching a Language Model to Think Like a Lawyercited by 60
- 2023MultiLegalPile: A 689GB Multilingual Legal Corpuscited by 60
- 2023HAGRID: A Human-LLM Collaborative Dataset for Generative Information-Seeking with Attributioncited by 56
- 2022A Taxonomy of Prompt Modifiers for Text-To-Image Generationcited by 55
- 2022Legal Prompt Engineering for Multilingual Legal Judgement Predictioncited by 55
- 2023Lawyer LLaMA Technical Reportcited by 54
- 2023Prompt Engineering for Healthcare: Methodologies and Applicationscited by 52
- 2023TELeR: A General Taxonomy of LLM Prompts for Benchmarking Complex Taskscited by 49
- 2023A Brief Report on LawGPT 1.0: A Virtual Legal Assistant Based on GPT-3cited by 46
- 2024Prompt Design and Engineering: Introduction and Advanced Methodscited by 45
- 2024Should We Respect LLMs? A Cross-Lingual Study on the Influence of Prompt Politeness on LLM Performancecited by 41
- 2024SaulLM-54B & SaulLM-141B: Scaling Up Domain Adaptation for the Legal Domaincited by 39
- 2024A Survey on Generative AI and LLM for Video Generation, Understanding, and Streamingcited by 37
- 2019CAIL2019-SCM: A Dataset of Similar Case Matching in Legal Domaincited by 30
- 2024A Review of Multi-Modal Large Language and Vision Modelscited by 30
- 2020A Benchmark for Lease Contract Reviewcited by 26
- 2022Legal Case Document Summarization: Extractive and Abstractive Methods and their Evaluationcited by 24
- 2023Large Language Models in the Workplace: A Case Study on Prompt Engineering for Job Type Classificationcited by 18
- 2022LegalBench: Prototyping a Collaborative Benchmark for Legal Reasoningcited by 17
- 2023Just Tell Me: Prompt Engineering in Business Process Managementcited by 17
- 2024CitaLaw: Enhancing LLM with Citations in Legal Domaincited by 16
50 most cited of 54 All 54 (JSON)
Built on by
Not cited yet.