Towards Robust Text Retrieval with Progressive Learning

Tong Wu, Yulei Qin, Enwei Zhang, Zihan Xu, Yuting Gao, Ke Li, Xing SunarXiv 2023 · DOI

Abstract

In the context of Retrieval-Augmented Generation (RAG), the quality of text retrieval is paramount. We present PEG (Progressively learned EmbeddinG), a novel model developed by Tencent Youtu Lab that achieves state-of-the-art performance in Chinese text retrieval. PEG leverages a massive 110-million-sample dataset and introduces a "progressive learning" strategy that dynamically shifts training focus from easy to hard samples. This approach, combined with LLM-based data cleansing and massive batch scaling, effectively mitigates common issues such as data noise and sub-optimal convergence in contrastive learning.

Introduction

The effectiveness of Large Language Models (LLMs) often depends on their ability to access up-to-date, domain-specific knowledge via Retrieval-Augmented Generation. However, existing embedding models face significant challenges:

  1. Scale and Diversity: Limited training variety hinders the learning of subtle textual nuances.
  2. Data Noise: Hard negative mining often introduces "false negatives"—relevant documents incorrectly labeled as irrelevant—which confuses the model.
  3. Uniform Weighting: Treating easy and hard examples identically can lead to poor generalization, as models may struggle with noisy cases before mastering basic similarities.

Methodology

The PEG pipeline introduces several innovations to the standard contrastive learning workflow to address these challenges.

The PEG pipeline, illustrating data processing with LLM-based filtering and the two-stage training process.

Progressive Learning Mechanism

The core innovation is a dynamic loss function that adjusts sample weights during training. Initially, the model prioritizes "easy" samples to establish a foundational understanding of semantic similarity. As training matures, the focus shifts toward "challenging" hard negatives to refine discriminative capabilities.

LLM-Powered Data Cleansing and Scaling

To eliminate false negatives, an LLM is employed to verify the relevance of hard negative samples. If the LLM identifies a "negative" as highly relevant, it is filtered out. Furthermore, PEG utilizes massive batch scaling—up to 84,000 samples—on 32 H800 GPUs, creating a dense embedding space for finer distinction.

Two-Stage Training

Training proceeds in two phases:

  1. Pre-training: Masked Auto-Encoding (MAE) on the 59-million-sample Wudao corpus.
  2. Fine-tuning: Contrastive learning on a massive 110-million-sample supervised dataset.

Datasets

The authors compiled a comprehensive fine-tuning collection of 110 million pairs, spanning diverse domains and tasks.

Overview of the open-sourced and in-house datasets used for training PEG.

The dataset includes open-source sources like Wudao, LCSTS, and T2Ranking, alongside proprietary in-house data covering finance, medicine, tourism, and logistics. Evaluation was conducted on the C-MTEB (Chinese Massive Text Embedding Benchmark) and DuReader-Retrieval.

Key Results and Insights

PEG achieved State-of-the-Art (SOTA) results on major Chinese benchmarks:

  • C-MTEB Retrieval: Achieved an average NDCG@10 of 72.37, surpassing BGE-large (71.53).
  • DuReader-Retrieval: Demonstrated a significant jump to an MRR@10 of 51.34 on an 8-million document gallery, a ~14% relative improvement over previous leaders.
  • Domain Robustness: Strong performance in specialized tasks like CovidRetrieval indicates that progressive learning excels at handling complex, professional texts.

The success of PEG underscores that embedding models benefit from a "curriculum" approach. By weighting easy samples higher initially, the model avoids being derailed by noise. Additionally, the move to extremely large batch sizes (80k+) provides the necessary density for high-precision retrieval.

Conclusion and Future Work

While PEG sets a new standard for Chinese text retrieval, its high computational requirements (32 H800 GPUs) present a barrier to entry for smaller research groups. Future work could explore the methodology's effectiveness in multilingual settings and investigate the impact of high-dimensional embeddings on real-time inference latency in production environments.

Summary updated

BibTeX
@misc{wu2023towards,
  author = {Tong Wu and Yulei Qin and Enwei Zhang and Zihan Xu and Yuting Gao and Ke Li and Xing Sun},
  title = {{Towards Robust Text Retrieval with Progressive Learning}},
  year = {2023},
  eprint = {2311.11691},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.11691},
}
Figure