[Paper Review] Measuring Dataset Granularity
This paper proposes a continuous, axiomatic framework to measure dataset granularity based on clustering theory, defining it as a function of labeled data and a distance function. It introduces and validates measures like BHG and the C index that satisfy consistency, invariance, and scale invariance, revealing that widely considered fine-grained datasets like CUB-200 contain coarse-grained subsets more similar to standard coarse datasets like CIFAR-10.
Despite the increasing visibility of fine-grained recognition in our field, "fine-grained'' has thus far lacked a precise definition. In this work, building upon clustering theory, we pursue a framework for measuring dataset granularity. We argue that dataset granularity should depend not only on the data samples and their labels, but also on the distance function we choose. We propose an axiomatic framework to capture desired properties for a dataset granularity measure and provide examples of measures that satisfy these properties. We assess each measure via experiments on datasets with hierarchical labels of varying granularity. When measuring granularity in commonly used datasets with our measure, we find that certain datasets that are widely considered fine-grained in fact contain subsets of considerable size that are substantially more coarse-grained than datasets generally regarded as coarse-grained. We also investigate the interplay between dataset granularity with a variety of factors and find that fine-grained datasets are more difficult to learn from, more difficult to transfer to, more difficult to perform few-shot learning with, and more vulnerable to adversarial attacks.
Motivation & Objective
- To address the lack of a precise, quantitative definition for 'fine-grained' in visual recognition datasets.
- To formalize dataset granularity as a continuous measure dependent on both labels and distance functions.
- To establish a set of axiomatic properties—granularity consistency, isomorphism invariance, and scale invariance—that a valid granularity measure should satisfy.
- To evaluate candidate measures empirically using hierarchical datasets and assess their robustness across different deep network features.
- To investigate the impact of dataset granularity on downstream learning tasks such as transfer learning, few-shot learning, and adversarial robustness.
Proposed method
- Proposes an axiomatic framework with three core properties: granularity consistency (merging classes increases granularity), isomorphism invariance (label permutation doesn’t affect measure), and scale invariance (scaling distances doesn’t change measure).
- Introduces two candidate measures: BHG (based on within-class and between-class distance ratios) and the C index (a clustering quality measure adapted for granularity).
- Employs a hierarchical labeling structure as a ground truth oracle: merging subordinate classes into super-classes should strictly increase the granularity score.
- Uses pre-trained ResNet-50 features on ImageNet as the distance function, with robustness tested across multiple architectures.
- Applies the measure to benchmark datasets like CUB-200, CIFAR-10, and others to compare relative granularity levels.
- Validates the measures through controlled experiments where class merging is simulated, confirming adherence to axiomatic properties.
Experimental results
Research questions
- RQ1Can a continuous, mathematically grounded measure of dataset granularity be defined that captures intuitive notions of fine vs. coarse classification?
- RQ2How does the choice of distance function (e.g., feature extractor and metric) affect the measured granularity of a dataset?
- RQ3Are the proposed granularity measures robust across different model architectures and dataset types?
- RQ4How does dataset granularity correlate with the difficulty of downstream learning tasks such as transfer learning and few-shot learning?
- RQ5To what extent are fine-grained datasets vulnerable to adversarial attacks compared to coarser ones?
Key findings
- The proposed granularity measure reveals that subsets of widely considered fine-grained datasets like CUB-200 can be significantly coarser than standard coarse datasets such as CIFAR-10.
- CIFAR-10, often seen as coarse-grained, exhibits finer granularity than a coarse subset (CUB-200-Sweet) extracted from CUB-200.
- The relative ranking of dataset granularity remains stable across different distance functions and model architectures, indicating robustness of the measure.
- Fine-grained datasets are consistently more difficult to learn from, harder to transfer to, more challenging for few-shot learning, and more vulnerable to adversarial attacks.
- The BHG and C index measures both satisfy all three axiomatic properties: granularity consistency, isomorphism invariance, and scale invariance.
- The C index is proven to be granularity consistent by showing that any transformation that reduces within-class distances and increases between-class distances strictly increases the C index value.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.