Abstract
As Large Language Models (LLMs) are increasingly integrated into legal workflows, their ethical alignment with professional standards becomes paramount. This paper presents a comprehensive evaluation framework designed to measure the "professional competence" of LLMs through three lenses: legal instruction following, bias resistance (gender, age, career), and robustness under inducement. Our findings reveal a "legal-specific paradox": models fine-tuned on legal data often fail basic instruction-following tasks, while state-of-the-art general models like GPT-4 demonstrate significant gender bias in sentencing despite achieving parity in conviction rates.
Introduction
In the legal profession, practitioners are held to rigorous ethical codes and must pass professional licensing exams to ensure the fair administration of justice. However, LLMs are currently being deployed as legal assistants without equivalent "licensing" or standardized ethical vetting. Most existing evaluations focus on a model's ability to pass multiple-choice law exams, neglecting the critical dimension of ethical robustness. This study addresses this gap by investigating whether LLMs can ignore irrelevant demographic factors and maintain consistency when faced with suggestive legal principles.
Methodology
The researchers developed a three-tiered evaluation methodology utilizing the LeCaRD (Legal Case Retrieval Dataset), which contains authentic Chinese criminal judgments.
- Legal Instruction Following (IFR): Models were tested on their ability to provide outputs in a strictly defined format (e.g., a single numeral for a prison term) to evaluate their utility in structured legal environments.
- Bias Testing: Using core judicial documents, the researchers systematically permuted the defendant's Gender, Age, and Career. They measured the Conviction Rate (CR) and Average Term (AT) of imprisonment to detect if these non-legal factors influenced the model’s judgment.
- Legal Robustness: This included Self-Consistency (S-C) tests and Resistance to Inducement (RI). The latter measured how a model's judgment shifted when prompts were augmented with suggestive legal text, such as reminders of the "Presumption of Innocence" (POI).
Results
The Fine-Tuning Failure
A primary discovery was the failure of "Legal-specific" models—those fine-tuned specifically on legal corpora—to follow basic instructions. As shown in Figure 2, models like ChatLaw and LegalAid recorded an Instruction Following Rate (IFR) of 0%, rendering them ineffective for automated legal processing tasks compared to general-purpose models like GPT-4 and Qwen-Chat.
Conviction vs. Sentencing Bias
While top-tier models like GPT-4 and Qwen-Chat achieved perfect fairness in conviction rates (CR=1.0 for both genders), they exhibited severe bias during the sentencing phase. GPT-4, for instance, showed a Gender Bias in Average Term (GB-AT) of 46.2 months, sentencing male defendants to nearly four additional years of prison compared to females for identical case facts.
The "Legal Sounding" Trap
Models proved highly susceptible to "inducement." When prompts included a paragraph regarding the "Presumption of Innocence," GPT-4’s conviction rate dropped from 1.0 to 0.4, despite no change in the factual evidence. This suggests that LLMs may be "performing" a legal persona based on the prompt's tone rather than objectively analyzing the legal merits of a case.
Discussion and Limitations
The results highlight a significant alignment gap. General models possess the reasoning capabilities to follow instructions but lack the domain-specific ethical tuning to avoid demographic bias in complex tasks like sentencing. Conversely, legal-specific models appear to lose general instruction-following capabilities during the fine-tuning process.
The study is limited by its geographic focus on the PRC legal system and a relatively small sample of core judicial documents. Future work should expand the ethical breadth of these evaluations and focus on "steering" techniques to optimize professional performance without sacrificing general competence.
Conclusion
The "legal-specific paradox" identified in this study warns against the uncritical deployment of LLMs in the courtroom. Ensuring that AI assistants adhere to the same ethical rigors as human lawyers is essential for maintaining the credibility of the legal industry and protecting human interests.
Summary updated