Logicbreaks: A Framework for Understanding Subversion of Rule-based Inference
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
We study how to subvert large language models (LLMs) from following prompt-specified rules. We first formalize rule-following as inference in propositional Horn logic, a mathematical system in which rules have the form "if P and Q, then R" for some propositions P, Q, and R. Next, we prove that although small transformers can faithfully follow such rules, maliciously crafted prompts can still mislead both theoretical constructions and models learned from data. Furthermore, we demonstrate that popular attack algorithms on LLMs find adversarial prompts and induce attention patterns that align with our theory. Our novel logic-based framework provides a foundation for studying LLMs in rule-based settings, enabling a formal analysis of tasks like logical reasoning and jailbreak attacks.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 44 of its 57 references that are in the map. First posted on arXiv 21 Jun 2024.
Builds on
44 of 57 references.
Closest ancestors · 9
Same direction, newest first
- 2024Don't Say No: Jailbreaking LLM by Suppressing Refusal25 Apr
- 2024LLMs Can Defend Themselves Against Jailbreaking in a Practical Manner: A Vision Paper24 Feb
- 2024JailbreakRadar: Comprehensive Assessment of Jailbreak Attacks Against LLMs8 Feb
- 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritization15 Nov
- 2023Jailbreaking Black Box Large Language Models in Twenty Queries12 Oct
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generation10 Oct
- 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attacks5 Oct
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Models27 Jul
- 2023Jailbroken: How Does LLM Safety Training Fail?5 Jul
Other references · 35
- 2017Attention Is All You Needcited by 59,932
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2013Intriguing properties of neural networkscited by 5,114
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2023Mistral 7Bcited by 3,065
23 more
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 684
- 2023Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignmentcited by 394
- 2023Towards Revealing the Mystery behind Chain of Thought: A Theoretical Perspectivecited by 293
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 286
- 2023Faithful Chain-of-Thought Reasoningcited by 285
- 2022Transformers Learn Shortcuts to Automatacited by 260
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 191
- 2023Automatically Auditing Large Language Models via Discrete Optimizationcited by 187
- 2023Navigate through Enigmatic Labyrinth A Survey of Chain of Thought Reasoning: Advances, Frontiers and Futurecited by 184
- 2023Deductive Verification of Chain-of-Thought Reasoningcited by 122
- 2023Automatic Prompt Augmentation and Selection with Chain-of-Thought from Labeled Datacited by 119
- 2022Overcoming a Theoretical Limitation of Self-Attentioncited by 110
- 2020Adversarial Training for Large Neural Language Modelscited by 109
- 2022On the Paradox of Learning to Reason from Datacited by 93
- 2022Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexitycited by 92
- 2023Reprompting: Automated Chain-of-Thought Prompt Inference Through Gibbs Samplingcited by 46
- 2023Boosting Logical Reasoning in Large Language Models through a New Framework: The Graph of Thoughtcited by 41
- 2023On the Expressivity Role of LayerNorm in Transformers' Attentioncited by 32
- 2024The Ethics of Interaction: Mitigating Security Threats in LLMscited by 30
- 2023Average-Hard Attention Transformers are Constant-Depth Uniform Threshold Circuitscited by 26
- 2024Evaluation Ethics of LLMs in Legal Domaincited by 8
Built on by
Citing papers per year: 2024: 2; 2025: 1.
3 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Reasoning as a Weapon: Adaptive Dual-Path Jailbreak Attack on Large Language Models
- 2025Patterns Over Principles: The Fragility of Inductive Reasoning in LLMs under Noisy Observations
- 2025Turning Logic Against Itself : Probing Model Defenses Through Contrastive Questions
- 2026STAR: Detecting Inference-time Backdoors in LLM Reasoning via State-Transition Amplification Ratio
- 2025Formalization Driven LLM Prompt Jailbreaking via Reinforcement Learning
- 2025POT: Inducing Overthinking in LLMs via Black-Box Iterative Optimization
- 2025Adversarial Reasoning at Jailbreaking Time
- 2025Chain-of-Code Collapse: Reasoning Failures in LLMs via Adversarial Prompting in Code Generation