Optimizing Numerical Estimation and Operational Efficiency in the Legal Domain through Large Language Models
Jia-Hong Huang, Chao-Chun Yang, Yixian Shen, Alessio M. Pacces, Evangelos Kanoulas
TL;DR
The paper tackles the challenge of delivering precise numerical estimates in diverse legal scenarios under expert scarcity by combining Large Language Models with in-context learning and specially designed prompts. It introduces a precision-oriented LegalAI dataset focused on numerical estimation (house-value cases) and demonstrates, through experiments with GPT-3.5, GPT-4, Claude, and Bard Gemini, that larger LLMs with crafted prompts achieve substantial accuracy gains, notably with GPT-4 achieving a $MAPE$ of $15.71\%$ on the task. Key contributions include a novel prompt-design framework for numerical estimation in law, an in-context learning strategy to bypass fine-tuning, and a real-world dataset (58 samples; 45 train, 13 test) for validating precision-oriented LegalAI tasks. The results indicate that LLM-driven precision methods can enhance legal workflows by providing rapid, objective estimates (e.g., compensation and sentencing proxies) while highlighting the need for interpretability and bias-auditing to ensure ethical deployment and broad accessibility.
Abstract
The legal landscape encompasses a wide array of lawsuit types, presenting lawyers with challenges in delivering timely and accurate information to clients, particularly concerning critical aspects like potential imprisonment duration or financial repercussions. Compounded by the scarcity of legal experts, there's an urgent need to enhance the efficiency of traditional legal workflows. Recent advances in deep learning, especially Large Language Models (LLMs), offer promising solutions to this challenge. Leveraging LLMs' mathematical reasoning capabilities, we propose a novel approach integrating LLM-based methodologies with specially designed prompts to address precision requirements in legal Artificial Intelligence (LegalAI) applications. The proposed work seeks to bridge the gap between traditional legal practices and modern technological advancements, paving the way for a more accessible, efficient, and equitable legal system. To validate this method, we introduce a curated dataset tailored to precision-oriented LegalAI tasks, serving as a benchmark for evaluating LLM-based approaches. Extensive experimentation confirms the efficacy of our methodology in generating accurate numerical estimates within the legal domain, emphasizing the role of LLMs in streamlining legal processes and meeting the evolving demands of LegalAI.
