Random Indexing

Counting every possible word-context pair can require a very large table. Random indexing gives contexts small random vectors and accumulates them, keeping the representation a fixed size as new examples arrive.

12 sections · 10 questions · 4 coding challenges

1 / 12

Could We Build Context Vectors Without Storing the Whole Table?

BOTIE

A word-context table can grow with both the vocabulary and the number of contexts. Building the full table and then compressing it may become expensive. We would like to accumulate a compact representation as observations arrive.

Kanerva, Kristoferson and Holst's 2000 random-indexing work proposed using sparse random index vectors for contexts. Word representations could then be built by accumulating the index vectors of the contexts in which the words occurred.

Each context receives a short random signature with only a few nonzero entries. A word adds the signatures of its observed contexts. Words with similar context histories therefore accumulate similar patterns, without reserving a separate coordinate for every context. The random signatures make an approximate representation possible; they do not assign linguistic meaning in advance or preserve every original count exactly.

Sources for this history