Abstention: one reranker threshold discards 16/16 paraphrase answers it already retrieved

Open
#113 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start with the abstention rule and reranking path, then read the Baseline section in bench/README.md and inspect bench/results/sqlite-graph-memory-vector.json. Compare the reranker gate with the proposed bi-encoder cosine signal for queries lacking lexical overlap. Done means false_abstain on paraphrase is well below 1.00 while abstain_correct stays at or above 0.45 on the 22 absent questions.

Written by the indexing model from the issue text.

Description

On memory-bench v0.1 the vector row says "I don't know" on 18 of 69 answerable questions; 16 of those 18 are paraphrase (10/10) and paraphrase_bridge (6/6). Retrieval already found most of them (paraphrase R@5 0.80), but the abstention rule (top reranker score < 0) throws the answer away: the mmarco cross-encoder scores zero-word-overlap hits below zero (median -4.8, see bench/README.md "Baseline").

One threshold is doing two jobs: rejecting absent entities and judging paraphrase relevance.

Proposal: keep the reranker gate for lexical matches, and for queries with no lexical overlap with the top hit use the bi-encoder cosine (or a separately calibrated threshold) as the abstention signal. Acceptance: false_abstain on paraphrase drops well below 1.00 without abstain_correct falling below 0.45 on the 22 absent questions. Numbers from bench/results/sqlite-graph-memory-vector.json.

Dominant language
Python
Stars
9
Forks
6
Avg merge
13h 8m
Merged PRs (30d)
40

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tonydzi/sqlite-graph-memory

All issues in tonydzi/sqlite-graph-memory

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.