Strengths and Limits of the Vector Space Model

What the vector space model does well, the assumptions behind it, and where they fail. Term independence and vocabulary mismatch, the lack of a theory of relevance, Rocchio relevance feedback with two worked examples, and the model's descendants in latent semantic indexing, BM25, and dense retrieval.

The vector space model ranks quickly, by graded partial matches, with term weights that can be tested. But its orthogonal term axes treat every pair of terms as unrelated, so a query for car gives no credit for auto and the two senses of jaguar share one axis. It has no theory of why similarity predicts relevance, so its weights were set by experiment. Rocchio feedback, $\vec{q}_m = \alpha\,\vec{q}_0 + \beta\,\vec{\mu}_r - \gamma\,\vec{\mu}_{nr}$, moves the query toward documents judged relevant. On the running example it learns auto and widens the cosine gap between the weaker relevant document and the nonrelevant one from 0.091 to 0.323. It fails when relevant documents form distinct groups or none is retrieved. LSI, BM25, and dense and learned sparse retrieval each rework one of its ideas.

The auto-insurance page $d_3$ of this topic's running example is exactly what a searcher typing best car insurance wants. It says auto three times and insurance twice. Yet under every weighting scheme in this topic, its three occurrences of auto earn it nothing, because the query says car. The cause is an assumption built into the model, that every term is unrelated to every other, and this article examines that assumption and what can be done about it.

The vector space model, developed in the SMART system through the 1960s and 1970s, took ranked retrieval beyond the Boolean model and became its foundation. Its central picture is of documents and queries as directions in a space of terms, compared by the angle between them. That picture is still how many people first think about search, and it returns, in a new form, in the dense embeddings of neural retrieval. It also rests on assumptions that are known to be false, and its failures are as instructive as its successes.

Here is the route. First we list what the model does well. Then we examine its two weak points: independent terms, and no theory of relevance. Next we repair a query with Rocchio relevance feedback. Finally we trace where the model's ideas went, and solve three problems.

Strengths

  • Ranking and partial matching. Every document receives a graded score, so results can be ordered and documents that match part of a query are not lost. This removes the feast-or-famine problem of Boolean retrieval.
  • Term weighting. The model provides a framework in which the importance of terms, through TF-IDF and its variants, can be expressed and tested. Salton and Buckley (1988), summarizing some twenty years of experiments, report that single terms with appropriate weights retrieve better than more elaborate representations of text, and that this result depends heavily on the choice of weighting.
  • Simplicity and speed. Scores are sums of products over shared terms, computed directly from the inverted index as described in computing vector scores.
  • Symmetry. The same measure compares queries with documents and documents with each other, supporting similar-document search, clustering, and classification.
  • Empirical strength. The model was developed and tuned on test collections, up to the TREC collections of the 1990s, on which pivoted normalization raised SMART's average precision by more than a tenth over cosine normalization (Singhal, Buckley, and Mitra, 1996; the figures are in variants of TF-IDF).

The same geometry causes the first weakness.

The independence assumption

The model treats every term as a separate dimension, at right angles to every other. Geometrically, that says terms are unrelated: car is no closer to automobile than to banana. A query about cars has a cosine of zero with a document that only says automobile. This is the vocabulary mismatch problem in geometric form, and the model can do nothing about it without help.

The running example has the problem built in. Its page $d_3$ is about auto insurance and says auto three times, but the query best car insurance asks for car, and the auto axis is at right angles to the car axis. Of $d_3$'s weight, only the parts on best and insurance count toward its cosine with the query, 0.516 under TF-IDF weighting (see cosine similarity). Its three occurrences of auto lengthen its vector and so, if anything, lower its score.

Example (term vectors). Read the count matrix by rows instead of columns, so that each term is a vector over the four documents: car is $(1, 5, 0, 3)$ and auto is $(0, 1, 3, 0)$. The cosine of these two term vectors is 0.267, not the 0 that the model's axes assume, because the two words occur together in the car review: $(5 \times 1)/(\sqrt{35}\sqrt{10}) = 5/18.71$. The model's own data contradicts its assumption. In a large collection, words with related meanings co-occur far more than unrelated ones, and that co-occurrence is exactly what the orthogonal axes ignore.

The opposite problem, polysemy, is equally invisible. Jaguar the animal and Jaguar the car share a dimension, so a query about one matches documents about the other.

Raghavan and Wong (1986) made a related criticism: treating terms as orthogonal basis vectors is inconsistent with the evident fact that terms are correlated.

No theory of relevance

A more fundamental limitation concerns relevance itself. The vector space model says what to compute, a similarity, but not why similarity should predict relevance. As a result, the model itself gives no principled answer on three points:

  • how term frequency should be scaled;
  • what form IDF should take;
  • how long documents should be treated.

Each was settled by trying alternatives on test collections, as the history of weighting variants shows. Probabilistic retrieval starts instead from the probability that a document is relevant. It derives a weighting closely resembling TF-IDF, along with explanations for its components. The two approaches converge in practice. The difference is whether the formula comes from a model of relevance or from experiment.

A third route appeared later and needs no model of relevance. Fang, Tao, and Zhai (2004) wrote down formal conditions that any reasonable scoring function should satisfy and checked the standard formulas against them. The conditions give partial answers on all three points above: term frequency should increase the score with diminishing returns, rarer terms should count for more, and long documents should be penalized but not for being long alone. Constraints on term weighting states them and tests this topic's schemes. They constrain the form of a weighting without deriving one, so the model still has no theory of relevance, but its weights are no longer justified by experiment alone.

Neither weakness can be fixed by reweighting the same axes. But a query that points in the wrong direction can be moved.

Improving the query: Rocchio relevance feedback

A query may point the wrong way because the searcher used different words from the relevant documents. Relevance feedback asks the searcher to mark some retrieved documents as relevant or not, and uses those judgments to revise the query. In the vector space model, the classic method is due to J. J. Rocchio (1971), who developed it in the SMART system.

Here is the idea in one sentence: move the query toward the average of the documents the searcher liked, and a little away from the average of those they rejected. The revised query is

$$\vec{q}_m = \alpha\, \vec{q}_0 + \beta\, \frac{1}{\lvert D_r \rvert} \sum_{\vec{d} \in D_r} \vec{d} \;-\; \gamma\, \frac{1}{\lvert D_{nr} \rvert} \sum_{\vec{d} \in D_{nr}} \vec{d},$$

where $\vec{q}_0$ is the original query, $D_r$ and $D_{nr}$ are the documents judged relevant and nonrelevant, and $\alpha$, $\beta$, $\gamma$ set how much each part counts. The query moves toward the centroid, the average vector, of the relevant documents and away from the centroid of the nonrelevant ones. Typical values are $\alpha = 1$, $\beta = 0.75$, and $\gamma = 0.15$, weighting positive evidence more than negative. Negative components of the result are set to zero (Manning, Raghavan, and Schütze, 2008, §9.1.1).

The two centroids are not an arbitrary choice. Take document vectors of unit length and score by dot product. Among query vectors of unit length, the one with the largest mean score over the relevant documents minus mean score over the nonrelevant ones points along the difference of the two centroids. The proof is one line. With $\vec{\mu}_r$ and $\vec{\mu}_{nr}$ the centroids, the quantity to be maximized is $\vec{q} \cdot \vec{\mu}_r - \vec{q} \cdot \vec{\mu}_{nr} = \vec{q} \cdot (\vec{\mu}_r - \vec{\mu}_{nr})$. By the Cauchy–Schwarz inequality proved in cosine similarity, this is at most $\lvert \vec{\mu}_r - \vec{\mu}_{nr} \rvert$ for a unit vector $\vec{q}$, and it equals that bound when $\vec{q}$ is $\vec{\mu}_r - \vec{\mu}_{nr}$ divided by its length. That is the optimal query of the textbook's §9.1.1. It needs the full sets of relevant and nonrelevant documents, which are not known. Rocchio's formula uses the centroids of the few judged documents instead and keeps the original query as an anchor. Relevance feedback develops the method further.

A worked example

A searcher interested in the animal types jaguar. Over the terms (jaguar, car, cat, speed), the query is $\vec{q}_0 = (1, 0, 0, 0)$. The searcher marks two results relevant, $(1, 0, 1, 1)$ and $(1, 0, 1, 0)$, both about the cat, and one nonrelevant, $(1, 1, 0, 1)$, about the car. With $\alpha = 1$, $\beta = 0.75$, and $\gamma = 0.15$:

Term $\alpha \vec{q}_0$ $\beta \times$ relevant centroid $\gamma \times$ nonrelevant centroid $\vec{q}_m$
jaguar 1 0.75 × 1 = 0.75 0.15 × 1 = 0.15 1.60
car 0 0 0.15 × 1 = 0.15 −0.15 → 0
cat 0 0.75 × 1 = 0.75 0 0.75
speed 0 0.75 × 0.5 = 0.375 0.15 × 1 = 0.15 0.225

The revised query keeps jaguar, adds cat with a substantial weight, and gives speed a small one. It assigns car a negative weight that is clipped to zero. Documents about the animal that never use the word jaguar can now be retrieved through cat, which partly addresses vocabulary mismatch.

Rocchio on the running example

Return to the query best car insurance and the four documents of the running example. Suppose the searcher sees the ranked list and marks the headline $d_1$ and the auto-insurance page $d_3$ relevant and the car review $d_2$ nonrelevant. Every vector is weighted by TF-IDF and normalized to unit length (the normalized table in cosine similarity), with the same $\alpha$, $\beta$ and $\gamma$.

Example (what the update changes). The original query has no weight on auto. The revised query gains one, from $d_3$, and its weight on car falls slightly, because the nonrelevant review is mostly car:

Term $\alpha \vec{q}_0$ $\beta \times$ centroid of $d_1, d_3$ $\gamma \times d_2$ $\vec{q}_m$
auto 0 0.310 0.061 0.249
best 0.358 0.043 0.051 0.350
car 0.358 0.106 0.127 0.336
insurance 0.862 0.461 0 1.323
loan 0 0 0 0
rate 0 0.254 0 0.254

(Rounded to three decimals from unrounded values.) The revised query has learned auto from $d_3$, which is the vocabulary mismatch being repaired. It has strengthened insurance, which both relevant documents share. It has also picked up rate, which appears in the relevant headline only by accident of its wording. Feedback adds whatever the relevant documents contain, wanted or not.

The Rocchio update seen in the plane of two of the six terms, insurance and auto (the other four coordinates are not shown). The original query points along insurance. The relevant documents d1 and d3 (circles) have their centroid (plus sign) up and to the left, and the nonrelevant review d2 (cross) lies on the auto axis. Notice that the revised query is pulled toward the relevant centroid, gaining a component on auto that the original query lacked.
The Rocchio update seen in the plane of two of the six terms, insurance and auto (the other four coordinates are not shown). The original query points along insurance. The relevant documents d1 and d3 (circles) have their centroid (plus sign) up and to the left, and the nonrelevant review d2 (cross) lies on the auto axis. Notice that the revised query is pulled toward the relevant centroid, gaining a component on auto that the original query lacked.

The cosines of the documents with the original and revised queries:

Document With $\vec{q}_0$ With $\vec{q}_m$
$d_1$ 0.686 0.802
$d_2$ 0.425 0.348
$d_3$ 0.516 0.671
$d_4$ 0.086 0.117

Both relevant documents gain and the nonrelevant review loses, which is what the update was built to do. The car-loan page gains a little through rate. The ranking itself does not change here, since it was already right. But the gap between the relevant and nonrelevant documents has widened from 0.091 (0.516 against 0.425) to 0.323 (0.671 against 0.348). On a real collection that margin is what lets documents using auto, and never car, climb into the results.

The update can be compared with the optimal direction described above. For these three judged documents, the unit vector along the difference of the centroids has a gap of 1.035 between its mean dot product with $d_1$ and $d_3$ and its dot product with $d_2$. The original query, normalized, has a gap of 0.176, and the Rocchio query 0.388. The optimal vector reaches its gap with weights of $-0.272$ on best and $-0.683$ on car: it rewards a document for not using the car review's words, although both are query terms. Rocchio's small $\gamma$, its retained original query and the clipping of negative weights all hold the query back from that.

When feedback fails

Relevance feedback works well when the relevant documents resemble one another and differ from the nonrelevant ones. It fails, or goes unused, in three common situations (Manning, Raghavan, and Schütze, 2008, §9.1.3):

  • Several kinds of relevant document. Relevant documents fall into distinct groups.
  • Nothing relevant retrieved. The initial query gives feedback nothing to learn from.
  • Unwilling searchers. Searchers are often unwilling to make the judgments.

Pseudo-relevance feedback avoids the last problem by assuming the top few results are relevant. Relevance feedback and pseudo-relevance feedback have their own articles, which extend this treatment to probabilistic models.

Descendants

The model's ideas did not disappear when other models surpassed it. They were reworked.

Latent semantic indexing (Deerwester et al., 1990) attacks the independence assumption directly. It factors the term-document matrix into a small number of latent dimensions, so that terms which occur in similar documents, such as car and automobile, are mapped close together. Queries and documents are compared by cosine in that reduced space. It is the first of the methods in topic modeling.

BM25 keeps the vector space model's ingredients: a dampened term frequency, an IDF, and a tunable length normalization. But it motivates their form with a probabilistic model (see Okapi BM25). In many respects it is a pivoted, saturated TF-IDF with a theory behind it.

Dense retrieval returns to vectors and cosines, but with learned representations. A neural encoder maps queries and documents to vectors of several hundred to a few thousand dimensions in which related meanings lie close together. Retrieval is then nearest-neighbor search by dot product or cosine (see the history); similarity measures for embeddings proves that the two, with Euclidean distance, rank alike exactly when all stored vectors have one length. The geometry is the vector space model's. What changed is that the dimensions are learned from data rather than defined as words, which addresses the vocabulary mismatch that orthogonal term dimensions could not. What one learned vector per passage cannot hold is the subject of limits of single-vector retrieval.

Learned sparse retrieval stays with the term axes and the inverted index, and scores by a dot product over the vocabulary as the vector space model does. A trained model sets the weights, and may give weight to terms a text does not contain, which addresses vocabulary mismatch without leaving the vocabulary's dimensions.

Worked problems

The three problems are posed on this article's two examples, the jaguar query and the running example. Their numbers are computed by tools/experiments/vsm/running_example.py.

Problem 1 (what the jaguar update bought). For the jaguar example, compute the cosine of the original query and of the revised query with each of the three judged documents, and with a fourth document $(0, 0, 1, 1)$ that mentions cat and speed but never jaguar.

Solution. The revised query raises the two cat documents from 0.577 and 0.707 to 0.835 and 0.933, barely moves the car document, and gives the unseen cat document 0.387 where it had 0. The original query $(1, 0, 0, 0)$ has length 1, so its cosine with a document is the document's jaguar weight over the document's length: $1/\sqrt{3} = 0.577$, $1/\sqrt{2} = 0.707$, $1/\sqrt{3} = 0.577$ and 0. The revised query $(1.6, 0, 0.75, 0.225)$ has length $\sqrt{2.56 + 0.5625 + 0.0506} = \sqrt{3.1731} \approx 1.781$:

Document Dot product with $\vec{q}_m$ Length Cosine with $\vec{q}_m$ Cosine with $\vec{q}_0$
$(1, 0, 1, 1)$, cat 1.6 + 0.75 + 0.225 = 2.575 1.732 2.575 / (1.781 × 1.732) = 0.835 0.577
$(1, 0, 1, 0)$, cat 1.6 + 0.75 = 2.35 1.414 0.933 0.707
$(1, 1, 0, 1)$, car 1.6 + 0.225 = 1.825 1.732 0.592 0.577
$(0, 0, 1, 1)$, unseen 0.75 + 0.225 = 0.975 1.414 0.387 0

Before feedback the first cat document and the car document tied at 0.577. After it they are separated by 0.243. The fourth row is the repair of vocabulary mismatch in numbers: a document sharing no term with what the searcher typed now has a positive score.

Problem 2 (feedback without negative judgments). Repeat the Rocchio update on the running example with $\gamma = 0$, so that only the relevant documents $d_1$ and $d_3$ are used, and compare the cosines with those of the full update.

Solution. The revised query is the sum of the first two columns of the update table, and it separates the relevant documents from the car review less well than the full update does. Adding $\alpha \vec{q}_0$ and $\beta$ times the centroid of $d_1$ and $d_3$:

Term $\alpha \vec{q}_0$ $\beta \times$ centroid $\vec{q}_m$ with $\gamma = 0$
auto 0 0.310 0.310
best 0.358 0.043 0.401
car 0.358 0.106 0.464
insurance 0.862 0.461 1.323
loan 0 0 0
rate 0 0.254 0.254
Document With $\vec{q}_0$ With $\vec{q}_m$, $\gamma = 0$ With $\vec{q}_m$, $\gamma = 0.15$
$d_1$ 0.686 0.794 0.802
$d_2$ 0.425 0.433 0.348
$d_3$ 0.516 0.682 0.671
$d_4$ 0.086 0.128 0.117

With $\gamma = 0$ the car review's cosine rises slightly, from 0.425 to 0.433, because the relevant documents themselves contain best, car and auto. The negative term is what pushes it down to 0.348. The gap between the lower relevant document and the car review is $0.682 - 0.433 = 0.249$ without the negative judgment and $0.671 - 0.348 = 0.323$ with it. This is the setting of pseudo-relevance feedback, which has no negative judgments to use.

Problem 3 (which terms the data relates). Reading the count matrix by rows, compute the cosine between the term vectors of car and insurance, auto and insurance, car and loan, and loan and insurance.

Solution. The cosines are 0.076, 0.849, 0.507 and 0. The rows are car $(1, 5, 0, 3)$, auto $(0, 1, 3, 0)$, insurance $(1, 0, 2, 0)$ and loan $(0, 0, 0, 4)$, with lengths $\sqrt{35} \approx 5.916$, $\sqrt{10} \approx 3.162$, $\sqrt{5} \approx 2.236$ and 4.

  • car, insurance: the rows share only $d_1$, so the dot product is $1 \times 1 = 1$, and $1/(5.916 \times 2.236) = 0.076$.
  • auto, insurance: they share $d_3$, $3 \times 2 = 6$, and $6/(3.162 \times 2.236) = 0.849$.
  • car, loan: they share $d_4$, $3 \times 4 = 12$, and $12/(5.916 \times 4) = 0.507$.
  • loan, insurance: no document contains both, so the cosine is 0.

In this collection the term most like insurance is auto, at 0.849, and car is far from it. That is what the co-occurrence in four documents says, and it shows both what the row view offers and its limit. It finds related terms without any dictionary, which is the idea latent semantic indexing builds on. But it measures occurring together, not meaning the same: auto and insurance are not synonyms, and auto and car, which nearly are, score only 0.267, since the car review is the only document that uses both.

What we have learned

The model's axes assume that terms are unrelated, which leaves the auto-insurance page unrewarded for auto. It has no theory of why similarity predicts relevance, so its weights were settled by experiment, with formal constraints on their form added later. Rocchio feedback moved the running example's query toward the liked documents and taught it auto. LSI, BM25, dense retrieval and learned sparse retrieval each rework one of the model's ideas.

Throughout this topic, a scheme was judged by whether $d_1$ and $d_3$ came out on top of four documents. Real collections are too large for that. The next topic, retrieval evaluation, measures whether one ranking is better than another, beginning with Test Collections and the Cranfield Paradigm.

The running-example numbers are computed by tools/experiments/vsm/running_example.py in the site repository, and the figure by tools/figures/vector-space-model-limits.py.

References

  • Deerwester, S., Dumais, S. T., Furnas, G. W., Landauer, T. K., and Harshman, R. (1990). Indexing by latent semantic analysis. Journal of the American Society for Information Science, 41(6), 391–407. record · 4 pages
  • Fang, H., Tao, T., and Zhai, C. (2004). A formal study of information retrieval heuristics. In Proceedings of SIGIR 2004, 49–56. record · 3 pages
  • Manning, C. D., Raghavan, P., and Schütze, H. (2008). Introduction to Information Retrieval, chapter 6 and section 9.1. Cambridge University Press. record · 102 pages
  • Raghavan, V. V., and Wong, S. K. M. (1986). A critical analysis of vector space model for information retrieval. Journal of the American Society for Information Science, 37(5), 279–287. record
  • Rocchio, J. J. (1971). Relevance feedback in information retrieval. In G. Salton (Ed.), The SMART Retrieval System: Experiments in Automatic Document Processing, 313–323. Prentice-Hall. record · 3 pages
  • Salton, G., and Buckley, C. (1988). Term-weighting approaches in automatic text retrieval. Information Processing and Management, 24(5), 513–523. record · 3 pages
  • Singhal, A., Buckley, C., and Mitra, M. (1996). Pivoted document length normalization. In Proceedings of SIGIR 1996, 21–29. record · 3 pages

Reviewed: verified, 16 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 23 Nov 2026 · 9 revisions