Structural Safety Generalization ProblemsThe Structural Safety Generalization Problem
Red-teaming compares semantically equivalent structures: multi-turn unimodal average ASR 24.1%, single-turn 21.0%; on GPT-4o, the SR Guard ASR is 6%.
The attacker maintains semantic equivalence, only changing dialogue turns, text/layout images, single/multiple images, language, or cipher to induce harmful responses. The paper lists interpretability, cross-model and cross-target transfer as scope, and mentions closed black box models. Guardrail experiments perform external refusal detection in a black box setting. The paper does not specify parameter access level. The victim systems are the tested dialogue and multimodal LLMs.
- The authors argue that safety does not generalize across semantic equivalence classes: after the same instruction is converted to multi-turn, multi-image, or a low-resource language, the safe response is not automatically preserved. They define this as an intermediate problem that is more tractable than general defense but necessary for long-term safety.
- Keep semantics, change only structure: word substitution and Caesar for single-turn/multi-turn, typographic image decomposition and color substitution for single-image/multi-image, Welsh and Tamil for translation. SR Guardrail uses the same model to convert input to plain English, then decides whether to block based on whether that form is rejected.
- All-model average: multi-turn unimodal ASR 24.1%, single-turn 21.0%; multi-image 28.4%, single-image 16.4%. On GPT-4o, the full SR Guard has an ASR of 6%, NeMo 7%, and FPR 17% vs. 42% (Table 4).
- The authors note that existing data do not include more variants within each type and other structures, and hope for a larger set of structural attacks, human-machine comparison, and representation-layer defenses. The experimental side covers 8 multi-turn models and 6 multimodal models, with languages English, Welsh, and Tamil.
- Evaluated models
- GPT-3.5 Turbo (GPT-3.5-Turbo-0125)GPT-4 (GPT-4-0125-preview)GPT-4o (GPT-4o-2024-05-13)Claude 3 Haiku (Claude-3-Haiku-20240307)Claude 3 Sonnet (Claude-3-Sonnet-20240229)Claude 3 Opus (Claude-3-Opus-20240229)Llama 3 8b (LLaMA3-8b-instruct)Llama 3 70b (LLaMA3-70b-instruct)GPT-4o miniClaude 3.5 SonnetGemini 1.5 FlashGemini 1.5 Pro
- Benchmarks
- AdvBenchmulti-turn harmful datasetmulti-turn benign datasetmultimodal harmful datasetmultimodal benign datasetCommonCrawl CC-MAIN-2024-42
- Metrics
- ASRFPRDSRStrongREJECT scorePrecisionRecallF1MCC
The researchers propose viewing the failure of LLM safety to generalize across semantically equivalent inputs as a key failure mechanism, and within this framework, through red-teaming, they discover three types of vulnerabilities: multi-turn, multi-image, and translation-rewriting. The paper states that these attacks are semantically equivalent to their corresponding single-turn, single-image, or untranslated versions, facilitating systematic comparison, and results show that different input structures lead to different safety outcomes. The authors also propose a Structure Rewriting Guardrail that rewrites inputs into structures more conducive to safety evaluation, significantly improving refusal of harmful inputs while avoiding over-refusal of normal inputs.
Paper analysis
What problem does this paper attempt to solve?
The authors frame the inconsistency in safety across semantically equivalent inputs as a structural safety generalization problem and test it with red-teaming and a rewriting guardrail.
Safety does not generalize across semantic equivalence classes: after the same content is restructured, a safe response to one input does not guarantee safety for another.
- Scenario: The authors argue that single-turn, single-image, and high-resource-language attacks have been studied more, but multi-turn interaction, multi-image, and low-resource-language capabilities have emerged; a change in structure can change the safety outcome.
- Existing gap: The authors cite mismatched generalization from Wei et al. (2024) and state that the problem remains unsolved to date (Anwar et al., 2024). Jailbreaks via competing objectives that change meaning are out of scope.
- Observation: The authors propose Strong Structural Safety Generalization. To improve tractability, they define a weak version constrained to semantic equivalence, explainability, cross-model transferability, and cross-target transferability.
- Threat model:
- Goal: Elicit misaligned harmful responses when semantics are unchanged.
- Knowledge: Open-weight and closed models are tested with prompts; the transfer criterion explicitly includes closed black box models. Guardrail experiments perform external refusal detection in a black box setting. The paper does not state whether attackers can read parameters.
- Capability: Changing turns, text and typeset images, single vs. multi images, language, and ciphers. Image background replacement is not optimized.
- Victim system: The tested conversational LLMs and multimodal LLMs. Success is defined as a StrongREJECT score greater than 0.
- Contribution: Red-teaming within this framework, releasing semantically equivalent multi-structure data, and proposing the Structure Rewriting (SR) Guardrail, which rewrites inputs into structures more amenable to safety evaluation.
What related research exists?
Related work covers single-turn/multi-turn jailbreaks, payload splitting, password prompting, and guardrails; the authors claim this paper isolates structural effects with semantic invariance.
Mismatched generalization and multi-turn jailbreaks
- Problem source: Wei et al. (2024) divide jailbreak failures into competing objectives and mismatched generalization. The authors focus on the subset of the latter where semantics remain equivalent, excluding examples such as "requesting web content seen in pretraining but not mentioned in safety training."
- Single-turn literature: The authors state that much jailbreak work is single-input, single-output (Wei et al., 2024; Xu et al., 2024b; Shen et al., 2024b; Chowdhury et al., 2024).
- Multi-turn: Russinovich et al. (2024) and Yang et al. (2024) report that multi-turn interaction introduces new vulnerabilities. Li et al. (2024c) argue that models that can block automated single-turn jailbreaks may still be broken by human multi-turn jailbreaks. The authors claim this is the first work to construct comparable single-turn and multi-turn attacks while keeping meaning unchanged, thereby isolating structural effects.
Payload splitting and ciphers
- Splitting: Schulhoff et al. (2024) split harmful content into benign parts, which the target model then reassembles. Gong et al. (2023)'s FigStep embeds instructions into typeset images and splits them into fragments; Schulhoff (2022) discusses fragment concatenation. The authors follow Gong et al.'s approach for non-optimized decomposition images.
- Encoding: Handa et al. (2024) use word-substitution ciphers to obfuscate intent; Yuan et al. (2023) use Caesar ciphers. Wei et al. (2024) discuss encoding to bypass defenses. Kang et al. (2024) is classified under payload-splitting mismatched generalization.
- Translation: Yong et al. (2023), Deng et al. (2024), and Xu et al. (2024a) show that after translating the same content into another language, both safe and harmful responses can occur.
Guardrails
- NeMo: Rebedea et al. (2023) is described by the authors as an industry-standard-style representative of using LLMs to audit LLMs. The authors state its topical rails use canonical forms and embeddings, but these are not in its safety guardrails.
- Rewriting and classification: Ma et al. (2023)'s query rewriting is used for retrieval-augmented generation. Wang et al. (2024) have LLMs adaptively add safety content to prompts rather than fully rewriting. Chi et al. (2024), Han et al. (2024), and Ghosh et al. (2025) use fine-tuned models to classify without transforming inputs; Alon and Kamfonas (2023) use perplexity filtering for high-complexity inputs. The authors state that, to their knowledge, the SR Guardrail has not been tested before.
Baselines and data
- Baseline methods: The main guardrail experiments compare NeMo Guardrails and GPT-4o alone, with GPT-4o as the backbone. The appendix also compares NeMo and a custom LLM Judge using GPT-3.5 and GPT-4.
- Benchmarks/datasets: Harmful multi-turn targets come from LLM-augmented AdvBench (Zou et al., 2023). Multimodal harmful and benign instructions are LLM-generated. Evaluation uses StrongREJECT (Souly et al., 2024). Welsh and Tamil are selected by CommonCrawl proportion following Deng et al. (2024).
The authors position this work as "changing only structure, not semantics": it enables paired comparisons and also allows rewriting inputs back to plain English; this differs from meaning-changing jailbreaks and from guardrails that only classify without rewriting.
How does the paper address this problem?
The method keeps semantics unchanged and only changes structure to compare safety, then uses the SR Guardrail to rewrite inputs into plain English before evaluation.
The overall approach is to restrict attacks to semantic equivalence classes, red-team with paired structures, and then rewrite inputs back to plain English for defense. The framework is called structural safety generalization; the defense is called the Structure Rewriting Guardrail.
Problem setup
- Strong version: Within a semantic equivalence class, a safe response to one input should guarantee safety for equivalent inputs. Language translation, single-turn vs. multi-turn, and plain text vs. typeset images are given as examples.
- Structural linking: A bijective link M is structural if the linked samples are all semantically equivalent. A system is M-link safe if being safe on any input implies safety on the corresponding input under M. A mechanism over a class of links solves structural safety for that class if it holds for all such M. The authors state the problem is solved only when it holds for all reasonable M.
- Equivalence and weak version: Equivalence requires that the transformation is reasonably specified or the embeddings are sufficiently similar, and that the harm labels are the same, written I(x)=I(y). Embedding models are mentioned as a practical measure, but the experiments do not report verification using embeddings. The weak version additionally requires explainability, cross-model transferability, and cross-target transferability.
Attack structures and data
- Multi-turn ciphers: Extends the word-substitution approach of Handa et al. (2024) to multi-turn, splitting the same prompt into segments according to a mapping. Input mappings include random substitution and mappings that read as benign after perplexity filtering. The output side additionally requires a Caesar cipher. Templates are given in Appendix A. The authors state that preliminary tests without input ciphers had very low success rates and were not pursued further.
- Images and languages: Follows Gong et al. (2023) for non-optimized typeset decomposition; the perturbed version replaces the white background with a random solid color. Color-substitution ciphers use background colors to map paired words. Welsh and Tamil are obtained by translation. In CommonCrawl CC-MAIN-2024-42, Welsh is 0.012%, Tamil 0.047%, and English 43.42%.
- Scale: 4,136 multi-turn harmful instructions, augmented by an LLM from AdvBench with a starting sentence prompt, paired with English Cipher, Welsh, Tamil, and single-turn/multi-turn, for 6 structures and 24,816 examples. Multimodal harmful instructions: 500 instructions, 5 categories, 13 variants, 6,500 examples. Benign multi-turn sets each have 1,200 examples of "toxic-word but benign intent" and "fully benign." Benign multimodal: 90 examples. Figure 1 and Figure 2 show examples of multi-turn Caesar and perturbed decomposition multi-image, with captions mapping them to the merged single-turn or single-image forms.
SR Guardrail
- Mapping: C maps input P to Pc in a canonical subspace. The authors choose plain English text, citing safety performance in Table 1. In evaluation, the base B and rewriting model C use the same model, and C's capability is stated to be no lower than B's. The full prompt is given in Appendix E.2.
- Decision: If B refuses Pc, the original input is labeled unsafe; otherwise, the response is generated from the original input. Black box experiments use StrongREJECT for external refusal detection. The authors mention that activation space could also be inspected (Arditi et al., 2024; Pan et al., 2025), but this is not used in the experiments.
- Pipeline: Algorithm 1 first rewrites, then checks whether the canonical form is refused; if refused, it returns that refusal; otherwise, it returns the response to the original input.
Success criteria
Attack success rate is defined as ASR = (∑i=1|D| ⌈ S(Qi, Ri) ⌉)/(|D|), where S is the StrongREJECT score from 0 to 1, scored by gpt-4-1106-preview on a rubric. S=0 indicates refusal or failure to decode. The paper also specifies: in any run, if S(Q, R)>0, the attack is counted as successful. DSR measures whether the response indicates the model decoded the canonical English instruction; the automatic judge backbone is GPT-4o-mini with greedy sampling, temperature and top P set to 0.
What experiments did the paper conduct?
In English visual structures, multi-image ASR is often higher than text; on GPT-4o, the SR Guard macro-average ASR is .06 and FPR .17 (Table 4).
Experimental setup
- Multi-turn models: GPT-3.5-Turbo-0125, GPT-4-0125-preview, GPT-4o-2024-05-13, Claude-3-Haiku-20240307, Claude-3-Sonnet-20240229, Claude-3-Opus-20240229, LLaMA3-8b-instruct, LLaMA3-70b-instruct (Appendix F.1).
- Multimodal models: GPT-4o-2024-05-13, GPT-4o-mini-2024-07-18, gemini-1.5-flash-001, gemini-1.5-pro-001, Claude-3.5-Sonnet-20240620, Claude-3-Haiku-20240307. Temperature 1.0, top P 1.0, no external guardrails; Gemini safety settings set to block none. The paper does not report multi-turn temperature.
- Data and construction models: 4,136 multi-turn harmful instructions, 24,816 examples, augmented from AdvBench by Mixtral-8x7b, with Mistral-7b as backup. Multimodal harmful: 500 instructions, 6,500 examples, generated by GPT-4o or Dolphin 2.1 Mistral 7B. Benign multimodal: 90 examples generated by GPT-4o; benign multi-turn targets generated by ChatGPT.
- Comparisons and metrics: Comparisons are single-turn/multi-turn, text/single-image/multi-image, English/Welsh/Tamil, and NeMo vs. GPT-4o alone. ASR uses StrongREJECT (gpt-4-1106-preview). Section 4.4 specifies that any run with S(Q, R)>0 counts as success; tables also report means over 3 runs. FPR is the refusal rate on benign comparisons.
- Replication: Harmful multimodal: 3 runs per dataset, comparison sets 1 run. Tables 1–3 report mean ± standard error. The paper does not state the sample size per cell in Table 3, nor does it report numerical agreement between the judge and humans.
Main results
The table below shows the 3-run mean English multimodal ASR (from Table 1). Standard errors are in the original table.
Swipe horizontally to read the table
Model Text Single-image unperturbed Single-image Cipher Multi-image unperturbed Multi-image Cipher Claude 3 Haiku 0.01 0.10 0.06 0.27 0.28 Claude 3.5 Sonnet 0.01 0.00 0.09 0.25 0.01 GPT-4o 0.10 0.13 0.24 0.37 0.50 GPT-4o Mini 0.09 0.03 0.21 0.02 0.46 Gemini 1.5 Flash 0.03 0.72 0.42 0.30 0.67 Gemini 1.5 Pro 0.02 0.23 0.11 0.26 0.24 - Average gap: The authors report that across all models, multi-image multimodal ASR is 28.4% and single-image 16.4%; single-turn unimodal 21.0% and multi-turn unimodal 24.1%. The authors state that blocking one structure does not guarantee blocking the others.
- Direction is not uniform: The authors state that multi-image usually succeeds more often, but call Gemini 1.5 Flash an exception in the aggregate comparison. The main text gives its single-image ASR as 47.3% and multi-image as 42.3%, citing Table 9; Appendix Table 9 gives 50.20 and 42.33. In Table 1, multi-image is not higher for every model or every Cipher column.
- Multi-turn asymmetry: The authors state that in Figure 3(a), 41.7% of Claude 3 Opus's successful attacks succeeded only in multi-turn and 8.3% only in single-turn. The caption states the asymmetry is diverse and large, with models ordered by Elo. Other bar heights cannot be read from the text.
Multi-turn output formats
- Table 3: Lists only 5 models. Claude 3 Sonnet single-turn Welsh ASR is 0.84±0.06, multi-turn Welsh 0.72±0.07. GPT-4 Preview multi-turn Welsh is 0.04±0.01 and Tamil 0.03±0.01, lower than its single-turn Welsh 0.58±0.02 and Tamil 0.19±0.01.
- Ciphers: In Table 7, random word substitution and perplexity-filtered multi-turn "all" ASR are both 24.1, single-turn 21.0 and 20.4. The authors state that once the model understands the problem, Caesar output is stronger than no output cipher; multi-turn DSR is listed as 54.1 vs. 26.7. These two columns match the 21.0% and 24.1% values in the main text; the paper does not state whether they are the same aggregation.
- Models not covered in tables: Llama 3 and GPT-4o listed in Section 4.3 appear in the model names of Figure 3(a); Table 3 does not report their ASR.
Languages and decoding
- Text translation: In Table 2, Gemini 1.5 Flash and Pro have Welsh and Tamil text ASR of 0.00±0.00. The authors state that text translation attacks are harder for most models than the original English queries, and Gemini blocked all such attacks.
- Cell exceptions: GPT-4o Welsh single-image ASR is 0.86±0.05, higher than its English single-image unperturbed 0.13±0.02 (Table 2). The main text also gives combined LRL multimodal ASR 8.58% and HRL 22.35%, citing Table 3; the Table 3 title is output formats and does not list these two combined values.
- Comprehension rate: The main text states that 2.83% of visual LRL instructions were correctly understood, and 44.82% of text LRL, citing Table 14. The authors cite the relevance curse from Shen et al. (2024a), stating that malicious prompts in low-resource languages often make models produce less relevant responses.
Guardrails and benign refusals
- Table 4: The subset is the previously strongest perturbed decomposition and CSC decomposition for GPT-4o, plus benign counterparts; metrics are macro-averaged across categories. ASR: GPT-4o .44, NeMo .07, full SR Guard .06, classifier-only .14. FPR: .13, .42, .17, .06. Recall: NeMo .76, full SR .89, classifier-only .90.
- Author interpretation: The main text states the full SR Guard ASR is 6%, NeMo 7%, GPT-4o 44%, and FPR 17% vs. 42%. The authors state FPR increases by 4% over the base and ASR decreases by 38%, and that the classifier-only 6% FPR is mainly StrongREJECT false positives upon manual inspection. The main text also states the classifier recall is 0.902.
- Over-refusal: In Table 10, Claude 3.5 Sonnet ASR is 13.00% and FPR 69.44%; GPT-4o is 44.00% and 12.78%. The authors argue overgeneralization is more pronounced in regions where safety training is denser relative to pretraining, citing ciphers as an example. In Figure 6, the authors state ASR and FPR are negatively correlated, Pearson r = −0.70, p = 0.1178.
Other ablations and analyses
- Table 8: GPT-4o English text StrongREJECT mean is 0.07±0.24, multi-image Cipher 0.20±0.34.
- Table 14: Welsh text DSR, Gemini 1.5 Flash 62.7%, GPT-4o-mini 15.6%; GPT-4o Tamil multi-image DSR 0.0%.
- Appendix G.3: The multimodal LLM Judge labels 42% of benign decomposed image prompts as benign and 58% of benign color-substitution cipher prompts as benign.
- Table 11: Proportion of multi-turn cipher attacks not blocked: conversation-aware NeMo on GPT-3.5 62.2%, on GPT-4 0%; non-conversation-aware Judge on GPT-3.5 5.2%, on GPT-4 0%.
- Table 12: FPR on fully benign multi-turn ciphers: GPT-4 NeMo 96.1%, GPT-3.5 NeMo 0%; on semi-benign, GPT-3.5 Judge 77.14%, GPT-4 Judge 35.71%.
- Table 13: Single-turn cipher attacks not blocked: NeMo on GPT-3.5 50%, on GPT-4 51.8%; Judge 27.2% and 14.1%.
What are some points that can be further explored?
The authors note that the dataset does not include all structural variants and believe that representation-level defenses and human-model comparisons still require future research.
Limitations and future directions noted by the authors
- Incomplete coverage of types: Multi-turn, multimodal, cipher, and low-resource languages are covered, but there are variants within these types, and entirely different types are not included in the dataset (Limitations).
- Larger attack set: The authors believe that building a larger structured attack dataset on existing data would be a valuable contribution (Limitations).
- Human-model comparison: The authors note that humans also exhibit inconsistencies like framing effects, but in different forms than models; they think humans are unlikely to react very differently to the single-turn and multi-turn prompts in this paper. Future comparisons of structural robustness between humans and AI may be insightful. The authors also state that human robustness does not change the importance of building robust AI (Limitations).
- Defenses still need research: The authors describe SR Guardrail as a prototype in input space and write that with further experiments it could become a practical tool. They write that representation-level defenses leveraging link data and this problem framework still require research (Limitations).
Experimental coverage
- Models: Multi-turn experiments list 8 models, multimodal experiments list 6, with versions in Appendix F.1. The ASR in Table 3 includes only Claude 3 Haiku, Sonnet, Opus, GPT-3.5 Turbo, and GPT-4 Preview.
- Data and languages: Harmful multi-turn: 4,136 instructions, 24,816 examples; harmful multimodal: 500 instructions, 5 categories, 6,500 examples. Languages are English, Welsh, Tamil.
- Protocol: Harmful multimodal runs 3 times, control set 1 time. Multimodal temperature 1.0, top P 1.0, Gemini set to block none. The paper does not report multi-turn temperature, nor numerical values for StrongREJECT and human agreement.
- Guardrails: The backbone in Table 4 is GPT-4o, with NeMo Guardrails and standalone GPT-4o as controls. The appendix additionally reports dialogue-aware and non-dialogue-aware NeMo and LLM Judge, with backbones written as GPT-3.5 and GPT-4.
- Construction and evaluation: Multi-turn word mapping is generated by Mixtral-8x7b; image decomposition is stated as not optimized. Success rule is any run with S(Q, R)>0.
Summarize the main content of the paper
The paper consolidates structural differences in jailbreaks into a comparable problem, reports asymmetries in multi-turn/multi-image/low-resource languages, and proposes a rewriting guardrail.
The authors group a set of jailbreaks into structural safety generalization: semantically equivalent inputs should not receive different safety outcomes because of different presentation structures.
- Problem: Single-turn vs. multi-turn, text vs. image, high-resource vs. low-resource languages can all be seen as structural links within the same equivalence class. The authors then narrow the scope using interpretability, cross-model transfer, and cross-target transfer, and call this more tractable than general defenses, but a necessary condition for long-term safety.
- Approach: Word substitution and Caesar for single-turn/multi-turn comparisons; typographic image decomposition and color substitution ciphers for single-image/multi-image comparisons; Welsh and Tamil for translation comparisons. SR Guardrail uses the same model to convert input to plain English, then decides whether to block based on whether that form is rejected.
- Attack results: Across all models on average, single-turn single-modal ASR is 21.0%, multi-turn is 24.1%; single-image multimodal is 16.4%, multi-image is 28.4%. Among Claude 3 Opus's successful attacks, 41.7% succeeded only in multi-turn and 8.3% only in single-turn. In Table 2, Gemini's Welsh and Tamil text ASR is 0.00, while GPT-4o's Welsh single-image is 0.86±0.05.
- Guardrails: On the two strongest multimodal attack types against GPT-4o, the main text reports full SR Guard ASR of 6%, NeMo 7%, GPT-4o alone 44%, with FPR of 17%, 42%, corresponding to the base's 13% (Table 4 records .06, .07, .44, .17, .42, .13). In Table 10, Claude 3.5 Sonnet's benign refusal rate is 69.44%.
- Authors' conclusion: The authors state that frontier models still fail due to structure when semantics are controlled; if this generalization can be solved, a large class of jailbreaks can be removed, and it may become a step toward more general alignment. SR Guardrail is written as a prototype in input space; representation-layer defenses still require research.