How is Truncated SVD used in Latent Semantic Analysis for document representation?

Quick Overview

Explain how Latent Semantic Analysis uses a truncated SVD of a TF-IDF document-term matrix to represent documents as dense concept vectors. Tests whether you know what each factor means, how new queries are projected, and where LSA falls short.

How is Truncated SVD used in Latent Semantic Analysis for document representation?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How is Truncated SVD used in Latent Semantic Analysis for document representation? ```hint Write the factorization Put documents as rows of a TF-IDF matrix, factor it with SVD, and keep only the top $k$ singular values. Then ask which product of factors gives a document's coordinates. ``` ```hint New text Think about how a query that was not part of the fitted matrix gets coordinates in the same space as the documents. ``` ### What a Strong Answer Covers - The setup: a TF-IDF document-term matrix and its rank-$k$ truncated SVD. - What each factor means and which product gives the document vectors. - Why the low-rank space brings related terms and documents together, with synonymy as an example. - How new documents and queries are projected and compared. - The limitations of LSA and how $k$ is chosen. ### Follow-up Questions - Why does scikit-learn use `TruncatedSVD` for LSA instead of `PCA`? - How would you choose $k$ for a document retrieval system? - Why does LSA handle polysemy badly, and which kinds of models handle it better? - How does LSA compare with NMF or LDA when you need interpretable topics?

Overview: Explain how Latent Semantic Analysis uses a truncated SVD of a TF-IDF document-term matrix to represent documents as dense concept vectors. Tests whether you know what each factor means, how new queries are projected, and where LSA falls short.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How is Truncated SVD used in Latent Semantic Analysis for document representation?

What a Strong Answer Covers Guidance

  • The setup: a TF-IDF document-term matrix and its rank- kk truncated SVD.
  • What each factor means and which product gives the document vectors.
  • Why the low-rank space brings related terms and documents together, with synonymy as an example.
  • How new documents and queries are projected and compared.
  • The limitations of LSA and how kk is chosen.

Follow-up Questions Guidance

  • Why does scikit-learn use TruncatedSVD for LSA instead of PCA ?
  • How would you choose kk for a document retrieval system?
  • Why does LSA handle polysemy badly, and which kinds of models handle it better?
  • How does LSA compare with NMF or LDA when you need interpretable topics?