[論文レビュー] ExpGuard: LLM Content Moderation in Specialized Domains
ExpGuard はドメイン認識型ガードレールと ExpGuardMix データセットを金融、ヘルスケア、法分野向けに導入し、最先端のドメイン安全性を達成、オープンソース。
With the growing deployment of large language models (LLMs) in real-world applications, establishing robust safety guardrails to moderate their inputs and outputs has become essential to ensure adherence to safety policies. Current guardrail models predominantly address general human-LLM interactions, rendering LLMs vulnerable to harmful and adversarial content within domain-specific contexts, particularly those rich in technical jargon and specialized concepts. To address this limitation, we introduce ExpGuard, a robust and specialized guardrail model designed to protect against harmful prompts and responses across financial, medical, and legal domains. In addition, we present ExpGuardMix, a meticulously curated dataset comprising 58,928 labeled prompts paired with corresponding refusal and compliant responses, from these specific sectors. This dataset is divided into two subsets: ExpGuardTrain, for model training, and ExpGuardTest, a high-quality test set annotated by domain experts to evaluate model robustness against technical and domain-specific content. Comprehensive evaluations conducted on ExpGuardTest and eight established public benchmarks reveal that ExpGuard delivers competitive performance across the board while demonstrating exceptional resilience to domain-specific adversarial attacks, surpassing state-of-the-art models such as WildGuard by up to 8.9% in prompt classification and 15.3% in response classification. To encourage further research and development, we open-source our code, data, and model, enabling adaptation to additional domains and supporting the creation of increasingly robust guardrail models.
研究の動機と目的
- 高リスク分野(金融、ヘルスケア、法)におけるドメイン特化用語と概念の一般的ガードレールの安全性ギャップに対処する。
- ガードレールを評価するための大規模でドメイン重視の安全性データセット(ExpGuardMix)と専門家が注釈したベンチマーク(ExpGuardTest)を作成する。
- ドメイン内容に対して良好に機能し、ドメイン特有のアドバーサリアル攻撃に耐性を示す専門的ガードレールモデル(ExpGuard)を訓練する。
- ExpGuard が一般的な安全性ベンチマークで競争力のある性能を示しつつ、ドメイン特有のシナリオで卓越することを実証する。
提案手法
- 金融、ヘルスケア、法分野のドメイン特有の有害性を含む 58,928 件のラベル付き prompts(Prompts-Response ペア)で ExpGuardMix を構築する。
- Wikipedia からドメイン用語を抽出し、Wikidata と GPT-4o でフィルタリングし、3名のアノテーターの多数決で検証する。
- Wikipedia の要約を文脈として GPT-4o を用いて有害・無害のドメイン特有の prompts を生成し、ドメイン認識のセーフティチェックを用いて対応する拒否を作成する。
- データに 3-model アンサンブル(Claude 3.7 Sonnet、Gemini 2.0 Flash、Qwen2.5-Max)を用いた段階的な CoT 推論でラベル付けを行い、正確な有害性カテゴリについてコンセンサスを要求する。
- Sentence Transformers を用いてデータを重複排除し、多様性を確保する。ラベルの不一致があるサンプルは除外(約 4.8% 削除)。
- 多タスク設定で ExpGuard を訓練し、 prompts および prompt-response ペアの安全/非安全を予測する。

実験結果
リサーチクエスチョン
- RQ1金融、ヘルスケア、法に焦点を当てたドメイン特化ガードレールは、一般的なガードレールを上回る域内コンテンツや敵対的 prompts に対して優れた性能を示すか?
- RQ2ExpGuard は一般的な安全性ベンチマークで強力な性能を維持しつつ、ドメイン特異性における堅牢性を提供するか?
- RQ3ドメイン特有のデータ(現場でのデータや人手作成データ) は、ドメイン特化および一般的な安全性の性能にどのように寄与するか?
- RQ4ExpGuard はドメイン特有の jailbreak や adversarial 攻撃に対して頑健か、ドメイン対抗のデータ拡張(ExpGuard+)は耐性をさらに向上させるか?
主な発見
- ExpGuard は ExpGuardTest でのプロンプト分類 F1 が 93.3%、応答分類 F1 が 92.7% を達成し、WildGuard を最大で 8.9%、それぞれ 15.3% 上回る。
- ExpGuardTest では、プロンプト F1 が金融 94.1%、医療 91.2%、法 94.6%、応答 F1 が金融 96.7%、医療 86.2%、法 92.4%。
- ExpGuard は公的な安全性ベンチマークのうち八つで現行最先端と同等以上を示し、平均プロンプト F1 は 85.7%(従来のSOTAより 5.3 ポイント上)で、一般化力も堅牢。
- アブレーションにより、ドメイン特有のデータが重要であることが示され(プロンプト F1 が削除で 8.0 ポイント低下)、現場データや人手作成データは一般化へ寄与。
- ExpGuard+(ドメイン特有の adversarial に拡張したバージョン)は、ベンチマークを横断してドメイン特有の jailbreak prompts に対する耐性を大幅に向上させる。
- ExpGuard はコード・データ・モデルを含むオープンソースで、追加ドメインへの適用を可能にしている。

この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。