ReGal: A First Look at PPO-based Legal AI for Judgment Prediction and Summarization in India

Shubham Kumar Nigam, Tanuj Tyagi, Siddharth Shukla, Aditya Kumar Guru, Balaramamahanthi Deepak Patnaik, Danush Khanna, Noel Shallum, Kripabandhu Ghosh, Arnab BhattacharyaarXiv 2025

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:

  1. Court Judgment Prediction and Explanation (CJPE): Predicting a case outcome and generating a natural language rationale.
  2. 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:

  1. 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}$).
  2. 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.

Figure 1: Overview of the ReGal PPO model training process.

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).
Table 3: Performance comparison of various models for the Prediction with Explanation task on PredEx and ILDC datasets. Best scores per row section are bolded.

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

Abstract

This paper presents an early exploration of reinforcement learning methodologies for legal AI in the Indian context. We introduce Reinforcement Learning-based Legal Reasoning (ReGal), a framework that integrates Multi-Task Instruction Tuning with Reinforcement Learning from AI Feedback (RLAIF) using Proximal Policy Optimization (PPO). Our approach is evaluated across two critical legal tasks: (i) Court Judgment Prediction and Explanation (CJPE), and (ii) Legal Document Summarization. Although the framework underperforms on standard evaluation metrics compared to supervised and proprietary models, it provides valuable insights into the challenges of applying RL to legal texts. These challenges include reward model alignment, legal language complexity, and domain-specific adaptation. Through empirical and qualitative analysis, we demonstrate how RL can be repurposed for high-stakes, long-document tasks in law. Our findings establish a foundation for future work on optimizing legal reasoning pipelines using reinforcement learning, with broader implications for building interpretable and adaptive legal AI systems.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
PredExReGalROUGE-1 (R1)0.19Legal Judgment Prediction
Source quote
L230: \texttt{ReGal} (Ours) │ 0.19 │ 0.04 │ 0.12 │ 0.01 │ 0.10 │ 0.50 │ 0.02
ILDC ExpertReGalROUGE-1 (R1)0.25Legal Judgment Prediction
Source quote
L235: \texttt{ReGal} (Ours) │ 0.25 │ 0.05 │ 0.16 │ 0.01 │ 0.16 │ 0.50 │ 0.03
IN-Abs · SummarizationPPO InferenceROUGE-1 (R1)0.41Summarization
Source quote
L260: PPO Inference │ 0.41 │ 0.21 │ 0.22 │ 0.10 │ 0.31 │ 0.03 │ 0.12
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
PredExLLaMA-2 SFT baselineROUGE-1 (R1)0.50Legal Judgment Prediction · fine-tuned · backbone=LLaMA-2
Source quote
L229: LLaMA-2 SFT │ 0.50 │ 0.43 │ 0.44 │ 0.25 │ 0.36 │ 0.69 │ 0.28
ILDC ExpertLLaMA-2 SFT baselineROUGE-1 (R1)0.49Legal Judgment Prediction · fine-tuned · backbone=LLaMA-2
Source quote
L234: LLaMA-2 SFT │ 0.49 │ 0.38 │ 0.40 │ 0.29 │ 0.51 │ 0.69 │ 0.36
IN-Abs · SummarizationVanilla Inference baselineROUGE-1 (R1)0.47Summarization
Source quote
L257: Vanilla Inference │ 0.47 │ 0.29 │ 0.28 │ 0.15 │ 0.34 │ 0.04 │ 0.18
BibTeX
@misc{nigam2025regal,
  author = {Shubham Kumar Nigam and Tanuj Tyagi and Siddharth Shukla and Aditya Kumar Guru and Balaramamahanthi Deepak Patnaik and Danush Khanna and Noel Shallum and Kripabandhu Ghosh and Arnab Bhattacharya},
  title = {{ReGal: A First Look at PPO-based Legal AI for Judgment Prediction and Summarization in India}},
  year = {2025},
  eprint = {2512.18014},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.18014},
}
Figure