arXiv cs.CL· Sinan G. Aksoy, Alexandra A. Sabrio, Erik VonKaenel, Lee Burke·· 13 小时前AI 评分34
文档大海捞针:LLM-as-a-Judge 相似度评分的敏感性测试
Semantic Needles in Document Haystacks: Sensitivity Testing of LLM-as-a-Judge Similarity Scoring
AI 导读
研究提出多因素实验框架,测试 7 个 LLM 在数万对文档上对细微语义变化的敏感度,扰动类型包括否定、连词替换和命名实体替换。结果显示模型存在文档内位置偏差,语义改动越靠前扣分越重;当改动句被主题无关上下文包围时,几乎所有设置下相似度分数反而升高。所有模型对扰动类型的惩罚排序一致(否定最重),但尺度差异显著。
正文 · 原文
Abstract:We propose a scalable, multifactorial experimental framework that systematically probes LLM sensitivity to subtle semantic changes in pairwise document comparison. We analogize this as a needle-in-a-haystack problem: a single semantically altered sentence (the needle) is embedded within surrounding context (the hay), and we vary the perturbation type (negation, conjunction swap, named entity replacement), context type (original vs. topically unrelated), needle position, and document length across all combinations, testing seven LLMs on tens of thousands of document pairs. Our analysis reveals several striking findings. First, LLMs can exhibit a within-document positional bias distinct from previously studied candidate-order effects: some models penalize semantic differences more harshly when they occur earlier in a document. Second, when the altered sentence is surrounded by topically unrelated context, it raises similarity scores in almost all settings. This is consistent with a contradiction account, in which topically related context allows the alteration to conflict with the surrounding sentences. Third, all models exhibit the same hierarchy in how harshly they score different perturbation types, with negation penalized the most, but express this hierarchy on significantly different scales. Finally, varying the prompt's conception of semantic similarity across several alternatives changes the magnitude but not the direction of these effects. Together, these results demonstrate how LLM semantic similarity scores are sensitive to the aforementioned parameters in ways that go beyond the semantic change itself; our framework offers a practical toolkit for auditing and comparing scoring behavior across current and future models.
| Comments: | 21 pages, 10 figures, 1 table |
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Machine Learning (cs.LG) |
| MSC classes: | 68T50, 68T01 |
| Cite as: | arXiv:2604.18835 [cs.CL] |
| (or arXiv:2604.18835v2 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2604.18835 arXiv-issued DOI via DataCite |
Submission history
From: Sinan Aksoy [view email]
[v1]
Mon, 20 Apr 2026 20:59:25 UTC (1,002 KB)
[v2]
Fri, 23 Oct 2026 22:23:31 UTC (247 KB)
来源:arXiv cs.CL · arxiv.org