AUTHOR=Oyama Henrique , Matsumoto Takazumi , Tani Jun TITLE=Modeling autonomous shifts between focus state and mind-wandering using a predictive-coding-inspired variational recurrent neural network JOURNAL=Frontiers in Computational Neuroscience VOLUME=Volume 19 - 2025 YEAR=2025 URL=https://www.frontiersin.org/journals/computational-neuroscience/articles/10.3389/fncom.2025.1578135 DOI=10.3389/fncom.2025.1578135 ISSN=1662-5188 ABSTRACT=Mind-wandering reflects a dynamic interplay between focused attention and off-task mental states. Despite its relevance in understanding fundamental cognitive processes, such as attention regulation, decision-making, and creativity, previous models have not yet provided an account of the neural mechanisms for autonomous shifts between focus state (FS) and mind-wandering (MW). To address this, we conduct model simulation experiments employing predictive coding as a theoretical framework of perception to investigate possible neural mechanisms underlying these autonomous shifts between the two states. In particular, we modeled perception processes of continuous sensory sequences using our previously proposed variational RNN model under free energy minimization. The current study extends this model by introducing an online adaptation mechanism of a meta-level parameter, referred to as the meta-prior w, which regulates the complexity term in the free energy minimization. Our simulation experiments demonstrated that autonomous shifts between FS and MW take place when w switches between low and high values responding to a decrease and increase of the average reconstruction error over a past time window. Particularly, high w prioritized top-down predictions while low w emphasized bottom-up sensations. In this work, we speculate that self-awareness of MW may occur when the error signal accumulated over time exceeds a certain threshold. Finally, this paper explores how our experiment results align with existing studies and highlights their potential for future research.