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

Haoxin Li, Phillip Keung, Daniel Cheng, Jungo Kasai, Noah A. Smith · Submission to ICLR 2024 · Withdrawn

TL;DR

Instead of identifying documents with arbitrary integer strings derived from clustering, ACID assigns each document a human-readable identifier composed of abstractive keyphrases generated by an LLM. By aligning document IDs with the natural language distribution that language models are pretrained to generate, ACID substantially outperforms state-of-the-art cluster-based IDs on generative retrieval benchmarks while scaling gracefully with beam width and model size.

What Problem Does This Paper Address?

Generative retrieval is an emerging alternative to traditional dense retrieval (such as DPR). Rather than encoding queries and documents into dual embedding vectors and running approximate nearest-neighbor search, a generative retrieval system trains an autoregressive language model (LM) to take a query as input and directly generate the identifier (ID) of the relevant document.

However, a major bottleneck is how to represent a document ID. Prior state-of-the-art methods rely on hierarchical clustering of document embeddings, assigning documents synthetic integer paths (e.g., 9, 5, 1, 9, 6...). This creates several problems:

  1. Pretrained language models are optimized for natural language, not arbitrary sequences of numerical tokens.
  2. Integer sequences are not human-readable or semantically transparent.
  3. Adding new documents often requires re-clustering the corpus or handling catastrophic collisions.

Methods

The authors introduce ACID (Abstractive, Content-based IDs):

  1. ID Creation via Keyphrase Generation: For every document, an LLM (GPT-3.5) generates up to five abstractive keyphrases summarizing its core topics. These keyphrases are concatenated into a single natural-language string that serves as the document’s permanent ID.
  2. Indexing and Finetuning:
  3. Indexing: The generative retrieval model (based on the Pythia LM family) is trained to map synthetic queries—generated per document using a T5-based doc2query model—to the document’s ACID.
  4. Supervised Finetuning: The model is finetuned on real user query–document ID pairs.
  5. Constrained Inference: At test time, given a query, the model decodes candidate document IDs using beam search constrained by a prefix tree (trie), guaranteeing that only valid document IDs existing in the index can be output.

The authors compare ACID against:

  • Cluster Integer IDs: Hierarchical $k$-means clustering over document embeddings.
  • First $k$ Tokens: Taking the first 30 tokens of a document.
  • BM25 Top-30: Selecting the top 30 unique tokens ranked by Okapi BM25 score.

Datasets

Experiments are conducted on subsets of two standard information retrieval benchmarks:

  • Natural Questions (NQ): Evaluated across 1k, 10k, and 100k query-document subsets. Documents are full-length Wikipedia articles (averaging ~36,000 characters).
  • MSMARCO: Evaluated across 1k, 10k, and 100k subsets. Documents are short web passages (averaging ~334 characters).

Because neither dataset publishes its official test ground truth, the authors sampled custom, deduplicated development and evaluation splits from the training data.

Key Insights and Ideas

  • Natural Language Beats Pseudo-Semantic Integers: LMs possess rich semantic priors. Forcing an LM to memorize arbitrary integer tokens underutilizes its representational capacity. Even simple natural-language heuristics (like the first 30 tokens or BM25 keywords) routinely outperform cluster-based integer IDs.
  • Full Vocabulary Exploitation During Decoding: Cluster IDs restrict the branching factor at each generation step to a tiny digit vocabulary (e.g., 0–9). Consequently, increasing the beam search width past 8–10 provides virtually no benefit. Because ACID uses natural language spanning the LM's entire vocabulary, larger beam widths continue to uncover relevant documents.
  • Consistent Scaling: The performance advantage of ACID over cluster IDs persists as retrieval models scale from 160M to 2.8B parameters.

Key Results

Using a 160M-parameter Pythia model:

  • MSMARCO 100k: ACID achieves 52.9% Acc@1, 79.5% Acc@10, and 84.0% Acc@20, outperforming hierarchical cluster IDs (46.8% Acc@1, 68.8% Acc@10, 73.4% Acc@20). This represents relative improvements of 15.6% on Acc@10 and 14.4% on Acc@20.
  • Natural Questions 100k: ACID achieves 40.9% Acc@1, 71.2% Acc@10, and 75.9% Acc@20 compared to cluster IDs (40.8% Acc@1, 68.2% Acc@10, 73.0% Acc@20), representing relative gains of 4.4% on Acc@10 and 4.0% on Acc@20.
  • First 30 Tokens performs well on NQ at Acc@1 (47.7%) because Wikipedia pages begin with the entity title, but ACID surpasses it in top-10 and top-20 metrics and dominates across all metrics on non-encyclopedic datasets like MSMARCO.

Limitations and Future Work

  • Generation Cost: Generating abstractive keyphrases for millions of documents with commercial LLM APIs (e.g., GPT-3.5) incurs notable computational and financial overhead compared to running $k$-means.
  • Evaluation Scale: Experiments were capped at 100k documents. Verifying how natural-language IDs behave on multi-million or web-scale indices (such as full MSMARCO or C4) remains open.
  • Indexing Strategy: The authors noted that training on raw random document spans during indexing failed to improve performance, relying entirely on synthetic doc2query generation.

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},
}

Loading related content...

Figure