TRIDENT: Enhancing Large Language Model Safety with Tri-Dimensional Diversified Red-Teaming Data Synthesis

Xiaorui Wu, Xiaofeng Mao, Fei Li, Xin Zhang, Xuanhong Li +3 more
5/30/2025
cs.CL

No official code found. Best implementation: FishT0ucher/TRIDENT (7 stars, last commit 2025-08-23).

Abstract

Large Language Models (LLMs) excel in various natural language processing tasks but remain vulnerable to generating harmful content or being exploited for malicious purposes. Although safety alignment datasets have been introduced to mitigate such risks through supervised fine-tuning (SFT), these datasets often lack comprehensive risk coverage. Most existing datasets focus primarily on lexical diversity while neglecting other critical dimensions. To address this limitation, we propose a novel analysis framework to systematically measure the risk coverage of alignment datasets across three essential dimensions: Lexical Diversity, Malicious Intent, and Jailbreak Tactics. We further introduce TRIDENT, an automated pipeline that leverages persona-based, zero-shot LLM generation to produce diverse and comprehensive instructions spanning these dimensions. Each harmful instruction is paired with an ethically aligned response, resulting in two datasets: TRIDENT-Core, comprising 26,311 examples, and TRIDENT-Edge, with 18,773 examples. Fine-tuning Llama 3.1-8B on TRIDENT-Edge demonstrates substantial improvements, achieving an average 14.29% reduction in Harm Score, and a 20% decrease in Attack Success Rate compared to the best-performing baseline model fine-tuned on the WildBreak dataset.

View on arXivView PDF

Code Implementations(1)

FishT0ucher/TRIDENTCommunity100%

TRIDENT: Enhancing Large Language Model Safety with Tri-Dimensional Diversified Red-Teaming Data Synthesis

71Mar 23, 20251 years ago

Similar Papers

Cite this paper

@article{wu2025trident,
  title  = {TRIDENT: Enhancing Large Language Model Safety with Tri-Dimensional Diversified Red-Teaming Data Synthesis},
  author = {Xiaorui Wu and Xiaofeng Mao and Fei Li and Xin Zhang and Xuanhong Li and Chong Teng and Donghong Ji and Zhuang Li},
  year   = {2025},
  eprint = {2505.24672},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.24672v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.24672.svg)](https://codeofpaper.com/paper/2505.24672)

Discussion