GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
NAACL 2024

Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Tasks

GPT-4 added two-digit numbers almost perfectly in base 10 and got 39% right in base 9. Across 11 tasks, changing one rule cut accuracy, even when the model understood the new rule.

Breakdown by FDE Interviews · 10 min read · Updated

About the original · 2023
AUTHORS
Wu, Qiu, Ross, Akyürek et al.
FROM
MIT, Boston University
PUBLISHED
Jul 2023 · NAACL 2024
CITED BY
391Semantic Scholar · Nov 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 20% of this breakdown.

01

The paper in one minute

If a model can add, it should be able to add in base 9. The procedure is the same; only the point where a digit carries changes. That is the paper's test, applied to 11 tasks.

Each task gets a default version and one or more counterfactual versions that change a single assumption while keeping the procedure. Arithmetic moves to bases 8, 9, 11 and 16. Code runs in "ThonPy", Python with 1-based indexing. Logic problems keep their structure but make the premises contradict common sense. Coordinates use rotated or swapped axes, drawings must be flipped or rotated, guitar chords use altered tunings, melodies are transposed, chess starts with knights and bishops swapped, and the card game SET inverts the rule for one attribute.

A model could fail a counterfactual task simply by not understanding the instruction, so each one has a counterfactual comprehension check: a much simpler question that only a model that understood the change can answer, such as "what number follows 18 in base 9?"

GPT-4, GPT-3.5, Claude and PaLM-2 were tested in mid-2023, with and without "Let's think step by step." Performance under counterfactual rules was lower on every task, often by tens of points, while comprehension checks were usually high. The authors' reading is that models carry some transferable skill (counterfactual scores were mostly above chance) and a lot of procedure that only works under the familiar conditions.

THE IDEA, VISUALLY
SAME PROCEDURE, ONE RULE CHANGED (FIGURE 1) default counterfactual Arithmetic 27 + 62 in base 10 = 89 27 + 62 in base 9 = 100 Code sorted(xs, key=lambda x: x[1]) same code, 1-based indexing Chess is 1. e4 e6 2. Be2 Bc5 legal? same question, knights and bishops swapped COMPREHENSION CHECK (SECTION 2.1) Base 9: what number comes after 18? (answer 20) GPT-4 passed 90% of these, yet added in base 9 at 38.6%. INSTANCES THAT DISCRIMINATE (APPENDIX A.1) Only sums whose base-9 answer differs from base 10. Unfiltered, about 24% of base-9 sums have no carry and reward a model that ignores the base (our count). GPT-4, STEP-BY-STEP PROMPT: DEFAULT VS CHANGED addition, base 9 98.2% 38.6% code execution 73.5% 24.8% code generation 82.5% 40.5% logic vs common sense 98.8% 82.7% chess legality 87.8% 53.6% SET game 100.0% 61.0% coin: 50% grey = default rules, blue = changed rule arXiv 2307.02477, MIT and Boston University
Each task is run under its usual rules and under one changed rule that keeps the procedure the same: addition in base 9 instead of 10, Python with 1-based indexing, chess with knights and bishops swapped. A comprehension check confirms the model understood the change. GPT-4 with step-by-step prompting scored 98.2% against 38.6% on addition and 87.8% against 53.6% on chess, where a coin scores 50%.
Research notes: the problem, approach and results
38.6%

GPT-4 two-digit addition in base 9 with step-by-step prompting, against 98.2% in base 10 (Table 18)

53.6%

GPT-4 judging chess opening legality with knights and bishops swapped, against 87.8% normally; a coin scores 50% (Table 32)

11

tasks, from arithmetic and code to drawing, music, chess and the card game SET (Section 3)

THE PROBLEM

High benchmark scores cannot separate a model that has a general procedure from one that has memorized how the task usually looks, because test items and their close relatives are all over the training data.

THE IDEA

Keep the procedure and change one assumption, such as the number base, the indexing convention or the starting chess position, then compare default and changed versions. A simpler comprehension check confirms the model understood the change.

THE RESULT

Across 11 tasks and four 2023 models, performance under the changed rules was consistently and substantially lower, though usually above chance. Changes that are more common in text, such as base 16 or drop-D guitar tuning, hurt less.

02

Why it matters to an FDE

Every customer has conventions that differ from the internet's defaults, and to a model those conventions are counterfactual worlds.

The customer's rules are the counterfactual. A fiscal year starting in July, week numbers starting on Saturday, an internal SQL dialect, a product code where the second character means region, a spreadsheet indexed from 1. The model has seen the default convention millions of times and the customer's a handful. This paper predicts accuracy will drop even when the model can restate the rule correctly.

Test the rule change directly. Take tasks the model handles under defaults, rewrite them under the customer's convention, and run both. Add a comprehension check, a one-line question about the convention itself, so you can tell "did not understand the rule" from "understood it and still defaulted".

Expect demonstrations to help, not to close the gap. Sixteen worked examples in base 9 raised GPT-4 from 38.6% to 88.4%, still 11.5 points behind base 10. If the convention matters, convert inputs to the default convention in code before the model sees them, or validate outputs against the rule.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 290 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    How a counterfactual task is built, the checks, what the results say, and two misreadings

    Free account
  2. 04How it works

    The formal setup, the 11 tasks and their checks, models, prompts and scoring

    Premium
  3. 05The numbers that matter

    Arithmetic by base, code, logic, chess and SET, demonstrations, and the CoT effect

    Premium
  4. 06Try it yourself

    Read the arithmetic tables, test chess against a coin, and see why the instance filter matters

    Premium
  5. 07Where it breaks

    Mid-2023 models, some tasks allow shortcuts, two-step solutions confound, and slips

    Premium
  6. 08Using it on a deployment

    Write counterfactual tests for customer conventions, add comprehension checks, convert in code

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →