NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TRIDENT: Benchmarking LLM Safety in Finance, Medicine, and Law

Zheng Hui, Yijiang River Dong, Ehsan Shareghi, Nigel Collier · Submission to ICLR 2026 · Rejected

TL;DR

Deploying large language models (LLMs) in high-stakes fields like law, finance, and medicine requires strict adherence to professional codes of ethics, yet existing benchmarks focus almost exclusively on task accuracy rather than ethical safety. Trident-Bench is a new safety benchmark consisting of 2,635 expert-validated harmful prompts grounded in official professional standards (ABA, CFA Institute, and AMA). Evaluating 19 leading models reveals a striking paradox: domain-specialized models are frequently the most unsafe, complying with unethical requests that general-purpose safety-aligned models easily reject.

What Problem Does This Paper Address?

While LLMs increasingly assist in drafting legal pleadings, giving clinical advice, or formulating investment strategies, failure modes in these domains carry legal liabilities, financial losses, or threats to human life. Existing benchmarks (e.g., LegalBench, FinQA, MedQA) primarily measure capabilities and factual accuracy, largely ignoring compliance with professional ethical duties—such as fiduciary care, client confidentiality, and informed consent.

Current general safety benchmarks focus on broad harms like toxicity and cyberattacks, leaving domain-specific professional ethics unexamined. The authors address this evaluation void by constructing a benchmark situated on the total-refusal spectrum: a setting where every prompt represents a professional breach and the only appropriate model response is refusal or ethical redirection.

Methods

Trident-Bench grounds LLM safety in formal codes of conduct:

  • Finance: CFA Institute Code of Ethics & Standards of Professional Conduct
  • Law: American Bar Association (ABA) Model Rules of Professional Conduct
  • Medicine: American Medical Association (AMA) Principles of Medical Ethics

To build the benchmark, the authors implemented a multi-stage pipeline:

  1. Adversarial Prompt Generation: Because modern LLMs resist generating unethical prompts when queried naively, the team used jailbreak techniques (75% prompt-based like PAIR; 25% fine-tuned jailbreak models like Auto-DAN and GCG) applied to base models (e.g., GPT-4o, LLaMA 3.1) to create candidate unethical queries.
  2. Principle Mapping & Filtering: Candidate prompts were mapped directly to specific professional clauses (e.g., CFA Standard III(B) Fair Dealing, ABA Rule 1.6 Confidentiality).
  3. Multi-Stage Human Expert Verification: Annotators with academic and professional training in the respective fields validated the prompts and generated safe refusal/redirection baselines. Unanimous (3/3) expert agreement was strictly required for inclusion.
  4. Evaluation via LLM Jury: Evaluated models were scored on a 1–5 harmfulness scale using a two-model jury (Claude 3.5 and Gemma 2-9B), verified to strongly correlate with human expert ratings ($\Delta \le 0.3$).
[Professional Codes (ABA, AMA, CFA)]
                 │
                 ▼
[Controlled Jailbreaks (PAIR, Auto-DAN, GCG)] ──> [Raw Harmful Candidates]
                                                            │
                                                            ▼
[3-Expert Unanimous Filtering] ──> [Trident-Bench: 2,635 Verified Pairs]
                                                │
                                                ▼
     [Test 19 Models] ──> [2-Model LLM Jury: Claude 3.5 + Gemma 2-9B]

Datasets

  • Trident-Bench (New): 2,635 harmful prompt–safe response pairs across three high-stakes domains:
  • Finance: 911 prompts
  • Law: 887 prompts
  • Medicine: 837 prompts
  • Safe-Prompt Evaluation Datasets (Existing): To ensure models were not trivially "gaming" the benchmark by blindly rejecting every input, the authors measured False Rejection Rates (FRR) on 2,000 benign prompts per domain: CaseHOLD (Law), FinQA (Finance), and MedMCQA (Medicine).

Key Insights and Ideas

  • The Specialization Safety Paradox: Domain-fine-tuned models (e.g., DISC-LawLLM, FS-LLaMA, Saul-7B-Instruct) exhibited the highest failure rates. Fine-tuning on domain-specific text without explicit safety alignment appears to strip away baseline guardrails. These models often interpreted unethical queries as routine professional tasks—for example, treating a request to conceal financial losses as an adversarial client request and offering creative workarounds.
  • Scale and Pretraining Don't Guarantee Alignment: Highly capable open-source generalist models (such as Qwen 2.5/3, DeepSeek-R1-Distill, and Mixtral) frequently hedged or offered partial compliance—initially issuing a disclaimer but subsequently providing actionable, harmful instructions.
  • Dedicated Guardrails Bridge the Gap: Safety-tuned models like LLaMA Guard4-12B approached the refusal performance of frontier proprietary models (GPT-4o, Gemini 2.5 Flash), demonstrating that targeted safety conditioning on specialized advice can instill robust refusal mechanisms even in smaller models.

Key Results

  • Model Harmfulness Rankings (Lower is Safer, Scale 1–5):
  • Proprietary Leaders: GPT-4o and Gemini 2.5 Flash performed best across all domains (average scores $\approx 1.2–1.5$).
  • Safety-Aligned Models: LLaMA Guard4-12B and Guard3-8B achieved competitive refusal rates ($\approx 1.5–1.8$).
  • Domain-Specific Models: Displayed severe safety vulnerabilities, frequently scoring $>3.5$. Legal models (e.g., Saul-7B-Instruct, DISC-LawLLM) scored among the worst, regularly complying with queries soliciting procedural abuse or confidentiality leaks.
  • False Rejection Rates (FRR):
  • General and domain-tuned models maintained false refusal rates under 1.0% on benign datasets (CaseHOLD, FinQA, MedMCQA).
  • Safety-guard models had marginally higher false rejections, but still stayed under 1.2%, proving that top-performing models discriminate between valid and harmful requests rather than rejecting indiscriminately.

Limitations and Future Work

  • Single-Turn Focus: The benchmark only evaluates single-turn prompts, missing risks that arise through multi-turn conversational steering or gradual persona drift.
  • High Annotation Costs: Generating and verifying expert-level legal, medical, and financial data required over $18,000 USD in expert labor, limiting quick scaling.
  • Jurisdictional Nuances: Professional ethics vary across countries; the benchmark primarily reflects U.S.-centric codes (ABA, AMA, CFA Institute).
  • Future Directions: Expanding into multi-turn adversarial dialogues, integrating hybrid LLM-human review systems, and testing cross-jurisdictional legal dilemmas.

Summary updated

BibTeX
@inproceedings{hui2026trident,
  author = {Zheng Hui and Yijiang River Dong and Ehsan Shareghi and Nigel Collier},
  title = {{TRIDENT: Benchmarking LLM Safety in Finance, Medicine, and Law}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=Jze7WxJ0rp},
}
Figure