NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Calibrating the Entity Linker Inside the Guarantee

Question-answering systems over knowledge graphs usually run as a chain. A first component finds the entity the question is about (for example, "Tom Clancy") and matches it to a node in the graph. A second component then searches paths outward from that node to reach an answer. Recent work wraps the second stage in conformal prediction, a method that turns model scores into answer sets guaranteed to contain the truth with a chosen probability. That guarantee quietly assumes the first stage got the entity right. When the linker misses the entity, no downstream calibration can put the answer back.

The obvious repair is to let the linker pass on several candidate entities, but this creates a tradeoff. Each extra candidate protects against a miss, and each wrong one adds spurious starting points that multiply the paths the searcher must score, which inflates answer sets. We propose to choose the upstream admission rule and the downstream answer-set rule jointly. Both thresholds are calibrated end to end on whole queries, using a multiple-testing procedure over threshold pairs. The result has two properties. First, the final answer set contains the true answer with probability at least $1-\alpha$, with no assumption that grounding succeeded. Second, among all threshold pairs that are certified safe, the system picks the one that admits the fewest spurious entities and returns the smallest sets. The contribution is a way to spend a fixed error budget across stages of a pipeline, rather than a new score.

Core Claim

Conformal Path Reasoning (CPR) is the closest work. It found that calibrating hop by hop breaks exchangeability, because step $t$ shapes the candidates at step $t+1$. It therefore calibrates at the level of the whole query, and it uses a learned path scorer (RCVNet) to keep sets small. On WebQSP at $\alpha=0.5$ it reports 61.4% empirical coverage with average set size 7.14, against 51.8% and 14.29 for the UaG baseline. CPR starts path search from entities that have already been identified, and it controls neither the grounding step nor how many false entities enter the graph.

Our claim is that the query-level unit CPR uses to restore exchangeability can be widened to include the upstream stage. Doing so recovers the pruning benefit of modularity without giving up validity. The thresholds are fixed before test time and certified on whole queries, so intermediate pruning is allowed even though no single stage is calibrated in isolation. Without upstream calibration, the coverage any downstream method can reach is capped by the linker's recall. With it, the cap becomes a tunable quantity.

Several multi-hop and knowledge-base question-answering papers motivate the problem by documenting the hard-filter effect but not addressing it. DFGN builds its entity graph from a tagger, so a missed query entity severs reasoning before it starts. GenRL and the query-graph ranker of Maheshwari et al. both state that their accuracy is bounded by an external entity linker. Caselli et al. trace a pipeline's collapse to 7.120 micro-F1 back to false negatives in high-level semantic modules, and they show that one-way pipelines cannot flag those errors.

Research Program

Let $\lambda_1$ be the admission threshold on linker candidates, so that every candidate entity whose calibrated score exceeds $\lambda_1$ seeds path search. Let $\lambda_2$ be the downstream threshold that turns path scores into an answer set. For a query $i$, define the miss loss $L_i(\lambda_1,\lambda_2)$. It equals 1 if the gold answer is absent from the final set, which happens either because the gold entity was never admitted or because the searcher failed from an admitted entity. Otherwise it equals 0. Define $F_i(\lambda_1,\lambda_2)$ as the number of admitted entities that are not gold. The target is

$$\min_{\lambda_1,\lambda_2}\ \mathbb{E}[\,|C(\lambda_1,\lambda_2)|\,] \quad \text{s.t.} \quad \mathbb{E}[L(\lambda_1,\lambda_2)] \le \alpha,\ \ \mathbb{E}[F(\lambda_1,\lambda_2)] \le k,$$

where $|C|$ is the answer-set size, $\alpha$ is the tolerated miss rate, and $k$ is a budget on spurious admissions per query.

We cannot assume that miss risk decreases steadily as $\lambda_1$ loosens. Extra distractor entities can crowd the true path out of a search with a fixed budget, and measuring that non-monotonicity is itself a finding. We therefore treat each grid point as a null hypothesis $H_{\lambda}$: "the risk at this threshold pair exceeds its bound." For each grid point we compute a p-value from the calibration miss counts using an exact binomial tail. The spurious-admission count is not binary, so for that constraint we use a bounded-loss tail bound. We then run fixed-sequence testing along an ordering of the grid by expected set size, where the ordering is estimated on a separate tuning split. This controls the family-wise error, so every certified pair is valid with probability at least $1-\delta$ over the draw of calibration data, and we deploy the certified pair with the smallest estimated cost. Because the loss is computed on whole queries, exchangeability holds at the same level CPR relies on.

The procedure borrows its logic from the false-positive-control line of work. Generalized BH for OOD detection turns heuristic scores into calibrated decisions and shows that power collapses when calibration sets are small, because the true positive rate follows a Beta distribution. SAC-SBL shows that small calibration sets make deterministic cutoffs conservative and that randomized boundaries recover power. Both lessons matter here, since benchmarks like QALD-7 have only a few hundred questions. As a secondary study we add cross-fitted calibration in the spirit of eg-BH, with the goal of reducing the variance of the certified thresholds without breaking validity.

Baselines

The naive reference is the deployed default: take the linker's single best entity and run CPR's calibrated path stage on top. This shows the recall ceiling directly. Its coverage cannot exceed the linker's top-1 recall, whatever $\alpha$ is requested.

The strongest existing method is CPR itself, reported at 61.4% coverage and set size 7.14 on WebQSP at $\alpha=0.5$ in Conformal Path Reasoning. That figure is measured with the benchmark's provided topic entities. We will reproduce it in that setting first, then rerun it with a realistic predicted linker. Both CPR and our method will use the same RCVNet path scorer, the same search budget, and the same calibration and test splits. The only difference will be how upstream admission and downstream thresholds are chosen. Beating CPR means reaching nominal coverage under predicted grounding while CPR falls below it, and keeping set size within a small factor of CPR's gold-entity numbers.

The key ablation is a stage-separated conformal baseline. It calibrates an entity candidate set at level $\alpha_1$ and a path set at level $\alpha_2$ with $\alpha_1+\alpha_2=\alpha$, which is valid by a union bound. We will search over the split using the tuning split. This baseline isolates the claim that joint calibration beats independent per-stage calibration.

A fourth baseline is top-$K$ linking with $K$ tuned on the calibration data to hit empirical coverage. It is the one-parameter special case of our grid, but without certification.

Finally, for the spurious-admission constraint alone, we compare against online FDR control with g-LOND. It controls false discovery rate under dependent p-values but gives no per-query coverage. Against it, we count as success lower spurious admission at equal answer coverage.

Why not just…?

Why not just split the error budget and calibrate each stage separately? This is the real threat. It is valid, simple, and needs no grid search. Its weakness is structural. It must guarantee entity coverage even on queries where the downstream searcher would fail anyway, so it spends budget twice on the same queries and over-admits entities. Whether this costs much is an empirical question. If the best budget split matches our set size and spurious-admission counts on WebQSP and CWQ, we will report that the simple method suffices, and the contribution narrows to the diagnosis of the recall ceiling.

Why not just take the top-$K$ entities? A single $K$ ignores how hard each query is to link. It also carries no finite-sample guarantee: tuning $K$ to hit coverage on calibration data is exactly the uncertified selection that fixed-sequence testing corrects. The Know3-RAG ablations (Know3-RAG) suggest that semantically related distractors do more downstream damage than plain errors, which is what extra top-$K$ entities are. The tuned-$K$ baseline will show whether this matters in practice, both in coverage variance across calibration draws and in set size.

Why not just calibrate the whole pipeline as a black box, as CPR does? Query-level calibration with a fixed linker is valid only when the requested coverage lies below the linker's recall. Above that level the calibrated set must grow without bound, or no valid threshold exists. Exposing $\lambda_1$ is what lifts this ceiling. The top-1 baseline measures the ceiling directly.

Why not just use an end-to-end model with no discrete interface? Maheshwari et al. show that direct parsers produce queries that violate the graph's schema. Twin Worlds shows that monolithic models override context with memorized answers, abstaining on about 10% of hard unanswerable cases where their method abstains on 71%. More basically, an end-to-end model still needs some calibration. Our procedure applies to any system with an adjustable admission knob, so we see it as complementary rather than competing.

Decisive Experiments

The primary benchmarks are WebQSP and CWQ, using CPR's setup, and LC-QuAD 1.0 and QALD-7, where GenRL and the slot-matching ranker document linker dependence. QALD-7, with its 220 training questions, is the small-calibration stress test.

For each benchmark we replace gold topic entities with a predicted mention detector and linker. We also degrade the linker in controlled steps by dropping or down-weighting the gold candidate at set rates, to trace how each method responds as recall falls. The file reports no linker recall figures for these benchmarks (no reported result found on Lacuna for entity-linking recall on WebQSP, CWQ, LC-QuAD, or QALD-7), so we measure recall ourselves as the first result.

The metrics are empirical coverage against nominal $1-\alpha$ over repeated random calibration/test splits, average answer-set size, spurious admitted entities per query, the fraction of queries with empty or unbounded sets, and search compute per query.

The first decisive check is whether CPR with predicted entities falls below nominal coverage once $1-\alpha$ exceeds linker recall, while our method stays at or above nominal. The second is whether joint calibration yields smaller sets than the best Bonferroni split at equal certified coverage. If it does not, we report that honestly. The third is whether miss risk is actually non-monotone in $\lambda_1$, which would confirm that admitting more entities can hurt and would justify certifying over a grid rather than assuming monotonicity. The fourth is whether cross-fitted calibration on QALD-7 narrows the spread of certified thresholds across calibration draws, as the Beta-distribution analysis of generalized BH predicts.