ACID: Abstractive, Content-Based IDs for Document Retrieval with Language Models

Haoxin Li, Phillip Keung, Daniel Cheng, Jungo Kasai, Noah A. Smith

TL;DR

This paper introduces "Abstractive, Content-Based IDs" (ACID) for generative document retrieval, where document identifiers are generated as natural language keyphrases instead of opaque integer sequences. These human-readable IDs significantly improve retrieval performance, demonstrating the power of leveraging language models' natural language generation capabilities for document identification.

What Problem Does This Paper Address?

Traditional document retrieval often relies on methods like Dense Passage Retrieval (DPR), which map queries and documents to dense vector embeddings and find matches based on similarity. However, this approach has limitations, such as difficulty in capturing complex query-document interactions and the inability to fully leverage the generative power of large language models (LLMs).

Generative retrieval offers an alternative by training LLMs to directly generate a unique identifier for a relevant document given a query. Previous work in generative retrieval primarily used cluster-based integer IDs, where documents are grouped into clusters, and their IDs are sequences representing their path through a clustering hierarchy. The authors argue that generating arbitrary integer sequences is unnatural for LLMs, which are pre-trained on natural language. Furthermore, these integer IDs are not human-readable and require re-clustering when new documents are added. This paper addresses the need for more effective, human-readable document identifiers for generative retrieval.

Methods

The core contribution of this paper is the introduction of summarization-based document IDs. Instead of integer sequences, these IDs are generated using natural language summaries or keyphrases derived from the document content. The authors propose two main types:

  • Abstractive, Content-Based IDs (ACID): This method uses an LLM (specifically GPT-3.5 in their experiments) to generate a short sequence of abstractive keyphrases that summarize the document's topics. These keyphrases are then concatenated to form the document ID. The prompt used encourages the model to focus on content and avoid boilerplate text like terms and conditions.
  • Extractive Summary IDs: These IDs are generated by taking either the first k tokens of a document or selecting the top k keywords based on BM25 scores. The rationale is that the beginning of many documents, especially articles, often provides a good overview.

The paper also details the generative retrieval pipeline, which involves:

  1. Document Indexing: Training the LLM to map document IDs to either synthetic queries (generated by a doc2query model) or document spans.
  2. Supervised Finetuning: Further training the LLM on actual user-generated queries and their corresponding document IDs.
  3. Document Retrieval: At inference time, the LLM generates a document ID using beam search, constrained by a prefix tree to ensure only valid document IDs are produced.

Datasets

The experiments were conducted on two standard retrieval benchmarks:

  • MSMARCO: A dataset of short passages.
  • Natural Questions (NQ): A dataset of longer Wikipedia articles.

The authors used subsets of these datasets for training, development, and testing, specifically mentioning 1k, 10k, and 100k query-document pairs for finetuning. They also created custom development sets from the training data due to the unavailability of public test sets.

Key Insights and Ideas

  • Natural Language IDs are Powerful: The core insight is that LLMs perform better when generating document IDs that align with their natural language generation capabilities, rather than arbitrary integer sequences. ACID IDs, being natural language phrases, are inherently more compatible with LLM training.
  • Human-Readability Matters: ACID IDs are not only effective but also human-readable, which can be a significant advantage for debugging, understanding retrieval results, and potentially for downstream applications.
  • Document Characteristics Influence ID Choice: The paper highlights that extractive IDs (first 30 tokens) performed better on longer Wikipedia articles (NQ) than on shorter MSMARCO passages. This suggests that the optimal ID generation strategy might depend on the nature and length of the documents being indexed.
  • In-Context Learning Boosts Performance: The authors demonstrate that using a larger LLM with in-context learning (providing examples in the prompt) can significantly improve the performance of a smaller, finetuned generative retrieval model, especially when using natural language IDs. This benefit is not observed with integer IDs.

Key Results

  • Significant Recall Improvement: ACID IDs improved top-10 and top-20 recall by 15.6% and 14.4% (relative) respectively over cluster-based integer IDs on the MSMARCO 100k task. On the NQ 100k task, the improvements were 9.8% and 9.9% respectively.
  • Extractive IDs Competitive: Simple extractive IDs, like the first 30 tokens, also outperformed cluster-based IDs in most cases and were particularly effective for the NQ dataset.
  • Beam Width Benefits ACID: Wider beam widths provided more benefit for ACID IDs compared to cluster-based IDs, especially at higher recall levels (top-10 and top-20).
  • Model Size Matters: Increasing the size of the generative model (up to 2.8B parameters) generally led to improved retrieval performance for both ACID and cluster IDs, with ACID consistently outperforming cluster IDs.

Limitations and Future Work

  • Computational Budget: The largest dataset used was 100k query-document pairs, and the largest model was 2.8B parameters. The authors acknowledge that scaling to larger datasets and models, as used by practitioners, might reveal different performance characteristics.
  • Document Length Impact: While the paper observed differences in performance based on document length (NQ vs. MSMARCO), further investigation into how document characteristics specifically affect ID generation and retrieval is suggested.
  • ID Generation Optimization: The authors suggest that optimizing document ID generation for specific use cases and document collections could be an important future research direction.
  • Exploring Other Natural Language IDs: The paper implies that future work could explore other forms of natural language IDs beyond abstractive keyphrases and simple extractive methods.

Summary updated

BibTeX
@misc{li2023acid,
  author = {Haoxin Li and Phillip Keung and Daniel Cheng and Jungo Kasai and Noah A. Smith},
  title = {{ACID: Abstractive, Content-Based IDs for Document Retrieval with Language Models}},
  year = {2023},
  eprint = {2311.08593},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.08593},
}
Figure