TL;DR
This paper introduces ReGal, an early exploration of using Proximal Policy Optimization (PPO) and AI feedback to tackle court judgment prediction and document summarization in the Indian legal context. While the reinforcement learning framework underperforms compared to standard supervised baselines, it provides a valuable diagnostic look at why current RLHF/RLAIF techniques struggle with highly complex, long-form legal texts.
What Problem Does This Paper Address?
Legal AI in India faces unique challenges due to the extreme length, intricate rhetorical structures, and high-stakes nature of court documents. Traditional approaches rely heavily on Supervised Fine-Tuning (SFT), which requires massive annotated datasets and lacks the ability to iteratively optimize for real-time feedback or complex reasoning alignment.
The authors investigate whether Reinforcement Learning from AI Feedback (RLAIF) can bridge this gap. Specifically, they look at two interlinked tasks:
- Court Judgment Prediction and Explanation (CJPE): Predicting a case outcome and generating a natural language rationale.
- Legal Document Summarization: Creating concise, informative abstract-style summaries of long judgments.
Methods
The authors introduce ReGal (Reinforcement Learning-Based Legal Reasoning), a two-stage framework:
- Supervised Fine-Tuning (SFT): They perform standard instruction tuning on a base Llama-2-7B model using domain-specific datasets to create a reference policy ($\pi_{SFT}$).
- Proximal Policy Optimization (PPO): They apply PPO to iteratively update the model based on task-specific reward models (RMs) that simulate AI feedback.
For the CJPE task, they fine-tune InLegalBERT to act as a reward model that scores the correctness of the predicted verdict (assigning binary rewards of 1 or 0). For legal summarization, the reward model uses ROUGE-style n-gram matching and shallow semantic similarity against gold-standard headnotes to assign scalar rewards.
Datasets
The framework is evaluated on two large-scale, expert-curated Indian legal datasets:
- PredEx: Contains 15,222 Supreme Court judgment documents split into training and test sets, featuring full case texts, binary outcome labels (accepted/rejected), and human-written explanations.
- In-Abs: A subset of the IL-TUR dataset consisting of 7,130 Supreme Court documents paired with expert-written headnotes that serve as abstractive summaries.
Key Insights and Ideas
- The SFT-PPO Objective Mismatch: Starting PPO from an SFT model that isn't already deeply optimized for legal reasoning creates a distribution mismatch, which likely impairs downstream RL optimization.
- Reward Model Blindspots: Proxy reward models like InLegalBERT struggle to capture the nuanced, fine-grained interpretative logic required for law. This leads to a "reward hacking" effect where the model mimics legal style but lacks substance.
- The Hallucination Trap: Over-optimizing for weak or sparse reward signals in long-document tasks causes the PPO model to generate fluent but completely fabricated legal principles, facts, and precedent citations (e.g., hallucinating privacy rights under Article 21 based on fabricated reasoning).
Key Results
Across both tasks, the PPO-aligned ReGal model significantly underperformed compared to its SFT counterpart and proprietary models like GPT-3.5:
- On the PredEx dataset (CJPE): ReGal achieved a ROUGE-1 score of 0.19 and a BLEU score of 0.01, compared to LLaMA-2 SFT's 0.50 ROUGE-1 and 0.25 BLEU.
- On the In-Abs dataset (Summarization): PPO inference dropped to a ROUGE-1 of 0.41, trailing behind vanilla zero-shot inference (0.47) and SFT inference (0.44).
Limitations and Future Work
The paper openly frames itself as a position paper highlighting current limitations rather than achieving state-of-the-art results. Key bottlenecks include:
- Domain Pretraining Gap: The base 7B model lacks deep domain-adaptive pretraining compared to larger proprietary models.
- Brittle Reward Functions: Automated reward models cannot yet replace human legal expertise.
Future Directions: The authors suggest that future legal AI pipelines must move away from pure RLAIF by integrating human-in-the-loop feedback, developing hallucination-aware reward models, and utilizing larger, domain-adapted base architectures to handle the linguistic complexity of high-stakes legal domains.
Summary updated