Mind · Inference

SurprisalUpdate

Learning weighted by prediction failure magnitude

Definition

Mechanism

A learning protocol where the agent updates its internal model (weights, embeddings, or context) based on failed predictions, weighted by the magnitude of surprise. Higher surprisal = larger update. 'Learn most from what confused you most.' This implements Surprisal-Weighted Fine-Tuning (SWFT): loss contribution is proportional to -log(P(observed|predicted)). Utilizes RegimeSense, EpistemicROI.

Preconditions

  1. Actual outcome observed and diverged from prediction
  2. Prediction was made with computable probability

Postconditions

  1. Loss weighted by surprisal; model shift bounded by `max_update_rate`
  2. Update logged for audit trail

Invariants

  1. Loss contribution is proportional to surprisal, -log P(observed|predicted).
  2. Stability Guard: no single update shifts the model more than `max_update_rate`, whatever the loss.
  3. Update magnitude follows from the loss through `learning_rate` and the optimiser, not from surprisal directly.

Risks

Failure modes

  1. Outlier Overfitting

    Rare high-surprisal events dominating learning.

  2. Catastrophic Forgetting

    Aggressive updates erasing previously stable knowledge.

  3. Compute Cost

    High-surprisal events require expensive Gradient updates.

Relationships

Builds on

References

EpistemicROI

Calculating the economic value of reducing uncertainty

Physics

Gradient

The directional rate of change of a scalar field — substrate for hill-climbing, attention flow, and credit assignment

Used by

References

Reference

Parameters

learning_rate Float, [0.0, 1.0]
How much to update the model based on surprisal
max_update_rate Float, [0.0, 1.0]
Maximum allowed model shift per single update

Identity

Ref
SurprisalUpdate#26e5
Sema ID
sema:SurprisalUpdate#mh:SHA-256:26e53ade88809ac3ba9293b45db768fdbdb384a53cda1217c3a0dfc61d5f8408
Ring
2
Tier
1
Updated
2026-11-11
Supersedes
  • sema:SurprisalUpdate#mh:SHA-256:8eb2004c635b92c95a5dad62bbc4375a5a6728f493345334dd46f8ec2b4c3714
  • sema:SurprisalUpdate#mh:SHA-256:6ef19d8b61ce228bbc61a34496b878f1e060e56790f48606fc4e81b3b8594fca
  • sema:SurprisalUpdate#mh:SHA-256:41a9f896757eb4b0d7132604b60e0193eaba43329953359ef5e927f69112f8df
  • sema:SurprisalUpdate#mh:SHA-256:6169da6dce9141595fc8b7ac8d8743e397cd44a2da04b3499b2ce910e174c2ef
  • sema:SurprisalUpdate#mh:SHA-256:b2f104df0f114d6ef799bb343897bc4119585cd164821e63bfa6043cb717243f