ShiftRAG: Bypassing the Textual Bottleneck via Decoupled Learning and Continuous Soft Tokens
Youmin Ko, Jihong Jeong, Hyunjoon Kim
NeurIPS 2026
TL;DR. We propose ShiftRAG, a new framework that decouples a single LLM into retriever and generator roles. Rather than relying on raw text alone, ShiftRAG bridges these roles using latent guidance, improving evidence selection and answer reliability.
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 operates on 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.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes using "soft tokens" to improve communication of the content of retrieved documents from the retriever to the generator and an associated approach for training a unified model to serve as both the retriever and genererator using separate encoder and decoder modes. The approach improves over several baseline pipelines that do not include soft tokens on three question answering datasets. Overall, reviewers find the approach interesting but initially raise several issues, including significant issues involving missing comparisons (CUQD, aF1r) and questions about motivation (PiiX) and the approach's relationship with prior work (aF1r). The AC read the author response. During the rebuttal period, the authors addressed these issues satisfactorily and all three reviewers recommend accepting the paper.
Final justification
Reviewers find the approach interesting but initially raise several issues, including significant issues involving missing comparisons (CUQD, aF1r) and questions about motivation (PiiX) and the approach's relationship with prior work (aF1r). During the rebuttal period, the authors addressed these issues satisfactorily and all three reviewers recommend accepting the paper.
Read meta-review
Meta-review
This paper proposes using "soft tokens" to improve communication of the content of retrieved documents from the retriever to the generator and an associated approach for training a unified model to serve as both the retriever and genererator using separate encoder and decoder modes. The approach improves over several baseline pipelines that do not include soft tokens on three question answering datasets. Overall, reviewers find the approach interesting but initially raise several issues, including significant issues involving missing comparisons (CUQD, aF1r) and questions about motivation (PiiX) and the approach's relationship with prior work (aF1r). The AC read the author response. During the rebuttal period, the authors addressed these issues satisfactorily and all three reviewers recommend accepting the paper.
Final justification
Reviewers find the approach interesting but initially raise several issues, including significant issues involving missing comparisons (CUQD, aF1r) and questions about motivation (PiiX) and the approach's relationship with prior work (aF1r). During the rebuttal period, the authors addressed these issues satisfactorily and all three reviewers recommend accepting the paper.
1 comment
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes ShiftRAG, a RAG framework that adapts a single decoder-only LLM into two separately trained modes via task-specific LoRA adapters. The encoder mode enables bidirectional attention and is trained with (i) a layer-wise gap-aware contrastive loss (LGC), which scores a question–document pair by the gap between final-layer cosine similarity and the best lower-layer cosine similarity, and (ii) a soft orthogonal alignment loss (SOA) that penalizes off-diagonal entries of the token-level Gram matrix in the last n layers to mitigate rank collapse. At inference, a Semantic Signal Translator (SST) projects question–document embeddings and normalized relevance weights into M=5 soft knowledge tokens appended after the retrieved documents and question; the decoder mode is trained with next-token prediction plus knowledge distillation from a frozen teacher conditioned on textual rationales. The two modes are trained sequentially and composed only at inference. Experiments cover retrieval and QA on HotpotQA, 2WikiMultihopQA, MuSiQue, NQ, and SimpleQA across four backbones, plus MTEB subsets, MMLU/GSM8K/TyDiQA, ablations, latency, candidate-pool scaling, a joint/alternating/separate training comparison with two supporting lemmas, and confidence-calibration analyses.
Strengths and weaknesses
The paper studies a real and well-motivated problem: unified retrieval-plus-generation models suffer from objective conflict, and standard RAG discards the retriever's discriminative signal at the text interface. The most informative part of the paper is the learning-strategy analysis (Tables 5 and 21): the measured 84% negative gradient alignment on shared LoRA parameters, together with the controlled joint/alternating/separate comparison, gives concrete evidence for the decoupling design, and the comparison against LLM2Vec under a matched recipe (same backbone, same E5 training data) cleanly isolates the benefit of the proposed encoder objectives. The calibration analysis (Table 20, Figure 7) showing that SST widens the entropy gap between correct and incorrect generations is also a genuinely interesting observation, and the overall experimental breadth (four backbones, latency, pool-size scaling, hyperparameter sweeps) is above average.
I have substantive concerns:
-
My main concern is that the fairness of the E2E QA comparison. The decoder used by ShiftRAG is LoRA-tuned on 10K examples sampled from the training splits. In contrast, I think the retrieval-only baselines are evaluated by feeding their retrieved documents to the base Gemma2-9B generator, without the same generator-side adaptation. This makes the QA results difficult to interpret, because the comparison changes the retriever, the generator training, and the soft-token interface at the same time.
-
The w/o SST ablation is helpful, but it does not fully resolve this issue because it still uses the ShiftRAG retriever. I would like to see at least NV-Embed-v2 and LLM2Vec paired with a generator trained on the same 10K examples using the same NTP objective, but without SST or KD. This would make it much clearer whether the improvement comes specifically from the proposed interface rather than from generator adaptation or stronger retrieval.
-
Also I think the novelty of the paper is not sufficient, I think the decoupled training analysis is more convincing than the individual architectural components. The comparison between joint, alternating, and separate training is useful, especially together with the measured gradient conflict. However, I think that SST is sufficiently distinguished from existing approaches that project external representations into the LLM token space. The current ablations show that SST is useful compared with removing it, but they do not show whether its particular design is better than a much simpler embedding-to-soft-token projection. A direct baseline of that form would substantially strengthen the interface contribution. Otherwise, I think the novelty claim around the latent bridge should be stated more cautiously.
Questions
-
Please add the missing control: NV-Embed-v2 and LLM2Vec retrieval paired with a generator LoRA-tuned on the identical 10K NTP data (no SST/KD). If ShiftRAG still leads materially, the interface claim is supported and I would raise my score.
-
Please report per-cell standard deviations (or significance tests) for Tables 1-4, clarify whether the +-0.05 bound applies to QA EM, and reconcile Table 14 vs. Tables 2/9 and Figure 6.
-
How does SST differ from prior soft-token injection of retrieval/document embeddings (e.g., xRAG-style single-token embedding projection)? An xRAG-style baseline under your setup would substantially strengthen the contribution claim.
-
Please specify the actual candidate-layer configuration used (number of buckets, layers per bucket) and resolve the contradictions among Sec. 3.1.1, Appendix A, and F.6.
-
How was the SimpleQA retrieval pool constructed, and can you confirm that no benchmark-specific information leaks through the GPT-5-nano-generated rationales used for KD?
Limitations
Partially. Uninterpretability of soft tokens and the white-box requirement are acknowledged. The training-data confound in the QA comparison, the closed small-pool retrieval setting, and the English-only QA evaluation should also be acknowledged.
Final justification
The authors have substantially addressed the main concerns that motivated my original rating. In particular, they added the requested matched 10K NTP-only generator controls for LLM2Vec, NV-Embed-v2, and ShiftRAG, showing that the proposed retriever remains materially stronger when generator training, SST, and KD are controlled. They also isolated the contribution of SST using fixed external retrievers and added direct comparisons against simple 1- and 2-layer embedding-to-soft-token projection baselines. These experiments make the end-to-end improvements considerably easier to interpret and provide stronger evidence that both the retriever objectives and the latent interface contribute independently.
The responses also clarify the candidate-layer configuration, SimpleQA corpus construction, rationale-generation procedure, rank-collapse analysis, and the relationship to prior soft-token methods. I still view the novelty primarily as an effective integration of decoupled training and retrieval-conditioned latent signal transfer, rather than a fundamentally new soft-token concept, and some reporting details should be corrected in the revision, particularly the inconsistency in the stated standard-deviation bound. However, these remaining issues no longer outweigh the technical and empirical strengths of the work. I therefore raise my rating from 3 to 4.
Formatting concerns
No
3 comments
Rebuttal
Dear Reviewer CUQD
We thank the reviewer for their thoughtful feedback. Below, we address all concerns (C) and questions (Q). We hope these clarifications and additional results address your points, and we respectfully invite a re-evaluation of our manuscript. We welcome any further discussion.
C1. Fairness of the Generator-Side Control
We clarify that the retrieval-only baselines were not evaluated with the vanilla Gemma2-9B. All baselines use the same generator-side LoRA checkpoint as ShiftRAG, trained on the identical 10K QA examples with SST and KD. Appendix E.3 (Table 20) shows that LoRA learned with SST remains stronger than that without SST even when SST is excluded during generation, with the largest improvement observed on MuSiQue (0.245→0.289 EM). This makes the adopted generator setting favorable to the baselines rather than to ShiftRAG. We will revise the experimental setup and table captions to state this configuration explicitly.
C2&Q1. Missing evaluation control: a generator LoRA-tuned on the identical 10K NTP data (no SST/KD)
| Retriever | Generator | HotpotQA | 2Wiki | MuSiQue | |||
|---|---|---|---|---|---|---|---|
| EM | F1 | EM | F1 | EM | F1 | ||
| LLM2Vec | GritLM | 0.4540 | 0.5327 | 0.3410 | 0.4025 | 0.2100 | 0.3034 |
| LLM2Vec | LoRA | 0.5030 | 0.6106 | 0.4400 | 0.4914 | 0.2430 | 0.3670 |
| LLM2Vec | LoRA + SST | 0.5220 | 0.6281 | 0.4630 | 0.5202 | 0.2610 | 0.3902 |
| NV-Embed-v2 | GritLM | 0.4660 | 0.5568 | 0.3560 | 0.4216 | 0.2230 | 0.3116 |
| NV-Embed-v2 | LoRA | 0.5140 | 0.6220 | 0.4580 | 0.5064 | 0.2480 | 0.3783 |
| NV-Embed-v2 | LoRA + SST | 0.5300 | 0.6392 | 0.4690 | 0.5251 | 0.2630 | 0.3913 |
Table 1. QA performance with fixed external retrievers and different generator configurations.
| Retrieval | Generator | Tuning | HotpotQA | 2Wiki | MuSiQue | |||
|---|---|---|---|---|---|---|---|---|
| EM | F1 | EM | F1 | EM | F1 | |||
| LLM2Vec | LoRA | w/o SST, KD | 0.4770 | 0.6086 | 0.4190 | 0.4882 | 0.1950 | 0.3012 |
| NV-Embed-v2 | LoRA | w/o SST, KD | 0.4910 | 0.6143 | 0.4320 | 0.4964 | 0.2000 | 0.3021 |
| ShiftRAG | LoRA | w/o SST, KD | 0.5230 | 0.6468 | 0.4630 | 0.5194 | 0.2450 | 0.3639 |
| LLM2Vec | LoRA | w/o KD | 0.4970 | 0.6096 | 0.4260 | 0.4897 | 0.2300 | 0.3338 |
| NV-Embed-v2 | LoRA | w/o KD | 0.5050 | 0.6135 | 0.4490 | 0.5051 | 0.2290 | 0.3526 |
| ShiftRAG | LoRA | w/o KD | 0.5360 | 0.6518 | 0.4880 | 0.5321 | 0.2860 | 0.4038 |
| LLM2Vec | LoRA | All | 0.5030 | 0.6106 | 0.4400 | 0.4914 | 0.2430 | 0.3670 |
| NV-Embed-v2 | LoRA | All | 0.5140 | 0.6220 | 0.4580 | 0.5064 | 0.2480 | 0.3783 |
| ShiftRAG | LoRA | All | 0.5490 | 0.6684 | 0.4980 | 0.5421 | 0.2890 | 0.4039 |
| ShiftRAG | LoRA + SST | All | 0.5610 | 0.6790 | 0.5080 | 0.5528 | 0.3050 | 0.4129 |
Table 2. QA comparison under matched 10K generator training. w/o SST, KD uses an NTP-only LoRA, w/o KD uses SST with NTP training but without KD, and All uses both SST and KD. LoRA + SST retains SST at inference.
Controlled experiments in Tables 1 and 2 above confirm that our components provide orthogonal performance gains
- Independent SST Gains (Table 1): When fixing external retrievers, adding SST (LoRA+SST) consistently outperforms LoRA-only generators and GritLM, boosting MuSiQue EM by 7.41% with LLM2Vec (0.2430→0.2610) and 6.05% with NV-Embed-v2 (0.2480→0.2630).
- Component-Wise Ablation (Table 2): we separately identify the contributions of the retriever, SST, and KD under the identical 10K-example training set.
- Retriever: Under the w/o SST, KD setting, SST is excluded during both training and inference, so only the retriever varies. The ShiftRAG retriever alone outperforms NV-Embed-v2 by 22.50% on MuSiQue EM (0.2000→0.2450).
- Training SST: With ShiftRAG retriever fixed, adding SST during NTP training without KD improves EM by 16.73% (0.2450→0.2860).
- Distillation: Incorporating KD adds a 1.05% gain (0.2860→0.2890).
- Inference SST: Retaining SST at inference yields an additional 5.54% (0.2890→0.3050).
In total, the latent interface yields a 24.49% cumulative gain over the NTP-only setup (0.2450→0.3050), showing that the proposed latent retriever–generator interface a large performance gain.
C3. SST vs. embedding-to-soft-token projection
| Methods | HotpotQA | 2Wiki | MuSiQue | |||
|---|---|---|---|---|---|---|
| EM | F1 | EM | F1 | EM | F1 | |
| 1-layerMLP | 0.4505 | 0.5704 | 0.4008 | 0.4572 | 0.2376 | 0.3339 |
| 2-layerMLP | 0.4651 | 0.5894 | 0.4125 | 0.4595 | 0.2446 | 0.3355 |
| ShiftRAG | 0.5610 | 0.6790 | 0.5080 | 0.5528 | 0.3050 | 0.4129 |
Table 2. QA performance comparison between SST and simple embedding-to-soft-token projection baselines.
We empirically compare the design of SST with embedding-to-soft-token projection, i.e., 1- and 2-layer MLPs, which directly project the same question-document representations into the same number of soft tokens, with other training and inference settings fixed. ShiftRAG consistently outperforms both baselines across all metrics, improving MuSiQue EM by 24.69% over the stronger 2-layer MLP (0.2446 → 0.3050).
Q2. Per-cell standard deviations & clarification of the bound
| Methods | HotpotQA | 2Wiki | MuSiQue | |||
|---|---|---|---|---|---|---|
| EM | F1 | EM | F1 | EM | F1 | |
| LLM2Vec | 0.5030 | 0.6106 | 0.4400 | 0.4914 | 0.2430 | 0.3670 |
| (±0.0020) | (±0.0037) | (±0.0020) | (±0.0059) | (±0.0020) | (±0.0048) | |
| GritLM | 0.4430 | 0.5258 | 0.3020 | 0.3665 | 0.1870 | 0.2872 |
| (±0.0025) | (±0.0048) | (±0.0023) | (±0.0086) | (±0.0034) | (±0.0052) | |
| ShiftRAG | 0.5610 | 0.6790 | 0.5080 | 0.5528 | 0.3050 | 0.4129 |
| (±0.0005) | (±0.0009) | (±0.0008) | (±0.0046) | (±0.0007) | (±0.0016) |
Table 4. QA performance (standard deviation) over five runs.
We report per-cell standard deviations (SDs) over five runs for LLM2Vec, GritLM, and ShiftRAG for the QA results in Table 3 above. ShiftRAG shows low variability, with SD of 0.0005–0.0046 for QA. All baselines were reproduced over five runs, and the reported ±0.05 denotes the maximum SD across all methods and evaluation metrics. In the revised manuscript, we will report all per-cell SDs and correct Table 14 so that the results are consistent with those reported in Tables 2 and 9 and Figure 6.
Q3. Contribution of SST compared to prior soft-token injection methods
| Comparison | xRAG | ShiftRAG |
|---|---|---|
| Soft-token input | Document embedding | Query–document embeddings + relevance score |
| Query conditioning | Not query-conditioned | Directly query-conditioned and relevance-aware |
| Soft-token output | One token per retrieved document | Multiple tokens per query–document pair |
| Raw document in generator | Replaced | Preserved |
| Role of soft tokens | Document compression | Retrieval-signal transfer + latent CoT |
Table 4. xRAG vs. ShiftRAG in soft-token construction and usage
We acknowledge that xRAG also employ soft-token injection in RAG. However, ShiftRAG differs substantially in what the tokens encode, how they are used, and how the retrieval-to-generation interface is learned. As shown in Table 4 above,
- xRAG projects a precomputed, query-independent document embedding into a single token that replaces the raw document. It primarily serves as a compressed carrier of document content, targeting extreme context compression while keeping the retriever and LLM frozen and training only the projector.
- ShiftRAG transfers reasoning signals through continuous representations by extending latent CoT to RAG. It translates retrieval-optimized question–document embeddings and top- relevance into multiple soft knowledge tokens while retaining the raw text.
Thus, unlike generic soft-tokens prior work, SST is utilized as a retrieval-conditioned latent blueprint to complement explicit text to transfers high-dimensional retrieval alignment into multi-document reasoning. We will include this comparison in the final version.
Q4. Actual candidate-layer configuration of LGC loss
The actual LGC configuration uses four candidate layers: we divide the first half layers of the backbone into four contiguous buckets, each containing approximately four layers, and sample one layer from each bucket. The final contrast layer is selected from earlier layers in more than 99.9% of cases. Five or six layers provide marginally higher retrieval performance in Appendix F.6, while incurring a larger memory cost; therefore, we select four as the best performance–memory trade-off. We will revise Section 3.1.1 and Appendices A and F.6 to describe this configuration.
Q5. SimpleQA retrieval setting & GPT-5-nano rationale leakage
We clarify that SimpleQA was used only for inference, and no SimpleQA-specific questions, answers, passages, or annotations were used for rationale generation or KD.
- SimpleQA retrieval pool construction: Each raw question provides a source URL containing the supporting evidence. We crawled each URL, extracted the page text, split it into paragraph-level passages, and pooled all passages into a single retrieval corpus. Although each passage can be traced to its source question, no paragraph-level ground-truth passage is available; therefore, we evaluate only QA performance without reporting retrieval Recall@K.
- Rationale generation: GPT-5-nano receives only a question–passage pair from labeled MHQA training examples used for decoder training, without the gold answer or supporting-passage annotation, and generates a brief explanation of whether and how the passage is useful. SimpleQA was entirely excluded from rationale generation because it lacks paragraph-level supporting-passage labels. Thus, there is no pipeline-level benchmark leakage from SimpleQA.
We will add these construction details to the final version.
Dear Reviewer CUQD
We sincerely appreciate you for recognizing the contributions of our research and for providing valuable feedback. We are very grateful to you for high quality reviews and constructive comments. We tried to fully respond to every single comment and suggestion. We will incorporate your feedback and the additional experimental results into the final version to enhance the completeness of our paper.
If you find our responses satisfactory, we kindly request that you reconsider the evaluation of our work. Should you have any additional suggestions or comments, we are always more than willing to provide clarifications to address them. Many thanks! Thank you once again for your thoughtful comments and your time
Best regards,
Authors of paper 23877
Thank you for the detailed response and for conducting the additional controlled experiments.
The matched 10K NTP-only comparisons directly address my main concern about the fairness of the end-to-end QA evaluation. Under identical generator-side training without SST or KD, the ShiftRAG retriever still materially outperforms LLM2Vec and NV-Embed-v2, particularly on MuSiQue. The fixed-retriever experiments further show consistent gains from adding SST, which makes it possible to separate the contribution of the retriever from that of the latent interface.
The comparison against the 1- and 2-layer embedding-to-soft-token projection baselines also substantially strengthens the SST contribution. Although I still view the main novelty as the integration of decoupled training and retrieval-conditioned signal transfer, rather than the general use of soft tokens, the new results show that the particular interface is meaningfully stronger than a simple projection baseline.
The explanations regarding the candidate-layer configuration, SimpleQA corpus construction, rationale generation, t-SNE interpretation, and the inconsistent table entries address my remaining questions. In the revision, please ensure that all per-cell standard deviations are reported and clarify the apparent discrepancy between the stated maximum SD of ±0.05 and the substantially smaller values shown in the new table. The benchmark-derived nature of the SimpleQA retrieval corpus should also be stated clearly.
Overall, the authors have addressed my main concerns with substantive new evidence. Consistent with the criterion stated in my original review, I am raising my rating from 3 to 4.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors propose ShiftRAG, a retrieval-augmented generation framework that uses a single decoder-only LLM backbone in two separate modes: an encoder mode for retrieval and a decoder mode for answer generation. Since repurposing a decoder-only LLM as an encoder can lead to rank collapse and weak retrieval representations, the authors introduce mechanisms to make the encoder mode more effective, including layer-wise gap-aware contrastive learning and a soft orthogonal alignment loss. They also propose a semantic signal translator (SST), which converts retrieval-side embedding signals into continuous soft knowledge tokens and injects them into the generator. Evaluations on several QA benchmarks show that ShiftRAG improves retrieval and question-answering performance over LLM-based retrieval and unified RAG baselines.
Strengths and weaknesses
Quality
- It is good that standard benchmarks are used in the evaluations, and the results are reasonably good.
- Although the paper includes ablation studies, they do not seem sufficient. The evaluation shows some positive overall performance, but it is difficult to determine which component contributed how much to the gain clearly. I was hoping to see some comparison between a dedicated bidirectional encoder retriever vs. a decoder-as-encoder retriever. -The comparison with and without causal-mask relaxation is necessary.
- Not sure if the rank collapse issue is significantly reduced or removed.
- The main table shows only three datasets.
- It is not clear whether t-SNE figures can be treated as strong evidence. I think it can only be used as an intuition provider.
Clarity
- The paper is generally written well and not very difficult to follow.
- The architecture is explained reasonably and clearly.
- I suggest that strong claims should be toned down. For example, "confirms that the design ...", "robust new paradigm...".
Significance
- The target problem of this work is an important one to solve the limitations of the standard RAG architecture.
- While decoder-as-encoder approaches exist, authors do not sufficiently justify why this design is preferable to a more conventional RAG architecture. Challenges described in the paper seem to arise because of repurposing a decoder-only model into an encoding role. The paper should more clearly explain why this design is necessary and what strong benefits there are.
Originality
- The repurposing of a decoder for an encoder task is not new and has been tried by others. The specific techniques adopted to make the approach work are where the novelty lies. Combining the use of a decoder as an encoder with soft knowledge token transfer seems to be novel.
Questions
In Table 5, separate learning takes 10 hours, whereas joint learning takes more than 20 hours. Can this be explained why?
Limitations
yes
Final justification
Authors have put in significant effort to extend the analysis and explain the effect of causal-mask relaxation on the performance. Authors added a reasonable explanation about the significance of their rank collapse reduction effect. An additional dataset has been introduced in the evaluation. Other clarifications have been made. Overall, I feel that I can give the rating of 4.
Formatting concerns
I don't see any formatting issues.
3 comments
Rebuttal - Part 2
Weakness - Significance
ShiftRAG specifically targets settings where state-of-the-art retrievers are themselves LLM-scale models (e.g., NV-Embed-v2, LLM2Vec). In this paradigm, our single-backbone, decoupled design is not a workaround for an artificial limitation. It offers three distinct advantages over conventional RAG architectures:
- Deployment & Serving Efficiency (vs. Dual-LLM Systems):Serving a separate LLM-scale retriever alongside an LLM generator requires storing and running two distinct 7B+ parameter models. By sharing a single resident backbone with lightweight LoRAs, ShiftRAG dramatically lowers resource requirements. As shown in Appendix D.2 (Table 16), ShiftRAG uses 24.14 GiB VRAM and 2.79 s latency, compared to 38.82 GiB VRAM and 8.72 s for an NV-Embed-v2 + generator pipeline ( memory reduction and speedup).
- Eliminating Objective Conflict (vs. Unified Models like GritLM):We clarify that the core challenge described in our paper does not stem from causal-mask relaxation or repurposing decoders as encoders. Rather, it arises from conflicting gradient dynamics when retrieval and generation share representations. As shown in Section 4.4 (Table 5), updates in unified joint training are negatively aligned in 84.2% of steps. ShiftRAG’s dual-mode adapters isolate these objectives while retaining single-backbone efficiency.
- Richer Retriever–Generator Communication (vs. Text-Only RAG):Conventional architectures reduce the retriever’s output to discrete text, discarding high-dimensional alignment and relevance scores. Our SST interface directly projects these discriminative signals into generation-compatible soft tokens, providing the generator with a continuous blueprint for grounded synthesis (Section 4.3, Table 4).
In summary, ShiftRAG delivers the efficiency of a single backbone, the specialization of separate models, and superior retriever–generator signal transfer.
Weakness - Originality
We agree that using a decoder-only LLM as an encoder is not individually novel, and we will update the manuscript to clarify that this is not our standalone contribution. Rather, ShiftRAG's originality lies in the architectural and functional bridge between decoupled encoder–decoder modes.
To clarify our contributions relative to existing literature:
- vs. Retrieval-Only LLMs (e.g., LLM2Vec, NV-Embed-v2): These methods optimize LLMs strictly for discriminative embedding tasks. They do not address the generation pipeline, nor do they model downstream retrieval–generation interactions.
- vs. Unified RAG Frameworks (e.g., GritLM, OneGen): While these models perform both retrieval and generation, they (1) optimize both tasks jointly, leading to severe objective conflict, and (2) communicate purely through raw text. This creates a textual bottleneck that discards fine-grained retrieval metadata.
ShiftRAG addresses these limitations through a three-part integration:
- Mitigating rank collapse: We employ specialized representation loss functions (incorporating sequence orthogonality and layer-wise dynamics) to prevent deep-layer representation collapse.
- Task-wise decoupling: We train encoder and generator LoRA adapters independently, avoiding the gradient conflict inherent in unified models (validated in Table 5).
- Latent signal transfer (SST): Instead of relying solely on raw text, we project query–document embeddings and relevance scores into continuous soft knowledge tokens via SST. This provides the generator with a direct, latent blueprint of document relevance beyond discrete text.
Empirical ablations in Section 4.3 (Tables 3–4) and Section 4.4 (Table 5) confirm that each component and the unified latent interface are essential to achieving state-of-the-art performance.
Questions. Training-Time Difference
The 2$\times$ longer training time for joint learning stems directly from severe gradient conflict between the retrieval (discriminative) and generation (generative) objectives, as well as the non-stationary "moving target" problem during joint optimization.
First, to quantify this conflict, we tracked the cosine similarity between retrieval and generation gradient updates in joint learning. During the first 500 steps, their cosine similarity was negative in 84.2% of updates (averaged over 3 runs), causing the model to constantly oscillate and slow down convergence.
Second, in joint training, the decoder must constantly adapt to continuously shifting soft knowledge token representations. Separate learning eliminates this issue by freezing the encoder first, providing a stable, fixed interface for decoder adaptation.
When capped at the same 10-hour budget as separate learning, joint learning remains under-converged and exhibits significantly lower overall performance. This empirically confirms our core hypothesis regarding objective conflict in unified RAG architectures (detailed theoretically in Appendix E.4).
Rebuttal - Part 1
Dear Reviewer aF1r
We thank the reviewer for their thoughtful feedback. Below, we address all comments and quality-related weaknesses (Q). We hope these clarifications and additional results address the concerns raised, and we respectfully invite reconsideration of the overall evaluation. We welcome any further discussion.
Q1. Comparison of retriever architectures and causal-mask relaxation
| Methods | HotpotQA | 2Wiki | MuSiQue | ||||||
|---|---|---|---|---|---|---|---|---|---|
| R@2 | R@5 | R@10 | R@2 | R@5 | R@10 | R@2 | R@5 | R@10 | |
| 0.5485 | 0.6800 | 0.7415 | 0.5510 | 0.6563 | 0.7007 | 0.3530 | 0.5047 | 0.5882 | |
| 0.5938 | 0.7475 | 0.8190 | 0.5506 | 0.6440 | 0.6944 | 0.3818 | 0.5127 | 0.5909 | |
| 0.6598 | 0.8214 | 0.8806 | 0.6080 | 0.7109 | 0.7530 | 0.4186 | 0.5634 | 0.6516 |
Table 1. Effect of causal-mask relaxation on retrieval performance
To isolate the effect of causal-mask relaxation, we compare the state-of-the-art bidirectional encoder retriever RaLa with and , which differ only in attention policy. As shown in Table 1, bidirectional attention consistently improves retrieval performance: outperforms by 11.11% on HotpotQA R@2 (0.5938 → 0.6598) and 10.43% on 2WikiMultihopQA R@2 (0.5506 → 0.6080). It also surpasses RaLa by 20.79% on HotpotQA R@5 (0.6800 → 0.8214) and 18.58% on MuSiQue R@2 (0.3530 → 0.4186). These results show that causal-mask relaxation substantially improves retrieval performance of the retriever. Additional comparisons are provided in Appendix C.1 (Table 8).
Q2. Significant result about rank collapse reducing
We clarify that rank collapse is substantially mitigated by the encoder-mode training of ShiftRAG, though we do not claim it is entirely eliminated. To measure rank collapse, we follow the metrics proposed in prior work [1-3], using layer-wise token covariance and effective rank (eRank), where lower covariance and higher eRank indicate greater representational diversity. Appendix E.9 (Figures 9 and 10) shows that, across Gemma2-9B, Mistral-7B, Qwen2.5-7B, and LLaMA3.1-8B, ShiftRAG consistently exhibits lower late-layer covariance and higher eRank than the corresponding backbone and unified baselines. This demonstrates that its token representations remain less directionally aligned and preserve more independent dimensions, providing direct evidence that rank collapse is reduced across architectures.
To contextualize rank-collapse mitigation, we apply MixiT [1] to the same LLM backbone. Relative to the backbone, MixiT reduces token-representation covariance by 15.19%, whereas SOA (ours) achieves a larger reduction of 17.88%. Unlike MixiT, SOA is applied only during training and leaves inference-time attention unchanged, resulting in 11.8% lower inference latency than MixiT.
[1] Is Random Attention Sufficient for Sequence Modeling? Disentangling Trainable Components in the Transformer (arXiv, 2025) [2] Preventing Dimensional Collapse in Self-Supervised Learning via Orthogonality Regularization (NeurIPS, 2024) [3] LDReg: Local Dimensionality Regularized Self-Supervised Learning (ICLR, 2024)
Q3. Evaluation on diverse dataset
Beyond the three multi-hop QA benchmarks in the main table, we evaluate the performance of ShiftRAG on NaturalQuestions (Appendix C.3, Table 10) and SimpleQA (Appendix C.4, Table 11). We further evaluate embedding generalization on MTEB Clustering, Semantic Textual Similarity, and Summarization, and generative generalization on MMLU, GSM8K, and TyDiQA (Appendix C.5, Table 12). Detailed dataset descriptions, evaluation settings, and metrics are provided in Appendix A.
Q4. t-SNE visualization
The t-SNE visualizations in Section 4.5 (Figure 5) and Appendix E.8 (Figure 8) are intended to provide qualitative geometric intuition. Figure 5 illustrates how SST shifts anchor-token embeddings toward the decoder’s document-token distribution, while its effectiveness is supported quantitatively by the SST ablations and QA results. Figure 8 visualizes the different embedding geometries produced by bidirectional and unidirectional attention, while the effect of causal-mask relaxation is validated through direct retrieval comparisons. We will revise the corresponding wording to clarify that these t-SNE figures serve as complementary intuition rather than standalone empirical evidence.
Weakness - Clarity
We acknowledge that several expressions overstate the scope of our evidence. We will replace definitive wording such as “confirms” with “suggests” or “indicates,” and revise “establishing a robust new paradigm” to a more measured phrase such as “providing a promising direction for retrieval-augmented reasoning.”
Dear Reviewer aF1r
We sincerely appreciate you for recognizing the contributions of our research and for providing valuable feedback. We are very grateful to you for high quality reviews and constructive comments. We tried to fully respond to every single comment and suggestion. We will incorporate your feedback and the additional experimental results into the final version to enhance the completeness of our paper.
If you find our responses satisfactory, we kindly request that you reconsider the evaluation of our work. Should you have any additional suggestions or comments, we are always more than willing to provide clarifications to address them. Many thanks! Thank you once again for your thoughtful comments and your time
Best regards,
Authors of paper 23877
- Rating
- 5/6
- Confidence
- 2/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The ShiftRAG method uses a single LLM backbone in both retrieval encoder mode and answer generator mode retrieval-augmented generation. In encoder mode, the causal attention mask is replaced with bidirectional attention and the model is adapted for retrieval using a separate LoRA adapter. The encoder is trained with two new objectives: layer-wise gap-aware contrastive learning, which uses the difference between intermediate-layer and final-layer similarities, and a soft orthogonal alignment loss intended to reduce rank collapse in the deeper layers. In decoder mode, the model returns to causal attention and uses another LoRA adapter. In addition to the retrieved documents, the decoder receives soft knowledge tokens generated by a Semantic Signal Translator. The translator takes question embeddings, document embeddings, and retrieval scores as input and maps them into the decoder’s token-embedding space. The decoder is trained using next-token prediction and knowledge distillation from a teacher conditioned on textual rationales. The encoder and decoder are trained sequentially rather than jointly. The motivation is that retrieval and generation have conflicting objectives, and that jointly training them creates both gradient conflict and a continuously changing interface between the retriever and generator. The method is evaluated on HotpotQA, 2WikiMultihopQA, MuSiQue, NaturalQuestions, and SimpleQA. The experiments include several LLM backbones, retrieval and QA baselines, component ablations, alternative training strategies, general embedding and generation benchmarks, and efficiency measurements.
Strengths and weaknesses
Strengths:
- The overall methodology is novel. Using the same LLM backbone in separate encoder and decoder modes is an interesting compromise between having completely separate models and forcing retrieval and generation to share all adaptation parameters. The soft-token interface between the two modes is also a meaningful contribution.
- Experimental results are strong. ShiftRAG achieves the best reported retrieval and QA results across the main datasets. The gains are especially large on MuSiQue, which is the most difficult of the evaluated multi-hop datasets. The improvements are also mostly consistent across Gemma2, Llama3.1, Mistral, and Qwen2.5 backbones.
- The evaluations related to design choices are quite extensive. The paper separately ablates the LGC and SOA encoder objectives, SST and decoder LoRA, individual components of SST, soft-token placement, the number of soft tokens, and different joint, alternating, and separate training strategies. It also includes latency, memory, candidate-pool scaling, MTEB, MMLU, GSM8K, TyDiQA, and Latent-CoT comparisons.
- The learning-strategy experiment is particularly useful. Joint learning with shared parameters performs very poorly, while separating the parameters and then separating the training stages progressively improves performance. This provides reasonable empirical support for the decision to train the encoder before the decoder.
- The method has a reasonable efficiency/performance trade-off. It uses LoRA rather than full fine-tuning, and the Semantic Signal Translator adds very little inference latency. The end-to-end latency is close to GritLM while QA accuracy is substantially higher.
Weaknesses:
- The textual bottle neck hypothesis is plausible and motivates by other works like R2RAG (https://arxiv.org/html/2406.13249v1) and xRAG (https://arxiv.org/abs/2405.13792). However, I am unsure if latest LLMs with high reasoning capability still face issues with extracting answers from the raw text of retrieved context. I find that the experiments related to this area insufficient: ** Table 2 has question answering performance that are end-to-end and are not isolating just the effect of soft-tokens vs raw text. ** Table 2 uses Gemma2-9B, but that model is relatively small and from 2024. The larger, modern LLM with strong reasoning might not have an issue with textual bottleneck.
- Since R2RAG and xRAG prior works already introduce the soft-token concept, the novelty in that aspect of the work is lower.
- I am unsure of the practical motivation for both the encoder and answer-generator to have the same LLM backbone. Generally, answer generators are standard LLMs that can handle various question-answering formats, domains and settings with variable reasoning effort, while encoders are specialized models for different types of retrieval such as documents, code etc.
Questions
The textual bottleneck theory may be plausible but not very convincing. Why should modern LLMs with reasoning ability not be able to distinguish between distractors and the answers in the raw text and not be able to generate the answer from the text? What would the Table 2 results be if 1) the retriever is kept fixed 2) the answer generator is a big LLM with high reasoning effort such as Qwen3.6-35B or Gemma4-31B, and the only comparison is the soft-token mechanism versus retrieved text.
Limitations
yes
Final justification
I continue to recommend the positive rating of Accept (5). During rebuttal period, the authors have contrasted with R2RAG and xRAG to show reasonable novelty. Furthermore, the authors have clearly justified the efficiency benefits of having an unified LLM backbone for the embedding model and the generator (hosting a single model + 2 lightweight LoRAs vs hosting two models).
I continue to be puzzled by the textual bottleneck theory, given that reranker models that observe the query+document jointly have better relevance judgement than embedding models that compute query and document embeddings separately. So generation models that also see the query and retrieved documents jointly should not need relevance information from the retriever since they should be able to make a better judgement independently.
Despite my confusion about textual bottleneck, the strong empirical results show the benefits of this approach.
Formatting concerns
None.
3 comments
Rebuttal - Part2
W2. Novelty concern about soft-token concept
| Category | R2RAG | xRAG | ShiftRAG |
|---|---|---|---|
| Function of soft tokens | Retrieval feature extraction | Compression | Retrieval-signal transfer + Latent CoT |
| Input to soft token module | Three retrieval-derived scalar statistics | Document embedding | Query–document embeddings + relevance score |
| Conditioning property | Relevance-aware | N/A | Directly query-conditioned and relevance-aware |
| Output from soft token module | Single token per retrieved document | Single token per retrieved document | Multiple tokens per query–document pair |
Table 2. Key differences between R2RAG, xRAG and ShiftRAG in soft-token construction and usage.
We acknowledge that R2AG and xRAG also employ soft tokens in RAG. However, ShiftRAG differs substantially in what the tokens encode, how they are used, and how the retrieval-to-generation interface is learned.
- vs R2AG: Both methods retain the raw documents. However, while R2AG reduces the retriever representations to scalar statistics, which are then converted into a single retrieval-control token per document, ShiftRAG directly translates high-dimensional question–document embeddings and relevance scores into multiple pair-specific soft tokens, preserving semantic alignment information that is unavailable from the scalar statistics. While R2AG uses its tokens primarily as retrieval-aware anchors, the soft tokens from ShiftRAG provide latent reasoning guidance during answer generation. Therefore, ShiftRAG transfers both high-dimensional retrieval alignment and rationale-induced reasoning signals, rather than representing retrieval utility through predefined scalar features alone.
- vs xRAG: xRAG uses a precomputed, query-independent document embedding as a single-token substitute for the raw document, primarily targeting extreme context compression. ShiftRAG instead retains the raw document and augments it with query-conditioned soft tokens computed from each question–document pair. Therefore, these soft tokens complement explicit evidence with retrieval-side alignment and latent reasoning signals rather than compressing or replacing document content.
Thus, our novelty is not the generic soft-token concept, but a retrieval-conditioned semantic translator and decoupled encoder–decoder learning framework that transfers high-dimensional retrieval alignments into multi-document reasoning.
[1] CODI: Compressing 537 chain-of-thought into continuous space via self-distillation (EMNLP, 2025) [2] SIM-cot: Supervised implicit chain-of-thought (ICLR, 2026)
W3. Motivation about having the same LLM backbone for encoder and answer-generator
We clarify that the practical motivation for a shared backbone is not unique to ShiftRAG. The motivation for sharing a single LLM backbone stems from serving efficiency, domain modularity, and latent compatibility, aligning with recent unified architectures like GritLM, OneGen, and GRACE. This motivation is also reflected in industrial research: GritLM, co-authored by Microsoft Research researchers. Rather than forcing a static compromise, ShiftRAG achieves the best of both worlds, the retriever and generator, through a decoupled LoRA architecture:
1. Deployment Efficiency (1 Model vs. 2 LLMs): Serving separate LLM-scale retrievers (e.g., NV-Embed-v2) alongside a 7B+ generator requires hosting two distinct large models. ShiftRAG keeps a single resident backbone and toggles lightweight task adapters. As reported in Appendix D.2 (Table 16), this reduces peak memory from 38.82 GiB to 24.14 GiB (38% reduction) and latency from 8.72s to 2.79s ( speedup). 2. Task Specialization without Parameter Duplication: Task-specific LoRA adapters allow the encoder to specialize deeply while leveraging the base model's representation capacity. Under a matched 10K training setup, ShiftRAG’s specialized encoder/generator adapters outperform the dual-model LLM2Vec pipeline across all benchmarks, including a +25.64% gain on MuSiQue EM (). 3. Retriever-Generator Communication via Latent Alignment: Because the encoder and generator share foundational representation spaces, translating question–document alignments into soft tokens requires only a lightweight projection, enabling rich latent communication that text-only RAG discards.
ShiftRAG does not restrict domain specialization; rather, it provides a decoupled framework where task-specific LoRAs handle specialized encoding and generation on a single backbone.
Rebuttal - Part1
Dear Reviewer PiiX
Thank you very much for your thoughtful and constructive feedback. We sincerely appreciate the time and effort you invested in reviewing our work. We have carefully considered each of your comments and provided additional analyses and experimental results to address the issues raised. We will incorporate the relevant revisions and new findings into the final version of the paper. We hope that our responses sufficiently clarify our contributions and address your concerns. We would be happy to provide any further clarification if needed. Thank you again for your consideration. For clarity, W denotes a weakness related to the quality of the work.
W1&Question. Insufficient evidence for the textual bottleneck in modern LLMs and individual effect of soft-tokens.
| Generator | Inference Setting | HotpotQA | 2Wiki | MuSiQue | |||
|---|---|---|---|---|---|---|---|
| EM | F1 | EM | F1 | EM | F1 | ||
| Gemma4-31B | Generate w/o SST(Raw text only) | 0.5920 | 0.7012 | 0.4960 | 0.5976 | 0.3120 | 0.4358 |
| Gemma4-31B | Generate w/ SST(Raw text + STs) | 0.6140 | 0.7116 | 0.5280 | 0.6142 | 0.3410 | 0.4873 |
| Qwen3.6-35B | Generate w/o SST(Raw text only) | 0.6050 | 0.7293 | 0.5070 | 0.5624 | 0.3290 | 0.4437 |
| Qwen3.6-35B | Generate w/ SST(Raw text + STs) | 0.6310 | 0.7548 | 0.5330 | 0.5788 | 0.3660 | 0.5026 |
Table 1. Inference-time SST ablation with a fixed NV-Embed-v2 retriever and modern large LLM generators. Both settings use the same retrieved documents and SST-trained generator LoRA; the only difference is whether SST-generated soft tokens (STs) are provided at inference.
We conduct a controlled inference-time ablation to determine whether modern large reasoning-capable LLMs still benefit from retrieval-side latent signals beyond raw text and to isolate the inference-time contribution of soft tokens. We fix the NV-Embed-v2 retriever, retrieved documents, document order, relevance scores, SST-trained generator checkpoint, and decoding configuration, varying only whether SST-generated soft tokens are provided at inference.
- Modern large LLMs consistently benefit from SST beyond raw retrieved text. As shown in Table 1 above, SST improves performance on all datasets and all evaluation metrics for both Gemma4-31B and Qwen3.6-35B. The largest gains are observed on MuSiQue: Gemma4-31B improves by 9.29% in EM (0.3120 → 0.3410) and 11.82% in F1 (0.4358 → 0.4873), while Qwen3.6-35B improves by 11.25% in EM (0.3290 → 0.3660) and 13.27% in F1 (0.4437 → 0.5026).
Our textual bottleneck hypothesis does not assume that modern LLMs are unable to distinguish evidence from distractors or generate answers from raw text. Rather, it concerns the information lost when the retriever and generator communicate only through text: the retriever’s question–document alignment and relevance signals are not explicitly preserved in the textual interface.
Accordingly, the results suggest that modern large LLMs can reason over raw retrieved text but still benefit from receiving retrieval-side alignment signals through the latent interface.
I am still not complete convinced about the textual bottleneck. I understand your point that it is not about information that is lost in the text but rather the relevance information from the embedding model that is lost. On the contrary, we know that rerankers are more accurate than embedding models because the query and documents are available jointly to the reranker. Similarly the query and documents are available jointly to the generator. So ideally, the generator should be able to judge relevance better than the embedding model scores. However, your empirical evidence shows the benefits so my concern is addresses. My other concerns about novelty and motivation are addressed as well. Maintaining my rating.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal Summary
Dear NeurIPS 2026 Area Chair
We would like to express our sincere appreciation for your efforts as an Area Chair and for your service to the NeurIPS community. Our paper was recognized for its excellence in addressing the underexplored dimension of novel RAG architecture based on "soft tokens". The reviewers have noted the strengths of our work, particularly in the following aspects:
During the rebuttal period, we conducted the following additional experiments to address the reviewers' concerns:
We believe these additions directly resolve the central concerns by isolating each component’s contribution, strengthening the motivation with modern large LLMs, and more precisely positioning ShiftRAG relative to prior work.
We kindly ask the Area Chair to consider our paper from this perspective. We hope that this will help you evaluate our work in a comprehensive manner. Thank you so much.
Best regards, Authors of paper 23877