The capacity to adaptively switch between concepts, strategies, or mental frameworks as context demands.
Cognitive flexibility refers to the mental ability to shift attention, reframe problems, and adapt strategies in response to changing goals, rules, or environmental demands. It encompasses both the capacity to toggle between distinct concepts or tasks and the ability to hold multiple perspectives simultaneously. In cognitive science and psychology, it is considered a core component of executive function — the higher-order control processes that regulate goal-directed behavior. Deficits in cognitive flexibility are associated with conditions such as autism spectrum disorder, obsessive-compulsive disorder, and certain forms of dementia, underscoring its importance to healthy adaptive cognition.
In machine learning and AI research, cognitive flexibility serves as both an inspiration and a benchmark. Systems that can generalize across tasks, transfer knowledge to novel domains, or dynamically adjust their behavior based on context are said to exhibit machine analogs of cognitive flexibility. This has motivated work on meta-learning, continual learning, and multi-task architectures — approaches designed to overcome the brittleness of models trained on fixed distributions. The contrast between human cognitive flexibility and the rigidity of most current AI systems highlights a fundamental gap that researchers are actively working to close.
Cognitive flexibility also informs the design of human-AI interaction. Interfaces and collaborative systems that account for users' shifting mental states, varying expertise levels, or evolving task demands can produce more effective and satisfying experiences. AI tutoring systems, for instance, benefit from modeling a learner's cognitive flexibility to adapt instructional difficulty and pacing appropriately. Similarly, AI assistants that can gracefully handle topic switches, ambiguous requests, or mid-task goal changes reflect design principles grounded in this concept.
The relevance of cognitive flexibility to AI grew substantially in the 1990s as researchers in cognitive architectures — such as ACT-R and SOAR — attempted to computationally model human adaptive reasoning. Today it remains a guiding concept in efforts to build more robust, generalizable, and human-compatible AI systems, bridging insights from neuroscience, developmental psychology, and machine learning.