Presentation is loading. Please wait.

Presentation is loading. Please wait.

Göteborg 26. Jan -04Evaluation of Vector Space Models Obtained by Latent Semantic Indexing1 Leif Grönqvist Växjö University (Mathematics.

Similar presentations


Presentation on theme: "Göteborg 26. Jan -04Evaluation of Vector Space Models Obtained by Latent Semantic Indexing1 Leif Grönqvist Växjö University (Mathematics."— Presentation transcript:

1 Göteborg 26. Jan -04Evaluation of Vector Space Models Obtained by Latent Semantic Indexing1 Leif Grönqvist (leifg@ling.gu.se) Växjö University (Mathematics and Systems Engineering) GSLT (Graduate School of Language Technology) Göteborg University (Department of Linguistics)

2 2Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Outline of the talk  Vector space models in IR (short reminder since last seminar) The traditional model Latent semantic indexing (LSI)  Singular value decomposition (SVD)  Evaluation Why How & Data sources

3 3Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 The traditional vector model  One dimension for each index term  A document is a vector in a very high dimensional space  The similarity between a document and a query is the cosine:  Gives us a degree of similarity instead of yes/no as for basic keyword search

4 4Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 The traditional vector model, cont.  Assumption used: all terms are unrelated  Could be fixed partially using different weights for each term  Still, we have a lot more dimensions than we want How should we decide the index terms? Similarity between terms are always 0 Very similar documents may have sim0 if they:  use a different vocabulary  don’t use the index terms

5 5Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Latent semantic indexing (LSI)  Similar to factor analysis  Number of dimensions can be chosen as we like  We make some kind of projection from a vector space with all terms to the smaller dimensionality  Each dimension is a mix of terms  Impossible to know the meaning of the dimension

6 6Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 LSI, cont.  Distance between vectors is cosine just as before  Meaningful to calculate distance between all terms and/or documents  How can we do the projection?  There are some ways: Singular value decomposition (SVD) Random indexing Neural nets, factor analysis, etc.

7 7Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Why SVD?  I prefer SVD since:  Michael W Berry 1992: “… This important result indicates that A k is the best k-rank approxima- tion (in a least squares sense) to the matrix A.  Leif 2003: What Berry says is that SVD gives the best projection from n to k dimensions, that is the projection that keep distances in the best possible way.

8 8Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 A small example input to SVD

9 9Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 What SVD gives us X=T 0 S 0 D 0 : X, T 0, S 0, D 0 are matrices

10 10Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Using the SVD  The matrices make it easy to project term and document vectors into a m- dimensional space (m ≤ min (terms, docs)) using ordinary linear algebra  We can select m easily just by using as many rows/columns of T 0, S 0, D 0 as we want  It is possible to calculate a new (approximated) X – it will still be a t x d matrix

11 11Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Some applications  Automatic generation of a domain specific thesaurus  Keyword extraction from documents  Find sets of similar documents in a collection  Find documents related to a given document or a set of terms

12 12Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 An example based on 50 000 newspaper articles stefan edberg edberg0.918 cincinnatis0.887 edbergs0.883 världsfemman0.883 stefans0.883 tennisspelarna0.863 stefan0.861 turneringsseger0.859 queensturneringen 0.858 växjöspelaren0.852 grästurnering0.847 bengt johansson johansson0.852 johanssons0.704 bengt0.678 centerledare0.674 miljöcentern0.667 landsbygdscentern0.667 implikationer0.645 ickesocialistisk0.643 centerledaren0.627 regeringsalternativet 0.620 vagare0.616

13 13Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Evaluation  We need evaluation metrics to be able to improve the model!  How can we evaluate millions of vectors? “similar terms have vectors with high cosine” What is similar?  Seems impossible to evaluate the model objectively…  Possible solution: look at specific applications! They may be much easier to evaluate

14 14Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Applications using the model  Vector models may be evaluated using: A typical IR test suite of queries, documents, and relevance information Texts with lists of manually selected keywords (multiword units included) Selected terms in a thesaurus (with multiword units) The Test of English as a Foreign Language (TOEFL), which tests the ability of selecting synonyms from a set of alternatives  Still subjectivity, but the more the vector model improves these applications the better it is!  Let’s look in detail at the first application

15 15Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 An IR testbed  There are such testbeds for English, but Swedish has other problems Very different from English Compounds without spaces “New” letters (åäö) Complex morphology Other stop words …

16 16Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 A new Swedish test collection  A group in Borås is building it Per Ahlgren Johan Eklund Leif Grönqvist  It will contain Documents Topics Relevance judgments

17 17Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Document collection  Newspaper articles from GP and HD  Same year as the TT-data in CLEF  161 000 articles, 40 MTokens  Good to have more than one newspaper: Same content, different author (not always)  10% of my newspaper article collection  Copyright is a problem

18 18Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Topics  Borrowed from CLEF  52/90, but not the most difficult  Examples: Filmer av bröderna Kaurismäki.  Description: Sök efter information om filmer som regisserats av någon av de båda bröderna Aki och Mika Kaurismäki.  Narrative: Relevanta dokument namnger en eller flera titlar på filmer som regisserats av Aki eller Mika Kaurismäki. Finlands första EU-kommissionär  Description: Vem utsågs att vara den första EU- kommissionären för Finland i Europeiska unionen?  Narrative: Ange namnet på Finlands första EU- kommissionär. Relevanta dokument kan också nämna sakområdena för den nya kommissionärens uppdrag.

19 19Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Relevance judgments  Only a subset for each topic Selected by earlier experiments Similar approach to TREC and CLEF  100 documents for 5 strategies: 100  N  500 Important to include relevant and irrelevant documents  A scale of relevance proposed by Sormonen: Irrelevant (0)  Marginally relevant (1)  Fairly relevant (2)  Highly relevant (3)  Manually annotated

20 20Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Relevance definitions IdTagDescription 0Irrelevant The document does not contain any information about the topic 1Marginally relevant The document only points to the topic. It does not contain any other information, with respect to the topic, than the description of the topic 2Fairly relevant The document contains more information than the description of the topic but the presentation is not exhaustive. In the case of a topic with several aspects, only some of the aspects are covered by the document 3Highly relevant The document discusses all of the themes of the topic. In the case of a topic with several aspects, all or most of the aspects are covered by the document.

21 21Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Statistics  Some difficult topics got very few relevant documents

22 22Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Statistics per relevance category

23 23Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 Evaluation metrics  Recall & precision is problematic: Ranked lists – how much better is position 1 than pos 5 and 10? How long should the lists be? Relevance scale – how much better is “highly relevant” than “fairly relevant” What about the unknown documents not judged?  Idea: different user types needs different evaluation metrics  Too many unknown leads to a need of more manual judgments…

24 24Evaluation of Vector Space Models Obtained by Latent Semantic IndexingGöteborg 26. Jan -04 The End! Thank you for listening ???


Download ppt "Göteborg 26. Jan -04Evaluation of Vector Space Models Obtained by Latent Semantic Indexing1 Leif Grönqvist Växjö University (Mathematics."

Similar presentations


Ads by Google