Visual Large Language Models Exhibit Human-Level Cognitive Flexibility in the Wisconsin Card Sorting Test

Guangfu Hao, Frederic Alexandre, Shan Yu

This study, recently published by researchers from the Chinese Academy of Sciences and Inria, explores a fascinating question: Have our AI models reached a level of "cognitive flexibility" comparable to the human brain? By putting state-of-the-art Visual Large Language Models (VLLMs) through a classic neuropsychological gauntlet, the authors uncover surprising parallels between silicon and biological intelligence.

TL;DR

State-of-the-art VLLMs like Claude-3.5 Sonnet and GPT-4o can match or even exceed human performance on the Wisconsin Card Sorting Test, a gold-standard measure of cognitive flexibility. However, this "human-level" ability is fragile, depending heavily on explicit reasoning prompts (Chain-of-Thought) and textual rather than visual inputs.

What Problem Does This Paper Address?

While VLLMs have mastered everything from coding to creative writing, their cognitive flexibility—the ability to shift mental strategies in response to changing environmental rules—remains poorly understood. In humans, this ability is governed by the prefrontal cortex (PFC) and is essential for navigating dynamic, real-world environments.

The researchers used the Wisconsin Card Sorting Test (WCST) to bridge this gap. In the WCST, a participant must sort cards based on a hidden rule (color, shape, or number). The catch? The rule changes without warning after every 10 correct matches. To succeed, one must use feedback to realize the old rule is dead and "shift sets" to find the new one.

Methods

The authors evaluated three top-tier models: GPT-4o, Gemini-1.5 Pro, and Claude-3.5 Sonnet. They employed a 2x2 experimental design to see how two factors influenced performance:

  1. Input Modality: Visual Input (images of cards) vs. Textual Input (descriptions of the cards).
  2. Prompting Strategy: Straight-to-Answer (STA) vs. Chain-of-Thought (CoT), where the model is told to "think step-by-step."

The procedure is outlined in Figure 1: WCST Procedure and Sample Stimuli

WCST Procedure and Sample Stimuli

Beyond the standard test, they introduced a novel "ALIEN Task"—a version of the WCST with entirely different surface features (e.g., planetary orbits instead of shapes)—to ensure models weren't just reciting memorized test answers from their training data. Finally, they used role-playing prompts to see if models could simulate specific human brain deficits, like impaired inhibitory control.

Datasets

  • WCST-64: The standard 64-trial version of the Wisconsin Card Sorting Test.
  • ALIEN Task: A custom-built variant designed by the authors to test logical generalization.
  • Human Baseline: Data collected from 30 cognitively healthy human participants (ages 20-35) for direct comparison.

Key Insights and Ideas

  • Reasoning is the Engine: Models performed abysmally when asked for a direct answer (STA). However, when using Chain-of-Thought (CoT), their performance skyrocketed. This suggests that "thinking out loud" helps the model maintain a stable internal representation of the current rule.
  • The Visual Bottleneck: Surprisingly, models performed significantly better with text descriptions than with actual images. A detailed analysis (Table II) revealed that even "visual" models like GPT-4o struggle with basic counting in images, which cascades into failures in higher-order reasoning.
  • Genuine Logic, Not Rote Memory: The models performed just as well on the "ALIEN Task" as they did on the standard WCST. This proves they are engaging with the underlying logic of set-shifting, not just recalling patterns from their training data.
  • Silicon Neuropsychology: By simply asking models to role-play as patients with specific brain lesions, the models produced error patterns (like "perseverative errors," where one sticks to an old rule despite negative feedback) that closely mirror clinical observations of human patients with prefrontal cortex damage.

Key Results

As shown in Figure 2, the performance gap between conditions was massive: Standardized Performance across conditions

Fig. 2. WCST Task Performance Across Models and Conditions. The distribution of standardized Categories Completed (CC) scores for GPT-4o, Gemini- 1.5 Pro, and Claude-3.5 Sonnet under four experimental conditions: STA-VI (Straight to Answer - Visual Input), STA-TI (Straight to Answer - Textual Input), CoT-VI (Chain of Thought - Visual Input), and CoT-TI (Chain of Thought - Textual Input), with the human baseline performance.
  • Claude-3.5 Sonnet was the star performer, achieving a perfect score (CC=5.0) in the CoT-Textual condition, actually surpassing the human baseline (CC=4.73).
  • GPT-4o and Gemini-1.5 Pro also reached near-human levels in the CoT-Textual condition.
  • In the Straight-to-Answer Visual (STA-VI) condition, all models failed, performing at near-chance levels (CC scores between 0.02 and 0.10).

Limitations and Future Work

The authors highlight that VLLMs are currently "brittle" in their flexibility. Their success depends on explicit rule exclusivity (telling the model there is only one rule at a time); without this hint, performance drops sharply (see Table III).

Furthermore, the gap between visual and textual performance suggests that VLLMs still rely heavily on language-based reasoning pathways. Future work should focus on building more robust visual processing pipelines and exploring whether these models can simulate even more complex executive functions beyond simple set-shifting.

Summary updated

BibTeX
@article{hao2025visual,
  author = {Guangfu Hao and Frederic Alexandre and Shan Yu},
  title = {{Visual Large Language Models Exhibit Human-Level Cognitive Flexibility in the Wisconsin Card Sorting Test}},
  journal = {IEEE Transactions on Cognitive and Developmental Systems},
  year = {2025},
  doi = {10.1109/tcds.2025.3590165},
}
Figure