HumorReject: Decoupling LLM Safety from Refusal Prefix via A Little Humor

Zihui Wu, Haichang Gao, Jiacheng Luo, Zhaoxiang Liu
1/23/2025
cs.LGcs.CR

Official code: wooozihui/HumorReject (4 stars, last commit 2025-12-07).

Abstract

Large Language Models (LLMs) commonly rely on explicit refusal prefixes for safety, making them vulnerable to prefix injection attacks. We introduce HumorReject, a novel data-driven approach that reimagines LLM safety by decoupling it from refusal prefixes through humor as an indirect refusal strategy. Rather than explicitly rejecting harmful instructions, HumorReject responds with contextually appropriate humor that naturally defuses potentially dangerous requests. Our approach effectively addresses common "over-defense" issues while demonstrating superior robustness against various attack vectors. Our findings suggest that improvements in training data design can be as important as the alignment algorithm itself in achieving effective LLM safety. The code and dataset are available at https://github.com/wooozihui/HumorReject.

View on arXivView PDF

Code Implementations(1)

[AAAI 2026 AIA] Code for the paper "HumorReject: Decoupling LLM Safety from Refusal Prefix via A Little Humor"

40PythonJan 19, 202510 months ago

Similar Papers

Cite this paper

@article{wu2025humorreject,
  title  = {HumorReject: Decoupling LLM Safety from Refusal Prefix via A Little Humor},
  author = {Zihui Wu and Haichang Gao and Jiacheng Luo and Zhaoxiang Liu},
  year   = {2025},
  eprint = {2501.13677},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.13677v3}
}

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

Discussion