Aplicac{c}~ao de Large Language Models na An'alise e S'intese de Documentos Jur'idicos: Uma Revis~ao de Literatura

📅 2025-04-01
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Large language models (LLMs) exhibit significant potential for legal text analysis and generation, yet their reliability in law-specific tasks remains hindered by hallucinations, domain bias, and inconsistent performance. Method: This paper systematically reviews prompt engineering techniques for LLMs—including GPT-4, BERT, Llama 2, and Legal-Pegasus—evaluating few-shot, zero-shot, and chain-of-thought prompting across legal summarization, classification, and retrieval tasks. Contribution/Results: Empirical results demonstrate strong performance of multiple LLMs on structured legal tasks; however, model bias and factual hallucination persist as critical barriers to real-world deployment. To address these challenges, the paper proposes a legal-domain-oriented prompt engineering framework emphasizing domain-adaptive prompt design and rigorous trustworthiness verification. The framework provides both methodological guidance and empirical evidence to support robust, accountable LLM integration into judicial practice.

Technology Category

Application Category

📝 Abstract
Large Language Models (LLMs) have been increasingly used to optimize the analysis and synthesis of legal documents, enabling the automation of tasks such as summarization, classification, and retrieval of legal information. This study aims to conduct a systematic literature review to identify the state of the art in prompt engineering applied to LLMs in the legal context. The results indicate that models such as GPT-4, BERT, Llama 2, and Legal-Pegasus are widely employed in the legal field, and techniques such as Few-shot Learning, Zero-shot Learning, and Chain-of-Thought prompting have proven effective in improving the interpretation of legal texts. However, challenges such as biases in models and hallucinations still hinder their large-scale implementation. It is concluded that, despite the great potential of LLMs for the legal field, there is a need to improve prompt engineering strategies to ensure greater accuracy and reliability in the generated results.
Problem

Research questions and friction points this paper is trying to address.

Reviewing LLM applications in legal document analysis and synthesis
Evaluating prompt engineering techniques for legal text interpretation
Addressing biases and hallucinations in LLM-generated legal outputs
Innovation

Methods, ideas, or system contributions that make the work stand out.

LLMs optimize legal document analysis and synthesis
Prompt engineering improves legal text interpretation
Few-shot and Zero-shot Learning enhance model performance
M
Matheus Belarmino
Universidade Federal do Cariri (UFCA), Juazeiro do Norte – CE – Brasil
R
Rackel Coelho
Universidade Federal do Cariri (UFCA), Juazeiro do Norte – CE – Brasil
R
Roberto Lotudo
NeuralMind.ai, Campinas – SP – Brasil
J
Jayr Pereira
Universidade Federal do Cariri (UFCA), Juazeiro do Norte – CE – Brasil