TL;DR
While providing in-context examples and explicit instructions can significantly improve a language model's ability to perform semantic property inheritance, this capability is highly fragile. A simple shift from a declarative task format to a question-answering format causes many base models to abandon semantic reasoning entirely in favor of shallow, position-based shortcuts.
What Problem Does This Paper Address?
Can large language models (LMs) truly reason about the meaning of novel words, or are they just master pattern-matchers exploiting superficial text layouts?
The authors tackle this question by focusing on property inheritance—the cognitive ability to deduce that a novel concept ("wug") shares properties with a known category ("beaver") when told "a wug is a beaver." Prior work showed that LMs fail miserably at this in zero-shot settings. However, because in-context learning (ICL) and prompting often unlock hidden capabilities in LMs, the authors investigate whether providing examples and instructions can facilitate robust semantic reasoning, or if the models simply learn to exploit shallow, non-semantic heuristics (like choosing an answer based purely on its position in the prompt).
Methods
The authors systematically evaluate 12 different LMs (ranging from 1.5B to 13B parameters), including both base and instruction-tuned variants. They test the models by progressively supplying between 0 and 6 in-context examples alongside four different instruction templates.
Crucially, the experimental prompts are engineered to be compatible with two shallow, position-based heuristics:
- FIRST-CORRECT: The target property always belongs to the first novel concept mentioned.
- RECENT-CORRECT: The target property always belongs to the most recently mentioned novel concept.
To see how easily models are swayed by these shortcuts, the authors evaluate them on two distinct task formulations:
- COMPS (Declarative): The model evaluates the log-probability of a declarative statement (e.g., "Therefore, a wug has a flat tail").
- COMPS-QA (Question Answering): The task is reframed as a question (e.g., "Which one of them has a flat tail? Answer: wug"). This directly links the model's token output space to the physical position of the words in the prompt.
To prevent simple memorization, all concepts, properties, and nonsense words used in the in-context examples are strictly disjoint from those used in the test sets.
Datasets
The study utilizes COMPS-WUGS-DIST, which is the most challenging subset of the COMPS (Conceptual Minimal Pair Sentences) dataset. This dataset contains 13,828 sentence pairs built from 152 animal concepts and 991 properties. It specifically isolates cases containing two novel concepts (e.g., "wug" vs. "dax"), where only one of them correctly inherits the target property.
Key Insights and Ideas
- Format Dictates Strategy (The QA Trap): In the standard declarative format (COMPS), adding in-context examples steadily guides base models toward correct semantic inferences. However, when switched to the QA format (COMPS-QA), base models completely abandon semantic reasoning. Because the output token is now a direct choice between the two novel words, the models default heavily to positional heuristics (e.g., always picking the first or last word mentioned).
- Instruction Tuning Acts as a Shield, Not a Cure: Instruction-tuned models (such as Mistral-7B-Instruct) show vastly superior robustness compared to base models, maintaining above-chance performance across both task formats.
- Latent Biases Persist: Even instruction-tuned models aren't entirely immune to positional artifacts. For instance, finer-grained analysis reveals that under certain conditions, models like
OLMo-7B-Instructdisplay a stubborn bias toward selecting the first-mentioned entity, regardless of what the in-context patterns dictate.
Key Results
- Declarative Performance: On the standard COMPS dataset, base models start at chance performance (50%) zero-shot but improve monotonically as more in-context examples are provided, eventually approaching the accuracy of their baseline real-world knowledge.
- QA Performance Divergence: On COMPS-QA, base models like GPT-2 XL, OPT-6.7B, and Llama-2-7B exhibit a massive performance split. Accuracy approaches 100% when the position-based heuristic happens to align with the correct answer, but plummets to near 0% when it does not.
- Instruction-Tuned Consistency: Instruction-tuned models successfully resist the QA trap, showing stable, high accuracy across both the heuristic-consistent and heuristic-inconsistent test sets.
Limitations and Future Work
The authors note three primary limitations:
- Single Dataset: The conclusions are drawn entirely from evaluations on the COMPS benchmark.
- Lack of Mechanistic Insight: The study is purely behavioral, analyzing input-output probabilities without looking "under the hood" at the specific attention heads or neural circuits driving these heuristic preferences.
- Language Scope: The evaluation is limited exclusively to English.
For future work, the authors suggest exploring the internal mechanics of instruction-tuned models to discover exactly how they suppress these shallow positional heuristics, alongside expanding evaluations to a broader array of semantic tasks and diverse languages.
Summary updated