5D Library › The Sandbox, Determinism and Active Inference · 中文

Chapter 5 Structured Sandboxes and the Reshaping of Priors

Why argument rarely changes deep priors

The models of Chapters 1 and 2 give two reasons. First, a very precise prior needs a great deal of contrary evidence to shift, and an argument usually counts as a single piece of evidence, often given very low precision. Second, under active inference a system need not cancel prediction error by revising its belief; when changing its circumstances is cheaper than changing its view, it changes its circumstances. A person who nods at an argument and then carries on as before is, in this framework, not being inconsistent: the belief has received too little new evidence, and behaviour keeps producing evidence that fits the old belief.

To change a prior, then, what is needed is not more argument but new experience, and specifically experience that the old pattern of behaviour would never have produced. The trouble is that in real life trying a new pattern can be costly: a failed job application, a failed relationship, embarrassment in front of colleagues. The higher the cost, the harder it is to try.

Low-stakes simulation

A sandbox here means a simulated environment with clear rules and limited consequences: role play, tabletop exercises, card games, mock negotiations. Its role can be stated in the language of the previous chapters.

First, it lowers the cost of exploration. In Chapter 4’s bandit, exploration is hard because every pull of a worse machine costs a real loss; when the loss shrinks, exploration becomes cheap.

Second, it lowers ambiguity. Chapter 2’s model showed that the ambiguity term in expected free energy on its own favours actions whose outcomes are more predictable, so in uncertain surroundings people lean toward familiar outcomes, even bad ones. A sandbox with clear rules makes the outcomes of new actions predictable and so removes part of the pressure toward the old action.

Third, it lowers threat. The evidence below suggests that stress and threat make people exploit more and explore less.

Evidence

  • Stress and over-exploitation. Using a sequential foraging task (choosing between a known option and an unknown alternative), Lenow and colleagues found that both acute stress (indexed by cortisol change) and self-reported chronic stress made decision-makers stay with current options more than an optimal policy would, that is, over-exploit (Lenow et al. 2017).
  • Psychological safety. Edmondson’s study of 51 work teams in a manufacturing company found that team members’ belief that the team is safe for interpersonal risk-taking (psychological safety) was associated with more learning behaviour (asking for help, discussing errors, seeking feedback), and through learning behaviour with team performance (Edmondson 1999). The study is correlational and cannot by itself establish cause.
  • Serious games. A meta-analysis by Wouters and colleagues found that, compared with conventional instruction, serious games had small-to-moderate advantages for learning and retention but were not significantly more motivating (Wouters et al. 2013).
  • The limits of transfer. On the other hand, in chess, music and working-memory training the evidence for “far transfer” of trained skill to unrelated domains is weak (Sala and Gobet 2017). Whether what is learned in a sandbox comes back into life is the weakest link in this approach.

The temperature parameter

In reinforcement learning the softmax choice rule controls exploration with an inverse temperature β\beta: option ii is chosen with probability proportional to exp⁡(βQi)\exp(\beta Q_i). With small β\beta choice is nearly random and exploration is high; with large β\beta the currently best-valued option is almost always chosen. The program below makes a simplifying assumption: the greater the threat, the larger β\beta.

Calculation

Four options. The learner begins with a pessimistic prior: the familiar option is valued at 0.5, new ones at 0.2; in fact option 3 pays 0.8 on average. Each inverse temperature is run 500 times for 100 trials.

# Threat, inverse temperature and the discovery of a better option (a simplified model).
# Four options. The learner starts with a pessimistic prior: the familiar option is worth 0.5,
# new ones 0.2. In truth option 3 pays 0.8 on average. Choice is softmax with inverse temperature
# beta; the model's assumption is that perceived threat raises beta (more exploitation).
import math, random
TRUE = [0.5, 0.3, 0.4, 0.8]

def run(beta, trials=100, alpha=0.2, seed=0):
    rng = random.Random(seed)
    q = [0.5, 0.2, 0.2, 0.2]
    found = None
    total = 0.0
    for t in range(trials):
        z = [math.exp(beta * v) for v in q]
        u, acc, a = rng.random() * sum(z), 0.0, 0
        for i, zi in enumerate(z):
            acc += zi
            if u <= acc:
                a = i; break
        r = TRUE[a] + rng.gauss(0, 0.2)
        q[a] += alpha * (r - q[a])
        total += TRUE[a]
        if found is None and q[3] > max(q[:3]):
            found = t + 1
    return found, total / trials

print("inverse temperature | discovered within 100 trials | median trials to discovery | mean payoff per trial")
for beta in (2, 5, 10, 20, 40):
    out = [run(beta, seed=s) for s in range(500)]
    res = [o[0] for o in out]
    pay = sum(o[1] for o in out) / len(out)
    hits = sorted(r for r in res if r is not None)
    med = hits[len(hits) // 2] if hits else None
    print(f"{beta:19d} | {len(hits) / len(res):28.0%} | {med if med else '-':>26} | {pay:21.2f}")
# inverse temperature | discovered within 100 trials | median trials to discovery | mean payoff per trial
#                   2 |                         100% |                         13 |                  0.56
#                   5 |                         100% |                         15 |                  0.66
#                  10 |                          98% |                         26 |                  0.68
#                  20 |                          36% |                         56 |                  0.55
#                  40 |                           1% |                         74 |                  0.50

With inverse temperatures from 2 to 10 the better option is found within 100 trials almost every time; at 20 only 36 % of the time, at 40 only 1 %. The last column is a reminder of the other side: the learner with the lowest inverse temperature finds the better option fastest but explores too much, keeps trying options it knows are worse, and earns less on average than a learner with a moderate inverse temperature. In this model the best is not unlimited exploration but thorough exploration in a low-stakes phase, followed by exploitation once good estimates are in hand. That is exactly the sequence a good sandbox can offer: “hot” in the sandbox, “cooler” back in life.

Note

“Threat raises inverse temperature” is an assumption of this model, not a measured law. Lenow and colleagues’ result points the same way, but they measured stay-or-leave decisions in a foraging task, not the softmax parameter itself.

Card-based simulation

In his community courses the author uses a structured card-based simulation: participants draw cards describing situations, roles and constraints, play out the consequences of a decision by the rules, and then discuss in small groups. The author has observed that many participants name their habitual patterns of thought (for example, “I always assume the other person will say no”) more quickly in the simulation than in lectures. This is the author’s observation, not a research finding: there was no control group, the observer knew which activity participants attended, and naming a pattern is not changing it.

Hypothesis · not established

Not established. Compared with reading and lectures matched for time and instructor effort, structured sandbox simulation increases participants’ directed exploration in uncertain decisions, because it provides, under low stakes and clear rules, experiences that the old pattern would not have produced. The hypothesis predicts that in the Chapter 8 trial the information-bonus parameter fitted to the Horizon task is at least 0.4 standard deviations higher in the sandbox group than in the lecture group. If the confidence interval of the difference lies entirely within ±0.4\pm 0.4, or the lecture group scores higher, the hypothesis is refuted.

Sandboxes can also reinforce old patterns

One risk needs stating. Games and simulations do not automatically produce exploration: participants may treat the sandbox as a contest to win and repeat the safest strategy in it; the facilitator’s judgement and peers’ eyes can make the sandbox threatening again. If failure in the sandbox brings humiliation, it is no longer low-stakes. A good sandbox needs clear rules, limited consequences, acceptance of failure, and concrete steps for carrying discoveries back into real life; whether these conditions are met matters more than which props are used.

References

Edmondson, Amy. 1999. “Psychological Safety and Learning Behavior in Work Teams.” Administrative Science Quarterly 44 (2): 350–83.
Lenow, Jennifer K., Sara M. Constantino, Nathaniel D. Daw, and Elizabeth A. Phelps. 2017. “Chronic and Acute Stress Promote Overexploitation in Serial Decision Making.” Journal of Neuroscience 37 (23): 5681–89.
Sala, Giovanni, and Fernand Gobet. 2017. “Does Far Transfer Exist? Negative Evidence from Chess, Music, and Working Memory Training.” Current Directions in Psychological Science 26 (6): 515–20.
Wouters, Pieter, Christof van Nimwegen, Herre van Oostendorp, and Erik D. van der Spek. 2013. “A Meta-Analysis of the Cognitive and Motivational Effects of Serious Games.” Journal of Educational Psychology 105 (2): 249–65.

Fan, Y. (2026). The Sandbox, Determinism and Active Inference: Markov Blankets, Variational Free-Energy Minimisation, Exploration-Exploitation Trade-offs and East Asian Causality in Computational Neuroscience [沙盘、宿命与主动推理] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23738794 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).