Skip to content

feat(recall): multi-hop evidence coverage — facet retrieval / fusion signals #1237

Closed

Description

@ajianaz

What

Improve retrieval evidence coverage for multi-hop questions. Measured on an internal conversation eval (multi-hop category, one unit, n=14):

  • Gold-token union coverage: cov@5 = 41.6%, cov@10 = 47.9%, cov@30 = 57.3%, cov@100 = 57.3% (ceiling at ~30)
  • A naive lexical-overlap re-ranker (fetch 30 → rank by query-token overlap → keep 10) loses to native ranking: 44.3% vs 47.9% cov@10 — so re-ranking on top of the existing RRF fusion with naive signals is a dead end; the improvement must come from the engine.

Promising directions (engine-side):

  1. Query decomposition / facet retrieval: split a multi-hop question into sub-facets, retrieve per facet, fuse results (dedupe by memory id) — targets the "evidence exists but ranked outside top-5" failure mode
  2. Cross-hit fusion signals: co-citation (memories repeatedly retrieved together across paraphrases), chunk/session proximity, recency weighting — combined in the existing fusion layer rather than a post-hoc re-ranker

Why

Multi-hop is the weakest end-to-end category (62.5% baseline, 68.8% after answerer-side prompt work) and the strongest cloud use case: synthesis across time ("combine decisions from last month with this week's preferences"). Coverage ceiling at cov@30 shows more slots alone do not help — ranking quality for spread-out evidence is the bottleneck.

Testing

  • Coverage harness: gold-token union coverage at K=5/10/30 as a regression metric
  • Internal eval multi-hop category end-to-end (baseline 68.8%)
  • No regression on open-domain/temporal/single-hop categories or latency budgets

Activity

  1. added
    enhancement
    on Sep 12, 2026
  2. ajianaz commented on Sep 12, 2026

    @ajianaz
    CollaboratorAuthor

    Validation run 2026-09-12: date anchors on LongMemEval (partial, 21 questions)

    Setup: LMEVAL_DATE_ANCHOR=1 on a 50-question slice (results/anchor50-v018/), same binary (develop 6ffd8db, 0.17.0 + #1238 anchors), fusion strategy, chunked sessions. Run terminated early by an import timeout on question 22 (900s subprocess cap — ingest slowness, pre-existing), so this is a partial comparison on the 21 completed questions (all single-session-user on this slice).

    recall_all@5
    baseline v0.17.0 (same 21 qids) 19/21 = 0.905
    + date anchor ingest 20/21 = 0.952

    Delta: +1 query recovered, 0 regressions on the completed set. Consistent with the direction from the internal conversation eval (#1232: temporal QA 15% -> 100% with anchors).

    Caveats:

    • n=21 (all single-session-user) — NOT yet the full 500-question picture; temporal-reasoning and multi-session (the heavier beneficiaries) were not reached before the timeout.
    • The 900s import timeout on question 22 is a pre-existing ingest slowness issue on large haystacks, unrelated to the anchor change.

    Next: full-500 anchor run requires either raising the subprocess timeout or batching ingest differently — parked pending owner confirmation on whether to pursue.

  3. ajianaz commented on Sep 13, 2026

    @ajianaz
    CollaboratorAuthor

    Full-500 result: bundle NOT CONFIRMED (negative), experiment documented

    Ran the dry-run bundle at full scale on Modal (10 shards, binary 0.18.0 built from 514d2f9): default + --fusion --chunk-sessions --decompose with 500/500 pre-computed GLM facets + date anchors.

    Paired vs the published v0.17.0 Modal baseline (same 500 qids, same topology):

    Metric (470 non-abs) baseline decomp500
    recall_all@5 0.9457 0.9427
    ndcg_any@5 0.8970 0.9071
    strict@5 (all 500) 440 436
    strict@10 (all 500) 477 477
    • Paired flips: 20 improved / 28 regressed (net −8)
    • Biggest loser: temporal-reasoning (−1.8pp); abstract-30 subset −5.3pp
    • NDCG@5 +1.0pp is the only positive signal

    Key finding: the 50Q dry-run jump (0.880 → 0.980) was sample bias — the first 50 qids are simply easier: baseline scores 48/50 on those exact qids. Decompose adds only +1 there.

    Caveats: bundle is confounded (3 levers + anchors vs a plain-default baseline) — the +1pp NDCG could be anchors, not decomposition. Per-lever attribution would need unbundled runs (~$1 each on Modal).

    Full paired data: uteke-bench/results/decomp500-vs-baseline-paired.json (all 48 flips listed). Raw: benchmarks/longmemeval/scripts/results_modal_default_dec500/ (not committed to git).

    Recommendation: do not promote decompose to a default retrieval path — costs ~5x query latency (3 extra fts5 recalls per question) for a net-negative recall delta. Keep as opt-in bench tooling; the harness flags stay on feat/lmeval-decompose.

  4. ajianaz commented on Sep 15, 2026

    @ajianaz
    CollaboratorAuthor

    Conclusion (2026-09-15): negative result at full scale — closing

    The proposed lever (facet decomposition bundle) was validated end-to-end and did not survive full-scale paired evaluation:

    • Setup: Modal, 10 shards, binary 0.18.0 (514d2f9), bundle = fusion + chunk-sessions + decompose + date anchors, 500/500 pre-computed GLM facets; paired against the published 0.17.0 Modal baseline (same 500 qids, same topology).
    • Result (470 non-abstracting): recall_all@5 0.9457 -> 0.9427 (net -8 queries: 20 up / 28 down; temporal-reasoning -1.8pp, abstract-30 -5.3pp); ndcg_any@5 +1.0pp (only positive signal, confounded bundle).
    • The 50Q dry-run jump (0.880 -> 0.980) was sample bias: the first 50 qids are simply easier (baseline 48/50 on those exact ids).

    Decision: do not promote decompose to a default retrieval path — ~5x query latency (3 extra FTS5 recalls per query) for a net-negative recall delta. The flags remain opt-in bench tooling on the bench branch; paired flip data preserved in uteke-bench (results/decomp500-vs-baseline-paired.json, all 48 flips).

    Multi-hop evidence coverage (baseline cov@5 41.6% on the internal eval) remains a known gap. Re-open — or file a scoped successor targeting a specific retrieval mechanism — if engine-side multi-hop work is prioritized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions