Judging by Appearances? Auditing and Intervening Vision-Language Models for Bail Prediction

Sagnik Basu, Shubham Prakash, Ashish Maruti Barge, Siddharth D Jaiswal, Abhisek Dash, Saptarshi Ghosh, Animesh MukherjeearXiv 2025

TL;DR

This paper audits state-of-the-art Vision-Language Models (VLMs) on the high-stakes task of legal bail prediction and reveals that out-of-the-box models perform poorly, confidently denying bail to deserving individuals. To address this, the authors introduce two key interventions: a precedent-aware Retrieval-Augmented Generation (RAG) pipeline and a specialized fine-tuning strategy that masks visual tokens. Together, these interventions significantly boost prediction accuracy and fairness, paving the way for safer assistive AI tools in courtrooms.

What Problem Does This Paper Address?

Artificial Intelligence is rapidly making inroads into the legal domain, particularly in Legal Judgment Prediction (LJP). While previous systems relied strictly on text-based case files, the advent of Vision-Language Models (VLMs) opens the door to multimodal inputs—allowing systems to process visual evidence, scanned documents, or even mugshots alongside text.

However, VLMs are notoriously prone to biases. If deployed blindly in a courtroom setup, they could inadvertently base high-stakes freedom decisions on an individual's appearance rather than the legal facts of the case. This paper tackles this critical gap by auditing how standalone VLMs behave when tasked with predicting bail outcomes using both case facts and images of the accused, and proposes engineering guardrails to mitigate their flaws.

Methods

The authors designed a multi-stage framework to evaluate and improve VLMs for bail prediction:

  1. The Standalone Audit: They evaluated four state-of-the-art open-source VLMs (LLaVA-NeXT, Qwen2.5-VL, Idefics3, and InternVL3.5) by feeding them a paired image (mugshot) and text (case facts) prompt to predict a binary outcome: bail granted or denied.
  2. Intervention I (Precedent-Aware RAG): To mimic the common law system where judges rely on past rulings, they built a RAG pipeline. For any given case, the system retrieves the top three most legally similar cases from the training set using Euclidean distance and appends them to the prompt as context.
  3. Intervention II (Domain-Specific Fine-Tuning): They applied Supervised Fine-Tuning (SFT) using two approaches:
  4. Vanilla SFT: Fine-tuning on case facts alone.
  5. Offense-Type Induced SFT: Using GPT-4o to cluster legal keywords into specific offense categories (e.g., theft, narcotics) to generate structured "typed-facts."

The Crucial Trick: During fine-tuning, the authors froze the vision encoder and completely masked the image tokens (setting attention weights to 0). This forced the model to base its learning purely on legal text, ensuring it wouldn't form spurious correlations between facial features and bail outcomes.

Figure 1. Overall fine-tuning design. For vanilla setup typed-facts are not added; however, in offense type induced setup, the whole architecture is in use.

Datasets

Because no off-the-shelf multimodal bail dataset exists, the authors curated a novel benchmark by pairing two distinct datasets:

  • Illinois DOC Labeled Faces Dataset: Contains prisoner mugshots with demographic metadata (race, gender) and offense types. The authors focused on four intersectional groups: White Male (WM), Black Male (BM), White Female (WF), and Black Female (BF).
  • Hindi Legal Documents Corpus (HLDC): A dataset of 17K Indian legal case reports containing facts, arguments, and ground-truth bail decisions. The text was translated into English using the IndicTrans2 model.

Key Insights and Ideas

  • Confidently Wrong: Out-of-the-box VLMs are dangerously overconfident. In approximately 68% of cases where standalone models incorrectly denied bail to a deserving individual, they did so with high confidence.
  • The Common Law Advantage: Simply providing legal precedents via RAG drastically improves a model's judgment without modifying its weights. Legal context acts as a powerful anchor against hallucinated biases.
  • Blinding the Model Works: Masking image tokens during training ensures the VLM learns the underlying legal logic from the text while remaining robust enough to handle multimodal inputs during inference.

Key Results

The performance was evaluated using Accuracy, Negative Likelihood Ratio (LR-), and Negative Predictive Value (NPV). In legal contexts, a low LR- and high NPV are vital because it is worse to wrongly deny freedom to an innocent person than to accidentally grant bail to a criminal.

  • Baseline Failure: Standalone models performed worse than a coin flip, with accuracies hovering below 50% (except InternVL at 58.10%) and dismal NPV rates (~38-45%).
  • RAG Performance Jump: Introducing the precedent-aware RAG pipeline ($M[RAG]$) yielded immediate improvements, notably boosting Qwen's accuracy by 16.14%.
  • Fine-Tuning + RAG Triumph: The offense-type induced model combined with RAG ($M^O[RAG]$) achieved the highest performance across the board. Llava-NeXT reached an overall accuracy of 75.72%, and Idefics3 reached 72.74%, accompanied by a dramatic reduction in false-negative rates (LR-).
Detailed quantitative metrics across all audited models and intervention strategies.

Qualitative analysis showed that the interventions successfully flipped incorrect "bail denied" decisions to correct "bail granted" decisions by aligning the current case with highly relevant retrieved precedents.

Examples of case text and the corresponding retrieved precedents that corrected the VLM's predictions.

Limitations and Future Work

While the interventions yielded massive improvements, the authors note several limitations:

  • Synthetic Pairing: The dataset pairs real American mugshots with real Indian legal cases due to data scarcity. Real-world deployment would require localized, organically multimodal datasets.
  • Performance Ceiling: Even the best-performing model topped out at ~76% accuracy. In a high-stakes legal environment, a 24% error rate is unacceptable for autonomous decision-making.

The authors strongly conclude that VLMs in their current state are not suitable for standalone deployment and must only be used as assistive, human-in-the-loop tools under strict regulatory oversight.

Summary updated

BibTeX
@misc{basu2025judging,
  author = {Sagnik Basu and Shubham Prakash and Ashish Maruti Barge and Siddharth D Jaiswal and Abhisek Dash and Saptarshi Ghosh and Animesh Mukherjee},
  title = {{Judging by Appearances? Auditing and Intervening Vision-Language Models for Bail Prediction}},
  year = {2025},
  eprint = {2510.00088},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.00088},
}
Figure