Poucet How Poucet remembers
Back to the demo

How Poucet remembers

Poucet is a 30M-parameter language model with a memory of pebbles: short, exact pieces of what it read. By day it lays pebbles and reads them back through a pointer. Each read is metered: how much did this pebble help? By night, the pebbles that earned their keep were meant to be folded into the weights, as a habit. This page walks through each step.

Numbers marked toy are chosen for illustration and are not measurements. Numbers marked real are copied from the project's documents, with a link. The formulas are those of docs/SPEC.md §2.3 and of the paper's Figure 3.

1. The day: a sentence becomes a pebble

The day cuts text into events at newlines and sentence ends. Each event is read; an event that surprises the model more than a running percentile is kept as a pebble. Here you choose the fact to keep.

    2. Reading through the pointer, and who earns credit

    A question arrives: "What colour is the flag of Tavomir?" At the answer token green, the model mixes its own closed-book guess (weight α0, the sentinel) with copying tokens from the pebbles it reads (weights αi). The weights come from one softmax, so they sum to 1; the sliders below are renormalised. toy

    Which pebbles hold the token green?

    Leave-one-out: remove pebble i from the softmax, renormalise the others (their scores stay fixed), and read again. Relief ui = log(po / po−i), in nats. Credit counts only when |u| > ε = 0.2082 nats, the clean-null threshold of prereg/gates.rederived-47.yaml real.

    Leave-one-out relief per pebble
    Removedpo−i(green)Relief (nats)Verdict

    3. The ledger, event by event

    Each pebble keeps a ledger: E, the signed sum of relief earned (nats); r, its distinct returns; h, its harms. Relief above ε adds to E, and counts as a return only if the event is not a near copy of the pebble. Relief below −ε subtracts from E and counts as a harm. A pebble with h − r ≥ 2 is erased (or retired, if it had earned). Step through a short scripted day. toy

    Ledger per pebble
    PebbleErhStatus

    4. The night: what gets folded, and at what scale

    At night, chosen pebbles are distilled into the weights: the open-book model (pebble forced open) teaches the closed-book one, on pool views of each pebble (template renderings of its fact), not on the pebble's stored text. The arms of the pilot differ only in how they choose. Here the night folds M = 3 pebbles of eight. toy

    Arm

    Toy pebble table and the selected arm's choice
    PebbleErhrecurEligibleDose

    The commit: a line search over the scale

    The candidate change is committed at the largest scale a ∈ {1, ½, ¼} that passes the canon check (canon exact match within 3 points of its value before the night) and lowers the held-out need of the folded pebbles; if none passes, the night is rejected. The night itself runs on a GPU whose kernels are not bitwise deterministic, so the measured canon change can move a little from run to run. toy

    Commit line search
    Scale aCanon change (points)Check (≥ −3)Committed

    This is what docs/PILOT.md reports for pilot v2 against v3: the same night 1 of arm A kept a = 1 in one run and ½ in the other. The line search is a threshold, so a tiny numeric difference can tip it to another scale, and from there to another lineage. Its most plausible cause is GPU nondeterminism; it was not verified by rerunning a night.

    5. What was found real

    Read more: the final report docs/REPORT.md, the pilots docs/PILOT.md, the paper (PDF), DOI 10.5281/zenodo.24843308.