Reading the Bridge Entity from the Model's Own Embedding Table

Questions like "In what city was the director of Inception born?" defeat ordinary retrieval-augmented generation, which embeds the question once, fetches similar passages, and hands them to a language model. The passage that answers the question is about Christopher Nolan, and the question never says "Nolan." The standard fixes have the model write out intermediate reasoning and search again on each sentence it writes. They work, but they are slow. Iterative generate-then-retrieve systems take more than 20 seconds per query on 2WikiMultiHopQA, against about 2.8 seconds for a method that reads the model's internal states instead (Optimizing Multi-Hop Document Retrieval Through Intermediate Representations). That same work found that the model's middle layers often already hold the intermediate "bridge" entity before any text is written. It got the entity out by training a separate network that maps those states into an external retriever's vector space.

We propose a more direct route. Every language model already has a table of vectors that names every token it knows: the input embedding matrix, the lookup that turns token IDs into vectors. In weight-tied models, the same table also scores the model's next-token predictions. We train a single linear map, contrastively, from a middle-layer state into this table. That lets us pick out the bridge entity as a discrete string, which we then pass to any ordinary retriever for the second hop. No extra text is generated, and nothing has to be aligned to an external dense space. The same setup also tests a theoretical prediction about weight tying. Bridge entities play an asymmetric role: they are the output of hop one and the input of hop two. That asymmetry is exactly the condition under which tying input and output representations is predicted to break down.

Core Claim

Our claim has two parts. The first is practical. A linear readout from a middle layer into the model's input embedding space recovers bridge entities well enough to drive second-hop retrieval. It should do this at close to single-hop cost, and it should match or beat the external-retriever projection of L-RAG at equal or smaller parameter count.

The second part is diagnostic. When a model is weight-tied, its input space and its prediction space are the same, which makes it a natural place to read intermediate answers. In models that are not tied, we predict that the input table is a better readout target for bridge entities than the output table. The reason is that the next hop consumes the entity as an input.

What is new is the target space and the test. Nobody has used the reader's own token table as the index for next-hop entities. Nobody has measured whether weight tying helps or hurts that readout on natural multi-hop QA.

Where This Sits in Prior Work

The motivating evidence comes from L-RAG (Optimizing Multi-Hop Document Retrieval Through Intermediate Representations). It showed with logit-lens and weight-divergence analyses that middle layers resolve next-hop intent. It then trained an MLP to project those states into Contriever's space. We keep its central finding and change where the projection lands. Contriever vectors are smooth semantic summaries. A row of the input table is a specific name, and a specific name is what the second hop needs.

The method comes from contrastive weight tying (Headless Language Models: Learning without Predicting with Contrastive Weight Tying). That work trains final hidden states with an InfoNCE loss to match the input embedding of the target token, with no vocabulary head. It reports gains on GLUE, LAMBADA and XNLI. It was only ever applied to predicting the next token in a single sequence. We apply the same loss to an intermediate layer and an intermediate answer.

The constraint comes from the analysis showing that tying embeddings amounts to assuming the distributional hypothesis (By Tying Embeddings You Are Assuming the Distributional Hypothesis; see also art_ac441e81; By Tying Embeddings You Are Assuming the Distributional Hypothesis). That work proved tying is justified only when tokens that mean the same thing also occur in the same contexts. On a synthetic task built to violate this, the untied model clearly beat the tied one. Bridge entities are a natural-language case where the condition may fail, because the contexts that predict "Nolan" differ from the contexts that "Nolan" conditions. This is why we treat tied versus untied as an experimental variable rather than a fixed assumption.

The earlier work on tying across memory hops (Improving End-to-End Memory Networks with Unified Weight Tying) showed on bAbI that no single static tying scheme suits every reasoning type. Its fix was a learned gate between schemes. That supports our decision to measure tying effects per question type, bridge versus comparison, but its toy scale (embedding size 20) says nothing about pretrained Transformers.

Two retrievers mark the extremes of the design space. Multi-hop dense retrieval (Answering Complex Open-Domain Questions with Multi-Hop Dense Retrieval) concatenates the question with retrieved text and re-encodes it with a single shared encoder for all hops. It is fast, but the reader is kept separate and the method is weak on exact lexical matches. Generative multi-hop retrieval (Generative Multi-hop Retrieval) decodes document text under a prefix-tree constraint. Its index is small, but decoding is roughly 24 times slower than vector search. Our readout outputs a discrete name, which addresses MDR's lexical weakness. It also requires no decoding, which avoids GMR's latency.

Research Program

The readout works as follows. The reader model receives the question and, optionally, passages from a single first-hop retrieval. We take the hidden state $h_\ell$ at layer $\ell$ at the final question position. Each candidate entity $e$ is represented by $u_e$, the mean of the input-table rows of its subword tokens. A learned matrix $P_\ell$ maps the hidden state into the table's space, and we train it with

$$\mathcal{L} = -\log \frac{\exp(\langle P_\ell h_\ell, u_{e^*}\rangle/\tau)}{\sum_{e \in \mathcal{C}} \exp(\langle P_\ell h_\ell, u_e\rangle/\tau)},$$

where $e^*$ is the gold bridge entity, $\mathcal{C}$ is the candidate set, and $\tau$ is a temperature. The model itself stays frozen. The only trained parameters are in $P_\ell$, which has $d^2$ entries for hidden size $d$, far fewer than L-RAG's MLP.

The candidate set comes in two forms. In the closed form, $\mathcal{C}$ is the set of entities mentioned in the first-hop passages plus in-batch negatives. Readout is then a zero-generation reranking of candidates the retriever already surfaced. In the open form, $\mathcal{C}$ is all Wikipedia titles. This tests whether the bridge can come from the model's own stored knowledge when first-hop retrieval misses it. The top-$k$ entity strings are appended to the question and sent to BM25 and to a dense retriever for the second hop. The reader then answers with both hops' passages in context.

Supervision for bridge entities comes from MuSiQue's single-hop decompositions, which supply intermediate answers (♫ MuSiQue: Multihop Questions via Single-hop Question Composition), from 2WikiMultiHopQA evidence chains, and from HotpotQA bridge questions (HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering). Questions with three or four hops are handled by repeating the readout after each hop, so each step stays a single forward pass.

The analysis component sweeps the readout over every layer for pairs of open models of matched size, one tied and one untied. Sub-billion tied models of the kind MobileLLM argues for are a natural tied arm. In untied models we compare two readout targets, the input table and the output table. We then break readout accuracy down by bridge-entity frequency and by how much the entity's preceding contexts differ from its following contexts in the corpus. That second measure is a corpus-level proxy for violating the distributional hypothesis.

Baselines

The naive reference point is single-shot retrieval: embed the question once, retrieve, answer. It shows how large the multi-hop gap is on each dataset, and every other method is reported as the fraction of that gap it closes. A second zero-training reference is the plain logit lens: score $h_\ell$ against the input table with no learned map. In a tied model this equals reading through the output head. If it alone matches our trained readout, the contrastive map adds nothing.

The strongest existing low-latency competitor is L-RAG, which maps middle-layer states through an MLP into Contriever space. It reports 0.352 accuracy on MuSiQue, the best among the baselines it tested, and about 2.8 seconds per query on 2WikiMultiHopQA (Optimizing Multi-Hop Document Retrieval Through Intermediate Representations). We will rerun it with the same frozen reader, the same layer chosen on the same development split, the same training questions and the same hyperparameter-search budget. Beating it means higher second-hop gold-passage recall and higher MuSiQue answer accuracy at equal or lower latency. A gain of a few points that holds across three random seeds would count.

The strongest accuracy reference is IRCoT (Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions), which reports retrieval-recall gains of 11 to 21 points and QA F1 gains of up to 15 points. The file contains no per-dataset absolute number from it. We run it with the same reader and retriever and report it as an accuracy ceiling with its latency alongside. Matching it is not required. Recovering most of its gain over single-shot retrieval at a fraction of its wall-clock time is the target.

For full-wiki HotpotQA retrieval, MDR is the dense reference, reporting 81.2 supporting-passage exact match (Answering Complex Open-Domain Questions with Multi-Hop Dense Retrieval). We compare using its released setting rather than retraining it.

Two ablations isolate the key ingredient, which is the target space. The first keeps our linear map but targets Contriever space instead of the input table, which separates map capacity from target space. The second targets the output table rather than the input table in untied models.

Why not just…?

Why not just have the model generate the bridge entity as a short answer to the first sub-question? This is the most serious threat. Decoding five tokens is cheap, and the final layers may simply be more accurate than any middle-layer readout. We include it as a baseline: prompt the reader to name the intermediate entity, then retrieve on that name. The proposal survives only under two conditions. The readout must roughly match this baseline's bridge accuracy at lower latency, or the readout must recover the correct bridge on questions where the generated name is wrong. L-RAG's evidence that next-hop intent appears before any tokens are written makes the second outcome plausible but not certain. If generation dominates on both accuracy and cost, we will report that the input-table readout is merely a diagnostic.

Why not just keep L-RAG's projection into Contriever? A dense retriever's space blurs names. MDR's documented weakness on exact lexical matches is the same smoothing problem (Answering Complex Open-Domain Questions with Multi-Hop Dense Retrieval). The linear-map-to-Contriever ablation settles this directly. If it ties with the input-table target, our argument for using the token table fails.

Why not just run IRCoT and accept the latency? In many offline settings that is the right choice, and we say so. Our case rests on the gap between more than 20 seconds and a few seconds reported for iterative generation versus internal-state methods. It also rests on avoiding the context bloat that IRCoT itself identifies. Our results will report accuracy and latency together so readers can choose.

Why not just ignore tying and treat it as an LSTM-era parameter trick? For the practical half of the proposal, tying is not required: the readout works on any model's input table. The tied-versus-untied comparison exists because the distributional-hypothesis analysis makes a concrete prediction about bridge entities. If that comparison shows no difference, the result is still informative, and the practical method stands unchanged.

Decisive Checks

We run three checks on MuSiQue-Ans, 2WikiMultiHopQA and HotpotQA full-wiki, using bridge-entity recall at $k$, second-hop gold-passage recall, answer F1 and exact match, and per-query latency.

The first check asks whether the input-table readout beats both L-RAG and the Contriever-target ablation on second-hop recall at matched parameters and latency. A failure here would show that the target space does not matter.

The second check asks whether, on questions where the generated sub-answer is wrong, the readout's top-5 candidates contain the correct bridge entity substantially more often than chance over the candidate set. A failure would show that middle layers hold nothing beyond what the model would write anyway. MuSiQue is the key dataset here, because it is built to block shortcuts that skip the intermediate hop, so success there cannot be explained by disconnected reasoning.

The third check asks whether, in untied models, input-table readout beats output-table readout specifically for entities whose preceding and following contexts differ most. It also asks whether tied models lose accuracy on exactly those entities. A clean yes would be the first evidence on natural multi-hop data for the failure mode that the distributional-hypothesis theory predicts. A clean no would show that the theory's synthetic counterexample does not carry over to real reasoning chains.