Manuscript Offprint
arXiv:2609.08860REDSI: Addressing the Reproducibility and Evaluation Consistency of Differentiable Search Indexing for Document Retrieval
Abstract
The differentiable search index (DSI) framework (Tay et al., 2022) has become the de facto baseline for generative retrieval. However, DSI is hard to reproduce: no public implementation covers all three original document identifier types (atomic, naive, semantic), reported results vary widely, and the ubiquitous NQ320K dataset is built from Natural Questions through diverse and underspecified preprocessing. We introduce REDSI, the first open-source DSI implementation supporting all three identifier types, together with a parameterizable and well-documented NQ320K construction pipeline.
Experimentally, we achieve results that are competitive with or stronger than previous DSI baselines. Moreover, we conduct extensive experiments under model downscaling, covering retrieval effectiveness, parameter efficiency, training methods and decoding strategies, opening novel directions for future research.
1 Introduction
Generative retrieval (GR) has emerged as a new paradigm for information retrieval, in which documents relevant to a query are retrieved by generating their identifiers with an autoregressive language model (Cao et al., 2021; Tay et al., 2022).¹ Such systems require first defining how document identifiers are constructed, then fine-tuning a sequence-to-sequence model jointly for indexing and retrieval. In practice, most systems use T5 (Raffel et al., 2020) as their backbone.
The seminal paper by Tay et al. (2022) known as differentiable search index (DSI) has become a standard baseline for GR. It proposes several methods for constructing document identifiers: either using specific extra tokens in the decoder vocabulary (one token per document), called atomic identifiers, or as strings of numbers using the tokenizer’s original
vocabulary. For strings, they are either randomly assigned, called naive identifiers or they follow a structured “topic hierarchy” that is induced in an unsupervised fashion, called semantic identifiers.
However, we identify several limitations that prevent DSI from serving as a reliable baseline for future research, motivating the reproduction study presented in this paper. First, no publicly available implementation of DSI includes all document identifier types introduced in the original paper, which hinders fair comparison. Second, several papers report substantially lower results than the original paper using their own partial reimplementations (Chen et al., 2023; Zhou et al., 2022; Bevilacqua et al., 2022). Third, the most commonly used dataset for evaluation is Natural Questions (NQ, Kwiatkowski et al., 2019) which was originally designed for a different task, namely question answering. One must first transform NQ into a document retrieval dataset commonly known as NQ320K. This requires several preprocessing decisions such as textual content extraction and deduplication strategy that can have a drastic impact on the resulting data, meaning that different authors use the same name NQ320K for substantially different datasets. This makes it difficult to compare results reported by different authors.
In this work, we introduce REDSI, the first open-source implementation supporting all three original DSI identifier types under a common training and evaluation pipeline. REDSI also includes a parameterizable NQ320K construction pipeline. This enables controlled analysis of dataset construction and modeling choices.
Previous work, including the original DSI paper, has primarily studied increasingly large T5 models (Tay et al., 2022; Pradeep et al., 2023, inter alia). We argue that GR should be optimized for speed and therefore focus on robustness to downscaling the T5 backbone. Our results show that atomic identifiers outperform naive and semantic
¹See the survey by Li et al. (2025) and tutorial by Tang et al. (2024b).

Figure 1: MRR@10 versus number of parameters, including extra document token parameters for atomic identifiers. Dotted, solid, and dashed lines denote atomic, naive, and semantic identifiers, respectively. Results are reported for our NQ320K-TITLE/NCINORM dataset reconstruction.
identifiers at every evaluated model scale and retain substantially more effectiveness under downscaling the T5 backbone: a 44M-parameter atomic model exceeds a 220M-parameter model using naive or semantic identifiers, see Figure 1. Atomic identifiers are also faster to train.
Our contributions can be summarized as follows:
-
We develop REDSI, the first open-source DSI implementation supporting atomic, naive, and semantic identifiers under a common training and evaluation pipeline;²
-
We formalize NQ320K construction and release a parameterizable pipeline that can produce both the datasets used in previous work and our newly proposed variants.³
-
Using REDSI, we achieve results that are competitive with or stronger than previous DSI baselines;
-
We conduct extensive experiments under model downscaling, covering retrieval effectiveness, parameter efficiency, training methods and decoding strategies.
We then review subsequent works in generative retrieval and discuss the limitations of independently implemented DSI baselines that motivate our study.
2.1 Differentiable Search Index
Let be an encoder-decoder model parameterized by , with token vocabulary . Let be a document collection and a map that associates to each document its textual content, where is the Kleene closure of . In order to use to retrieve documents, we additionally need to define a map that assigns a unique identifier to each document.
Document identifiers. Tay et al. (2022) proposed three identifier types. Atomic refers to the assignment of one dedicated output token to each document, written as <doc_0000>, <doc_0001>, etc.⁴ In this setting, we have .
The other two types are based on tokenized decimal strings. Naive identifiers are arbitrary numerical sequences drawn from a predefined range, i.e., numbers from 0 to where is a budget hyper-parameter such that . Semantic identifiers instead encode paths through a hierarchy induced by clustering documents, see Appendix A.
Following Tay et al. (2022), for naive and semantic identifiers, the resulting decimal strings are tokenized using the model tokenizer, meaning that decoder steps need not correspond to individual digits, and for semantic identifiers they do not necessarily align with semantic tree levels. For example, “18510” may become the following sequence of three tokens: “18”, “510”, <eos>. These identifiers are multi-token, i.e., .⁵
Retrieval. Given a user query , retrieval aims to search for the most relevant documents in . For any , we assume that the model conditional probability can be used as a score of relevance, that is, the higher this probability, the more relevant the document is. As such, retrieval reduces to searching for the ranked list of most probable documents:
where is the arg sort operator truncated at the -th item.
²https://github.com/vingtetun/ReDSI ³https://huggingface.co/datasets/vingtetun/nq320k
⁴Therefore the vocabulary is enriched by tokens. ⁵Naive and semantic identifiers contain at least one decimal-string token followed by an end-of-sequence token.
The difficulty of computing depends on the identifier type. For atomic identifiers, computing is trivial as all identifiers are composed of a single token, and hence it simplifies to computing -best next tokens in the first position of the decoder. When document identifiers are of arbitrary length, computing becomes intractable when the number of documents is large. In practice, is approximated using beam search with width (Lowerre, 1976; Graves, 2012).
Training. To learn model , we rely on both and a training dataset , where each couple contains a user query and its associated most relevant document . The training objective is composed of an indexing term that aims to maximize the log-likelihood of document identifiers given their textual contents, and a retrieval term that aims to maximize the log-likelihood of documents identifiers given user queries:
Maximization is done via stochastic gradient ascent (Bottou and Le Cun, 2003) with initialized from a pretrained model.
2.2 Subsequent DSI Extensions
The original DSI identifier schemes have not received equal attention. Much subsequent work has focused on designing or improving multi-token identifiers. Content-derived or learned identifiers include document substrings in SEAL (Bevilacqua et al., 2022), learned discrete codes in GenRet (Sun et al., 2023), learnable -grams in NOVO (Wang et al., 2023), and permutation-invariant term sets in TSGen (Zhang et al., 2024). NCI (Wang et al., 2022a) instead modifies the decoder architecture to exploit hierarchical semantic identifiers. Wu et al. (2024) further relate multi-token generative retrieval to multi-vector dense retrieval (Khattab and Zaharia, 2020).
Although multiple studies investigate atomic identifiers for dynamic document collections (Mehta et al., 2023; Kishore et al., 2023; Huynh et al., 2025; Zhang et al., 2025), atomic identifiers have received comparatively little dedicated attention in static-corpus settings. Nguyen and Yates (2023) relate atomic DSI to single-vector dense
| Reported by | |D| | T5 | Hits@1 | ||
|---|---|---|---|---|---|
| At. | Nv. | Sm. | |||
| Complete identifier types coverage | |||||
| Original DSI | ~228K | B | 20.7 | 6.7 | 27.4 |
| Pradeep et al. (2023) | 109.7K | B+ | 60.0 | 58.4 | 58.7 |
| Partial identifier types coverage | |||||
| Zhou et al. (2022) | 231.7K | B | 20.2 | - | 13.2 |
| Bevilacqua et al. (2022) | ~200K | L° | - | - | 25.0 |
| Chen et al. (2023) | ~200K | B | - | 0.1 | 2.1 |
| Wang et al. (2023) | 109.7K | B | 49.4 | - | 38.2 |
| Lee et al. (2023) | unk. | L | - | 12.5 | - |
| Sun et al. (2023) | 109.7K | B | - | - | 55.2 |
| Zhou et al. (2024) | 231.7K | B | - | - | 27.4 |
| Tang et al. (2024a) | 228.0K | B | - | 22.1 | 27.9 |
| Zhang et al. (2024) | 109.7K | B | - | - | 53.3 |
| This work: ReDSI with different NQ320K variants | |||||
| TITLE/NCINORM | 109.7K | B | 62.0 | 55.3 | 55.2 |
| TITLE/HTMLNORM | 109.7K | B | 62.2 | 55.2 | 54.9 |
| PAGEID/NCINORM | 109.2K | B | 63.1 | 56.9 | 56.1 |
| PAGEID/HTMLNORM | 109.2K | B | 63.1 | 57.3 | 56.6 |
Table 1: Hits@1 of published DSI baselines on independently NQ-derived collections for all identifier types. T5 indicates the use of base (B) or large (L) version, with + for v1.1 instead of v1.0 and ○ for BART. A checkmark indicates that released code contains an implementation of the reported DSI baseline. For our work, we report several collection generation methods, see Section 3.
retrieval and propose to incorporate training techniques from the dense retrieval literature.
In this work, we argue that this imbalance is an important limitation of previous research. We therefore compare the three original DSI identifier types on a fixed collection under a common implementation. On NQ320K, the most commonly used DSI benchmark, we show that atomic identifiers outperform other types, with the gap widening under model size downscaling.
Closer to our work, Chen et al. (2023) analyze DSI's indexing and retrieval capabilities. Pradeep et al. (2023) examine corpus and model scaling across the original identifier types, including synthetic-query supervision, but do not release their code or processed data. More recently, Cai et al. (2025) study multi-token identifiers, but again mainly focusing on upscaling the model size. We instead implement all three original DSI identifier types in a common pipeline and explicitly examine their robustness when downscaling T5.
We refer readers to Li et al. (2025) for a broader survey of generative retrieval.
2.3 Prior DSI Baselines are not Comparable
Most generative retrieval works are evaluated on NQ320K, a dataset derived from Natural Questions (NQ, Kwiatkowski et al., 2019). Because neither the original DSI implementation nor the generated NQ320K⁶ collection were publicly released, later studies reconstructed the baseline independently. No published comparison covering all three original identifier types provides the complete combination of code, processed data and configurations required for exact reproduction. Table 1 summarizes several baseline results reported in the literature. We observe that the number of documents and baseline scores vary across reproductions, and that most works ignore atomic identifiers.
These reconstructed baselines differ in their datasets, training, evaluation and pretrained backbones. We address the dataset problem in Section 3. For training, the original DSI uses 32 times more samples for the Monte-Carlo estimation of the indexing expectation than for the retrieval one in Eq. (2), whereas later reimplementations often leave this information unspecified. Other hyper-parameters, such as the learning rate and number of optimization steps, differ across baselines or are incompletely reported. Although most papers use T5-Base v1.0, some use Large, v1.1 or BART (Lewis et al., 2020). Finally, for evaluation, retrieval in Eq. (1) may be approximated differently: DSI uses beam width 40 and may return invalid sequences, whereas GenRet uses constrained decoding with beam width 100 (Sun et al., 2023). As such, Table 1 shows that reported baseline results in the literature are not comparable.
NCI has become an influential reconstruction because it releases preprocessing scripts, code, processed data, checkpoints and results (Wang et al., 2022a,b). Although this contribution improves reproducibility, it propagates a particular NQ320K collection and evaluates semantic identifiers exclusively. Importantly, their NQ320K dataset differs from the original DSI paper in terms of document collection size. Instead, we propose a dataset construction pipeline that reproduces several variants used in the literature, including novel design possibilities, while supporting additional design choices, as described in Section 3.
Note that differences in NQ320K construction even impact generative retrieval research beyond
| Collection | Train | Dev | |D| |
|---|---|---|---|
| Original DSI dataset | – | – | 228 K |
| NQ320K-TEXT4K | 198.2 K | 7.3 K | 202.2 K |
| NQ320K-TITLE | 108.1 K | 6.9 K | 109.7 K |
| NQ320K-URL | 226.2 K | 7.4 K | 231.7 K |
| NQ320K-PAGEID | 107.6 K | 6.9 K | 109.2 K |
Table 2: Number of documents produced by each deduplication rule in the training split, development split, and combined collection.
DSI, e.g., Mekonnen et al. (2025) compare their results with those of Zhou et al. (2023), although the two works use different dataset reconstructions.⁷
3 Reconstructing NQ320K
Natural Questions (NQ, Kwiatkowski et al., 2019) is a question-answering dataset , where each example associates a user question with a Wikipedia page snapshot and an answer annotation . To repurpose NQ for document retrieval, a natural construction is to build a document collection and query-document pairs for training and evaluation. This construction, however, is underspecified.
First, NQ stores a separate snapshot for every example, so the same Wikipedia page may appear in several revisions.⁸ Constructing the document collection requires a deduplication rule that decides whether two snapshots should be merged as the same document, including across content revisions and title changes.
Second, each snapshot is a complete HTML page from which a textual input representation must be constructed. We must extract the article’s main textual content in a format that can then be used to build . We call this process serialization. As DSI-style models use only the first few dozen tokens of the serialized document, this process may have a significant impact on the indexing term in Equation (2).
3.1 Document Deduplication
NQ stores one Wikipedia snapshot for each question, so the same underlying page may occur multiple times and under different revisions. Construct-
⁶The number “320K” refers to the number of queries in the NQ dataset, not the document collection size in NQ320K.
⁷we deduplicate documents by title” (Mekonnen et al., 2025, Sec. 5.1) versus “We eliminate duplicate documents based on their URL” (Zhou et al., 2023, Sec. 5.1)
⁸https://en.wikipedia.org/wiki/Help:Page_history#Linking_to_a_specific_revision_of_a_page ing a retrieval collection therefore requires a comparison operator to determine whether two snapshots should be considered as the same document.
We reimplement three methods from previous work:
-
follows DSI by comparing the first 4000 characters of the serialized documents;
-
follows NCI by comparing tokenizer-normalized titles;⁹
-
follows Ultron by comparing revision-specific Wikipedia URLs.¹⁰
However, all these comparison operators are sensitive to (possibly minor) content revision. Comparing titles may even merge distinct pages.
We therefore propose to rely on the persistent Wikipedia PAGEID as a direct reference for page identity. The resulting operator considers two snapshots equivalent when they share the same PageID.¹¹ PageIDs are generally preserved across revisions and article renames, making this rule better aligned with page-level retrieval. Note that although we resolve 99.95% of identifiers, we fall back on titles for the missing ones.¹²
Table 2 shows that the deduplication strategy can change the collection size by more than a factor of two. It also changes query targets and identifier assignments used for training and evaluation. Reproducing DSI's rule is not straightforward. The paper defines uniqueness from the first 4,000 UTF-8 characters, but does not specify the source representation, normalization and truncation order, or whether “characters” denotes bytes or Unicode code points. None of the interpretations we examined reproduces the reported 228K documents. Our 202.2K-document reconstruction is instead close to the approximately 200K reported by Bevilacqua et al. (2022). Appendix B.1 reports deduplication variants and resulting collection sizes and Appendix B.2 documents our PageID recovery.
3.2 Document Serialization
To simplify its use, NQ’s authors provided a pre-processed version of the HTML content, where the main article body is extracted from the raw HTML page and tokenized into words and tags (Google AI Language Team, 2018). Nonetheless, it cannot be used directly as the extracted content contains a lot of extra information that one may want to remove, such as navigation content¹³ and infoboxes.¹⁴
Previous work (NCINORM). Existing DSI baselines use different methods to extract document content, often with insufficient pipeline details. We therefore focus on the publicly available NCI preprocessing pipeline (Wang et al., 2022b), which is a de facto standard, and refer to it as NCIORM.
The document text is reconstructed from the pre-processed NQ data rather than from raw HTML. Each document is formed by concatenating its title¹⁵ and first paragraph.¹⁶,¹⁷ A drawback of this approach is that it inherits artifacts from the NQ preprocessing pipeline, including incorrect word spacing and unwanted character substitutions,¹⁸ which alter the resulting model tokenization. This heuristic may also select the wrong content, e.g., the first <p> element can occur inside an infobox.¹⁹
Proposed method (HTMLNORM). We introduce a configurable HTML-based reconstruction pipeline that reconstructs the text from the original HTML content, and can therefore bypass NQ preprocessing artifacts and preserve the original word tokenization. Moreover, our pipeline is fully parameterizable, which allows future work to build different versions if necessary, i.e., with Wikipedia-specific elements to be retained, removed, or updated according to configurable rules. The complete reconstruction, serialization, and cleanup procedure is described in Appendix C.
In the HTMLNORM configuration used in this paper, we remove interface and navigation content, infoboxes, and other non-article artifacts, while
⁹A page rename changes the title key, so revisions of the same Wikipedia page may be treated as distinct documents. ¹⁰A single-character edit is sufficient to create a new revision URL, causing two otherwise nearly identical snapshots of the same page to be treated as distinct documents. ¹¹https://www.mediawiki.org/wiki/Manual:Page_table#page_id ¹²PageIDs are not provided directly in NQ, so we recover them by resolving the revision identifiers against a Wikipedia revision-history dump.
¹³https://en.wikipedia.org/wiki/Wikipedia:Navigation_template ¹⁴https://en.wikipedia.org/wiki/Help:Infobox ¹⁵For training records, the title is extracted from the first <h1> element; for development records, it is read from the dataset's document_title field. See Appendix D.1. ¹⁶The content of the first <p> element. ¹⁷The content after the first paragraph is only used to build semantic identifiers. ¹⁸Statistics on substitutions are reported in Appendix D.2. ¹⁹Because infoboxes precede the article introduction, a <p> element within an infobox may be selected first.
| NCINORM HTMLNORM | selena gomez selena marie gomez ( / s<unk>li<unk>n<unk> <unk>o<unk>m |
|---|---|
| selena gomez selena marie gomez is an american singer and actress. she began her career starring in the children | |
| NCINORM HTMLNORM | matt lanter matthew mackendree <unk> matt " lanter ( born april 1, |
| matt lanter matthew mackendree "matt" lanter (born april 1, 1983) is an american |
Table 3: Two examples of the difference between serialization methods. We show here the resulting mapping that returns the first 32 tokens using the T5 tokenizer, where <unk> is the token representing unknown characters.
| Ratio | MRR@10 | ||
|---|---|---|---|
| Atomic | Naive | Semantic | |
| 0:1 | 56.35 | 50.03 | 49.92 |
| 1:2.8 (natural) | 69.42 | 60.07 | 59.10 |
| 1:1 | 69.76 | 60.25 | 58.33 |
| 4:1 | 66.84 | 59.01 | 57.40 |
| 8:1 | 64.15 | 58.95 | 56.21 |
| 16:1 | 61.44 | 58.49 | 55.35 |
| 32:1 | 60.51 | 55.07 | 52.40 |
| 64:1 | 59.29 | 50.88 | 48.87 |
Table 4: Sensitivity of T5-Base to the indexing-to-retrieval ratio on NQ320K-TITLE/NCINORM.
transforming HTML elements such as lists and tables into text format. We also remove leading parenthetical spans containing characters unsupported by the T5 tokenizer, typically pronunciation annotations in the International Phonetic Alphabet (International Phonetic Association, 1999), because they produce several unknown tokens and can consume a substantial fraction of the fixed input budget.
Table 3 shows two examples of the textual content produced by the two serialization methods. HTMLNORM removes many unknown tokens. Moreover, as NCINORM is derived from the preprocessed NQ data, it inherits incorrect word spacing that alters T5 tokenization and consumes additional input positions. Details are given in Appendix D.3.
4 Experimental Setup
To build , we retain the first tokens given by the T5 tokenizer for each document. For naive identifiers, we follow Tay et al. (2022) and set the assignment-space budget to .
We evaluate on NQ development queries using Hits@1, Hits@10, and MRR@10. Atomic identifiers are ranked directly from the first decoder-step distribution. We use unconstrained beam search with width 40 for multi-token identifiers, followed by a filtering step against the set of valid identifiers.
We optimize all models with Adafactor (Shazeer and Stern, 2018), using a constant learning rate, 1M updates and minibatches of size 128, with evaluation every 5K updates. Checkpoints are selected by development MRR@10.
Hyperparameter search. We separately tune each identifier type over , learning rates , and warmup durations .²⁰ Complete search results and details are provided in Appendices F and G.
Indexing-to-retrieval ratio. The expectations in Eq. (2) are estimated with different numbers of samples. An indexing-to-retrieval ratio of means that for samples used to approximate the indexing term, there are samples used to approximate the retrieval term, no matter the minibatch size. We call “natural ratio” the ratio that results from sampling all elements of and once, without replacement, in a full iteration over the training data.
Although this hyperparameter is widely overlooked (and even unreported) in the literature, the results in Table 4 show that it has a drastic impact. On average, the natural ratio 1:2.8 works best, and we therefore use it instead of the 32:1 ratio reported in DSI. Extra results are given in Appendix E.
Comparison to prior DSI baselines. Table 1 contextualizes REDSI with a T5-Base backbone against published DSI baselines on NQ-derived collections. Our results are comparable to the reproduction by Pradeep et al. (2023), but our pipeline is publicly available. When deduplicating by PAGEID instead of TITLE as in NCI, we obtain higher Hits@1 for both serialization methods (NCINORM and HTMLNORM). By contrast, the two serialization methods yield small differences. This may be because the model observes only the first tokens of each document and, under our minibatch sample composition, receives substantially more retrieval than indexing supervision, making the indexing term in Eq. (2) comparatively less influential. Nonetheless, HTMLNORM will be useful for future work that relies more on the textual content of documents.
²⁰We follow DSI choices for hyperparameter values.

Figure 2: MRR@10 on NQ320K-TITLE/NCINORM versus wall-clock time for T5-Base. Hollow markers show the first checkpoint reaching 95% of peak MRR@10, and filled markers show the final selected checkpoint. Dotted, solid, and dashed lines denote atomic, naive, and semantic identifiers.
5 Identifier Type Robustness under Downscaling
We cross two deduplication rules, and , with two document representations, NCINORM and HTMLNORM. This design varies each reconstruction choice while holding the other fixed. The NQ320K-TITLE/NCINORM configuration follows the influential NCI reconstruction. Replacing NCINORM with HTMLNORM tests HTML-aware surface reconstruction, whereas replacing with tests persistent page identity rather than normalized titles. We compare three T5 backbone scales: Efficient-Tiny (16M parameters), Small (60M) and Base (220M).
Table 5 reports results across identifier types and model scales. Supplementary results about variance across training runs are given in Appendix H.
Atomic identifiers always outperform other types. Atomic identifiers introduce document-specific output embeddings. The resulting atomic models contain 44M, 116M, and 304M trainable parameters for T5-Efficient-Tiny, T5-Small, and T5-Base, respectively. Parameter count also understates the inference advantage of atomic identifiers, which require one decoder step rather than autoregressive generation.
Figure 1 shows that atomic identifiers are substantially more robust to backbone downscaling. From T5-Base to T5-Efficient-Tiny, atomic MRR@10 decreases by 6.6 points, compared with 13.6 for naive and 12.2 for semantic identifiers.
tifiers. Moreover, the 44M-parameter atomic model reaches 62.2 MRR@10, outperforming the 220M-parameter T5-Base models with naive (60.1) and semantic (59.7) identifiers. Atomic identifiers therefore retain effectiveness substantially better under downscaling and provide the strongest effectiveness–parameter trade-off.
Atomic identifiers enable faster training. As shown in Figure 2, for T5-Base, training with atomic identifiers reaches its peak MRR@10 after 6.8 hours (~65K updates), whereas naive and semantic identifiers continue improving beyond 74.5 hours (~900K updates). Atomic identifiers thus combine higher effectiveness with substantially faster training.
Semantic identifiers are more robust to invalid generation. Models with multi-token identifiers may generate invalid identifiers. In Figure 3, we compare Invalid@40, the mean proportion of invalid hypotheses in the unconstrained 40-best beam, with MRR@10. We observe that semantic identifiers produce fewer invalid hypotheses than naive identifiers at every scale.
For naive identifiers the proportion of invalid identifiers increases with the smallest backbone, whereas it drastically decreases for semantic identifiers. Moreover, for this smallest model the MRR@10 is higher for semantic identifiers (47.5 MRR@10 compared with 46.5). This suggests that semantic structure may become more beneficial at smaller model scales, opening up avenues for future research on downscaling DSI models. Additional comparisons are given in Appendix I.
Downscaling does not require constrained decoding. A common approach to guarantee valid generated identifiers is to rely on constrained decoding (Cao et al., 2021). Table 6 compares unconstrained decoding, unconstrained decoding with post-filtering (i.e., removing invalid identifiers) and constrained decoding. Constrained decoding provides no consistent improvement over simple post-filtering, even when downscaling the model. Thus, in our setting, smaller T5 backbones do not require complex decoding to retain retrieval effectiveness.
6 Qualitative Analysis of NQ320K
In this section, we focus on the NQ320K dataset construction pipeline analysis.
At the smaller scales, we reuse the identifier-specific hyperparameters selected for T5-Base without returning.
See Appendix J for further details.
| Configuration | Model | Atomic | Naive | Semantic | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| H@1 | H@10 | MRR@10 | H@1 | H@10 | MRR@10 | H@1 | H@10 | MRR@10 | ||
| NQ320K-TITLE/NCINORM | Base | 62.0 | 81.2 | 68.8 | 55.3 | 69.4 | 60.1 | 55.2 | 68.4 | 59.7 |
| Small | 58.6 | 78.3 | 65.5 | 51.5 | 64.5 | 56.2 | 50.1 | 63.9 | 54.8 | |
| Eff.-Tiny | 55.6 | 74.9 | 62.2 | 42.4 | 53.8 | 46.5 | 42.9 | 56.1 | 47.5 | |
| NQ320K-PAGEID/NCINORM | Base | 63.1 | 82.2 | 69.8 | 56.9 | 70.2 | 61.6 | 56.1 | 70.1 | 60.9 |
| Small | 59.8 | 79.0 | 66.5 | 52.3 | 65.6 | 57.0 | 51.4 | 65.3 | 56.1 | |
| Eff.-Tiny | 56.4 | 75.7 | 63.2 | 43.4 | 55.6 | 47.8 | 44.1 | 57.5 | 48.8 | |
| NQ320K-TITLE/HTMLNORM | Base | 62.2 | 81.2 | 68.8 | 56.2 | 69.8 | 61.0 | 54.9 | 69.4 | 60.0 |
| Small | 59.4 | 78.4 | 65.9 | 51.6 | 64.8 | 56.2 | 50.4 | 64.6 | 55.2 | |
| Eff.-Tiny | 55.8 | 75.2 | 62.5 | 42.4 | 55.4 | 47.0 | 43.3 | 56.6 | 47.8 | |
| NQ320K-PAGEID/HTMLNORM | Base | 63.1 | 82.6 | 70.0 | 57.3 | 70.5 | 62.0 | 56.6 | 69.8 | 61.1 |
| Small | 60.0 | 79.6 | 66.9 | 52.4 | 65.5 | 57.1 | 51.1 | 65.0 | 55.9 | |
| Eff.-Tiny | 56.8 | 75.8 | 63.4 | 42.6 | 55.1 | 47.0 | 44.2 | 57.6 | 48.7 | |
Table 5: Comparison across document-text constructions, deduplication rules, identifier types, and T5 model scales. Configuration denotes the document-text construction and deduplication rule; all values are percentages. Bold marks the highest MRR@10 among the four reconstruction configurations for each identifier type and model scale.

Figure 3: Post-filtered MRR@10 and Invalid@40 across model scales on NQ320K-TITLE/NCINORM. Solid and dashed lines denote naive and semantic identifiers, while square, triangle, and circle markers denote T5-Efficient-Tiny, T5-Small, and T5-Base.
Document deduplication. fragments 550 resolved Wikipedia pages and creates cross-page collisions involving 93 PageIDs, affecting 1.62% of training queries and 2.54% of development queries. deduplication associates 1,054 additional training queries with development-target documents, increasing supervision coverage from 75.3% to 76.4%. Table 7 illustrates title-induced page fragmentation and cross-page collisions.
Document-text construction. Within the first 32 T5 tokens, NCINORM and HTMLNORM differ for 92.6% of documents, while the proportion containing at least one <unk> falls from 18.7% to 1.6%.
7 Conclusion
We release REDSI, an open-source DSI implementation supporting all original identifier types,
| Identifier | Model | Unc. | Post. | Trie | ||
|---|---|---|---|---|---|---|
| Naive | T5-Base | 59.53 | 59.98 | 59.99 | +0.45 | +0.01 |
| T5-Small | 55.80 | 56.25 | 56.26 | +0.45 | +0.01 | |
| T5-Eff.-Tiny | 45.73 | 46.51 | 46.53 | +0.78 | +0.02 | |
| Semantic | T5-Base | 59.46 | 59.61 | 59.21 | +0.15 | -0.40 |
| T5-Small | 54.69 | 54.83 | 54.23 | +0.14 | -0.60 | |
| T5-Eff.-Tiny | 47.42 | 47.50 | 47.52 | +0.08 | +0.02 |
Table 6: MRR@10 across model scales under unconstrained (Unc.), post-filtered (Post.) and trie-constrained (Trie) decoding on NQ320K-TITLE/NCINORM. is post-filtered minus unconstrained MRR@10, and is trie-constrained minus post-filtered MRR@10.
| Document A | Document B |
|---|---|
| Fragmentation: one PageID, multiple titles | |
| Title Elsa (Disney) | Elsa (Frozen) |
| PageID | 41312390 |
| Collision: one title key, multiple PageIDs | |
| Title It Takes a Village | It takes a village |
| PageID 2308910 | 12185842 |
Wikipedia pages can be accessed using https://en.wikipedia.org/?curid=PAGEID.
Table 7: Examples of fragmentation and cross-page collision under .
together with a parameterizable NQ320K construction pipeline. By separating document deduplication from serialization, we show that both choices affect retrieval effectiveness: NQ320K-PAGEID yields larger and more consistent gains over NQ320K-TITLE, while HTMLNORM provides modest improvements over NCINORM.
Moreover, we conduct extensive experiments showing the robustness of the DSI framework when downscaling the T5 backbone. Atomic identifiers achieve the strongest effectiveness, degrade least under downscaling, and train substantially faster.
Together, REDSI and the named NQ320K variants provide a reproducible basis for evaluating future DSI-style systems. Our HTMLNORM variant will be especially useful for future work that relies more on the textual content of documents.
Limitations
Our controlled experiments are restricted to English NQ-derived collections and T5-family backbones ranging from T5-Efficient-Tiny to T5-Base. The relative behavior of identifier types may differ on other corpora, tokenizers, architectures, or substantially larger and dynamic collections. In particular, atomic identifiers add one output vector per document, so their favorable effectiveness-parameter trade-off on a 109.7K-document collection does not establish their scalability to millions of documents. Moreover, the smaller backbones reuse hyperparameters selected on T5-Base; this deliberately measures robustness under a fixed training configuration rather than the best attainable performance at each scale. Unfortunately, extensive grid search is costly in terms of computational resources.
References
Michele Bevilacqua, Giuseppe Ottaviano, Patrick Lewis, Scott Yih, Sebastian Riedel, and Fabio Petroni. 2022. Autoregressive search engines: Generating substrings as document identifiers. Advances in Neural Information Processing Systems, 35:31668–31683.
Léon Bottou and Yann Le Cun. 2003. Large scale online learning. In Advances in Neural Information Processing Systems, volume 16. MIT Press.
Hongru Cai, Yongqi Li, Ruifeng Yuan, Wenjie Wang, Zhen Zhang, Wenjie Li, and Tat-Seng Chua. 2025. Exploring training and inference scaling laws in generative retrieval. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 1339–1349.
Nicola De Cao, Gautier Izacard, Sebastian Riedel, and Fabio Petroni. 2021. Autoregressive entity retrieval. In Proceedings of the 9th International Conference on Learning Representations.
Xiaoyang Chen, Yanjiang Liu, Ben He, Le Sun, and Yingfei Sun. 2023. Understanding differential search index for text retrieval. In Findings of the Association for Computational Linguistics: ACL 2023, pages 10701–10717, Toronto, Canada. Association for Computational Linguistics.
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota. Association for Computational Linguistics.
Google AI Language Team. 2018. Natural questions text utilities. https://github.com/google-research-datasets/natural-questions/blob/master/text_utils.py. Accessed 2026.
Alex Graves. 2012. Sequence transduction with recurrent neural networks. In Representation Learning Worksop.
Tuan-Luc Huynh, Thuy-Trang Vu, Weiqing Wang, Yinwei Wei, Trung Le, Dragan Gasevic, Yuan-Fang Li, and Thanh-Toan Do. 2025. PromptDSI: Prompt-Based Rehearsal-Free Continual Learning for Document Retrieval, pages 383–401.
International Phonetic Association. 1999. Handbook of the international phonetic association. Cambridge University Press, Cambridge, England.
Omar Khattab and Matei Zaharia. 2020. Colbert: Efficient and effective passage search via contextualized late interaction over bert. In Proceedings of the 43rd International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '20, pages 39–48, New York, NY, USA. Association for Computing Machinery.
Varsha Kishore, Chao Wan, Justin Lovelace, Yoav Artzi, and Kilian Q Weinberger. 2023. IncDSI: Incrementally updatable document retrieval. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 17122–17134. PMLR.
Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, Kristina Toutanova, Llion Jones, Matthew Kelcey, Ming-Wei Chang, Andrew M. Dai, Jakob Uszkoreit, Quoc Le, and Slav Petrov. 2019. Natural questions: A benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:452–466.
Hyunji Lee, Jaeyoung Kim, Hoyeon Chang, Hanseok Oh, Sohee Yang, Vladimir Karpukhin, Yi Lu, and Minjoon Seo. 2023. Nonparametric decoding for generative retrieval. In Findings of the Association for Computational Linguistics: ACL 2023, pages 12642–12661.
Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. 2020. BART: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 7871–7880.
Xiaoxi Li, Jiajie Jin, Yujia Zhou, Yuyao Zhang, Peitian Zhang, Yutao Zhu, and Zhicheng Dou. 2025. From matching to generation: A survey on generative information retrieval. ACM Transactions on Information Systems, 43(3).
Bruce T Lowerre. 1976. The harpy speech recognition system. Carnegie Mellon University.
Sanket Vaibhav Mehta, Jai Gupta, Yi Tay, Mostafa Dehghani, Vinh Q Tran, Jinfeng Rao, Marc Najork, Emma Strubell, and Donald Metzler. 2023. Dsi++: Updating transformer memory with new documents. In Proceedings of the 2023 conference on empirical methods in natural language processing, pages 8198–8213.
Kidist Amde Mekonnen, Yubao Tang, and Maarten de Rijke. 2025. Lightweight and direct document relevance optimization for generative information retrieval. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 1327–1338.
Thong Nguyen and Andrew Yates. 2023. Generative retrieval as dense retrieval. Preprint, arXiv:2306.11397.
Ronak Pradeep, Kai Hui, Jai Gupta, Adam Lelkes, Honglei Zhuang, Jimmy Lin, Donald Metzler, and Vinh Tran. 2023. How does generative retrieval scale to millions of passages? In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 1305–1321.
Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. 2020. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67.
Noam Shazeer and Mitchell Stern. 2018. Adafactor: Adaptive learning rates with sublinear memory cost. In International conference on machine learning, pages 4596–4604. PMLR.
Weiwei Sun, Lingyong Yan, Zheng Chen, Shuaiqiang Wang, Haichao Zhu, Pengjie Ren, Zhumin Chen, Dawei Yin, Maarten Rijke, and Zhaochun Ren. 2023. Learning to tokenize for generative retrieval. Advances in Neural Information Processing Systems, 36:46345–46361.
Yubao Tang, Ruqing Zhang, Jiafeng Guo, Maarten De Rijke, Wei Chen, and Xueqi Cheng. 2024a. List-wise generative retrieval models via a sequential learning process. ACM Transactions on Information Systems, 42(5):1–31.
Yubao Tang, Ruqing Zhang, Zhaochun Ren, Jiafeng Guo, and Maarten de Rijke. 2024b. SIGIR 2024 tutorial: Recent advances in generative information retrieval.
Yi Tay, Vinh Tran, Mostafa Dehghani, Jianmo Ni, Dara Bahri, Harsh Mehta, Zhen Qin, Kai Hui, Zhe Zhao, Jai Gupta, Tal Schuster, William W Cohen, and Donald Metzler. 2022. Transformer memory as a differentiable search index. In Advances in Neural Information Processing Systems, volume 35, pages 21831–21843. Curran Associates, Inc.
Yujing Wang, Yingyan Hou, Haonan Wang, Ziming Miao, Shibin Wu, Qi Chen, Yuqing Xia, Chengmin Chi, Guoshuai Zhao, Zheng Liu, Xing Xie, Hao Sun, Weiwei Deng, Qi Zhang, and Mao Yang. 2022a. A neural corpus indexer for document retrieval. In Advances in Neural Information Processing Systems, volume 35, pages 25600–25614. Curran Associates, Inc.
Yujing Wang and 1 others. 2022b. Natural questions dataset processing for neural corpus indexer. https://github.com/solidsea98/Neural-Corpus-Indexer-NCI/blob/main/Data_process/NQ_dataset/NQ_dataset_Process.ipynb. GitHub notebook.
Zihan Wang, Yujia Zhou, Yiteng Tu, and Zhicheng Dou. 2023. NOVO: Learnable and interpretable document identifiers for model-based ir. In Proceedings of the 32nd ACM International Conference on Information and Knowledge Management, pages 2656–2665.
Shiguang Wu, Wenda Wei, Mengqi Zhang, Zhumin Chen, Jun Ma, Zhaochun Ren, Maarten de Rijke, and Pengjie Ren. 2024. Generative retrieval as multi-vector dense retrieval. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '24, pages 1828–1838, New York, NY, USA. Association for Computing Machinery.
Peitian Zhang, Zheng Liu, Yujia Zhou, Zhicheng Dou, Fangchao Liu, and Zhao Cao. 2024. Generative retrieval via term set generation. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 458–468.
Zhen Zhang, Xinyu Ma, Weiwei Sun, Pengjie Ren, Zhumin Chen, Shuaiqiang Wang, Dawei Yin, Maarten de Rijke, and Zhaochun Ren. 2025. Replication and exploration of generative retrieval over dynamic corpora. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '25, pages 3325–3334, New York, NY, USA. Association for Computing Machinery.
Yujia Zhou, Zhicheng Dou, and Ji-Rong Wen. 2023. Enhancing generative retrieval with reinforcement learning from relevance feedback. In Proceedings of the 2023 Conference on Empirical Methods in
Natural Language Processing, pages 12481–12490, Singapore. Association for Computational Linguistics.
Yujia Zhou, Jing Yao, Zhicheng Dou, Yiteng Tu, Ledell Wu, Tat-Seng Chua, and Ji-Rong Wen. 2024. Roger: Ranking-oriented generative retrieval. ACM Transactions on Information Systems, 42(6):1–25.
Yujia Zhou, Jing Yao, Zhicheng Dou, Ledell Wu, Peitian Zhang, and Ji-Rong Wen. 2022. Ultron: An ultimate retriever on corpus with a model-based indexer. arXiv preprint arXiv:2208.09257.
A Semantic Identifiers
To assign semantic identifiers to documents, we follow DSI's original decimal-tree construction (Tay et al., 2022). Because our dataset-construction pipeline changes both the document collection and its textual contents (Section 3), we cannot reuse the semantic identifiers released by Wang et al. (2022b).
Documents are embedded with google/bert_uncased_L-8_H-512_A-8 (Devlin et al., 2019) from their text, truncated to 512 tokens. We then recursively partition the document embeddings using scikit-learn's KMeans with default parameters, creating 10 clusters at each internal node. Recursion stops once a cluster contains 100 or less documents. The sequence of cluster labels encountered along the root-to-leaf path forms a shared decimal prefix, after which documents within the terminal cluster receive consecutive local indices to ensure uniqueness. Figure 4 illustrates both the hierarchical construction of the identifier and its subsequent tokenization by T5.
We also illustrate naive tokenization in Figure 5 to emphasize the difference.
B Document Deduplication Diagnostics
B.1 Comparison Operators and Collection Sizes
Section 3.1 introduces the four principal comparison operators used for document deduplication. Here we provide their exact implementation details and additional variants used to isolate individual normalization choices.
Principal comparison operators. We define the different comparison operators by describing what strings extracted from documents they compare. uses the lowercase first 4,000 Unicode code points of the serialized document text. uses the complete revision-specific Wikipedia URL, including its oldid. follows NCI's split-dependent construction: it uses the first HTML <h1> element for training records and document_title for development records, followed by NCI's BERT-tokenize-and-decode normalization. The key is computed before document-text serialization. uses the recovered persistent Wikipedia page identifier, with the title-based fallback described in Section 3.1 for unresolved revisions.

Figure 4: Construction and tokenization of the semantic identifier 18510. Recursive k-means routes document d through local= clusters 1, 8, and 5, producing the semantic prefix= 185. Once the selected cluster contains 100 or less documents, d receives the leaf-local index 10. T5 generates the resulting identifier using the SentencePiece tokens corresponding to _18 and 510, followed by EOS.
Diagnostic variants. To isolate the effect of lowering, preserves case, compared to that relies on lowercase version of the same 4,000-code-point prefix. We similarly compare the title extracted from the Wikipedia URL before and after lowering ( and ), and the surface text of the first HTML <h1> element before and after lowering ( and ). Finally, applies NCI's BERT-tokenize-and-decode normalization to the lowercase <h1> text.

Figure 5: Construction and tokenization of the naive identifier 141913. The identifier space is randomly permuted using a fixed seed, and each document receives a distinct integer from the identifier space. T5 tokenizes the resulting decimal string as _14, 19, and 13, followed by end-of-sequence, with vocabulary IDs 968, 2294, 2368, and 1.
For operators that discard the original HTML structure, title-derived strings are computed beforehand and retained alongside the serialized document.
B.2 PageID Resolution
Natural Questions URLs identify source revisions through an oldid, but do not directly provide the corresponding Wikipedia PageID. We recover this mapping from the English Wikipedia stub-meta-history dump dated December 20, 2018.²³
Of the 231,695 distinct revision identifiers appearing in NQ, 231,589 resolve to a PageID, corresponding to a 99.95% resolution rate. The remaining 106 identifiers cover 156 NQ records. We
| Grouping key | Train | Dev | Union |
|---|---|---|---|
| Input records | 307,373 | 7,830 | 315,203 |
| Text-derived keys | |||
| TEXT4K-CASED | 198,918 | 7,280 | 202,970 |
| TEXT4K | 198,202 | 7,271 | 202,221 |
| URL-derived key | |||
| URL | 226,180 | 7,369 | 231,695 |
| Title-derived keys | |||
| URLTITLE-CASED | 108,071 | 6,930 | 109,712 |
| URLTITLE | 108,015 | 6,930 | 109,654 |
| H1-CASED | 108,998 | 6,935 | 110,660 |
| H1 | 108,036 | 6,930 | 109,676 |
| NCiH1 | 108,026 | 6,930 | 109,666 |
| TITLE | 108,026 | 6,930 | 109,739 |
| Page-identity key | |||
| PAGEID | 107,593 | 6,926 | 109,229 |
Table 8: Distinct NQ targets produced by different deduplication comparison operators ≡. Train and Dev apply grouping independently within each split. Union applies grouping jointly and gives the indexed collection size. The principal operators are TEXT4K, URL, TITLE, and PAGEID.
retain these records using a fallback key derived from the URL title and mark them as unresolved in the grouping audit.
Recovered PageIDs are used only to determine grouping. They do not imply that revision-specific texts are identical or determine which revision represents the resulting grouped document.
B.3 Revision-Specific Content Variation under a Shared Title
Records sharing a title may nevertheless contain substantially different revision-specific text. Title-based deduplication necessarily removes this revision-level distinction, regardless of whether the revisions belong to one persistent PageID or to distinct pages. The examples in Table 9 are therefore not included in our fragmentation or collision counts, which require resolved PageID evidence. They illustrate information that is lost when revision records are grouped by title alone.
The John Wick records distinguish the 2014 film from the broader franchise, while the I Can See Your Voice records distinguish the original South Korean program from the international franchise. These cases show that title equality does not guarantee identical or narrowly equivalent document text. Whether such revisions should form one retrieval document depends on whether the intended retrieval unit is a persistent Wikipedia page or a
²³https://archive.org/download/enwiki-20181220/enwiki-20181220-stub-meta-history.xml.gz
| Shared title | Revision A | Revision B |
|---|---|---|
| John Wick | oldid=804434627This article is about the 2014 film... | oldid=843537108This article is about the action film franchise... |
| I Can See Your Voice | oldid=805035333South Korean music show by Mnet... | oldid=826663643international mystery music game show franchise... |
Table 9: Examples of NQ records sharing a title but containing revision-specific text with different apparent scopes. These examples establish content variation but do not determine whether each pair shares a PageID.
revision-specific textual snapshot.
B.4 Rendered-Text Variation under a Fixed Revision
A fixed (title, oldid) pair does not always determine one unique document_text string in NQ. We observe 231,695 distinct revision URLs but 241,247 distinct flattened document texts. Inspection of representative cases suggests that some differences arise from Wikipedia template expansion during rendering.
In the first example in Table 10, the article contains the template {{Inflation|US|63|1986}}, whose rendered present-day value differs across records. The second contains {{USNumber1s}}, which generates a navigation list whose contents also vary. These examples show that an oldid identifies the underlying Wikipedia revision but does not necessarily determine a unique rendered text in Natural Questions. A revision URL therefore provides a stable source-revision key, but not a one-to-one mapping to the flattened document representation distributed in NQ.
C HTMLNORM Reconstruction and Serialization
HTMLNORM converts the full NQ representation into the textual document sequence used for indexing. The pipeline first recovers surface-faithful text from byte-aligned HTML spans, then serializes structured elements such as lists and tables, and finally applies Wikipedia-specific cleanup rules.
C.1 Byte-Aligned Span Recovery
Each full NQ record provides the rendered page in document_html and a sequence of document_tokens. Each token contains a string, a flag indicating whether it represents an HTML element, and byte offsets into document_html. The stored token strings are not always surface-faithful: they may normalize punctuation or otherwise differ from the corresponding spans in the rendered HTML. We therefore recover the surface form of each non-HTML token from its byte-aligned HTML span rather than using its stored token string.
Let denote the UTF-8 byte sequence of document_html, and let be the non-HTML tokens in document order. Token has byte interval , from which we recover
where norm decodes the UTF-8 span, resolves HTML entities, and applies Unicode NFKC normalization. This restores surface forms such as quotation marks, brackets, and punctuation that may differ in the stored NQ token strings.
The byte gap between consecutive textual tokens is
We use the gap and the intervening HTML structure to determine whether the recovered spans should be concatenated, separated by a space, or separated by a line break:
where
HTML markup alone therefore does not introduce spaces, while visible whitespace and block structure are preserved. This contrasts with the simplified NQ representation, which inserts a space between every pair of stored token strings irrespective of their original HTML spacing.
| Article and revision | Variant A | Variant B |
|---|---|---|
| We Are the Worldoldid=815185445List of Billboard Hot 100 number-one singles of 2008oldid=787133819 | raised over 141 million today)...By decade: 1930s, 1940s, 1950–1958, 1958–1969, 1970s,... | raised over 138 million today)...By decade: 1940s, 1950–1958, 1958–1969, 1970s, 1980s,... |
Table 10: Rendered-text variation among NQ records with the same Wikipedia revision identifier.
C.2 Serialization of Structured Elements
C.2.1 List Formatting
HTML lists are serialized into line-oriented text so that their item structure remains visible after removing the markup.
- Unordered lists (<ul>) use a hyphen marker for each item:
-
item
-
nested item
- Ordered lists (<ol>) retain explicit numbering and respect the HTML start attribute:
-
first item
-
second item
-
Nested lists are represented by indentation relative to their parent item;
-
Definition lists (<dl>, <dt>, and <dd>) are serialized as term-definition pairs:
term: definition
-
A definition without a preceding term is emitted as a standalone line;
-
Empty list items and items containing only structural markup are discarded.
These rules preserve distinctions that are lost when the NQ token strings are simply space-joined. For example,
<ol> <li>France</li> <li>Japan</li> </ol>is serialized as
-
France
-
Japan
rather than France Japan.
C.2.2 Table Formatting
HTML tables vary substantially in purpose and structure, so HTMLNORM selects a textual serialization according to the detected table layout.
- Two-column key-value tables are serialized as attribute-value pairs:
Born: July 1, 1900
Occupation: Physicist
- Tables with meaningful column headers are serialized row by row, with the headers propagated into each row:
Country: France ; Capital: Paris
Country: Japan ; Capital: Tokyo
-
Single-column tables are serialized as one line per non-empty row;
-
Matrix-like tables without a usable header structure are serialized by joining the non-empty cells of each row:
value A ; value B ; value C
- Empty tables and tables containing only structural or interface content are discarded.
This serialization favors locally interpretable textual facts over a flat concatenation of cells. Introductory infoboxes are handled separately by the Wikipedia-specific cleanup described below.
C.3 Wikipedia-Specific Cleanup
We remove elements that reflect the Wikipedia interface or article-navigation structure rather than the page content used for retrieval. In particular:
-
interface artifacts such as [edit] and [hide] are removed;
-
the introductory infobox table is discarded;
-
processing stops at footer-like sections whose normalized heading matches one of:
See also, References, Further reading, Bibliography, External links, Notes, Footnotes, Citations, Sources, Works cited, Contents, or Notes and references.
The removal of these sections prevents navigation links, citation lists, and interface text from consuming the fixed model-visible indexing prefix. Other lists and tables occurring in the article body are retained using the serialization rules in Appendices C.2.1 and C.2.2.
C.4 Pronunciation Cleanup
Wikipedia introductions frequently place pronunciation information immediately after the page title. These parenthetical spans may contain International Phonetic Alphabet symbols or other characters that are outside the T5 SentencePiece vocabulary and are therefore mapped to <unk>. Because documents are truncated to a short token prefix during indexing, such spans can consume several model-visible positions while contributing little retrieval content.
We apply a simple heuristic for cleanup. We inspect only the first parenthesized span beginning within the first 256 characters of the reconstructed document. The span is tokenized with the same T5 tokenizer used by the retrieval model. If its tokenization contains at least one <unk> token, the entire parenthetical span is removed; otherwise, it is retained unchanged.
Restricting the procedure to the first parenthetical span targets the conventional position of Wikipedia pronunciation annotations and avoids removing later parenthetical content throughout the document. The heuristic is nevertheless tokenizer-dependent and may occasionally remove an introductory parenthetical that is not a pronunciation; we therefore report it explicitly as part of the HTML-NORM construction.
C.5 Document Serialization Examples
Figure 6 compares document serialization methods.
D Natural Questions
This appendix describes the Natural Questions (NQ) data formats and illustrates how Wikipedia page content is represented after preprocessing.
| Field or information | Full | Simplified |
|---|---|---|
| example_id | ✓ | ✓ |
| question_text | ✓ | ✓ |
| question_tokens | ✓ | — |
| document_url† | ✓ | ✓ |
| document_title† | ✓ | — |
| document_html† | ✓ | — |
| document_tokens† | ✓ | — |
| document_text† | — | ✓ |
| Alignment information | ||
| Document-token HTML byte offsets† | ✓ | — |
| Long-answer token offsets | ✓ | ✓ |
| Long-answer byte offsets | ✓ | — |
| Short-answer token offsets | ✓ | ✓ |
| Short-answer byte offsets | ✓ | — |
Table 11: Availability of the principal fields and alignment information in the full and simplified NQ formats. Entries marked with † are used by at least one document-construction or grouping variant considered in this work. The byte offsets associated with document_tokens link each stored token to its original span in document_html.
D.1 NQ Formats
Natural Questions is distributed in two formats, referred to as full and simplified. In addition to metadata, a Wikipedia snapshot may be represented through the following fields:
-
document_html contains the original HTML snapshot;
-
document_tokens contains the article content selected by the NQ preprocessing pipeline and segmented into text and HTML-tag tokens;
-
document_text serializes document_tokens by inserting spaces between stored tokens and therefore does not preserve the original spacing;
-
document_title contains the Wikipedia page title, extracted from the HTML <title> element after removing the trailing - Wikipedia suffix.
Table 11 shows which fields are available in each format, and Figure 7 provides an example of both.
The training data is distributed in both full and simplified formats, whereas the development set is distributed only in the full format.
Unfortunately, the processing pipeline used to build the document_tokens field is unavailable. The content is tokenized into words and HTML
| SIMPLIFIEDList of woods - wikipedia List of woodsJump to : navigation, search This is a list of woods , in particular those most commonly used in the timber and lumber trade . Contents ( hide ) 1 Softwoods ( coniferous ) 2 Hardwoods ( angiosperms ) 3 Hardwoods ( monocotyledons ) 4 See also 5 References 6 External linksSoftwoods ( coniferous ) ( edit )Araucaria Hoop pine ( Araucaria cunninghamii ) Monkey puzzle tree ( Araucaria araucana ) Parana pine ( Araucaria angustifolia ) Cedar ( Cedrus ) Celery - top pine ( Phyllocladus asplenifolius ) Cypress ( Chamaecyparis , Cupressus , Taxodium ) Arizona cypress ( Cupressus arizonica ) Bald cypress , southern cypress ( Taxodium distichum ) Alerce ( Fitzroya cupressoides ) Hinoki cypress ( Chamaecyparis obtusa ) Lawson 's cypress ( Chamaecyparis lawsoniana ) Mediterranean cypress ( Cupressus sempervirens ) Douglas - fir ( Pseudotsuga menziesii ) Coast Douglas - fir ( Pseudotsuga menziesii var . menziesii ) Rocky Mountain Douglas - fir ( Pseudotsuga menziesii var . glauca ) European yew ( Taxus baccata ) Fir ( Abies ) Balsam fir ( Abies balsamea ) Silver fir ( Abies alba ) Noble fir ( Abies procera ) Pacific silver fir ( Abies amabilis ) Hemlock ( Tsuga ) Eastern hemlock ( Tsuga canadensis ) Mountain hemlock ( Tsuga mertensiana ) Western hemlock ( Tsuga heterophylla ) Huon pine , Macquarie pine ( Lagarostrobos franklinii ) Kauri ( New Zealand ) ( Agathis australis ) Queensland kauri ( Australia ) ( Agathis robusta ) Japanese nutmeg - yew , kaya ( Torreya nucifera ) Larch ( Larix ) European larch ( Larix decidua ) Japanese larch ( Larix ... [truncated] | SIMPLENORMList of woods This is a list of woods , in particular those most commonly used in the timber and lumber trade .Contents ( hide ) 1 Softwoods ( coniferous ) 2 Hardwoods ( angiosperms ) 3 Hardwoods ( monocotyledons ) 4 See also 5 References 6 External linksSoftwoods ( coniferous ) ( edit ) Araucaria Hoop pine ( Araucaria cunninghamii ) Monkey puzzle tree ( Araucaria araucana ) Parana pine ( Araucaria angustifolia ) Cedar ( Cedrus ) Celery - top pine ( Phyllocladus asplenifolius ) Cypress ( Chamaecyparis , Cupressus , Taxodium ) Arizona cypress ( Cupressus arizonica ) Bald cypress , southern cypress ( Taxodium distichum ) Alerce ( Fitzroya cupressoides ) Hinoki cypress ( Chamaecyparis obtusa ) Lawson 's cypress ( Chamaecyparis lawsoniana ) Mediterranean cypress ( Cupressus sempervirens ) Douglas - fir ( Pseudotsuga menziesii ) Coast Douglas - fir ( Pseudotsuga menziesii var . menziesii ) Rocky Mountain Douglas - fir ( Pseudotsuga menziesii var . glauca ) European yew ( Taxus baccata ) Fir ( Abies ) Balsam fir ( Abies balsamea ) Silver fir ( Abies alba ) Noble fir ( Abies procera ) Pacific silver fir ( Abies amabilis ) Hemlock ( Tsuga ) Eastern hemlock ( Tsuga canadensis ) Mountain hemlock ( Tsuga mertensiana ) Western hemlock ( Tsuga heterophylla ) Huon pine , Macquarie pine ( Lagarostrobos franklinii ) Kauri ( New Zealand ) ( Agathis australis ) Queensland kauri ( Australia ) ( Agathis robusta ) Japanese nutmeg - yew , kaya ( Torreya nucifera ) Larch ( Larix ) European larch ( Larix decidua ) Japanese larch ( Larix kaempferi ) Tamarack ( Larix laricina ) Western larch ... [truncated] | HTMLNORMList of woodsThis is a list of woods, in particular those most commonly used in the timber and lumber trade.Softwoods (coniferous)- Araucaria- Hoop pine ( Araucaria cunninghamii )- Monkey puzzle tree ( Araucaria araucana )- Parana pine ( Araucaria angustifolia )- Cedar ( Cedrus )- Celery-top pine ( Phyllocladus asplenifolius )- Cypress ( Chamaecyparis, Cupressus, Taxodium )- Arizona cypress ( Cupressus arizonica )- Bald cypress, southern cypress ( Taxodium distichum )- Alerce ( Fitzroya cupressoides )- Hinoki cypress ( Chamaecyparis obtusa )- Lawson's cypress ( Chamaecyparis lawsoniana )- Mediterranean cypress ( Cupressus sempervirens )- Douglas-fir ( Pseudotsuga menziesii )- Coast Douglas-fir ( Pseudotsuga menziesii var. menziesii )- Rocky Mountain Douglas-fir ( Pseudotsuga menziesii var. glauca )- European yew ( Taxus baccata )- Fir ( Abies )- Balsam fir ( Abies balsamea )- Silver fir ( Abies alba )- Noble fir ( Abies procera )- Pacific silver fir ( Abies amabilis )- Hemlock ( Tsuga )- Eastern hemlock ( Tsuga canadensis )- Mountain hemlock ( Tsuga mertensiana )- Western hemlock ( Tsuga heterophylla )- Huon pine, Macquarie pine ( Lagarostrobos franklinii )- Kauri ( New Zealand ) ( Agathis australis )- Queensland kauri ( Australia ) ( Agathis robusta )- Japanese nutmeg-yew, kaya ( Torreya nucifera )- Larch ( Larix )- European larch ( Larix decidua )- Japanese larch ( Larix kaempferi )- Tamarack ( Larix laricina )- Western larch ( Larix occidentalis )- Pine ( Pinus )- European black pine ( Pinus nigra )- Jack pine ( Pinus banksiana )- Lodgepole pine ( Pinus ... [truncated ] |
Figure 6: Three textual representations constructed from the same NQ page snapshot. SIMPLIFIED removes the stored HTML tags but retains the flattened token sequence and page-interface content. SIMPLENORM selects the title, abstract, and subsequent article content from that sequence. HTMLNORM reconstructs the original surface text from the byte-aligned HTML and preserves readable structure. Excerpts are truncated to the same display budget.
tags, including byte offsets that retain a link to the original full HTML page. However, the tokenized strings may already contain substitutions, and these substitutions can alter the resulting T5 tokenization. We analyze these substitutions in Appendix D.2.
D.2 Character Substitutions in the NQ Preprocessing Pipeline
To characterize information lost by the NQ preprocessing pipeline, we compare each visible token string in document_tokens with its byte-aligned span in document_html. We exclude HTML-tag tokens, compare case-insensitively, and treat HTML-entity-equivalent forms as matches. Across
{ "example_id": 6915606477668963399, "question_text": "what do the 3 dots mean in math", "question_tokens": [ "what", "do", "the", "3", "dots", "mean", "in", "math" ], "document_url": "https://en.wikipedia.org//w/index.php?title=Therefore_sign&oldid=815234923", "document_title": "Therefore sign", "document_html": "<!DOCTYPE html><n<HTML_class="client-js ve-not-available" lang="en" dir="ltr"><HEAD>\n<TITLE>Therefore sign - Wikipedia</TITLE>\n...", "document_tokens": [ { "token": "Therefore" }, "html_token": false, "start_byte": 92, "end_byte": 101, ], "long_answer_candidates": [ { "top_level": "true", "start_token": 14, "end_token": 808, "start_byte": 41427, "end_byte": 66428 }, ... ], "annotations": [ { "annotation_id": 13591449469826568799, "long_answer": { "candidate_index": 92, "start_token": 808, "end_token": 925, "start_byte": 66429, "end_byte": 67824 }, "short_answers": [ { "start_token": 816, "end_token": 837, "start_byte": 66588, "end_byte": 66817 } ], "yes_no_answer": "NONE" }, ... ] }
{ "example_id": 6915606477668963399, "question_text": "what do the 3 dots mean in math", "document_url": "https://en.wikipedia.org//w/index.php?title=Therefore_sign&oldid=815234923", "document_text": "Therefore sign - wikipedia <H1> Therefore sign </H1> Jump to : navigation , search
Figure 7: Example NQ page record in the full format (left) and simplified format (right).
the 7,830 development records, 1.88M of 54.13M compared tokens differ from their original spans, corresponding to 3.47% of the tokens and 22,333 distinct replacement pairs. The ten most frequent pairs, shown in Table 12, account for 94.6% of all observed mismatches.
Most mismatches arise from systematic normalization of quotation marks, dashes, and brackets rather than isolated corruption. These substitutions always change the surface form and may change the T5 token sequence even when neither form produces <unk>. Their effect on vocabulary coverage is not uniform: for example, the stored opening-quotation token introduces an
unknown token, whereas replacing braces with parentheses removes one. Representations built from document_tokens as SIMPLENORM inherit these transformations. In HTMLNORM, we instead recover the corresponding byte spans from document_html.
D.3 Whitespace Artifacts and T5 Tokenization
The NQ preprocessing pipeline segments article content into text and HTML-tag tokens. Reconstructing a textual sequence by inserting spaces between these stored tokens can introduce whitespace artifacts and punctuation changes, which in
| HTML | Stored token | Contains <unk> | Count | Records | |
|---|---|---|---|---|---|
| HTML | Stored | ||||
| " | " | - | ✓ | 564,605 | 7,830 |
| " | " | - | - | 555,899 | 7,830 |
| - | - | - | - | 289,496 | 6,902 |
| ] | ) | - | - | 145,151 | 7,791 |
| [ | ( | - | - | 144,996 | 7,791 |
| - | - | - | - | 30,361 | 3,970 |
| { | ( | ✓ | - | 18,845 | 351 |
| } | ) | ✓ | - | 18,804 | 366 |
| 's | 's | - | - | 6,965 | 2,217 |
| " | " | - | - | 4,528 | 556 |
Table 12: Most frequent substitutions between visible strings in document_tokens and their byte-aligned spans in document_html on the NQ development set. HTML entities are shown after unescaping. Under the two <unk> columns, ✓ indicates that the corresponding string produces an unknown token with the T5 tokenizer, while – indicates that it does not. The same quotation-mark character is mapped to opening “ or closing ” tokens according to context. Count gives the number of token occurrences, and Records gives the number of affected NQ examples. These ten replacement pairs account for 94.6% of all observed mismatches.
turn alter the subsequent T5 tokenization.
Consider the subsequence “matt” lanter (born april 1,” from the second example in Table 3. The NQ preprocessing pipeline transforms it into “matt ” lanter ( born april 1 ,”. As such, if we compare the result of the T5 tokenization on (1) the output of NCINORM versus (2) the output of HTMLNORM, we obtain (underlining the main differences and using _ for whitespace characters):
-
“mat”, “'t”, “”, “'”, “”, “”, “lant”, “er”, “_()”, “born”, “”, “a”, “pri”, “1”, “1”, “”, “”.
-
“mat”, “t”, “”, “”, “lant”, “er”, “()”, “born”, “”, “a”, “pri”, “1”, “_1”, “.
Compared with NCINORM, HTMLNORM avoids additional tokens introduced by whitespace artifacts, which would otherwise consume positions in the fixed-length input budget.
E Indexing-to-Retrieval Ratio
The expectations in Eq. (2) are estimated with different numbers of samples. In this appendix, an indexing-to-retrieval ratio of means than for samples to approximate the indexing term, there are samples to approximate the retrieval term, no matter the minibatch size.
DSI reports sampling indexing and retrieval examples at an indexing-to-retrieval ratio of 32:1 (Tay et al., 2022). Our default instead follows their natural frequency in NQ320K-TITLE/NCINORM: each document contributes one indexing example and each labeled query contributes one retrieval example, yielding an approximately 1:2.8 ratio. We evaluate this choice with T5-Base while holding the identifier-specific hyperparameters, effective batch size, and training budget fixed. Indexing-heavy ratios are obtained by repeating document examples, while 0:1 removes indexing supervision entirely.
Indexing supervision is necessary for all three identifier types: removing it substantially reduces retrieval effectiveness. Increasing the indexing weight beyond the natural ratio also generally degrades performance. A balanced 1:1 ratio yields the highest MRR@10 for atomic and naive identifiers, but only marginally exceeds the natural ratio and improves mainly Hits@10 rather than Hits@1. The natural ratio remains best for semantic identifiers.
Invalidity follows a different pattern. For semantic identifiers, Invalid@40 decreases steadily as the ratio becomes more indexing-heavy, even while retrieval effectiveness deteriorates; naive identifiers show the same tendency through 32:1. We therefore retain the natural ratio as a common setting: it avoids identifier-specific tuning while remaining close to the best retrieval effectiveness for all three identifier types.
F Hyperparameter Search Results
Table 14 reports the complete batch-128 sweep used to select the configurations for the experiments.
For atomic identifiers, we retain , a learning rate of , and 10K warmup steps; naive and semantic identifiers use , a learning rate of , and no warmup. These settings are reused throughout our experiments.
G Implementation Details
This appendix documents implementation details relevant to reproducing REDSI. Unless stated otherwise, experiments use the settings described in Section 4. The remaining baselines in Table 1 are included only for context.
Note that the difference in the first token is due to the previous unknown token in the full example.
| Ratio | Atomic | Naive | Semantic | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| H@1 | H@10 | MRR@10 | Inv. | H@1 | H@10 | MRR@10 | Inv. | H@1 | H@10 | MRR@10 | Inv. | |
| 0:1 | 51.35 | 65.52 | 56.35 | – | 46.39 | 56.82 | 50.03 | 38.5 | 46.23 | 56.95 | 49.92 | 26.0 |
| Natural (≈ 1:2.8) | 62.80 | 81.56 | 69.42 | – | 55.29 | 69.03 | 60.07 | 35.5 | 54.39 | 68.16 | 59.10 | 24.4 |
| 1:1 | 62.50 | 83.15 | 69.76 | – | 55.25 | 69.53 | 60.25 | 33.4 | 53.74 | 67.41 | 58.33 | 22.8 |
| 4:1 | 59.32 | 81.02 | 66.84 | – | 53.83 | 68.61 | 59.01 | 31.7 | 52.54 | 66.97 | 57.40 | 17.3 |
| 8:1 | 56.96 | 77.98 | 64.15 | – | 53.49 | 68.98 | 58.95 | 31.3 | 51.17 | 66.07 | 56.21 | 13.2 |
| 16:1 | 54.56 | 74.90 | 61.44 | – | 52.53 | 69.30 | 58.49 | 29.8 | 49.97 | 65.94 | 55.35 | 11.1 |
| 32:1 | 54.39 | 72.01 | 60.51 | – | 48.88 | 66.73 | 55.07 | 28.7 | 46.74 | 64.11 | 52.40 | 7.5 |
| 64:1 | 52.53 | 72.30 | 59.29 | – | 44.13 | 63.83 | 50.88 | 31.7 | 42.41 | 61.35 | 48.87 | 5.7 |
Table 13: Sensitivity to the indexing-to-retrieval ratio under NQ320K-TITLE/NCINORM. Retrieval metrics and Invalid@40 are development percentages at the checkpoint selected by MRR@10. The natural ratio uses each indexed document and labeled query once per repetition of the training data. Invalidity is not applicable to atomic identifiers and is denoted by –. Bold marks the best retrieval result for each identifier type and metric.
G.1 Software and Hardware
REDSI is implemented with Hugging Face Transformers version 4.44.1 and trained on NVIDIA V100 GPUs with 16 GB of memory using FP16 mixed precision. We use T5 1.0 checkpoints and the tokenizer distributed with each checkpoint.
Atomic identifiers are implemented by extending the decoder output vocabulary with one document-specific token per indexed document. Naive and semantic identifiers use the original T5 vocabulary and are generated autoregressively. Models are optimized with Adafactor using the identifier-specific learning rates and warmup durations selected in Appendix F, with no learning-rate decay after warmup.
G.2 Framework Differences
Our Transformers input pipeline does not use sequence packing:²⁵ each batch element corresponds to one padded indexing or retrieval example. Consequently, the effective batch size counts original training examples. T5X supports packing multiple examples into shared sequences, but Pradeep et al. (2023) do not report whether packing was enabled. If it was, their nominal batch size may contain more original examples than an unpacked Transformers batch of the same size.
Additional differences may remain in token-loss normalization, auxiliary loss terms, identifier construction, beam-search implementation, and checkpoint selection. Because these settings are not fully documented, we do not attribute the remaining differences in effectiveness to any single factor. Sensitivity to the indexing-to-retrieval ratio is reported separately in Appendix E.
H Run-to-Run Variability of NQ320K Construction Effects
We repeat every T5-Efficient-Tiny identifier-construction configuration with seeds 42–46, reusing the main-experiment hyperparameters and selecting checkpoints by development MRR@10, for a total of 60 runs. Tables 16 and 17 report the resulting variability and paired construction effects.
I Invalidity across Construction Variants and Model Scales
Table 18 reports the complete Invalid@40 results underlying the model-scaling analysis in Section 5.
J Decoding Procedures and Additional Results
Let denote the set of valid identifiers. Sequential identifiers are decoded with beam size 40. We distinguish raw unconstrained decoding, post-filtering, and tri-constrained decoding.
J.1 Decoding Procedures
Raw unconstrained decoding. Standard beam search operates over the complete T5 vocabulary without restricting generated prefixes. For a query , it returns a ranked beam
ordered by the model’s length-normalized sequence score. A hypothesis is invalid when . Raw decoding retains invalid hypotheses in the ranking, where they may displace valid identifiers from the first positions.
²⁵https://huggingface.co/docs/trl/v1.12.0/en/reducing_memory_usage#packing
| ID | ℓ | LR | WU | H@1 | H@10 | M@10 | Inv@40 |
|---|---|---|---|---|---|---|---|
| Atomic | |||||||
| Atomic | 32 | 1e-3 | 0 | 61.4 | 79.1 | 67.7 | – |
| Atomic | 32 | 1e-3 | 10K | 61.8 | 81.1 | 68.5 | – |
| Atomic | 32 | 1e-3 | 100K | 59.0 | 80.2 | 66.4 | – |
| Atomic | 32 | 5e-4 | 0 | 62.1 | 79.3 | 68.1 | – |
| Atomic | 32 | 5e-4 | 10K | 62.3 | 80.5 | 68.6 | – |
| Atomic | 32 | 5e-4 | 100K | 60.3 | 79.9 | 67.3 | – |
| Atomic | 64 | 1e-3 | 0 | 61.4 | 79.0 | 67.6 | – |
| Atomic | 64 | 1e-3 | 10K | 61.2 | 80.3 | 67.8 | – |
| Atomic | 64 | 1e-3 | 100K | 59.7 | 79.7 | 66.6 | – |
| Atomic | 64 | 5e-4 | 0 | 62.0 | 79.4 | 68.1 | – |
| Atomic | 64 | 5e-4 | 10K | 62.0 | 81.1 | 68.7 | – |
| Atomic | 64 | 5e-4 | 100K | 61.0 | 80.4 | 67.6 | – |
| Naive | |||||||
| Naive | 32 | 1e-3 | 0 | 55.3 | 69.4 | 60.1 | 31.9 |
| Naive | 32 | 1e-3 | 10K | 55.1 | 69.1 | 60.1 | 35.8 |
| Naive | 32 | 1e-3 | 100K | 54.6 | 67.9 | 59.1 | 37.2 |
| Naive | 32 | 5e-4 | 0 | 54.7 | 68.4 | 59.5 | 36.3 |
| Naive | 32 | 5e-4 | 10K | 54.7 | 68.6 | 59.5 | 37.2 |
| Naive | 32 | 5e-4 | 100K | 54.4 | 67.6 | 59.2 | 38.4 |
| Naive | 64 | 1e-3 | 0 | 55.5 | 69.0 | 60.2 | 33.6 |
| Naive | 64 | 1e-3 | 10K | 55.0 | 68.6 | 59.7 | 36.0 |
| Naive | 64 | 1e-3 | 100K | 54.5 | 67.9 | 59.2 | 36.4 |
| Naive | 64 | 5e-4 | 0 | 54.2 | 68.0 | 59.0 | 36.5 |
| Naive | 64 | 5e-4 | 10K | 54.3 | 67.9 | 59.1 | 37.4 |
| Naive | 64 | 5e-4 | 100K | 53.8 | 67.6 | 58.6 | 38.6 |
| Semantic | |||||||
| Semantic | 32 | 1e-3 | 0 | 55.2 | 68.4 | 59.7 | 22.9 |
| Semantic | 32 | 1e-3 | 10K | 54.5 | 67.6 | 58.9 | 22.3 |
| Semantic | 32 | 1e-3 | 100K | 54.1 | 67.5 | 58.6 | 24.6 |
| Semantic | 32 | 5e-4 | 0 | 54.0 | 68.2 | 58.8 | 21.9 |
| Semantic | 32 | 5e-4 | 10K | 53.8 | 67.4 | 58.4 | 24.6 |
| Semantic | 32 | 5e-4 | 100K | 53.8 | 67.2 | 58.3 | 23.4 |
| Semantic | 64 | 1e-3 | 0 | 54.7 | 68.4 | 59.3 | 22.1 |
| Semantic | 64 | 1e-3 | 10K | 54.1 | 67.6 | 58.6 | 21.8 |
| Semantic | 64 | 1e-3 | 100K | 53.6 | 66.8 | 58.1 | 24.4 |
| Semantic | 64 | 5e-4 | 0 | 53.2 | 66.8 | 57.8 | 22.4 |
| Semantic | 64 | 5e-4 | 10K | 53.0 | 67.1 | 57.8 | 22.5 |
| Semantic | 64 | 5e-4 | 100K | 52.6 | 66.7 | 57.3 | 23.0 |
Table 14: Complete batch-128 hyperparameter sweep on NQ320K-TITLE/NCINORM. Metrics are reported as percentages; M@10 denotes MRR@10. Each row reports the checkpoint selected by development MRR@10. Bold hyperparameters identify the configurations retained for the experiments; for naive identifiers, is retained as a near-tie with the grid maximum at . Dashes indicate that Invalid@40 is not applicable to atomic identifiers, which are valid by construction.
Post-filtered decoding. Post-filtering applies the same unconstrained search and removes completed hypotheses that do not belong to :
The scores and relative order of the retained hypotheses are unchanged. Because filtering occurs after search, the resulting ranking may contain fewer than 40 documents and cannot recover valid hypotheses that fell outside the original beam.
| Setting | Pradeep et al. (2023) | REDSI |
|---|---|---|
| Collection | NCI-derived, ~109K | TITLE/NCINORM |
| Backbone | T5 1.1-Base | T5 1.0-Base |
| Supervision | FirstP + labeled queries | FirstP + labeled queries |
| Input length | 64 | 64 atomic; 32 sequential |
| Effective batch size | 512 | 128 |
| Sequence packing | Not reported | Disabled |
| Checkpoint selection | Not reported | Development MRR@10 |
| Invalid outputs | Not reported | Post-filtered |
Table 15: Reported and implemented settings for the closest comparison with Pradeep et al. (2023). Differences and unreported settings prevent an exact reproduction.
| Identifier | NCINORM | HTMLNORM |
|---|---|---|
| TITLE | ||
| Atomic | ||
| Naive | ||
| Semantic | ||
| PAGEID | ||
| Atomic | ||
| Naive | ||
| Semantic | ||
Table 16: T5-Efficient-Tiny MRR@10 across five seeds for each identifier, grouping rule, and document representation. Values are mean percentages with sample standard deviations.
We report Invalid@40, the mean fraction of unconstrained hypotheses that are removed:
Trie-constrained decoding. Trie-constrained beam search restricts generation to prefixes of identifiers in (Cao et al., 2021). For a generated prefix , the permitted next tokens are
Tokens outside Next are masked before beam expansion, and the end-of-sequence token is permitted only when the completed sequence belongs to . Constrained decoding therefore guarantees valid completed hypotheses and reallocates capacity otherwise spent on invalid prefixes. It does not guarantee relevance: a valid identifier may still correspond to a non-relevant document.
J.2 Identifier-Space Budget Sensitivity
For naive identifiers, we vary the assignment-space budget from to , including DSI's . Larger budgets make
| Identifier | HTMLNORM – NCIORM | PAGEID – TITLE |
|---|---|---|
| Atomic | ||
| Naive | ||
| Semantic | ||
| Global |
Table 17: Seed-paired effects of document representation and grouping for T5-Efficient-Tiny. Values are changes in MRR@10 percentage points, reported as mean ± sample standard deviation across five seeds. Identifier-level effects are averaged over the other construction factor; the global result macro-averages identifier types within each seed.

Figure 8: MRR@10 and Invalid@40 for naive identifiers across identifier-space budgets on NQ320K-TITLE/NCINORM. Dotted, solid, and dashed lines denote raw, post-filtered, and trie-constrained decoding, respectively; the dash-dotted line denotes Invalid@40. DSI corresponds to .
assignments sparser but also change identifier tokenization, length, and prefix sharing. We therefore treat the sweep as a sensitivity analysis rather than as an isolated intervention on invalidity. All other settings, including the identifier-assignment seed, remain fixed.
Figure 8 compares retrieval effectiveness under raw, post-filtered, and trie-constrained decoding, together with the Invalid@40 rate of the underlying unconstrained beam.
As shown in Figure 8, Invalid@40 increases from 8.8% at to 53.8% at , whereas MRR@10 varies non-monotonically. The widening gap between raw and post-filtered decoding at larger budgets indicates that filtering becomes more useful as invalid hypotheses occupy more of the beam, although it does not change the overall budget trend. Trie-constrained decoding closely matches post-filtering through and has mixed effects at larger budgets, changing MRR@10 by between and percentage points. It there-
fore guarantees valid outputs but provides no consistent effectiveness advantage over post-filtering in the evaluated settings.
| Model | TITLE | PAGEID | ||||||
|---|---|---|---|---|---|---|---|---|
| NCINORM | HTMLNORM | NCINORM | HTMLNORM | |||||
| Naive | Semantic | Naive | Semantic | Naive | Semantic | Naive | Semantic | |
| T5-Base | 31.9 | 22.9 | 35.7 | 20.6 | 33.0 | 23.4 | 35.6 | 22.2 |
| T5-Small | 31.0 | 20.3 | 31.2 | 19.4 | 30.6 | 18.8 | 29.3 | 19.6 |
| T5-Eff.-Tiny | 37.5 | 8.7 | 36.8 | 8.6 | 38.2 | 8.5 | 37.4 | 9.1 |
Table 18: Invalid@40 for sequential identifiers across NQ320K grouping rules, document representations, and model scales. Values are percentages measured on the unconstrained 40-best beam before post-filtering. Atomic identifiers are omitted because they are valid by construction.