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

未关闭
#113 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
9
派生
6
平均合并
13 小时 8 分钟
30 天内合并 PR
40

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

tonydzi/sqlite-graph-memory 的其他 Issue

查看 tonydzi/sqlite-graph-memory 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。