Don't Judge a Book by its Cover: Testing LLMs' Robustness Under Logical Obfuscation
Abhilekh Borah, Shubhra Ghosh, Kedar Joshi, Aditya Kumar Guru, Kripabandhu Ghosh
TL;DR
This work addresses whether LLMs genuinely reason or merely pattern-match by introducing Logifus, a structure-preserving obfuscation framework, and LogiQAte, a diagnostic benchmark with 1,108 obfuscated questions across four reasoning tasks. The study demonstrates substantial performance degradation under logical obfuscation across multiple models and prompting strategies, highlighting brittleness in current reasoning capabilities. Through memorization and layer-wise confidence analyses, the authors show that obfuscated prompts induce greater reliance on training data and weaker deep-layer consolidation, suggesting surface-form reliance rather than true comprehension. The findings underscore the need for models that maintain semantic understanding under surface-form transformations, with implications for robust evaluation and the development of deeper reasoning in LLMs.
Abstract
Tasks such as solving arithmetic equations, evaluating truth tables, and completing syllogisms are handled well by large language models (LLMs) in their standard form, but they often fail when the same problems are posed in logically equivalent yet obfuscated formats. To study this vulnerability, we introduce Logifus, a structure-preserving logical obfuscation framework, and, utilizing this, we present LogiQAte, a first-of-its-kind diagnostic benchmark with 1,108 questions across four reasoning tasks: (i) Obfus FOL (first-order logic entailment under equivalence-preserving rewrites), (ii) Obfus Blood Relation (family-graph entailment under indirect relational chains), (iii) Obfus Number Series (pattern induction under symbolic substitutions), and (iv) Obfus Direction Sense (navigation reasoning under altered directions and reference frames). Across all the tasks, evaluating six state-of-the-art models, we find that obfuscation severely degrades zero-shot performance, with performance dropping on average by 47% for GPT-4o, 27% for GPT-5, and 22% for reasoning model, o4-mini. Our findings reveal that current LLMs parse questions without deep understanding, highlighting the urgency of building models that genuinely comprehend and preserve meaning beyond surface form.
