Sentence Smith: Controllable Edits for Evaluating Text Embeddings

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

TL;DR

SentenceSmith is a novel neuro-symbolic framework that uses Abstract Meaning Representation (AMR) graphs to make precise, controllable semantic edits to text. By generating "hard negative" sentence pairs that share high surface similarity but differ in meaning, SentenceSmith exposes the hidden linguistic blind spots of modern text embedding models.

What Problem Does This Paper Address?

Text embedding models are the backbone of modern semantic search, information retrieval, and NLP evaluation. However, standard benchmarks like MTEB aggregate performance across massive datasets, which often masks specific linguistic failures. A model might score well on average while completely failing to understand basic negation or when subject and object roles are swapped.

While Large Language Models (LLMs) can be prompted to generate adversarial test cases, this process is opaque, expensive, and difficult to control precisely. SentenceSmith addresses this gap by providing a transparent, highly controllable, and resource-efficient alternative for generating minimal linguistic pairs (foils) to probe specific semantic phenomena.

Methods

SentenceSmith relies on a neuro-symbolic pipeline consisting of four distinct steps:

  1. Parsing: An off-the-shelf, BART-based parser maps an input sentence into a symbolic graph using Abstract Meaning Representation (AMR), which explicitly encodes "who is doing what to whom."
  2. Controlled Manipulation: Human-designed rules are applied directly to the AMR graph to alter its meaning precisely. The paper defines five aspectual semantic manipulations:
  3. Polarity Negation (PN): Reversing a predicate's truth value.
  4. Role Swap (RS): Swapping semantic roles (e.g., agent and patient).
  5. Underspecification (US): Removing a leaf node to reduce semantic content.
  6. Antonym Replacement (AR): Substituting a node with its WordNet antonym.
  7. Hypernym Substitution (HS): Replacing a word with a broader category term.
  8. Generation: A BART-based generator converts the modified graph back into fluent, natural text.
  9. Validation: An efficient Natural Language Inference (NLI) model acts as a safety checker, ensuring the generated sentence successfully shifts the meaning (e.g., confirming a contradiction) while filtering out parsing or generation artifacts.
Figure 1: Example application of two controlled text transformations. Left: Switching semantic roles in a sentence, where the agent (ARG0: the biter) becomes the patient (ARG1: the bitten), and vice versa. Right: Deleting the patient and negating the main predicate.

Datasets

The authors used two primary paraphrase datasets as base data to induce their hard negative benchmark:

  • PAWS: A dataset featuring structurally similar paraphrases with high lexical overlap.
  • GPTP: A dataset of ChatGPT-generated paraphrases exhibiting greater structural and lexical diversity.

By applying SentenceSmith to these datasets, they generated a new evaluation benchmark containing over 13,000 validated challenge pairs.

Key Insights and Ideas

  • The Illusion of Similarity: Embedding models frequently rely on surface-level lexical overlap rather than deep semantic understanding. SentenceSmith exploits this by creating "foils"—sentences that look almost identical to the original but mean something entirely different.
Figure 2: Breaking the paraphrase relation and creating a challenging test case: The new sentence has a high surface similarity to the input, but it is not a paraphrase. By contrast, the actual paraphrases have a lower super- ficial overlap, thus posing a challenge to any model, especially those that tend to rely on surface cues.
  • Bigger Isn't Always Better: Massive LLM-based embedding models (such as E5-Mistral or GTE-Qwen) underperformed compared to much smaller, targeted models like sentence-t5-large. Because these massive models are optimized for long-context retrieval, their embeddings appear less sensitive to fine-grained, sentence-level semantic shifts.
  • Benchmark Disconnect: The ranking of models on SentenceSmith's benchmark showed only a moderate correlation (0.54) with the MTEB leaderboard. For example, cde-small-v1, a top-ranked model on MTEB for its size, ranked 19th out of 29 models on SentenceSmith, revealing severe vulnerabilities to negation and polarity changes.

Key Results

The authors evaluated 29 off-the-shelf text embedding models using Triplet Accuracy (TACC) and Area Under the ROC Curve (AUC):

  • Top Performer: sentence-t5-large achieved the highest overall performance with an average score of 0.87, consistently excelling across all manipulation categories.
  • Hardest Challenge: Role Swap (RS) proved to be the most difficult transformation for embedding models to detect, while Hypernym Substitution (HS) was the easiest.
  • Human Validation: Human annotators confirmed that SentenceSmith successfully manipulated meaning in 98-100% of the generated cases, while maintaining high text fluency.
Figure 4: Fine-grained linguistic benchmarking of text embedding models.

Limitations and Future Work

The primary limitation of SentenceSmith is its current mono-linguality; robust AMR parsers and generators are predominantly available only for English. Additionally, the framework is subject to the inherent limitations of the underlying AMR framework, which can struggle with complex tense and scope aspects.

For future work, the authors suggest extending the framework cross-lingually by pairing it with Machine Translation (MT) models or leveraging emerging universal meaning representations. They also propose adapting the manipulation rules to evaluate broader downstream task objectives.

Summary updated

BibTeX
@misc{li2025sentence,
  author = {Hongji Li and Andrianos Michail and Reto Gubelmann and Simon Clematide and Juri Opitz},
  title = {{Sentence Smith: Controllable Edits for Evaluating Text Embeddings}},
  year = {2025},
  eprint = {2502.14734},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.14734},
}
Figure