QAEA-DR: A Unified Text Augmentation Framework for Dense Retrieval

Hongming Tan, Shaoxiong Zhan, Hai Lin, Hai-Tao Zheng, Wai Kin ChanIEEE TKDE 2024

TL;DR

This paper introduces QAEA-DR, a novel framework that augments text for dense retrieval by generating question-answer pairs and event descriptions using Large Language Models (LLMs). This approach enhances the density of information in texts, leading to improved retrieval accuracy without altering the core retrieval models.

What Problem Does This Paper Address?

Dense retrieval, a popular method for information retrieval, converts text into dense vector representations for efficient matching. However, this process can lead to information loss, especially with long or noisy texts, hindering accurate query-text matching. Existing solutions often focus on improving embedding models or retrieval processes, but this paper tackles the problem by enhancing the input text itself to make it more information-dense and semantically aligned with queries.

Methods

The core of QAEA-DR is a three-step process:

  1. Structured Information Extraction: Large Language Models (LLMs) are used in a zero-shot prompting manner to generate two types of augmented text:
  2. Question-Answer (QA) Pairs: These are generated by categorizing questions into five types (factual inquiry, explanation, cause/effect, comparison, evaluation) to capture individual information points.
  3. Element-Driven Events: These extract structured information based on event elements like "event type," "time," "location," "subject," "object," "event," and "impact."
  4. Reversion to Unstructured Form: The generated structured QA pairs and events are converted back into natural language text. Two strategies are employed:
  5. Texts Remain Independent (TRI): Each generated QA pair or event is treated as a separate text.
  6. Texts Merge into One (TMO): All generated texts (QA pairs and events) from a single original document are concatenated into a single text.
  7. Integration into Vector Database: The original texts and the newly generated augmented texts are all embedded and added to the vector database. This creates an augmented database that is richer in information.

To ensure high-quality generated texts, QAEA-DR incorporates a scoring-based evaluation and regeneration mechanism. LLMs are used to score the generated texts, and if they fall below a threshold, they are regenerated.

Datasets

The paper evaluates QAEA-DR on four datasets:

  • sCNPR: A proprietary, small-scale Chinese News Passage Retrieval dataset with long texts.
  • T2Retrieval: An open Chinese passage retrieval dataset with 4-level relevance labels.
  • MS MARCO: An open English passage retrieval dataset from Bing.
  • HotpotQA: An open English passage retrieval dataset from Wikipedia.

Key Insights and Ideas

  • Text Augmentation for Input Enhancement: The paper highlights the importance of enhancing the input text itself, rather than just the retrieval model, to improve dense retrieval performance.
  • Synergy of QA and Events: Combining QA pairs (for specific information points) and event extraction (for structured relationships) provides a more comprehensive and information-dense representation of the original text.
  • LLMs as Versatile Generators: LLMs, with their zero-shot prompting capabilities, can unify diverse information extraction tasks like QAG and EE into a single framework.
  • Quality Control is Crucial: The scoring and regeneration mechanism is vital for ensuring the quality of LLM-generated texts, which directly impacts retrieval performance.
  • TMO for Stability: The "Texts Merge into One" (TMO) strategy generally leads to more stable retrieval performance, especially on longer or noisier texts, by consolidating information and reducing the impact of irrelevant generated segments.

Key Results

  • Significant Performance Improvement: QAEA-DR consistently outperforms baselines across all four datasets and various embedding models, achieving optimal NDCG@1 scores.
  • Robustness: The framework demonstrates effectiveness and robustness across datasets with varying languages, text sources, and lengths.
  • Long Text Advantage: QAEA-DR shows the most significant improvement on the sCNPR dataset, which consists of long texts, indicating its efficacy in handling information loss in lengthy documents.
  • LLM Impact: GPT-3.5-turbo generally performs better than smaller LLMs like ChatGLM3-6B, but the regeneration mechanism helps bridge the performance gap. Open-source LLMs like Mistral and Llama also show competitive performance.
  • TMO vs. TRI: TMO generally shows more stable performance, while TRI can achieve higher peak results but is more sensitive to generation quality.
  • QA and Event Contributions: Both QA and Event components contribute positively to retrieval performance, with QA pairs often showing a slight edge.

Limitations and Future Work

  • Computational Cost: While QAEA-DR can run on moderate hardware, using larger LLMs for generation and evaluation incurs significant computational costs.
  • LLM Dependence: The performance is dependent on the quality of the LLM used for generation.
  • Dataset Size Impact: While QAEA-DR consistently outperforms baselines across different dataset sizes, further investigation into optimal dataset sizes for different LLMs and tasks could be beneficial.
  • Regeneration Threshold: The choice of regeneration threshold impacts performance, and finding an optimal balance between strictness and efficiency is important.
  • Future Work: The authors suggest exploring more advanced LLM prompting techniques, investigating different text organization strategies, and applying QAEA-DR to other NLP tasks beyond dense retrieval. They also note that the framework's flexibility allows for integration with various LLMs and embedding models.

Summary updated

BibTeX
@article{tan2024qaea,
  author = {Hongming Tan and Shaoxiong Zhan and Hai Lin and Hai-Tao Zheng and Wai Kin Chan},
  title = {{QAEA-DR: A Unified Text Augmentation Framework for Dense Retrieval}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2024},
}
Figure