Contrastive Bootstrapping for Label Refinement

Shudi Hou, Yu Xia, Muhao Chen, Sujian Li

Introduction

Traditional text classification systems typically operate on broad, static categories. However, real-world applications often demand finer distinctions as new sub-topics emerge. Manually labeling massive datasets for these granular categories is prohibitively expensive. To address this, researchers have turned to coarse-to-fine (C2F) text classification, where models must predict fine-grained labels using only coarse-grained annotations and a basic class mapping (e.g., "Sports" maps to "Baseball" or "Tennis").

Previous state-of-the-art methods often required training separate language models for every coarse category, a process that is computationally intensive and prone to error propagation. This paper introduces a lightweight, contrastive bootstrapping approach that utilizes a single model, external knowledge, and a robust similarity metric to achieve superior performance with significantly lower overhead.

Methodology

The proposed framework employs a contrastive clustering-based bootstrapping strategy using a single RoBERTa encoder. The process is divided into two primary stages: Warm-up and Bootstrapping.

The two-stage contrastive bootstrapping workflow.

1. Initial Weak Supervision & Warm-up

The model begins by identifying documents that contain the exact surface names of fine-grained labels. These documents serve as initial anchors. The model optimizes two contrastive losses: a global loss to separate coarse clusters and a local loss to refine the boundaries between fine-grained clusters within those coarse groups.

2. Bootstrapping with Selection

Following the warm-up, the model enters an iterative self-training loop. To prevent the accumulation of noise, a strict selection strategy is implemented. The model only incorporates passage-prototype pairs that demonstrate both high similarity and high discriminative margin (i.e., the top label is significantly more likely than the second-best).

3. Anti-Hubness Similarity Metric

A significant challenge in high-dimensional embedding spaces is the "hubness" problem, where certain vectors appear close to many others, leading to false positives. The authors introduce a local scaling technique that subtracts the average similarity of a vector's K-nearest neighbors, ensuring that high similarity scores represent genuine semantic matches.

4. Wikipedia Gloss Knowledge

To provide better semantic anchoring, label names are augmented with "gloss" knowledge—the first two sentences from the label's corresponding Wikipedia page. This context helps disambiguate surface names that might otherwise be too vague for effective contrastive learning.

Experimental Setup

The method was evaluated on two standard hierarchical benchmarks:

  • 20 Newsgroups (20News): 5 coarse groups and 20 fine-grained topics.
  • The New York Times (NYT): 5 coarse topics and 25 subtopics, characterized by a highly skewed class distribution.

Results and Discussion

The proposed method significantly outperforms existing baselines, including LOT-Class, X-Class, and the previous C2F state-of-the-art.

Main performance results and ablation study.

As shown in the results table, the model achieved a 92.64% Micro-F1 on the NYT dataset, surpassing the C2F baseline by approximately 3.4%. On the 20News dataset, it reached 77.64% Micro-F1, a 1.9% improvement over C2F.

Ablation Insights

  • Anti-Hubness Metric: This component proved critical. Removing it led to a massive 22.46% drop in Macro-F1 on the 20News dataset, confirming that standard cosine similarity is insufficient for this task.
  • Gloss Knowledge: Incorporating Wikipedia context was vital for the NYT dataset, where its removal resulted in a 9.42% drop in Macro-F1.
  • Selection Strategy: The iterative selection process ensures the training pool remains clean, preventing the "noise snowball" effect common in self-training regimes.

Conclusion

This research demonstrates that a single, well-regularized model can outperform complex multi-model ensembles for coarse-to-fine classification. By addressing the hubness problem and leveraging external semantic knowledge, the contrastive bootstrapping approach provides a robust and efficient solution for fine-grained label refinement. Future work will explore extending this framework to deeper hierarchies and more complex, multi-label taxonomies.

Summary updated

BibTeX
@inproceedings{hou2023contrastive,
  author = {Shudi Hou and Yu Xia and Muhao Chen and Sujian Li},
  title = {{Contrastive Bootstrapping for Label Refinement}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-short.84},
}
Figure