Elamur Research

A Comparison of Extrinsic Clustering Evaluation Metrics Based on Formal Constraints

Paper · 2009 · Enrique Amigó, Julio Gonzalo, Javier Artiles et al.

Summary

Two systems can group the same documents differently and each look better under a different score. One may keep unrelated documents apart by putting almost everything in its own group. Another may keep related documents together by putting everything in a single group. Amigó and colleagues study how to evaluate these choices when a reference grouping is available. They turn judgments about specific changes to a clustering into tests that a scoring rule can pass or fail. The tests examine whether a score rewards separating mixed groups and bringing together fragments of the same category, whether it distinguishes a mistake in a clean group from one in an already mixed group, and how it balances fragmentation across groups of different sizes.

The authors check those judgments with volunteers comparing alternative groupings of Spanish news titles from the EFE 1994–1995 CLEF corpus. The share of judgments supporting the intended preference was 92% for cluster homogeneity, 90% for cluster completeness, 95% for the rag bag comparison, and 100% for the comparison of cluster size and quantity. They then examine measures based on matching sets, counting item pairs, measuring entropy, and counting edits. Among the measures they study, only the combination of BCubed precision and recall satisfies every test for ordinary clustering, where each item belongs to a single group. The two scores begin with an individual item. Precision asks how much of its predicted group belongs with it. Recall asks how much of its reference category the predicted group recovered.

The paper extends BCubed to cases in which an item can belong to several groups. The extension compares how many predicted groups each pair of items shares with how many reference categories it shares. On the Web People Search testbed, an intentionally poor output put every document in a common group and also gave each document a group of its own. The official combination of Purity and Inverse Purity put that output in second place, with an F score of 0.78. The corresponding combination of extended BCubed precision and recall placed it last, with an F score of 0.24. The extension can still give full credit to a wrong grouping with unrestricted overlaps. Its comparisons preserve the number of shared memberships for each pair, and different arrangements can agree on those counts. The paper therefore makes its strongest formal case for BCubed on ordinary partitions and shows a specific practical advantage when groups overlap.

Deep dive: A Comparison of Extrinsic Clustering Evaluation Metrics Based on Formal Constraints

See how four tests distinguish clustering metrics, why BCubed passes them, and what changes when an item can belong to several groups. · about 35 minutes to read

The problem and its context

What a reference grouping can tell us

Clustering starts with items that need to be organized into groups. In the text examples the authors consider, an item might be a news document or a webpage returned by a search engine. A good output puts related items together and keeps unrelated ones apart. The groups themselves have to be discovered. In the paper’s account of classification, by comparison, the categories are available in advance. The evaluation problem begins once an algorithm has produced a grouping and someone has to decide how useful or accurate that grouping is.

An intrinsic evaluation uses a notion of similarity or distance between items. It can ask whether members of each predicted group lie close to one another and whether members of different groups are far apart. An extrinsic evaluation takes a reference grouping, frequently prepared with human judgment, and asks how closely the predicted grouping agrees with it. The authors call the reference the gold standard. They use cluster for a group produced by the system and category for a group in the reference. The distinction lets them describe a matching problem without assuming that a system has given its groups the same names as the reference.

Even with a reference available, agreement can be measured in several plausible ways. Suppose a system collects most documents about a topic in a prominent cluster, while scattering the remaining documents across smaller groups. An evaluator interested in the largest collection for each topic might give the system considerable credit. An evaluator interested in what a reader finds when starting from any relevant document also needs to account for the scattered items. The reference tells both evaluators which documents belong together. Their scoring rules determine how much the omitted connections matter.

The two basic goals can also pull in opposite directions. Splitting a mixed cluster can make the resulting groups more coherent. Splitting a coherent cluster can deprive a reader of related items. Merging separate pieces of the same category can restore connections. Merging groups from different categories can create connections the reference gives no reason to expect. A score that reacts only to the benefits of splitting or only to the benefits of merging encourages an extreme output. A joint score can respond to both, but its response still depends on which evidence each component uses and how the components aggregate it.

The alternatives already in use

The paper describes several traditions in external evaluation. Purity asks how well the most common category accounts for the contents of each cluster. Inverse Purity starts with the categories and asks how much of each one a single cluster captures. Other measures take the relation between each pair of items as the unit of comparison. A pair contributes evidence about whether the grouping correctly joins or separates those items. Entropy measures ask how concentrated or dispersed categories are inside clusters, or how dispersed the members of a category are across clusters. An edit-based measure describes the difference in terms of operations needed to repair the output.

Earlier comparisons had already raised the question of bias. In the paper’s account, Strehl examined how measures favor groupings of different sizes and how their scores behave across the scale. Purity reaches its maximum for an output made up entirely of single-item groups. Cluster entropy likewise treats such groups as wholly unmixed. The comparison also reported a preference for coarser groupings when precision and recall were combined in a balanced F measure, and pointed to random groupings receiving non-zero values as a problem of scale. Mutual information fared well under the criteria Strehl used, which included symmetry between the predicted and reference groupings.

Meila studied variation of information, a measure based on entropy, and characterized it through mathematical properties. Some, such as symmetry and the triangle inequality, concern how the distance behaves across different clusterings. The triangle inequality requires a direct distance to be no greater than the distance accumulated along a route through an intermediate clustering. Such properties matter for the interpretation of the score as a mathematical distance. Amigó and colleagues focus more directly on whether an evaluation score changes in the intended direction after a particular repair or redistribution of errors.

The paper also discusses Dom’s approach, in which clustering quality varies with the numbers of useful and noisy groups and with parameters that describe how much of the item mass is assigned outside the intended groups. This gives an evaluator a way to study several forms of disorder in generated clusterings. Homogeneity and completeness had also been formulated in the earlier work on V-Measure. The distinction between those properties gives the paper a starting point. Homogeneity concerns the mixture of categories inside a predicted cluster. Completeness concerns how widely a reference category is dispersed among predicted clusters.

The authors want each proposed condition to have a concrete interpretation and a formal statement. A reader should be able to tell what changed, why the change might matter for a real task, and what a comparison of scores would establish. The authors also want the conditions to expose the consequences of using a particular kind of information. If a rule keeps only the best match for a category, improving a secondary match may be invisible. If a rule keeps only totals over pairs, two different patterns of damage may be indistinguishable. That makes the study a comparison of evaluation designs as much as a comparison of named metrics.

The method, step by step

Turn a judgment into a comparison

The authors start with a set of items and a fixed reference grouping. They construct alternative outputs that differ in a specified way. The less desirable output is called D₁ and the more desirable one D₂. An evaluation rule passes a condition if it always gives the intended ordering for outputs of that form. A single pair that ties or reverses the scores can therefore show a failure. Human judgments are used to test whether the stipulated preference makes sense in examples. The mathematical comparison then asks whether each rule respects that preference throughout the stated class of cases.

How the paper compares and extends clustering scores

The steps in order.

How the paper compares and extends clustering scoresStep 1: Fix the items and their reference categories1. Fix the items and their reference categoriesStep 2: Construct outputs that differ in a specified way2. Construct outputs that differ in a specified wayStep 3: Ask assessors to compare representative outputs3. Ask assessors to compare representative outputsStep 4: Test how each metric responds to the changes4. Test how each metric responds to the changesStep 5: Score excess and missing memberships with extended BCubed5. Score excess and missing memberships with extended BCubedStep 6: Compare the scores on overlapping search results6. Compare the scores on overlapping search results
Q(D₁) < Q(D₂)

Q is a quality score oriented so that larger values indicate better outputs. D₁ and D₂ are the groupings before and after the change being compared, and < requires a strict increase. The subscripts distinguish the alternatives and do not identify a different set of items. When an underlying quantity measures disorder or distance, an improvement corresponds to less disorder or a shorter distance. The relevant question is whether it gives the desired ordering once its direction is taken into account.

Specify the four changes

For cluster homogeneity, begin with a cluster made up of items from two reference categories. In the preferred output, replace it with separate clusters, each holding the items from one of those categories. The rest of the grouping stays fixed. The change removes incorrect connections while keeping every connection between items of the same category that had been present inside the original cluster. The test applies even if a category also has items elsewhere in the output. Thus a system can make a genuine improvement in homogeneity while leaving an existing completeness problem unresolved.

For cluster completeness, begin with two clusters whose items all belong to the same reference category. Merge them and leave the other clusters as they were. The merge connects previously separated members of that category without creating any cross-category connection. Other fragments may still exist. A score that compares each reference category only with its largest or strongest cluster can miss the improvement if that cluster lies elsewhere. The formal test asks the score to detect even a merge away from the best match.

The rag bag condition asks where to place an item that has no partner from its reference category. The two possible destinations start at equal sizes. One is clean, with every member drawn from the same category. In the other, every member has a category of its own. Putting the outsider in either destination creates the same number of cross-category connections. The authors prefer the second destination because it preserves a coherent group and puts the additional ambiguity into a cluster already made up of unrelated items. The condition is a comparison between two imperfect outputs. Giving the outsider a group of its own would avoid the error being compared.

The last condition compares separating one item from a large coherent group with breaking up a collection of coherent pairs. The starting output has a cluster of n + 1 items from category L and n additional clusters, each containing two members of its own distinct category. D₁ breaks every small cluster into singletons. D₂ preserves those small clusters and removes one item from the large one into its own singleton. The paper gives the preference to D₂. Each affected item in a broken pair loses access to its only category partner, while most members of the large group still have access to most of theirs. A metric counting all item pairs can give each type of fragmentation the same weight in this construction.

Construct examples assessors can read

The authors use the EFE 1994–1995 CLEF corpus, a collection of Spanish newswire with search topics and judgments of which documents are relevant to them. They choose six queries at random, along with ten relevant documents for each. The relevant documents for a query form a reference category for the judgment task. The assessors see document titles arranged into groups. The news is also associated with specific manual keyword descriptions, which the paper says make the grouping easier for the judges. The assessors compare two proposed arrangements of the same material.

For the homogeneity examples, the authors first create groups C₁ and C₃ from one topic and group C₂ from a different topic. C₃ is larger than C₁ and C₂ combined. They also generate C₄, a background group containing material from several topics, with a predominant topic distinct from the ones used in the focal change. The alternatives differ in whether C₁ and C₂ are shown together.

D₁ = {C₁ ∪ C₂, C₃, C₄}

D₁ is the output with the mixed group. Each C with a subscript refers to one of the groups just described. Braces enclose the groups making up the output, commas separate them, and ∪ takes the union of the items in C₁ and C₂.

D₂ = {C₁, C₂, C₃, C₄}

D₂ is the preferred output. C₁ and C₂ now appear separately, so each is internally coherent. C₃ still holds the other items drawn from the topic of C₁, and C₄ still supplies the same background material.

For completeness the authors use the same two shapes in reverse order. This time C₁, C₂, and C₃ all come from one topic, with C₃ again larger than C₁ and C₂ together. D₁ lists the groups separately and D₂ combines C₁ and C₂. The material in C₄ is generated as before. The large C₃ makes it possible for a rule centered on a best match to miss the intended improvement. At the same time, the comparison is legible as a local repair, even though another group from the same topic remains separate.

For the rag bag examples, C₁ contains four titles from different topics, C₂ contains four titles from one topic, and C₃ holds one title from a new topic. The paper compares merging C₃ into C₂ with merging it into C₁. For the size-versus-quantity examples, the authors use four two-title groups to represent the small coherent clusters and a five-title group for the larger cluster. They compare breaking all of the small groups with taking a single title out of the large group. Across conditions, the examples instantiate the stipulated changes using news material instead of relying on diagrams or category labels alone.

Calculate scores based on best matches

The set-matching family uses the overlap between a predicted cluster and a reference category to find a representative match. The authors group Purity, Inverse Purity, and a category-based F score in this family. A single cluster-category comparison can be normalized in either direction. Dividing by the size of the cluster asks what portion of that cluster belongs to the category. Dividing by the size of the category asks what portion of the category the cluster has recovered.

Precision(Cᵢ, Lⱼ) = |Cᵢ ∩ Lⱼ| / |Cᵢ|

Cᵢ is the predicted cluster indexed by i and Lⱼ is the reference category indexed by j. The intersection ∩ selects the items belonging to both sets, and the bars give the number of items in a set. The division makes this the fraction of Cᵢ supplied by Lⱼ. More generally, the first argument of this directional expression supplies the denominator.

Purity = Σᵢ (|Cᵢ| / N) maxⱼ Precision(Cᵢ, Lⱼ)

N is the total number of items in the partition. The sum Σᵢ runs over the predicted clusters. For each Cᵢ, maxⱼ takes the largest precision over reference categories Lⱼ. The weight |Cᵢ| / N gives that cluster its share of the item population in the final score. Only the winning category determines the contribution inside that cluster.

Inverse Purity = Σᵢ (|Lᵢ| / N) maxⱼ Precision(Lᵢ, Cⱼ)

Here i indexes the reference categories Lᵢ and j indexes the predicted clusters Cⱼ. N is again the number of items and the bars denote set size. Because Lᵢ is the first argument of Precision, the comparison measures the proportion of the category captured by Cⱼ. The maximum selects the cluster with greatest coverage, and Σᵢ averages those maxima with weights given by the relative sizes of the categories. If a single cluster contains every item, it supplies full coverage for each category.

For the category-based F measure, let P(Lᵢ, Cⱼ) denote cluster-normalized precision and R(Lᵢ, Cⱼ) denote category-normalized recall for the same match. These are the same overlap viewed from opposite sides. The F measure takes their harmonic mean, which requires both sides of a match to be strong for the resulting value to be high.

F(Lᵢ, Cⱼ) = 2 × R(Lᵢ, Cⱼ) × P(Lᵢ, Cⱼ) / (R(Lᵢ, Cⱼ) + P(Lᵢ, Cⱼ))

Lᵢ is reference category i, Cⱼ is predicted cluster j, and F(Lᵢ, Cⱼ) is the score for that match. R divides the overlap by the size of Lᵢ and P divides it by the size of Cⱼ. The factor 2 is the multiplier for the harmonic mean of these two quantities. Multiplication is marked by × and the parenthesized sum is the denominator.

F = Σᵢ (|Lᵢ| / N) maxⱼ F(Lᵢ, Cⱼ)

The sum runs over reference categories, and maxⱼ selects the predicted cluster with the largest F score for the current category Lᵢ. The bars denote category size and N is the total number of items. This calculation chooses a match within each category and then averages. The paper also reports an F combination of two already aggregated scores in its search experiment. There, the inputs are overall Purity and Inverse Purity, or overall BCubed precision and recall. Those inputs represent a different level of aggregation from the cluster-category matches in this formula.

Count pairs, measure dispersion, or count repairs

A second family summarizes the status of item pairs. SS counts pairs assigned to the same cluster and the same category. SD counts pairs in the same cluster but different categories. DS counts pairs in different clusters but the same category. DD counts pairs in different clusters and different categories. SS records correct joins and DD records correct separations. SD records incorrect joins and DS records missed joins. The measures differ in which of these counts are included and how they are normalized.

R = (SS + DD) / (SS + SD + DS + DD)

R here denotes the Rand statistic. Its numerator counts the pairs whose joined or separated status agrees with the reference. Its denominator includes all four kinds of pair. SS and DD are the agreeing counts, and SD and DS are the disagreeing counts defined above.

J = SS / (SS + SD + DS)

J is the Jaccard coefficient. Its numerator, SS, counts pairs joined in both groupings. In the denominator, SD counts pairs joined only by the system and DS counts pairs joined only by the reference. The denominator therefore includes the pairs joined by either grouping.

FM = √((SS / (SS + SD)) × (SS / (SS + DS)))

FM is the Fowlkes–Mallows score. The first fraction is the share of system joins supported by the reference, while the second is the share of reference joins recovered by the system. SS is their common count of valid joins, SD records excess joins, and DS records missing joins. The square root √ of their product, marked by ×, gives their geometric mean.

An entropy score uses the distribution of categories within clusters. A cluster concentrated in one category has low entropy. A cluster in which several categories contribute similar shares has higher entropy. Weighting by cluster size makes the overall quantity an average of the disorder associated with the groups in the predicted partition.

Entropy = −Σⱼ (nⱼ / n) Σᵢ P(i, j) × log₂ P(i, j)

Here j indexes clusters, i indexes categories, nⱼ is the size of cluster j, and n is the total item count. P(i, j) is the proportion of items in cluster j that belong to category i. The inner sum runs over category contributions and the outer sum runs over clusters. The symbol log₂ denotes a logarithm to base 2, × denotes multiplication, and the leading minus sign expresses entropy as a positive measure of disorder. Class entropy looks in the other direction, examining how a category’s items are spread among clusters. The paper also discusses mutual information, variation of information, and other members of the broader entropy family.

Edit-based evaluation instead imagines transforming a candidate output into the reference grouping. The example the paper discusses makes operations such as merging two clusters and moving an item between clusters available to the evaluator. A difficult repair indicates a larger discrepancy. Which errors the score distinguishes depends on what edits count, what they cost, and whether different mistakes can be repaired by the same operation. The authors describe the approach and the relevant examples without giving the complete definition of that particular edit metric.

Begin BCubed with an item

The authors build on BCubed from earlier work on cross-document coreference resolution, where mentions must be grouped by the entity they refer to. The original work is Entity-Based Cross-Document Coreferencing. The paper’s explanation begins with a reader who has already found one relevant item. If the reader explores that item’s cluster, precision describes how much of what they find is related. Recall describes how much of the related material they can find there. The reader could start from a member of a smaller category inside a mixed cluster, so that member’s experience need not resemble the experience of a member of the dominant category.

Correctness(e, e′) = 1 if [L(e) = L(e′)] ⇔ [C(e) = C(e′)], and 0 otherwise

The symbols e and e′ are items. L(e) is the reference category of e and C(e) is its predicted cluster, with the same meanings for e′. The equals signs inside brackets test category and cluster identity. The equivalence symbol ⇔ requires both equality statements to have the same truth value. The pair gets 1 if the two groupings agree about whether the items belong together and 0 if they disagree.

BCubed precision = Avgₑ [Avgₑ′ : C(e) = C(e′) Correctness(e, e′)]

Avgₑ is an average over reference items e taken in turn from the entire item set. The inner Avgₑ′ averages over items e′ satisfying the condition after the colon. For precision, the condition is membership in the same predicted cluster, denoted by equality of C(e) and C(e′). Correctness on this restricted set is the indicator that the two items also have the same category. The item itself is among the items examined.

BCubed recall = Avgₑ [Avgₑ′ : L(e) = L(e′) Correctness(e, e′)]

The outer average again runs over all items e, but the inner average now runs over e′ from the same reference category, denoted by equality of L(e) and L(e′). Correctness on this restricted set tests whether those category partners also share e’s predicted cluster. Thus each reference item has equal influence on the final score, after its own recovery rate has been computed. Precision and recall use the same pair relation with different neighborhoods and different denominators.

The authors use Van Rijsbergen’s F to combine overall precision and recall when a single score is needed. With both inputs given positive weight, an increase in one input while the other stays fixed raises the combined score for the comparisons at issue. Reporting the components separately preserves information about whether a change affected incorrect joins, missed joins, or both.

F(R, P) = 1 / (a × (1 / P) + (1 − a) × (1 / R))

P is an overall precision score and R is an overall recall score. The coefficient a is the weight on reciprocal precision, and 1 − a is the weight on reciprocal recall. The outer reciprocal converts the weighted average of reciprocals into an F score. The paper uses a = 0.5 for the balanced harmonic mean. There is no fitted weight in the reported comparisons.

Count shared memberships when groups overlap

Ordinary BCubed assumes a single predicted cluster and a single reference category for each item. In overlapping clustering, either assignment can be a set. A news item may belong in more than one section, and a webpage may refer to several people who have the same name. The paper also represents a hierarchy as a particular kind of overlap. An item in a group at a leaf of the tree also belongs to its ancestor groups. For both kinds of structure, the extension asks how many memberships are shared. An overlap in one group can be only part of the relationship the reference calls for.

For a pair, count the predicted clusters the items share, count the reference categories they share, and take the smaller count as the amount supported on both sides. If the predicted count exceeds the reference count, the excess hurts precision. If the reference count exceeds the predicted count, the shortfall hurts recall.

Multiplicity precision(e, e′) = min(|C(e) ∩ C(e′)|, |L(e) ∩ L(e′)|) / |C(e) ∩ C(e′)|

Here C(e) and C(e′) are sets of predicted memberships, and L(e) and L(e′) are sets of reference memberships. The intersection ∩ finds the shared memberships within each kind, and the bars count them. The function min takes the smaller of those two counts. The denominator is the predicted count, so this fraction is used when the items share at least one predicted cluster.

Multiplicity recall(e, e′) = min(|C(e) ∩ C(e′)|, |L(e) ∩ L(e′)|) / |L(e) ∩ L(e′)|

The items, sets, intersections, and minimum have the same meanings as for multiplicity precision. The denominator is now the reference count. The fraction is used when the items share at least one reference category. A predicted association can therefore have full precision while recovering only some of the reference overlap. Excess predicted overlap can leave recall full while lowering precision.

Extended BCubed precision = Avgₑ [Avgₑ′ : C(e) ∩ C(e′) ≠ ∅ Multiplicity precision(e, e′)]

Avgₑ averages the item scores over all e. Avgₑ′ averages over the neighbors e′ that satisfy the condition after the colon. The symbol ∅ denotes the empty set, and ≠ requires a nonempty intersection of the predicted memberships. The inner term is the multiplicity precision for that pair. Each qualifying neighbor supplies one term, with the degree of agreement captured by the value of that term.

Extended BCubed recall = Avgₑ [Avgₑ′ : L(e) ∩ L(e′) ≠ ∅ Multiplicity recall(e, e′)]

The averages have the same roles as for extended precision. This time a neighbor e′ qualifies when its reference memberships intersect those of e, and the inner score is multiplicity recall. The conditions on the inner averages ensure that the corresponding pairwise denominator is positive when the fraction is used. The paper includes self-comparisons, so the membership counts of an item can matter even if a group contains that item alone. When the assignments on both sides are ordinary partitions, the formulas reduce to original BCubed: each qualifying pair either has its shared membership supported or lacks that support.

Experiments and results

Do assessors prefer the stipulated changes?

Eight volunteers compare examples from the newswire corpus. The authors generate five instances of each constraint, randomize which alternative appears first, and reorder titles within the clusters. Volunteers can prefer either grouping or judge the alternatives roughly equivalent. The randomization makes the left or right position and the ordering of titles unsuitable as consistent cues. The option to express indifference lets the results distinguish a disagreement with the proposed change from a failure to see a meaningful difference.

Support for each clustering preference on EFE 1994–1995 CLEF news titles

Volunteers most consistently preferred preserving the small groups while separating an item from the larger group.

Support for each clustering preference on EFE 1994–1995 CLEF news titlesCluster homogeneity: 92Cluster homogeneity92Cluster completeness: 90Cluster completeness90Rag bag: 95Rag bag95Cluster size versus quantity (this paper): 100Cluster size versus quantity (thispaper)100
The numbers
System or settingSupporting judgments %
Cluster homogeneity92
Cluster completeness90
Rag bag95
Cluster size versus quantity (this paper)100

For homogeneity, the paper reports 37 judgments supporting the split, 1 opposing it, and 2 expressing indifference. For completeness, 36 judgments support the merge, 1 opposes it, and 3 express indifference. In the rag bag comparison, 38 favor placing the outsider in the mixed group, 1 favors placing it in the clean one, and 1 expresses indifference. In the size-versus-quantity comparison, all 40 judgments favor preserving the small groups. These are preferences between designed alternatives, measured on judgments of grouped news titles. They are distinct from scores assigned to the outputs by any of the metrics.

The human comparison supports the intuitive direction of the tests, including those that go beyond the basic goals of recovering and separating categories. The stronger agreement on the rag bag and size-versus-quantity examples matters because those tests specify particular tradeoffs. The judged question is where a mistake should occur or how widely fragmentation should be spread. Volunteers could agree with the general goal of clean and complete grouping and still disagree with the tradeoff in an individual test. The recorded choices show that the particular cases the authors generated were legible to the people who judged them.

How do the score families respond?

The mathematical comparisons use examples of the same kinds of changes as the assessment experiment. These are cases where the desired ordering can be stated in advance, so a measure either responds in that direction or exposes a failure on the example. The set-matching baselines are Purity, Inverse Purity, and F from best category matches. The other comparisons include familiar measures from pair counting and entropy, alongside the edit-based example and BCubed. The paper reports representative counterexamples and argues from the information the different methods use.

The set-matching measures tested fail the completeness and rag bag conditions, and only Purity among them meets the homogeneity condition. The pair-counting measures handle both homogeneity and completeness. They fail the rag bag and size-versus-quantity comparisons because the paired alternatives can have the same counts. The paper reports failures for cluster entropy and mutual information on completeness, rag bag, and the size-versus-quantity test. Class entropy has counterexamples for homogeneity and rag bag. The particular edit-distance measure examined has counterexamples for homogeneity and rag bag. Among the families studied, the rag bag test distinguishes BCubed most sharply.

For ordinary partitions, BCubed precision provides the strict preference on homogeneity and rag bag, and BCubed recall provides it on completeness and size versus quantity. In each case the other component stays fixed. The paper’s balanced F score at a = 0.5 therefore satisfies the set of conditions as a single score. This result concerns the ordering of outcomes under the specified transformations. The human study supplies evidence for preferring those outcomes, and the formal analysis supplies evidence that the score implements that preference.

Re-score an overlapping search task

The Web People Search task at SemEval-2007 supplies the competitive testbed. Its input is a set of webpages retrieved by querying an ambiguous person name. A system has to determine which distinct people the pages refer to and group the pages for each person. A page can refer to several people with the queried name and can legitimately belong to several groups. This makes membership multiplicity part of the reference solution. The connection to information retrieval and search is direct: the documents already come from search results, and clustering organizes them by the people users might be looking for.

The authors insert a deliberately poor output into the comparison. It places every page into a common cluster and gives each page a separate singleton cluster as well. Interpreted as a people search result, it says every document refers to one common person and every document also refers to a different person peculiar to that page. The rule uses neither the distinctions among people in the collection nor the content of the individual pages to determine who shares a cluster. The question is where such an output lands when ranked alongside actual submissions.

The official baseline combines Purity and Inverse Purity at a = 0.5. The all-inclusive cluster gives Inverse Purity its maximum for the deliberately poor output, because it includes every member of every category. At the same time, the singleton clusters contribute unambiguous items to Purity. The poor output places fifth on Purity, with 0.64, and second on the combined F score, with 0.78. The top submission, S1, records 0.79 on that combined measure.

Selected Web People Search outputs by official Purity and Inverse Purity F score

The deliberately poor grouping ranks just below the leading submission.

Selected Web People Search outputs by official Purity and Inverse Purity F scoreS1 (this paper): 0.79S1 (this paper)0.79Deliberately poor grouping: 0.78Deliberately poor grouping0.78S3: 0.77S30.77S2: 0.77S20.77S4: 0.69S40.69
The numbers
System or settingF score
S1 (this paper)0.79
Deliberately poor grouping0.78
S30.77
S20.77
S40.69

With extended BCubed, the poor output still leads on recall, scoring 0.99. It recovers almost all the overlap expected by the reference. The paper attributes the remaining shortfall to some items belonging to more than two reference categories, while the output gives each item only its singleton and common-cluster memberships. The effect of the extra assignments is much more visible in precision. The poor grouping scores 0.17 on extended BCubed precision and places last on that component. Its balanced F score is 0.24, also last. S1 leads the combined ranking under this scoring rule with 0.71.

Selected Web People Search outputs by extended BCubed F score

The balanced extended BCubed score places the deliberately poor grouping below the real submissions.

Selected Web People Search outputs by extended BCubed F scoreS1 (this paper): 0.71S1 (this paper)0.71S3: 0.68S30.68S2: 0.67S20.67S4: 0.58S40.58Deliberately poor grouping: 0.24Deliberately poor grouping0.24
The numbers
System or settingF score
S1 (this paper)0.71
S30.68
S20.67
S40.58
Deliberately poor grouping0.24

The two charts follow selected outputs under different scoring rules. Their magnitudes describe scores on their own scales. The result that bears on the paper’s claim is the change in ordering for the poor solution. S1 remains at the top of the combined ranking, while the strategy built around a universal cluster and singletons falls to the bottom when evaluated with extended BCubed. The precision and recall results show where the change comes from. Broad coverage still earns substantial credit, but the unsupported joins and extra memberships are visible to the precision component.

What the ablations show

The paper has no training ablations, but it uses controlled changes to clusterings, comparisons of individual score components, and deliberately poor outputs to trace what each metric responds to.

Why a better cluster can leave a score unchanged

The set-matching comparison holds the reference category fixed and changes how some of its smaller fragments are grouped. The large fragment remains the best match before and after the merge. Inverse Purity therefore continues to use it and returns the same contribution for that category. The category-based F score can behave the same way. The merge is a genuine recovery of connections among members of the reference category, yet it has no effect on the statistic used to summarize that category. Purity can also tie, because both small groups were already pure and their union remains pure.

The corresponding BCubed calculation includes items in every fragment. After the merge, each member of either small group can reach all members of the other group within its cluster. Their recall increases, and its calculation does not depend on whether another fragment is larger. Precision remains full for the merged group. In the homogeneity test, the split removes cross-category neighbors and raises precision for the affected items. Category partners within the mixed group were already together, so splitting along category boundaries leaves their recall unchanged. These calculations explain why one component can establish the required strict preference while the other remains steady.

In the size-versus-quantity example for pair-counting measures, separating one member of the five-item reference group from the other four affects the same number of joined pairs as breaking up the four small groups. The paper reports SS of 10 and DS of 4 for both outputs. The affected groups start clean and the operations create no extra joins. A measure whose inputs are those pair totals cannot determine whether the lost associations are concentrated on the edges of a large group or spread across entire small groups.

BCubed recall normalizes the loss separately for each starting item. In D₁ the members of the fragmented small groups each lose 50% of their individual recall. In D₂ the isolated item loses access to the other members of its category, but all members that remain in the larger group retain a large share of their reference neighborhood. The distinct distribution of the losses becomes visible in the outer item average. Using both items in a pair is compatible with giving each starting item equal weight. In a global pair count, by contrast, a larger group produces more pairs as its size grows, and changing it can have a greater effect than changing many small groups.

DEC(D₁) = n / Nₜₒₜ

DEC(D₁) is the decrease in overall BCubed recall from the intact starting grouping to D₁. Here n is the number of two-item groups that are split, and Nₜₒₜ is the total number of items in the output. The numerator comes from the losses in the affected items’ recall, and the division applies the outer item average.

DEC(D₂) = (2n / (n + 1)) / Nₜₒₜ

DEC(D₂) is the recall decrease when one item is separated from its group of n + 1 members. The factor 2 and the count n express the combined recall loss of the isolated member and the members that remain together. The inner denominator is the size of their reference category and Nₜₒₜ again makes this an average over all items. The authors’ comparison gives D₂ the smaller drop in recall in the stated case.

Why the rag bag is a distinct test

For the rag bag comparison, two equal-sized destinations give the same global pair-count penalty when the new item belongs with neither. The same number of incorrect joins is added in either case. A repair rule that charges for moving the new item back out of a cluster can likewise see the same cost under either placement. Both compress away the feature that distinguishes the two destinations: one had genuine internal connections before the insertion and the other did not.

Entropy looks at the destination’s composition, but the paper’s derivation shows why its size-weighted form can still tie the two outputs. Adding a previously unique item scales the proportions of the old categories by a common factor and adds a new category with a share determined by the group’s new size. With the old entropy contribution carried through at its reduced proportion, the remaining terms depend on the sizes involved.

E(C′) = −Σᵢ ((nPᵢ) / (n + 1)) log((nPᵢ) / (n + 1)) − (1 / (n + 1)) log(1 / (n + 1))

C′ is the group after insertion and E(C′) is its entropy. The original group C has n members, and Pᵢ is the fraction from its category i. The sum over i accounts for the old categories at their new proportions. The final term represents the newcomer’s category, which has one member. The logarithm uses the same base throughout the comparison, and the minus signs follow the positive entropy convention.

E(C′) = −(n / (n + 1)) log(n / (n + 1)) − (1 / (n + 1)) log(1 / (n + 1)) + (n / (n + 1)) E(C)

E(C) is the entropy of the group before insertion. The other symbols retain their meanings from the preceding formula. Summing the proportions of the original categories removes the dependence on individual Pᵢ values from the first two terms. The old entropy is multiplied by its remaining proportion of the enlarged group. In the overall score, weighting by the enlarged group’s size restores the old contribution at its former item weight. The added contribution is therefore the same for the clean and noisy destinations of equal initial size.

For BCubed precision, the outsider loses the same amount when assigned to either group. What differs is the loss among the existing members. In a clean cluster, each member starts with all neighbors belonging to its category. The outsider reduces that fraction for every member. In the noisy cluster, each member already has only itself as a correct neighbor. Expanding the group slightly lowers that fraction as well, but the individual precision loss is smaller. Recall stays the same because the change creates no connections between members of the same reference category.

DEC(D₁) = (2n / (n + 1)) / Nₜₒₜ

Here DEC(D₁) is a decrease in BCubed precision for the rag bag test, where D₁ inserts the outsider into the clean cluster. The variable n is the initial membership count of either possible destination, and Nₜₒₜ is the total number of items. The term before the outer division combines the precision loss of the outsider with that of the clean cluster’s original members.

DEC(D₂) = 1 / Nₜₒₜ

DEC(D₂) is the decrease in BCubed precision when the outsider goes into the noisy cluster instead. Nₜₒₜ is unchanged. The numerator 1 is the total loss in individual precisions in that arrangement before the overall average. The paper’s comparison gives D₂ the smaller loss. The intended preference thus comes from the existing items’ precision values, even though the newcomer has exactly the same number of incorrect neighbors in either destination.

What changes when a membership is added or removed

The paper starts a series of overlapping examples with a correct arrangement of seven items in three clusters. Some items have memberships in both of two reference categories. In this arrangement, extended BCubed precision and recall both score 1. Duplicating a cluster while preserving the other memberships gives precision of 0.6 and recall of 1. With further duplication, precision falls to 0.56 and recall stays at 1. These changes create excess evidence of togetherness without removing the associations required by the reference. The separate precision and recall results identify which side of the comparison registers that excess.

Removing required occurrences produces a different pattern. In the illustrated removal, precision is 1 and recall is 0.68. Splitting a correct cluster also lowers recall, to 0.74 in the example, while precision is 1. The remaining shared assignments are supported by the reference, but some reference associations are missing. Joining two ideal clusters can create unsupported connections and also reduce the number of memberships shared by items that had belonged together in more than one place. The merger shown gives precision of 0.88 and recall of 0.94. Overlap allows a merger to harm both components even though it adds some new connections.

The constructed Web People Search output places these effects together in a competitive ranking. The all-inclusive cluster is valuable to a coverage measure, and the singleton clusters are valuable to a measure that scores clusters individually. Extended BCubed evaluates the memberships from each item’s position. The singleton and the common cluster both enter the relevant comparisons. A good singleton contribution cannot hide the many unsupported connections made by the common cluster. The resulting precision drop accounts for the poor output’s last-place combined score, even as its recall remains high.

Limitations

Limits identified by the authors

The authors describe the experiment with volunteers as limited. It uses a small panel and a single kind of material drawn from a retrieval collection. The tasks are deliberately constructed cases of the properties being tested. The results show that the proposed orderings match the judgments elicited under those conditions. The authors call for checking the conditions in other clustering applications, where readers may value different aspects of a grouping. They also leave open whether this set of conditions is sufficient. Comparing it with previous proposals can reveal shared concerns and overlooked cases, but supplies no formal completeness argument for the set.

The paper distinguishes these conditions from broader questions about a metric’s behavior. Its tests constrain which of two outputs should receive the better score. They leave the size and interpretation of score differences open. The authors ask, for instance, whether a score of 0.5 can be understood as twice as good as a score of 0.25. They also identify bias as a consideration that needs separate study. A rule can give the stipulated ordering in the paper’s comparisons while still having properties of scale that matter when selecting scores for a particular application.

Hierarchical clustering has its own evaluation demands. The paper points to the effort involved in traversing hierarchical structures. Shared membership counts can represent how far two items remain together down a branch, but they do not directly measure the effort a user spends navigating that structure. The authors also leave a detailed computational comparison outside the study. They describe BCubed as requiring quadratic computation in the number of items, like the comparison based on pair counts in its dependence on pairs. They consider the cost manageable for typical manually judged collections and identify automatically generated testbeds as a setting where it may matter more.

The most important limitation of the extension is an imperfect overlapping solution that receives maximal precision and recall. In the hierarchical case the paper argues that equal shared-membership counts determine the shared branch depths. Those depths can be used to reconstruct the hierarchy under the representation considered. With unconstrained overlap, a pair’s shared memberships can occur in different groups while the count remains the same. The example in the paper gives equal predicted and reference counts for the relevant pairs and preserves the individual membership totals. The group collections still differ. Purity and Inverse Purity also give full credit in that example, because every predicted group is coherent and each reference category has a cluster that covers it.

The authors consider the problem unlikely to yield an effective shortcut like the Web People Search strategy. Their constructed example requires knowledge of the reference arrangement. That distinction matters to their practical argument about the search experiment. It leaves the mathematical issue intact: a score that sees pair information may assign full credit whenever the pair information agrees, even if the full arrangements differ. The authors therefore treat the extension as a starting point for a separate formal study of overlaps, with conditions suited to that problem.

Limits visible in the design

The human judgments are most directly about relative quality under small, recognizable changes. Assessors saw titles and chose between prepared alternatives. They were not asked to create a clustering, navigate one to answer a question, or say how much better one arrangement was. The experiment therefore supports the direction of the illustrated changes. The results provide less information about the size of the effects, agreement in less legible boundary cases, or agreement when homogeneity and completeness have to be traded against each other in the same example.

The rag bag and size-versus-quantity tests deliberately make their starting conditions clear. The destinations in the rag bag example are equal in size and occupy opposite ends of the range of internal coherence. The fragmentation test contrasts an intact large group losing an item with the full disruption of many small groups. These choices make the formal argument possible and make differences among metrics easy to interpret. They leave open how a preference should change when groups are partly coherent, errors occur together, or a task assigns different costs to different kinds of items.

The Web People Search comparison changes the scoring rule while keeping the systems’ outputs fixed. That isolates the consequences of metric choice for the ranking and shows that one specific output can exploit the official combination. It supplies no corresponding human ranking of all the submissions. Accordingly, the last-place result for the deliberately poor output is evidence for a particular advantage of extended BCubed. The relative ordering of the other submissions and the usefulness of their outputs to search users remain separate questions.

What came after

Later citing work addresses several settings in which systems recover groups or relations from different units of text. Those settings give the paper’s distinctions a specific meaning. A group of related documents, a set of event instances, and a set of historical word links can all be assessed through the connections they recover, while each task determines which items and relationships count. The citing works identify those settings and their approaches. Their individual metric choices, and whether they use ordinary or extended BCubed, are unspecified.

TopicGPT develops a prompt-based framework for topic modeling. Topic assignment gives the paper’s distinction between coherence and coverage a natural interpretation. Given a reference grouping, a topic can be internally coherent while containing only a portion of the material associated with its reference counterpart. Conversely, a topic can include most of the expected material while also taking in unrelated items. Designating a strong match for each topic and evaluating the experience associated with each individual assignment answer different questions about such an output.

From Documents to Segments reframes topic assignment around segments. Its connection to the comparison begins with the choice of an evaluation item. An item-level average gives each chosen unit a contribution, so changing the unit from a document to a segment changes what the score averages over. A judgment about shared topical membership at the segment level concerns a different reference relation from a judgment about entire documents. The paper’s approach makes the choice of unit part of the interpretation of the result.

CLEVE uses contrastive pretraining for event extraction, a task in information extraction. The relevant connection is the difference between finding individual instances and evaluating group structure when instances are organized by a shared reference. A grouped output can be assessed for how much unrelated material it brings together and how much related material it separates. The comparison by Amigó and colleagues specifies which of those changes each family can detect.

The work on automated phonological reconstruction with Cognate Transformer places cognate relations in the setting of reconstructing sound forms. Automated Cognate Detection as a Supervised Link Prediction Task addresses cognate detection through supervised prediction of links. The distinction between a link and a grouping is particularly relevant to the latter formulation. Pair-counting evaluation tallies the links supported or missed across the item set. BCubed first asks how well the links associated with an individual item are recovered or supported, then averages across items. The paper shows how much that order of calculation can matter when groups have different sizes.

TrietNLP at ATE-IT describes a hybrid pipeline for Italian waste-management terminology analysis. In a terminology setting, the distinction applies when terms or occurrences are compared as groups. A representative group can agree well with a reference category even while smaller fragments of that category are left scattered. The formal completeness test isolates exactly that case. Across the citing settings, the lasting question is what an evaluation observes directly: the strongest group match, the global total of supported links, or the neighbors recovered for each item.

Cite

Cite as Enrique Amigó, Julio Gonzalo, Javier Artiles and Felisa Verdejo. 2009. A Comparison of Extrinsic Clustering Evaluation Metrics Based on Formal Constraints. Information Retrieval 12(4).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1007/s10791-008-9066-8

@inproceedings{amigo2009comparison,
  title = {{A Comparison of Extrinsic Clustering Evaluation Metrics Based on Formal Constraints}},
  author = {Enrique Amigó, Julio Gonzalo, Javier Artiles and Felisa Verdejo},
  booktitle = {Information Retrieval 12(4)},
  year = {2009},
  doi = {10.1007/s10791-008-9066-8},
  url = {https://doi.org/10.1007/s10791-008-9066-8}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/amigo-2009-comparison-extrinsic-clustering-evaluation-metrics/