NyayaMind- A Framework for Transparent Legal Reasoning and Judgment Prediction in the Indian Legal System
Parjanya Aditya Shukla, Shubham Kumar Nigam, Debtanu Datta, Balaramamahanthi Deepak Patnaik, Noel Shallum + 3 more
TLDR
NyayaMind is an open-source framework using RAG and fine-tuned LLMs for transparent legal reasoning and judgment prediction in the Indian legal system.
Key contributions
- Introduces NyayaMind, an open-source framework for transparent legal reasoning in the Indian judiciary.
- Integrates a RAG pipeline for retrieving relevant statutes and precedent cases from legal corpora.
- Utilizes reasoning-oriented LLMs, fine-tuned for Indian law, to generate structured legal outputs.
- Demonstrates improved explanation quality and evidence alignment compared to existing CJPE methods.
Why it matters
This paper introduces NyayaMind, a crucial step towards trustworthy AI in legal decision support. By focusing on transparency and structured reasoning, it addresses a key limitation of current judgment prediction systems. Its open-source nature and domain-specific tuning make it highly relevant for the Indian legal system.
Original Abstract
Court Judgment Prediction and Explanation (CJPE) aims to predict a judicial decision and provide a legally grounded explanation for a given case based on the facts, legal issues, arguments, cited statutes, and relevant precedents. For such systems to be practically useful in judicial or legal research settings, they must not only achieve high predictive performance but also generate transparent and structured legal reasoning that aligns with established judicial practices. In this work, we present NyayaMind, an open-source framework designed to enable transparent and scalable legal reasoning for the Indian judiciary. The proposed framework integrates retrieval, reasoning, and verification mechanisms to emulate the structured decision-making process typically followed in courts. Specifically, NyayaMind consists of two main components: a Retrieval Module and a Prediction Module. The Retrieval Module employs a RAG pipeline to identify legally relevant statutes and precedent cases from large-scale legal corpora, while the Prediction Module utilizes reasoning-oriented LLMs fine-tuned for the Indian legal domain to generate structured outputs including issues, arguments, rationale, and the final decision. Our extensive results and expert evaluation demonstrate that NyayaMind significantly improves the quality of explanation and evidence alignment compared to existing CJPE approaches, providing a promising step toward trustworthy AI-assisted legal decision support systems.
📬 Weekly AI Paper Digest
Get the top 10 AI/ML arXiv papers from the week — summarized, scored, and delivered to your inbox every Monday.