arXiv:2610.11923q-bio.NCOct 2026

Manuscript Offprint

arXiv:2610.11923

Neural Decoding as Cognitive Inference

Yi Guo, Changhong Jing, Yong Hu, Yan Liu, Michael K. P. Ng, Shanshan Wang, Shuqiang Wang

Abstract

The brain maintains stable cognition despite continuously changing neural activity. How to extract stable cognitive states from variable neural observations remains a central problem in neural decoding. Existing neural decoding methods map neural observations to predefined external labels based on the stimulus-response principle, often capturing recording-specific spurious correlations. Inspired by how the brain infers the world, and specifically by Bayesian brain theory, we recast neural decoding as cognitive inference constrained by brain-intrinsic priors, yielding high-level meta-neural semantic representations. In decoding experiments spanning five neural recording modalities and three cognitive domains (motor, perception and internal mentation), our cognitive inference method reorganized the geometry of neural observation representations, yielding meta-neural semantic representations that exhibited consistent geometric relationships across cognitive tasks and enabled the recovery of stable cognitive states from variable neural observations. Our work provides an account of how the brain maintains relatively stable cognition despite continual changes in the external environment. Cognitive stability is sustained through cognitive inference from changing neural activity, without requiring fixed neural activity patterns.

Introduction

The brain maintains relatively consistent cognitive states despite continuous changes in neural activity 1,2^{1,2}. Neural observations vary with task context, individual differences and recording sessions, whereas cognitive states remain stable. Similarly, audition and vision depend on different sensory inputs and evoke distinct patterns of neural activity, yet the high-level neural representations derived from this activity show systematic semantic consistency 3^{3}. A central problem in neural decoding is therefore how to recover stable cognitive states from changing neural observations 4−6^{4-6}. Most existing neural decoding methods remain based on the stimulus-response principle. These methods map neural observations onto predefined labels and often capture recording-specific spurious correlations 7,8^{7,8}. If the stability of cognitive states does not depend on fixed patterns of neural activity, rigid stimulus-response mappings are insufficient for decoding stable cognition.

To overcome this limitation, neural decoding needs to reconsider how the brain understands the external world 9,10^{9,10}. According to Bayesian brain theory, the brain does not passively respond to sensory evidence but actively infers the external world from sensory evidence, with brain-intrinsic priors constraining the inference 11−15^{11-15}. The brain’s cognitive states are therefore not directly determined by sensory evidence. Even when sensory evidence differs, the brain may infer consistent cognitive states. For neural decoding, this implies that recovering stable cognitive states from changing neural observations requires inference constrained by brain-intrinsic priors.

Building on this view, we recast neural decoding as cognitive inference. Neural observations provide evidence about cognitive states, while brain-intrinsic priors constrain the inference of those states from neural observations. On this basis, we proposed a hierarchical decoding framework inspired by Bayesian brain theory. The framework infers cognitive states from changing neural observations and thereby yields high-level representations that we term meta-neural semantic representations (Fig. 1). Within this framework, brain-intrinsic priors may arise from structural constraints of the brain. Previous studies have shown that cortical geometry systematically constrains neural activity throughout the cerebral cortex and that cortical geometric eigenmodes accurately reconstruct the cortex-wide spatial distribution of this activity 16−18^{16-18}. Accordingly, we introduced cortical geometry as a brain-intrinsic prior into cognitive inference. The cortical geometry prior is constructed independently of the cognitive states to be inferred and does not directly encode their specific content. This independence allows us to test whether consistent cognitive states can still be inferred from variable neural observations despite changes in the underlying patterns of neural activity.

We systematically evaluated the framework using five neural modalities: EEG, MEG, ECoG, fNIRS and fMRI. The experiments covered three functional domains, Motor, Perception and Internal mentation, and assessed whether cognitive inference could recover consistent cognitive states from variable neural observations. (1) Compared with neural observation representations, meta-neural semantic representations were more broadly distributed throughout the cortex and exhibited more consistent geometric relations under different cognitive conditions. (2) Meta-neural semantic representations preserved consistent cognitive state relations among different tasks, and decoding performance remained stable despite neural drift over days to months. (3) Neural observations differed markedly between auditory and visual perception, whereas the inferred meta-neural semantic representations remained aligned with the semantic structure of cognitive content. Cognitive state consistency was preserved despite differences in sensory input. (4) Cognitive inference in the proposed framework recovered internally generated cognitive content from neural observations. The framework extended neural decoding from externally evoked content to internal mentation. Overall, cognitive inference in the proposed framework recovered stable cognitive states from variable neural observations. These findings support the view that cognitive stability does not depend on fixed patterns of neural activity but may instead be

Figure

b

Figure

C

Figure

Task domains

Motor

Figure

Internal mentation

Figure

Figure

d

Brain-wide semantic representation

Figure

e

Reorganization of representational geometry

Figure

f

Internal cognitive-state decoding

Figure

g

Generative decoding of language and vision

Language

Reference text:

the man is holding an umbrella while walking along the street

Decoded text:

the man is carrying an umbrella while walking down the road

Vision

Reference images

Figure

Decoded images

Figure

Fig. 1 Overview of the Bayesian brain hierarchical decoding framework. a, Bayesian brain account linking speech and scene information to latent causes and neural activity measured with EEG, MEG, fMRI, fNIRS and ECoG. b, Hierarchical decoder comprising low-level neural observation o, mid-level prior-constrained u and high-level meta-neural semantic z representations, with z supplied to a generative AI model to produce decoded output y. c, Task domains: perception (vision and audition), motor (motor imagery) and internal mentation (memory and judgment). d, Cortical semantic-attribution maps showing localized low-level and brain-wide high-level representations. e, Representational geometry of low-level and high-level representations across the three task domains. Open and filled circles distinguish cognitive states; blue and orange distinguish cognitive conditions. Arrows connect states within each condition; greater parallelism across conditions indicates greater cognitive stability. f, Prediction-target correlations for self-generated thought and subjective interpretation, comparing NeuroSTORM with the proposed framework. Boxes show medians and interquartile ranges (IQRs); whiskers extend to the most extreme values within 1.5×IQR1.5 \times IQR of the box limits, with outliers shown individually. ∗∗∗∗P<0.0001****P < 0.0001. g, Representative open-ended language and visual decoding outputs. Green words mark shared key semantic content in reference and decoded text.

maintained through continual cognitive inference from variable neural activity.

References (43)