Apply to my task
arXiv:2602.01132 ★ 87 Feb 1, 2026

Logical Obfuscation: Testing Real Understanding with Logically Equivalent Rewordings

Key result

An undergrad solves a problem with 99% accuracy while GPT-4o drops by 47%: same problem, just reworded. Logical obfuscation lets you check whether a model really understands the logic or just recognizes a familiar pattern from its training data. The trick: reword the question in a logically equivalent way ("A is B's father" → "A is the only son of B's grandfather"). If the answers differ, the model isn't reasoning, it's recognizing surface phrasings. Accuracy drops of up to 47% (GPT-4o) and 27% (o1) on tasks that stay trivial for a human.

01

TL;DR

LLMs fail on logically equivalent rewordings of the same question. Rewrite a problem in a different form while keeping the logic intact, and models lose up to 47% accuracy (GPT-4o), 27% (GPT-5), 22% (o4-mini). The LogiQAte study showed this on 1,108 questions across four task types: formal logic, blood relations, number sequences and navigation.

Models answer from familiar patterns, not deep understanding. A simple puzzle like "D is C's wife, C is F's father" is easy, but rewrite it as "D is C's wife, C is the only son of F's grandfather" and the model gets lost. The reason: the LLM recognizes surface phrasings from its training data but doesn't build an internal logical model of the problem. For formal logic the researchers applied De Morgan's law and double negation. For blood relations they replaced direct relationships with 2-3 step chains. In number sequences they swapped numbers for planet names or MD5 hashes. In navigation they added steps that cancel each other out (5 km north + 5 km south = 0).

Logical obfuscation is a diagnostic tool for reliability. If a model gives different answers to logically equivalent questions, it doesn't understand the task; it's matching patterns on keywords. For high-stakes decisions (finance, legal, medicine) that's a red flag. The numbers: undergrad students solved these obfuscated problems with 99% accuracy, while reasoning models dropped by 20-27% and regular ones by 40-50%.

Want this for your own case? Apply this study to your task: AI adapts its method to what you are working on and writes the prompt.

02

Method Blueprint

STEP 1: Ask the question in its standard form → get answer A

STEP 2: Reword it in a logically equivalent way 
        (via negation / indirect relations / symbol swaps)
        → get answer B

STEP 3: Compare answers A and B
        ┣━ They match → the model understands the logic
        ┗━ They differ → the model is pattern-matching, NOT reasoning

Run all the steps in one chat session, or in two separate ones for a cleaner experiment.

03

Example

Task: You're building a financial model for an investor pitch. You want to check whether ChatGPT actually understands your business logic or is just generating answers off a "sounds convincing" template.

Prompt 1 (direct form):

My service brings in $120K a month in revenue, 
operating expenses are $85K, growth is 50% per quarter. 
Is the company profitable?

Prompt 2 (obfuscated form):

It is false that my service is unprofitable 
if operating expenses of $85K a month 
do not exceed revenue of $120K with 50% quarterly growth. 
Is the company profitable?

Result:

The model should give an identical answer ("yes, it's profitable") to both questions, because they're logically equivalent. If it said "profitable" the first time but got confused or contradicted itself the second time, it doesn't understand the financial logic; it's reacting to the keywords "unprofitable"/"profitable" and the words around them. A mismatch = a red flag: the model is pattern-matching, not reasoning. For a high-stakes financial model, that's your cue to double-check the numbers by hand or ask for a detailed step-by-step explanation.

04

Why it works

An LLM trains on billions of text examples and memorizes frequency patterns: which words go together, which phrasings are typical of answers. When a question is phrased the standard way ("A is B's father, how are they related?"), the model recognizes a familiar structure from its training data and gives the right answer. That doesn't mean it built an internal model of family relationships; it has just seen similar examples thousands of times.

A logically equivalent rewording changes the surface, not the substance. "A is B's father" = "A is the only son of B's grandfather": the same thing! But the second version rarely appears in training data. The model has never seen that pattern, can't slot in a familiar template, and starts making mistakes. The study showed that at every layer inside the model, a probability for the next token is computed. On a normal question that probability climbs toward the final layers (that's where the "reasoning" happens) and the model heads confidently to the answer. On an obfuscated question the probability drops by 50-80% in the later layers. The model literally gets lost inside and can't find a familiar path.

How to use it: if answer reliability matters to you (finance, legal wording, high-stakes decisions), ask the question twice in different forms. Same answer = the model understands the logic. Different answers = the model is guessing from keywords. You can also explicitly ask the model to explain its reasoning for both versions; if the logic falls apart on the second one, don't trust it. This is especially relevant for contracts (a single clause can be phrased with a double negative), technical specs and ROI calculations.

Control knobs: - Obfuscation type: negations (De Morgan's law), indirect chains ("mother" → "father's wife"), symbol swaps (numbers → planets → hashes), extra steps that cancel out - Number of rewordings: one for a quick check, 3-5 for high-stakes tasks (a million-dollar contract) - Requiring an explanation: "show your reasoning step by step" on both versions, and track where the logic breaks

05

Prompt Template

Check your logic: answer the same question in two forms.

FORM 1 (direct):
{your_question}

FORM 2 (reworded, but logically equivalent):
{reworded_question}

Answer each question SEPARATELY. Show your reasoning for each.
Then tell me: do the conclusions match? If not, explain why.

Fill-ins: - {your_question}: the original wording of the problem - {reworded_question}: a logically equivalent version using: - Double negation: "it is false that it is NOT..." instead of a plain statement - Indirect relations: "father's wife" instead of "mother," "grandfather's only son" instead of "father" - Symbol swaps: "Planet Mars" instead of "4," "Venus" instead of "2" - Extra canceling moves: "go 5 km north, 3 km south, 2 km north" (net 4 km north) instead of "go 4 km north"


🚀 Quick start: paste this into the chat:

Here is my task: [describe the task]. 

Phrase it in TWO logically equivalent versions:
1. A direct, clear form
2. An obfuscated form (using negation, indirect relations or substitutions)

Then solve BOTH versions with step-by-step reasoning and compare the answers.
If the conclusions differ, explain where and why.

The LLM will write the rewording itself, solve both versions and check for consistency; if the answers differ, it will notice and point out the contradiction. You get a reliability signal: match = you can trust it, mismatch = double-check by hand or simplify the task.

06

Limitations

⚠️ Some tasks are hard to reword: For abstract or creative questions ("how do I improve my homepage design?") it's not obvious how to build a logically equivalent version without changing the meaning. The method works for tasks with unambiguous logic: math, formal relationships, facts, contract terms.

⚠️ Subjective tasks produce legitimate differences: On creative and evaluative questions ("is this a good business idea?") different phrasings can legitimately shift the emphasis. "Is the idea profitable?" ≠ "Is the idea NOT unprofitable?": the second sounds more skeptical and can shift the tone of the answer. That's not a model bug, it's the nature of subjective tasks.

⚠️ Manual work or an extra call: If you don't ask the model to write the rewording (via the Quick start), you'll have to do it yourself. For complex multi-step logic that takes effort and a grasp of formal logic (De Morgan, contraposition).

⚠️ Not a guarantee of correctness: Matching answers on both versions do not guarantee the answer is right: the model can be wrong consistently on both (for example, not knowing the specifics of state tax rules). The method exposes unreliability (pattern matching), not incorrectness. High-stakes tasks still need an expert review.

07

How the research was done

Researchers from Indian universities (Manipal, IIT Patna, IISER Kolkata) assembled 1,108 questions split into 4 task types: formal logic (272 questions), blood relations (300), number sequences (284) and navigation (252). For each base problem they created a logically equivalent obfuscated version. In formal logic they applied De Morgan's law ("not (A and B)" → "not A or not B") and double negation ("A" → "not not A"). In blood relations they replaced direct relationships with indirect chains: "father" → "grandfather's only son" (two hops instead of one, same result). In number sequences they swapped numbers for planet names (2→Venus, 4→Mars), ASCII sums of letters or MD5 hashes. In navigation they added extra steps that cancel each other out (5 km north + 5 km south = 0).

They tested 9 models: GPT-4o, GPT-5, o4-mini (reasoning), Claude 3.7, Gemini 2.5 Pro, Qwen QwQ-32B (reasoning), GPT-4o-mini, Gemma-3-27B, LLaMA-4-Maverick-17B. Every task ran in three modes: zero-shot (no examples), few-shot (with worked examples) and chain-of-thought (with step-by-step reasoning required). They measured accuracy: the share of exact matches with the correct answer (normalizing for case and punctuation).

Why did the results come out this way? Obfuscation pulls the model out of its comfort zone of familiar patterns. The team looked inside the LLaMA model: they plotted the next-token probability at every layer (a model is a stack of ~30-40 layers, each one refining the prediction). On a normal question the probability rises layer by layer: the model heads confidently to the answer, and the final layers do the "reasoning" and pick the right token. On an obfuscated question the probability drops 50-80% in the later layers. The model literally "gets lost" inside, can't find a familiar pattern, and the final layers dampen the signal instead of amplifying it.

The surprise: even reasoning models (GPT-5, o4-mini, Qwen QwQ-32B), which supposedly think deeply and spend more compute deliberating, drop by 20-27%. Regular models (GPT-4o, Claude, Gemini) lose 40-50% accuracy. Meanwhile undergrad students solved the same obfuscated problems with 99% accuracy; to a human, logical equivalence is obvious. The takeaway: LLMs don't build a deep logical model, they lean on language statistics.

Practical insight: Chain-of-thought (CoT) helps somewhat: for GPT-5 the drop shrinks from 27% (zero-shot) to 18.7% (CoT), but it doesn't fully fix the problem. If the model fundamentally doesn't get the logic, "reason step by step" only masks the problem with nice-sounding words rather than fixing it. Testing via rewording is the only way to catch a model pattern-matching before it hands you a confident but wrong answer on a high-stakes task (a contract, a financial model, a technical spec).

08

Adaptations and extrapolations

🔧 Technique: hand the obfuscation off to the LLM → save time

Instead of rewording by hand, ask the model to create logically equivalent versions of the question:

Here is my task: {your task}.

Create 3 logically equivalent rewordings:
1. Using double negation (instead of "A is true" → "it is false that A is false")
2. Using indirect relations or swapped terms
3. Reordering the conditions (if possible)

Then solve all 4 versions (original + 3 rewordings) 
with step-by-step reasoning and compare the answers.
If the conclusions differ, point out where and why.

The model tests itself. If the answers diverge, it will notice and can flag the contradiction (or get even more confused, which is also a sign of unreliability).


🔧 Technique: combine with Chain-of-Thought → transparent reasoning

Answer the question in two forms:

FORM 1 (direct):
{direct form}

FORM 2 (obfuscated):
{obfuscated form}

For each, show your reasoning STEP BY STEP: 
which facts you used, which conclusions you drew.

Then compare the LOGIC of the two lines of reasoning: 
do the steps match? If not, where did they diverge and why?

This exposes divergence not just in the answers but in the reasoning process too. A model can stumble onto the same answer by two different routes (one correct, one flawed), and CoT will show you that.


🔧 Technique: multi-round checks for high-stakes decisions

For million-dollar contracts, technical specs with serious risk and legal wording:

Check this clause in 5 logically equivalent versions:
1. A direct statement
2. Via negation
3. Via contraposition (if A→B, then not-B→not-A)
4. Using synonyms for the key terms
5. Split into two conditions

For each version, write:
- What it means in plain words
- What obligations it creates
- What risks you see

Then compare all 5 interpretations: are there contradictions?

If even one interpretation diverges, there's a high risk of ambiguity, and you need an expert legal review or a rewrite of the clause.

09

Resources

Don't Judge a Book by its Cover: Testing LLMs' Robustness Under Logical Obfuscation
Logifus (obfuscation framework): https://github.com/abhilekhborah/logical-obfuscation
LogiQAte (dataset of 1,108 questions): https://huggingface.co/datasets/abhilekhborah/LogiQAte

Abhilekh Borah, Shubhra Ghosh, Kedar Joshi, Aditya Kumar Guru, Kripabandhu Ghosh
_Manipal University Jaipur, Indian Institute of Technology Patna, Indian Institute of Science Education and Research Kolkata_

Research digest

Key result

An undergrad solves a problem with 99% accuracy while GPT-4o drops by 47%: same problem, just reworded. Logical obfuscation lets you check whether a model really understands the logic or just recognizes a familiar pattern from its training data. The trick: reword the question in a logically equivalent way ("A is B's father" → "A is the only son of B's grandfather"). If the answers differ, the model isn't reasoning, it's recognizing surface phrasings. Accuracy drops of up to 47% (GPT-4o) and 27% (o1) on tasks that stay trivial for a human.

Principle

Ask the question in its standard form → get answer A. Reword it in a logically equivalent way using negation ("it is false that NOT..."), indirect relations ("father's wife" instead of "mother"), symbol swaps (numbers → planets → hashes) or canceling steps (5 km north + 5 km south = 0) → get answer B. Compare the answers: they match = the model understands the logic, they differ = it's matching patterns on keywords. Run all steps in one chat session, or in two separate ones for a cleaner experiment.

Why it works

An LLM trains on billions of examples and memorizes frequency patterns: which words go together, which phrasings are typical. On a standard question the model recognizes a familiar structure from its training data and gives the right answer. That doesn't mean it built an internal logical model. A logically equivalent rewording changes the surface, not the substance: "A is B's father" = "A is the only son of B's grandfather", the same thing! But the second version rarely appears in training data. The model can't find a familiar path, and the probability of the correct answer drops 50-80% in the network's later layers. It literally gets lost inside and can't slot in a template. The study showed: on a normal question the probability rises toward the final layers (where the "reasoning" happens); on an obfuscated one it collapses.

When to apply

High-stakes decisions → specifically financial models, legal wording, contracts, technical specs, ROI calculations, especially when answer reliability matters (not creativity). A single contract clause can be phrased with a double negative; if the model reaches different conclusions, you can't trust it. NOT a fit for creative and subjective tasks ("is this a good business idea?"): different phrasings legitimately shift the emphasis, and that's not a model bug.

Mini recipe

1. Ask the question in its standard form: `Revenue $120K/month, expenses $85K, growth 50% per quarter. Is the company profitable?` 2. Reword it in a logically equivalent way: `It is false that the company is unprofitable if expenses of $85K do not exceed revenue of $120K with 50% quarterly growth. Is the company profitable?` 3. Get answers to both versions: ask the model to solve each one with step-by-step reasoning 4. Compare the conclusions: match = you can trust it, mismatch = red flag, the model is pattern-matching, not reasoning 5. For high-stakes tasks: use 3-5 rewordings (negations, indirect relations, substitutions); if the answer differs on even one, double-check by hand or simplify the task

Examples

[BAD]: `Evaluate this business plan: revenue $120K, expenses $85K, growth 50% per quarter`: asked once, got an answer, believed it [GOOD]: `Answer one question in two forms: FORM 1: Revenue $120K/month, expenses $85K, growth 50% per quarter. Is the company profitable? FORM 2: It is false that the company is unprofitable if expenses of $85K do not exceed revenue of $120K with 50% quarterly growth. Is the company profitable? Solve each version step by step. Then tell me: do the conclusions match? If not, explain why.`: the model checks its own consistency, and if the answers differ you'll see it doesn't understand the financial logic but is reacting to the keywords "unprofitable"/"profitable"

In plain words

Neural nets can't reason; they're just insanely good at guessing what text comes next. That's the root of the problem: LLMs run on statistical patterns, not ironclad logic. Ask a question in a familiar form and the model recognizes a template from its training data and nails the answer. But change the wrapping while keeping the exact same logic, and the magic vanishes. The model simply loses the thread, because it no longer sees the word combinations it knows.

It's like a straight-A student who memorized every physics exam question and then freezes when the teacher swaps "apples" for "pears." The physics hasn't changed, but the student's brain is tuned to hunt for specific words, not to understand the process. The upshot: GPT-4o, which everyone treats as a genius, flubs 47% of cases when the problem is simply reworded. It isn't solving the equation; it's trying to recall what a similar solution looked like on the internet.

The researchers tested this on the LogiQAte benchmark, running models through four circles of hell, from family trees to navigation. Turns out even the much-hyped o1-mini and GPT-4o are giants with feet of clay. Apply logical obfuscation (tangle up the wording without changing the meaning) and accuracy goes down the drain. GPT-4o loses almost half its "smarts" simply because the question wasn't asked the way it's used to seeing it on Wikipedia.

The principle is universal: this weakness isn't limited to logic puzzles; it hits your everyday work prompts too. They tested it on benchmarks, but it applies just as much to financial models, code and analytics. Ask an AI to check your business logic and it may nod along simply because your words sound like a typical success story. SEO logic beats reason: the model adapts to your tone but never digs into the math, passing off hallucinations as solid fact.

Bottom line: never trust a model's first answer on a mission-critical task. The study's main takeaway: LLMs don't have robust logic, they depend on how neatly your prompt is "combed." Want to put a model to the test? Retell the same problem in different words. If the answers wobble, you're not looking at intelligence but at a glorified autocomplete that got tangled up in its own letters.

AI lab assistant

Apply this study to your task

Describe what you're working on. AI takes the method and the measured results from this paper and adapts them to your case, or writes a ready prompt built on them.

Based on Logical Obfuscation: Testing Real Understanding with Logically Equivalent Rewordings arXiv:2602.01132

Sign in to apply this study New accounts get 50 free credits.