Expand description
A codebook: a vocabulary of atomic symbols stored as a tile-aligned matrix so that cleanup — finding the symbol most similar to a noisy hypervector — is a single matrix multiply on the systolic engine.
The codebook holds its count symbols as the columns of a dim × count
PaddedTileLattice. Resolving a batch of b query hypervectors is then the
product Q (b × dim) · C (dim × count) → S (b × count), after which each row’s
argmax names the recovered symbol. That product is exactly what a TPU’s
matrix unit exists to do, and it resolves the entire batch against the
entire vocabulary in one shot.
Structs§
- Codebook
- A vocabulary of
countdeterministic bipolar hypervectors of dimensiondim.