Manuscript Offprint

arXiv:2611.00871

ShiftRAG: Bypassing the Textual Bottleneck via Decoupled Learning and Continuous Soft Tokens

Youmin Ko, Jihong Jeong, Hyunjoon Kim

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

Abstract

Despite advances in retrieval-augmented generation (RAG), suppressing hallucinations during complex reasoning remains a persistent challenge. We identify that existing RAG pipelines suffer from a textual bottleneck: by passing only raw text to the generator, they discard discriminative signals of the retriever. Furthermore, recent attempts to unify retrieval and generation within a single LLM induce severe objective conflict and exacerbate the rank collapse of decoder-only architectures, degrading performance on both tasks. To address these limitations, we introduce ShiftRAG, a decoupled RAG framework that employs a single LLM backbone but isolates discriminative retrieval learning from autoregressive generation. To bridge these decoupled modes, we project retrieval alignments into continuous soft tokens, establishing a high-bandwidth interface that infuses the generator with retrieval-side signals. Concurrently, our soft orthogonality objective mitigates rank collapse, while layer-wise relevance dynamics preserve the fine-grained latent space required for highly discriminative evidence separation. Extensive evaluations demonstrate that ShiftRAG significantly improves retrieval and question answering performance over state-of-the-art baselines. ShiftRAG preserves foundational capabilities of the backbone while maintaining a favorable efficiency-performance trade-off on general text encoding and generative tasks. Our code is available².

1 Introduction

Retrieval-augmented generation (RAG) [37] has emerged as the definitive framework for grounding LLMs with external knowledge across diverse knowledge-intensive domains, including multi-hop question answering (MHQA) [17, 43, 69] and knowledge graph reasoning [39, 42, 49, 57]. Current research has advanced RAG through three avenues: (i) learning dense representations specifically for retrieval [30, 31, 36, 52], (ii) adapting decoder-only LLMs into text encoders [2, 35, 41], and (iii) supporting both retrieval and generation within a single LLM backbone [45, 68]. Meanwhile, researchers have proposed to augment reasoning over retrieved evidence through explicit Chain-of-Thought [40, 61] and latent reasoning [55, 64]. Despite these sophisticated architectural enhancements, suppressing hallucinations [4, 25, 27, 28, 51] during retrieval-based reasoning remains a persistent challenge. We claim that this limitation stems from three factors.

First, overcoming the rank collapse inherent to decoder-only LLMs [12, 53] while preserving generative capacity remains a fundamental bottleneck. In deep layers, token representations naturally concentrate into a low-dimensional subspace, blurring the fine-grained semantic distinctions necessary to separate true evidence from distractors. Figures 1(a) and 1(b) diagnose this collapse, revealing

*Corresponding author. ²https://github.com/meaningful96/ShiftRAG

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

Figure 1: Motivating observations on layer-wise rank collapse and evidence-sensitive generation. (a) Layer-wise token covariance. (b) Effective rank (eRank) of token representations. (c) Average token entropy on 2WikiMultihopQA by answer correctness.

high token covariance 3^{3} and low effective rank (eRank) 4^{4} [71]. Current paradigms fail to resolve this trade-off: while contrastive adaptation in deep encoders [2, 35, 41] mitigates rank collapse, it severely degrades autoregressive generation. Unified LLMs [45, 68] preserve generation via backbone sharing, but inadvertently exacerbate rank collapse, exhibiting higher covariance and lower eRank than the base model (Gemma 2) 5^{5}. Sharing a backbone or relying on standard attention mechanisms is insufficient to maintain both generative fluency and the discriminative representations for retrieval.

Second, standard RAG frameworks [5, 36, 52] suffer from a textual bottleneck, i.e., they transfer only raw document text to the LLM, discarding the implicit signals (the semantic alignment between question and document embeddings) from the retriever. Consequently, the generator is deprived of the retriever's underlying discriminative confidence. Figure 1(c) highlights this limitation: while an evidence-sensitive generator [63] should exhibit distinct predictive entropy gaps between correct and incorrect outputs, existing state-of-the-art baselines show small entropy differences 6^{6}. This indicates that raw text alone fails to convey the strength of the supporting evidence. While Chain-of-Thought [40, 61] and continuous latent reasoning [55, 64] attempt to extract deeper rationales, they still derive these representations exclusively from explicit text. Lacking a mechanism to directly inject the embedding-level alignment of the retriever, these methods remain constrained by the textual interface.

Third, unifying retrieval and generation under shared adaptation parameters induces severe objective conflict. Discriminative retrieval requires a latent topology optimized for contrastive separation and fine-grained diversity by aligning the representation of a question with its supporting documents and separating it from distractors, whereas autoregressive generation organizes the representation space for sequential next-token prediction. In unified architectures [45, 68], forcing these fundamentally divergent tasks to share parameters creates competing optimization pressures, leading to representation instability and negative transfer. Even if adaptation parameters are decoupled, simultaneous joint training remains suboptimal; the generator is forced to optimize against a continuously shifting retrieval-conditioned interface, destabilizing retrieval convergence and downstream reasoning.

To address these issues, we introduce ShiftRAG, a novel RAG framework that employs a single LLM backbone across decoupled encoder and decoder modes. ShiftRAG transcends the standard textual interface by translating high-dimensional retrieval knowledge directly into latent reasoning signals. Our contributions are threefold. First, we cultivate a highly discriminative embedding space by exploiting layer-wise relevance dynamics, effectively mitigating the deep-layer rank collapse typical of decoder-only LLMs. Second, we project question-document embeddings and relevance scores into generation-friendly soft knowledge tokens. This latent bridge allows implicit retrieval alignments and explicit document text to jointly guide the reasoning of the generator. Third, by training the encoder and decoder modes independently and bridging them only at inference, we circumvent the severe objective conflict that plagues joint parameter optimization.

Extensive evaluations demonstrate that ShiftRAG achieves state-of-the-art retrieval and end-to-end QA performance across multi-hop (HotpotQA, 2WikiMultihopQA, MuSiQue) and single-hop (NaturalQuestions) benchmarks. Furthermore, auxiliary evaluations on text encoding and general generative tasks confirm that our decoupled approach preserves foundational capabilities of the backbone while maintaining a favorable efficiency-performance trade-off, establishing a robust new paradigm for retrieval-augmented reasoning.

3^{3}Covariance between hidden representations of tokens, where larger values indicate stronger pairwise directional alignment.

4^{4}Smaller values indicate fewer effective independent directions.

5^{5}More detailed analyses based on other LLMs are provided in Appendix E.9.

6^{6}Appendix E.6 shows the same trend for other datasets.

Figure

Figure 2: Illustration of the inference pipeline of ShiftRAG.

References (73)