[논문 리뷰] ExpGuard: LLM Content Moderation in Specialized Domains
1-2문장 직접 답변 요약: 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의 일반 안전 벤치마크에서의 경쟁력 있는 성능을 보여주면서 도메인 특이적 시나리오에서 우수성을 입증한다.
제안 방법
- 도메인 특화 피해를 다루는 금융, 건강관리 및 법률 영역의 Prompts-Response 쌍 58,928개로 ExpGuardMix를 구성한다.
- 위키피디아에서 도메인 용어를 추출하고 Wikidata와 GPT-4o로 필터링하며 세 명의 주석자(다수결)로 검증한다.
- Wikipedia 초록을 기반으로 맥락을 갖춘 유해 및 비해로운 도메인 특화 프롬프트를 GPT-4o로 생성하고 도메인 인식 안전 검사를 통해 해당 거부를 생성한다.
- 3-모델 앙상블(Claude 3.7 Sonnet, Gemini 2.0 Flash, Qwen2.5-Max)을 사용하여 단계별 CoT 합리화를 통해 라벨링하고 정확한 해 악성 범주에 대해 합의를 요구한다.
- Sentence Transformers를 사용해 중복 제거를 통해 다양성을 보장하고 라벨 불일치 샘플을 버린다(대략 4.8% 제거).
- 프롬프트 및 프롬프트-응답 쌍의 안전/비안전 여부를 예측하기 위해 다중 작업 설정에서 ExpGuard를 훈련한다.]

실험 결과
연구 질문
- RQ1금융, 건강 관리 및 법률에 대해 도메인 중심의 가드레일이 도메인 특이 콘텐츠 및 적대적 프롬프트에 대해 일반 가드레일보다 우수하게 작동할 수 있는가?
- RQ2ExpGuard가 일반 안전 벤치마크에서의 성능을 유지하면서 도메인 강인성을 탁월하게 제공하는가?
- RQ3도메인 특이 데이터(현장 데이터 또는 인간 작성 데이터) 가 도메인 특이성 및 일반 안전 성능에 어떤 기여를 하는가?
- RQ4ExpGuard가 도메인 특이적 탈출 및 적대적 공격에 견고한가, 그리고 도메인-적대적 증강(ExpGuard+)이 회복력을 더 향상시키는가?
주요 결과
- ExpGuard는 ExpGuardTest에서 프롬프트 분류에 대해 93.3% F1, 응답 분류에 대해 92.7% F1을 달성하여 WildGuard보다 각각 최대 8.9% 포인트, 15.3% 포인트 우수한 성능을 보인다.
- ExpGuardTest에서 ExpGuard는 프롬프트에서 94.1%(금융), 91.2%(의료), 94.6%(법률) F1; 응답에서 96.7%(금융), 86.2%(의료), 92.4%(법률) F1을 달성한다.
- ExpGuard는 여덟 개의 공개 안전 벤치마크에서 최첨단 수준에 대응하거나 이를 상회하며 프롬프트 평균 F1이 85.7%로(이전 SOTA보다 5.3포인트 높음) 일반화 또한 견고하다.
- Ablation 연구는 도메인 특이 데이터가 결정적임을 보여준다(프롬프트 F1이 제거되면 8.0포인트 하락), 반면 현장 데이터와 인간 작성 데이터는 일반화에 기여한다.
- ExpGuard+(도메인 특이적 적대적 증강 버전)는 모든 벤치마크에서 도메인 특이적 탈출 프롬프트에 대한 회복력을 크게 향상시킨다.
- ExpGuard는 코드, 데이터, 모델과 함께 오픈 소스화되어 추가 도메인에 대한 적응을 가능하게 한다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.