TL;DR
This paper introduces QDGenSumRT, a novel framework that leverages generative AI for real-time query-driven text summarization in large-scale web search. By combining model distillation, supervised fine-tuning, and preference alignment, they achieve state-of-the-art summarization quality with a remarkably small, efficient model that can handle massive query volumes with low latency.
What Problem Does This Paper Address?
In the realm of web search, users are increasingly looking for quick, concise answers to their queries. Query-Driven Text Summarization (QDTS) aims to provide these by generating summaries of web pages that are directly relevant to the user's search intent. Traditional methods often rely on multi-stage pipelines that can lead to information loss and struggle with complex queries. While large generative models (LLMs) show promise, their computational cost and latency make them unsuitable for real-time industrial applications. Furthermore, existing summarization models often lack sufficient semantic understanding of both queries and documents, and there's a need for summaries that are not only relevant but also faithfully reflect the original document's content without hallucination.
Methods
The QDGenSumRT framework is a four-stage process designed for efficiency and quality:
- Model Distillation: A large, 10B-parameter teacher model (ERNIE-Lite-8K) is used to generate a massive synthetic dataset. This dataset is then used to train a much smaller, 0.1B-parameter student model (Hamburger, based on GPT-2 architecture). This compresses the teacher's knowledge into a lightweight model.
- Full-parameter Supervised Fine-Tuning (SFT): The distilled model is further fine-tuned on a carefully curated dataset of human-annotated query-summary pairs. This stage focuses on improving factual correctness, relevance, and ensuring summaries adhere to desired structural properties (e.g., multi-perspective, step-by-step).
- User Preference Alignment (DPO): Direct Preference Optimization (DPO) is employed to align the model's output with implicit user feedback. By using A/B testing data where users click on one summary over another, the model learns to generate summaries that are more likely to satisfy user preferences.
- Quantization and Inference Optimization: To meet real-time demands, the model undergoes FP8 quantization (compressing weights and activations) and is deployed using TensorRT-LLM. Additionally, a lookahead speculative decoding strategy is integrated to accelerate inference by allowing parallel generation and verification of tokens.
Datasets
- Distillation Dataset: Generated by a 10B-parameter teacher model, comprising 14 million samples and approximately 130B tokens.
- SFT Dataset: A high-quality, human-annotated dataset of 6,160 query-summary pairs.
- QDTS Test Dataset: A real-world dataset collected from production search logs, containing 1,021 query-document-summary triplets for evaluation.
Key Insights and Ideas
- LLM Knowledge Compression: The paper demonstrates that the powerful summarization capabilities of large LLMs can be effectively transferred to a significantly smaller model through distillation, making them practical for real-time applications.
- Importance of Human Curation: Simply distilling from a large model isn't enough. Fine-tuning on carefully curated human-annotated data is crucial for improving factual accuracy and structural consistency, especially for complex summary types.
- User Preference is Key: Direct Preference Optimization (DPO) is a powerful technique for aligning model outputs with real user needs, going beyond simple relevance metrics to capture what users actually prefer.
- Inference Optimization is Critical: Achieving low latency in large-scale systems requires a multi-pronged approach, combining quantization (FP8) with advanced decoding strategies like lookahead speculative decoding.
Key Results
- ROUGE Scores: QDGenSumRT achieves state-of-the-art ROUGE-2 scores (51.33), outperforming even a much larger, non-real-time generative model (NGS).
- Human Evaluation (AGSB): QDGenSumRT shows a significant improvement of +20.68% over the production baseline and is comparable to the larger NGS model (-0.12% difference).
- Efficiency: The model is remarkably efficient, requiring only 334 NVIDIA L20 GPUs to handle ~50,000 queries per second with an average latency of 55 ms per query. This is a >35x reduction in training time and >68x lower inference latency compared to the larger NGS model.
Limitations and Future Work
- Limitations: While the paper focuses on extractive summarization, the authors acknowledge that generative models can sometimes hallucinate. The DPO stage aims to mitigate this by aligning with user preferences, but it's an ongoing challenge. The paper also notes that while QDGenSumRT closely matches NGS in quality, NGS is a larger model, implying there might still be a slight quality gap that could be bridged with further research.
- Future Work: The paper suggests that further research could explore more advanced inference optimization techniques and potentially investigate hybrid approaches that combine the strengths of extractive and abstractive summarization. The success of QDGenSumRT in real-time search also opens doors for its application in other latency-sensitive domains.
Summary updated