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

Sentence Smith: 可控编辑用于评估文本嵌入

Sentence Smith: Controllable Edits for Evaluating Text Embeddings

University of Zurich(苏黎世大学)

Hongji Li, Andrianos Michail, Reto Gubelmann, Simon Clematide, Juri Opitz

AI总结:

Sentence Smith通过可控编辑生成文本,用于评估文本嵌入模型的细粒度性能。

摘要:

可控且透明的文本生成一直是自然语言处理中的长期目标。同样长期存在的是解决这一挑战的通用想法:将文本解析为符号表示,然后从该表示生成。然而,早期方法受解析和生成不足的阻碍。使用现代解析器和安全监督机制,我们展示了当前方法离这一目标有多近。具体而言,我们提出了Sentence Smith框架,用于英语,其包含三个步骤:1.将句子解析为语义图。2.应用人工设计的语义操纵规则。3.从操纵后的图中生成文本。最终的蕴含检查(4)验证所应用转换的有效性。为了展示我们框架的实用性,我们使用它来诱导挑战文本嵌入模型的困难负样本对。由于可控生成使不同类型的语义变化能够被清晰地隔离,因此可以以细粒度的方式评估文本嵌入模型,也解决了当前基准测试中语言现象仍不透明的问题。人工验证确认我们的透明生成过程生成了高质量的文本。值得注意的是,我们的生成方式非常节省资源,因为它仅依赖于较小的神经网络。

英文摘要:

Controllable and transparent text generation has been a long-standing goal in NLP. Almost as long-standing is a general idea for addressing this challenge: Parsing text to a symbolic representation, and generating from it. However, earlier approaches were hindered by parsing and generation insufficiencies. Using modern parsers and a safety supervision mechanism, we show how close current methods come to this goal. Concretely, we propose the Sentence Smith framework for English, which has three steps: 1. Parsing a sentence into a semantic graph. 2. Applying human-designed semantic manipulation rules. 3. Generating text from the manipulated graph. A final entailment check (4.) verifies the validity of the applied transformation. To demonstrate our framework's utility, we use it to induce hard negative text pairs that challenge text embedding models. Since the controllable generation makes it possible to clearly isolate different types of semantic shifts, we can evaluate text embedding models in a fine-grained way, also addressing an issue in current benchmarking where linguistic phenomena remain opaque. Human validation confirms that our transparent generation process produces texts of good quality. Notably, our way of generation is very resource-efficient, since it relies only on smaller neural networks.

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

↑