
[🌐 Website] • [📜 Proceedings] • [📜 ArXiv] • [🤗 HF Models] • [🤗 HF Dataset] • [🐱 GitHub]
This is the official implementation of the paper:
Shubham Kumar Nigam, Anurag Sharma, Danush Khanna, Noel Shallum, Kripabandhu Ghosh, and Arnab Bhattacharya:
Legal Judgment Reimagined: PredEx and the Rise of Intelligent AI Interpretation in Indian Courts (to appear in ACL 2024)
LLMs, used for legal outcome prediction and explainability, face challenges due to the complexity of legal proceedings and limited expert-annotated data. PredEx tackles this with the largest expert-annotated dataset based on Indian legal documents, featuring over 15,000 annotations. Our best Transformer model, Roberta, achieves 78% accuracy, surpassing LLama-2-7B at 38% and human experts at 73%. PredEx sets a new benchmark for legal judgment prediction in the NLP community!
See also our Linkedin Post.
PredEx can be used to improve the performance of already-trained large language models not only in legal outcome prediction but also in providing meaningful reasoning behind their decisions. For best results, the models can be trained with PredEx.
If you have any questions on this work, please open a GitHub issue or email the authors at
shubhamkumarnigam@gmail.com, anuragsharma3211@gmail.com, danush.s.khanna@gmail.com
Ensure you have the necessary hardware and software requirements in place to replicate our experimental setup. Follow the steps below to configure your environment for optimal performance.
The following models from the paper (Table 3) are available on Hugging Face.
| Dataset | Method | Hugging Face link |
|---|---|---|
| Predex | InLegalBert | L-NLProc/PredEx_InLegalBert_Pred |
| Predex | InCaseLaw | L-NLProc/PredEx_InCaseLaw_Pred |
| Predex | XLNet Large | L-NLProc/PredEx_XLNet_Large_Pred |
| Predex | RoBerta Large | L-NLProc/PredEx_RoBERTa_Large_Pred |
| Dataset | Method | Hugging Face link |
|---|---|---|
| Predex | Zephyr | Zephyr Hugging Face API |
| Predex | Gemini pro | Build with Gemini API |
| Predex | Llama-2-7B | L-NLProc/PredEx_Llama-2-7B_Pred |
| Predex | Llama-2-7B Instruction-tuning on prediction task | L-NLProc/PredEx_Llama-2-7B_Pred_Instruction-Tuned |
| Dataset | Method | Hugging Face link |
|---|---|---|
| Predex | Gemini pro | Build with Gemini API |
| Predex | Llama-2-7B | L-NLProc/PredEx_Llama-2-7B_Pred-Exp |
| Predex | Llama-2-7B Instruction-tuning on prediction with explanation task | L-NLProc/PredEx_Llama-2-7B_Pred-Exp_Instruction-Tuned |
| Dataset | Method | Hugging Face link |
|---|---|---|
| ILDC Expert | Llama-2-7B | L-NLProc/ILDC_Llama-2-7B_Pred-Exp |
| ILDC Expert | Llama-2-7B Instruction-tuning on prediction with explanation task | L-NLProc/ILDC_Llama-2-7B_Pred-Exp_Instruction-Tuned |
If you use our method or models, please cite our paper:
@inproceedings{nigam2024legal,
title={Legal judgment reimagined: PredEx and the rise of intelligent AI interpretation in Indian courts},
author={Nigam, Shubham Kumar and Sharma, Anurag and Khanna, Danush and Shallum, Noel and Ghosh, Kripabandhu and Bhattacharya, Arnab},
booktitle={Findings of the Association for Computational Linguistics: ACL 2024},
pages={4296--4315},
year={2024}
}
or
@inproceedings{nigam-etal-2024-legal,
title = "Legal Judgment Reimagined: {P}red{E}x and the Rise of Intelligent {AI} Interpretation in {I}ndian Courts",
author = "Nigam, Shubham and
Sharma, Anurag and
Khanna, Danush and
Shallum, Noel and
Ghosh, Kripabandhu and
Bhattacharya, Arnab",
editor = "Ku, Lun-Wei and
Martins, Andre and
Srikumar, Vivek",
booktitle = "Findings of the Association for Computational Linguistics: ACL 2024",
month = aug,
year = "2024",
address = "Bangkok, Thailand",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.findings-acl.255",
doi = "10.18653/v1/2024.findings-acl.255",
pages = "4296--4315",
abstract = "In the era of Large Language Models (LLMs), predicting judicial outcomes poses significant challenges due to the complexity of legal proceedings and the scarcity of expert-annotated datasets. Addressing this, we introduce \textbf{Pred}iction with \textbf{Ex}planation (PredEx), the largest expert-annotated dataset for legal judgment prediction and explanation in the Indian context, featuring over 15,000 annotations. This groundbreaking corpus significantly enhances the training and evaluation of AI models in legal analysis, with innovations including the application of instruction tuning to LLMs. This method has markedly improved the predictive accuracy and explanatory depth of these models for legal judgments. We employed various transformer-based models, tailored for both general and Indian legal contexts. Through rigorous lexical, semantic, and expert assessments, our models effectively leverage PredEx to provide precise predictions and meaningful explanations, establishing it as a valuable benchmark for both the legal profession and the NLP community.",
}
Jupyter Notebook
81.6%
Python
18.4%

[🌐 Website] • [📜 Proceedings] • [📜 ArXiv] • [🤗 HF Models] • [🤗 HF Dataset] • [🐱 GitHub]
This is the official implementation of the paper:
Shubham Kumar Nigam, Anurag Sharma, Danush Khanna, Noel Shallum, Kripabandhu Ghosh, and Arnab Bhattacharya:
Legal Judgment Reimagined: PredEx and the Rise of Intelligent AI Interpretation in Indian Courts (to appear in ACL 2024)
LLMs, used for legal outcome prediction and explainability, face challenges due to the complexity of legal proceedings and limited expert-annotated data. PredEx tackles this with the largest expert-annotated dataset based on Indian legal documents, featuring over 15,000 annotations. Our best Transformer model, Roberta, achieves 78% accuracy, surpassing LLama-2-7B at 38% and human experts at 73%. PredEx sets a new benchmark for legal judgment prediction in the NLP community!
See also our Linkedin Post.
PredEx can be used to improve the performance of already-trained large language models not only in legal outcome prediction but also in providing meaningful reasoning behind their decisions. For best results, the models can be trained with PredEx.
If you have any questions on this work, please open a GitHub issue or email the authors at
shubhamkumarnigam@gmail.com, anuragsharma3211@gmail.com, danush.s.khanna@gmail.com
Ensure you have the necessary hardware and software requirements in place to replicate our experimental setup. Follow the steps below to configure your environment for optimal performance.
The following models from the paper (Table 3) are available on Hugging Face.
| Dataset | Method | Hugging Face link |
|---|---|---|
| Predex | InLegalBert | L-NLProc/PredEx_InLegalBert_Pred |
| Predex | InCaseLaw | L-NLProc/PredEx_InCaseLaw_Pred |
| Predex | XLNet Large | L-NLProc/PredEx_XLNet_Large_Pred |
| Predex | RoBerta Large | L-NLProc/PredEx_RoBERTa_Large_Pred |
| Dataset | Method | Hugging Face link |
|---|---|---|
| Predex | Zephyr | Zephyr Hugging Face API |
| Predex | Gemini pro | Build with Gemini API |
| Predex | Llama-2-7B | L-NLProc/PredEx_Llama-2-7B_Pred |
| Predex | Llama-2-7B Instruction-tuning on prediction task | L-NLProc/PredEx_Llama-2-7B_Pred_Instruction-Tuned |
| Dataset | Method | Hugging Face link |
|---|---|---|
| Predex | Gemini pro | Build with Gemini API |
| Predex | Llama-2-7B | L-NLProc/PredEx_Llama-2-7B_Pred-Exp |
| Predex | Llama-2-7B Instruction-tuning on prediction with explanation task | L-NLProc/PredEx_Llama-2-7B_Pred-Exp_Instruction-Tuned |
| Dataset | Method | Hugging Face link |
|---|---|---|
| ILDC Expert | Llama-2-7B | L-NLProc/ILDC_Llama-2-7B_Pred-Exp |
| ILDC Expert | Llama-2-7B Instruction-tuning on prediction with explanation task | L-NLProc/ILDC_Llama-2-7B_Pred-Exp_Instruction-Tuned |
If you use our method or models, please cite our paper:
@inproceedings{nigam2024legal,
title={Legal judgment reimagined: PredEx and the rise of intelligent AI interpretation in Indian courts},
author={Nigam, Shubham Kumar and Sharma, Anurag and Khanna, Danush and Shallum, Noel and Ghosh, Kripabandhu and Bhattacharya, Arnab},
booktitle={Findings of the Association for Computational Linguistics: ACL 2024},
pages={4296--4315},
year={2024}
}
or
@inproceedings{nigam-etal-2024-legal,
title = "Legal Judgment Reimagined: {P}red{E}x and the Rise of Intelligent {AI} Interpretation in {I}ndian Courts",
author = "Nigam, Shubham and
Sharma, Anurag and
Khanna, Danush and
Shallum, Noel and
Ghosh, Kripabandhu and
Bhattacharya, Arnab",
editor = "Ku, Lun-Wei and
Martins, Andre and
Srikumar, Vivek",
booktitle = "Findings of the Association for Computational Linguistics: ACL 2024",
month = aug,
year = "2024",
address = "Bangkok, Thailand",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.findings-acl.255",
doi = "10.18653/v1/2024.findings-acl.255",
pages = "4296--4315",
abstract = "In the era of Large Language Models (LLMs), predicting judicial outcomes poses significant challenges due to the complexity of legal proceedings and the scarcity of expert-annotated datasets. Addressing this, we introduce \textbf{Pred}iction with \textbf{Ex}planation (PredEx), the largest expert-annotated dataset for legal judgment prediction and explanation in the Indian context, featuring over 15,000 annotations. This groundbreaking corpus significantly enhances the training and evaluation of AI models in legal analysis, with innovations including the application of instruction tuning to LLMs. This method has markedly improved the predictive accuracy and explanatory depth of these models for legal judgments. We employed various transformer-based models, tailored for both general and Indian legal contexts. Through rigorous lexical, semantic, and expert assessments, our models effectively leverage PredEx to provide precise predictions and meaningful explanations, establishing it as a valuable benchmark for both the legal profession and the NLP community.",
}
Jupyter Notebook
81.6%
Python
18.4%