Introduction
Cognitive flexibility—the ability to adapt one's thinking and behavior in response to changing environmental rules—is a cornerstone of human executive function. Traditionally associated with the prefrontal cortex (PFC), this trait is measured using the Wisconsin Card Sorting Test (WCST). In this task, participants must sort cards based on hidden rules (color, shape, or number) that change without warning, requiring the individual to shift their strategy based on feedback. This study investigates whether state-of-the-art Visual Large Language Models (VLLMs) possess the "cognitive architecture" necessary to match human performance in such dynamic reasoning environments.
Experimental Framework
The researchers evaluated three leading models—GPT-4o, Gemini-1.5 Pro, and Claude-3.5 Sonnet—against a human baseline of 30 healthy participants. The study employed a 2x2 experimental design to isolate the factors contributing to AI performance:
- Input Modality: Visual Input (raw images of cards) vs. Textual Input (descriptive text of card attributes).
- Prompting Strategy: Straight-to-Answer (STA) vs. Chain-of-Thought (CoT).
To eliminate the possibility of the models simply "remembering" the WCST from their training data, the authors developed the ALIEN Task. This variant preserved the underlying logic of the WCST but replaced standard attributes with extraterrestrial concepts, such as planetary orbits and atmospheric compositions, ensuring the models had to rely on active reasoning rather than pattern matching.
Performance and the "Textual Advantage"
The study revealed that under optimal conditions—specifically using textual descriptions and Chain-of-Thought prompting—VLLMs can meet or exceed human benchmarks. Claude-3.5 Sonnet achieved a perfect score (5.0 categories completed), surpassing the human average of 4.73.
However, this cognitive flexibility proved fragile when shifted to the visual domain. When models were required to interpret actual images of the cards (Visual-CoT), performance plummeted. GPT-4o, for instance, saw its success rate drop from 4.6 categories to 2.5. Detailed error analysis showed that this was not a failure of logic, but of perception; the models frequently miscounted shapes or misidentified colors, creating a "cascading effect" where a perceptual error led to an incorrect logical deduction about the current sorting rule.
The Role of Chain-of-Thought (CoT)
Chain-of-Thought prompting emerged as a non-negotiable requirement for success. Without the ability to "think out loud," models performed near chance levels. CoT serves as a functional equivalent to human working memory, allowing the model to maintain a stable internal representation of the current rule and systematically process feedback from previous trials. This suggests that while VLLMs have the latent capacity for set-shifting, they require explicit structural prompts to activate these reasoning pathways.
Simulating Neuropsychological Dysfunction
One of the study's most intriguing findings was the models' ability to simulate clinical cognitive impairments. When prompted to role-play as individuals with "inhibitory control impairment" (similar to patients with PFC damage), the models' error patterns shifted. They began exhibiting increased perseverative errors—continuing to use a rule even after being told it was wrong—mirroring real-world clinical observations. While this may partly stem from linguistic stereotypes of disorders in the training data, it demonstrates a sophisticated ability to modulate reasoning strategies based on high-level constraints.
Conclusion and Future Directions
While VLLMs like Claude-3.5 Sonnet and GPT-4o demonstrate human-level logical flexibility in the WCST, a significant gap remains between their reasoning and their raw visual perception. The models are currently "legally blind" in contexts requiring precise visual counting and identification, which limits their utility in complex, vision-first environments. Future research must focus on bridging this gap, moving beyond 2D card tests to 3D dynamic environments to determine if AI can maintain cognitive flexibility when faced with the "noise" of the physical world.
Reference: Hao, G., Alexandre, F., & Yu, S. (2025). Visual Large Language Models Exhibit Human-Level Cognitive Flexibility in the Wisconsin Card Sorting Test. arXiv:2505.22112v1.
Summary updated