InSaAF: Incorporating Safety through Accuracy and Fairness | Are LLMs ready for the Indian Legal Domain?

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Tripathi, Yogesh, Donakanti, Raghav, Girhepuje, Sahil, Kavathekar, Ishan, Vedula, Bhaskara Hanuma, Krishnan, Gokul S, Goyal, Shreya, Goel, Anmol, Ravindran, Balaraman, Kumaraguru, Ponnurangam
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916289394507776
author Tripathi, Yogesh
Donakanti, Raghav
Girhepuje, Sahil
Kavathekar, Ishan
Vedula, Bhaskara Hanuma
Krishnan, Gokul S
Goyal, Shreya
Goel, Anmol
Ravindran, Balaraman
Kumaraguru, Ponnurangam
author_facet Tripathi, Yogesh
Donakanti, Raghav
Girhepuje, Sahil
Kavathekar, Ishan
Vedula, Bhaskara Hanuma
Krishnan, Gokul S
Goyal, Shreya
Goel, Anmol
Ravindran, Balaraman
Kumaraguru, Ponnurangam
contents Recent advancements in language technology and Artificial Intelligence have resulted in numerous Language Models being proposed to perform various tasks in the legal domain ranging from predicting judgments to generating summaries. Despite their immense potential, these models have been proven to learn and exhibit societal biases and make unfair predictions. In this study, we explore the ability of Large Language Models (LLMs) to perform legal tasks in the Indian landscape when social factors are involved. We present a novel metric, $β$-weighted $\textit{Legal Safety Score ($LSS_β$)}$, which encapsulates both the fairness and accuracy aspects of the LLM. We assess LLMs' safety by considering its performance in the $\textit{Binary Statutory Reasoning}$ task and its fairness exhibition with respect to various axes of disparities in the Indian society. Task performance and fairness scores of LLaMA and LLaMA--2 models indicate that the proposed $LSS_β$ metric can effectively determine the readiness of a model for safe usage in the legal sector. We also propose finetuning pipelines, utilising specialised legal datasets, as a potential method to mitigate bias and improve model safety. The finetuning procedures on LLaMA and LLaMA--2 models increase the $LSS_β$, improving their usability in the Indian legal domain. Our code is publicly released.
format Preprint
id arxiv_https___arxiv_org_abs_2402_10567
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle InSaAF: Incorporating Safety through Accuracy and Fairness | Are LLMs ready for the Indian Legal Domain?
Tripathi, Yogesh
Donakanti, Raghav
Girhepuje, Sahil
Kavathekar, Ishan
Vedula, Bhaskara Hanuma
Krishnan, Gokul S
Goyal, Shreya
Goel, Anmol
Ravindran, Balaraman
Kumaraguru, Ponnurangam
Computation and Language
Artificial Intelligence
Recent advancements in language technology and Artificial Intelligence have resulted in numerous Language Models being proposed to perform various tasks in the legal domain ranging from predicting judgments to generating summaries. Despite their immense potential, these models have been proven to learn and exhibit societal biases and make unfair predictions. In this study, we explore the ability of Large Language Models (LLMs) to perform legal tasks in the Indian landscape when social factors are involved. We present a novel metric, $β$-weighted $\textit{Legal Safety Score ($LSS_β$)}$, which encapsulates both the fairness and accuracy aspects of the LLM. We assess LLMs' safety by considering its performance in the $\textit{Binary Statutory Reasoning}$ task and its fairness exhibition with respect to various axes of disparities in the Indian society. Task performance and fairness scores of LLaMA and LLaMA--2 models indicate that the proposed $LSS_β$ metric can effectively determine the readiness of a model for safe usage in the legal sector. We also propose finetuning pipelines, utilising specialised legal datasets, as a potential method to mitigate bias and improve model safety. The finetuning procedures on LLaMA and LLaMA--2 models increase the $LSS_β$, improving their usability in the Indian legal domain. Our code is publicly released.
title InSaAF: Incorporating Safety through Accuracy and Fairness | Are LLMs ready for the Indian Legal Domain?
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2402.10567