arXiv:2610.17467cs.IROct 2026

Manuscript Offprint

arXiv:2610.17467

Computed, not Memorized: Bit-Factorized Identifiers for Efficient Generative Retrieval

I-Fan Lin, Zhen Zhang, Faegheh Hasibi, Suzan Verberne

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

I-Fan Lin

Leiden University

Leiden, The Netherlands

i.lin@liacs.leidenuniv.nl

Zhen Zhang

Shandong University

Qingdao, China

zhen.zhang.sdu@gmail.com

Faegheh Hasibi

Radboud University

Nijmegen, The Netherlands

faegheh.hasibi@ru.nl

Suzan Verberne

Leiden University

Leiden, The Netherlands

s.verberne@liacs.leidenuniv.nl

Abstract

Generative retrieval is known for its efficient end-to-end indexing and retrieval. In particular, numeric Document Identifiers (DocIDs) are generally more efficient because they are shorter and generally fixed-length sequences over a small vocabulary, requiring fewer decoding steps during beam search. However, they tend to generalize poorly to unseen documents and must be learned during indexing-stage training. In this paper, we propose a numeric DocID design for generative retrieval that enables better adaptation to unseen documents without retraining. Our DocID design inherits the language model's knowledge: each DocID is a sequence of tokens factorized into bits, and each token is scored as the sum of its bits. Unlike existing numeric DocIDs, whose tokens carry meaning only through embeddings memorized during indexing training, each bit here derives its meaning from the model's representation. Therefore, the DocIDs of unseen documents remain scorable without retraining.

Experiments on three benchmarks show that our DocID design substantially improves unseen-document retrieval while maintaining comparable performance on seen documents. It achieves over 20 percentage points higher Hit@10 on unseen documents and up to 7× lower inference latency than existing numeric DocID designs on NQ320K and TriviaQA, while performing only 3 percentage points below weight-update methods on MS MARCO without additional training. These results show that an appropriate DocID design can heavily reduce retraining costs when adapting generative retrievers to new documents.

1 Introduction

Generative Retrieval is a retrieval paradigm in which an input query text is directly matched to a document identifier (DocID) using a language model, typically a sequence-to-sequence model. Unlike conventional dense retrieval meth-

Figure

Figure 1: Our DocID design achieves comparable retrieval to the strongest baseline on seen documents, a clear margin on unseen documents, and the lowest latency of any method.

ods, which require a vector database or Approximate Nearest Neighbour (ANN) index to store document embeddings and perform nearest-neighbor search at inference time, generative retrieval retrieves documents by generating their DocID directly (Li et al., 2025). This design can offer inference and memory efficiency advantages (Kim et al., 2024).

Two different DocID designs exist for generative retrieval systems: numeric DocIDs and textual DocIDs. Both have their own strengths: Numeric DocIDs offer computational advantages, as they reduce the complexity of beam-search decoding (Wang et al., 2022; Sun et al., 2023; Zhao et al., 2025). In contrast, textual DocIDs can exploit the semantic priors encoded in pretrained language models and are able to give more interpretable document identifiers (Bevilacqua et al., 2022; Zhou et al., 2022; Askari et al., 2026).

One of the major challenges in current generative retrieval research is adapting to the retrieval of previously unseen documents. Generative retrieval models typically require an indexing stage during training, where the model learns to associate documents with their corresponding DocIDs. As a result, the model tends to be biased toward DocIDs seen during training. This lack of generalization is especially pronounced for numeric DocIDs (Zhang et al., 2025), but also textual DocIDs lead to substantially lower effectiveness on unseen than on seen documents (Zhang et al., 2025).

While incremental training methods adapt numeric DocIDs to new documents (Mehta et al., 2023; Kishore et al., 2023), updating model parameters remains computationally expensive. Recent model-editing approaches update only a small subset of parameters while achieving performance comparable to full retraining (Zhang et al., 2026b). However, editing the model for newly added documents still requires computation with each update, making frequent updates costly.

To address the poor adaptation of numeric DocIDs and the cost of updating model weights, we propose Computed Bit-Factorized Identifiers for Generative Retrieval (CoBIGR). CoBIGR represents each document with a sign-projection binary code of its document vector and factorizes the retrieval score over its identifier bits, which inherit the model's knowledge of the document rather than a memorized embedding learned from indexing training. Additionally, the proposed bit-factorized IDs are flat and their score is permutation-invariant. This property enables multi-tree beam search during inference, which substantially improves effectiveness on unseen documents, while scoring with one forward pass keeps decoding efficient (see Figure 1).

Our contributions are: (1) We propose a bit-factorized numeric DocID: its bits derive meaning from the language model, so unseen DocIDs can still be retrievable. (2) We study direct DocID adaptation to dynamic corpora without weight updates, addressing an underexplored gap in costly generative retrieval training. (3) Our experiments show that our approach achieves comparable performance on seen documents to prior DocID designs while substantially improving performance on unseen documents, with 40–60 percentage points higher Hit@1 and Hit@100 than other numeric DocIDs. It also remains within 3 percentage points of methods that update model weights. Our source code is available at https://anonymous.4open.science/r/bit_factorized_token-2C13/