Sentence Smith: Controllable Edits for Evaluating Text Embeddings
Hongji Li, Andrianos Michail, Reto Gubelmann, Simon Clematide, Juri Opitz
TL;DR
SentenceSmith presents a neuro-symbolic framework that maps sentences to a semantic graph (AMR), applies human-designed, controllable manipulations, and regenerates text with a faithfulness check. This pipeline enables the creation of fine-grained hard negatives to probe text embedding models, revealing weaknesses in handling phenomena like negation and role shifts. By combining transparent symbolic edits with neural fluency and a validation step, the authors produced a dynamic benchmark that complements static datasets like MTEB and highlights model weaknesses across linguistic manipulations. The work demonstrates significant potential for targeted, interpretable evaluation of semantic understanding in embeddings and suggests avenues for multilingual extension and broader reflection on benchmarking practices.
Abstract
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.
