V-measure

Machine Learning
Introduced by
Andrew Rosenberg, Julia Hirschberg
Year
2007
Type
Entropy-based metric
Family
External Clustering Validation

What does it do?

V-measure, introduced by Rosenberg and Hirschberg in 2007, is an external clustering evaluation metric based on the harmonic mean of homogeneity and completeness.

It measures whether clusters contain only points from a single true class (homogeneity) and whether all points from a true class are assigned to the same cluster (completeness). Values range from 0 to 1.

The intuition behind the method

V-measure separates clustering quality into two questions. Homogeneity asks whether each cluster contains points from only one true class. Completeness asks whether all points of each true class end up in the same cluster. Both components are computed from conditional entropies of the two label assignments, and V-measure is their harmonic mean, in the way the F-measure combines precision and recall. Because the two components can be read separately, a low score can be traced to splitting classes across clusters, mixing classes within clusters, or both.

History

V-measure was introduced by Andrew Rosenberg and Julia Hirschberg in 2007, in the paper 'V-measure: A conditional entropy-based external cluster evaluation measure', presented at the Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning. It is an external evaluation measure, meaning that it compares a clustering against reference labels.

When to use it

Use V-measure when you have reference class labels for the same points that were clustered, and you want to know whether the clusters are pure, whether the classes are kept together, or both. It is most informative when you need to tell over-splitting (high homogeneity, low completeness) apart from over-merging (high completeness, low homogeneity). Do not use it when no ground-truth labels exist; internal criteria such as silhouette-score are the appropriate family in that case. Avoid it for overlapping or multi-label structure, where each point cannot be assigned to exactly one class and one cluster. If you need a score that sits near zero for random partitions, adjusted-rand-index is the better choice, because V-measure is not corrected for chance.

Limitations and considerations

  • Requires reference labels for every point, so it cannot judge a clustering of unlabelled data
  • Assumes a hard partition: each point belongs to exactly one cluster and exactly one class, so overlapping clusters or multi-label data do not fit the measure
  • Not corrected for chance agreement, so its values are not anchored at zero for random partitions, unlike adjusted-rand-index
  • The two components are defined through conditional entropies, which are harder to read intuitively than counts of agreeing pairs

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Splits the score into homogeneity (cluster purity) and completeness (recovery of classes), so the dominant failure mode is visible
  • Bounded between 0 and 1, with explicit conventions on the formula page for the case where a class or cluster entropy is zero
  • Requires only label assignments for the points, not a distance function or feature space
  • The beta parameter lets the user tilt the score toward completeness or toward homogeneity
  • With beta equal to 1 it is symmetric in the roles of classes and clusters, because swapping them exchanges homogeneity and completeness
  • Makes no assumption about cluster shape, so it can compare algorithms that produce different shapes, such as K-means and spectral clustering

Applications

  • Text or topic clustering of documents that already carry reference category labels
  • Clustering of biological profiles, such as gene expression data, when an independent annotation serves as the reference partition
  • Any clustering task in which an independent labelled partition of the same items is available

How it works

How it works

1

Taking C as the true class labels, compute the conditional entropy of the classes given the cluster labels, H(C|L), and divide it by the entropy of the classes, H(C). Subtract this ratio from one; the value is 1 when every cluster contains a single class, and it is defined as 1 when H(C) is zero.

Formula
h = 1 - \frac{H(C | L)}{H(C)} \text{ if } H(C) > 0, \text{ else } 1
2

Taking L as the cluster labels, compute the conditional entropy of the clusters given the classes, H(L|C), and divide it by the entropy of the clusters, H(L). Subtract this ratio from one; the value is 1 when every class falls into a single cluster, and it is defined as 1 when H(L) is zero.

Formula
c = 1 - \frac{H(L | C)}{H(L)} \text{ if } H(L) > 0, \text{ else } 1
3

Combine the two components as their harmonic mean using the weighting in the formula on this page. With beta equal to 1 the two components count equally; values of beta above 1 give more weight to completeness, and values below 1 give more weight to homogeneity. Worked example: take true classes [0,0,1,1] and a clustering that places all four points in one cluster. The cluster mixes both classes, so H(C|L) equals H(C) and homogeneity is 0. The cluster entropy is zero, so completeness is 1 by convention. The V-measure is therefore 0 for any beta, because the harmonic mean is zero when one component is zero.

Formula
V = \frac{(1 + \beta^2) hc}{\beta^2 h + c}

Common pitfalls

  • Reading high homogeneity as success on its own: singleton clusters give homogeneity 1 while completeness is 0, so the two components should always be reported together
  • Using the default beta equal to 1 without deciding whether fragmentation or mixing of classes matters more for the application
  • Comparing V-measure values across datasets with different numbers of samples, clusters or classes: because the score is not normalized with regard to random labeling, its values depend on these counts and are not directly comparable across datasets

Frequently asked questions

What does high homogeneity but low completeness indicate?

This pattern suggests that your clusters are pure—each cluster contains mostly points from one true class—but that true classes are fragmented across multiple clusters. You may need to merge clusters or reconsider your clustering approach to improve completeness.

How do homogeneity and completeness relate to precision and recall?

Homogeneity is conceptually similar to precision: it measures purity within clusters. Completeness is similar to recall: it measures the recovery of true classes. V-measure is the harmonic mean of these two, analogous to the F1 score in classification.

Can I adjust V-measure to emphasize one criterion?

Yes, the beta parameter in V-measure controls the weighting. beta > 1 emphasizes completeness; beta < 1 emphasizes homogeneity. Set beta based on your application's priorities.

How is V-measure different from Normalized Mutual Information?

Both are information-theoretic metrics, but V-measure explicitly decomposes clustering quality into homogeneity and completeness, providing diagnostic information. NMI measures shared information without explicit decomposition. Choose V-measure for interpretability and NMI for information-theoretic properties.

Related methods

Sources

  1. Rosenberg, A., & Hirschberg, J. (2007). V-measure: A conditional entropy-based external cluster evaluation measure. In Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning (pp. 410-420).

    Open publication reference
  2. 2017_Book_IntroductionToDataScience, p. ?