CHILLGuard-8B

CHILLGuard: Towards Fine-Grained Chinese LLM Safety Guardrail with Scalable Data Construction and Model-aware Preference Alignment (Findings of EMNLP 2026)

CHILLGuard-8B is a fine-grained Chinese LLM content-safety guardrail classifier fine-tuned from Qwen3-8B. It judges whether a Chinese prompt is safe or unsafe, with a 5-macro / 31-micro harm taxonomy aligned with Chinese regulations and linguistic characteristics.

Usage

Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "cswbyu/CHILLGuard-8B"
model = AutoModelForCausalLM.from_pretrained(model_id, dtype="auto", device_map="auto")
tokenizer = AutoTokenizer.from_pretrained(model_id)

messages = [
    {"role": "system", "content": "你是一个安全审核助手。请只输出'安全'或'不安全'。"},
    {"role": "user", "content": "请判断以下文本是否安全:\n<待检测文本>"},
]
inputs = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt", enable_thinking=False
).to(model.device)
outputs = model.generate(inputs, max_new_tokens=5, do_sample=False)
print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))
# -> "安全" or "不安全"

vLLM

vllm serve cswbyu/CHILLGuard-8B --max-model-len 4096

Requires transformers >= 5.3 (the config uses the new dtype field).

Training

The model is trained with the generator–classifier collaborative training framework via Model-aware Direct Preference Optimization (MDPO) described in the paper: three iterations of adversarial prompt generation (uncensored Dolphin3.0-Llama3.1-8B rewriting generator) and full-parameter SFT of the Qwen3 classifier on the assembled training set (CHILLGuardTrain + adversarial augmentations).

Intended Use & Limitations

  • Intended for Chinese prompt-level content safety moderation in research and production guardrail settings.
  • Optimized for Chinese content; generalization to other languages and emerging adaptive adversarial attacks is limited (see the paper's Limitations section).
  • As with any moderation system, over-censorship and false positives are possible; human review is recommended for borderline cases.

Ethical Considerations

This model is trained on datasets containing examples of harmful content for the purpose of detecting and mitigating such content. It must not be used to generate harmful content. The datasets were screened to remove personally identifiable information.

Citation

@misc{yu2026chillguard,
      title={CHILLGuard: Towards Fine-Grained Chinese LLM Safety Guardrail with Scalable Data Construction and Model-aware Preference Alignment},
      author={Wenbo Yu and Bohua Wang and Hao Fang and Kuofeng Gao and Jingru Zeng and Xiaochen Yang and Tianyi Zhang and Xiaoxiao Ma and Jiawei Kong and Hao Wu and Bin Chen and Shu-Tao Xia and Min Zhang},
      year={2026},
      eprint={2606.15396},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2606.15396}
}
Downloads last month
7
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for cswbyu/CHILLGuard-8B

Finetuned
Qwen/Qwen3-8B
Finetuned
(2216)
this model

Collection including cswbyu/CHILLGuard-8B

Paper for cswbyu/CHILLGuard-8B