Manuscript Offprint

arXiv:2609.35430

Can Generative Retrievers Learn Semantic IDs Without Forgetting How to Speak?

Junchen Fu, Kleomenis Katevas, Vandana Rajan, Sofía Celi, Hamed Haddadi

ABSTRACT

Generative retrieval (GR) enables end-to-end retrieval by generating document semantic identifiers (SIDs). However, retrieval-only fine-tuning can over-specialize pretrained language models to SID prediction, substantially distorting their natural-language distribution and limiting their suitability for interactive systems that must both retrieve documents and generate natural-language responses. We introduce SpeakGR, a dual-objective framework that learns SIDs while preserving language generation. It combines supervised SID learning with speak-preserving regularization: an on-policy distillation objective that aligns the current model with a frozen copy of the original model on student-generated prefixes using forward KL over the original text vocabulary. We further propose Adaptive SpeakGR, which dynamically adjusts the preservation strength based on observed language drift. Compared with SFT-only, SpeakGR reduces WikiText-2 forward KL by 81.3–93.8% on MS MARCO and 81.2–85.2% on Natural Questions (NQ) while retaining effective retrieval across three different LLMs. Adaptive SpeakGR further improves retrieval over SpeakGR in most settings while maintaining substantially lower language drift than SFT-only.

1 INTRODUCTION

Generative retrieval (GR), in which a neural model generates document identifiers directly from a query without relying on an explicit search index, has become an active research direction in information retrieval (Tay et al., 2022; Rajput et al., 2023; Wang et al., 2022). Its central idea is to reformulate retrieval as an autoregressive generation problem, replacing conventional candidate scoring with direct prediction of the identifier of a relevant document (Tay et al., 2022; Wang et al., 2022; Bevilacqua et al., 2022). A common design identifies each document with a short sequence of semantic identifiers (SIDs), extends the vocabulary of a pretrained language model with the SID tokens, and fine-tunes the model to generate these identifiers autoregressively. This framing turns document retrieval into a native sequence-generation

Figure

Figure 1: Language forgetting during SID indexing. Qwen3-0.6B+MS MARCO over 2,000 updates. (A) Recall@10; (B) WikiText-2 PPL (log scale). PPL rises from 31.69 to 6,956 within 25 updates. Stage 1 consists of document-to-SID indexing.

task and has motivated substantial progress in document representations, identifier construction, training objectives, and decoding strategies (Lee et al., 2023). However, standard GR objectives optimize the model for SID generation without explicitly preserving its pretrained language-modeling behavior.

Why does this matter? Generative retrieval is attractive when a single language model serves the user end-to-end. The model first retrieves relevant documents by generating their identifiers, then uses the retrieved content to answer, summarize, cite, or continue the interaction (Radlinski and Craswell, 2017; Aliannejadi et al., 2019; Lewis et al., 2020). In ambiguous cases, the model may

∗^{*}This work was completed during an internship at Brave. Correspondence to ron.junchen.fu@gmail.com.

also ask a clarifying question, receive the user's response, and use that clarification to refine retrieval or generate a better answer. This is precisely why retrieval is built on top of a pretrained language model rather than a dedicated encoder. If retrieval fine-tuning substantially degrades the model's language behavior, it can no longer support the broader interaction beyond retrieval, regardless of its Recall@10. Preserving language generation is therefore important for interactive search, where retrieval quality alone does not capture the model's ability to answer follow-up questions, explain retrieved information, or conduct clarification turns with the user. 1^{1}

Learning SIDs while preserving the pretrained language policy therefore provides three concrete benefits. (i) Retrieval as an added capability, not a replacement: the model learns to emit SIDs while retaining its ability to generate text, allowing retrieval specialization without sacrificing language generation. (ii) A single interface for retrieval and for language: because both SIDs and text are generated autoregressively, a model that keeps both can support a unified autoregressive interface for retrieval and language generation, with SID resolution connecting retrieval to subsequent generation. (iii) Lower system cost: existing GR systems often pair the retriever with a separate generator or reader for downstream knowledge-intensive tasks (Bevilacqua et al., 2022; Song et al., 2024). In contrast, a retriever that retains strong language capabilities could reuse the same model for both retrieval and generation, reducing the need to maintain a separate generation model.

However, none of these benefits and capabilities can be realized, or even studied, until a more basic question is settled: is the pretrained language behavior retained during SID-based retrieval specialization? Standard GR training gives little reason to expect that it does. SID specialization repeatedly trains the same parameters to map documents, pseudo-queries, and queries into short sequences over an identifier vocabulary (Zhou et al., 2022; Mekonnen et al., 2025; Wang et al., 2022), with nothing in the objective to constrain the text-token policy. Also, most prior work on GR evaluates only retrieval effectiveness (Wang et al., 2022; Tay et al., 2022; Rajput et al., 2023), leaving the effect on pretrained language behavior largely unknown. In this work, we therefore first measure how SID-based retrieval specialization changes the pretrained language behavior of the model. Across three LLM backbones and two retrieval datasets (six backbone–dataset settings), our experiments reveal a consistent tension: standard SID fine-tuning learns effective retrieval but can rapidly distort the pretrained language distribution, with substantial degradation emerging even at an early stage of training (Figure 1). These results further motivate us to ask: Can a generative retriever learn to retrieve with semantic IDs without forgetting the pretrained language behavior of its backbone?

To mitigate forgetting of pretrained speaking abilities, we introduce SpeakGR, a dual-objective framework combining supervised SID learning with speak-preserving regularization. While SID learning specializes the model for GR, the regularizer preserves its pretrained language behavior. Inspired by on-policy distillation (OPD) (Agarwal et al., 2024), the current model generates continuations, while a frozen original model provides next-token distributions at the same prefixes. A forward-KL objective over the original text vocabulary constrains language drift during SID learning. We further introduce Adaptive SpeakGR, which adjusts preservation strength according to observed drift. Across matched model–dataset settings (see Table 1), SpeakGR substantially reduces language drift while retaining effective retrieval. Compared with SpeakGR, Adaptive SpeakGR improves retrieval in five of the six settings and maintains substantially lower language drift than SFT-only.

Our contributions are threefold:

• We systematically study forgetting during SID-based generative retrieval training and show that standard retrieval specialization can substantially distort a pretrained model’s natural-language behavior despite achieving effective retrieval.

• We introduce SpeakGR, a dual-objective training framework that couples supervised SID learning with speak-preserving regularization, allowing retrieval specialization and language preservation to be optimized jointly within the same model. Building on this, we further introduce Adaptive SpeakGR, which adjusts the preservation strength in response to the observed language drift.

1^{1}In this work, “language preservation” specifically refers to preserving the pretrained model’s natural-language predictive behavior, rather than guaranteeing preservation of every specialized downstream capability such as mathematical reasoning or code generation.

• We evaluate SpeakGR and Adaptive SpeakGR across a variety of model–dataset settings and show that they substantially reduce language drift while retaining effective retrieval performance.

References (45)