SyLeR: A Framework for Explicit Syllogistic Legal Reasoning in Large Language Models

Kepu Zhang, Weijie Yu, Zhongxiang Sun, Jun Xu

Abstract

Legal reasoning requires more than just correct answers; it demands transparent, logically sound justifications grounded in law. SyLeR (Syllogistic Legal Reasoning) is a novel framework that empowers Large Language Models (LLMs) to perform explicit syllogistic reasoning—structured as Major Premise, Minor Premise, and Conclusion. By combining a tree-structured hierarchical retrieval system with a two-stage reinforcement learning process, SyLeR produces legal outputs that are significantly more accurate, explainable, and trustworthy than traditional black-box LLM responses.

Introduction

In legal practice, the validity of a conclusion depends on the strength of the underlying logic. Professionals typically employ a syllogistic approach: applying a general legal rule (Major Premise) to specific case facts (Minor Premise) to derive a legal judgment (Conclusion). While LLMs have shown promise in legal tasks, they often provide "implicit" reasoning that lacks this formal structure, making it difficult for users to verify the model's logic.

Overview of the syllogistic reasoning process and multi-path approach in SyLeR.

Problem Statement

Current legal LLMs face three primary challenges:

  1. Low Trust: Implicit reasoning prevents practitioners from auditing the model's logic.
  2. Context Fragmentation: Standard retrieval methods fail to link general statutes with the specific precedent cases that interpret them.
  3. Reasoning Rigidity: Supervised fine-tuning often restricts models to a single "correct" explanation, ignoring the multiple valid paths often present in legal discourse.

Methodology: The SyLeR Framework

SyLeR addresses these issues through two core innovations: tree-structured retrieval and a specialized reinforcement learning pipeline.

The SyLeR framework, featuring tree-structured retrieval and a structure-aware reward mechanism for reinforcement learning.

Tree-Structured Hierarchical Retrieval

Unlike flat retrieval systems, SyLeR organizes legal corpora into a hierarchical tree. The root connects to Legal Statutes (defining the law), which are further linked to Precedent Cases (demonstrating application). This structure allows the model to retrieve a statute alongside its most relevant interpretations, forming a robust Major Premise.

Two-Stage Fine-Tuning

The model undergoes a two-stage training process:

  • Warm-up Stage (SFT): The model is trained on high-quality syllogistic paths generated by GPT-4o, reverse-engineered from correct answers and retrieved laws.
  • Reinforcement Learning (PPO): Using Proximal Policy Optimization, SyLeR employs a structure-aware reward mechanism. The model receives rewards only if it adheres to the syllogistic format and if its premises align with both the retrieved law and the user's facts. This encourages logical rigor and reasoning diversity.

Evaluation and Results

SyLeR was evaluated across three datasets: LexEval (professional), LawBench (layperson), and LLeQA (French legal data).

Key Findings

  • Superior Performance: SyLeR consistently outperformed open-domain models (Qwen2, Llama3) and specialized legal LLMs. On LexEval, it achieved a BERTScore of 70.55, surpassing standard RAG and Chain-of-Thought (CoT) methods.
  • Human-Centric Trust: In blind evaluations by legal experts, SyLeR scored 4.66/5.0 across correctness, logic, and explainability, significantly higher than CoT-SFT (4.26).
  • Cross-Lingual Robustness: Despite being developed primarily on Chinese law, the framework generalized exceptionally well to the French LLeQA dataset, suggesting that syllogistic logic is a universal legal language.

Conclusion

SyLeR demonstrates that the structure of reasoning is as critical as the volume of training data. By enforcing explicit syllogistic logic and utilizing hierarchical retrieval, the framework bridges the gap between black-box AI and the transparent requirements of the legal profession. Future work will focus on reducing computational costs and extending the framework to handle multi-step, complex legal chains.

Summary updated

BibTeX
@inproceedings{zhang2025syler,
  author = {Kepu Zhang and Weijie Yu and Zhongxiang Sun and Jun Xu},
  title = {{SyLeR: A Framework for Explicit Syllogistic Legal Reasoning in Large Language Models}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2025},
  doi = {10.1145/3746252.3761120},
}
Figure