关于「结构化沙盘与先验的重塑」,《沙盘、宿命与主动推理》给出的定量结论是什么?

结论:逆温度为 2 到 10 时,几乎每次都能在 100 轮内发现更好的选项;到 20 时只有 36%,到 40 时只有 1%。最后一列提醒另一面:逆温度最低的学习者虽然最快发现好选项,但它探索太多,一直在试明知较差的选项,平均收益反而不如中等逆温度的学习者。在这个模型里,最好的不是无限的探索,而是先在低风险的阶段充分探索,再在有了好的估计之后转向利用。这正是一个好的沙盘可以提供的顺序:在沙盘里「高温」,回到生活中「降温」。

数据口径:本书不是心理治疗或诊断;关于「旧先验驱动重复挫折」的内容是假说与跨学科类比,绝不意味着受害者要为自己的遭遇负责。 书中以标注框区分已发表的证据、可运行的 Python 计算(15 段程序,全部核对)、原典与作者的假说。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 10, 100, 20, 36, 40

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
查看完整验算程序
# 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}")

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《沙盘、宿命与主动推理》第 5 章「结构化沙盘与先验的重塑」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23738794

DOI: 10.5281/zenodo.23738794 · 阅读本章所在专著 · 5DL-B-015 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026015,
  author    = {Fan, Yafu},
  title     = {The Sandbox, Determinism and Active Inference},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  doi       = {10.5281/zenodo.23738794},
  url       = {https://doi.org/10.5281/zenodo.23738794}
}

本书其他章节结论