Overview
Reading the figure from the bottom
Section titled “Reading the figure from the bottom”Input and encoding (grey panel). An item arrives with its time . A frozen sentence encoder, all-roberta-large-v1, turns each sentence into a vector of numbers, and the item becomes the mean of its unit sentence vectors, . The projection then subtracts a mean, keeps principal directions () and scales the result to length one: the item is now a point on the sphere . Only the mean and are fitted, once, on a sample that is not the stream. In vmfstream this is SentenceEncoder and Memory.fit_projection; The projection explains why it is a PCA.
The cell (white panel, once per item). Four operations, left to right:
- Prior. The elapsed time forgets every node’s mass, and the prior of node becomes ; the new-story slot has .
- Read. Each node is a von Mises–Fisher density around its centre. The posterior is a softmax over the nodes and the new-story slot (The read).
- Forget and write. All statistics are multiplied by , then the item is added to its node: to the sum , one to the mass (Writing and birth).
- Birth. If the new-story slot wins, opens a node in a free row.
The state (right). A table with one row per node: the sum and the mass (plus a pseudo-mass , not drawn). This table is all the memory keeps (What the memory keeps). It is passed from one step to the next, like the hidden state of a recurrent network, but nothing in it is learned by gradient.
The sphere (bottom right) shows what the read means geometrically: a node is a cap around its centre , narrower as its concentration grows; an item that falls in a cap goes to that node (☆), and an item far from every cap is surprising and opens a node (○).
In code
Section titled “In code”The whole figure is one call per item:
step = memory.step(embedding, time) # read, forget, write, maybe birthstep.node, step.born, step.surpriseand memory.read(embeddings, times) runs it over a stream and keeps the record of every decision in a History, outside the memory. Every analysis in the library, retrieval, timelines, the explorer, is built on that record.
Where to go next
Section titled “Where to go next”- New to the mathematics? Background ideas introduces each concept from scratch, with a lab on how cosines behave in 256 dimensions.
- Want to see it move? The memory explorer shows nine years of the Wikipedia Current Events Portal day by day, node by node, and switches between readings with other settings (how to read it).