S2LMR

Supervised Sequential Long-Context Multi-Step Retriever

Align supervised training with inference, and a plain bi-encoder matches RL-trained retrieval from 4K to 10M tokens.

Qiang Hu, Kaiyi Ji
University at Buffalo
Paper · coming soon Code · coming soon Checkpoints · coming soon BibTeX

TL;DR

Supervised retrievers do not fall behind RL-trained ones on long-context multi-step retrieval because supervision is too weak; they fall behind because training does not match inference. S²LMR fixes three such mismatches with one shared bi-encoder and per-hop contrastive supervision. It matches or outperforms the RL-based Q-RAG on BabiLong, RULER, HotpotQA and MuSiQue at up to 10M tokens, trains in 2.25 GPU hours on BabiLong QA3, and stays stable across a wide range of learning rates and batch sizes.

Introduction

Can a simple supervised retriever handle million-token, multi-step retrieval?

Strong multi-step retrievers today rely on RL: value networks, target networks and temporal-difference updates. A bi-encoder trained with the standard DPR/MDR recipe, by contrast, reaches only 1.6% Fact EM on BabiLong QA3. We trace this gap to three places where supervised training does not look like inference.

Issue 1

Training negatives are too easy

Hop-1 cosine similarity to the query under MDR-style training: in-batch negatives sit far below the gold chunk, while same-context negatives overlap it.

In-batch negatives come from other questions and are easy to separate. The real competitors at test time are chunks of the same context, which overlap the gold chunk.

Fix: contrast the gold chunk against every other chunk of the same context.

Issue 2

Predicted prefixes add noise

Hop-1 failure rate versus candidate-pool size: BR-style training rises from 0.4% to 10% at 400K candidates, teacher-forced training stays at or below 3%.

Training later hops on the model’s own, sometimes wrong, picks blurs the supervision. With 400K candidates, hop-1 failure reaches 10%, against at most 3% with gold prefixes.

Fix: condition every hop on the gold prefix (teacher forcing).

Issue 3

Scores ignore where a chunk is

Pick success of a fine-tuned position-agnostic bi-encoder on BabiLong QA3: hop 1 34%, hop 2 47%, hop 3 20%, all three hops 8.5%. 0%20% 40%60% 34%47%20%8.5% hop 1hop 2hop 3all 3 Pick success without positions (QA3)

When evidence is positionally related, as in a story, a position-agnostic scorer picks the right chunk at only 20–47% of hops; all three hops succeed in 8.5% of examples.

Fix: score with Q-RAG’s chunk-axis positions, computed from the gold prefix during training.

Method

One shared encoder, supervised one hop at a time

S²LMR overview: a shared encoder embeds the hop state and the cached chunks of a long document; training applies per-hop InfoNCE with the gold chunk appended by teacher forcing, inference appends the top-scoring chunk.S²LMRTraining Supervision c2...bought atpharmacy...ci3⋆...outside,keys missing...c5...overnight atneighbor's...⋯Long-ContextDocument Chunk Encoder fθ(·; a)encoded once, cached Query Encoder fθ(·; q)recomputed per hop sharedweights θ st=qc(1)c(2) Chunk-axis RoPEre-rotated per hop× scoress1, …, sN InfoNCE over 𝒜tPer-hop InfoNCE ℒtℒS²LMR = (1/K) Σt ℒtaveraged over B samplesgold it⋆ Gold indices (i1⋆, i2⋆, i3⋆)teacher-forced per hop Next-hop state st+1qc(1)c(2)cit⋆gold cit⋆ appended by teacher forcingappend cit⋆trainnext hop t+1 argmaxc(t) = ci3⋆infer next hop t+1: append c(t) to st sharedtraininginference
Overview. Training (blue) supervises each hop with the gold next chunk; inference (orange) appends the highest-scoring chunk and moves to the next hop.

Each hop t gets its own InfoNCE term, and the K terms are averaged:

ℒt=−logexp(score(st,cit⋆)/τ)∑j∈𝒜texp(score(st,cj)/τ),ℒS2LMR=1K∑t=1Kℒt

Here cit⋆ is the gold chunk of hop t and 𝒜t is every chunk of the context not yet retrieved, so same-context chunks about the same entities are always in the denominator. All K hops get a direct gradient, with no rollouts, value networks or temporal-difference updates. At inference the gold prefix is replaced by the model’s own picks, and retrieval is greedy.

Experimental Results

From 4K to 10M tokens

Main results

BabiLong answer accuracy versus context length from 1K to 10M tokens: (a) average over QA1–QA5, (b) QA3.
BabiLong, 1K to 10M tokens. (a) Average over QA1–QA5. (b) QA3, the hardest task, with three supporting facts per question. Solid lines are fine-tuned methods, dashed lines zero-shot.

S²LMR stays above 95% at 10M tokens and tracks Q-RAG across the full range, while Beam Retriever stays at 0.2–0.3 on QA3.

In-depth analysis

Variant (BabiLong QA3)Fact EMΔEM
S²LMR (full)0.99–
− Issue 1: in-batch instead of same-context negatives0.28−0.71
− Issue 2: beam-expanded instead of teacher-forced hops (B=2)0.95−0.04
− Issue 3: no chunk-axis positional encoding0.11−0.89
Fact EM on QA3 falls from 0.99 to 0.28 as the fraction of in-batch negatives grows from 0 to 1.
(a) Negatives. Fact EM as in-batch negatives replace same-context ones.
Fact EM versus evaluation context length for teacher-forced per-hop supervision and beam-expanded supervision.
(b) Prefixes. Teacher-forced vs beam-expanded supervision as the context grows.
Fact EM versus evaluation context length with chunk-axis RoPE, static RoPE and no positional encoding.
(c) Positions. Chunk-axis vs static vs no positions beyond the 2K training length.

Each fix matters; together they account for the gap between a vanilla supervised bi-encoder and S²LMR.

Citation

BibTeX
@article{hu2026s2lmr,
  title   = {{S$^2$LMR}: Supervised Sequential Long-Context Multi-Step Retriever},
  author  = {Hu, Qiang and Ji, Kaiyi},
  journal = {arXiv preprint},
  year    = {2026}
}