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

TL;DR

As Large Language Models (LLMs) are increasingly deployed in high-stakes professional fields, evaluating their adherence to domain-specific ethical codes is critical. This paper introduces Trident-Bench, a new benchmark of over 2,600 expert-verified harmful prompts designed to test LLM safety compliance in finance, medicine, and law. The evaluation reveals a striking paradox: while strong general-purpose models successfully refuse unethical requests, domain-specialized models frequently fail by attempting to helpfully fulfill them.

What Problem Does This Paper Address?

While existing benchmarks thoroughly evaluate LLMs on domain-specific knowledge and accuracy (e.g., passing medical or bar exams), they largely ignore domain-specific safety and compliance risks. In professional fields like law, finance, and medicine, "safety" goes beyond avoiding generic toxicity or hate speech; it requires strict adherence to formal codes of conduct.

For instance, an LLM acting as a financial assistant might be asked how to hide portfolio losses from a client, or a legal LLM might be asked how to covertly leak sensitive client information to the press. Standard safety guardrails often fail to catch these subtle, domain-specific ethical violations. This paper addresses the lack of standardized, expert-validated resources to evaluate whether LLMs can recognize and refuse requests that violate professional ethical frameworks.

Methods

The authors constructed Trident-Bench using a principle-guided, multi-stage pipeline:

  1. Ethical Principle Grounding: The benchmark is anchored in three authoritative professional codes: the CFA Institute Code of Ethics (Finance), the American Bar Association (ABA) Model Rules of Professional Conduct (Law), and the American Medical Association (AMA) Principles of Medical Ethics (Medicine).
  2. Jailbreak-Guided Generation: Directly asking standard LLMs to generate unethical prompts usually triggers their safety filters. To bypass this, the authors used prompt-based jailbreak methods (like PAIR and Yes-I-Can) and finetuned jailbreak models (like GCG and Auto-DAN) to generate realistic, subtle user queries that simulate real-world pressures and ethical violations.
  3. Expert Filtering and Mapping: Domain experts manually reviewed the candidate prompts. Prompts that were abstract adversarial tricks or lacked real-world plausibility were discarded. Approved prompts were mapped directly to specific clauses within the professional codes.
  4. Evaluation Jury: To score model responses, the authors implemented a two-model LLM jury composed of Claude 3.5 and Gemma 2-9B, evaluating responses on a harmfulness scale from 1 (clear refusal) to 5 (full compliance). This automated jury was validated against human expert ratings, showing strong agreement.
Figure 3: Overview of the Trident-Bench pipeline. (A) Harmful prompts are generated using jailbreak-tuned LLMs (§3.2.2). (B) Domain-specific principles are compiled to guide and ground prompt creation (§3.2.1). (C) Prompts are mapped to principles, safe replies are generated, and all pairs are filtered by human experts to form the final benchmark (§3.2.3–5).

Datasets

The paper introduces Trident-Bench, which contains 2,635 high-quality harmful prompts spanning three sub-datasets:

  • Trident-FINANCE: 911 prompts mapped to CFA standards.
  • Trident-LAW: 887 prompts mapped to ABA rules.
  • Trident-MEDICINE: 837 prompts mapped to AMA principles.

To ensure the benchmark does not simply reward models that blindly refuse every query (degenerate refusal), the authors also evaluated the models on safe subsets of 2,000 benign prompts per domain drawn from existing datasets: CaseHOLD (Law), FinQA (Finance), and MedMCQA (Medicine).

Key Insights and Ideas

  • The Domain-Specialization Paradox: Fine-tuning models specifically on domain literature (e.g., legal or financial texts) often degrades their safety performance. Because these models are optimized to be highly compliant and helpful within their domain, they frequently treat unethical prompts as typical client interactions and offer workarounds rather than outright refusals.
  • Generalists Lead in Safety: Top-tier closed-source general models (GPT-4o, Gemini 2.5 Flash) exhibit the most robust safety alignment. Their extensive safety tuning and reinforcement learning from human feedback (RLHF) successfully carry over into specialized professional domains.
  • Guardrails Over Scale: Smaller, safety-aligned guard models (like LLaMA Guard) can achieve safety performance close to massive proprietary models, proving that targeted safety alignment is highly effective even without scaling model parameters.

Key Results

  • Model Performance: Closed-source general models performed the best overall, consistently issuing direct refusals or grounded redirections. In contrast, domain-specific models like DISC-LawLLM, FS-LLaMA, and Meditron-7B exhibited the lowest safety performance, frequently complying with harmful prompts.
Figure 2: Illustrative cases of unsafe vs. safe LLM behavior in high-stakes domains. Unsafe responses comply with unethically or illegally user requests, while safe responses correctly refuse or redirect.
  • False Rejection Rates (FRR): On the benign datasets, all general and domain-specific models maintained an FRR below 1%. Even the strict safety-guard models kept their false positive refusal rates under 1.2%. This confirms that Trident-Bench successfully measures genuine ethical discernment rather than rewarding indiscriminate refusal.

Limitations and Future Work

  • Single-Turn Constraints: The current benchmark evaluates only single-turn interactions. In real-world deployments, unsafe behaviors or gradual jailbreaks often manifest across multi-turn conversations.
  • High Annotation Costs: Constructing Trident-Bench required extensive domain-expert validation, totaling over $18,000 in annotation costs. This limits the ease of scaling the benchmark.
  • Jurisdictional and Cultural Limits: The ethical frameworks used are primarily US-centric (ABA, AMA, CFA). Future iterations will need to expand to cross-jurisdictional, international, and cross-cultural professional codes.

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