EMNLP 20250 citations

HMCL: Task-Optimal Text Representation Adaptation through Hierarchical Contrastive Learning

Zhenyi Wang, Yapeng Jia, Haiyan Ning, Peng Wang, Dan Wang, Yitao Cao

Abstract

As general large language models continue to advance, their real-world adaptation through effective fine-tuning remains a significant challenge. We introduce Hierarchical Multilevel Contrastive Learning (HMCL), a new contrastive learning framework that improves task-specific text representation for general models. HMCL integrates 3-level semantic differentiation (positive, weak-positive, and negative) and unifies contrastive learning, pair classification, and ranking objectives into a cohesive optimization strategy. HMCL demonstrates exceptional results across multi-domain and multilingual benchmarks, including text similarity, retrieval, reranking and Retrieval-Augmented Generation (RAG) tasks. It outperforms top unsupervised methods and supervised fine-tuning approaches while maintaining broad compatibility with architectures ranging from BERT to Qwen, 330M to 7B. In real-world merchant consultation scenarios, HMCL shows a 0.70-6.24 point improvement over original fine-tuning methods in large-scale base models. This establishes HMCL as a versatile solution that bridges the gap between general-purpose models and specialized industrial applications.

BibTeX
@inproceedings{emnlp2025_hmcltaskoptimalt,
  title = {HMCL: Task-Optimal Text Representation Adaptation through Hierarchical Contrastive Learning},
  author = {Zhenyi Wang and Yapeng Jia and Haiyan Ning and Peng Wang and Dan Wang and Yitao Cao},
  booktitle = {EMNLP 2025},
  year = {2025}
}
HMCL: Task-Optimal Text Representation Adaptation through Hierarchical Contrastive Learning · EMNLP 2025