arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.27345cs.CL
收藏

MATCHA: 通过对比语义对齐进行文本匹配

MATCHA: Matching Text via Contrastive Semantic Alignment

University of Tübingen(图宾根大学)

Siran Li, Ece Sena Etoglu, Carsten Eickhoff, Seyed Ali Bahrainian

AI总结:

针对现有评估指标无法区分语义矛盾的问题,提出MATCHA指标,通过双视角对比学习同时奖励语义一致性和惩罚矛盾,在多个基准上优于ROUGE和BERTScore。

摘要:

可靠的评估对于理解大型语言模型(LLM)的性能至关重要,但当今常用的指标,即词元重叠分数(如ROUGE)和基于嵌入的度量(如BERTScore),常常误判文档的语义相似性。我们的研究表明,词元重叠指标和基于嵌入的指标通常会将几乎相同的分数分配给直接相互矛盾的文本,从而可能掩盖根本性错误。我们引入了MATCHA,一种自动度量指标,它同时奖励与参考的语义一致性并惩罚矛盾。MATCHA采用双视角方法,衡量(i)与黄金文本的接近程度和(ii)与对抗性生成的反事实矛盾的距离。在八个公开基准上,MATCHA在问答、图像字幕生成、自然语言推理、摘要和语义文本相似性任务中,与人工标注相比,优于流行指标。在TruthfulQA数据集(即没有训练集的数据集,其中没有基于嵌入的指标可以局部训练)上,这种在根据参考匹配文本方面的改进相对于ROUGE-L达到18.38%,相对于BERTScore达到20.82%。定量比较和定性人工评估都证实了MATCHA的有效性和正确性,并揭示了现有指标的根本弱点。与23个嵌入模型(包括最先进的模型)作为类似BERTScore的度量相比,MATCHA在仅基于参考区分正确和错误陈述方面仍然是最准确的。我们的代码和指标公开可用(https://github.com/Siran-Li/MATCHA)。

英文摘要:

Reliable evaluation is essential for understanding large language model (LLM) performance, yet today's go-to metrics, namely token-overlap scores (e.g., ROUGE) and embedding-based measures (e.g., BERTScore), often misjudge semantic similarity of documents. Our study shows that both token-overlap metrics and embedding-based metrics routinely assign nearly identical scores to texts that directly contradict each other, thereby potentially masking fundamental errors. We introduce MATCHA, an automatic metric that jointly rewards semantic agreement with a reference and penalizes contradictions. MATCHA employs a dual-view perspective that measures (i) proximity to the gold text and (ii) distance from an adversarially generated counterfactual contradiction. In eight public benchmarks, MATCHA outperforms popular metrics, compared with human annotations on question-answering, image caption generation, natural language inference, summarization, and semantic textual similarity tasks. On the TruthfulQA dataset (i.e., a dataset without a training set, where no embedding-based metrics could locally train on), this improvement in terms of matching texts with a reference reaches 18.38% over ROUGE-L and 20.82% over BERTScore. Both quantitative comparison and qualitative human assessments confirm the efficacy and validity of MATCHA and uncover fundamental weaknesses in pre-existing metrics. Compared with 23 embedding models, including top state-of-the-art ones, used as a metric similar to BERTScore, MATCHA remains the most accurate in distinguishing correct from incorrect statements solely based on a reference. Our code and metric are publicly available (https://github.com/Siran-Li/MATCHA).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑