Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Peeking Inside LLMs: Leveraging Internal Artifacts of LLMs for Enhancing Reliability in Legal Classification

About

Large Language Models (LLMs) are increasingly being adopted in the legal domain. However, despite their strong performance, LLMs are prone to generating incorrect or hallucinated outputs, raising serious concerns about their reliability in high-stakes domains such as law. Detecting the correctness of responses of LLM-based systems is therefore a critical challenge. In this work, we explore the potential of leveraging internal artifacts of LLM to detect the correctness of their predictions in legal-domain classification tasks. We develop approaches that utilize features derived from these internal artifacts to build downstream classifiers capable of identifying incorrect LLM outputs. We evaluate our approach on two representative legal classification tasks: bail decision prediction and statute violation prediction. Our experimental results demonstrate that LLMs' internal artifacts are reliable indicators for detecting incorrect predictions in legal classification tasks, and can be applied to enhance the reliability of LLM-based classification systems.

Sudipta Santra, Debtanu Datta, Saptarshi Ghosh• 2026

Related benchmarks

TaskDatasetResultRank
Legal Judgment PredictionILDC (test)
Accuracy84.52
27
Legal Judgment PredictionECHR (test)
Accuracy82.15
27
Showing 2 of 2 rows

Other info

Follow for update