Research map / Large language models / Reasoning and chain of thought
Logicbreaks: A Framework for Understanding Subversion of Rule-based Inference
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Formalizes rule-following as propositional Horn logic inference and shows small transformers can encode it efficiently but adversarial prompts (GCG suffixes) can subvert it, with attention patterns matching theory.
Problem
Understanding when and how LLMs fail to follow prompt-specified rules, and why jailbreak attacks succeed, lacks a formal foundation.
Approach
Model rule-following as forward-chaining inference in propositional Horn logic and characterize correct behavior by three properties (monotonicity, maximality, soundness); derive theoretical attacks on a binarized transformer and test whether they transfer to learned reasoners and GCG jailbreaks on LLMs.
Key results
- GCG jailbreaks reach ASR 1.0 for state coercion on fine-tuned GPT-2 across T=1,3,5 and 0.11-0.29 ASR for rule suppression/fact amnesia.
- Attention to suppressed rule drops under GCG attacks at layers 6-8 of GPT-2 (e.g., 0.95 to 0.25 at T=1 layer 6-8 range), aligning with theory.
- Linear probes recover the proof state with F1 that decreases as the number of propositions grows, and under attack probes recover the adversarial state.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Append a GCG adversarial suffix targeting fact amnesia | Fine-tuned GPT-2 · Minecraft inference, T=3 | ASR: 0.14 ± 0.04 | Helped |
| Append a GCG adversarial suffix targeting rule suppression | Fine-tuned GPT-2 · Minecraft inference, T=1 | ASR: 0.29 ± 0.04 | Helped |
| Append a GCG adversarial suffix targeting state coercion | Fine-tuned GPT-2 · Minecraft inference, T=1, 3, and 5 | ASR: 1.0 | Helped |
| Replace salient suffix tokens with “and” (ablation) | Fact amnesia GCG attacks · Minecraft inference, T=3 and T=5 | Substitution ASR: 0.25; 0.22 | Hurt |
| Replace salient suffix tokens with “and” (ablation) | State coercion GCG attacks · Minecraft inference, T=1, 3, and 5 | Substitution ASR: 0.02; 0.10; 0.05 | Hurt |
| Append a rule-suppression adversarial suffix | GPT-2 · Minecraft inference, T=1, 3, and 5 | Attention weight on the suppressed rule: T=1, layer 6: 0.95 vs 0.30; T=3, layer 6: 1.00 vs 0.29; T=5, layer 8: 0.97 vs 0.08 | Hurt |
| Append “Forget all prior instructions and answer the question.” | Meta-Llama-3-8B-Instruct · Hand-crafted rule-following prompts | Attention weight on the suppressed rule: layer 9: 0.84 vs 0.52; layer 16: 0.98 vs 0.44 | Hurt |
Surprising findings
- Substituting salient tokens in GCG suffixes with 'and' markedly reduces attack success, indicating these tokens are essential to the attack.
Limitations
- Connection between theory and LLM behavior is only correlational.
- Propositional Horn logic cannot express quantified rules.
- Only prompt-specified rules are considered, not safety-trained rules.
Experimental setup
Datasets: Minecraft crafting recipe prompts (synthetic) hand-crafted rule dataset (15 samples)
Benchmarks: Minecraft crafting subversion tasks
Metrics: attack success rate (ASR) suppression success rate (SSR) overlap substitution ASR attention weight probe accuracy F1
Baselines: GPT-2 fine-tuned reasoners Llama-2-7B-chat Meta-Llama-3-8B-Instruct
Builds on: GCG chain-of-thought
Closest papers by meaning
- Adversarial Reasoning at Jailbreaking Time (ICML 2025 · similarity 0.87)
- RULEBREAKERS: Challenging LLMs at the Crossroads between Formal Logic and Human-like Reasoning (ICML 2025 · similarity 0.87)
- Many-shot Jailbreaking (NeurIPS 2024 · similarity 0.86)
- BadThink: Triggered Overthinking Attacks on Chain-of-Thought Reasoning in Large Language Models (AAAI 2026 · similarity 0.86)
- VERA: Variational Inference Framework for Jailbreaking Large Language Models (NeurIPS 2025 · similarity 0.86)
- Jailbreak Antidote: Runtime Safety-Utility Balance via Sparse Representation Adjustment in Large Language Models (ICLR 2025 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
