Focus On Facts: Stylistically Invariant and Factually Sensitive Text Embeddings
Organizations: University of Maryland, Baltimore County
Abstract
Text embedding models can conflate surface-form similarity with factual identity. Given an altered near-copy with one corrupted fact and a differently worded fact-preserving rewrite, the base model prefers the altered near-copy. We test whether hard-negative contrastive supervision can reduce this surface-similarity shortcut. We construct FOF-Bench, an 83,263-triplet benchmark spanning five domains. Each anchor is paired with an LLM-generated, fact-preserving stylistic rewrite and a matched fact-altered near-copy. We fine-tune FOF-80M (Focus On Facts), an 80M-parameter embedding model, with a triplet contrastive objective that ranks the rewrite above the factual alteration. On 8,327 held-out test triplets, the base model chooses the factually altered text in 99.58% of cases (0.42% factual preference rate; mean separation -0.1650). After fine-tuning, mean positive--negative separation is +0.0329, 98.5% of individual margins move in the intended direction, and the preference rate reaches 29.37%. On DiSC, an external style-transfer corpus, mean cross-style similarity increases from 0.7905 to 0.9559. The model also penalizes omission and transfers poorly to directional tasks such as NLI and summarization. We characterize FOF-80M as a soft factual fingerprint for studying factual retention under stylistic variation, not as a general-purpose factuality metric.
Figures & tables
| Source | Snippets |
|---|---|
| Wikipedia | 20,000 |
| arXiv | 20,000 |
| PubMed | 20,000 |
| ROCStories | 20,000 |
| ReClor | 3,689 |
| Total | 83,689 |
| Field | Mean | P95 | P99 | Max |
|---|---|---|---|---|
| Anchor (original) | 116.2 | 252 | 311 | 500 |
| Positive (expanded) | 573.8 | 1,160 | 1,644 | 6,020 |
| Negative (altered) | 116.3 | 252 | 311 | 500 |
| Anchor | My sister-in-law loves Bubble Witch. In order to get a better score she needed to get FB friends. She issued friend requests to a lot of strangers playing this game. She ended up with a lot of friends from France and Germany. On her birthday she received many greetings in French and German. |
|---|---|
| Positive | My sister-in-law is absolutely fond of playing the popular mobile game, Bubble Witch. In her quest to achieve a higher score in the game, she realized that she would need to expand her circle of friends on Facebook. Consequently, she went ahead and sent out friend requests to quite a few individuals she did not know personally, all of whom were also engaged in playing this particular game. As a result of this strategy, she managed to accumulate numerous friends who reside in countries like France and Germany. When her birthday finally arrived, she was pleasantly surprised to receive a heartfelt number of greetings and well-wishes, most of which were written in French and German. |
| Negative | My sister-in-law loves Candy Crush . In order to get a better score she needed to get FB friends. She issued friend requests to a lot of strangers playing this game. She ended up with a lot of friends from France and Germany. On her birthday she received many greetings in French and German. |
| Metric | Base (F2LLM) | FOF-80M | |
|---|---|---|---|
| Pairwise Preference Rate (%) | 0.42 | 29.37 | |
| Anchor–Positive | 0.8269 | 0.9823 | |
| Anchor–Negative | 0.9919 | 0.9495 | |
| Mean Separation | -0.1650 | +0.0329 | |
| Cohen’s | -2.7966 | +0.3397 | |
| ROC-AUC | 0.0070 | 0.4002 |
| Metric | Base | FOF-80M | |
|---|---|---|---|
| Mean Stylistic Invariance | 0.7905 | 0.9559 | |
| Factual Silhouette Score | 0.6843 | 0.7147 | |
| Style-Distractor Acc. (%) | 99.87 | 98.93 | |
| Style-Agnostic R-Prec. (%) | 98.84 | 88.36 |
| Metric | Base | FOF-80M |
|---|---|---|
| Raw cosine similarity | ||
| Entailment mean | 0.5231 | 0.8890 |
| Neutral mean | 0.4344 | 0.8582 |
| Contradiction mean | 0.2992 | 0.8042 |
| Separation (Ent Con) | 0.2239 | 0.0848 |
| 3-way classification | ||
| Human Metric | Base | FOF-80M |
|---|---|---|
| Consistency | 0.2061 | 0.0198 |
| Relevance | 0.4124 | 0.1204 |
| Coherence | 0.2651 | 0.0459 |
| Fluency | 0.1186 | 0.0128 |
Text Embeddings
Text embeddings map words, sentences, or documents to vectors for measuring meaning, retrieving information, and organizing text.
See all 60 papers