Open in TheBrain

Pentti Kanerva: UC Berkeley VS298 - Neural Computation Lecture 2008-12-09

<p>Dec 22, 2010 05:12 PM &#160;Pentti's lecture at &#160;

&#160;

1 hour and 20 mins at Berkeley &#160;in Bruno O's &#160;seminar.

&#160;

similar work by &#160;Rachkovskij and Kuseel &#160;Context Dependent Thinning

&#160;

Plate: &#160;Holographic Reduced Representation

&#160;

Olshuasen &#160;Shifter Circuits

&#160;

Arathorn &#160;Mapping Circuits

&#160;

his work in SDM &#160;and Spatter Code

&#160;

big reference on LSA &#160;is &#160;Landauer and Dumair &#160;1997 &#160;A solution to Plato's problem:

The Latent Semantic Analysis theory of acquisition, induction and repres of knowledge

PSYCHOL REView &#160;104 (2) &#160;211-240.

&#160;

he shows random indexing = RI.

&#160;

but can extend with &#160;neighboring words &#160;(with good results)

or equival classes for words &#160;(discvoer grammar)

&#160;

deriving meanings of words:

&#160;

look at 37,000 &#160;"documents" &#160;each documents is 166 words long. &#160;(from high school texts in a variety of subjects:

science, art, business, history etc

&#160;

total vocabulary is 54,000 words...

&#160;

the big matrix &#160;has 54,000 rows and 37,000 columns

&#160;

say one row is for liquid... if it appears twice in the article about water then &#160;&#160;a &#160;2 will be stored at that position.

A document is said to activate that column.

&#160;

That is the raw data matrix.

Raw semantic vector corresponds to each row: &#160;eg the vector for liquid and the vector for liquids should be

very similar &#160;in that they will appear in exactly the same types of articles.

and same for &#160;man and woman or furniture and wood.

&#160;

now you need a measure for measuring the similarity of vectors:

eg dot product or &#160;cosine (normalized to unit length or correlation)

&#160;

test it by synonymy

using &#160;TOEFL &#160;(test of English for foreign language)

&#160;

test of 80 words &#160;eg

&#160;

prominent is a synonym of a) battered &#160;.... d) conspicuous

&#160;

zenith is a synon of &#160;b) pinnacle

flawed is a syn of &#160;b) imperfect

&#160;

now: &#160;check the vector for prominent &#160;(with 37,000 entries) and

the vector for &#160;conspicuous &#160;&#160;&#160;that is a good test of how well it works.

&#160;

You can do LSA with either &#160;PCA or with ICA

LSA is the standard method for doing dimension reduction. &#160;using SVD singular value decomp[ostion.

&#160;

but the &#160;raw semantic vectors are very sparse &#160;(cuz most words are not in most documents)

Pentti &#160;does random indexing &#160;&#160;(the standard method is &#160;LSA &#160;latrent semantic analysis &#160;... early 1990s).

&#160;

here's how SVD works:

&#160;

SVD of matrix F &#160;(F is the big frqeuncy matrix.

&#160;

F (w times d) that is &#160;words * documents &#160;but can be exactly repres as product of three matrices

&#160;

r is the rank of the matrix

&#160;

A (w*r) &#160;times &#160;B (r *r) &#160;times &#160;C &#160;(r * d)

&#160;

B &#160;is a diagonal &#160;matrix of &#160;eigen-values.

&#160;

can approx F &#160;by just using the first p eigen-vectors/ principal compoents

&#160;

F prime &#160;= &#160;Aprime times Bprime times C prime

&#160;

where rows of A prime are semantic vectors for the words

&#160;

perhaps &#160;liquid &#160;= &#160;.7 fluid , .3 &#160;cold, &#160;etc. &#160;(my exmaple).

&#160;

300 is the optimal number; &#160;when u go beyond, the score goes down cuz you're adding noise &#160;(overfitting).

*

&#160;

his method derives semantic vectors instead by random indexing.

&#160;

so in SVD &#160;thy go from &#160;text to the F matrix &#160;54k by 37k &#160;then go to SVD &#160;then get &#160;54k by 300 matrix &#160;(A prime)

where each row is a semantic vector.

&#160;

instad in &#160;RI &#160;never collect the F matrix

go direclty from text to a RI (random index) &#160;that is &#160;54k &#160;by 10k

(or can go to 10k by 10k by doing both dimensions)

&#160;

here's how to do it with RI

&#160;

start with &#160;empty F or G matrix with all zeroes.

&#160;

in the standard method &#160;SLA &#160;whenver you hit the word in the document, increment the cell by 1 &#160;(that gives you

the count of "liquid" &#160;in the ith article.

&#160;

in contrast in &#160;Random Indexing RI: &#160;each doument activates SEVERAL RANDOMLY CHOSEN columns

out of 10,000 in the RI-matrix &#160;G;

10 positive and 10 negative coumns

randomly &#160;10 positive and 10 negative columns

for each document.

if liquid appears in the document then add 1 to ALL the positive coumns

if it does not then subtract 1 from those columns.

&#160;

&#160;

&#160;

&#160;

&#160;

&#160;

&#160;

He shows two method for reducing the dimensions of that matrix

&#160;

one is called LSA &#160;latent semantic analysis &#160;LSA... it uses PCA &#160;principal components analsysis

&#160;

to go from &#160;37,000 columns down to only 300 columns (that contain most of the meaning (I suppose)) of each word.

&#160;

&#160;

&#160;

&#160;

&#160;

&#160;

&#160;</p>

Attachments