Skip to main content
PLOS Computational Biology logoLink to PLOS Computational Biology
. 2020 Jun 2;16(6):e1007935. doi: 10.1371/journal.pcbi.1007935

Brain dynamics for confidence-weighted learning

Florent Meyniel 1,*
Editor: Jill O'Reilly2
PMCID: PMC7292419  PMID: 32484806

Abstract

Learning in a changing, uncertain environment is a difficult problem. A popular solution is to predict future observations and then use surprising outcomes to update those predictions. However, humans also have a sense of confidence that characterizes the precision of their predictions. Bayesian models use a confidence-weighting principle to regulate learning: for a given surprise, the update is smaller when the confidence about the prediction was higher. Prior behavioral evidence indicates that human learning adheres to this confidence-weighting principle. Here, we explored the human brain dynamics sub-tending the confidence-weighting of learning using magneto-encephalography (MEG). During our volatile probability learning task, subjects’ confidence reports conformed with Bayesian inference. MEG revealed several stimulus-evoked brain responses whose amplitude reflected surprise, and some of them were further shaped by confidence: surprise amplified the stimulus-evoked response whereas confidence dampened it. Confidence about predictions also modulated several aspects of the brain state: pupil-linked arousal and beta-range (15–30 Hz) oscillations. The brain state in turn modulated specific stimulus-evoked surprise responses following the confidence-weighting principle. Our results thus indicate that there exist, in the human brain, signals reflecting surprise that are dampened by confidence in a way that is appropriate for learning according to Bayesian inference. They also suggest a mechanism for confidence-weighted learning: confidence about predictions would modulate intrinsic properties of the brain state to amplify or dampen surprise responses evoked by discrepant observations.

Author summary

Learning in a changing and uncertain world is difficult. In this context, facing a discrepancy between my current belief and new observations may reflect random fluctuations (e.g. my commute train is unexpectedly late, but it happens sometimes), if so, I should ignore this discrepancy and not change erratically my belief. However, this discrepancy could also denote a profound change (e.g. the train company changed and is less reliable), in this case, I should promptly revise my current belief. Human learning is adaptive: we change how much we learn from new observations, in particular, we promote flexibility when facing profound changes. A mathematical analysis of the problem shows that we should increase flexibility when the confidence about our current belief is low, which occurs when a change is suspected. Here, I show that human learners entertain rational confidence levels during the learning of changing probabilities. This confidence modulates intrinsic properties of the brain state (oscillatory activity and neuromodulation) which in turn amplifies or reduces, depending on whether confidence is low or high, the neural responses to discrepant observations. This confidence-weighting mechanism could underpin adaptive learning.

Introduction

Popular learning algorithms like predictive coding [14] and the delta rule [5,6] posit that expectations (or equivalently here, predictions) play a key role in learning from a sequence of observations. Those algorithms, in their simplest form, consist in updating the quantity that is learned, in proportion to the prediction error, which is the difference between the prediction and the actual observation. This solution is simple and yet efficient even in changing and uncertain environments [68]. Other, more sophisticated algorithms exist [914], they formalize the discrepancy between predictions and observations differently (prediction error, improbability, surprise) but they all have in common that this discrepancy is the driving force of learning.

Recently, another aspect of human learning has been put forward: learning is accompanied by a sense of confidence about predictions. Interestingly, this sense of confidence follows, at least in part, the optimal principles of probabilistic inference; in that sense, it is rational [10,15,16]. Here, we embrace the proposal that, in a learning context, the sense of confidence plays a functional role [10,1719]: it regulates learning according to the confidence-weighting principle. This principle is prescribed by the optimal rules of probabilistic inference and is exhibited in particular by Bayesian models, which obey those rules. In such models, the update is not only guided by discrepant observations, but also regulated by confidence about predictions: for a given discrepancy, the update is smaller when the confidence associated with the prediction was larger. In other words, in a learning context, confidence should set the balance between predictions and new data in order to update the current belief. This confidence-weighting principle is not specific to learning, it is generally applicable whenever several sources of information must be combined [18,2024]. Confidence-weighting is also related to other notions discussed at the end of this article (selective attention [18,25], the weight of evidence [24], the precision of predictions [12,17,26]).

We propose to use optimal Bayesian models as a benchmark to formalize, at a computational level, the learning process. Our task presents long sequences composed of two stimuli (A or B); we formalize several latent variables of learning as follows (see Eqs 35 in Methods).

  • The prediction about the next stimulus corresponds to the estimated probability of the stimulus, p(A). The Bayesian model actually estimates (or learns, infers; they are synonyms here) a full distribution indicating the likelihood of any possible value of p(A) given the previous observations; the prediction is thus more specifically the expected value of p(A) (i.e. the mean of the distribution). Note that p(B) can be deduced from p(A) as p(B) = 1-p(A); one can thus focus arbitrarily on p(A) rather than p(B) without loss of generality.

  • We formalize the discrepancy between predictions and observations as the information-theoretic measure of surprise [2729]. Technically, surprise is the estimated negative log probability of the observed stimulus; it is similar (but not identical) to the unsigned prediction error [3]: one increases non-linearly as a function of the other.

  • Last, we formalize the confidence about a prediction, as the log-precision (i.e. log(1/variance)) of the full distribution over the prediction p(A) [15,16,30,31].

Previous studies reported conflicting results about the existence of a confidence-weighting mechanism in the brain [19,32,33]. Here, we used a probability learning task previously developed, in which the participants’ reports of probability and the associated confidence levels are compatible with optimal Bayesian inference. Our goal is two-fold. Numerous studies reported the existence of surprise signals in the brain, i.e. neural responses that are more vigorous for unexpected stimuli [29,3442]. We will test whether surprise responses show an additional effect of confidence as prescribed by the confidence-weighting principle, making them suitable for close-to-optimal updates. Second, previous studies suggested that stimulus-evoked responses are shaped by intrinsic properties of brain networks (which we will term brain state for brevity). Those properties are changing endogenously (rather than being merely evoked by a stimulus [4347]), they are functional (they regulate information processing [4853]) and at least in part under top-down control (subtending for instance selective attention [5456]). Those properties are characterized by specific synchronization of oscillatory activity particularly in low frequency bands [48,49,51,52,57] and controlled by neuromodulators [4345,53,55,56]. We will test whether confidence, which changes depending on the sequence of stimuli following the Bayes optimal model, modulates the brain state by inspecting spectral properties of brain activity and the neuromodulatory state reflected by non-luminance related changes in pupil size. Last, we will test whether those intrinsic aspects of the brain state shape surprise signals in the brain, thereby offering a possible neural mechanism for confidence-weighted learning.

Results

Studying confidence in a learning context with a Bayes optimal model

We adopted a probability learning task (Fig 1A) that is amenable to (optimal) Bayesian modeling, and in which the human inference is well accounted for by a Bayesian model. Subjects were presented with auditory sequences made of two tones (say A and B), presented randomly according to predefined transition probabilities between successive tones: p(A|A) and p(B|B) (we motivate the use of transition probabilities below). Note that p(B|A) and p(A|B) are deduced from the two other quantities as 1-p(A|A) and 1-p(B|B). Those transition probabilities changed abruptly and unpredictably in the course of the experiment, at “change points”. The generative model of the task therefore has three levels, organized hierarchically: 1) the sequence of tones, 2) the transition probabilities governing the tones and 3) the probability of change point, which was fixed across trials. We used Bayesian inference to invert the generative process of the task (Fig 1B) and estimate, at any given trial, the transition probabilities currently generating the tones, given previous observations and knowledge of the actual task structure. This inference returns full posterior distributions for the transition probabilities p(A|A) and p(B|B), see Fig 1C.

Fig 1. Rational confidence levels during a probability learning task.

Fig 1

(A) Subjects listened to sequences of two tones (denoted A and B) generated randomly following (order 1) transition probabilities that changed abruptly at unpredictable moments. Subjects knew about this generative process and the tones were perceived without ambiguity. Occasionally subjects were asked to report the probability of the next tone, which amounts to reporting the transition probability relevant at the moment of the question, and then their confidence about this probability estimate. They used continuous sliders for both reports. (B) We designed a Bayes-optimal, hierarchical model that corresponds to the generative process used in the experiment: given current and past observations ys, it estimates the momentary transition probabilities θt, knowing that there is a fixed probability pc (= 1/75) of a change point at every trial. (C) The Bayes-optimal, hierarchical model returns a posterior, time-varying, two-dimensional distribution, each dimension corresponding to a transition probability. This distribution evolves as a function of the observations received; the heat-map shows the evolving distribution, color-coded and stacked horizontally (a vertical slice corresponds to the distribution at a given moment). We formalized the answers to question 1 (probability report) and 2 (confidence) as the mean of the distribution (white circle) and its log-precision, respectively. (D-E) Subjects’ reports are plotted against equally-filled bins of Bayes-optimal values, as mean ± s.e.m.

Subjects, as the Bayes-optimal model, were fully informed about the task structure; the only difference is that they were not given the numeric value of the frequency of change points, but the qualitative indication that they are rare. We probed their inference occasionally (i.e. once in a while) by asking them to report the probability of the next tone (question #1), and then their confidence about this estimate (question #2). In the Bayes-optimal model, the answer to question #1 corresponds to the mean of the posterior distribution of the relevant transition probability (the one that corresponds to the tone presented on the previous trial), and we formalized the answer to question #2 (confidence) as the log-precision of this distribution (see Methods) because when precision is high, the posterior evidence is highly concentrated around the mean, which gives credence to this value (Fig 1C).

Below, we leverage several features of the task. First, the Bayes-optimal model provides an account of the subjects’ probability estimates and confidence during the question trials (see “Behavioral results”), which licenses the use of this good-enough model to study the brain mechanisms of inference during the no question trials. The no question trials are advantageously numerous and unperturbed by motor artifacts or other processes related to answering questions. Second, change points induce frequent trial-to-trial upward and downward variations in confidence in both the optimal Bayesian model and subjects, which facilitates the exploration of the neural correlates of confidence. In the absence of change points, confidence would essentially increase steadily with the trial number (because estimates get more precise with more data points), thereby hindering the quest of correlates of confidence. Third, the use of transition probabilities further increases trial-to-trial variations in confidence: when p(A|A) and p(B|B) are associated with markedly different levels of confidence, then confidence about the prediction greatly changes depending on whether the previous observation was A or B (see S1 Fig for an example).

Behavioral results

Subjects’ probability estimates were highly correlated with the Bayes-optimal model (Fig 1D): Pearson ρ = 0.62 ± 0.04 s.e.m., 95% CI = [0.55 0.70], Cohen d = 3.42, t23 = 16.75, p = 2.2 10−14. The same was true for confidence reports, although to a lesser extend (Fig 1E): ρ = 0.23 ± 0.04 s.e.m., 95% CI = [0.15 0.30], Cohen d = 1.26, t23 = 6.19, p = 2.6 10−6. Beyond mere correlation, it is also instructive to test for qualitative features of the Bayes optimal model. Several features of subjects’ confidence conformed to the Bayesian model, which replicates the results of a previous study [15].

Confidence was not linearly related to the probability estimate in the Bayes-optimal model (Pearson ρ = 0.04±0.03 s.e.m., 95% CI = [-0.03 0.11], Cohen d = 0.24, t23 = 1.19, p = 0.25), nor in subjects (Pearson ρ = -0.004±0.036 s.e.m., 95% CI = [-0.08 0.07], Cohen d = -0.02, t23 = -0.12, p = 0.90). However, there was a U-shape relationship: confidence is typically higher when the estimated probability p approaches 0 or 1 (i.e. when the next observation is more predictable), which was captured, in a multiple linear regression of confidence including both p and p2, as a significant weight on p2, in the Bayes-optimal model (β = 0.64±0.04 s.e.m., 95% CI = [0.55 0.74], Cohen d = 2.94, t23 = 14.4, p = 5.5 10−13) and in subjects (β = 0.21±0.03 s.e.m., 95% CI = [0.15 0.26], Cohen d = 1.58, t23 = 7.76, p = 7.2 10−8).

In the optimal model, confidence also tends to be lower when the previous observation was more surprising. A linear regression of confidence captured this effect with a negative weight of surprise (β = -0.22±0.01 s.e.m., 95% CI = [-0.24 -0.21], Cohen d = -6.61, t23 = -32.39, p = 1.1 10-20). We could not test whether subjects were also less confident when more surprised because we do not have access to their prediction on the previous trial (and thus, the ensuing surprise) due to the occasional nature of behavioral reports in our task. However, we can test for a relationship between their reported confidence and the Bayes-optimal surprise on the previous observation, which was also negative (β = -0.04±0.01 s.e.m., 95% CI = [-0.06 -0.02], Cohen d = -1.10, t23 = -5.41, p = 1.7 10-5).

The Bayes-optimal confidence also tends to increase as more observations are accumulated within a stable period (i.e. since the last change point). This increase should be linear with the log number of observations (a result that can be derived analytically), and indeed captured as a linear effect in the model (β = 0.16±0.01 s.e.m., 95% CI = [0.14 0.19], Cohen d = 2.68, t23 = 13.11, p = 3.7 10-12) and subjects (β = 0.02±0.01 s.e.m., CI = [0.01 0.03], Cohen d = 0.64, t23 = 3.13, p = 4.7 10-3).

Those three features of confidence (effects of p2, surprise, log-number of observations) could constitute a heuristic estimation of confidence approaching optimality. However, subjects’ confidence was not reducible to those effects. We estimated a multiple linear regression of the subject’s confidence including many potential predictors: the Bayes-optimal estimate of p, p2, log(p) and log(1-p) (in order to capture non linear effects), the same quantities but with the subject’s probability (ps, ps2, log(ps) and log(1-ps)), the optimal estimate of last surprise, the optimal estimate of the last prediction error (as in linear predictive coding [3]), and the log number of observations since the last change point. Despite those eleven predictors, the residual subject’s confidence still covaried significantly with Bayes-optimal confidence (β = 0.012±0.003 s.e.m., 95% CI = [0.005 0.019], Cohen d = 0.70, t23 = 3.44, p = 2.2 10−3), ruling out that it is reducible to those sophisticated heuristics.

Evidence for a confidence-weighting of surprise in evoked responses

Many brain responses evoked by stimuli are known to be modulated by surprise: they are more vigorous for unexpected stimuli. Here, we tested whether we could identify such surprise responses and whether they would show additional effects of confidence following the confidence-weighting principle, i.e. dampened responses for higher confidence. To this end, we estimated a multiple regression model, systematically and independently for all sensors and peri-stimulus times, from -0.1 to 0.8 s. Note that the inter-stimulus interval is 1.4 s, such that this time window only contains the current stimulus. We included three predictors: the stimulus identity (coded as a binary variable), the Bayes-optimal surprise to the current stimulus and the Bayes-optimal confidence about the prediction of the current stimulus identity. This analysis yielded significant results for the three predictors (cluster-forming p<0.001, cluster-level p<0.05, two-tailed, n = 1,000).

We also performed a more conservative analysis, yielding very similar results. Some aspects of confidence being related to the probability estimate itself (see behavioral section above), the effect of confidence we found could be confounded with some aspects of the prediction itself. In order to rule out this possibility, we estimated another regression model, after replacing the Bayes-optimal confidence with the residual confidence. From now on, residual confidence will denote what remains in the Bayes-optimal confidence after regressing out several effects related to the probability estimate (Bayes-optimal p, p2, log(p), log(1-p); using the square and logs enables to capture non-linear effects). For instance, unlike confidence and by construction, residual confidence does not increase when the identity of the next observation is more certain (p closer to 0 or 1). Fig 2A shows the result of the analysis with residual confidence, and various significant effects (cluster-forming p<0.001, cluster-level p<0.05, two-tailed, n = 1,000): the stimulus identity (105–160 ms) co-occurring with a first surprise response (80–155 ms) followed by a second one (160–290 ms) and a late, prolonged one (360–715 ms). Importantly, an effect of confidence (155–230 ms) overlapped in space and time with the effect of surprise. The activity time course in the confidence cluster (Fig 2B), provided for illustrative purpose, shows that the response around 200 ms, characterized by an inward field (negative sign), is more vigorous for unexpected stimuli, and dampened for higher confidence, akin to the confidence-weighted surprise signal predicted by Bayesian learning. Source reconstruction within 155–230 ms (Fig 2C) revealed that the negative effect of confidence and the positive effect of surprise on brain activity showed some anatomical overlap.

Fig 2. Evidence for surprise and confidence-weighted surprise in evoked activity.

Fig 2

(A) The stimulus-locked evoked response was analyzed with mass-univariate regression. The value at each sensor and peri-stimulus time was regressed, across trials, using a multiple linear model with three predictors: the stimulus identity, the (residual) Bayes-optimal confidence about the probability of the current stimulus and the Bayes-optimal surprise (i.e. negative log likelihood). The time series show the significance, as t-values, of regression coefficients, with one line per sensor; topographies show the t-value of effect averaged within three time windows. Highlighted time points and sensors survive correction for multiple comparisons across peri-stimulus times and sensors (cluster-forming p<0.001 two-tailed, cluster-level p<0.05 two-tailed, n = 1,000). (B) Time series of MEG signal (mean ± s.e.m. estimated after subtracting the subject-mean) in the cluster of sensors (see inset) showing a significant effect of Bayes-optimal confidence. Trials were sorted into high and low surprise (median split) and high and low confidence (median split); this conjunction of splits resulted in 333.1 to 334.5 trials on average across subjects in each of the four conditions. The response around 200 ms is more extreme for higher surprise and less extreme for higher confidence. (C) Source reconstruction was computed within 155–230 ms for trials with high and low confidence (median split), high and low surprise (median split). The significance of the paired difference between high and low levels is shown separately for confidence and surprise (threshold: p<0.05, two-tailed, minimum cluster size: 50 vertices, total vertices: 306,716). Increased signal for higher surprise and lower signal for higher confidence overlapped in several brain regions.

Confidence-weighting of surprise in evoked responses: control analyses

We further tested the robustness of the confidence effect found within 155–230 ms in the significant sensors shown in Fig 2B. First, the regression model did not include an interaction between surprise and confidence, because their effects on model update is theoretically mostly additive, such that looking for a putative update signal corresponds to estimating a linear regression model with surprise and confidence, and then looking for an overlap of those two effects (see Methods for details). Their interaction, when included in the previous linear regression model, was not significant (β = 3.3 10−16 ± 1.1 10−15 s.e.m., 95% CI = [-0.20 0.26] 10−14, Cohen’s d = 0.06, t23 = 0.29, p = 0.77) and left the results unchanged. Second, the temporal profiles of Bayes-optimal confidence share commonalities across subjects, for instance, it is low at the beginning of a session, and then waxes and wanes multiple times (see S1 Fig). One concern is that those temporal characteristics may drive, for spurious reasons, the correlation between confidence and the MEG signal. To rule out this possibility, we shuffled the time-courses of (residual Bayes-optimal) confidence with respect to MEG data across subjects to estimate a null distribution for the correlation between confidence and MEG signal, and a Z-statistics. This approach controls for the temporal characteristics of Bayes-optimal confidence shared across all sequences presented to subjects, it is thus very conservative; yet the correlation between confidence and MEG signal remained significant (z = 0.95 ± 0.19 s.e.m., 95% CI = [0.55 1.35], Cohen’s d = 1.00, t23 = 4.92, p = 5.7 10−5).

Modulation of the brain state by confidence: Low frequency oscillations

Next, we examined whether Bayes-optimal confidence would correlate with spectral components of the MEG signal. Power in low frequencies (<40 Hz) typically characterizes the state of large networks [44,46,47,50,52,54,57]. Depending on this state, those networks could respond differently to incoming stimuli, thereby implementing a confidence-weighting mechanism of surprise (see Discussion). The signal was decomposed across peri-stimulus times and frequencies (6–40 Hz) and analyzed from -0.5 to 0.9 s. We used the same regression model as used for evoked response, with stimulus identity, Bayes-optimal surprise and residual Bayes-optimal confidence. We found significant effects (cluster-forming p<0.001 and cluster-level p<0.01 two-tailed, corrected for multiple comparisons, n = 2,000) of surprise and confidence which were all positive: the higher the confidence (or surprise), the higher the power. The surprise effect, given its topography, timing and low frequency simply reflected the evoked responses identified in Fig 2A. In contrast, the confidence effect was much more extended in terms of time, frequency and sensor. For simplicity, we grouped significant clusters in pre and post-stimulus clusters, and further sub-divided the latter in alpha and beta range, with respect to 12 Hz (Fig 3A). Beta band activity was particularly increased in the prefrontal cortex when confidence was higher (Fig 3B). Note that the confidence effect was present even before the stimulus, see for illustration the time courses (Fig 3C) and topography (Fig 3D) of the confidence effect in the 15–25 Hz band.

Fig 3. Beta-range oscillations reflect optimal and subjective confidence.

Fig 3

(A) The peri-stimulus power was analyzed with mass-univariate regression. The value at each sensor, peri-stimulus time and frequency was regressed, across trials, using a multiple linear model with three predictors: the stimulus identity, the (residual) Bayes-optimal confidence about the probability of the current stimulus and the Bayes-optimal surprise. We used correction for multiple comparisons across peri-stimulus times, sensors and frequencies (cluster-forming p<0.001, cluster-level p<0.01 two-tailed, n = 2,000). Several clusters were found for Bayes-optimal confidence, which were regrouped for clarity as: post-stimulus effect in beta band (>12 Hz); post-stimulus effect in the alpha band (≤12 Hz) and pre-stimulus effect in alpha-beta band. For each cluster, the inset shows the significant sensors and the heat-map shows the number of significant sensors for each time-frequency pair. (B) Source reconstruction of power was computed within 0.2–0.6 s and 15±3 Hz for trials with high and low confidence (median split). The significance of the paired difference between high and low confidence is shown (threshold: p<0.05, two-tailed). (C-D) For illustration, we show the significance levels (as t-value) of each predictor variable in the 15–25 Hz band, as time courses (C, one line per sensor; the threshold correspond to p<0.001 two-tailed) and topographies (D). (E-F) During question trials, the stimulus was replaced by a question, asking the subject for her prediction about the stimulus identify. We trained a multivariate ridge regression model in a cross-validated manner to predict, based on the pre-stimulus power (average within -500 to 0 ms relative to question) across frequencies, the confidence report of the subject. D shows the cross-validated prediction accuracy (mean ± s.e.m.) using equally-filled bins of data, and E shows the (non cross-validated) regression weights for each frequency and channels (together with the average across channels).

Low frequency oscillations: Control analyses

We further tested the robustness of those confidence effects in those three clusters. All clusters passed the tests, but showed that the effect was most robust in the post-stimulus, beta-band cluster; therefore, from now on we focus on this one (unless otherwise specified). First, we controlled that the correlation we found was not driven by the general temporal profile of Bayes-optimal confidence in the course of experimental sessions, using the same permutation procedure as described for the evoked responses. The effect remained significant (z = 1.16 ± 0.16 s.e.m., 95% CI = [0.84 1.49], Cohen’s d = 1.50, t23 = 7.35, p = 1.8 10−7). We also tested whether the effect survived the inclusion of confidence from the previous trial in the regression model, which was true: β = 2.5 10−26 ± 4.3 10−27 s.e.m., 95% CI = [1.66 3.44] 10−26, Cohen’s d = 1.21, t23 = 5.93, p = 4.8 10−6; this test is particularly relevant for the pre-stimulus cluster (β = 6.8 10−26 ± 1.8 10−26 s.e.m., 95% CI = [3.1 10.4] 10−26, Cohen’s d = 0.79, t23 = 3.85, p = 8.2 10−4), denoting a preparation of brain networks to the upcoming stimulus based on the confidence held specifically in the prediction. This effect suggests that power can change from one trial to the next, following changes in confidence. We tested this possibility by considering pairs of consecutive trials, sorting them into low and high confidence (median split) on the current trial and further sorting them into high vs. low confidence (median split) on the next trial. High-to-low and low-to-high transitions in Bayes-optimal confidence indeed corresponded respectively to decreases and increases in power from one trial to the next, see S2 Fig.

If some spectral properties of neural signals correlate with the (Bayes-optimal) confidence about the prediction even before the presentation of the next stimulus, then they may be predictive of the confidence reported by subjects when the stimulus is actually replaced by a question. Note that a similar analysis was not possible with stimulus-evoked responses (Fig 2) because the stimulus is actually replaced by the question. We trained a ridge regression model to predict the subject’s confidence report based on the pre-stimulus power (average between -500 and 0 ms with respect to the omitted stimulus) in frequencies ranging from 6 to 40 Hz, and evaluated its predictive accuracy in a cross-validated manner (see Methods). Out-of-sample predictions co-varied weakly but significantly with subject’s confidence (Pearson ρ = 0.06 ± 0.02 s.e.m., 95% CI = [0.019 0.101], Cohen’s d = 0.50, t23 = 2.43, p = 0.023, Fig 3E). To explore the frequencies contributing to this predictive power, we estimated the ridge regression weights on the full dataset of each subject (see Fig 3F). Those weights must be interpreted with caution because they depend on the covariance of the data, and may be different across subjects; nevertheless they suggest a positive effect of (low) beta range power (15–20 Hz) similar to the effect of Bayes-optimal confidence during the no-question trials. However, power in the alpha range (around 10 Hz) was negatively related to subjec’s confidence, unlike the effect of optimal confidence on power during no-question trials, suggesting the existence of multiple processings behind subjective confidence.

Modulation of the brain state by confidence: Pupil-linked arousal

The state of brain networks is also modulated by neuromodulation, in particular the arousal state that is reflected in changes in pupil diameter. Subjects were fixating and the task was auditory, without visual stimuli or change in luminance, the pupil diameter therefore reflected here the subject’s internal state. We distinguished two aspects of the pupil diameter: phasic and tonic levels, which we measured respectively as changes relative to a pre-stimulus baseline (-250 to 0 ms) and absolute changes. The phasic responses showed a transient increase in response to the stimulus (Fig 4A); we used a multiple linear regression for each peri-stimulus time point, including the Bayes-optimal surprise and Bayes-optimal confidence. The phasic levels showed only an effect of Bayes-optimal surprise (Fig 4B) whereas the tonic levels showed only an effect of Bayes optimal confidence: lower confidence was associated with larger tonic pupil size (increased arousal), see Fig 4C (cluster-forming p<0.05; cluster-level p<0.001, two-tailed, n = 10,000). The confidence effect on tonic pupil size was stable across peri-stimulus times, owing to the strong autocorrelation of this signal (autocorrelation for a 2 s lag, ρ = 0.75 ± 0.13, median and SD across recording sessions).

Fig 4. Tonic and phasic pupil size distinctly reflect confidence and surprise.

Fig 4

The z-scored pupil signal was analyzed with mass-univariate regression. The value at each peri-stimulus time was regressed, across trials, using a multiple linear model with two predictors: the Bayes-optimal confidence about the probability of the current stimulus, the Bayes-optimal surprise. We used the baseline (see grey area) corrected pupil size as a measure of phasic response. (A) shows its average values and (B) the effects of predictors. We used the uncorrected pupil size as a measure of its tonic level; (C) shows the effect of predictors. Time-series show mean ± s.e.m.; the horizontal dashed lines indicate significant time points, corrected for multiple comparisons (cluster-forming p<0.05; cluster-level p<0.05, two-tailed, n = 10,000).

Pupil-linked arousal: Control analyses

In order to test the robustness of the confidence effect on tonic pupil size, we repeated the same multiple regression analysis but considering now the residual Bayes-optimal confidence (cluster-level p = 0.005, n = 10,000) and to control for the temporal profile of Bayes-optimal confidence, we used the same permutation analysis as described above (cluster-level p = 0.03 one-tailed, n = 10,000).

Modulation of evoked responses by the brain state

The above analyses showed that the confidence about predictions modulates the brain states, in particular large-scale beta-range oscillations and the arousal state indexed by tonic pupil size. If those brain states play a role in the confidence-weighting of surprise, and thus perhaps the updating process, their level should modulate the confidence-weighted surprise responses evidenced in Fig 2, around 200 ms. In particular, they may capture trial-by-trial variations in the subject-specific states and thus account for the dampening of this surprise response on top of the effect predicted by the Bayes-optimal confidence. In order to test this possibility, we estimated two multiple regression models onto the evoked responses shown in Fig 2B, including the Bayes-optimal surprise, Bayes-optimal (residual) confidence, and the trial-by-trial value of either the post-stimulus beta-band activity (using the cluster shown in Fig 2A) or the tonic pupil size (averaged within -250 to 0 ms relative to stimulus onset). Bins of successive trials were used to achieve more robust results, see Methods. We corrected results for multiple comparisons using a cluster-forming p<0.05 and cluster-level p<0.05, one-tailed, n = 10,000 (Fig 5).

Fig 5. Tonic pupil size and beta-range oscillations shape the evoked response.

Fig 5

The signal in the confidence cluster shown in Fig 2B was analyzed with mass-univariate regression. (A) Average MEG signal in the confidence cluster shown in Fig 2B. The sign of the signal is useful to interpret the effect of predictors. (B) Results of a multiple regression model comprising: the (residual) Bayes-optimal confidence about the probability of the current stimulus, the Bayes-optimal surprise and the power in the post-stimulus, beta band cluster (see Fig 3A). (C) Results of the same multiple regression model but with tonic pupil size instead of beta-band power. Time-series show mean ± s.e.m., horizontal dashed lines indicate significance corrected for multiple comparisons (cluster-forming p<0.05; cluster-level p<0.05, one-tailed, n = 10,000).

This analysis replicates the result found in Fig 2: an effect of Bayes-optimal surprise around 200 ms (as well as later) together with an opposite effect of Bayes-optimal confidence. More beta-band power being correlated with higher confidence, beta-band power should dampen the surprise response, whose sign was negative (corresponding to an inward field), this negative effect (dampening) onto a negative surprise response (inward field) should result in a positive regression coefficient, a result that we observed and which was significant only around 200 ms. By contrast, higher tonic pupil levels correlating with lower confidence, tonic pupil should therefore strengthen the surprise response, which was negative (inward field), an effect that should result in a negative regression coefficient, which we observed significantly and selectively around 200 ms.

In order to better interpret those effects, it is important to know whether those beta-band oscillations and the tonic pupil size are two sides of the same coin (but note that pupil data is available only in 18/24 subjects, reducing statistical power). If so, one would expect a negative trial-to-trial correlation, since those signals co-vary, respectively, positively and negatively with Bayes-optimal confidence. However, this correlation was negligible, if not even slightly positive (Pearson ρ = 0.043 ± 0.03 s.e.m., 95% CI = [-0.02 0.11], Cohen’s d = 0.36, t17 = 1.53, p = 0.14). Instead of using separate multiple regression models, one can include those two signals in the same model of the evoked response, along with the Bayes-optimal surprise and confidence. The regression coefficients become difficult to interpret since the predictors (pupil size, beta-band power) share correlation with confidence, which itself correlates with the evoked response. However, we found a significant effect of pupil size from 115 to 220 ms (cluster-forming p<0.05 and cluster-level p<0.05, one-tailed, n = 10,000).

Discussion

Subjects estimated the probabilities that characterize a sequence of inputs, and the confidence associated with those estimates, following (to some extent) the principles of Bayesian inference. Those estimates were accurate despite the presence of volatility. Bayesian inference leverages the confidence-weighting principle to remain accurate in the face of volatility, by dynamically modulating the update prompted by surprising observations. The MEG responses evoked by stimuli showed numerous signatures of surprise (vigorous responses to unexpected stimuli) and for one of them, an additional effect of confidence, conforming to the confidence-weighting principle. Whole-brain beta-band power increased with optimal confidence and was predictive of the actual subject’s confidence. Lack of confidence increased the tonic pupil size while phasic dilation reflected surprise. Lower beta-band power and higher tonic pupil size increased the evoked, confidence-weighted surprise response. Overall, the results indicate that changes in brain state indexed by beta-band power and pupil-linked arousal, are related to differential responses to surprising stimuli, providing a mechanism for a dynamic confidence-weighting of learning.

We now discuss those results in the context of previous studies, which requires to delineate precisely what aspects of confidence we investigated here. It is the confidence that accompanies probability estimates on a trial-by-trial basis, thus it is not “global” or related to self-confidence [58]. It is also not related to whether the stimulus is perceived clearly or ambiguously, which is important in general for inference [12,18,5961] but does not play a role here since stimuli were perceived without ambiguity. In addition, most results here are based on Bayes-optimal confidence: the one that the subject should hold. It correlated with subject’s confidence and beta-band power (which itself was also predictive of subject’s confidence). Yet, Bayes-optimal confidence remains only an imperfect model of subject’s confidence and both quantities, although related here, should not be conflated. Future work should investigate the algorithm (which the Bayes optimal model is not), i.e. the chain of computations that allows the subject to convert a given sequence of observations into a probability estimate and the associated confidence level. The present results may be useful to this end, by listing some properties that this algorithm should exhibit (confidence-weighting, several normative properties of confidence).

The type of confidence studied here (about a learned estimate) is also different from most studies, which focused on confidence about memory [62,63] and confidence about decisions [18,60,64]. Those different types of confidence correspond theoretically to different constructs: confidence about a memory or decisions correspond to the probability of the decision or memory being correct [60,65], whereas confidence about a learned estimate (even when this estimate is itself a probability) corresponds to a higher-order quantity: the precision of a posterior distribution [15,16,31,66].

Last, previous studies have not always disentangled confidence from related quantities. In many situations, confidence about predictions (i.e. posterior precision) is related to the expected outcome uncertainty (also referred to as predictability [6769]). Our own analysis shows that confidence indeed increases, in the Bayes-optimal model and subjects, when the next outcome is more certain (probability closer to 0 or 1). Previous studies showed that the precision of predictions modulates reaction times [26], functional magnetic resonance imaging (fMRI) activity in fronto-parietal networks [70], pupil size [71], or MEG/EEG responses like the mismatch negativity [6769,72], but with tasks and analyses that leave unclear whether the effect is genuinely about precision, or also about expected outcome uncertainty. A similar and related confound exists between expectation and attention, which are often related in practice but distinct in theory [39,67,68]. Here, we controlled specifically for this correlation by using the residual confidence in our analyses. This is important because many brain signals are associated with expected outcome uncertainty [28,39,6771,7375].

We now discuss more broadly the putative mechanisms of confidence-weighting in a learning context. Our interpretation is that confidence modulates the state of brain networks, which then process the feedforward input differently, in particular by increasing (low confidence) or decreasing (high confidence) the response to surprising stimuli, thereby modulating the effect of surprise onto updating. This interpretation is in line with the notion of neural gain: when the neural gain is higher (low confidence), expected and unexpected stimuli, for the same difference in expectation, elicit a larger difference in response. The neural gain is largely thought to depend on attention, neuromodulation and oscillatory activity in brain networks, three aspects that we discuss below.

The role of confidence on update described here is computationally identical to the one ascribed to selective attention: some observations are given more weight than others; this link has been already discussed by others [25]. This is also related to the notion of neural gain which enhances or suppresses the effect of a given stimulus on further, downstream processing [76]. Noradrenaline was proposed as a major modulator of the neural gain [55]. This is particularly interesting since we found modulations of tonic pupil size by confidence. Specifically, we found larger pupil size for lower confidence, which is consistent with previous studies [77]. Non-luminance based changes in pupil size reflect the arousal state and in particular, noradrenaline release. Correlation between pupil size and firing activity in the locus coeruleus, the main nucleus releasing noradrenaline in the brain [78], was found in both rodents [43] and macaque monkeys [79]. In addition, noradrenergic activity, unlike cholinergic activity, correlates with both fast and slow changes in pupil size [80]. The effect of confidence on tonic pupil size found here could therefore arise from a change in noradrenergic activity. This noradrenergic activity changes neurons’ membrane potential [81] and its slow fluctuations [43], promoting the selectivity of sensory processing, akin to the neural gain model. Similarly, activation of the locus coeruleus (and increased pupil size) promotes feature selectivity in the sensory domain [56,82]. Changes in pupil size are also related to changes in the processing of sensory information and performance during perceptual decision making tasks [83,84], with different effects of phasic and tonic pupil size [85] as in the present results.

In line with this noradrenergic modulation of neural gain, previous studies showed that larger tonic pupil size renders fMRI responses more extreme, i.e. lower or higher [76]. Larger pupil size and higher activity of the locus coeruleus are also associated with better memorization [86,87], and thus a long lasting effect of the current observations. Rodent studies showed that one-shot learning can occur with noradrenergic input to the hippocampus [88]. More generally, a role for noradrenaline in confidence-weighted learning is consistent with the fact that increased pupil size co-occurs with increased updating [36] and reset of current strategies [89], and that more volatile learning contexts are associated with larger pupil size [71,90]. Pharmacological studies in humans also provide supportive evidence, showing that manipulation of noradrenergic activity impacts the estimation of confidence in a decision task [91], learning dynamics when unexpected changes occur [92] and the effect of surprise on update [32,93].

The modulation of responses to new observations (notably surprising ones) by the current state of neural networks has also been associated repeatedly to specific rhythms of network activity, which provide signatures of networks’ dynamics and computations [54,57]. This state-dependent modulation should aim at prioritizing new evidence when confidence is low, and on the contrary, preserve current estimates from conflicting evidence when confidence is high. Our data indicate that beta (and perhaps alpha) band power could play a key role in such a prioritization. This result is in line with the previous proposal that higher beta-band power preserves the current state of networks, promoting a “status quo” rather than a change [46] which may also be true for lower (alpha) frequencies [50]. Beta-band power in particular is associated with feedback signals [94], stronger attention and top-down control [95,96], and the prioritization of the current brain states over new inputs [47]. In support to this view, stronger low frequency (<30 Hz) oscillations attenuate early evoked sensory responses [52], increase the criterion of perceptual detection (resulting in reduced detection) by modulating baseline excitability [97100] and degrade performance in perceptual decisions [101].

We acknowledge that the effect of confidence on the evoked response we report is weaker in strength, temporal and spatial extent, than the other effects (e.g. stimulus identity, surprise), which is certainly a weakness of our study. However, it is noticeable that the modulation of evoked surprise responses by confidence was confined to an early post-stimulus latency (around 200 ms) rather than occurring later, as could be expected for instance from the proposal that later brain waves like the P300 correspond to the updating, which in theory is confidence-weighted, and enhanced by attention [38,67,73,102108]. However, those later brain-waves, in particular the P300, are not systematically a signature of update, for instance in a recent EEG study [33], the P300 was modulated by surprise, but equally and irrespective of the need to update the current estimate. In line with our result, another EEG study showed that the difference between expected and unexpected sounds (standard and deviant in an oddball task) was also larger around 175–200 ms (and after 350 ms) when pupil size was larger [109]. In rodents, activation of the locus coeruleus also increased the amplitude of multi-unit activity (in the sensory cortex involved in the task) specifically within 125–200 ms post-stimulus [44]. The mismatch negativity, a surprise response peaking around 170 ms, also seems better explained (in a roving paradigm) by confidence-weighted updates than by change detection, adaptation or simple prediction errors [110]. Those studies are thus consistent with the latency of the confidence-weighted surprise response we found here. Source reconstruction showed that this effect may arise from the inferior frontal sulcus (among other regions), which is consistent with the location of the confidence-weighted surprise responses detected with fMRI in the same probability learning task as used here [19].

Subjects were fully aware of the stimuli in our task, and actively engaged in the estimation of the generative probabilities; thus, with the current study alone, one cannot know whether the same neural correlates of confidence (evoked responses around 200 ms, beta-band oscillations, tonic pupil size) would have been found had the subjects been ignorant about the task structure, or performing a task orthogonal to the estimation of probabilities, or even not paying attention to the stimuli.

Another limitation of the present study is that we do not demonstrate directly a link between confidence-weighted surprise responses and the updating of an internal model. This is because, in the present design, behavioral reports are occasional, making it impossible to measure how much the subject updates her prediction from one trial to the next. Future studies could use a denser sampling of behavior so as to test whether the size of the confidence-weighted surprise response (probed neurally) on a given trial is predictive of the ensuing update (probed behaviorally). All analyses are also based on correlations, which indicate the existence of associations but remain insufficient to interpret those associations as causal links.

Together, the studies quoted above and our own results support the idea that higher synchronization in alpha/beta band frequencies and lower noradrenergic activity could be mechanisms by which the brain shields current estimates against update prompted by surprising observations, thereby implementing a confidence-weighting mechanism during learning.

Methods

Participants

Twenty-four participants (16 women) aged between 20 and 34 (mean: 25.4, SD: 3.7) were recruited by public advertisement. They gave their written inform consent prior to participating; the study was approved by the Ethics Committee Ile de France VII (CPP 08–021). For one subject, one of the four sessions was unavailable due to a technical problem. Due to technical errors in saving files, the pupil diameter data is available only for 18 of the 24 subjects; analyses involving pupil size are restricted to those 18 subjects; all other analyses are performed on the 24 subjects.

Task

This task and minor variants have been used previously [8,15,19]. The task was run using Matlab and Psychtoolbox. The experiment was divided into one training session, performed outside the MEG room, and four sessions in the MEG (lasting approximately one hour and a half with pauses). Each session presented a sequence of 380 auditory tones (one every 1.4 s), denoted A and B, corresponding to chords (350, 700 and 1400 Hz vs. 500, 1000 and 2000 Hz) that were perceived without ambiguity. Tones were presented in both ears, lasted 50 ms including 7 ms rise and fall times. The sequences were generated based on transition probabilities between successive tones; those probabilities were fixed only for a limited period of time delineated by change points. The change point probability was fixed on each trial, equal to 1/75; when a change point occurred, both transition probabilities were re-sampled within the interval 0.1–0.9, with the constraint that the change should be at least 4-fold for one of the probabilities, i.e. |log(pt11pt11ptpt)|>log(4) for p = p(A|A) or p = p(B|B). The sequence was occasionally interrupted by questions (median: every 13 trials, SD: 4.4), asking the subject to predict the identity of the next tone with a continuous slider (we reminded them about the identity of the previous tone, which is useful to report transition probabilities), and then the confidence about this prediction (slider whose ends were labeled “not at all” and “fully”).

Subjects were thoroughly instructed about this generative process. In order to acquaint subjects with the notion of randomness and transition probabilities, we used a graphical display with animated “wheels of fortune”. Each wheel corresponded to a pie chart, whose sections indicated the probability to repeat the same tone, or to change it, and each of the two charts corresponded to tones A or B, thus effectively representing transition probabilities. A ball rolled around the wheel with decaying speed, ending at a random position (in section “repeat” or “change”) that triggered the onset of the corresponding tone. Subjects rolled the ball multiple times to generate short sequences. In order to explain the notion of change point, we introduced a key which, when pressed, changed the size of sections “repeat” and “change” randomly, in both wheels. Subjects then generated sequences with change points. We then explained to subjects that, during the task, they would only hear the sequences of tones and that they would have to figure out the underlying pie charts (i.e. transition probabilities) and the moment of change points. They performed at least one full session as training.

Bayes-optimal learning model

The Bayes-optimal model used here is described elsewhere [8,15,111] and the corresponding Matlab code is available online: https://github.com/florentmeyniel/MinimalTransitionProbsModel. We used it with the following options: the learned quantities are “transitions”, the estimation type is “HMM”, the probability grid used for numeric integration has 20*20 values and the prior about transition probabilities is flat. Below, we summarize the main aspects of this model.

The model uses Bayes rule to infer optimally the posterior distribution of transition probabilities at any given trial, denoted θt (which is a pair of transition probabilities) given a set of assumptions M and previous observations y1:t:

p(θt|y1:t,M)p(y1:t|θt,M)p(θt,M) (1)

Those assumptions closely correspond to the actual generative process: the change point probability pc = 1/75 is given, and the model assumes that when a change point occurs, both transition probabilities are simultaneously re-sampled uniformly in the range 0 to 1 (it was not aware of additional constraints). The position of change points being unknown, the possibility that they may occur at any given trial must be taken into account. The generative process obeys the so-called Markov property: if one knows θ at time t, then the next observation yt+1 is generated with θt+1 = θt if no change occurred and with another value drawn from the prior distribution otherwise. Therefore, if one knows θt, previous observations are not needed to estimate θt+1. The generative process can thus be cast as a Hidden Markov Model (HMM), which enables to iterate the computation of the joint distribution of θ and observations, starting from the prior, and updating this distribution by moving forward in the sequence of observations:

p(θt+1,y1:t+1)=p(yt+1|θt+1,yt)p(θt,y1:t)p(θt+1|θt)dθt=p(yt+1|θt+1,yt)[(1pc)p(y1:t,θt=θt+1)+pcθtθt+1p(y1:t,θt)dθt] (2)

We computed this integral numerically by discretization on a grid. We obtained the posterior probability by normalizing this joint distribution.

Formalization of prediction, surprise and confidence

The prediction, i.e. the probability of the next stimulus (question #1 asked to subjects) was computed from the posterior using Bayes rule. It is the mean of the posterior distribution of the relevant transition probability (the one that corresponds to the tone presented on the previous trial), which we note θrel. Let θrel be probability of the next stimulus being A (not B), then:

p(yt+1=A|y1:t)=p(yt+1|θt+1,yt)p(θt+1|y1:t)dθt+1=E[θtrel|y1:t] (3)

The surprise corresponding to the actual new observation was defined, following [27], in bits, as the negative logarithm (to base 2) of the observation likelihood:

surprise=log2(p(yt+1|y1:t)) (4)

The confidence about the probability estimate (question #2) was computed as the log-precision of the posterior distribution of the relevant transition probability [15,16,18,31,66]:

confidence=log(var[θtrel|y1:t]) (5)

MEG recording and pre-processing

We recorded brain activity using a whole-head MEG system (Neuromag Elekta LTD, Helsinki), sampled at 1 kHz with hardware bandpass filtering between 0.1 and 330 Hz. This systems has 102 triplets of sensors (1 magnetometer and two orthogonal planar gradiometers); we report results for the magnetometers only, but we used all sensor types for source reconstruction. We digitized the head shape (FASTRAK, Polhemus) including the nasion, pre-auricular points and various points on the scalp, and we measured head position within the MEG system at the beginning of each session with four head position indicator coils placed on the subject’s head. Electro-oculograms, electrocardiogram and pupilometry were recorded simultaneously with MEG.

Raw MEG signals were first pre-processed with the constructor software MaxFilter, in order to correct for between-session head movement (recordings realigned on the first session), removing nearby magnetic interference and correcting for noisy sensors by means of Source Space Separation [112].

The data was further pre-processed with FieldTrip [113]. The signal was epoched from -1.4 s to 1.4 s relative to stimulus onsets, and -1.2 s to 0.5 s relative to question onsets. Epochs were visually inspected to reject those with abrupt jumps, spikes or muscular artifacts, and line filtered (50, 100, 150 Hz). Epochs were then decomposed with ICA; components were visually inspected and those resembling artifacts corresponding to eye blinks and heart beats were removed. Outlier epochs were rejected based on the signal variance and kurtosis. The mean number of trials finally included was 1335.8 ± 127 SD for stimuli and 90.2 ± 7.9 SD for questions. In order to analyze evoked responses, the signals were low-passed filtered (30 Hz) and down-sampled to 200 Hz. In order to analyze the spectral components, the signals was decomposed into peri-stimulus times (every 50 ms) and frequencies (every frequency between 7 and 40 Hz) with Morlet wavelets (using a f/σf ratio of 7, where f is the frequency and σf is the spectral standard deviation of the wavelet).

No baseline correction was applied since trials are not independent from one another in our transition probability task.

Source reconstruction

We acquired anatomical T1-weighted magnetic resonance images (3T Prisma Siemens scanner) for 18 of our 24 subjects with 1 mm resolution. This anatomical image was segmented to extract the cortical surface and head shape with FreeSurfer [114,115] and segmented tissues were imported into BrainStorm [116] to perform source reconstruction. For subjects without a personalized anatomical image, we used BrainStorm’s default template (ICBM152). MEG and MRI data were co-registered using the digitized anatomical markers. All cortical meshes comprised ~15 000 vertices.

For stimulus-evoked responses, we estimated at the subject-level the sources corresponding to the signal averaged within 155–230 ms (relative to stimulus onset) and across trials with high and low Bayes-optimal surprise, and high and low Bayes-optimal confidence (using median split for both). We estimated the noise covariance matrix from the signal within -0.3 to -0.1 s relative to stimulus onset, concatenated across trials. We used a normalized minimum norm estimate of the current density map, with a loose orientation constraint orthogonal to the cortical sheet (parameter 0.2), corresponding to the option dSPM in BrainStorm. The subject-level differences of current’s norm (high vs. low surprise, high vs. low confidence) where spatially normalized to the FSAverage atlas and analyzed statistically with a t-test at the group level. For display, the t-map was projected onto a high resolution mesh (~300,000 vertices).

For oscillations, we estimated at the subject-level the sources of the post-stimulus power in the beta band. Using FieldTrip, we computed the cross-spectral density for all sensor combinations, on each trial, using a tapper centered on 15 Hz with a smoothing window of ±3 Hz, and spanning 0.2–0.6 s after the stimulus presentation. We imported from Brainstorm into FieldTrip, the forward model and lead field model of each subject, which describe how activity in the source space translates into activity in the sensor space. We discretized the source space into a 3-dimensional grid with a 1 centimeter isotropic resolution. We then estimated, using all trials together, the beta power on each grid point using a beamformer (Dynamical Imaging of Coherent Sources), by computing a filter that projects sensor cross-spectral density data onto source space. This same filter was then used to project separately each condition (high vs. low confidence). We then computed the paired difference of power in source space, normalized the sources anatomically across subjects, and computed a group-level t-test for the condition difference. The resulting t-values were projected onto FieldTrip’s default standard surface anatomy for visualization.

Pupil size recording and pre-processing

Eye gaze and pupil size were monitored using EyeLink 1000. Blinks were delineated (adding a margin of 50 ms before and after) and the data within them linearly interpolated; the signal was then low-pass filtered (5 Hz) and epoched within -0.5 to 1.5 s relative to the stimulus onset. Epochs whose total blink duration exceeded 20% were excluded. Finally, the data was z-scored per subject.

Regression models

All multiple regression models included a constant and z-scored predictors. The significance of regression coefficients were assessed with group-level t-tests. Regressions were estimated with Matlab’s regstats.m function (based on QR decomposition), or custom code derived from it.

We often used the “residual” Bayes-optimal confidence as a predictor, which was computed by linearly regressing out several effects related to the prediction itself. More precisely, we estimated a multiple linear regression of the Bayes-optimal confidence, using as predictors the prediction itself (i.e. the Bayes-optimal estimate of the transition probability of the next stimulus, p(A)), its square and logarithm, log(p(A)) and log(p(B)). Using the square and logs enables to capture non-linear effects. The residual Bayes-optimal confidence was defined as the residuals of this multiple regression.

Most regression analyses of neural data include surprise and confidence, but not their interaction. This is because the model update, which we are ultimately interested in, consists in the present task mostly in an additive effect of surprise and confidence. We quantified this result as follows. We formalized the model update as the Kullback-Leibler divergence between the prior probability distribution (which is the posterior from the previous trial) and the current posterior, as in previous studies [19,29]. We performed two multiple linear regressions of the Bayes-optimal model update, both analyses included the Bayes-optimal surprise and confidence, with or without their interaction. The model without interaction resulted in a Pearson ρ between fitted and actual update of 0.836, indicating that model update is to a large extent captured by the additive effect of surprise and confidence. Including also the interaction resulted in a negligible increase: ρ = 0.839. An alternative analysis would have been to regress neural data directly against the Bayes-optimal model update; however it is a weaker test for an update signal because the sole effect of either surprise or confidence would be sufficient to yield a significant regression.

The multiple regression of the evoked response shown in Fig 5 involved the post-stimulus beta-band power, testing for a relation between the evoked response and power on the same trial. Note that the sensors and timing largely overlap; a spurious correlation is thus expected due to signal expression: when recorded MEG signals from this region are stronger or less noisy (e.g. due to artifacts, sensor noise or reduced brain-sensor distance related to breathing and motion) both the measured power and evoked response should be stronger. Luckily, our prediction is that when power is stronger, the evoked response should be weaker, due to the confidence-weighting mechanism, resulting in a sign opposite to the spurious (artifactual) correlation. We predicted that if the spurious correlation was driven by fast trial-to-trial variations in signal expression (compatible e.g. with breathing), averaging successive trials into bins would disrupt it. In contrast, the expected (non spurious) correlation between power and evoked response being driven by slower trial-to-trials changes in confidence and power, it should be more robust to this binning procedure; in practice the correlation between pairs of adjacent trials was 0.61 (±0.001 s.e.m., t23 = 65.8, p = 1.0 10−27) for confidence, and 0.15 (±0.022 s.e.m., t23 = 6.85, p = 5.5 10−7) for power (to be more conservative, we removed linearly the effect of Bayes-optimal confidence before computing this correlation). The effect of power onto the evoked response indeed greatly increased when using non-overlapping bins of 10 consecutive trials, specifically at the moment when such a correlation is expected (around 200 ms), see S3A Fig. This result holds for different bin sizes (S3B Fig). We reproduced qualitatively this effect with simulations (S3C Fig) under the following assumptions: 1) beta-band power linearly reflects Bayes-optimal confidence and has auto-correlated noise from trial-to-trial, 2) the (negative) evoked response linearly reflects surprise, beta-band power (negatively) and has non-correlated noise, 3) both signals are corrupted at the measurement level by the same non-correlated noise.

Correction for multiple comparisons

For signals with two or more dimensions (times and sensors; times, sensors and frequencies), correction for multiple comparisons was computed with FieldTrip, following permutations and cluster-based statistics (sum of t-values in the cluster) effectively controlling the family-wise error rate [117]. Sensors located less than 4 cm apart were considered as neighbors (which corresponds to on average 3.9 neighbors per sensor). For signals with one dimension (time), we used a custom code implementing the same cluster-based, permutation test.

All analyses were initially corrected using cluster-forming and cluster-level alphas of 0.05, with two-tailed test (excepted when testing a specific direction of the effect, e.g. Fig 5). However, several analyses appeared significant with even more conservative thresholds, which may be more instructive to report as it advantageously limits the number and extent of clusters for interpretation and follow-up analyses; several analyses (Figs 2 and 3) are thus reported with more conservative thresholds. In the text, we systematically report the cluster-forming threshold as p-value, the cluster-level p-value and number of permutations used for the test (n).

Cross-validated predictive accuracy

In order to estimate whether the subject’s confidence could be predicted from the pre-stimulus power across different frequencies, we used a cross-validated ridge regression. The power was averaged within -0.5 to 0 s relative to the stimulus onset and z-scored across questions. We used a ridge penalty of 0.01, but the results are quite robust to the choice of this parameter. We adopted a cross-validation approach: the data were split into 20 distinct sub-sets of inter-leaved trials and at each iteration, the ridge regression was estimated on all sub-sets but one, and its parameter estimates were used to predict subjective confidence on the left-out sub-set. We assessed the accuracy of this prediction as the Pearson correlation between predicted and actual confidence at the subject’s level.

Supporting information

S1 Fig. Temporal profile of confidence and surprise in the task.

We consider an example sequence in which observations are color-coded (blue and green). The top graph shows the posterior inference of transition probabilities made by the Bayes optimal model in the course of sequence presentation: the green dots show the probability for the next item to be blue if the previous item was green, the blue dots show the probability for the next item to be blue if the previous item was blue. The black line shows the prediction conditioned on the identity of the item previously presented. The middle graph shows the surprise (in bits) corresponding to the actual observations, whose identity on each trial is color coded; the sequence of colored dots therefore represents the sequence of observations. The bottom graph shows the Bayes optimal confidence (i.e. posterior precision) associated with the inferred transition probabilities, using the same convention as in the top graph. Several aspects are noteworthy. First, both surprise and confidence show marked dynamics within the course of an experimental session (380 stimuli). Second, those two dynamics are distinct, for instance, surprise may be rather steady while confidence changes (e.g. from stimulus 250 to 280). Third, predictions and the associated confidence can change repeatedly from trial-to-trial when transition probabilities differ, e.g. from stimulus 300 to 340. Fourth, similar predictions can be accompanied by different confidence levels (e.g. from stimulus 100 to 140, both transition probabilities support a prediction around 0.75 and yet, the prediction is associated with higher confidence when the previous observation is blue).

(TIF)

S2 Fig. Post-stimulus beta-band power shows fast changes across trials and a gradual effect of confidence.

(A) Pairs of adjacent trials were sorted into high and low (red vs. blue) residual Bayes-optimal confidence on the current trial, and further sorted into high and low residual Bayes-optimal confidence on the next trial, therefore forming pairs that kept similar levels (dashed line) or changed drastically (plain line). The (z-scored) power in the post-stimulus beta-band cluster (Fig 3A) showed fast, trial-to-trial changes that parallel the residual Bayes-optimal confidence (*: p<0.005, paired t-test). (B) The correlation between post-stimulus beta-band power and (residual) Bayes-optimal confidence was not driven by specific values but indeed corresponds to parametric changes. Error-bar: s.e.m.

(TIF)

S3 Fig. Theoretical and empirical effect of binning on the multiple regression involving power vs. evoked responses.

(A). The top panel is the same as Fig 5B. For this analysis, 10 consecutive trials were averaged into bins prior to estimating the regression. The bottom panel shows the results when trials are not binned (or equivalently, when there is only one trial per bin). Note the selective change around 200 ms for the effect of power. (B) explores this regression analysis specifically around 200 ms (averaging across significant time points, Fig 2A middle) and shows the significance (group-level t-value) of the effect of post-stimulus beta-band power onto to the ERF, depending on the number of consecutive trials per bin. (C) is the same analysis as in (B) but for signals simulated as follows: POWERneural = β1*CONF + ηPOWER, ERFneural = -(β2*SURP -β3*POWERneural) + εERF, POWERmeas. = POWERneural + εcommon; ERFmeas. = ERFneural + εcommon. CONF and SURP are the Bayes-optimal surprise and confidence, POWERneural and ERFneural are the true beta-band power and evoked response, POWERmeas. and ERFmeas. are the signals measured by MEG; ηPOWER is auto-correlated Gaussian noise, εERF and εcommon are identically distributed Gaussian noises. For the simulation, ηPOWER has SD = 1 and auto-correlation ρ = 0.5; εERF and εcommon have SD = 1, ρ = 0; β1 = 0.25; β2 = 0.25, β3 = 0.5. Those parameters are arbitrary, not fit to the data.

(TIF)

Acknowledgments

I thank Micha Heilbron for contributing to set up the experiment; Micha Heilbron and Maxime Maheu for recording the entire dataset and Sébastien Marti for assistance during recording.

Data Availability

The full, raw data set is available at https://osf.io/37e68.

Funding Statement

This work was funded by College de France (to FM) and the French National Research Agency (to FM, ANR-18-CE37-0010 “CONFI-LEARN”, https://anr.fr/en/). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

References

  • 1.Shipp S, Adams RA, Friston KJ. Reflections on agranular architecture: predictive coding in the motor cortex. Trends Neurosci. 2013;36: 706–716. 10.1016/j.tins.2013.09.004 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Rao RP, Ballard DH. Predictive coding in the visual cortex: a functional interpretation of some extra-classical receptive-field effects. Nat Neurosci. 1999;2: 79–87. 10.1038/4580 [DOI] [PubMed] [Google Scholar]
  • 3.Aitchison L, Lengyel M. With or without you: predictive coding and Bayesian inference in the brain. Curr Opin Neurobiol. 2017;46: 219–227. 10.1016/j.conb.2017.08.010 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Spratling MW. A review of predictive coding algorithms. Brain Cogn. 2017;112: 92–97. 10.1016/j.bandc.2015.11.003 [DOI] [PubMed] [Google Scholar]
  • 5.Rescorla Robert A, Wagner Allan R. A theory of Pavlovian conditioning: Variations in the effectiveness of reinforcement and nonreinforcement In: Black AH., &, W.F., Prokasy WF, Back AH, editors. Classical conditioning II: Current research and theory. New York: Appleton-Century Crofts; 1972. pp. 64–99. [Google Scholar]
  • 6.Sutton RS, Barto AG. Introduction to Reinforcement Learning. 1st ed Cambridge, MA, USA: MIT Press; 1998. [Google Scholar]
  • 7.Yu AJ, Cohen JD. Sequential effects: Superstition or rational behavior? Adv Neural Inf Process Syst. 2008;21: 1873–1880. [PMC free article] [PubMed] [Google Scholar]
  • 8.Heilbron M, Meyniel F. Confidence resets reveal hierarchical adaptive learning in humans. PLOS Computational Biology. 2019;15: e1006972 10.1371/journal.pcbi.1006972 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Behrens TEJ, Woolrich MW, Walton ME, Rushworth MFS. Learning the value of information in an uncertain world. Nat Neurosci. 2007;10: 1214–1221. 10.1038/nn1954 [DOI] [PubMed] [Google Scholar]
  • 10.Nassar MR, Wilson RC, Heasly B, Gold JI. An Approximately Bayesian Delta-Rule Model Explains the Dynamics of Belief Updating in a Changing Environment. J Neurosci. 2010;30: 12366–12378. 10.1523/JNEUROSCI.0822-10.2010 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Wilson RC, Nassar MR, Gold JI. A mixture of delta-rules approximation to bayesian inference in change-point problems. PLoS Comput Biol. 2013;9: e1003150 10.1371/journal.pcbi.1003150 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Mathys CD, Lomakina EI, Daunizeau J, Iglesias S, Brodersen KH, Friston KJ, et al. Uncertainty in perception and the Hierarchical Gaussian Filter. Front Hum Neurosci. 2014;8 10.3389/fnhum.2014.00825 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Ritz H, Nassar MR, Frank MJ, Shenhav A. A Control Theoretic Model of Adaptive Learning in Dynamic Environments. Journal of Cognitive Neuroscience. 2018;30: 1405–1421. 10.1162/jocn_a_01289 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Moens V, Zénon A. Learning and forgetting using reinforced Bayesian change detection. PLoS Comput Biol. 2019;15: e1006713 10.1371/journal.pcbi.1006713 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Meyniel F, Schlunegger D, Dehaene S. The Sense of Confidence during Probabilistic Learning: A Normative Account. PLoS Comput Biol. 2015;11: e1004305 10.1371/journal.pcbi.1004305 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Boldt A, Blundell C, De Martino B. Confidence modulates exploration and exploitation in value-based learning. Neurosci Conscious. 2019;2019 10.1093/nc/niz004 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Iglesias S, Mathys C, Brodersen KH, Kasper L, Piccirelli M, den Ouden HEM, et al. Hierarchical prediction errors in midbrain and basal forebrain during sensory learning. Neuron. 2013;80: 519–530. 10.1016/j.neuron.2013.09.009 [DOI] [PubMed] [Google Scholar]
  • 18.Meyniel F, Sigman M, Mainen ZF. Confidence as Bayesian Probability: From Neural Origins to Behavior. Neuron. 2015;88: 78–92. 10.1016/j.neuron.2015.09.039 [DOI] [PubMed] [Google Scholar]
  • 19.Meyniel F, Dehaene S. Brain networks for confidence weighting and hierarchical inference during probabilistic learning. PNAS. 2017; 201615773 10.1073/pnas.1615773114 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Ernst MO, Banks MS. Humans integrate visual and haptic information in a statistically optimal fashion. Nature. 2002;415: 429–433. 10.1038/415429a [DOI] [PubMed] [Google Scholar]
  • 21.Ma WJ, Beck JM, Latham PE, Pouget A. Bayesian inference with probabilistic population codes. Nat Neurosci. 2006;9: 1432–1438. 10.1038/nn1790 [DOI] [PubMed] [Google Scholar]
  • 22.Bang D, Fusaroli R, Tylén K, Olsen K, Latham PE, Lau JYF, et al. Does interaction matter? Testing whether a confidence heuristic can replace interaction in collective decision-making. Consciousness and Cognition. 2014;26: 13–23. 10.1016/j.concog.2014.02.002 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Bang D, Aitchison L, Moran R, Herce Castanon S, Rafiee B, Mahmoodi A, et al. Confidence matching in group decision-making. Nature Human Behaviour. 2017;1: 0117 10.1038/s41562-017-0117 [DOI] [Google Scholar]
  • 24.Rohe T, Ehlis A-C, Noppeney U. The neural dynamics of hierarchical Bayesian causal inference in multisensory perception. Nat Commun. 2019;10: 1907 10.1038/s41467-019-09664-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Dayan P, Kakade S, Montague PR. Learning and selective attention. Nat Neurosci. 2000;3 Suppl: 1218–1223. 10.1038/81504 [DOI] [PubMed] [Google Scholar]
  • 26.Vossel S, Mathys C, Daunizeau J, Bauer M, Driver J, Friston KJ, et al. Spatial Attention, Precision, and Bayesian Inference: A Study of Saccadic Response Speed. Cereb Cortex. 2014;24: 1436–1450. 10.1093/cercor/bhs418 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Shannon CE. A mathematical theory of communication. The Bell System Technical Journal. 1948;27: 379–423. [Google Scholar]
  • 28.Strange BA, Duggins A, Penny W, Dolan RJ, Friston KJ. Information theory, novelty and hippocampal responses: unpredicted or unpredictable? Neural Networks. 2005;18: 225–230. 10.1016/j.neunet.2004.12.004 [DOI] [PubMed] [Google Scholar]
  • 29.O’Reilly JX, Schuffelgen U, Cuell SF, Behrens TEJ, Mars RB, Rushworth MFS. Dissociable effects of surprise and model update in parietal and anterior cingulate cortex. Proceedings of the National Academy of Sciences. 2013;110: E3660–E3669. 10.1073/pnas.1305373110 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Summerfield C, Behrens TE, Koechlin E. Perceptual Classification in a Rapidly Changing Environment. Neuron. 2011;71: 725–736. 10.1016/j.neuron.2011.06.022 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Yeung N, Summerfield C. Metacognition in human decision-making: confidence and error monitoring. Phil Trans R Soc B. 2012;367: 1310–1321. 10.1098/rstb.2011.0416 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Jepma M, Murphy PR, Nassar MR, Rangel-Gomez M, Meeter M, Nieuwenhuis S. Catecholaminergic Regulation of Learning Rate in a Dynamic Environment. PLoS Comput Biol. 2016;12: e1005171 10.1371/journal.pcbi.1005171 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.Nassar MR, Bruckner R, Frank MJ. Statistical context dictates the relationship between feedback-related EEG signals and learning. Donner TH, Behrens TE, Donner TH, O’Connell RG, editors. eLife. 2019;8: e46975 10.7554/eLife.46975 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Hillyard SA, Squires KC, Bauer JW, Lindsay PH. Evoked Potential Correlates of Auditory Signal Detection. Science. 1971;172: 1357–1360. 10.1126/science.172.3990.1357 [DOI] [PubMed] [Google Scholar]
  • 35.Squires KC, Wickens C, Squires NK, Donchin E. The effect of stimulus sequence on the waveform of the cortical event-related potential. Science. 1976;193: 1142–1146. 10.1126/science.959831 [DOI] [PubMed] [Google Scholar]
  • 36.Nassar MR, Rumsey KM, Wilson RC, Parikh K, Heasly B, Gold JI. Rational regulation of learning dynamics by pupil-linked arousal systems. Nature Neuroscience. 2012;15: 1040–1046. 10.1038/nn.3130 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Wacongne C, Changeux J-P, Dehaene S. A Neuronal Model of Predictive Coding Accounting for the Mismatch Negativity. J Neurosci. 2012;32: 3665–3678. 10.1523/JNEUROSCI.5003-11.2012 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Kolossa A, Fingscheidt T, Wessel K, Kopp B. A Model-Based Approach to Trial-By-Trial P300 Amplitude Fluctuations. Frontiers in Human Neuroscience. 2013;6 10.3389/fnhum.2012.00359 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Summerfield C, de Lange FP. Expectation in perceptual decision making: neural and computational mechanisms. Nat Rev Neurosci. 2014;15: 745–756. 10.1038/nrn3838 [DOI] [PubMed] [Google Scholar]
  • 40.Garrido MI, Teng CLJ, Taylor JA, Rowe EG, Mattingley JB. Surprise responses in the human brain demonstrate statistical learning under high concurrent cognitive demand. npj Science of Learning. 2016;1: 16006 10.1038/npjscilearn.2016.6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Heilbron M, Chait M. Great Expectations: Is there Evidence for Predictive Coding in Auditory Cortex? Neuroscience. 2018;389: 54–73. 10.1016/j.neuroscience.2017.07.061 [DOI] [PubMed] [Google Scholar]
  • 42.Maheu M, Dehaene S, Meyniel F. Brain signatures of a multiscale process of sequence learning in humans. Elife. 2019;8 10.7554/eLife.41541 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Reimer J, Froudarakis E, Cadwell CR, Yatsenko D, Denfield GH, Tolias AS. Pupil Fluctuations Track Fast Switching of Cortical States during Quiet Wakefulness. Neuron. 2014;84: 355–362. 10.1016/j.neuron.2014.09.033 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Safaai H, Neves R, Eschenko O, Logothetis NK, Panzeri S. Modeling the effect of locus coeruleus firing on cortical state dynamics and single-trial sensory processing. Proc Natl Acad Sci USA. 2015;112: 12834–12839. 10.1073/pnas.1516539112 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Zaldivar D, Rauch A, Logothetis NK, Goense J. Two distinct profiles of fMRI and neurophysiological activity elicited by acetylcholine in visual cortex. Proc Natl Acad Sci USA. 2018;115: E12073–E12082. 10.1073/pnas.1808507115 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Engel AK, Fries P. Beta-band oscillations—signalling the status quo? Curr Opin Neurobiol. 2010;20: 156–165. 10.1016/j.conb.2010.02.015 [DOI] [PubMed] [Google Scholar]
  • 47.Spitzer B, Haegens S. Beyond the Status Quo: A Role for Beta Oscillations in Endogenous Content (Re)Activation. eNeuro. 2017;4 10.1523/ENEURO.0170-17.2017 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Hipp JF, Engel AK, Siegel M. Oscillatory synchronization in large-scale cortical networks predicts perception. Neuron. 2011;69: 387–396. 10.1016/j.neuron.2010.12.027 [DOI] [PubMed] [Google Scholar]
  • 49.Baumgarten TJ, Schnitzler A, Lange J. Prestimulus Alpha Power Influences Tactile Temporal Perceptual Discrimination and Confidence in Decisions. Cereb Cortex. 2016;26: 891–903. 10.1093/cercor/bhu247 [DOI] [PubMed] [Google Scholar]
  • 50.Klimesch W, Sauseng P, Hanslmayr S. EEG alpha oscillations: the inhibition-timing hypothesis. Brain Res Rev. 2007;53: 63–88. 10.1016/j.brainresrev.2006.06.003 [DOI] [PubMed] [Google Scholar]
  • 51.Hahn G, Ponce-Alvarez A, Deco G, Aertsen A, Kumar A. Portraits of communication in neuronal networks. Nat Rev Neurosci. 2019;20: 117–127. 10.1038/s41583-018-0094-0 [DOI] [PubMed] [Google Scholar]
  • 52.Iemi L, Busch NA, Laudini A, Haegens S, Samaha J, Villringer A, et al. Multiple mechanisms link prestimulus neural oscillations to sensory responses. Elife. 2019;8 10.7554/eLife.43620 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Vazey EM, Moorman DE, Aston-Jones G. Phasic locus coeruleus activity regulates cortical encoding of salience information. Proc Natl Acad Sci USA. 2018;115: E9439–E9448. 10.1073/pnas.1803716115 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Wang X-J. Neurophysiological and computational principles of cortical rhythms in cognition. Physiol Rev. 2010;90: 1195–1268. 10.1152/physrev.00035.2008 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 55.Aston-Jones G, Cohen JD. An integratice theory of locus coeruleus-norepinephrine function: Adaptive gain and optimal performance. Annual Review of Neuroscience. 2005;28: 403–450. 10.1146/annurev.neuro.28.061604.135709 [DOI] [PubMed] [Google Scholar]
  • 56.Rodenkirch C, Liu Y, Schriver BJ, Wang Q. Locus coeruleus activation enhances thalamic feature selectivity via norepinephrine regulation of intrathalamic circuit dynamics. Nat Neurosci. 2019;22: 120–133. 10.1038/s41593-018-0283-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57.Siegel M, Donner TH, Engel AK. Spectral fingerprints of large-scale neuronal interactions. Nat Rev Neurosci. 2012;13: 121–134. 10.1038/nrn3137 [DOI] [PubMed] [Google Scholar]
  • 58.Rouault M, Dayan P, Fleming SM. Forming global estimates of self-performance from local confidence. Nat Commun. 2019;10: 1141 10.1038/s41467-019-09075-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 59.Kepecs A, Uchida N, Zariwala HA, Mainen ZF. Neural correlates, computation and behavioural impact of decision confidence. Nature. 2008;455: 227–231. 10.1038/nature07200 [DOI] [PubMed] [Google Scholar]
  • 60.Pouget A, Drugowitsch J, Kepecs A. Confidence and certainty: distinct probabilistic quantities for different goals. Nat Neurosci. 2016;19: 366–374. 10.1038/nn.4240 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 61.Bang D, Fleming SM. Distinct encoding of decision confidence in human medial prefrontal cortex. Proc Natl Acad Sci USA. 2018;115: 6082–6087. 10.1073/pnas.1800795115 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 62.Koriat A. The self-consistency model of subjective confidence. Psychological Review. 2012;119: 80–113. 10.1037/a0025648 [DOI] [PubMed] [Google Scholar]
  • 63.Fleming SM, Ryu J, Golfinos JG, Blackmon KE. Domain-specific impairment in metacognitive accuracy following anterior prefrontal lesions. Brain. 2014;137: 2811–2822. 10.1093/brain/awu221 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 64.Kepecs A, Mainen ZF. A computational framework for the study of confidence in humans and animals. Phil Trans R Soc B. 2012;367: 1322–1337. 10.1098/rstb.2012.0037 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 65.Fleming SM, Daw ND. Self-evaluation of decision-making: A general Bayesian framework for metacognitive computation. Psychol Rev. 2017;124: 91–114. 10.1037/rev0000045 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 66.Navajas J, Hindocha C, Foda H, Keramati M, Latham PE, Bahrami B. The idiosyncratic nature of confidence. Nat Hum Behav. 2017;1: 810–818. 10.1038/s41562-017-0215-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 67.Chennu S, Noreika V, Gueorguiev D, Blenkmann A, Kochen S, Ibáñez A, et al. Expectation and Attention in Hierarchical Auditory Prediction. J Neurosci. 2013;33: 11194–11205. 10.1523/JNEUROSCI.0114-13.2013 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 68.Auksztulewicz R, Friston K. Attentional Enhancement of Auditory Mismatch Responses: a DCM/MEG Study. Cereb Cortex. 2015;25: 4273–4283. 10.1093/cercor/bhu323 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 69.Lecaignard F, Bertrand O, Gimenez G, Mattout J, Caclin A. Implicit learning of predictable sound sequences modulates human brain responses at different levels of the auditory hierarchy. Front Hum Neurosci. 2015;9 10.3389/fnhum.2015.00505 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 70.Vossel S, Mathys C, Stephan KE, Friston KJ. Cortical Coupling Reflects Bayesian Belief Updating in the Deployment of Spatial Attention. J Neurosci. 2015;35: 11532–11542. 10.1523/JNEUROSCI.1382-15.2015 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 71.Vincent P, Parr T, Benrimoh D, Friston KJ. With an eye on uncertainty: Modelling pupillary responses to environmental volatility. PLoS Comput Biol. 2019;15: e1007126 10.1371/journal.pcbi.1007126 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 72.Ostwald D, Spitzer B, Guggenmos M, Schmidt TT, Kiebel SJ, Blankenburg F. Evidence for neural encoding of Bayesian surprise in human somatosensation. NeuroImage. 2012;62: 177–188. 10.1016/j.neuroimage.2012.04.050 [DOI] [PubMed] [Google Scholar]
  • 73.Friedman D, Cycowicz YM, Gaeta H. The novelty P3: an event-related brain potential (ERP) sign of the brain’s evaluation of novelty. Neuroscience & Biobehavioral Reviews. 2001;25: 355–373. 10.1016/S0149-7634(01)00019-7 [DOI] [PubMed] [Google Scholar]
  • 74.Kok P, Mostert P, de Lange FP. Prior expectations induce prestimulus sensory templates. Proc Natl Acad Sci USA. 2017;114: 10473–10478. 10.1073/pnas.1705652114 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 75.Lecaignard F, Bertrand O, Caclin A, Mattout J. Adaptive cortical processing of unattended sounds: neurocomputational underpinnings revealed by simultaneous EEG-MEG. bioRxiv. 2020; 501221 10.1101/501221 [DOI] [Google Scholar]
  • 76.Eldar E, Cohen JD, Niv Y. The effects of neural gain on attention and learning. Nat Neurosci. 2013;16: 1146–1153. 10.1038/nn.3428 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 77.Colizoli O, de Gee JW, Urai AE, Donner TH. Task-evoked pupil responses reflect internal belief states. Sci Rep. 2018;8: 13702 10.1038/s41598-018-31985-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 78.Salgado H, Treviño M, Atzori M. Layer- and area-specific actions of norepinephrine on cortical synaptic transmission. Brain Res. 2016;1641: 163–176. 10.1016/j.brainres.2016.01.033 [DOI] [PubMed] [Google Scholar]
  • 79.Joshi S, Li Y, Kalwani RM, Gold JI. Relationships between Pupil Diameter and Neuronal Activity in the Locus Coeruleus, Colliculi, and Cingulate Cortex. Neuron. 2016;89: 221–234. 10.1016/j.neuron.2015.11.028 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 80.Reimer J, McGinley MJ, Liu Y, Rodenkirch C, Wang Q, McCormick DA, et al. Pupil fluctuations track rapid changes in adrenergic and cholinergic activity in cortex. Nat Commun. 2016;7: 13289 10.1038/ncomms13289 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 81.McGinley MJ, David SV, McCormick DA. Cortical Membrane Potential Signature of Optimal States for Sensory Signal Detection. Neuron. 2015;87: 179–192. 10.1016/j.neuron.2015.05.038 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 82.Krishnamurthy K, Nassar MR, Sarode S, Gold JI. Arousal-related adjustments of perceptual biases optimize perception in dynamic environments. Nat Hum Behav. 2017;1 10.1038/s41562-017-0107 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 83.de Gee JW, Knapen T, Donner TH. Decision-related pupil dilation reflects upcoming choice and individual bias. PNAS. 2014;111: E618–E625. 10.1073/pnas.1317557111 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 84.de Gee JW, Colizoli O, Kloosterman NA, Knapen T, Nieuwenhuis S, Donner TH. Dynamic modulation of decision biases by brainstem arousal systems. Elife. 2017;6 10.7554/eLife.23232 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 85.van Kempen J, Loughnane GM, Newman DP, Kelly SP, Thiele A, O’Connell RG, et al. Behavioural and neural signatures of perceptual decision-making are modulated by pupil-linked arousal. Elife. 2019;8 10.7554/eLife.42541 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 86.Hoffing RC, Seitz AR. Pupillometry as a glimpse into the neurochemical basis of human memory encoding. J Cogn Neurosci. 2015;27: 765–774. 10.1162/jocn_a_00749 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 87.Takeuchi T, Duszkiewicz AJ, Sonneborn A, Spooner PA, Yamasaki M, Watanabe M, et al. Locus coeruleus and dopaminergic consolidation of everyday memory. Nature. 2016;537: 357–362. 10.1038/nature19325 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 88.Wagatsuma A, Okuyama T, Sun C, Smith LM, Abe K, Tonegawa S. Locus coeruleus input to hippocampal CA3 drives single-trial learning of a novel context. Proc Natl Acad Sci USA. 2018;115: E310–E316. 10.1073/pnas.1714082115 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 89.Devauges V, Sara SJ. Activation of the noradrenergic system facilitates an attentional shift in the rat. Behav Brain Res. 1990;39: 19–28. 10.1016/0166-4328(90)90118-x [DOI] [PubMed] [Google Scholar]
  • 90.Pulcu E, Browning M. Affective bias as a rational response to the statistics of rewards and punishments. Elife. 2017;6 10.7554/eLife.27879 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 91.Hauser TU, Allen M, Purg N, Moutoussis M, Rees G, Dolan RJ. Noradrenaline blockade specifically enhances metacognitive performance. Elife. 2017;6 10.7554/eLife.24901 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 92.Marshall L, Mathys C, Ruge D, de Berker AO, Dayan P, Stephan KE, et al. Pharmacological Fingerprints of Contextual Uncertainty. PLoS Biol. 2016;14: e1002575 10.1371/journal.pbio.1002575 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 93.Jepma M, Brown SBRE, Murphy PR, Koelewijn SC, de Vries B, van den Maagdenberg AM, et al. Noradrenergic and Cholinergic Modulation of Belief Updating. J Cogn Neurosci. 2018; 1–18. 10.1162/jocn_a_01317 [DOI] [PubMed] [Google Scholar]
  • 94.Bastos AM, Vezoli J, Bosman CA, Schoffelen J-M, Oostenveld R, Dowdall JR, et al. Visual Areas Exert Feedforward and Feedback Influences through Distinct Frequency Channels. Neuron. 2015;85: 390–401. 10.1016/j.neuron.2014.12.018 [DOI] [PubMed] [Google Scholar]
  • 95.Buschman TJ, Miller EK. Top-down versus bottom-up control of attention in the prefrontal and posterior parietal cortices. Science. 2007;315: 1860–1862. 10.1126/science.1138071 [DOI] [PubMed] [Google Scholar]
  • 96.Salazar RF, Dotson NM, Bressler SL, Gray CM. Content-Specific Fronto-Parietal Synchronization During Visual Working Memory. Science. 2012;338: 1097–1100. 10.1126/science.1224000 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 97.Limbach K, Corballis PM. Prestimulus alpha power influences response criterion in a detection task. Psychophysiology. 2016;53: 1154–1164. 10.1111/psyp.12666 [DOI] [PubMed] [Google Scholar]
  • 98.Benwell CSY, Tagliabue CF, Veniero D, Cecere R, Savazzi S, Thut G. Prestimulus EEG Power Predicts Conscious Awareness But Not Objective Visual Performance. eNeuro. 2017;4: ENEURO.0182-17.2017. 10.1523/ENEURO.0182-17.2017 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 99.Craddock M, Poliakoff E, El-deredy W, Klepousniotou E, Lloyd DM. Pre-stimulus alpha oscillations over somatosensory cortex predict tactile misperceptions. Neuropsychologia. 2017;96: 9–18. 10.1016/j.neuropsychologia.2016.12.030 [DOI] [PubMed] [Google Scholar]
  • 100.Iemi L, Chaumon M, Crouzet SM, Busch NA. Spontaneous Neural Oscillations Bias Perception by Modulating Baseline Excitability. J Neurosci. 2017;37: 807–819. 10.1523/JNEUROSCI.1432-16.2016 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 101.Haegens S, Nácher V, Hernández A, Luna R, Jensen O, Romo R. Beta oscillations in the monkey sensorimotor network reflect somatosensory decision making. Proc Natl Acad Sci USA. 2011;108: 10708–10713. 10.1073/pnas.1107297108 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 102.Donchin E. Surprise!… Surprise? Psychophysiology. 1981;18: 493–513. 10.1111/j.1469-8986.1981.tb01815.x [DOI] [PubMed] [Google Scholar]
  • 103.Kok A. On the utility of P3 amplitude as a measure of processing capacity. Psychophysiology. 2001;38: 557–577. 10.1017/s0048577201990559 [DOI] [PubMed] [Google Scholar]
  • 104.Polich J. Updating P300: An integrative theory of P3a and P3b. Clinical Neurophysiology. 2007;118: 2128–2148. 10.1016/j.clinph.2007.04.019 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 105.Bekinschtein TA, Dehaene S, Rohaut B, Tadel F, Cohen L, Naccache L. Neural signature of the conscious processing of auditory regularities. PNAS. 2009;106: 1672–1677. 10.1073/pnas.0809667106 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 106.Faugeras F, Rohaut B, Weiss N, Bekinschtein T, Galanaud D, Puybasset L, et al. Event related potentials elicited by violations of auditory regularities in patients with impaired consciousness. Neuropsychologia. 2012;50: 403–418. 10.1016/j.neuropsychologia.2011.12.015 [DOI] [PubMed] [Google Scholar]
  • 107.Kolossa A, Kopp B, Fingscheidt T. A computational analysis of the neural bases of Bayesian inference. NeuroImage. 2015;106: 222–237. 10.1016/j.neuroimage.2014.11.007 [DOI] [PubMed] [Google Scholar]
  • 108.Strauss M, Sitt JD, King J-R, Elbaz M, Azizi L, Buiatti M, et al. Disruption of hierarchical predictive coding during sleep. Proc Natl Acad Sci USA. 2015;112: E1353–1362. 10.1073/pnas.1501026112 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 109.Hong L, Walz JM, Sajda P. Your eyes give you away: prestimulus changes in pupil diameter correlate with poststimulus task-related EEG dynamics. PLoS ONE. 2014;9: e91321 10.1371/journal.pone.0091321 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 110.Lieder F, Daunizeau J, Garrido MI, Friston KJ, Stephan KE. Modelling Trial-by-Trial Changes in the Mismatch Negativity. Sporns O, editor. PLoS Computational Biology. 2013;9: e1002911 10.1371/journal.pcbi.1002911 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 111.Meyniel F, Maheu M, Dehaene S. Human Inferences about Sequences: A Minimal Transition Probability Model. PLoS Comput Biol. 2016;12: e1005260 10.1371/journal.pcbi.1005260 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 112.Taulu S, Simola J. Spatiotemporal signal space separation method for rejecting nearby interference in MEG measurements. Phys Med Biol. 2006;51: 1759–1768. 10.1088/0031-9155/51/7/008 [DOI] [PubMed] [Google Scholar]
  • 113.Oostenveld R, Fries P, Maris E, Schoffelen J-M. FieldTrip: Open Source Software for Advanced Analysis of MEG, EEG, and Invasive Electrophysiological Data. Computational Intelligence and Neuroscience. 2011;2011: 1–9. 10.1155/2011/720971 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 114.Dale AM, Fischl B, Sereno MI. Cortical surface-based analysis. I. Segmentation and surface reconstruction. Neuroimage. 1999;9: 179–194. 10.1006/nimg.1998.0395 [DOI] [PubMed] [Google Scholar]
  • 115.Fischl B, Sereno MI, Dale AM. Cortical surface-based analysis. II: Inflation, flattening, and a surface-based coordinate system. Neuroimage. 1999;9: 195–207. 10.1006/nimg.1998.0396 [DOI] [PubMed] [Google Scholar]
  • 116.Tadel F, Baillet S, Mosher JC, Pantazis D, Leahy RM. Brainstorm: a user-friendly application for MEG/EEG analysis. Comput Intell Neurosci. 2011;2011: 879716 10.1155/2011/879716 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 117.Maris E, Oostenveld R. Nonparametric statistical testing of EEG- and MEG-data. J Neurosci Methods. 2007;164: 177–190. 10.1016/j.jneumeth.2007.03.024 [DOI] [PubMed] [Google Scholar]
PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007935.r001

Decision Letter 0

Samuel J Gershman, Jill O'Reilly

17 Feb 2020

Dear Dr. Meyniel,

Thank you very much for submitting your manuscript "Brain dynamics for confidence-weighted learning" for consideration at PLOS Computational Biology.

Sorry for the slow progress on this, partly due to difficulty in finding reviewers in the run up to Christmas.

As with all papers reviewed by the journal, your manuscript was reviewed by members of the editorial board and by several independent reviewers. In light of the reviews (below this email), we would like to invite the resubmission of a significantly-revised version that takes into account the reviewers' comments.

We cannot make any decision about publication until we have seen the revised manuscript and your response to the reviewers' comments. Your revised manuscript is also likely to be sent to reviewers for further evaluation.

When you are ready to resubmit, please upload the following:

[1] A letter containing a detailed list of your responses to the review comments and a description of the changes you have made in the manuscript. Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out.

[2] Two versions of the revised manuscript: one with either highlights or tracked changes denoting where the text has been changed; the other a clean version (uploaded as the manuscript file).

Important additional instructions are given below your reviewer comments.

Please prepare and submit your revised manuscript within 60 days. If you anticipate any delay, please let us know the expected resubmission date by replying to this email. Please note that revised manuscripts received after the 60-day due date may require evaluation and peer review similar to newly submitted manuscripts.

Thank you again for your submission. We hope that our editorial process has been constructive so far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.

Sincerely,

Jill O'Reilly

Associate Editor

PLOS Computational Biology

Samuel Gershman

Deputy Editor

PLOS Computational Biology

***********************

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: In this paper the author examines behavioural and neural correlates of optimal inference during a probabilistic learning task. In each trial, participants hear one out of two possible tones (A or B). In some trials participants are asked to predict the probability with which the tone will be repeated on the subsequent trial as well as their confidence associated to this probability estimate. During the experiment, the generative probabilities (p(A|A) and p(B|B)) can change at random points with very low probability. The task structure is transparent to the participants. Behaviour in the task approximates, to some extent, Bayes-optimal inference. Additionally, MEG data show signatures of optimal inference, in the sense that the neural activity in sensors representing surprise (or likelihood) is also modulated by bayesian confidence. This co-modulation of neural activity by the likelihood and confidence is consistent with Bayesian updating where likelihoods are upweighted when the variance of the prior is broad (i.e. low confidence). Further analyses show that brain state, indexed by pupil-related arousal and beta-band activity, covaries with confidence.

Overall the research presented in this paper is carefully done and thought of, following on the author’s previous work using the same probabilistic task and Bayesian framework. I have the following comments.

The behaviour of the participants in this paper is not analysed in depth. In Figure 1 D-E, some descriptive results are presented in relation to the predictions of the Bayes-Optimal model. Additionally, the probability estimates and confidence reports of the participants correlate, to some extent, with those of the bayesian model. These are the only points in which the relationship between the optimal model and behaviour is dealt with. I do not see these points as conferring evidence for or against the optimal model. In fact, the presented results are not informative. One for example could devise a simpler heuristic model, which could exhibit the same correlations with the bayesian estimates and confidence levels. The author is careful about this aspect, mentioning at several points that the bayesian model offers a formalisation of the learning process at the computational level. However, in light of the MEG data presented later, I am not sure if a computational level model —that presumably predicts broad features of behaviour but also misses on key algorithmic aspects of the learning process— is appropriate. Of course, if the optimal model was shown to explain the data better relative to other models the subsequent MEG results would bear larger importance. Below I provide a few recommendations on how to further scrutinise behaviour:

— It has been shown that people exhibit several biases when perceiving streams of data (e.g. hot hand fallacy, ignoring rare events etc) that are inconsistent with the optimal model. Are subjective probability and confidence estimates influenced by irrelevant features, for instance the fraction of alternations in the past 10 trials (keeping the counts for A and B fixed)?

— How well and how much faster (or slower) do people respond to change points relative to the optimal model?

— In intervals where the transition probabilities have larger entropies, do people report overall lower confidence?

— How correlated are reported probability estimates and reported confidence levels in the data and in the optimal model?

The above are just starting points towards falsifying (or failing to do so) the optimal model. I appreciate that in the absence of overt behaviour in most of the trials this point may be difficult to address. However, at least one simpler model should be compared both qualitatively and quantitatively to the optimal model.

2) The MEG analysis presented in Figure 2 shows that key quantities in the optimal model correlate with the evoked MEG activity. The validity of this result is directly dependent on the unresolved point above (how well does the optimal model describe the learning process). For instance, bayesian confidence and counter_A*counter_B (with counter_X keeping track of how many times X tone occurred in the last N trials in a suboptimal learning model) can be two strongly correlated quantities. Therefore the mere occurrence of these neural signals per se does not provide further evidence for the optimal model. The author here focuses on a subset of sensors on a specific time interval, which are jointly modulated by confidence and surprise, with opposite signs as prescribed by the optimal model. The rationale of this approach should be further motivated and validated. Wouldn’t it make also sense to show the activity of the “surprise” sensors as a function of high and low confidence? The encoding of confidence and surprise seems to be very variable: it appears lateralised (why?) and for the surprise metric there is a sign flip after 0.22 seconds, which I guess reflects the return of the signal back to baseline. All these aspects (the sign of encoding) appear to be arbitrary especially given the fact that overt behaviour is not used in any way to constraint this analysis (akin to the way beta band activity later on is used to predict subjective confidence; why is this not done for the sensor level data?).

3) The time-frequency analyses (Fig. 3) are presented as reflecting brain state fluctuations. It is not clear why for instance beta-band power here is related to arousal and is not evoked, related to task events. Additionally, in this section the authors speaks about arousal but does not clarify the direction of the relationship between confidence and arousal. It seems that higher confidence is associated with larger arousal (I inferred this indirectly). How can this effect be rationalised given also the fact that higher confidence is associated with evidence downweighting? Finally, the causality relation between arousal and confidence here is not determined. The author should discuss this limitation.

Minor comments:

— What does the residual bayesian confidence correspond to? I believe that if no change points could occur the bayesian confidence could be perfectly predicted by the regressors used here. However, it will be useful to gain an intuition of this residual confidence and what it captures.

— In Figure 2B statistics should be shown. Also there are four bins based (I believe) on independent median splits on confidence and surprise. It would be more informative if these bins where constructed in a conjunctive fashion (e.g. low confidence & low surprise).

— The analyses in Figure 5 is based on running two regression models. Given that the tonic pupil and beta power are not correlated why not run a single regression model?

— The writing is overall good but I had to resort to the author’s previous papers in order to clarify what each of the central metrics corresponds to (surprise, prediction, predictability etc). A longer introduction in which these key quantities are unpacked will be useful.

Reviewer #2: The general aim of Meyniel was to investigate whether confidence - formalized in terms of the precision of posterior predictive distributions of a Bayesian optimal model - modulates neural responses (MEG signal) evoked by surprising events during a learning task. A second and interrelated aim was to see whether confidence is associated with brain states (spectral power or pupil-linked arousal) and in turn, whether such confidence-weighted brain states are associated with surprise-evoked responses. The author found that confidence correlated with some evoked responses that overlapped in topography and time some responses associated with stimulus surprise (measured in terms of Shannon’s surprisal). Moreover, confidence was also associated with some brain states, namely, with tonic pupil size and with both pre- and post-stimulus onset alpha and beta power. These brain states were in turn associated with a surprise-evoked MEG signal response.

This is a very interesting and overall valuable study, and I think it could make an important contribution to contemporary literature on the predictive brain. To maximize its contribution, however, I think some conceptual and methodological issues should be addressed in a revision. I list these issues in the order in which they occurred to me.

Major comments:

1. The author was mainly interested in explore how confidence modulate surprise responses, an effect that is captured by their interaction. However, he states that their effect is theoretically mostly additive (lines 191-192). I think it is important to further argument this point: why is it theoretically mostly additive? Any reference? Why should the absence of an interaction not be considered a limit on the conclusion that surprise responses are dampened for higher confidence?

2. The effect of confidence on MEG evoked responses seems little and, indeed, it does not reach statistical significance in the analysis whose results are shown in Fig 5B. I think this aspect should be explicitly mentioned in the text since this effect is at the core of the first goal of the study.

3. Previous studies have shown that behavioral and neural responses associated with the amount of surprise of a stimulus can be distinguished from responses associated with how much the internal model is updated (e.g., O’Reilly et al. PNAS 2013; Kobayashi & Hsu, JNeurosci 2017; Visalli et al., NeuroImage 2019). As also reported in the discussion, the precision of the posterior after trial t is also linked with how large is the divergence with the posterior at trial t+1. In other words, the precision is inversely related with the amount of updating (often measured using the Kullback-Leibler divergence). I was wondering why the author did not regress out also this updating measure in computing the corrected confidence (the Matlab code provided online also calculates the DKL). Moreover, I think that it would be interesting to see whether the confidence-modulated brain states are associated with or modulate possible DKL responses.

4. Linked to the previous point, in the discussion the author states that “Overall, the results indicate that changes in brain states indexed by beta-range power and neuromodulation, are related to differential responses to surprising stimuli, providing a mechanism for a dynamic confidence-weighting of learning”. However such link with learning is indirect and not directly tested in the study. I think this fact should be addressed in the Discussion section.

5. Different critical alpha for both cluster formation and cluster-level correction were used from one analysis to another. Which was the reason? I think that such choices need to be justified.

Minor comments:

6. In the methods I would better formalize and describe the regression models using formulas for each model and reporting the employed software. Moreover at lines 577-581, it is reported: “We often used the “residual” Bayes-optimal confidence as a predictor, which was computed by linearly regressing out the effect of prediction and predictability. More precisely, we estimated a multiple linear regression of the Bayes-optimal confidence, using as predictors the prediction itself (i.e. the Bayes-optimal estimate of the transition probability of the next stimulus, p(A)), its square and logarithm, log(p(A)) and log(p(B))”. However, predictability was defined at line 128 as the entropy of the prediction. What do square and log of p(A) refer to?

7. At line 152, the term “factor” is used to refer not only to the categorical variable (stimulus identity), but also to the continuous variables. I would use a more appropriate term, such as “predictor” or “regressor” in all the manuscript.

8. At line 163, it is reported an effect of surprise between 80 and 155 ms, however, I thought that the analysis were run starting from 100 ms. Related to this point: why does the author not start the analysis from target onset? Which was the criterion to select the analysis time window. Why does the MEG signal analysis end at .8 s while the frequency analysis ends at .9 s?

9. Linked to comment 2, the topoplots in Fig 2 have a colormap in the range [-3.5, 3.5] t-value. However, the max observed t has a value of ~10. It would be better to use different colormaps for each effect (or the same color map in the range [-max|T| max |T|] to be able to perceive the difference in effect size between those effects (this applies also to Fig. 3).

10. Why in figs. 2B and C is surprise differently categorized in high and low?

11. At lines 207-208, the sentence “Power in low frequencies (<40 Hz) typically characterizes the state of large networks” needs references.

12. In the Discussion (lines 431-432), it is reported that “It is noticeable that the modulation of evoked surprise responses was confined to early post- stimulus latencies (around 200 ms) rather than occurring later”, however an effect of surprise was also found later.

13. There is a typo in the right subpanel (topoplot) of Fig. 2A: [0.9 0.14]s instead of [0.09 0.14]s

Reviewer #3: This manuscript reports data from an MEG study with healthy subjects who performed a perceptual learning auditory task, providing occasional behavioural responses pertaining to their sensory predictions and associated confidence. Pupil size was also monitored over time to test its relationship with confidence up-dating and surprise. The task used here is very close to the ones used by the author and collaborators in several previous studies. It is coupled here with Bayesian modelling and the analysis of various MEG components (evoked and oscillatory) at both the scalp and source level, to carefully assess the neural correlates of prediction, surprise and confidence, respectively. The main results that pertain to showing that the trial wise up-dating of confidence is well captured by Bayesian learning and can be related to evoked activity around 200ms, as well as beta power and pupil size, are of great interest to the field.

The manuscript is well structured and clearly written. Data analysis include several rigorous verifications that attest the robustness of the main findings. Although the manuscript would gain in readability if some of these additional analysis would be only shortly referred to in the main text and moved to an additional material section.

The discussion is quite thorough and put the present work in a useful perspective by relating it broadly to relevant recent studies pertaining to different domains (modelling, animal and human data, neurotransmitters and oscillations…).

This paper is suitable for publication and will be of interest to many. I only have minor suggestions which I hope will help further strengthening the manuscript.

General comments and questions

- How specific is this task? Subjects are indeed heavily trained and informed in details about the task hidden structure. Does it mean that the observed computations and the identified neural correlates are hardly generalizable?

- Importantly, the crucial and related but different notions manipulated here such as prediction, predictability, surprise, prediction error should be more clearly and initially defined. If some of these terms are interchangeable, they could be mentioned once but then one notion should be referred to by a single term. Especially as the author rightfully insists on the importance and the difficulty in distinguishing between such notions like precision and predictability.

- Regarding source reconstruction: please clarify whether you computed the source of the difference (source of an effect) or the difference of the sources (the former yields more sensitive results). And regarding the interpretation of the qualitative findings, the author pin-points the implication of the right IFG and intermediate precentral sulcus (for surprise), however the observed topographies reveal a more spread network including TPJ and other regions, please complement or nuance your current report. Along the same vein, the sources pertaining to confidence do not pin-point towards a clear region or network. Please comment. And in relation to that, could you try to complement this source reconstruction by source localizing the effect of confidence on post-stimulus beta power?

- why not reporting the effect (or absence of effect) of prediction onto low frequency oscillations and pupil size?

More specific and minor comments

- On figures 1.D, 1.E but also 3.D and S2.B, it is not clear to me how the data points were binned in order to build those figures

- lines 141 to 144: please unfold this argument which remains unclear to me.

- Fig. 2B reports MEG evoked signals for conditions obtained by splitting data around the median. Since such a split is performed along both confidence and surprise, could you please report the number of trials that fell into each of the four categories? Or clarify your strategy. Is it that after having split along one dimension, the data were further split along the other one? In which case it would be worth reporting the median values.

- I found the use of the loose term ‘Brain state’ a bit disturbing. I would encourage the author to envisage reconsidering that use.

- In the discussion, the part pertaining to related (MMN) findings using EEG, the author could also refer to:

Ostwald et al. Evidence for neural encoding of Bayesian surprise in human somatosensation. NeuroImage 62, 177–188 (2012).

Lecaignard et al. Implicit learning of predictable sound sequences modulates human brain responses at different levels of the auditory hierarchy. Frontiers in Human Neuroscience 9, (2015).

- Line 471: what you mean here is unclear to me.

- I noticed a couple of typos:

end of line 411: noradrenaline

line 500 (remove ‘a’: is given);

Fig. S2 line 654 (Paris OF adjacent…);

**********

Have all data underlying the figures and results presented in the manuscript been provided?

Large-scale datasets should be made available via a public repository as described in the PLOS Computational Biology data availability policy, and numerical data that underlies graphs or summary statistics should be provided in spreadsheet form as supporting information.

Reviewer #1: No:

Reviewer #2: Yes

Reviewer #3: No: Part of the code is already available. The full raw data will be made available publicly upon publication.

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

Figure Files:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

Data Requirements:

Please note that, as a condition of publication, PLOS' data policy requires that you make available all data used to draw the conclusions outlined in your manuscript. Data must be deposited in an appropriate repository, included within the body of the manuscript, or uploaded as supporting information. This includes all numerical values that were used to generate graphs, histograms etc.. For an example in PLOS Biology see here: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5.

Reproducibility:

To enhance the reproducibility of your results, PLOS recommends that you deposit laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. For instructions, please see http://journals.plos.org/compbiol/s/submission-guidelines#loc-materials-and-methods

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007935.r003

Decision Letter 1

Samuel J Gershman, Jill O'Reilly

7 May 2020

Dear Dr. Meyniel,

We are pleased to inform you that your manuscript 'Brain dynamics for confidence-weighted learning' has been provisionally accepted for publication in PLOS Computational Biology.

Before your manuscript can be formally accepted you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests.

Please note that your manuscript will not be scheduled for publication until you have made the required changes, so a swift response is appreciated.

IMPORTANT: The editorial review process is now complete. PLOS will only permit corrections to spelling, formatting or significant scientific errors from this point onwards. Requests for major changes, or any which affect the scientific understanding of your work, will cause delays to the publication date of your manuscript.

Should you, your institution's press office or the journal office choose to press release your paper, you will automatically be opted out of early publication. We ask that you notify us now if you or your institution is planning to press release the article. All press must be co-ordinated with PLOS.

Thank you again for supporting Open Access publishing; we are looking forward to publishing your work in PLOS Computational Biology. 

Best regards,

Jill O'Reilly

Associate Editor

PLOS Computational Biology

Samuel Gershman

Deputy Editor

PLOS Computational Biology

***********************************************************

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: All my comments have been addressed. I recommend acceptance of the paper.

Reviewer #2: The authors have addressed my comments. As a minor note, line numbers in the rebuttal did not match line numbers in the manuscript making it harder going through the revision

Reviewer #3: Thank you, all my comments have been addressed. This paper is now suitable for publication.

**********

Have all data underlying the figures and results presented in the manuscript been provided?

Large-scale datasets should be made available via a public repository as described in the PLOS Computational Biology data availability policy, and numerical data that underlies graphs or summary statistics should be provided in spreadsheet form as supporting information.

Reviewer #1: No:

Reviewer #2: No: The author states that the raw data-set will be made available publicly upon publication.

Reviewer #3: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007935.r004

Acceptance letter

Samuel J Gershman, Jill O'Reilly

26 May 2020

PCOMPBIOL-D-19-02072R1

Brain dynamics for confidence-weighted learning

Dear Dr Meyniel,

I am pleased to inform you that your manuscript has been formally accepted for publication in PLOS Computational Biology. Your manuscript is now with our production department and you will be notified of the publication date in due course.

The corresponding author will soon be receiving a typeset proof for review, to ensure errors have not been introduced during production. Please review the PDF proof of your manuscript carefully, as this is the last chance to correct any errors. Please note that major changes, or those which affect the scientific understanding of the work, will likely cause delays to the publication date of your manuscript.

Soon after your final files are uploaded, unless you have opted out, the early version of your manuscript will be published online. The date of the early version will be your article's publication date. The final article will be published to the same URL, and all versions of the paper will be accessible to readers.

Thank you again for supporting PLOS Computational Biology and open-access publishing. We are looking forward to publishing your work!

With kind regards,

Laura Mallard

PLOS Computational Biology | Carlyle House, Carlyle Road, Cambridge CB4 3DN | United Kingdom ploscompbiol@plos.org | Phone +44 (0) 1223-442824 | ploscompbiol.org | @PLOSCompBiol

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    S1 Fig. Temporal profile of confidence and surprise in the task.

    We consider an example sequence in which observations are color-coded (blue and green). The top graph shows the posterior inference of transition probabilities made by the Bayes optimal model in the course of sequence presentation: the green dots show the probability for the next item to be blue if the previous item was green, the blue dots show the probability for the next item to be blue if the previous item was blue. The black line shows the prediction conditioned on the identity of the item previously presented. The middle graph shows the surprise (in bits) corresponding to the actual observations, whose identity on each trial is color coded; the sequence of colored dots therefore represents the sequence of observations. The bottom graph shows the Bayes optimal confidence (i.e. posterior precision) associated with the inferred transition probabilities, using the same convention as in the top graph. Several aspects are noteworthy. First, both surprise and confidence show marked dynamics within the course of an experimental session (380 stimuli). Second, those two dynamics are distinct, for instance, surprise may be rather steady while confidence changes (e.g. from stimulus 250 to 280). Third, predictions and the associated confidence can change repeatedly from trial-to-trial when transition probabilities differ, e.g. from stimulus 300 to 340. Fourth, similar predictions can be accompanied by different confidence levels (e.g. from stimulus 100 to 140, both transition probabilities support a prediction around 0.75 and yet, the prediction is associated with higher confidence when the previous observation is blue).

    (TIF)

    S2 Fig. Post-stimulus beta-band power shows fast changes across trials and a gradual effect of confidence.

    (A) Pairs of adjacent trials were sorted into high and low (red vs. blue) residual Bayes-optimal confidence on the current trial, and further sorted into high and low residual Bayes-optimal confidence on the next trial, therefore forming pairs that kept similar levels (dashed line) or changed drastically (plain line). The (z-scored) power in the post-stimulus beta-band cluster (Fig 3A) showed fast, trial-to-trial changes that parallel the residual Bayes-optimal confidence (*: p<0.005, paired t-test). (B) The correlation between post-stimulus beta-band power and (residual) Bayes-optimal confidence was not driven by specific values but indeed corresponds to parametric changes. Error-bar: s.e.m.

    (TIF)

    S3 Fig. Theoretical and empirical effect of binning on the multiple regression involving power vs. evoked responses.

    (A). The top panel is the same as Fig 5B. For this analysis, 10 consecutive trials were averaged into bins prior to estimating the regression. The bottom panel shows the results when trials are not binned (or equivalently, when there is only one trial per bin). Note the selective change around 200 ms for the effect of power. (B) explores this regression analysis specifically around 200 ms (averaging across significant time points, Fig 2A middle) and shows the significance (group-level t-value) of the effect of post-stimulus beta-band power onto to the ERF, depending on the number of consecutive trials per bin. (C) is the same analysis as in (B) but for signals simulated as follows: POWERneural = β1*CONF + ηPOWER, ERFneural = -(β2*SURP -β3*POWERneural) + εERF, POWERmeas. = POWERneural + εcommon; ERFmeas. = ERFneural + εcommon. CONF and SURP are the Bayes-optimal surprise and confidence, POWERneural and ERFneural are the true beta-band power and evoked response, POWERmeas. and ERFmeas. are the signals measured by MEG; ηPOWER is auto-correlated Gaussian noise, εERF and εcommon are identically distributed Gaussian noises. For the simulation, ηPOWER has SD = 1 and auto-correlation ρ = 0.5; εERF and εcommon have SD = 1, ρ = 0; β1 = 0.25; β2 = 0.25, β3 = 0.5. Those parameters are arbitrary, not fit to the data.

    (TIF)

    Attachment

    Submitted filename: ResponseToReviewers.pdf

    Data Availability Statement

    The full, raw data set is available at https://osf.io/37e68.


    Articles from PLoS Computational Biology are provided here courtesy of PLOS

    RESOURCES