Repository navigation
v7.13.6: 真实嵌入模型下的公开基准分数 + 语义融合重新定参 - #13
Merged
Merged
Conversation
进行中:LongMemEval-S 全量独立验证、真实代码重跑、回归演练尚未完成,先不开 PR。 - search_router:融合时语义一票权重 0.5(NYX_EMBED_WEIGHT),词法一票为 1 - semantic:明显高于背景的门槛默认 Z=3(以前 2) LoCoMo(真实本地模型、离线复现与实跑吻合):纯词法 R@5 0.545,现行等权融合 0.524, 新方案 0.578;10 段对话 9 段变好;同义改写(零字面重叠)仍有 4.1% 能进前 10 (权重 0.3 时为 0,语义只剩重排,所以不再往下压) - 评测框架 check_semantic:后端开着、索引没建成就报错。此前本地模型加载失败时, LoCoMo 与 LongMemEval「语义开」两组分数其实都是纯词法,报告里却写着 local:模型名 - tests:语义一票轻于词法 / 语义认可能提上词法候选 / 候选少时同义改写仍进前 3; 权重改回 1 时第一项失败 - README:NYX_EMBED_Z 默认 3,新增 NYX_EMBED_WEIGHT、NYX_EMBED_CACHE Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZZeQFn5F6mEbmX8vPsf4g
在上一提交(语义一票减半、门槛 Z=3、评测框架拒绝空索引)基础上完成验证并发布: - LongMemEval-S 首次真实数据分数(500 题,检索,nyx 真实代码实跑,本地模型): 前 5 命中 0.981、前 5 全中 0.862、前 10 全中 0.885(纯词法 0.949 / 0.774 / 0.819) - LoCoMo recall@5 0.575(纯词法 0.546,旧融合 0.527,BM25 0.498) - 参数选择:两个基准各分两半,A 半按事先定死的规则选出 Z=3、w=0.5,B 半留出验证: LoCoMo 0.539 / 0.510 / 0.566(纯词法 / 旧 / 新),LongMemEval 全中 0.753 / 0.872 / 0.843。 新融合两边都不低于纯词法;代价 LongMemEval 全中比旧融合低约 3 点,README 写明取舍与回退参数 - 纵向评测 35 种子三种模式逐项与 v7.13.3 相同;投毒 / 事故演练三种模式通过 - README Benchmark 改为真实分数;results 只存分数;更正开发中途「语义几乎无贡献」的错误结论 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ZZeQFn5F6mEbmX8vPsf4g
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
结果
第一次用真实嵌入模型(默认本地模型
paraphrase-multilingual-MiniLM-L12-v2)测公开基准。只测检索,零 LLM,用 nyx 真实代码实跑。改动
NYX_EMBED_Z)。NYX_EMBED_WEIGHT。原因:默认的小模型在英文闲聊上单独检索只有 0.424,和词法等权投票时会把好的词法结果挤出去。check_semantic:语义后端开着、索引却没建成时,直接按出错处理。开发中途发生过一次:本地模型加载失败,两组"语义打开"的分数其实全是纯词法,报告里却写着模型名。参数怎么选的(分半交叉验证)
两个基准各分成两半。
新融合是唯一在两个基准上都不比纯词法差的方案。
代价:LongMemEval 前 5 全中比旧融合低约 3 个点,主要是多会话汇总题。README 里写明了这个取舍,以及回退到旧融合的参数。
回归
防复发
tests/test_semantic_recall.py新增 3 项:check_semantic会直接报错退出。如实说明
benchmarks/results/只存分数。🤖 Generated with Claude Code
https://claude.ai/code/session_019ZZeQFn5F6mEbmX8vPsf4g
Generated by Claude Code