TL;DR
Language Diffusion Models (LDMs) offer exciting new possibilities for text generation, but their flexible decoding can introduce novel trustworthiness challenges. This paper introduces TrustLDM, a comprehensive benchmark and an automated evaluation framework (TrustLDM-Auto) to systematically assess the safety, privacy, and fairness of LDMs, revealing significant vulnerabilities that existing benchmarks miss.
What Problem Does This Paper Address?
Language Diffusion Models (LDMs) are emerging as powerful alternatives to traditional auto-regressive language models. Their key advantage lies in their ability to decode tokens in parallel and in any order, leading to faster generation speeds and enabling new applications like filling arbitrary text spans. However, this flexibility also introduces a critical problem: existing trustworthiness benchmarks are designed for auto-regressive models and fail to capture the unique risks associated with LDMs. The authors argue that the unordered or dynamically scheduled decoding process of LDMs violates the assumptions of current safety controls, potentially exposing new vulnerabilities. This gap means that the trustworthiness of LDMs remains largely unexamined, hindering their broader adoption.
Methods
The paper introduces two main contributions:
- TrustLDM Benchmark: This is a novel, comprehensive benchmark specifically designed to evaluate the trustworthiness of LDMs. It covers three key dimensions:
- Safety: Assesses the model's propensity to generate harmful content.
- Privacy: Evaluates the model's ability to protect sensitive information.
-
Fairness: Measures bias in predictions, particularly concerning gender.
The benchmark utilizes various static contexts (prefix and suffix) and explores six different decoding orders and four LDM architectures.
-
TrustLDM-Auto: An automated evaluation framework that leverages the inherent flexibility of LDMs. This framework uses an "attack model" (an LLM) and a "judge model" to iteratively optimize prefix and suffix contexts. It employs a Hierarchical Search (HS) strategy, first broadly exploring candidates across generation lengths and decoding orders, then refining them with more steps. This is followed by Space Shrinking (SS) in later stages to focus on promising configurations. This dynamic approach aims to uncover worst-case failure modes that static benchmarks might miss.
Datasets
The paper introduces the TrustLDM benchmark, which comprises several datasets for evaluation:
- TrustLDM-Adv & TrustLDM-JBB: Datasets for safety evaluation, derived from existing benchmarks like AdvBench and JailbreakBench, containing harmful prompts.
- TrustLDM-PRI: A dataset for privacy evaluation, where LDMs are simulated as database managers to assess their compliance with privacy constraints.
- TrustLDM-Fair: A dataset for fairness evaluation, using the UCI Adult dataset to assess gender bias in income prediction.
The paper also mentions using publicly available datasets and model-generated outputs for their evaluations.
Key Insights and Ideas
- Flexibility is a Double-Edged Sword: While LDMs' flexible decoding offers efficiency, it significantly degrades trustworthiness when malicious contexts are introduced. This is a core finding that differentiates LDMs from auto-regressive models.
- Context Matters, Especially Post-Context: LDMs are highly sensitive to post-context information, even if it's benign. Malicious contexts, especially when combined with prefixes, dramatically increase harmfulness and privacy leaks.
- Decoding Order is Crucial: Certain decoding orders (like Right-to-Left) are more susceptible to post-context influence, leading to higher failure rates.
- Static Benchmarks are Insufficient: The development of TrustLDM-Auto highlights that dynamic, model-specific context generation is necessary to fully expose LDM vulnerabilities, as static approaches can be "gamed."
- Fairness is Fragile: LDMs exhibit good fairness in benign settings but become highly susceptible to bias when manipulated with contexts, particularly concerning gender.
Key Results
- Safety: While LDMs show low harmful rates (HR ≤ 3%) with empty contexts, introducing suffixes and prefixes significantly increases HR. For instance, with suffix+prefix contexts, HR can exceed 80% for some models and orders.
- Privacy: Leakage Rates (LR) are generally low with empty or safe contexts. However, with malicious contexts, LR can reach nearly 95% for all models, especially when both suffix and prefix are injected.
- Fairness: Equalized Odds Difference (EOD) scores are low with empty contexts, but malicious contexts cause them to exceed 85%. The paper notes a strong negative correlation between fairness and accuracy, suggesting that improving one doesn't necessarily harm the other.
- TrustLDM-Auto Performance: The automated framework achieves near-perfect attack performance across all models and dimensions, demonstrating its effectiveness in uncovering vulnerabilities.
Limitations and Future Work
- Context Length Nuances: The paper found that longer contexts don't always lead to worse outcomes, sometimes even improving alignment due to model capacity limitations or degraded generation quality. This suggests a complex interplay that warrants further investigation.
- Model-Specific Vulnerabilities: The authors note that the effectiveness of certain decoding orders and contexts can be model-specific, indicating a need for tailored evaluation strategies.
- Future Work: The authors hope TrustLDM and TrustLDM-Auto will serve as a foundation for building more trustworthy LDMs. They suggest that developers should consider decoding order and context when aligning models. The TrustLDM-Auto framework's ability to efficiently identify worst-case failures is a promising direction for future research in robust LLM evaluation.
Summary updated