Introduction to Information Retrieval Introduction to Information Retrieval Hinrich Schütze and Christina Lioma Lecture 18: Latent Semantic Indexing 1.

Slides:



Advertisements
Similar presentations
Introduction to Information Retrieval Outline ❶ Latent semantic indexing ❷ Dimensionality reduction ❸ LSI in information retrieval 1.
Advertisements

Covariance Matrix Applications
Latent Semantic Analysis
Generalised Inverses Modal Analysis and Modal Testing S. Ziaei Rad.
Dimensionality Reduction PCA -- SVD
Introduction to Information Retrieval (Manning, Raghavan, Schutze) Chapter 6 Scoring term weighting and the vector space model.
Comparison of information retrieval techniques: Latent semantic indexing (LSI) and Concept indexing (CI) Jasminka Dobša Faculty of organization and informatics,
1cs542g-term High Dimensional Data  So far we’ve considered scalar data values f i (or interpolated/approximated each component of vector values.
What is missing? Reasons that ideal effectiveness hard to achieve: 1. Users’ inability to describe queries precisely. 2. Document representation loses.
Hinrich Schütze and Christina Lioma
1 Latent Semantic Indexing Jieping Ye Department of Computer Science & Engineering Arizona State University
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 4 March 30, 2005
Information Retrieval in Text Part III Reference: Michael W. Berry and Murray Browne. Understanding Search Engines: Mathematical Modeling and Text Retrieval.
Hinrich Schütze and Christina Lioma
Singular Value Decomposition in Text Mining Ram Akella University of California Berkeley Silicon Valley Center/SC Lecture 4b February 9, 2011.
TFIDF-space  An obvious way to combine TF-IDF: the coordinate of document in axis is given by  General form of consists of three parts: Local weight.
Lecture 21 SVD and Latent Semantic Indexing and Dimensional Reduction
Singular Value Decomposition
1/ 30. Problems for classical IR models Introduction & Background(LSI,SVD,..etc) Example Standard query method Analysis standard query method Seeking.
IR Models: Latent Semantic Analysis. IR Model Taxonomy Non-Overlapping Lists Proximal Nodes Structured Models U s e r T a s k Set Theoretic Fuzzy Extended.
The Terms that You Have to Know! Basis, Linear independent, Orthogonal Column space, Row space, Rank Linear combination Linear transformation Inner product.
CSci 6971: Image Registration Lecture 2: Vectors and Matrices January 16, 2004 Prof. Chuck Stewart, RPI Dr. Luis Ibanez, Kitware Prof. Chuck Stewart, RPI.
1 Algorithms for Large Data Sets Ziv Bar-Yossef Lecture 6 May 7, 2006
3D Geometry for Computer Graphics
Lecture 20 SVD and Its Applications Shang-Hua Teng.
6 1 Linear Transformations. 6 2 Hopfield Network Questions.
Multimedia Databases LSI and SVD. Text - Detailed outline text problem full text scanning inversion signature files clustering information filtering and.
DATA MINING LECTURE 7 Dimensionality Reduction PCA – SVD
1 CS 430 / INFO 430 Information Retrieval Lecture 9 Latent Semantic Indexing.
1cs542g-term Notes  Extra class next week (Oct 12, not this Friday)  To submit your assignment: me the URL of a page containing (links to)
CS276A Text Retrieval and Mining Lecture 15 Thanks to Thomas Hoffman, Brown University for sharing many of these slides.
Information Retrieval Latent Semantic Indexing. Speeding up cosine computation What if we could take our vectors and “pack” them into fewer dimensions.
Chapter 2 Dimensionality Reduction. Linear Methods
CS246 Topic-Based Models. Motivation  Q: For query “car”, will a document with the word “automobile” be returned as a result under the TF-IDF vector.
Latent Semantic Indexing Debapriyo Majumdar Information Retrieval – Spring 2015 Indian Statistical Institute Kolkata.
PrasadL18LSI1 Latent Semantic Indexing Adapted from Lectures by Prabhaker Raghavan, Christopher Manning and Thomas Hoffmann.
Introduction to Information Retrieval Introduction to Information Retrieval CS276: Information Retrieval and Web Search Christopher Manning and Prabhakar.
Matrix Factorization and Latent Semantic Indexing 1 Lecture 13: Matrix Factorization and Latent Semantic Indexing Web Search and Mining.
Introduction to Information Retrieval Lecture 19 LSI Thanks to Thomas Hofmann for some slides.
Indices Tomasz Bartoszewski. Inverted Index Search Construction Compression.
Introduction to Information Retrieval Introduction to Information Retrieval CS276: Information Retrieval and Web Search Christopher Manning and Pandu Nayak.
SVD: Singular Value Decomposition
CpSc 881: Information Retrieval. 2 Recall: Term-document matrix This matrix is the basis for computing the similarity between documents and queries. Today:
Latent Semantic Indexing: A probabilistic Analysis Christos Papadimitriou Prabhakar Raghavan, Hisao Tamaki, Santosh Vempala.
Text Categorization Moshe Koppel Lecture 12:Latent Semantic Indexing Adapted from slides by Prabhaker Raghavan, Chris Manning and TK Prasad.
June 5, 2006University of Trento1 Latent Semantic Indexing for the Routing Problem Doctorate course “Web Information Retrieval” PhD Student Irina Veredina.
SINGULAR VALUE DECOMPOSITION (SVD)
Introduction to Information Retrieval Introduction to Information Retrieval CS276: Information Retrieval and Web Search Christopher Manning and Pandu Nayak.
Scientific Computing Singular Value Decomposition SVD.
Latent Semantic Indexing
CPSC 491 Xin Liu November 22, A change of Bases A mxn =UΣV T, U mxm, V nxn are unitary matrixes Σ mxn is a diagonal matrix Columns of a unitary.
Introduction to Information Retrieval Outline ❶ Support Vector Machines ❷ Issues in the classification of text documents 1.
LATENT SEMANTIC INDEXING BY SINGULAR VALUE DECOMPOSITION
Modern information retreival Chapter. 02: Modeling (Latent Semantic Indexing)
Web Search and Text Mining Lecture 5. Outline Review of VSM More on LSI through SVD Term relatedness Probabilistic LSI.
ITCS 6265 Information Retrieval & Web Mining Lecture 16 Latent semantic indexing Thanks to Thomas Hofmann for some slides.
Recuperação de Informação B Cap. 02: Modeling (Latent Semantic Indexing & Neural Network Model) 2.7.2, September 27, 1999.
Web Search and Data Mining Lecture 4 Adapted from Manning, Raghavan and Schuetze.
Instructor: Mircea Nicolescu Lecture 8 CS 485 / 685 Computer Vision.
1 Chapter 8 – Symmetric Matrices and Quadratic Forms Outline 8.1 Symmetric Matrices 8.2Quardratic Forms 8.3Singular ValuesSymmetric MatricesQuardratic.
PrasadL18LSI1 Latent Semantic Indexing Adapted from Lectures by Prabhaker Raghavan, Christopher Manning and Thomas Hoffmann.
Vector Semantics Dense Vectors.
Introduction The central problems of Linear Algebra are to study the properties of matrices and to investigate the solutions of systems of linear equations.
Latent Semantic Indexing
LSI, SVD and Data Management
Outline Singular Value Decomposition Example of PCA: Eigenfaces.
Lecture 13: Singular Value Decomposition (SVD)
Latent Semantic Indexing
Restructuring Sparse High Dimensional Data for Effective Retrieval
Lecture 20 SVD and Its Applications
Presentation transcript:

Introduction to Information Retrieval Introduction to Information Retrieval Hinrich Schütze and Christina Lioma Lecture 18: Latent Semantic Indexing 1

Introduction to Information Retrieval Overview ❶ Latent semantic indexing ❷ Dimensionality reduction ❸ LSI in information retrieval 2

Introduction to Information Retrieval Outline ❶ Latent semantic indexing ❷ Dimensionality reduction ❸ LSI in information retrieval 3

Introduction to Information Retrieval Singular Value Decomposition(SVD) 4 Let r be the rank of the MxN matrix C. Then, there is a singular value decompostion(SVD) of C of the form U be the MxM matrix whose columns are the orthogonal eigenvectors of CC T, and V be the NxN matrix whose columns are the orthogonal eigenvectors of C T C.

Introduction to Information Retrieval Example 5

Introduction to Information Retrieval 6 Recall: Term-document matrix This matrix is the basis for computing the similarity between documents and queries. Today: Can we transform this matrix, so that we get a better measure of similarity between documents and queries? 6 Anthony and Cleopatra Julius Caesar The Tempest HamletOthelloMacbeth anthony brutus caesar calpurnia cleopatra mercy worser

Introduction to Information Retrieval 7 Latent semantic indexing: Overview  We will cast queries into this low-rank representation as well, enabling us to compute query-document similarity in this low-rank representation. This process is known as latent semantic indexing.  We will decompose the term-document matrix into a product of matrices.  The particular decomposition we’ll use: singular value decomposition (SVD).  SVD: C = UΣV T (where C = term-document matrix)  We will then use the SVD to compute a new, improved term-document matrix C‘.  We’ll get better similarity values out of C′ (compared to C). 7

Introduction to Information Retrieval 8 Example of C = UΣV T : The matrix C This is a standard term-document matrix. Actually, we use a non- weighted matrix here to simplify the example. 8

Introduction to Information Retrieval 9 Example of C = UΣV T : The matrix U One row per term, one column per min(M,N) where M is the number of terms and N is the number of documents. This is an orthonormal matrix: (i) Column vectors have unit length. (ii) Any two distinct column vectors are orthogonal to each other. Think of the dimensions as “semantic” dimensions that capture distinct topics like sports and economics. Each number u ij in the matrix indicates how strongly related term i is to the topic represented by semantic dimension j. 9

Introduction to Information Retrieval 10 Example of C = UΣV T : The matrix Σ This is a square, diagonal matrix of dimensionality min(M,N) × min(M,N). The diagonal consists of the singular values of C. The magnitude of the singular value measures the importance of the corresponding semantic dimension. We’ll make use of this by omitting unimportant dimensions. 10

Introduction to Information Retrieval 11 Example of C = UΣV T : The matrix V T One column per document, one row per min(M,N) where M is the number of terms and N is the number of documents. Again: This is an orthonormal matrix: (i) Row vectors have unit length. (ii) Any two distinct row vectors are orthogonal to each other. These are again the semantic dimensions from the term matrix U that capture distinct topics like sports and economics. Each number v ij in the matrix indicates how strongly related document i is to the topic represented by semantic dimension j. 11

Introduction to Information Retrieval 12 Example of C = UΣV T : All four matrices 12

Introduction to Information Retrieval 13 LSI: Summary  We’ve decomposed the term-document matrix C into a product of three matrices.  The term matrix U – consists of one (row) vector for each term  The document matrix V T – consists of one (column) vector for each document  The singular value matrix Σ – diagonal matrix with singular values, reflecting importance of each dimension 13

Introduction to Information Retrieval Outline ❶ Latent semantic indexing ❷ Dimensionality reduction ❸ LSI in information retrieval 14

Introduction to Information Retrieval Low-rank approximations 15  Given an MxN matrix C and a positive integer k, we wish to find an MxN matrix C k of rank at most k, so as to minimize the Frobenius norm of the matrix difference X=C-C k, define to be  If r is the rank of C, clearly C r =C and the Frobenius norm of the discrepancy is zero. When k is far smaller than r, we refer to C k as a low-rank approximation.

Introduction to Information Retrieval 16 How we use the SVD in LSI  Key property: Each singular value tells us how important its dimension is.  By setting less important dimensions to zero, we keep the important information, but get rid of the “details”.  These details may  be noise – in that case, reduced LSI is a better representation because it is less noisy  make things dissimilar that should be similar – again reduced LSI is a better representation because it represents similarity better. 16

Introduction to Information Retrieval 17 Reducing the dimensionality to 2 Actually, we only zero out singular values in Σ. This has the effect of setting the corresponding dimensions in U and V T to zero when computing the product C = UΣV T. 17

Introduction to Information Retrieval 18 Reducing the dimensionality to 2 18

Introduction to Information Retrieval 19 Recall unreduced decomposition C=UΣV T 19

Introduction to Information Retrieval 20 Why the reduced matrix is “better” 20 Similarity of d2 and d3 in the original space: 0. Similarity of d2 and d3 in the reduced space: 0.52 * * * * * ≈ 0.52

Introduction to Information Retrieval 21 Why the reduced matrix is “better” 21 “boat” and “ship” are semantically similar. The “reduced” similarity measure reflects this.

Introduction to Information Retrieval Outline ❶ Latent semantic indexing ❷ Dimensionality reduction ❸ LSI in information retrieval 22

Introduction to Information Retrieval 23 Why we use LSI in information retrieval  LSI takes documents that are semantically similar (= talk about the same topics),... ... but are not similar in the vector space (because they use different words)... ... and re-represents them in a reduced vector space... ... in which they have higher similarity.  Thus, LSI addresses the problems of synonymy and semantic relatedness.  Standard vector space: Synonyms contribute nothing to document similarity.  Desired effect of LSI: Synonyms contribute strongly to document similarity. 23

Introduction to Information Retrieval 24 How LSI addresses synonymy and semantic relatedness  The dimensionality reduction forces us to omit a lot of “detail”.  We have to map different words (= different dimensions of the full space) to the same dimension in the reduced space.  Thus, it will map synonyms to the same dimension.  But it will avoid doing that for unrelated words. 24

Introduction to Information Retrieval 25 Implementation  Compute SVD of term-document matrix  Reduce the space and compute reduced document representations  Map the query into the reduced space  This follows from:  Compute similarity of q 2 with all reduced documents in V 2 T.  Output ranked list of documents as usual 25

Introduction to Information Retrieval 26 Example  Query=ship ocean  [ ] T  q 2 =[ ] T cos(q,d 1 )=0.47 cos(q,d 2 )=0.39 cos(q,d 3 )=

Introduction to Information Retrieval 27 The drawbacks of LSI  No good way of expressing negations  No way of enforcing Boolean conditions.