跳到正文
r/MachineLearning· /u/Beneficial_Use2116·· 23 天前AI 评分45

在 Haiku 4.5 和 Sonnet 5 上复现「lost in the middle」失败:30 篇文档内位置敏感性为 0

I tried to reproduce “lost in the middle” on current models and actually couldn’t do that! [P]

AI 导读

有用户用自制事实检索测试在 Haiku 4.5 和 Sonnet 5 上复现「lost in the middle」,在 5、15、30 篇文档下均未发现位置敏感性,30 篇时约 4% 的「翻转」实为「3」与「three」的格式差异,按语义比对后归零。作者强调这只覆盖短文档、单一事实的简单检索场景,长文档、多跳推理等更难情况未测试,并提醒自测时不要用精确字符串匹配。

正文

Everyone keeps citing lost in the middle so, instead of going by the paper's citations, i wanted to actually check it on my own stuff, without building a labeled set for it.

So i did the lazy version. make up facts the model can’t already know, drop the one document that has the answer into a pile of distractor documents, and slide that doc through every position (front, middle, back), asking the question each time. if the answer changes depending on where the doc sits, that’s position sensitivity. no ground truth needed, just checking it doesn’t contradict itself.

ran it on haiku 4.5 and sonnet 5 at 5, 15 and 30 docs.

Found actually nothing. 0 flips at 5 and 15 on both models. at 30 docs i got about 4%, then actually looked at what “flipped” and it was the model saying “3” vs “three” for the same question!! same correct answer, just a different format. once i stopped counting that it went back to 0.

so at least on easy single-fact retrieval with short docs, current models seem fine with position up to 30 docs. couldn’t reproduce the scary version.

caveats, obviously this is the easy case. one clear fact, short docs. i’d bet it still shows up with long documents or multi-hop or when the relevant bit is less obvious, i just didn’t test that. also if you try this yourself don’t use exact string match, you’ll get fooled by 3 vs three like i did. compare meaning not strings.

script’s on github if you want to run it on your own setup: github.com/tarunagarwal1981/wobbly (scripts/live_rag.py)

has anyone actually reproduced lost in the middle on a current model? what context length or task did it show up at for you? genuinely curious if it’s still a thing or mostly solved on the easy cases now.

submitted by /u/Beneficial_Use2116
[link] [留言]

来源:r/MachineLearning · reddit.com