Sentence Smith: Controllable Edits for Evaluating Text Embeddings

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

TL;DR

Sentence Smith is a new neuro-symbolic framework that uses Abstract Meaning Representation (AMR) graphs to perform surgical, human-designed edits on sentences. By creating "hard negative" pairs—sentences that look similar but have distinct meanings—the authors reveal that many state-of-the-art text embedding models, including massive 7B-parameter LLMs, struggle with fundamental linguistic shifts like negation and role-swapping.

What Problem Does This Paper Address?

Text embeddings are the backbone of modern NLP, powering everything from semantic search to RAG (Retrieval-Augmented Generation). However, evaluating them remains a "black box" problem. Popular benchmarks like MTEB provide a high-level accuracy score but fail to explain why a model succeeds or fails. Does a model truly understand that "the snake bites the tiger" is different from "the tiger bites the snake," or is it just matching keywords?

Existing methods for generating evaluation data often fall into two traps:

  1. Symbolic methods (like simple word swapping) produce unnatural, "clunky" text.
  2. LLM-based prompting is fluent but opaque, expensive, and difficult to control with precision.

Sentence Smith aims to bridge this gap by providing a transparent, controllable "scalpel" for semantic manipulation.

Methods

The authors propose a four-step neuro-symbolic pipeline to transform sentences while maintaining high surface similarity but altering core meaning.

The Sentence Smith pipeline uses AMR graphs to perform surgical edits like role-swapping and negation.
  1. Parsing: An input sentence is converted into an Abstract Meaning Representation (AMR) graph. AMR explicitly encodes "who is doing what to whom," making semantic roles transparent.
  2. Symbolic Manipulation: Human-designed rules are applied to the graph. The paper defines five specific "aspectual" transformations:
  3. Polarity Negation (PN): Adding a negation (e.g., "bites" becomes "doesn't bite").
  4. Role Swap (RS): Swapping the agent and patient (the biter becomes the bitten).
  5. Underspecification (US): Removing specific details.
  6. Antonym Replacement (AR): Swapping a word for its opposite using WordNet.
  7. Hypernym Substitution (HS): Replacing a specific word with a broader category (e.g., "snake" to "animal").
  8. Generation: A neural generator (based on BART) converts the modified graph back into fluent natural language.
  9. Faithfulness Check: An NLI (Natural Language Inference) model verifies that the transformation actually changed the meaning as intended (e.g., ensuring the new sentence contradicts the original).

Datasets

The researchers used two primary sources to build their challenge sets: PAWS (structurally similar sentence pairs) and GPTP (ChatGPT-generated paraphrases). From these, they induced a benchmark of over 13,000 "triplets" consisting of an original sentence, a true paraphrase, and a "foil" (the Sentence Smith-edited version).

Key Results

The evaluation revealed significant gaps in how modern models represent sentence logic.

Triple accuracy of various embedding models across five semantic transformation types.
  • Top Performer: sentence-t5-large emerged as the most robust model, achieving the highest average accuracy (0.87) across the datasets, outperforming much larger models.
  • Role Swap Difficulty: Swapping semantic roles (RS) proved to be the most difficult transformation for models to detect, highlighting a weakness in how embeddings represent event structure.
  • LLM Performance: Massive 7B-parameter models (like E5-Mistral or GTE-Qwen) landed in the lower-middle of the pack. These models often fail to register simple negation, sometimes getting more than 50% of negation cases wrong.
  • Low Correlation with MTEB: The rankings on Sentence Smith only moderately aligned with MTEB rankings (Spearman’s $\rho = 0.54$), suggesting current leaderboards may overestimate true linguistic understanding.

Key Insights and Ideas

  • The "Surface Overlap" Trap: Models often rely on lexical overlap (shared words) rather than semantic structure. Sentence Smith creates foils that have extremely high surface similarity to the original, forcing models to actually "understand" the logic to distinguish them.
  • Bigger is Not Always Better: The underperformance of 7B-parameter LLM-based embeddings suggests they may be optimized for long-context retrieval rather than fine-grained sentence-level semantics.
  • Efficiency: Because it relies on smaller, specialized neural networks rather than giant LLMs, Sentence Smith is highly resource-efficient for generating high-quality evaluation data.

Limitations and Future Work

The current framework is limited to English due to its reliance on English-specific AMR parsers and WordNet. Additionally, while modern parsers are effective, errors in the initial graph parsing can propagate through the pipeline. Future work aims to expand the framework to other languages and develop more complex manipulation rules to probe deeper into the reasoning capabilities of text encoders.

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