paper-with-me

Papers

TEMPLATEFUZZ: Fine-Grained Chat Template Fuzzing for Jailbreaking and Red Teaming LLMs

2026-04-14 · Qingchao Shen, Zibo Xiao, Lili Huang, Enwei Hu, Yongqiang Tian, Junjie Chen arxiv

Large Language Models (LLMs) are increasingly deployed across diverse domains, yet their vulnerability to jailbreak attacks, where adversarial inputs bypass safety mechanisms to elicit harmful outputs, poses significant security risks. While prior work has primarily focused on prompt injection attacks, these approaches often require resource-intensive prompt engineering and overlook other critical components, such as chat templates. This paper introduces TEMPLATEFUZZ, a fine-grained fuzzing framework that systematically exposes vulnerabilities in chat templates, a critical yet underexplored attack surface in LLMs. Specifically, TEMPLATEFUZZ (1) designs a series of element-level mutation rules to generate diverse chat template variants, (2) proposes a heuristic search strategy to guide the chat template generation toward the direction of amplifying the attack success rate (ASR) while preserving model accuracy, and (3) integrates an active learning-based strategy to derive a lightweight rule-based oracle for accurate and efficient jailbreak evaluation. Evaluated on twelve open-source LLMs across multiple attack scenarios, TEMPLATEFUZZ achieves an average ASR of 98.2% with only 1.1% accuracy degradation, outperforming state-of-the-art methods by 9.1%-47.9% in ASR and 8.4% in accuracy degradation. Moreover, even on five industry-leading commercial LLMs where chat templates cannot be specified, TEMPLATEFUZZ attains a 90% average ASR via chat template-based prompt injection attacks.

📄 PDF Abstract BibTeX arXiv:2604.12232

Code (0)

등록된 구현이 없습니다.

Tasks

Prompt EngineeringActive LearningRed Teaming

Similar Papers 제목 키워드 기반

GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts

2023-09-19 · Jiahao Yu, Xingwei Lin, Zheng Yu, Xinyu Xing

Large language models (LLMs) have recently experienced tremendous popularity and are widely used from casual conversations to AI-driven programming. However, despite their considerable success, LLMs are not entirely reli…

Red Teaming

MultiFuzz: A Dense Retrieval-based Multi-Agent System for Network Protocol Fuzzing

2025-08-19 · Youssef Maklad, Fares Wael, Ali Hamdi, Wael Elsersy 외 arxiv

Traditional protocol fuzzing techniques, such as those employed by AFL-based systems, often lack effectiveness due to a limited semantic understanding of complex protocol grammars and rigid seed mutation strategies. Rece…

TurboFuzzLLM: Turbocharging Mutation-based Fuzzing for Effectively Jailbreaking Large Language Models in Practice

2025-02-21 · Aman Goel, Xian Carrie Wu, Zhe Wang, Dmitriy Bespalov 외

Jailbreaking large-language models (LLMs) involves testing their robustness against adversarial prompts and evaluating their ability to withstand prompt attacks that could elicit unauthorized or malicious responses. In t…

ChatBug: A Common Vulnerability of Aligned LLMs Induced by Chat Templates

2024-06-17 · Fengqing Jiang, Zhangchen Xu, Luyao Niu, Bill Yuchen Lin 외

Large language models (LLMs) are expected to follow instructions from users and engage in conversations. Techniques to enhance LLMs' instruction-following capabilities typically fine-tune them using data structured accor…

Instruction FollowingSafety Alignment

ChatReID: Open-ended Interactive Person Retrieval via Hierarchical Progressive Tuning for Vision Language Models

2025-02-27 · Ke Niu, Haiyang Yu, Mengyang Zhao, Teng Fu 외

Person re-identification (Re-ID) is a critical task in human-centric intelligent systems, enabling consistent identification of individuals across different camera views using multi-modal query information. Recent studie…

Person Re-IdentificationPerson RetrievalVisual Question Answering (VQA)