Abstract
Recent zero-shot evaluations have highlighted important limitations in the abilities of language models (LMs) to perform meaning extraction. However, LMs can demonstrate radical improvements in the presence of experimental contexts such as in-context examples and instructions. This paper presents a case study on the extent to which experimental contexts can improve LMs’ robustness in performing property inheritance—predicting semantic properties of novel concepts. By carefully controlling in-context examples and instructions, we reveal that they can lead to non-trivial property inheritance behavior. However, this ability is inconsistent: with minimal task reformulations, some LMs pick up on shallow, non-semantic heuristics, suggesting that the computational principles of semantic property inference are yet to be mastered.
Introduction
Large language models (LLMs) frequently struggle with "meaning extraction," particularly semantic property inheritance. For instance, if a human is told "A wug is a robin," they immediately infer that a wug can fly and has feathers. Previous benchmarks, such as the COMPS dataset, indicated that LLMs often fail these tests in zero-shot settings. This study investigates whether this failure stems from a fundamental lack of reasoning ability or is merely a limitation of the zero-shot interface. By providing "experimental context"—instructions and few-shot examples—the authors explore whether they can unlock latent reasoning abilities or if models simply exploit shallow patterns in the prompt.
Methods and Experimental Design
The researchers evaluated 12 open-source LLMs (1.5B to 13B parameters), including base and instruction-tuned versions of Llama, Mistral, and Gemma. The study utilized the COMPS (Conceptual Minimal Pair Sentences) dataset, specifically the WUGS-DIST subset, containing approximately 13,828 sentence pairs involving 152 real-world animal concepts and 991 properties. "Nonce" words (e.g., wug, dax) were used to ensure models relied on provided context rather than memorized facts.
Two primary task formulations were tested:
- COMPS (Original): Completing a declarative statement (e.g., "A wug is a robin... therefore, a wug [can fly/can't fly]").
- COMPS-QA: Reformulating the task as a question (e.g., "Which of them can fly? Answer: [wug/dax]").
Crucially, the experiments pitted robust reasoning against two position-based heuristics: FIRST-CORRECT (the first mentioned concept is correct) and RECENT-CORRECT (the most recently mentioned concept is correct). By varying whether in-context examples followed or contradicted these heuristics, the authors could distinguish true reasoning from pattern exploitation.
Key Results and Insights
The study found that in-context learning (ICL) acts as a facilitator, unlocking the model's ability to apply internal knowledge of real-world concepts to novel ones. In the declarative COMPS task, performance generally improved monotonically as more examples were added, eventually approaching the model's base knowledge of the underlying concepts.
However, a significant "QA Trap" was observed. Models were far more prone to shallow heuristics in the QA format. This is likely because the output space (concept names) is directly linked to their positions in the input prompt, facilitating positional "shortcuts" over semantic reasoning.
As shown in the performance analysis above, base models like GPT-2 XL and OPT-6.7B exhibited extreme fragility in the COMPS-QA task, with accuracy often dropping below 25% when test cases contradicted the heuristics shown in few-shot examples. In contrast, Mistral-7B and Gemma-2-9B demonstrated more robust property inheritance across both task formulations, showing significantly less reliance on positional shortcuts. While instruction tuning generally improved robustness, it was not a panacea; for instance, OLMo-7B-Instruct maintained a persistent "first-mention" bias even when context suggested otherwise.
Conclusion and Future Work
While experimental contexts can facilitate robust semantic property inference, the effect is inconsistent and highly sensitive to task formatting. The transition from declarative to interrogative formats often triggers a shift from reasoning to heuristic exploitation.
Future research should expand beyond the COMPS dataset and English-language models. Additionally, employing interpretability techniques to identify the specific transformer circuits responsible for positional biases could provide deeper mechanistic insights. Understanding why certain instruction-tuning methods yield more robust models than others remains a critical open question for developing more reliable AI reasoning systems.
Summary updated