Skip to content

Retrieving from Your Own Mistakes: On-Policy Training of Embedding Models for Multi-Hop Retrieval-Augmented Generation

Skip →MTEB & MMTEB
main track #12corefrontierpaperrubric 12/122026 · ~35 min

Chenjie Qiu, Zixuan Zeng, Shaobin Shi, … Boyan Xu

Read first: On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes (GKD)

Status

TL;DR. On-policy here refers to sampled states: the retriever is trained on histories its own roll-ins produce. This is supervised contrastive training, not policy-gradient RL. A multi-hop chain retriever (in the style of MDR) puts every passage it has retrieved into the next query. If it is trained only on gold histories (teacher forcing), it has never seen a history containing its own mistakes, and after one wrong passage it rarely recovers. This paper trains the query encoder on the states its own greedy roll-ins visit. Each state is labelled with the earliest missing gold passage, which is free given the gold set. On MuSiQue, complete coverage in the top five (C@5) rises from 44.6 to 50.5 with everything else fixed.

Why it matters now. Agentic search is a sequence of retrieval steps conditioned on what was already read. This paper is the cleanest demonstration that the training-state distribution matters for such retrievers, and it is a gentle bridge into RL ideas. It uses imitation learning (DAgger with a dynamic oracle), not policy-gradient RL: the loss stays contrastive, every state has a dense label, and there is no reward.

Chain dense retrieval. A state is st=(q,Et)s_t = (q, E_t), the question plus the passages retrieved so far. A query encoder fθf_\theta embeds the serialised state; documents are embedded once by a frozen encoder hh:

σθ(s,d)=fθ(x(s))⊤h(d),et=arg⁡max⁡d∈C∖Etσθ(st,d).\sigma_\theta(s, d) = f_\theta\big(x(s)\big)^{\top} h(d), \qquad e_t = \arg\max_{d \in \mathcal{C}\setminus E_t} \sigma_\theta(s_t, d).

Free oracle label. With R(s)=G(q)∖ER(s) = G(q) \setminus E the gold passages still missing, the target is the earliest of them in chain order, a∗(s)=gja^*(s) = g_j with j=min⁡{i:gi∈R(s)}j = \min\{i : g_i \in R(s)\}. This is defined even when EE contains wrong passages. The loss masks the other missing gold passages, because retrieving them is also progress:

ℓθ(s)=−log⁡exp⁡(σθ(s,a∗(s))/τ)∑d∈{a∗(s)}∪(N(s)∖R(s))exp⁡(σθ(s,d)/τ).\ell_\theta(s) = -\log \frac{\exp\big(\sigma_\theta(s, a^*(s))/\tau\big)}{\sum_{d \in \{a^*(s)\} \cup (N(s)\setminus R(s))} \exp\big(\sigma_\theta(s, d)/\tau\big)} .

Change only the state distribution. Teacher forcing minimises ℓθ\ell_\theta over gold-only histories dgoldd_{\text{gold}}. On-policy state training uses

μθ=λ dgold+(1−λ) dπθ,λ=12.\mu_\theta = \lambda\, d_{\text{gold}} + (1-\lambda)\, d_{\pi_\theta}, \qquad \lambda = \tfrac12 .

At the start of each epoch, the current encoder runs greedily for TT steps on every training question. Its visited states (with a gold passage still missing) are deduplicated, and a fixed number is sampled. They replace the previous epoch’s visited half instead of accumulating as in classic DAgger. The other half is teacher-forced states. The architecture, target, loss, negative rule (the frozen encoder’s top 100 for the state text, minus all gold) and the frozen index are the same in both regimes.

Teacher forcing versus on-policy state training for a chain retriever Top left, teacher forcing: the history is always a gold prefix (question, gold 1, gold 2) and the target is the next gold passage, so the encoder never sees a wrong passage. Top right, on-policy roll-in: the current encoder retrieved gold 1 and then a wrong passage; the target is still the earliest missing gold passage, gold 2, and the other missing gold passage, gold 3, is masked rather than used as a negative. Bottom: each epoch the current encoder runs a greedy roll-in, visited states are labelled with the earliest missing gold, and training uses half gold states and half freshly visited states, which replace the previous epoch's visited states. There is no reward and no policy gradient. Teacher forcing q g₁ g₂ g₃ target history is always a gold prefix: the encoder never sees its own mistakes On-policy roll-in q g₁ w ✗ g₂ target a*(s) target = earliest missing gold (g₂); g₃ is masked, not used as a negative Each epoch encoder θₖ query-side LoRA greedy roll-in T steps / question label with a*(s) free, from gold set train: ½ gold states + ½ fresh visited θₖ₊₁ Visited half is replaced every epoch (not accumulated); index and negative rule stay frozen. No reward or policy gradient: every visited state gets a supervised label (DAgger).
Original sketch. Teacher forcing trains only on gold histories. On-policy state training also trains on the states the current encoder reaches, including ones with its own wrong passages. Each state is labelled with the earliest missing gold passage, with the other missing gold masked.
  • MuSiQue (Table 1, mean of five seeds). C@5 49.3 (R@5 73.5) vs Search-R1 36.5, Q-RAG 36.2, the released MDR checkpoint 31.9, HippoRAG 2 23.1, the frozen dense encoder 18.9 and BM25 9.8.
  • Longer chains, trained only on MuSiQue. HotpotQA-Long C@10 29.6 vs Search-R1 25.7. On 2Wiki-Long, Search-R1 leads on C@10 (37.0 vs 32.8).
  • Downstream QA (Table 2). With a fixed reader on the top five passages, exact match is 44.1 vs 35.5 with Search-R1’s passages and 32.4 with Q-RAG’s.
  • Ablations (Table 3, one seed). MuSiQue C@5: full 50.5; without refresh 48.4; teacher forcing 44.6; without the chain 18.9. The teacher-forcing gap widens on longer chains (HotpotQA-Long C@10 28.0 vs 22.3; 2Wiki-Long 34.7 vs 24.3).
  • Fixed-state probe (§5.4.1). On 3,403 states visited by the teacher-forced retriever, success with a clean history is similar (67.0% vs 69.0%), but after one wrong passage it rises from 25.0% to 35.8%, and after two or more from 14.5% to 29.2%.
  • Shared negative pools (§5.5.2). Giving every state of a question the same negatives still leaves a +3.8 C@5 gain (vs +5.9), so most of the gain comes from the histories.
  • Cost (Appendix F.2). Both regimes schedule the same 2,940 optimiser steps. Teacher forcing takes 37 minutes for 10 epochs; on-policy training stopped after 7 epochs in 60 minutes, 32 of them spent on roll-ins. The first roll-in uses a teacher-forced encoder, so the full pipeline costs one extra teacher-forced run. At test time a question takes about 0.10 s for four steps (0.017 s for a single dense search).
  • Trained on 2,000 MuSiQue questions; four-hop chains remain hard (C@5 below 10% for every system).
  • A fixed number of steps TT and a greedy argmax policy. There is no stopping decision and no LLM in the loop, unlike real agents.
  • The oracle needs an ordered gold chain. Comparison questions have a partly arbitrary order; open-web tasks may not have a gold chain at all.
  • The comparison with agentic baselines mixes training data, model sizes and retrieval budgets; the clean result is teacher forcing vs on-policy.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    Use the paper's "delete the wrong passages" probe on 1,358 contaminated MuSiQue states. The teacher-forced encoder succeeds on 20.8% of the original states and 32.1% after the wrong passages are removed; the on-policy encoder succeeds on 33.1% and 35.3%. Clean states succeed about 67% of the time. (a) How many points does contamination cost each encoder, and what fraction of the teacher-forced encoder's cleaned-state success is that? (b) Split the 67% − 20.8% gap for the teacher-forced encoder into "harder state" and "the wrong passage in the query". (c) Explain why gains in next-step success grow into larger gains in complete coverage (C@k) than in recall (R@k) on longer chains.

    What a strong answer covers
    • (a) Teacher forcing: 32.1 − 20.8 = 11.3 points, about 35% of 32.1, which is the paper's "about a third". On-policy: 35.3 − 33.1 = 2.2 points.
    • (b) Of the 46.2-point gap (67 − 20.8), deleting the wrong passages recovers 11.3 points; the remaining ~35 points (67 − 32.1) belong to the states themselves being harder (gaps in the gold history, harder questions).
    • The on-policy encoder on contaminated states (33.1%) slightly beats the teacher-forced encoder after an oracle deletes the wrong passages (32.1%).
    • (c) A question counts toward C@k only if every step succeeds, so if each step succeeds with probability p, an n-hop chain completes with roughly p^n. Raising p at later steps (27.7 → 38.7% at step 3, 15.2 → 23.1% at step 4) multiplies through the chain, while R@k gives partial credit for each gold passage found.
  2. Mechanism

    Write the target rule (Eq. 3) and the contrastive loss (Eq. 4) for a state s = (q, E) whose history contains a wrong passage. Explain why this label costs nothing, why the other missing gold passages are removed from the denominator, and why the paper says this setup is not reinforcement learning even though it has states, a policy and roll-ins.

    What a strong answer covers
    • Target: a*(s) is the earliest gold passage, in chain order, that is not yet in E. It depends only on the gold set G(q) and on E, so it is defined for any state, including ones with wrong passages.
    • Loss: −log of exp(σ(s, a*)/τ) over the sum for a* plus the negatives N(s) minus the still-missing gold R(s). Removing the other missing gold means retrieving any of them is never penalised; chain order only picks which one gets the gradient.
    • This is a dynamic oracle: the correct next action from any state comes from the gold set, at no cost and without an LLM.
    • It is not RL: there is no reward, no return and no policy-gradient estimator. Every visited state gets a dense, supervised per-step label, and the update is ordinary contrastive learning. On-policy here means only that the training states come from the current model's roll-ins (DAgger), unlike Search-R1, which learns from a sparse outcome reward.
  3. What if…

    Table 3 removes refresh, then on-policy states, then the chain; Table 4 replaces the visited half with synthetic contamination or with visited states that are not refreshed. MuSiQue C@5: full 50.5; no refresh 48.4; teacher forcing 44.6; no chain 18.9; synthetic contamination 47.9 (47.1 resampled); visited once and resampled 47.0. Which factor explains which part of the gain, and what would you conclude about "just add distractors to training"?

    What a strong answer covers
    • The chain itself is the biggest factor: without the history in the query, fine-tuning gives no gain over the frozen encoder (C@5 18.9; R@5 54.6 vs 55.1).
    • Any contamination helps: synthetic wrong passages raise C@5 from 44.6 to 47.9, about half of the gap to the full method. So "add distractors" recovers part of the gain.
    • Visited states collected once (48.4) are worth only a little more than synthetic contamination. Resampling either kind every epoch does not help (47.1, 47.0), so new samples alone are not the cause.
    • The rest comes from refreshing with the current encoder (50.5): training on the mistakes the model makes now. The refresh matters most far from training data: on HotpotQA-Long, no-refresh gets 22.7 C@10 vs 22.3 for teacher forcing and 28.0 for the full method.
  4. Critique

    The paper claims a 0.6B on-policy chain retriever beats Search-R1, Q-RAG, MDR and HippoRAG 2 on multi-hop retrieval. List the parts of the comparison that are well controlled and the parts that are not, and say which claim you would trust most.

    What a strong answer covers
    • Well controlled: teacher forcing vs on-policy uses the same encoder, LoRA, loss, target, negative rule, frozen index, number of states and schedule. Only the state distribution changes, so the 44.6 → 50.5 C@5 gain is cleanly attributable.
    • Robustness checks: shared negative pools still give +3.8 C@5 (vs +5.9), so most of the gain comes from histories, not from different negatives. Table 1 averages five seeds.
    • Less controlled: baselines differ in training data, model size and retrieval budget. Search-R1 averages three searches with a 7B model and was trained on HotpotQA questions; it puts fewer gold passages in the top five but wins 2Wiki-Long C@10 (37.0 vs 32.8).
    • Scope: trained on 2,000 MuSiQue questions with a fixed T; the chain never decides to stop. Four-hop C@5 stays below 10% for every system.
    • Most trustworthy claim: on-policy states improve recovery after a mistake (fixed-state probe, 25.0% → 35.8% after one wrong passage), rather than any single leaderboard comparison.
  5. Design

    You want to apply on-policy state training to the retriever behind a deep-research agent (an LLM issuing sub-queries over a BrowseComp-Plus-style corpus). The agent, not a greedy argmax, chooses what to read, and gold evidence is a set of documents rather than an ordered chain. Design the roll-in, the oracle label, the masking rule and the evaluation.

    What a strong answer covers
    • Roll-in: run the full agent with the current retriever and log each search state (question, sub-query, documents already seen). Refresh these logs each training round, since the paper's gain comes from the current model's states.
    • Oracle: without a chain order, label any not-yet-seen gold document as a positive and mask the other unseen gold documents, as Eq. 4 does; or use the gold document the agent eventually cites.
    • Negatives: keep a fixed rule (for example a frozen retriever's top 100 for the state text, excluding all gold) so gains are attributable to the states, as in the paper.
    • Keep half teacher-forced states (gold prefixes) so the model still sees histories it rarely reaches.
    • Evaluate end-to-end agent accuracy and search calls, plus a fixed-state probe: score every retriever on the same logged states, split by how many wrong documents the history contains.
  6. Connect

    Map this paper onto the RL and imitation-learning vocabulary from the RL track: state, action, policy, roll-in, expert/oracle, exposure bias, and on-policy vs off-policy data. Then compare it with on-policy distillation of language models, where a student samples text and a teacher scores each token. What is shared, and what is different about the supervision signal?

    What a strong answer covers
    • State: question plus retrieved passages. Action: the next passage. Policy: greedy argmax of the query encoder's scores. Roll-in: running that policy for T steps. Oracle: the earliest missing gold passage.
    • Exposure bias: teacher forcing trains only on gold prefixes, but at test time the encoder conditions on its own possibly wrong prefixes. On-policy data fixes the training distribution (DAgger, Ross et al. 2011).
    • Shared with on-policy distillation: the learner generates the states; an expert supplies a dense per-step target on those states; no scalar reward is needed.
    • Different: here the oracle is exact and free (from gold labels) and the loss is contrastive over passages; in distillation the teacher is another model whose per-token distribution can be wrong, and the loss is a divergence over tokens.
    • Neither is policy-gradient RL; both avoid the variance of sparse outcome rewards by having per-step supervision.

Done with this page?

Status