# Probabilistic Latent Semantic Analysis

Probabilistic latent semantic analysis fits a principled mixture model to co-occurrence data

Thomas Hofmann · arXiv · 2013-1-23

- **Problem** Latent semantic analysis factors word counts with an SVD, but its objective implies Gaussian noise. Its approximation is not normalized, so it defines no probability distribution over documents and words.
- **Method** PLSA fits a latent class aspect model to co-occurrence counts with EM, instead of an SVD. Tempered EM adds an entropic term that limits overfitting.
- **Results** The combined PLSI model reaches 66.3 average precision on MED, against 44.3 for the cos+tf baseline.

## What LSA leaves unsettled

A word's meaning depends on the context it appears in, so a learning system has to bridge what a text literally says and what it was meant to say. Two problems follow: one word can carry several senses, and different words can share a meaning or a topic. Latent semantic analysis addresses this by mapping sparse document-term count vectors into a low-dimensional latent space, where related terms and documents can end up close to each other.

Its theoretical foundation, however, is weak, and the number of dimensions is usually picked by heuristics.

The core objection concerns the objective that LSA optimizes. Minimizing the L2 or Frobenius error implies an additive Gaussian noise assumption on possibly transformed counts, which is a poor match for count data. Because the LSA approximation is not normalized and may contain negative entries, it does not define a probability distribution over documents and words, and its latent directions have no direct probabilistic reading.

## LSA as a truncated SVD

LSA starts from the co-occurrence table \\(N\\), whose entry \\(n(d,w)\\) counts how often term \\(w\\) occurs in document \\(d\\). Rows are document vectors and columns are term vectors, and the bag-of-words view assumes these counts keep most of the information needed for retrieval.

LSA factors \\(N\\) with an SVD and keeps only the \\(K\\) largest singular values, which gives the rank-\\(K\\) approximation that is optimal in the L2 matrix norm. Document coordinates in the latent space are the rows of \\(U\\Sigma\\), and the document-to-document inner products of the approximation equal \\(U\\Sigma^2U^\\top\\). The low-dimensional vectors are generally dense even though the original vectors are sparse.

This makes it possible to compare two documents that share no terms, which is the mechanism through which synonyms are expected to align.

## The aspect model as a mixture over latent classes

PLSA is built on the aspect model, a statistical model for co-occurrence data that sums over an unobserved class variable \\(z\\) in the joint distribution of documents and words. Equation (2) gives the symmetric form \\\[P(d,w)=\\sum\_{z\\in Z}P(z)\\,P(d\\mid z)\\,P(w\\mid z),\\\] in which documents and words enter in the same way, so the model is perfectly symmetric in the two entities.

The asymmetric form gives \\(P(w\\mid d)=\\sum\_z P(w\\mid z)P(z\\mid d)\\), so each document's word distribution is a convex combination of the class-conditional distributions \\(P(w\\mid z)\\), with mixing weights \\(P(z\\mid d)\\). Each class-conditional distribution is a point on the probability simplex over the vocabulary. The points for \\(K\\) classes span a sub-simplex of dimension at most \\(K-1\\), against \\(M-1\\) for the full simplex, which is the reduction in dimension that gives the latent semantic space its meaning.

## Fitting the aspect model with EM

Maximum likelihood fitting uses the Expectation Maximization algorithm, which alternates posterior computation over latent variables with parameter updates. The E-step gives the posterior of each class for each document-word pair as \\\[P(z\\mid d,w)=\\frac{P(z)\\,P(d\\mid z)\\,P(w\\mid z)}{\\sum\_{z'\\in Z}P(z')\\,P(d\\mid z')\\,P(w\\mid z')}.\\\]

The M-step re-estimates \\(P(w\\mid z)\\) proportional to \\(\\sum\_d n(d,w)P(z\\mid d,w)\\), \\(P(d\\mid z)\\) proportional to \\(\\sum\_w n(d,w)P(z\\mid d,w)\\), and \\(P(z)\\) proportional to \\(\\sum\_{d}\\sum\_{w} n(d,w)P(z\\mid d,w)\\), each up to normalization. Each update is therefore a count-weighted sum in which the posterior of a class acts as the share of each co-occurrence that the class explains.

EM is an iterative method that is only guaranteed to find a local maximum of the likelihood function, a property that matters when its cost is compared with that of an SVD.

## Why the objective, not the factor shape, separates PLSA from LSA

Collecting the parameters into matrices \\(U=(P(d\_i\\mid z\_k))\\), \\(V=(P(w\_j\\mid z\_k))\\) and a diagonal matrix of the \\(P(z\_k)\\) gives the joint model as a matrix product that resembles an SVD. Under this view, outer products between rows of \\(U\\) and \\(V\\) reflect conditional independence, the \\(K\\) factors correspond to mixture components, and the mixing proportions take the place of the singular values.

The decisive difference lies in the objective. LSA minimizes a squared error, while PLSA maximizes the likelihood under multinomial sampling, which is equivalent to minimizing the cross entropy, that is the Kullback-Leibler divergence, between the empirical distribution and the model.

As a result, the PLSA mixture is a properly normalized probability distribution and its factors carry a probabilistic meaning. The probabilistic setting also allows established model selection and complexity control, whereas LSA dimensions are chosen by ad hoc heuristics.

## Senses of polysemous words in the CLUSTER collection

The authors trained a 128-class aspect model on 1568 abstracts about clustering, the CLUSTER collection, and selected for four words, 'segment', 'matrix', 'line' and 'power', the two factors most likely to generate each word. Each factor is summarized by its 10 most probable words under its class-conditional distribution.

Within each pair, the same word takes a different meaning: 'segment' is an image region in one factor and a phonetic segment in the other, 'matrix' is a rectangular table of numbers in one and a material in the other, and 'line' is a line in an image in one and a line in a spectrum in the other.

For the word 'segment' in document 2, the posterior of the second class is 0.867, and the abstract's vocabulary about signal sources and speaker identification fits that class. The check is qualitative, based on the top words and posteriors of two documents, so it shows that the factors separate the senses on these examples rather than across the collection.

## Aspects versus clusters

The distributional clustering model, an unsupervised relative of the naive Bayes classifier, gives each document a single latent class and writes its word probabilities as \\(P(w\\mid d)=\\sum\_z P\\{c(d)=z\\}\\,P(w\\mid z)\\). The posterior of the cluster assignment concentrates on one class as a document grows longer, so the clustering model tends to treat each document as belonging to one cluster.

The aspect model instead lets each document have its own convex combination of aspects, while the clustering model gives all documents in a cluster one shared word distribution. Because of this, a factor can capture part of a document's vocabulary and assign zero probability to words that other factors explain.

## Tempered EM against overfitting

Fitting on training data does not guarantee good performance on unseen data. The proposed Tempered Expectation Maximization generalizes maximum likelihood for mixture models with an entropic regularization term, and it is closely related to deterministic annealing.

The entropic term is what regularizes the fit, and \\(\\beta\\) sets its strength.

The schedule keeps running TEM iterations at a given \\(\\beta\\) while performance on held-out data improves. It then decreases \\(\\beta\\) and stops once a lower \\(\\beta\\) brings no further improvement.

## Perplexity against LSA on two datasets

Because negative entries prevent a simple renormalization of an LSA approximation, the authors derived LSA probabilities following an existing approach from the literature. Perplexity is evaluated on the MED collection of 1033 documents, where the task is to predict word occurrences from parts of a document, and on noun-adjective pairs from the tagged LOB corpus, where nouns are predicted conditioned on an associated adjective.

Across the latent space dimensions tested, PLSA outperforms the statistical model derived from standard LSA on both datasets, by a wide margin according to the authors. Both methods can be trained with increasing numbers of dimensions and keep improving, and the number of dimensions may exceed the rank of the co-occurrence matrix, so the choice becomes a matter of computational resources.

## Scoring queries with latent representations

The baseline matches a document and a query by the cosine of their raw term-frequency vectors, \\\[s(d,q)=\\frac{\\sum\_w n(d,w)\\,n(q,w)}{\\sqrt{\\sum\_w n(d,w)^2}\\,\\sqrt{\\sum\_w n(q,w)^2}}.\\\] LSI computes the similarity in the low-dimensional latent space after folding in queries and documents, and the latent score is linearly combined with the original cosine score using weight \\(\\lambda\\) for the original score and \\(1-\\lambda\\) for the latent one.

PLSI uses the same scheme with the latent representations \\(P(z\\mid d)\\) and \\(P(z\\mid q)\\) in the factor space of the PLSA model.

PLSI\* averages the cosine scores of several PLSI models with a uniform weight, rather than using Bayesian model combination, which the authors say would be the principled choice. The LSA representations for different dimensionalities form a nested sequence, which the statistical models do not. Each PLSA model with \\(K\\) = 32, 48, 64, 80 and 128 was trained by TEM with 10% of the data held out, PLSI reports the best of these models, and LSI searches 32 to 512 dimensions at step size 8.

The weight \\(\\lambda\\) was coarsely tuned by hand to 1/2 for MED and CRAN and to 2/3 for CACM and CISI.

## Average precision on four collections

On MED, the cos+tf baseline reaches 44.3 average precision, LSI reaches 51.7 with a relative improvement of +16.7, PLSI reaches 63.9 with +44.2, and the combined model reaches 66.3 with +49.7. The table labels the combined model PLSI', while the text calls it PLSI\*.

On CRAN, the baseline is 29.9, LSI is 28.7 (-4.0), PLSI is 35.1 (+17.4) and the combined model is 37.5 (+25.4). On CACM, the baseline is 17.9, LSI is 16.0 (-11.6), PLSI is 22.9 (+27.9) and the combined model is 26.8 (+49.7). On CISI, the baseline is 12.7, LSI is 12.8 (+0.8), PLSI is 18.8 (+48.0) and the combined model is 20.1 (+58.3). The table caption marks the LSI cases in which no gain over the baseline was achieved, and for those it reports the 256-dimension result with \\(\\lambda = 2/3\\).

The authors report that the relative precision gain over the baseline is typically around 100% in the intermediate recall range, and that PLSI works well even where LSI fails completely.

## Perplexity and retrieval on MED

On MED, perplexity and average precision were monitored together as functions of the inverse temperature \\(\\beta\\). The authors describe the two resulting curves as showing a striking correlation. The text gives no correlation coefficient, and the check covers the MED collection only.

## Limitations

EM is only guaranteed to reach a local maximum of the likelihood, while the SVD used by LSA can be computed exactly. In the authors' experiments the computing time of EM was not clearly worse than an SVD of the co-occurrence matrix, and on-line update schemes that could speed EM up have not been explored.

The perplexity comparison uses two datasets, MED and LOB, and the retrieval comparison uses four test collections. The LSI combination weights were set by hand, so the LSI results depend on that coarse tuning. The correlation between perplexity and average precision is shown only on MED.

## Paper info

- **Authors**: Thomas Hofmann
- **Venue**: arXiv · Preprint
- **First published**: 2013-1-23
- **Added**: 2026-11-12
- **Updated**: 2013-1-23
- **Version**: v1
- **arXiv**: 1301.6705
- **Category**: cs.LG · cs.IR · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1301.6705v1) · [PDF ↗](https://arxiv.org/pdf/1301.6705v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Thomas Hofmann (2013). Probabilistic Latent Semantic Analysis. arXiv:1301.6705v1. https://arxiv.org/abs/1301.6705v1

**BibTeX**

```
@misc{hofmann2013probabilistic,
  title = {{Probabilistic Latent Semantic Analysis}},
  author = {Thomas Hofmann},
  year = {2013},
  eprint = {1301.6705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1301.6705v1}
}
```

## Other paper commentary

- [Personalized Top-N Sequential Recommendation via Convolutional Sequence Embedding](https://refivu.com/en/papers/7c1f4e3a-96df-4fe9-a8b5-6c36b294a565-personalized-top-n-sequential-recommendation-via.md)
- [Deep Learning based Recommender System: A Survey and New Perspectives](https://refivu.com/en/papers/a0b4c642-cc6f-408f-8e70-b8aaebc9c4da-deep-learning-based-recommender-system-a-survey-and.md)
- [Beyond Part Models: Person Retrieval with Refined Part Pooling (and a Strong Convolutional Baseline)](https://refivu.com/en/papers/0d7a16fd-c14e-49e6-938f-2cdeb51ea5a4-beyond-part-models-person-retrieval-with-refined-part.md)
- [A Contextual-Bandit Approach to Personalized News Article Recommendation](https://refivu.com/en/papers/8024ed96-4fed-4baf-950b-7340e29feb0a-a-contextual-bandit-approach-to-personalized-news-article.md)
- [Empirical Analysis of Predictive Algorithms for Collaborative Filtering](https://refivu.com/en/papers/bc628fe8-827d-4576-8126-05c09f333880-empirical-analysis-of-predictive-algorithms-for.md)
- [BPR: Bayesian Personalized Ranking from Implicit Feedback](https://refivu.com/en/papers/e3d177de-9c9b-45b7-bcb5-9ef28bee1dbb-bpr-bayesian-personalized-ranking-from-implicit-feedback.md)
- [Deep Learning for Sentiment Analysis : A Survey](https://refivu.com/en/papers/423bc94d-8ef5-42e2-a68f-87cb54c7636d-deep-learning-for-sentiment-analysis-a-survey.md)
- [Understanding Convolution for Semantic Segmentation](https://refivu.com/en/papers/c32b12c2-d4e5-4e10-b7c6-b643713776fc-understanding-convolution-for-semantic-segmentation.md)
- [InternVL3: Exploring Advanced Training and Test-Time Recipes for Open-Source Multimodal Models](https://refivu.com/en/papers/93e60b18-9322-49b4-85e3-af682c647d05-internvl3-exploring-advanced-training-and-test-time-recipes.md)
- [Applications of Deep Reinforcement Learning in Communications and Networking: A Survey](https://refivu.com/en/papers/0b4d9b08-577a-4c81-8c2b-a8a7244761e2-applications-of-deep-reinforcement-learning-in.md)
- [MOT16: A Benchmark for Multi-Object Tracking](https://refivu.com/en/papers/b140c8bc-846b-4f50-973f-76ab17fb435b-mot16-a-benchmark-for-multi-object-tracking.md)
- [Mip-NeRF: A Multiscale Representation for Anti-Aliasing Neural Radiance Fields](https://refivu.com/en/papers/25ba5d73-b97f-4cb0-b129-b565ef426ff8-mip-nerf-a-multiscale-representation-for-anti-aliasing.md)

## Terms in this paper

- [perplexity](https://refivu.com/en/terms/2b204e513801-perplexity)
- [Average Precision](https://refivu.com/en/terms/1764eaa249a6-average-precision)
- [Frobenius norm](https://refivu.com/en/terms/8b20cfffe432-frobenius-norm)
- [SVD](https://refivu.com/en/terms/cc705f427730-svd)
- [Latent Semantic Analysis](https://refivu.com/en/terms/ec75a360b680-latent-semantic-analysis)
- [cross entropy](https://refivu.com/en/terms/f914876d14b2-cross-entropy)
- [Bag-of-words](https://refivu.com/en/terms/ab87ee9e2ea7-bag-of-words)
- [EM](https://refivu.com/en/terms/874857dd724e-em)
- [overfitting](https://refivu.com/en/terms/82a66a720533-overfitting)
- [deterministic annealing](https://refivu.com/en/terms/05fc3ac9951f-deterministic-annealing)
- [free energy](https://refivu.com/en/terms/4c14d92da0d7-free-energy)
- [MED](https://refivu.com/en/terms/2c9ed8380788-med)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/2bb41f8f-b6cc-410c-9347-fd84aed3b2b4-probabilistic-latent-semantic-analysis)
