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:
- Scale and Diversity: Limited training variety hinders the learning of subtle textual nuances.
- Data Noise: Hard negative mining often introduces "false negatives"—relevant documents incorrectly labeled as irrelevant—which confuses the model.
- 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.
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:
- Pre-training: Masked Auto-Encoding (MAE) on the 59-million-sample Wudao corpus.
- 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.
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
CovidRetrievalindicates 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