Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2024 Sep 13;3(9):pgae404.
doi: 10.1093/pnasnexus/pgae404. eCollection 2024 Sep.

Confidence and second-order errors in cortical circuits

Affiliations

Confidence and second-order errors in cortical circuits

Arno Granier et al. PNAS Nexus. .

Erratum in

Abstract

Minimization of cortical prediction errors has been considered a key computational goal of the cerebral cortex underlying perception, action, and learning. However, it is still unclear how the cortex should form and use information about uncertainty in this process. Here, we formally derive neural dynamics that minimize prediction errors under the assumption that cortical areas must not only predict the activity in other areas and sensory streams but also jointly project their confidence (inverse expected uncertainty) in their predictions. In the resulting neuronal dynamics, the integration of bottom-up and top-down cortical streams is dynamically modulated based on confidence in accordance with the Bayesian principle. Moreover, the theory predicts the existence of cortical second-order errors, comparing confidence and actual performance. These errors are propagated through the cortical hierarchy alongside classical prediction errors and are used to learn the weights of synapses responsible for formulating confidence. We propose a detailed mapping of the theory to cortical circuitry, discuss entailed functional interpretations, and provide potential directions for experimental work.

Keywords: cortical computation; energy-based models; predictive coding; uncertainty.

PubMed Disclaimer

Figures

Fig. 1.
Fig. 1.
Predictive distributions in the cortical hierarchy. a) Probabilistic model. Latent representations (u) are organized in a strict generative hierarchy. b) Predictions are Gaussian distributions. Both the mean (μ=Wr+1, first-order) and the confidence (π=Ar+1, inverse variance, second-order) are functions of higher-level activity.
Fig. 2.
Fig. 2.
Neuronal dynamics of inference. a) A high-level schematic depiction of neuronal dynamics (Eqs. 2 and 3). Prediction errors [e] are first computed by comparing predictions [μ=Wr+1] with actual activity or data [u]. Prediction errors are weighted multiplicatively by the estimated confidence (inverse expected variance) of the prediction [π=Ar+1]. The second-order errors [δ] are computed by comparing inverse confidence estimates [π1] and squared prediction errors [e2]. The second-order errors are up-propagated and integrated alongside up-propagated prediction errors into the total error [a]. The total error is divisively modulated by the prior confidence [π] b) A more detailed illustration centred on dynamics for representations at a single level ℓ. Prediction errors and second-order errors are then those of level 1.
Fig. 3.
Fig. 3.
Adaptive balancing of cortical streams based on confidence. a) Divisive modulation of errors by the confidence of top-down predictions about what the activity of a neuron should be (prior confidence, π1). b) Multiplicative modulation of errors by the confidence of predictions that a neuron makes about what the activity of other neurons should be (data confidence, π1).
Fig. 4.
Fig. 4.
Propagation of second-order errors for classification. a) The second-order errors compare confidence and performance (with performance defined as a function of the magnitude of prediction errors). b) A 2×2 network for binary classification. During learning, the X and Y data are sampled from one of the two class distributions, and the activity of neurons representing the class is clamped to the one-hot encoded correct class. Parameters (W,A) are then learned following Eqs. 4 and 5. During inference, the activity of neurons representing the class follows neuronal dynamics (without top-down influence), and we read the selected class as the one corresponding to the most active neuron. Prediction error (first-order) propagation is omitted in the depiction. c) Maximizing the likelihood of predictions leads to nonlinear classification in a single area. di) Two different 2-dimensional binary classification tasks. The ellipse represents the true class distributions for the two classes. dii) Classification with second-order error propagation. diii) Classification without second-order error propagation. e) Classification accuracy on the task presented in d, second column.
Fig. 5.
Fig. 5.
Cortical circuit for neuronal dynamics of inference (as described in Eq. 2 and Eq. 3). a) Representations (u) are held in the somatic membrane potential of L6p. Top-down synapses carrying predictions (μ=Wr+1) directly excite L6p at proximal dendrites. Bottom-up confidence-weighted prediction errors (W1T(π1e1)) and second-order errors (A1Tδ1) are integrated into total error (a) in the distal dendrites of L6p as described in Eq. 3. This total error is then weighted by the prior uncertainty (π1) through divisive dendritic inhibition realized by deep SST-expressing interneurons. b) Top-down predictions (μ=Wr+1) and local representations (u) are compared in L3e. Confidence weighting is then realized through gain modulation of L3e by the disinhibitory VIP-expressing and SST-expressing interneurons circuit. c) L3δ compares top-down confidence and local squared prediction errors encoded in basket cells (BC) into re-weighted second-order errors.

References

    1. Pouget A, Beck JM, Ma WJ, Latham PE. 2013. Probabilistic brains: knowns and unknowns. Nat Neurosci. 16(9):1170–1178. - PMC - PubMed
    1. Koblinger Á, Fiser J, Lengyel M. 2021. Representations of uncertainty: where art thou?. Curr Opin Behav Sci. 38:150–162. - PMC - PubMed
    1. Walker EY, et al. 2023. Studying the neural representations of uncertainty. Nat Neurosci. 26(11):1857–1867. - PubMed
    1. Ernst MO, Banks MS. 2002. Humans integrate visual and haptic information in a statistically optimal fashion. Nature. 415(6870):429–433. - PubMed
    1. Olkkonen M, McCarthy PF, Allred SR. 2014. The central tendency bias in color perception: effects of internal and external noise. J Vis. 14(11):5–5. - PubMed