arXiv:2502.04173cs.CL2025-02中稿 · ICAART 2025

让词语替换更符合语境,提升生成质量

Lexical Substitution is not Synonym Substitution: On the Importance of Producing Contextually Relevant Word Substitutes

  • 用原句增强模型上下文信息,改进替换效果
  • 在CoInCo基准上表现更优,人类评估更受青睐
  • 揭示现有评测集的缺陷,推动评价方式反思

词汇替换任务要求在保持句子语法结构的前提下,将目标词替换为语义相近且语境合适的词。当前方法多依赖预训练语言模型的掩码词预测能力,本文提出ConCat方法,通过引入原句信息增强模型对上下文的理解。实验显示,该方法在句子相似度和任务性能上均优于现有方法,人类评估也更偏好其生成结果。在主流基准CoInCo上的测试揭示了该数据集潜在的评价偏差,促使我们重新思考词汇替换任务的评估方式。

原文摘要 · Abstract (English)

Lexical Substitution is the task of replacing a single word in a sentence with a similar one. This should ideally be one that is not necessarily only synonymous, but also fits well into the surrounding context of the target word, while preserving the sentence's grammatical structure. Recent advances in Lexical Substitution have leveraged the masked token prediction task of Pre-trained Language Models to generate replacements for a given word in a sentence. With this technique, we introduce ConCat, a simple augmented approach which utilizes the original sentence to bolster contextual information sent to the model. Compared to existing approaches, it proves to be very effective in guiding the model to make contextually relevant predictions for the target word. Our study includes a quantitative evaluation, measured via sentence similarity and task performance. In addition, we conduct a qualitative human analysis to validate that users prefer the substitutions proposed by our method, as opposed to previous methods. Finally, we test our approach on the prevailing benchmark for Lexical Substitution, CoInCo, revealing potential pitfalls of the benchmark. These insights serve as the foundation for a critical discussion on the way in which Lexical Substitution is evaluated.

词汇替换上下文理解语言模型评估反思

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。