In-Context Learning May Not Elicit Trustworthy Reasoning: A-Not-B Errors in Pretrained Language Models
Authors:
Preprint
Abstract
Recent advancements in artificial intelligence have led to the creation of highly capable large language models (LLMs) that can perform tasks in a human-like manner. However, LLMs exhibit only infant-level cognitive abilities in certain areas. One such area is the A-Not-B error, a phenomenon seen in infants where they repeat a previously rewarded behavior despite well-observed changed conditions. This highlights their lack of inhibitory control -- the ability to stop a habitual or impulsive response. In our work, we design a text-based multi-choice QA scenario similar to the A-Not-B experimental settings to systematically test the inhibitory control abilities of LLMs. We found that state-of-the-art LLMs (like Llama3-8b) perform consistently well with in-context learning (ICL) but make errors and show a significant drop of as many as 83.3% in reasoning tasks when the context changes trivially. This suggests that LLMs only have inhibitory control abilities on par with human infants in this regard, often failing to suppress the previously established response pattern during ICL.Keywords
All Related Versions
This publication has 31 references indexed in Scilit:
- Jailbreaking Black Box Large Language Models in Twenty Queries2025
- Evaluating language models for mathematics through interactionsProceedings of the National Academy of Sciences of the United States of America, 2024
- Emergent analogical reasoning in large language modelsNature Human Behaviour, 2023
- ChatGPT for good? On opportunities and challenges of large language models for educationLearning and Individual Differences, 2023
- Neural substrates of early executive function developmentDevelopmental Review, 2019
- A-not-B Errors: Testing the Limits of Natural Pedagogy TheoryReview of Philosophy and Psychology, 2012
- The processes underlying flexibility in childhoodQuarterly Journal of Experimental Psychology, 2012
- Executive function in preschoolers: A review using an integrative framework.Psychological Bulletin, 2008
- Assessment and Development of Executive Function (EF) During ChildhoodChild Neuropsychology, 2002
- The Unity and Diversity of Executive Functions and Their Contributions to Complex “Frontal Lobe” Tasks: A Latent Variable AnalysisCognitive Psychology, 2000