Enhancing Logical Reasoning in Large Language Models to Facilitate Legal Applications

Ha-Thanh Nguyen,Wachara Fungwacharakorn,Ken Satoh
2023-11-22
Abstract:Language serves as a vehicle for conveying thought, enabling communication among individuals. The ability to distinguish between diverse concepts, identify fairness and injustice, and comprehend a range of legal notions fundamentally relies on logical reasoning. Large Language Models (LLMs) attempt to emulate human language understanding and generation, but their competency in logical reasoning remains limited. This paper seeks to address the philosophical question: How can we effectively teach logical reasoning to LLMs while maintaining a deep understanding of the intricate relationship between language and logic? By focusing on bolstering LLMs' capabilities in logical reasoning, we aim to expand their applicability in law and other logic-intensive disciplines. To this end, we propose a Reinforcement Learning from Logical Feedback (RLLF) approach, which serves as a potential framework for refining LLMs' reasoning capacities. Through RLLF and a revised evaluation methodology, we explore new avenues for research in this domain and contribute to the development of LLMs capable of handling complex legal reasoning tasks while acknowledging the fundamental connection between language and logic.
Computation and Language,Artificial Intelligence
What problem does this paper attempt to address?
This paper aims to address the deficiencies in the logical reasoning abilities of large - language models (LLMs), especially their performance in legal applications. Although large - language models perform well in tasks such as natural - language understanding and generation, translation, and question - answering, they have obvious shortcomings in handling complex logic and reasoning requirements, which limits their application in key functions such as legal consultation and case analysis. To improve this situation, the paper proposes a reinforcement - learning method based on logical feedback (Reinforcement Learning from Logical Feedback, RLLF), aiming to improve the logical reasoning abilities of LLMs through logical feedback rather than subjective human feedback, thereby reducing the influence of human biases and enhancing the applicability of the model in logic - intensive fields such as law.