arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.05933cs.CLcs.AI
收藏

基于模型评分排序的词语替换学习

Learning to Substitute Words with Model-based Score Ranking

Duke University(杜克大学)

Hongye Liu, Ricardo Henao

AI总结:

针对词语替换依赖人工标注且主观性强的问题,提出用BARTScore定义替换分布并设计对齐句子评分的损失函数,实现无标注学习,性能超过BERT、BART、GPT-4和LLaMA。

摘要:

智能词语替换旨在通过改进措辞来提升句子质量;然而当前基准测试依赖人工标注数据。由于措辞本质上具有主观性,由少数标注者生成的真实词语替换往往不完整,且可能不具备泛化能力。为规避这一问题,我们转而采用基于模型的评分(BARTScore)来量化句子质量,从而无需人工标注。具体而言,我们使用该评分为每个词语替换定义一个分布,使人们能够检验某个替换在统计上是否优于其他替换。此外,我们提出一种损失函数,直接优化模型预测与句子评分之间的一致性,同时提升替换的整体质量评分。关键在于,模型学习不再需要人工标签,从而避免标注成本,并保持经替换修改后的文本质量。实验结果表明,所提方法优于掩码语言模型(BERT、BART)和大型语言模型(GPT-4、LLaMA)。源代码可在 https://github.com/Hyfred/Substitute-Words-with-Ranking 获取。

英文摘要:

Smart word substitution aims to enhance sentence quality by improving word choices; however current benchmarks rely on human-labeled data. Since word choices are inherently subjective, ground-truth word substitutions generated by a small group of annotators are often incomplete and likely not generalizable. To circumvent this issue, we instead employ a model-based score (BARTScore) to quantify sentence quality, thus forgoing the need for human annotations. Specifically, we use this score to define a distribution for each word substitution, allowing one to test whether a substitution is statistically superior relative to others. In addition, we propose a loss function that directly optimizes the alignment between model predictions and sentence scores, while also enhancing the overall quality score of a substitution. Crucially, model learning no longer requires human labels, thus avoiding the cost of annotation while maintaining the quality of the text modified with substitutions. Experimental results show that the proposed approach outperforms both masked language models (BERT, BART) and large language models (GPT-4, LLaMA). The source code is available at https://github.com/Hyfred/Substitute-Words-with-Ranking.

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

↑