Memory and time in assessing thinking
The system can already store information about the world and action. Now let's give its the task of predicting its own success. To do this, you need to be especially careful in maintaining the order: the forecast is written down before the outcome. A simple counter model will show how to learn from the past, and a constant probability comparison will test whether learning is useful in a particular series. Later, this analysis will become the basis for monitoring and reviewing the strategy.
The present moment depends on history
When you finish reading a sentence, its first words are no longer the focus of current attention, but may participate in understanding the end. To explain this behavior, the model must preserve information between events. In chapter 9, one changing number was enough for this. In chapter 11 it was necessary to distinguish between the history of commands and external sources. Now we will add an assessment of how well the system copes with its task.
It is useful to separate the three scales. The current state determines the nearest answer. The saved history allows you to compare the current episode with previous ones. Parameters define stable processing features and can change during training. These scales are not necessarily realized by three separate boxes. The distinction is needed to understand what change explains behavior and how long its influence lasts.
The presence of memory should not automatically be called continuity of experience. The file can store information for a long time without performing any actions. For functional research, it is important to examine whether stored content is used, how it changes decisions, and what happens when it is violated. The relationship of these processes to experienced time will be a matter for further theory.
Forecast and assessment of the answer already given
Before the assignment, you can expect to do well because you are familiar with the topic. After reading a specific condition, confidence changes. After issuing the answer, it becomes possible to evaluate the solution again, and after checking, find out its correctness. These four points contain different information. They cannot be mixed together in the same “confidence” column without time stamps.
It is especially important for the model to exclude the future cue. If the correctness of the answer is already known, it is easy to evaluate it. Of research interest is the forecast before feedback or the assessment of the answer using internal features available to the system before receiving the correct decision from the outside. Therefore, the recording order is part of the model and not a technical detail.
Figure 26. Information before and after feedback. The history of past results, the condition of the current task, your own answer and its correctness become available sequentially. Moment separation preserves the distinction between a prediction before feedback and an estimate with a known solution.
Fleming and Lau emphasize that different measures of metacognition answer different questions about the relationship between confidence and success. [6] Here we will start with a narrow task: we will learn to estimate the future reliability of answers based on past results. This is not yet a complete model of experienced confidence, nor is it a specific assessment of metacognitive effectiveness.
Worked example of a learning assessment
Suppose the system solves a series of tasks and after each one gets correct: 1 means success, 0 means error. Let's introduce two counters - successful and erroneous responses. Initially, we will put one in each. This is conditional smoothing: before real data, the system does not start with complete confidence in success or failure.
Before each task, the prediction equals the success count divided by the sum of both counters. Initially, this is one half. After the first success, the counters are two and one, so the next prediction is two thirds. After the second success, it becomes three quarters. If an error then occurs, the success count remains three while the total becomes five: the new prediction is three fifths.
Here are the six learning outcomes created for the chapter: success, success, failure, success, failure, failure. Below, the program first calculates and saves the forecast, then gets the next outcome and only after that updates the counters. The loss variable accumulates the forecast error: the actual outcome is subtracted from the probability, and the difference is squared.
outcomes = [1, 1, 0, 1, 0, 0]
successes = 1.0
failures = 1.0
loss = 0.0
for outcome in outcomes:
probability = successes / (successes + failures)
loss += (probability - outcome) ** 2
print(round(probability, 3), outcome)
successes += outcome
failures += 1 - outcome
print("Average error", round(loss / len(outcomes), 3))
Figure 27. Predictions and error of two models. Before the six training outcomes 1, 1, 0, 1, 0, 0, the model with smoothed counters predicts 0.500; 0.667; 0.750; 0.600; 0.667; 0.571. The dotted line shows the constant forecast 0.5. In this series, the mean square error of the model with a history of about 0.309, a constant - 0.250; this is a series-specific comparison, not a universal superiority.
Pre-assignment grades will be approximately 0.500; 0.667; 0.750; 0.600; 0.667; 0.571. After the entire series, the counters will be equal again, and the forecast for the next task will become 0.5. The change is clear from the mechanism: successes increase one part of the attitude, mistakes - another.
Why comparison with a simple model is necessary
Let's take an opponent who always predicts the probability 0.5. For any binary outcome, its squared error is 0.25. The learning model has an average error in our short run of approximately 0.309. This means that on these training data the constant estimate turned out to be better according to the chosen rule. There is no need to hide the result: it shows that updating based on history is not automatically useful.
The first successes raised the expectation of the model, after which errors appeared. Confidently incorrect forecasts received a large penalty. The six outcomes do not establish the overall superiority of the constant model. To compare rules, we need new series with predetermined conditions: constant success, varying difficulty, or differences between task types.
The squared error evaluates the quality of a probabilistic forecast. It does not measure the depth of experience and does not by itself indicate how well confidence distinguishes between specific right and wrong decisions. The name of the indicator must correspond to the calculation performed. This rule helps to preserve the meaning even with further complication of the model.
Overall reliability and difficulty of this case
Our counters treat tasks as instances of the same type. However, the actual series may include easy and difficult questions. The same general forecast for each subsequent task then loses useful information. If the type is known in advance, separate counters can be maintained by type. If difficulty is assessed by the internal ambiguity of a solution, the model must indicate which feature is used for this.
For example, a classifier may obtain similar scores between two options. A slight difference between them is a possible sign of uncertainty, but its significance must be checked against the correct answers. High internal numbers do not become good confidence just because of the name. The model should show the relationship between such attributes and actual success on new cases.
This is how we distinguish between the general prediction “I usually solve problems like this” and the assessment “this particular answer is reliable.” The first uses the history of a class of cases, the second can take into account information from the current decision. A good research project compares them and finds out what each source of information adds.
When the past is no longer equally useful
Let's say the tasks gradually become more complex. A long history of easy tasks may support an overly high prediction. One way to adapt is to reduce the weight of old outcomes before adding new ones. Another is to maintain separate regimes and try to determine which one is in effect now. Both options require assumptions about how the environment is changing.
Rapid forgetting helps respond to change, but makes assessment sensitive to a random series of errors. A slow update is more resistant to short-term noise, but may lag behind the actual change. This is where a testable trade-off comes into play. You cannot choose a universally best tempo just because the system wants to “be flexible”; you need a set of conditions that represents the task of use.
Automatic update of counters is a mechanism for regulating assessment. Explicit reflection involves an additional step: considering the reasons for the rule itself. For example: “My confidence is based on overall success, although the tasks have become of a different type.” You can then propose a new assessment organization and compare it with the old one. When designing a system, these functions should be described separately.
Why is a probabilistic forecast penalized?
Before the third outcome of the training series, after two successes, the model predicts 0.75. The third outcome is zero, so the square of the difference is 0.5625. The constant forecast 0.5 receives in the same sample 0.25. This is not a learning penalty per se: the rule penalizes confident errors more strongly. If you first include the third outcome in the counters, and then call the new number a prediction of the third outcome, the estimate will use the answer. This order checks another property and creates a data leak.
What has now been established
We have determined when a forecast is made and against what it is evaluated. History can help or hinder. Its benefit is the result of comparison, and the name of the mechanism does not guarantee a win.
Practice 12 Check to continue
Why do it: Compare constant and learning forecasts on continuation, without selecting a rule based on the outcomes being tested.
What you will need: Success rates and distinguishing between currently and future information. The squared error below is used as a pre-selected forecast evaluation rule.
Time reference: 25–35 minutes. Can be done intermittently; This is not a speed standard.
1. Start with success and error counters of one. For outcomes 1, 1, 0, 1, 0, 0, write down the probability before each update.
2. For each prediction, calculate the square of the difference with the current outcome. Compare the average with the constant forecast 0.5.
3. Keeping the final counters, add a continuation 1, 0, 1, 1, 0, 1. Compare the second part separately.
4. Before a new change, select a forgetting rule if you want to explore it. Check the parameter selected as a continuation on another series.
What to keep: Temporary table of forecasts, two separate comparisons, and justification for the order of calculations.
Hint: After the first series, the counters are four and four. The forecast for the next outcome is again 0.5.
Research continuation: Divide tasks into known types. Compare the general counters with the individual ones, and then formulate what data will allow you to notice a change in regime.
Analysis and answers - Appendix F, chapter 12, p. 285
Self-test questions
1. Why can't a prediction after receiving the correct answer be assessed as initial confidence?
2. Why is the cumulative percentage of successes not sufficient to evaluate each individual task?
3. How does automatic updating of counters differ from explicit reflection on the evaluation method?
We now have a language of state, feedback, source, and evaluation. It will allow theories of consciousness to be read as proposals about structure and predictions, rather than as a list of names.
Part 4

