potentialpaper

Reasoning Against Alignment: When Logical Consistency Overrides Ethical Safeguards in LLMs

Yulong Wang, Yifei Fu, Qihao Hu

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Large language models (LLMs) are increasingly deployed in safety-critical domains, yet their alignment with ethical constraints remains fragile, particularly when prompts require structured reasoning. We uncover a vulnerability, Reasoning Against Alignment, where LLMs generate harmful content not through misunderstanding but as the logically coherent outcome of multi-step inference. Through black-box and white-box analyses across both commercial and open-source LLMs, we show that logically reframed prompts cause models to prioritize internal coherence over moral safeguards. Token-level traces reveal that refusal signals diminish while harmful semantics gradually emerge, a process that is not captured by surface-level rejection metrics. To study this vulnerability, we introduce Reasoning Logic Jailbreaking (ReLoK), a single-turn attack that reframes unsafe requests as abstract viewpoints and decomposes sensitive terms. We evaluate ReLoK on five representative LLMs including ChatGPT-4o, Gemini 2.0 Flash, Claude 3.7 Sonnet, DeepSeek-R1-671B, and QwQ-32B using three jailbreak datasets. It achieves an average attack success rate of 97.9%, highlighting the practical severity and broad applicability of the vulnerability. Our findings suggest that alignment strategies must address not only what LLMs output but also how they reason. We advocate for reasoning-aware safety mechanisms such as ethical inference supervision and trajectory-level risk detection. Our code and data are available at https://anonymous.4open.science/r/Reasoning-Against-Alignment-7FD4.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

add · history

No versions are recorded yet: its preprint, the venues it went to and what they decided, the camera-ready. Missing a version?

We don't know of a submission of this paper to a venue with open reviews. Missing a submission?

Loading the discussion…