Skip to content
Back to skills

Negation Embedding Eval

ASecurity

Probes whether text embedding models suffer from 'negation blindness' by testing their ability to correctly identify paraphrases over negated counterparts, and measures the trade-off with semantic similarity correlation. Use when the user wants to benchmark on STSB, SemAntoNeg, or asks about evaluating this task. Reports Accuracy.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 11, 2026
researchpythongoexpresstesting

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill negation-embedding-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Negation Embedding Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Negation Embedding Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-negation-embedding-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-negation-embedding-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: negation-embedding-eval
description: Probes whether text embedding models suffer from 'negation blindness' by testing their ability to correctly identify paraphrases over negated counterparts, and measures the trade-off with semantic similarity correlation. Use when the user wants to benchmark on STSB, SemAntoNeg, or asks about evaluating this task. Reports Accuracy.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2504.00584
  bibtex_key: [REDACTED]
  confidence: high
---

# negation-embedding-eval

> Semantic Adapter for Universal Text Embeddings: Diagnosing and Mitigating Negation Blindness to Enhance Universality — Cao (2025) (arXiv:2504.00584, 2025)

## What this evaluates

Probes whether text embedding models suffer from 'negation blindness' by testing their ability to correctly identify paraphrases over negated counterparts, and measures the trade-off with semantic similarity correlation.

## Datasets

- **STSB** — total ?; splits: train (-1), test (-1); HF `glue/stsb`
- **SemAntoNeg** — total ?; splits: train (-1), test (-1)

## Metrics

- `Accuracy` **(primary)** — range: [0, 1]
  - Proportion of correctly identified paraphrase candidates out of total test instances. For STSB, candidates are the positive paraphrase and its negated counterpart. For SemAntoNeg, candidates are three expressions with negation/antonym substitutions.
- `Correlation` — range: [-1, 1]
  - Pearson correlation coefficient between the model's computed embedding similarity scores and human-annotated semantic similarity values, following the standard STSB evaluation protocol.

## Input / output format

**Input**: Sentence pairs (query, positive paraphrase) for STSB; query plus three candidate paraphrases with negation/antonym substitutions for SemAntoNeg. Models compute cosine similarity between query embeddings and candidate embeddings.

**Output**: Discrete class label (selected paraphrase candidate) for accuracy; continuous similarity score for correlation.

## Scoring recipe

```python
# Accuracy
correct = sum(1 for q, pos, neg in test
              if sim(q, pos) > sim(q, neg))
accuracy = correct / len(test)

# Correlation (STSB)
preds = [sim(s1, s2) for s1, s2 in test]
gold = [score for _, _, score in test]
correlation = pearsonr(preds, gold).statistic
```

## Common pitfalls

- STSB test set merges official validation and test splits.
- SemAntoNeg requires 10-fold repeated random sampling (32/68 split) due to missing predefined splits.
- Adapter application typically reduces Pearson correlation by ~1% despite boosting accuracy.

## Evidence (verbatim from paper)

> In order to test the effectiveness of the proposed embedding re-weighting method, a paraphrase detection task is formulated using the STSB dataset: the Group 5 data from STSB [$sentence_1_i$, $sentence_2_i$] are used as paraphrase text pairs. The embedding models are then required to identify the accurate paraphrase of $sentence_1_i$ from [$sentence_2_i$, $neg_sentence_1_i$]. ... Two evaluation metrics are used in this experiment: Accuracy: measures if state-of-the-art text embeddings can correctly identify semantically similar text $sentence_2_i$ from negated text $neg_sentence_1_i$ which has similar surface form as $sentence_1_i$. Correlation: measures if the similarity score of state-of-the-art text embeddings correlates well with human annotated similarity values using Pearson correlation following the evaluation protocol of STSB.

## Citation

```bibtex
@misc{cao2025semanticadapter,
  title={Semantic Adapter for Universal Text Embeddings: Diagnosing and Mitigating Negation Blindness to Enhance Universality},
  author={Cao (2025)},
  year={2025},
  note={arXiv:2504.00584}
}
```

- arXiv: 2504.00584

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.