ExpGuard: LLM Content Moderation in Specialized Domains

Minseok Choi, Dongjin Kim, Seungbin Yang, Subin Kim, Youngjun Kwak +3 more
3/3/2026
cs.CL

No official code found. Best implementation: brightjade/ExpGuard (8 stars, Apache-2.0, last commit 2026-01-28).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Source code for "ExpGuard: LLM Content Moderation in Specialized Domains", ICLR 2026

82Jinja, ShellMay 16, 20258 months agoApache-2.0
domain-specificguardrailsllmmoderationsafety

Similar Papers

Cite this paper

@article{choi2026expguard,
  title  = {ExpGuard: LLM Content Moderation in Specialized Domains},
  author = {Minseok Choi and Dongjin Kim and Seungbin Yang and Subin Kim and Youngjun Kwak and Juyoung Oh and Jaegul Choo and Jungmin Son},
  year   = {2026},
  eprint = {2603.02588},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.02588v1}
}

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/2603.02588.svg)](https://codeofpaper.com/paper/2603.02588)

Discussion