acceptodds
Published as a conference paper at NeurIPS 2026

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

Youmin Ko, Jihong Jeong, Hyunjoon Kim

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.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_CUQDOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
2
Quality
2
Significance
3
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:

  1. 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.

  2. 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.

  3. 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
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Paper formatting concerns

No

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.

1 comment

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)

RetrieverGeneratorHotpotQA2WikiMuSiQue
EMF1EMF1EMF1
LLM2VecGritLM0.45400.53270.34100.40250.21000.3034
LLM2VecLoRA0.50300.61060.44000.49140.24300.3670
LLM2VecLoRA + SST0.52200.62810.46300.52020.26100.3902
NV-Embed-v2GritLM0.46600.55680.35600.42160.22300.3116
NV-Embed-v2LoRA0.51400.62200.45800.50640.24800.3783
NV-Embed-v2LoRA + SST0.53000.63920.46900.52510.26300.3913

Table 1. QA performance with fixed external retrievers and different generator configurations.

RetrievalGeneratorLoRAdec\mathrm{LoRA}_{\mathrm{dec}} TuningHotpotQA2WikiMuSiQue
EMF1EMF1EMF1
LLM2VecLoRAw/o SST, KD0.47700.60860.41900.48820.19500.3012
NV-Embed-v2LoRAw/o SST, KD0.49100.61430.43200.49640.20000.3021
ShiftRAGLoRAw/o SST, KD0.52300.64680.46300.51940.24500.3639
LLM2VecLoRAw/o KD0.49700.60960.42600.48970.23000.3338
NV-Embed-v2LoRAw/o KD0.50500.61350.44900.50510.22900.3526
ShiftRAGLoRAw/o KD0.53600.65180.48800.53210.28600.4038
LLM2VecLoRAAll0.50300.61060.44000.49140.24300.3670
NV-Embed-v2LoRAAll0.51400.62200.45800.50640.24800.3783
ShiftRAGLoRAAll0.54900.66840.49800.54210.28900.4039
ShiftRAGLoRA + SSTAll0.56100.67900.50800.55280.30500.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.
    1. 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).
    2. Training SST: With ShiftRAG retriever fixed, adding SST during NTP training without KD improves EM by 16.73% (0.2450→0.2860).
    3. Distillation: Incorporating KD adds a 1.05% gain (0.2860→0.2890).
    4. 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

MethodsHotpotQA2WikiMuSiQue
EMF1EMF1EMF1
1-layerMLP0.45050.57040.40080.45720.23760.3339
2-layerMLP0.46510.58940.41250.45950.24460.3355
ShiftRAG0.56100.67900.50800.55280.30500.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

MethodsHotpotQA2WikiMuSiQue
EMF1EMF1EMF1
LLM2Vec0.50300.61060.44000.49140.24300.3670
(±0.0020)(±0.0037)(±0.0020)(±0.0059)(±0.0020)(±0.0048)
GritLM0.44300.52580.30200.36650.18700.2872
(±0.0025)(±0.0048)(±0.0023)(±0.0086)(±0.0034)(±0.0052)
ShiftRAG0.56100.67900.50800.55280.30500.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

ComparisonxRAGShiftRAG
Soft-token inputDocument embeddingQuery–document embeddings + relevance score
Query conditioningNot query-conditionedDirectly query-conditioned and relevance-aware
Soft-token outputOne token per retrieved documentMultiple tokens per query–document pair
Raw document in generatorReplacedPreserved
Role of soft tokensDocument compressionRetrieval-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-KK 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.

Reviewer_aF1rOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
2
Significance
3
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

Paper formatting concerns

I don't see any formatting issues.

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.

Reviewer_PiiXOpenReview ↗
Rating
5
Clarity
3
Confidence
2
Originality
3
Quality
3
Significance
4
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

Paper formatting concerns

None.

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.

Comments on the paper

1 comment
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.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.