Elamur Research

Distributional Similarity Models: Clustering vs. Nearest Neighbors

Paper · 1999 · Lillian Lee

Summary

A verb and a noun can both be familiar from a collection of texts, yet never appear together as verb and direct object. Their individual frequencies offer a starting point for estimating how likely they are to occur together. The authors ask how much an estimate improves when it also draws on the verbs that occur with other nouns. The idea is that nouns with similar patterns of use can supply evidence for one another. The paper compares two ways to organize that evidence, using verb–object pairs from Associated Press newswire. This is an application of distributional semantics.

Distributional clustering gives nouns access to a shared collection of verb distributions. Each distribution summarizes a group of nouns, and each noun has a set of probabilities describing its membership in those groups. A prediction can draw on all the groups according to those probabilities or use just the group with the strongest membership. Nearest-neighbors averaging keeps the individual noun distributions and selects a separate group of similar nouns for each target noun. It predicts a verb by averaging that verb’s probability across the selected neighbors. The comparison asks whether the extra detail retained by the neighbor approach yields better predictions than the more compact cluster representation.

The tests ask which of two verbs is more likely to take a given noun as its direct object. Both candidate pairings are absent from training. When one pairing occurred in held-out newswire and the other was constructed from a frequent verb that never occurred with that noun, both approaches reduced the average error of Katz’s backoff baseline by as much as 40%. On the more demanding AP90unseen test, where both pairings had actually occurred in held-out newswire, the best average improvements fell in the 6-8% range, and the results for the two approaches were close relative to their variation across splits. Nearest neighbors had a clearer advantage on AP89, a test whose split deliberately held out entire pair types. Both approaches still reduced average error by at least 18% relative to backoff in that setting.

The results qualify the concern that grouping words necessarily discards too much information for accurate prediction. The cluster estimates generally remained competitive, even though they could share a relatively small set of verb distributions. The experiments also show one practical reason that the very closest neighbors can disappoint. If none of them occurred with either candidate verb, the two estimates are both zero and the method has no basis for a choice. Pooling evidence in cluster distributions made the cluster estimates less susceptible to this problem in the reported tests.

Deep dive: Distributional Similarity Models: Clustering vs. Nearest Neighbors

Distributional clustering and nearest neighbors estimate unseen verb–object pairs with similar accuracy, though their storage needs differ. · about 35 minutes to read

The problem and its context

Why an unseen pair is hard to score

The observations in this paper are grammatical pairs. For a main verb, the authors select both the verb itself and the noun that serves as the head of its direct-object phrase. Their prediction runs from the noun to the verb. Given a direct-object noun, how probable is a particular main verb with it? The direction matters because the resulting distribution describes the verbs associated with a noun in one grammatical role. It uses occurrences of that relation in English text.

For a pair that occurs repeatedly, the share of a noun’s observed pairings accounted for by a given verb offers direct evidence. When a pair is missing, the same calculation supplies a zero. That zero describes the contents of the training sample. The estimation problem is to decide how much weight to give that absence when predicting fresh text. The finer the distinction being made, the greater the opportunity for gaps. An observed noun and an observed verb each contribute their own counts, while their specific combination can remain undocumented.

The introduction illustrates the idea with a simpler kind of cooccurrence. A collection may contain after ACL-95 and have no occurrence of after ACL-99. If ACL-95 and ACL-99 have similar patterns of cooccurrence, the observed phrase can support the plausibility of the unobserved phrase. The reasoning uses a comparison across the broader distributions of the two expressions. An analogous comparison in the experiments uses the verbs that accompany each noun in the direct-object relation.

This distinction between the frequency of an item and the pattern of its pairings is central to the paper. Two common verbs may differ in how much evidence there is for using them with a given noun. Conversely, the same verb can be supported for one noun by what happens with that noun’s distributional neighbors, then receive little support for another noun whose neighbors have different uses. The desired estimate is therefore sensitive to the target noun even in cases where the exact pairing gives the estimator no direct training evidence.

What earlier estimators did with missing counts

The authors describe earlier work on data sparsity as setting aside part of the available probability for events absent from training. The estimator then allocates that mass using information that is easier to obtain, such as the frequencies of the individual events. A marginal frequency describes how often one member of a pair occurs across the possible choices of its partner. The backoff estimator used as the paper’s baseline comes from Katz’s work. For an unobserved combination, backoff draws on a less specific estimate than the count of that particular pair.

Similarity supplies another source of evidence. Suppose the noun in a pair has many observed verb associations, but none involving the verb being scored. Those associations still tell the estimator which other nouns have comparable distributions. Some of those nouns may occur with the missing verb. The estimator can use their observations to support a probability for the original pair. This is a way to use the structure of the observed pair counts even when the count for the query itself is zero.

Earlier distributional clustering made that evidence available through group summaries. A noun could belong to several groups with different probabilities, and each group had a centroid, a representative distribution assembled from the nouns associated with it. A noun’s probabilities for unseen events could then be estimated from group information. The current paper revises that clustering procedure and compares two ways to turn the resulting groups into predictions. Its starting point is Distributional Clustering of English Words.

Earlier nearest-neighbors work used individual distributions as the sources of evidence. For a particular noun, the estimator would find other nouns with similar verb distributions and pool their probabilities. It could give closer neighbors greater influence than more distant ones. The broader question of how to measure the resemblance between such distributions had already been studied, and the authors select a particular measure for this comparison. The discussion points to Measures of Distributional Similarity.

Why sharing evidence might come at a cost

A group summary can put useful evidence within reach of many nouns. It can also blur distinctions between them. If a verb is characteristic of a particular member of a group, its individual importance may be less apparent in the group’s overall distribution. A nearest-neighbor estimate can keep that member’s distribution intact and use it specifically when the target noun warrants it. Each target noun can have a different set of neighbors, even when several targets would receive similar memberships in a clustering approach.

The authors situate this concern in a discussion that included work on word space, contextual similarity, and word sense disambiguation. As they describe it, earlier researchers questioned how much information about individual cooccurrences would survive conversion to class-level statistics. They also describe early work with word classes in language prediction as inconclusive. One of the works they cite in this discussion is the State of the Art in Word Sense Disambiguation.

The proposed tradeoff involves both what is retained and how it is reused. Clustering can store shared centroids and each noun’s memberships. Nearest neighbors uses the distributions of particular nouns together with a target-specific choice of which nouns to consult. The cluster representation is especially compact when its inventory of groups is small relative to the noun vocabulary. The question facing the authors is whether the distinctions preserved by the larger representation matter enough to produce better decisions about unseen pairings.

The method, step by step

From grammatical events to distributions

The authors extract verb–object pairs with CASS, a partial parser. Each extracted observation contributes to a count for its verb and object noun. A noun’s verb distribution is obtained by considering those counts relative to the noun’s total across its observed verb pairings. A verb that accounts for a large share of those observations receives a high probability for that noun. An absent verb receives a zero in the empirical distribution. All the counts used to make predictions for a split come from its training portion.

The two approaches start from this same evidence and can both be understood as ways of building a new distribution for the noun. With clustering, the components of that distribution are centroids shared across nouns. With nearest neighbors, the components are the original distributions belonging to selected nouns. Either way, the probability assigned to a candidate verb comes from the probability of that verb in the components and the procedure’s choice of how to combine them.

The diagram follows the shared procedure through the point at which the two approaches come back together. At the scoring stage, the output being compared is always a probability for a verb given the same target noun.

From parsed verb–object pairs to unseen-pair predictions

The steps in order.

From parsed verb–object pairs to unseen-pair predictionsStep 1: Extract verb and object-head pairs1. Extract verb and object-head pairsStep 2: Reserve held-out pairs for evaluation2. Reserve held-out pairs for evaluationStep 3: Estimate each noun’s verb distribution3. Estimate each noun’s verb distributionStep 4: Fit shared centroids or rank neighboring nouns4. Fit shared centroids or rank neighboring nounsStep 5: Estimate both candidate verb probabilities5. Estimate both candidate verb probabilitiesStep 6: Compare the estimates and record the outcome6. Compare the estimates and record the outcome

What the clustering tries to preserve

The clustering procedure introduces a hidden variable for a noun’s group. Here, hidden means that the training observations supply nouns and verbs, while the groups themselves are inferred. A noun can be assigned to different groups with different probabilities. The estimated association between a noun and a group can therefore express a strong preference or divide the noun’s membership among several centroids.

The aim is to preserve information about verbs while controlling how much information about the nouns is retained in their group assignments. A group that pooled all nouns would provide a single shared view of verb use. At the other extreme, groups capable of identifying each noun individually could carry much more of the original detail. The authors formulate the balance using mutual information, which measures how informative one variable is about another.

I(X,Y) = ∑ₓ ∑ᵧ p(x,y) log[p(x,y)/(p(x)p(y))]

Here I(X,Y) is the mutual information between the discrete variables X and Y. Lower-case x and y are their possible values, and the two sums run over those values. The term p(x,y) is the joint probability of the values occurring together. The quantities p(x) and p(y) are their marginal probabilities, and log is the logarithm. The ratio inside the logarithm compares the joint probability with the product that would be expected under independence. The joint probability outside the logarithm supplies the weight of that event in the sum.

For this application, N is the noun variable, V the verb variable, and C the cluster variable. The authors seek to maximize the mutual information between V and C with the mutual information between C and N held fixed. The former describes how informative the cluster is about the verb. The latter describes how much the cluster reveals about the noun, which is the quantity used to control compression. The point of preserving noun information is its value for predicting verbs.

The authors also require that the verb and the cluster be conditionally independent given the noun. Once the noun is specified, the cluster assignment supplies no additional information about the verb. A centroid can then be built by taking a weighted sum of the noun distributions. For this calculation, the weight for a noun comes from the probability of encountering that noun among the members of the cluster.

p(v | c) = ∑ₙ p(v | n) p(n | c)

The value v is a verb, c is a cluster, and n is a noun. The sum runs over the possible nouns. The expression p(v | c) is the centroid’s probability for v, while p(v | n) is the observed conditional probability for that verb with noun n. The weight p(n | c) is the conditional probability of noun n given cluster c. The vertical bar in these expressions means given. Considering all the verbs in turn gives the full centroid, which the paper denotes by p(V | c).

There are two different directions of conditioning in the clustering procedure. The centroid calculation asks which nouns contribute to a given cluster. Predicting a verb for a particular noun asks which clusters that noun belongs to. These distributions are related through Bayes’ rule and the marginals. In particular, the overall frequency of a noun matters to its contribution to a centroid. The current procedure uses the noun frequencies observed in the data. The earlier clustering experiments had used a uniform noun marginal to give relatively rare but potentially informative nouns more influence.

Measuring distance from a centroid

To assign memberships, the procedure needs a measure of how far a noun’s distribution is from the verb distribution represented by a centroid. The clustering uses Kullback–Leibler divergence, abbreviated KL divergence. In this application it compares how probable the noun’s observed verbs are under its own distribution and under the distribution fitted for the cluster.

D(q ∥ r) = ∑ᵥ q(v) log[q(v)/r(v)]

Here D(q ∥ r) is the KL divergence from distribution q to distribution r. Both describe probabilities over the same verbs. A verb is denoted by v, and the sum runs over that shared domain. The terms q(v) and r(v) are the probabilities of the verb in the respective distributions, and log denotes the logarithm. The symbol ∥ separates the two distributions in their given order. In the cluster-membership calculation, q is the noun’s verb distribution and r is the centroid’s verb distribution.

The direction of the comparison has a concrete consequence. The sum weights each contribution by the probability in the noun’s own distribution. The centroid’s treatment of the verbs that are prominent for that noun therefore matters most to the assignment. Comparing a noun to a centroid asks how well the centroid represents that particular noun’s evidence. It is a different operation from scoring two nouns against one another symmetrically, which the neighbor procedure does.

Cluster membership trades off how close the centroid is to the noun against how much probability the cluster has overall. The clustering equations express this tradeoff by penalizing the divergence in an exponential and multiplying the result by the cluster’s marginal probability.

p(c | n) = p(c) exp[−β D(p(V | n) ∥ p(V | c))] / Zₙ

Here p(c | n) is the probability that noun n belongs to cluster c, and p(c) is the marginal probability of the cluster. The expressions p(V | n) and p(V | c) denote full distributions over the verb variable V, for the noun and centroid respectively. The function D is KL divergence, ∥ marks its ordered inputs, and exp is the exponential function. The minus sign makes a larger divergence reduce the exponential weight when β is positive. The parameter β is the Lagrange multiplier associated with the constraint on the information that C retains about N. The quantity Zₙ normalizes the weights for noun n.

Zₙ = ∑꜀ p(c) exp[−β D(p(V | n) ∥ p(V | c))]

In this expression Zₙ is the total of the unnormalized membership weights for noun n. The sum runs over c, the possible clusters. The term p(c) is the overall probability of c, and V denotes the verb variable whose conditional distributions are compared by D, the KL divergence. The two inputs separated by ∥ are the noun distribution p(V | n) and the centroid p(V | c). The expression exp[−β D(…)] applies the exponential function to the divergence scaled by the negative of β. Dividing the individual weights by this total makes the memberships for the noun sum to a full probability distribution.

The factor for the cluster’s overall probability is a change from the earlier clustering formulation. The authors say it tends to make memberships sharper. Thus two features of the current procedure can alter assignments even with the same underlying set of nouns and verbs. The membership weight includes the cluster prior, and the calculation draws its noun marginal from observed frequencies. The authors report that these changes have little effect on the resulting clusters overall, and favor the revised formulation for its theoretical basis.

Fitting centroids and allowing them to split

For a fixed value of β, the centroid and membership equations form an iterative calculation. Given the centroids and the overall probability of each cluster, the membership equation gives new assignments for the nouns. Bayes’ rule and marginalization provide the probabilities needed to form the next centroids and update the cluster marginals. The updated centroids can then be used for another membership calculation. The paper describes this fixed-parameter reestimation as provably convergent.

The choice of β governs how readily nouns can be represented by distinct centroids. At β = 0, the distance term has no effect on the assignments. The natural solution then has a single distinct cluster. For very large values of β, the natural number of clusters reaches the number of nouns. Between those extremes, different values can support different numbers of distinct centroids. This is why the authors use β to trace a succession of solutions while reporting the complexity of a solution by its cluster count.

The fitting procedure uses annealing. It starts at the low setting β₀ = 1 in the experiments and follows a schedule of gradually increasing values. At each new setting, each existing cluster is replaced provisionally with a pair of slightly perturbed copies of its centroid. The reestimation runs again to convergence. The two copies count as separate clusters if their resulting centroids differ sufficiently. Thus the small random disturbances let the procedure explore whether a group that was adequately represented by one distribution at the previous setting now separates into distinct distributions.

The count k records the number of clusters in a fitted solution. It is an outcome of the fit at a given point on the schedule. The schedule allows the fit to move from coarse groupings towards finer ones while testing whether the new solutions sustain an actual separation. A split only contributes to a more detailed representation when the perturbed copies settle at distinguishable centroids. This gives the experiments a sequence of sizes at which to evaluate how much shared representation is enough.

Turning fitted clusters into a prediction

The paper examines how two uses of the fitted clustering compare. The first uses the entire membership distribution of the target noun. Each centroid supplies a probability for the requested verb, and that probability contributes according to the noun’s membership in the cluster. A centroid that is a plausible representative for the noun contributes strongly. Centroids with weak membership contribute less.

p̂(v | n) = ∑꜀ p(v | c) p(c | n)

Here p̂(v | n) is the estimated probability of verb v given noun n, with the hat distinguishing an estimate used for prediction. The sum runs over clusters c. The term p(v | c) supplies the verb probability in the centroid, and p(c | n) supplies the noun’s membership weight for that cluster. The vertical bar indicates conditioning. This prediction can draw on evidence from multiple groups if the noun has substantial membership in each.

The second rule keeps only the centroid of the cluster to which the noun has the strongest membership. The choice is based on the fitted membership probabilities, so it reflects both the distance to the centroid and the overall cluster probabilities in the membership equation.

p̂(v | n) = p(v | c*), where c* = argmax꜀ p(c | n)

Here p̂(v | n) again denotes the estimated probability of verb v for noun n. The symbol c* is a cluster c whose membership probability p(c | n) is largest. The operator argmax returns the cluster attaining that maximum. The quantity p(v | c*) is the probability of the requested verb in the selected centroid. Though prediction uses a single centroid, the centroids and membership probabilities still come from probabilistic clustering. The two prediction rules therefore differ in how they use the fitted result, with the underlying clustering procedure held in common.

A centroid represents evidence pooled across nouns. As a result, a verb absent from the target noun’s training pairings can receive probability through other nouns that contributed to a centroid. With the weighted rule, the contribution can come through any cluster to which the noun has membership. With the single-centroid rule, it has to come through the selected centroid. The experiment establishes whether access to the additional centroids is helpful for the decisions being tested.

Ranking individual nouns by their verb distributions

Nearest-neighbors averaging begins by comparing the target noun with other nouns. The measure used is Jensen–Shannon divergence. It begins with the midpoint of the two verb distributions and compares each distribution to that midpoint using KL divergence. Averaging the resulting divergences gives a symmetric score that can be used to rank possible neighbors.

JS(p,q) = ½[D(p ∥ (p+q)/2) + D(q ∥ (p+q)/2)]

Here JS(p,q) denotes Jensen–Shannon divergence between distributions p and q on the same set of verbs. The expression (p+q)/2 is their pointwise arithmetic mean, so its probability for each verb is the mean of the two input probabilities for that verb. The function D is KL divergence, and ∥ separates the distributions in each KL comparison. The factor ½ gives equal weight to the two KL terms, while the denominator 2 constructs the midpoint. Exchanging the two input distributions exchanges the two contributions and leaves the score unchanged.

Using a midpoint also accommodates the zeros present in observed verb distributions. Wherever either input gives a verb positive probability, the midpoint gives it positive probability as well. Each input can therefore be compared with the midpoint without encountering a zero midpoint probability on a verb that has positive weight in that input. This property matters when the evidence consists of sparse pair counts and the pattern of observed verbs differs between nouns.

J(n,n′) = JS(p(V | n), p(V | n′))

In this notation J(n,n′) is the divergence between the distributions of the target noun n and a candidate neighbor n′, with the prime distinguishing the candidate. JS is Jensen–Shannon divergence, V is the verb variable, and the two conditional distributions describe the verbs observed with the respective nouns. The authors use S(n,k) for the set containing the k nouns that have the smallest values of this divergence from n. The same set supplies evidence for the different verbs that are to be scored for that noun.

Earlier work had weighted the neighbors so that increasing divergence would lower a neighbor’s influence. The authors describe that previous estimate to explain the simplification made for the comparison.

p̂(v | n) = (1/αₙ) ∑ₙ′∈S(n,k) p(v | n′) exp[−β J(n,n′)]

Here p̂(v | n) is the resulting estimate for verb v and target noun n. The sum ranges over candidates n′ belonging to S(n,k), the set of k closest nouns. The term p(v | n′) is the verb probability for the neighbor. The function exp is the exponential, J(n,n′) is the Jensen–Shannon divergence between the noun distributions, and β controls how quickly a neighbor’s weight falls with divergence in this earlier estimate. The minus sign makes the weight decrease as divergence rises for positive β. The quantity αₙ is the normalization for noun n, and its reciprocal 1/αₙ scales the weights to a probability average. The meaning of β here concerns neighbor weights. The annealing parameter in clustering belongs to a separate procedure.

The nearest-neighbors estimate evaluated in the paper gives each selected noun the same weight. Distance determines which nouns are included. Once the selection has been made, the estimate uses an arithmetic average.

p̂(v | n) = (1/k) ∑ₙ′∈S(n,k) p(v | n′)

Here p̂(v | n) is the estimated probability of v given target noun n. The expression p(v | n′) supplies the training probability for the same verb with a selected noun n′. The sum runs over S(n,k), the set of the k nearest nouns, and 1/k gives equal weight to each member. The restricted rule leaves the number of neighbors k as the setting to vary. The authors report that in their earlier work, reducing weights with increasing divergence had behaved much like imposing a limit on how many neighbors could participate.

How the two complexity settings relate

Both estimates are linear combinations of conditional verb probabilities, and both use a divergence derived from KL. That common structure makes their differences easier to interpret. Clustering decides how to build a shared inventory of distributions and then uses the inventory to make predictions. Nearest-neighbors averaging decides which original distributions are close enough to participate in a particular noun’s estimate. The centroid is assembled before prediction, while the neighbor procedure averages the chosen noun distributions for the target of the prediction.

Increasing k has different effects in the two cases. With more clusters available, a noun can be represented by a more specific centroid or by memberships concentrated on a small part of the inventory. With more neighbors available, the estimate directly incorporates a broader set of nouns, including ones farther from the target. Thus a higher k allows finer distinctions in clustering and more extensive pooling in neighbor averaging. Equal values of k have different meanings in the two procedures.

The training requirements also differ. Clustering involves repeated reestimation and searches for cluster splits. The neighbor method avoids those fitting iterations and uses direct comparisons of the observed distributions. In return, the cluster representation can reuse a relatively small set of centroids across many nouns. The neighbor representation retains the distributions of individual nouns and associates each target with its own selected set. The experimental question is whether that extra specificity translates into a useful change in predictive error.

Experiments and results

How a held-out pair becomes a decision

The evaluation asks a deliberately narrow question. Given a noun and two verbs, can the estimator choose the verb that is more likely to occur with that noun? Both verb–noun pairs must be absent from training, and the construction of the test instance determines the preferred verb. This means a direct training count for either candidate yields no preference. The estimator must use evidence from elsewhere in the training data to distinguish them.

Each instance is a triple consisting of the noun, the preferred verb, and the alternative verb. The decision compares the two estimated probabilities under the condition that the noun is fixed. A higher estimate for the preferred verb counts as correct. A higher estimate for the alternative counts as incorrect. Equal estimates produce a tie. Giving a tie partial credit accounts for the fact that the procedure has expressed no preference between the two options.

error rate = (incorrect choices + ties/2) / T

In this formula incorrect choices counts triples on which the less likely verb received the larger estimate. The term ties counts triples on which the estimates agreed, and the divisor 2 makes each tie count for half an error. The quantity T is the number of distinct test triples, with repeated instances excluded. Correct decisions add nothing to the numerator. The resulting error rate measures performance on the set of forced choices rather than the quality of all probabilities in a noun’s verb distribution.

The paper uses ten-fold cross-validation. The training portion of a split supplies the probabilities, noun memberships, centroids, and neighbor comparisons needed for prediction. The held-out portion supplies the pairs used to create the test decisions. The authors compare against Katz’s backoff and evaluate a sequence of k settings for the similarity approaches on the held-out triples. The training portion supplies the basic quantities for each setting. The reported peaks summarize the sweep over the settings evaluated. Results are averaged across the ten splits, and the plots show one standard deviation with their error bars.

For each test fold, the authors remove pairs already present in training and duplicate entries from the list of candidates. They can still use held-out occurrence counts to determine which partner is preferred. They also remove pairs containing an unseen noun or an unseen verb. This last step focuses the test on familiar words in combinations that have not occurred in training and gives the backoff and similarity approaches the basic word evidence they require. The construction of the comparison verb then depends on the test setting.

AP89 with whole pair types held out

For AP89, the authors report retrieving 1,577,582 verb–object pairs from 1989 Associated Press newswire and discarding singletons, which are pair types occurring only once. They split by pair type. All occurrences of a given pair go into the same fold, so a held-out pair has no occurrence in that split’s training portion. The paper’s data table records 100 for the percentage of test pairs unseen. It reports 1033870 training pairs and 42795 test triples on average across the splits.

The competing verb in an AP89 triple is drawn from an actual pairing with the same noun in the held-out fold. The more frequent pairing must occur at least twice as frequently in that fold as the other pairing. This requirement gives the authors a basis for treating one pair as preferable while allowing both to be plausible. The test asks whether the training evidence can reproduce a preference between two combinations that both turned up in held-out newswire.

The type split gives the experiment a large body of unseen pairings. It also makes the absence of those pairings a consequence of how the partition was designed. A pair that occurs repeatedly can have its entire record placed on one side of the split. The paper treats this as an unusual form of sparsity, useful for making many test instances and less representative of the way unseen combinations arise in ordinary new data. The average error of Katz’s backoff on AP89 is 28.3%.

AP90unseen with individual occurrences held out

The authors extract 1,483,728 pairs from 1990 Associated Press newswire for the AP90 experiments. They split these by token, meaning that separate occurrences of the same pair type can go into different folds. This is closer to the kind of training and test division the authors want the experiment to represent. An immediate consequence is that many pairs in the held-out fold also have training occurrences. The paper’s table gives 14 as the average percentage of unseen test pairs under the token split.

Those unseen pairs must still pass the word-familiarity filter and provide a suitable comparison for the same noun. The authors retain singletons in AP90 because the available pool of candidates is already small. For AP90unseen they use the same rule as in AP89 for choosing the comparison verb. Both pairings occur in the held-out portion, and the preferred one occurs at least twice as frequently as the other there. The test therefore retains the distinction between more and less frequent observed pairings while changing how the unseen pairs were obtained.

The paper reports 1123686 training pairs and 4019 test triples on average for AP90unseen. These counts describe different parts of the procedure. A large training collection can still yield few eligible test triples, because each triple requires two unseen combinations with a shared noun and sufficient evidence to order them. The mean backoff error on these decisions is 39.6%.

AP90fake with a constructed alternative

AP90fake uses the same underlying folds as AP90unseen. It changes how the competing pair is formed so that more instances can be constructed. The preferred verb must form a pair with the noun that occurs at least twice in the test fold. The competing verb is chosen from the 50 most frequent verbs, subject to the condition that it never occurs with the noun in either the training or the held-out data. The word fake refers to the construction of that second pairing.

Both alternatives still have zero counts in training as specific noun–verb pairs. What changes is their status in the held-out data. The preferred pair has repeated supporting observations there, and the other has been constructed to have none. Because the alternative is a frequent verb, the design tends to favor it under a backoff procedure that uses less specific frequency evidence. The resulting baseline error is therefore part of what the construction is intended to reveal.

The data table reports 14479 test triples on average for AP90fake and a mean backoff error of 79.9%. AP90unseen and AP90fake share the underlying token-split data, including the average training-pair count. Their test triple counts differ because one setup requires a real held-out alternative and the other can construct an alternative from the frequent verbs. Their error rates consequently describe different choices even though the underlying folds are shared.

Katz backoff across AP newswire test settings, average decision error

Backoff made the most errors when the competing verb was constructed from frequent verbs.

Katz backoff across AP newswire test settings, average decision errorAP89, whole pair types held out (this paper): 28.3AP89, whole pair types held out (thispaper)28.3AP90unseen, observed alternatives: 39.6AP90unseen, observed alternatives39.6AP90fake, constructed alternatives: 79.9AP90fake, constructed alternatives79.9
The numbers
System or settingerror %
AP89, whole pair types held out (this paper)28.3
AP90unseen, observed alternatives39.6
AP90fake, constructed alternatives79.9

The chart compares the same baseline under the three settings. The lowest result belongs to AP89 among these baseline entries. The high AP90fake error reflects the deliberate choice of alternatives that are strong by individual frequency and unsupported for the noun in the observed corpus. For a procedure that can draw on the noun’s patterns of use, the evidence distinguishing the observed and constructed alternatives can be strong. The baseline and the similarity approaches can therefore find different things difficult about the same instances.

Improvements over backoff

The authors present results on AP90fake first. Here the task is to distinguish the pairing that really occurred from one deliberately constructed to lack support in the corpus. Both clustering and nearest-neighbors averaging reduce average error relative to backoff by as much as 40%. This is a relative error reduction against the AP90fake baseline. It describes how much of the baseline error the similarity approaches remove on that particular decision task.

The shapes of the curves on AP90fake agree with the authors’ expectations. In clustering, an intermediate amount of detail is useful. A very coarse grouping combines evidence broadly, while a very fine grouping can preserve much of the sparsity of the original noun distributions. For nearest neighbors, adding more distant nouns can admit less informative evidence. The paper uses the sequence of settings to examine those tendencies, alongside the maximum improvement against backoff.

On AP89, both approaches again clearly outperform backoff, with their better results appearing at relatively small k. The paper gives at least 18% as the average relative error reduction achieved by each of the two approaches in this setting. Nearest-neighbors averaging has the advantage over distributional clustering on AP89, and using the centroid with the strongest membership yields lower error than averaging the centroids. The authors report statistically significant differences with a paired t-test. Pairing the observations in such a comparison lets the methods be judged on matching splits.

AP89 is the setting in which the advantage for nearest neighbors is clearest. It is also the setting where the split assigns all occurrences of a pair type to the same fold. The authors consider whether this might point to a benefit for nearest neighbors under severe sparsity. The evidence for that interpretation comes from a particular way of producing unseen pairs, so the AP90unseen experiment matters in judging how far the advantage carries.

AP90unseen also yields improvements over backoff. The detailed results describe the largest average relative error reductions as falling in the 6-8% range. The paper’s overview characterizes the gains on the harder task as up to 7%. In the detailed comparison, weighted clustering, the single-centroid rule, and nearest-neighbors averaging are all close relative to the standard deviations shown across splits. The token-split test with two observed alternatives therefore provides much weaker grounds for preferring one similarity approach on error alone.

The relative improvements are easiest to understand together with the construction of their test sets. In AP90fake, evidence of compatibility can rescue the estimate from a baseline strongly attracted to a frequent alternative. In AP90unseen, the procedure must rank two pairings that did occur, even though both were absent from training. An approach can be good at finding support for plausible combinations and still face a finer distinction when both combinations are plausible. These experiments measure both kinds of decision and give the larger improvements the conditions they belong to.

What the ablations show

How broadly to pool the evidence

Varying k lets the authors examine how the amount of pooling affects prediction. They expected clustering to improve initially as extra groups allowed useful distinctions among nouns, then deteriorate as the groups became too specific to generalize. For nearest neighbors they expected the best evidence to come from very close nouns. Adding more distant ones was expected to make decisions worse as less informative distributions entered the estimate. These expectations concern how the curves should change across settings as well as where the best points should fall.

AP90fake follows the broad patterns that motivated those expectations. AP89 gives a different picture. There, the curves for the clustering rules and nearest-neighbors averaging have a similar shape, with the best improvements at small settings and weaker performance at the very narrow end. For clustering, increasing the number of centroids from a very small inventory can help retain distinctions. For nearest neighbors, increasing k broadens the consulted set. The similar behavior of the curves at that end therefore calls for an explanation specific to what each method is doing.

A close noun is selected because its overall distribution resembles the target’s. That resemblance can include the absence of the verbs that matter for the decision. Consider a held-out triple for which neither candidate verb occurred with the target noun during training. A very close neighbor might also lack both verbs. If every selected neighbor has that gap, averaging retains the zeros for both options. The method can have selected highly similar nouns and still have no positive evidence for the specific choice it was asked to make.

Allowing a slightly broader set of neighbors can add a distribution in which a candidate verb actually appears. Such a neighbor can help at the level of coverage even if its overall pattern of verb use is farther away. Once the average has coverage, further expansion can also admit distributions that are less relevant to choosing between the candidates. This explains why the effect of broadening the set can vary across the curve. There are two issues at work, whether the estimate has evidence for a candidate at all and whether that evidence favors the right one.

What happens when both estimates are zero

The authors use AP89 to check this explanation directly. They plot the average error of nearest-neighbors averaging with the zero ties included and then examine the curve when cases tied at zero are ignored. The comparison uses average error itself, whereas the main results plot shows relative error reduction against backoff. The diagnostic asks whether the unexpected shape persists among decisions for which the neighbor estimates supply some positive support.

With the zero ties excluded, the curve has the expected shape for nearest neighbors. Consulting very close nouns works better on the remaining cases, and incorporating more distant nouns produces the kind of deterioration the authors had expected. The cases omitted by this diagnostic reveal a failure to find evidence for either option, which the paper calls a recall error. The distinction matters because the usual evaluation counts ties as partial errors. A procedure that frequently comes up empty will lose ground in that evaluation even if its rankings are strong when it can furnish a score.

Ignoring those cases changes the set of decisions being scored. It helps explain why the full curve behaves as it does. The original task still includes the omitted cases, since delivering a useful estimate there is part of the challenge. The paper attributes the nonmonotonic nearest-neighbor curve for AP90unseen to the same recall problem.

Clustering pools observed noun distributions into its centroids before the decision. A verb can consequently have positive centroid probability through nouns other than those that would rank as the closest individual neighbors. The authors identify this smoothing as the reason clustering avoids the particular recall problem highlighted by the neighbor curves. The diagnostic shows how sharing evidence can help with a sparse test case even when a target-specific selection would seem to provide the most relevant nouns.

Whether several memberships help at prediction time

The comparison between the two cluster prediction rules isolates a different choice. Both rules use a probabilistically fitted clustering. One uses a weighted average of the centroids, while the other uses the centroid associated with the largest membership. At issue is whether carrying the other memberships through to the probability estimate improves the decision. This comparison leaves the procedure used to learn the cluster structure in place.

On AP89, the nearest-centroid estimates give lower error than the weighted estimates, and the paper reports significance in the paired comparison. On AP90unseen, the reductions from the two clustering rules are close relative to the displayed variation. In their conclusion, the authors observe that the weighted rule never seems to outperform using the nearest centroid. The results therefore provide little evidence that averaging across centroids improves this particular decision task once the clustering has been fitted.

Using one centroid at prediction time can preserve the most relevant cluster evidence without adding weaker alternatives. A weighted estimate has the potential to recover useful evidence from secondary memberships. The comparison shows the aggregate outcome of making that information available, while leaving open what happens for individual nouns with different membership patterns. It also leaves the role of probabilistic assignments during fitting intact. The paper raises the possibility that the advantage of probabilistic clustering here lies in the computation of the groups, and notes the computational difficulty of Boolean clustering.

What the test construction changes

The closest comparison of test construction comes from the shared AP90 folds. AP90unseen asks for a ranking between two held-out pairings that occurred. AP90fake asks for a ranking between a repeatedly observed held-out pairing and a deliberately unsupported pairing formed with a frequent verb. The construction changes several properties together. It changes the source of the alternative, imposes a repeated-occurrence requirement on the preferred pair in AP90fake, and restricts the alternative to a high-frequency set of verbs.

The larger gains over backoff on AP90fake show the value of similarity evidence under that combined construction. Great frequency for the alternative verb can coexist with a lack of evidence connecting it to the noun. The similarity approaches have a way to use that connection. In the genuine-alternative condition, both combinations have observed support, and the task requires finer discrimination. The measurements show how strongly an evaluation’s choice of competing verbs can influence the apparent size of an improvement.

The comparison with AP89 also helps locate the clearest separation between the two approaches. It occurs where the split deliberately makes every test pair type unseen. AP90unseen presents fewer unseen test pairs and a much smaller pool of eligible triples under the more natural token split. The pattern across these settings establishes that the advantage seen on AP89 is sensitive to the experimental conditions. It leaves the underlying cause of that advantage open, since the settings differ in corpus, singleton policy, and splitting procedure as well as in the amount of unseen data.

Limitations

Questions the authors leave open

The authors caution that AP89’s type split gives an unusual account of how unseen combinations arise. It puts every observation of a given pair type on the same side of a split. In contrast, the token split used for AP90 allows occurrences of recurring combinations to be distributed across training and test. The AP89 result supports a nearest-neighbor advantage under an especially sparse arrangement of pair evidence. The comparison under AP90unseen gives the authors less reason to expect a clear advantage in a setting built from held-out tokens.

The authors observe that clustering appears to have higher variance. They suggest two potential sources. One is the difficulty of estimating the divergence between a rare noun’s verb distribution and a centroid, which can affect its cluster membership. The other is sensitivity to noise in the search for cluster splits. A rare noun and a noisy split can both change the inputs to a prediction, through different parts of the procedure. The experiments leave their relative contributions unresolved.

The authors also leave open why the peak results are so similar in general. Both approaches pool probability estimates, but clustering does so using a shared representation and nearest neighbors do so using individual distributions selected for the target. Similar errors in the reported experiments show that both can provide effective evidence for the test choices. A principled explanation would also account for when those different sources of evidence should lead to similar rankings and when they should separate. The paper identifies further experiments in language prediction as one way to address that question.

The paper bounds its claim about clustering by the tasks it actually compares. Its evidence weakens the view that a compressed cluster representation is necessarily inferior for estimating unseen combinations. Other prediction tasks can place a different value on fine distinctions among words. In particular, the suitability of choosing a single centroid after a probabilistic fit is established only by the results of these comparisons. The authors’ suggestion about the computational value of probabilistic clustering remains a possible explanation for the observed performance.

What the experimental setup measures

The evaluation addresses unseen pairings of known words. Filtering out unseen nouns and verbs is part of how the authors give each approach a common basis for calculation. Accordingly, the evidence concerns gaps in the combination of familiar items. A case with a novel noun would raise a different problem, since the noun’s observed verb distribution is what supports both its cluster memberships and its neighbor comparisons. The test design keeps that problem outside the reported measurements.

The target is also one grammatical relation in one newswire source. The authors use parsing to obtain main verbs and their direct-object heads, then predict a verb from the noun in that role. Pattern similarity across those pairs has a precise operational meaning in the experiment. Evidence for that relation has a narrower scope than a claim about general semantic similarity between words or about all the contexts in which a noun can occur. The introductory phrase example explains the motivation, while the numerical findings come from the verb–object decisions.

The held-out counts define which choice is preferred. The requirement that one observed pair occur at least twice as frequently as the other gives a practical margin for constructing the genuine-alternative tests. Those tests still measure agreement with a corpus-based preference. AP90fake’s constructed alternative has no observed pairing with the noun anywhere in the corresponding data, and its suitability is judged using that absence. The resulting scores describe performance relative to these definitions of the preferred answer.

A comparison of two verb probabilities also has limited reach as evidence about their absolute values. An estimate can give the right ranking even if the numerical difference between the probabilities is too large or too small. Conversely, a tie produces partial error under the decision measure even when the estimates might serve another purpose. The experiment establishes how the methods order the specified alternatives. A broader assessment of the full probability distribution would require a measure sensitive to more than that ordering.

The results across k describe performance for settings tried on the held-out triples. The paper fits the basic probability quantities on training data and reports the resulting test curves. The peaks thus show what was achieved among the settings examined. The design supplies less evidence about the error of a single deployed setting selected in advance for fresh data. This matters to the comparison because the preferable values of k and the shapes of the curves depend on the test construction.

Finally, compactness is explained mainly through the form of the stored information. Clustering reuses centroids and can represent many nouns with a smaller inventory of verb distributions. Nearest-neighbors averaging works with individual distributions and target-specific selections, and avoids iterative cluster fitting. These are structural differences in storage and computation. The paper’s numeric results for the comparison concern decision errors and their variation across splits. The size of an implementation’s storage or computation advantage remains outside those measurements.

What came after

Later citations place this comparison alongside research on the disambiguation of nominalizations and on subjective language. In the original experiments, the linguistic evidence is a distribution of grammatical cooccurrences, and the choice is between verbs for an object noun. The later works address distinct subjects. The citation in each establishes a connection to the paper, while the specific estimator or result carried forward is unspecified.

The first later work concerns disambiguating nominalizations. Its subject is the interpretation of nominal expressions, which gives the citation a context different from the original prediction task. The original authors infer a preference from the verb distributions associated with object nouns and use held-out cooccurrences to judge that preference. The documented connection to the later work is its citation of that comparison in The Disambiguation of Nominalizations.

The other later work concerns learning subjective language. Its subject changes the linguistic property under study from the compatibility of a verb and an object noun to subjectivity. The cooccurrence paper’s relevant contribution is the comparison between collecting evidence through shared word groups and collecting it through the distributions of individual neighbors. The documented connection is a citation in Learning Subjective Language.

Cite

Cite as Lillian Lee. 1999. Distributional Similarity Models: Clustering vs. Nearest Neighbors. Proceedings of the 37th Annual Meeting of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.3115/1034678.1034694

@inproceedings{lillian1999distributional,
  title = {{Distributional Similarity Models: Clustering vs. Nearest Neighbors}},
  author = {Lillian Lee},
  booktitle = {Proceedings of the 37th Annual Meeting of the Association for Computational Linguistics},
  year = {1999},
  doi = {10.3115/1034678.1034694},
  url = {https://doi.org/10.3115/1034678.1034694}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/lee-1999-distributional-similarity-models-clustering-vs/