         RULEBREAKERS: Challenging LLMs at the Crossroads between Formal Logic and Human-like Reasoning


Table 2. For each model, we compare the model’s mean confidence            Table 3. For each model, we extract its familiarity with the [city]
(%) in a positive answer (”yes”/”true”) between (a) the subset of          entity mentioned in each prompt pair in Dpaired , and compute the
rulebreaker prompts to which it outputs a positive answer (Π+
                                                            DR
                                                                );         mean (and std dev) corresponding to those prompt pairs the model
and (b) the subset of non-rulebreaker prompts to which it outputs          answers incorrectly, against those it answers correctly.
a positive answer (Π+ DN
                         ). Std dev in brackets.                                                          C ORRECT           I NCORRECT
  M ODEL                  Π+DR
                                                Π+
                                                 DN
                                                                                                          PAIRS              PAIRS
  P HI -3- MINI -128 K - 92.055 (8.857)         96.224 (2.738)              P HI -3- MINI -128 K -        0.906 (0.128)      0.872 (0.172)
 INSTRUCT                                                                   I NSTRUCT
 P HI -3- MEDIUM -        93.955 (11.699)      97.158 (8.763)               P HI -3- MEDIUM -128 K -      0.922 (0.089)      0.912 (0.104)
 128 K - INSTRUCT                                                           I NSTRUCT
 M ETA -L LAMA -3-        77.202 (15.011)      90.457 (12.095)              L LAMA -3-8B-                 0.837 (0.187)      0.844 (0.189)
 8B-I NSTRUCT                                                               I NSTRUCT
 M ETA -L LAMA -3-        96.336 (9.812)       99.950 (0.366)               L LAMA -3-70B-                0.959 (0.074)      0.949 (0.081)
 70B-I NSTRUCT                                                              I NSTRUCT
 M ISTRAL -7B-            92.553 (12.863)      98.106 (6.925)               M ISTRAL -7B-                 0.977 (0.072)      0.969 (0.085)
 I NSTRUCT- V 0.3                                                           I NSTRUCT- V 0.3
 GEMMA -2-27 B - IT       97.992 (6.074)       99.996 (0.057)               G EMMA -2-27 B - IT           0.997 (0.032)      0.992 (0.048)
                                                                            GPT-4 O                       0.909 (0.134)      0.914 (0.136)

the “factual” part of the premises (e.g. “Anne is in Paris”)
that implicitly contradicts the conclusion (e.g. “Anne is not              If our hypothesis (1) is correct, we would expect each model
in France”) in case of rulebreakers.                                       to have a higher “familiarity” with respect to prompt pairs
Accordingly, we propose two hypotheses: (1) failure to rec-                in its “recognized” group, i.e. those that the model has
ognize rulebreakers is associated with the model’s lack of                 answered correctly, as compared to its “failed” group. As
confidence in its knowledge of the entities involved17 ; and               shown in Table 3, this is the case for most LLMs, except
(2) this failure is associated with insufficient attention given           for Meta-Llama-3-8B-Instruct and GPT-4o (Welch’s t-test
to the factual premise. The intuition is that when a model is              p < 0.001). While Meta-Llama-3-8B-Instruct’s deviation
not sufficiently “familiar” with the entities mentioned in the             from the predominant pattern might be explained by its
prompt (i.e. sufficiently confident in its knowledge about                 relatively high sensitivity to prompt variations (as further
the entities), then it will tend to treat these entities symbol-           discussed in Appendix F), we recognize however that this is
ically and focus more on the surface form rather than the                  not the case for GPT-4o, which is one of the models least
semantic content of the prompt, thereby overlooking the sig-               sensitive to prompt variations.
nificance of the factual premise which implicitly contradicts              As an additional observation, when comparing overall fa-
the conclusion in case of rulebreakers.18                                  miliarity levels across models, we see that simply being
Is failure associated with the model’s lack of confidence in               familiar with entities does not guarantee that a model will
its knowledge?                                                             perform well on RULEBREAKERS. A particular example
                                                                           is Gemma-2-27b-it, which is on average more familiar with
To answer this, we prompt each LLM with the instruction:                   entities in our dataset compared to all other models (in terms
“Complete the sentence: [city] is in” for each city in RULE-               of both its “failed” and “recognized” groups) but is among
BREAKERS that all LLMs have answered correctly as part                     the worst-performing models in terms of paired accuracy.
of the filtering process in Section 4.1. We extract the output             This is also despite the perfect accuracy it has achieved on
probability of the first token of the country name, which                  the non-rulebreaker subset of the prompts (see Section 5.1).
we refer to as the model’s “familiarity” with the particular               When combined, the two observations aptly characterize
(country, city). We compare each LLM’s mean “familiarity”                  the blind spot that our study has highlighted with LLMs’
between prompt pairs in Dpaired the model recognizes                       reasoning: a model may excel at both retrieving factual
against pairs the model fails , as shown in Table 3.19                     knowledge and applying rules in formal logic, yet fail
                                                                           to recognize where rigidly applying these logical rules
  17
      This is inspired in part by Neeman et al. (2023) investigating       would produce conclusions that factually contradict the
how models resolve conflict between in-context information and             premises.
parametric knowledge.
   18
      Providing support to this intuition, Johnson-Laird & Byrne           We conduct a qualitative analysis on the most common
(2002) found that human participants are also more likely not to           failure instances across models, observing further evidence
draw factually inconsistent conclusions when given rulebreakers
with familiar entities as opposed to unfamiliar ones.                      breaker, non-rulebreaker) pairs (permuting 6 verbs, 5 first names,
   19
      As per Section 3.1, each [city] is mentioned in 600 (rule-           2 logical forms and 10 prompt phrasing variations).

                                                                       8
