Retrofitted Word Embeddings: Techniques & Advances
- Retrofitted word embeddings are pretrained vectors post-processed with lexical or graph constraints to better capture semantic relations.
- Techniques range from weighted retrofitting and distance-weighted smoothing to extrofitting and regression-based mappings for improved lexicon coverage and cross-lingual transfer.
- Empirical evaluations demonstrate enhanced performance on word similarity benchmarks and domain-specific tasks, while challenges remain in syntactic analogy applications.
Searching arXiv for recent and foundational papers on retrofitted word embeddings. Retrofitted word embeddings are pretrained vector-space representations that are post-processed so that externally specified lexical or graph relations are better reflected in the geometry of the space, while the original distributional information is retained as an anchor. In the canonical formulation, a word vector is moved toward its neighbors in a semantic lexicon and simultaneously constrained to remain close to its original embedding; later work extends the same basic idea to weighted lexical graphs, cross-lingual dictionaries, unseen vocabulary, contextualized embeddings, interactive human correction, task-specific graphs, and non-Euclidean target manifolds (Faruqui et al., 2014).
1. Canonical formulation
The standard retrofitting setup begins with a vocabulary , pretrained embeddings , and a semantic-lexicon graph . The retrofitted embeddings are obtained by minimizing
The first term preserves the original distributional vector; the second performs graph smoothing over lexicon edges. The objective is convex, and the fixed-point update is
In the original experiments, for all words and . Initialization uses , about 10 iterations are usually enough, adjacent vectors differ by less than in Euclidean distance at convergence, and runtime is around 5 seconds for 100k words with 300 dimensions (Faruqui et al., 2014).
The lexical resources used in the original formulation span automatically induced paraphrase relations and manually curated lexical knowledge. The method was explicitly designed to make no assumptions about how the input vectors were constructed, so it can be applied to GloVe, skip-gram, global-context embeddings, and multilingual embeddings alike (Faruqui et al., 2014).
| Lexicon graph | Words | Edges |
|---|---|---|
| PPDB | 102,902 | 374,555 |
| WordNet_syn | 148,730 | 304,856 |
| WordNet_all | 148,730 | 934,705 |
| FrameNet | 10,822 | 417,456 |
Empirically, classic retrofitting improves semantic tasks such as word similarity, TOEFL synonym selection, and sentiment analysis, but usually does not help syntactic analogy performance. PPDB often gives the best overall gains; WordNet also improves performance substantially; FrameNet is weaker and sometimes hurts performance, likely because its frames are semantically broad and can connect words that are not tightly similar. The same framework also transfers to other languages through Universal WordNet, with reported gains for German, French, and Spanish (Faruqui et al., 2014).
2. Lexical weighting and graph-based variants
Subsequent work modifies the neighborhood term rather than abandoning the retrofitting principle. In weighted retrofitting, the standard neighbor weights are replaced by lexical similarity scores: 0 The graph can include synonymy, hypernymy, meronymy, and verb entailment, and similarity can be derived from Jiang-Conrath, Wu-Palmer, Leacock-Chodorow, Lin, or inverse path similarity. Because words may have multiple synsets, word-level similarity is defined as the maximum similarity over synset pairs, and the method can incorporate neighbors up to 2 hops away. This produces clear gains on similarity-oriented benchmarks; in a compact comparison, SimLex-999 rises from 0.336 with standard retrofitting to 0.429 with weighted retrofitting, while PPDB + path similarity reaches 0.509 on SimLex-999, 0.710 on WS353S, and 0.824 on RG65 (Srinivasan et al., 2019).
A distinct graph variant uses distance-weighted smoothing. With original vectors 1 and refined vectors 2, the objective is
3
where 4 is derived from a probability distribution over Euclidean distances,
5
The update rule is
6
with default 7. This formulation treats synonym edges as unequal constraints and reports a best overall average of 69.8, compared with 68.8 for both no retrofitting and Faruqui-style retrofitting in the reported ablation (Zheng et al., 2022).
A more radical reinterpretation is expansional retrofitting, or extrofitting. Instead of only averaging with lexical neighbors, extrofitting first expands the embedding space and then applies a discriminative transformation that maximizes between-class variance and minimizes within-class variance. It also admits an unsupervised form: the embedding matrix is factorized by SVD, latent semantic neighbors are recovered by cosine similarity with threshold 8, and these broader semantic groupings drive the enrichment step. This produces substantial improvements over raw GloVe on MEN, WordSim-353, SimLex-999, and SimVerb-3500, and the method is explicitly positioned as enrichment rather than pure specialization because retrofitting-style specialization can hurt downstream classification whereas extrofitting can preserve or improve it (Jo, 2018).
3. Generalizing beyond lexicon-covered words and languages
A structural limitation of classic retrofitting is lexicon coverage. In one post-specialisation study, the constraint set covers only 16.6% of the sgns-bow2 vocabulary and only 15.3% of the top 200K fastText words. The proposed remedy is to specialize the seen subspace first, producing pairs
9
and then learn a regression function 0 so that 1. Unseen words are mapped by
2
Both mean-squared-error and margin-based ranking objectives are considered; the best overall model is nonlinear-mm, implemented as a deep feed-forward fully connected neural network with 3 hidden layers of size 512, swish activations, He initialization, Adam, 100 epochs, early stopping, and 10% of seen words reserved for validation. On GloVe in the hold-out setting, SimLex rises from 0.408 to 0.603 and SimVerb from 0.286 to 0.480; on English dialogue state tracking, joint goal accuracy rises from 0.797 to 0.835 in the all setting; on lexical text simplification, GloVe rises from 66.0 to 72.3, fastText from 57.8 to 74.3, and sgns-bow2 from 56.0 to 70.9 (Vulić et al., 2018).
Cross-lingual retrofitting applies the same core objective to bilingual dictionary edges rather than monolingual lexical edges. Starting from an aligned CLWE space, the method pulls source-target translation pairs closer together: 4 with the update
5
The central claim is that conventional linear projections underfit the training dictionary, whereas retrofitting “overfits” it in a way that often improves downstream tasks even when bilingual lexicon induction test accuracy decreases. A synthetic dictionary induced from the CLWE model can be added to the original training dictionary, and this sometimes generalizes even better on downstream tasks. A recurring implication is that BLI is a flawed CLWE evaluation when used alone (Zhang et al., 2020).
4. Contextual, interactive, and domain-adaptive retrofitting
Retrofitting has also been extended from static word types to contextualized representations. Paraphrase-Aware Retrofitting (PAR) keeps a pretrained contextual model 6 fixed and learns an orthogonal input transformation 7 so that the same word has more stable contextual embeddings in paraphrased sentences: 8 with orthogonality regularizer
9
Applied to the officially released 3-layer ELMo, this yields consistent gains on sentence classification, inference, similarity, relatedness, and adversarial QA. Illustrative results include MPQA 89.55 0 93.76, MR 79.72 1 83.40, SST-2 86.33 2 89.26, and AddSent EM/F1 36.1/41.7 3 40.8/47.1 (Shi et al., 2019).
Human-in-the-loop refitting replaces static lexicon edges with interactive user-selected constraints. The operational workflow is explicitly described as
search → navigate → visualize → adjust and supports two modes: moving a target term toward a user-specified list of terms, and round-robin refitting of an entire group so that all selected vectors become more similar. The system updates selected word2vec vectors in real time. In a science example, cosine similarity between science and selected terms rises from .5929 to .8663 for science itself, .5644 to .8379 for astronomy, .5623 to .8399 for biophysics, .5387 to .8428 for biology, and .5305 to .8389 for biochemistry. The motivating use cases include semantic correction, disciplinary imbalance, and bias mitigation (Powell et al., 2021).
Domain adaptation can also be cast as retrofitting. In punctuation restoration for ASR transcripts, pretrained 300-dimensional GloVe vectors are retrofitted with Mittens on Fisher conversational transcripts via
4
The intended effect is better alignment of homonym embeddings in noisy conversational ASR. Reported cosine similarities include “I have to cancel” vs. “I have to cancer” from 0.74 to 0.91, “cancel” vs. “cancer” from 0.10 to 0.18, “by” vs. “buy” from 0.16 to 0.40, and “thank you” vs. “think you” from 0.84 to 0.90. Used in a CNN punctuation tagger, this yields F1 improvements from 61.9 to 69.7 for periods, 56.8 to 62.2 for question marks, and 60.3 to 65.7 for commas (Augustyniak et al., 2020).
5. Geometric reformulations and lexical-space extension
A major geometric reformulation treats retrofitting as mapping pretrained embeddings from a source manifold 5 to a target manifold 6 while fitting a task graph and preserving local geometry. Standard explicit retrofitting uses pointwise proximity, but conformal retrofitting instead regularizes the pullback metric
7
so that local angles, and optionally local distances, are preserved. The conformality loss is
8
The associated Riemannian feedforward layer is
9
On WordNet hypernymy link prediction, mixed manifolds outperform Euclidean-only approaches for held-out entities; for Nouns, original 0 gives test mAP 7.9%, explicit 1 gives 8.9%, and conformal 2 gives 9.3% (Dieter et al., 2020).
A related but distinct line extends rather than merely relocates embeddings. AutoExtend assumes that a word is the sum of its lexemes and a synset is also the sum of its lexemes: 3 With diagonal maps 4, it defines
5
yielding a sparse tensor autoencoder that learns synset and lexeme embeddings in the same space as the original words, without an additional training corpus. This produces more than 1% improvement in IMS-based word sense disambiguation and on SCWS yields 68.9 for AvgSim and 69.8 for AvgSimC with lexeme embeddings, compared with 66.6 for the underlying word2vec words (Rothe et al., 2015).
A broader theoretical perspective deconstructs SGNS, GloVe, FastText, SVD/PPMI, LDS, and Swivel into a low-rank embedder framework in which dot products approximate PMI-like corpus statistics and training modulates gradients to temper frequent pairs. This suggests that retrofitting is best understood not as replacing distributional semantics, but as imposing external structural constraints on spaces whose geometry already encodes PMI-centered information (Kenyon-Dean et al., 2020).
6. Empirical profile, evaluation controversies, and limitations
Across the literature, retrofitting is strongest when the target evaluation emphasizes semantic similarity, lexical substitution, lexical-semantic coherence, or graph-structured relations. The original formulation improves WS-353, RG-65, MEN-3k, TOEFL synonym selection, and sentiment analysis, but often does not help syntactic analogy; the reason given is that the injected knowledge is semantic rather than syntactic. This remains a durable empirical boundary: specialization can sharpen synonymy and related lexical relations while leaving analogy-style vector arithmetic unchanged or degraded (Faruqui et al., 2014).
A recurrent controversy concerns evaluation. In cross-lingual settings, bilingual lexicon induction is argued to be a flawed evaluation because it is sensitive to local neighborhood distortions, may reward spaces that are “good at lookup” rather than good for downstream transfer, and can miss practical gains from explicitly exploiting the training dictionary. This reframes “overfitting” to lexical constraints as potentially beneficial rather than pathological, depending on the downstream objective (Zhang et al., 2020).
Several limitations recur. Retrofitting depends on the coverage and quality of the lexical or graph resource; standard methods leave unseen words untouched, which motivated post-specialisation; abstract or noisy relations can hurt, as illustrated by weaker FrameNet behavior; Euclidean formulations can underfit hierarchical graphs, which motivated Riemannian variants; contextual retrofitting methods such as PAR depend on paraphrase-labeled data; interactive refitting depends on human judgment and is presented primarily as a proof-of-concept rather than a large-scale benchmark study (Vulić et al., 2018, Dieter et al., 2020, Shi et al., 2019, Powell et al., 2021).
A plausible synthesis is that “retrofitted word embeddings” now denotes a family of post hoc specialization procedures rather than a single algorithm. The family includes convex lexicon smoothing, similarity-weighted graph updates, dictionary-based CLWE refinement, learned mappings from seen to unseen words, paraphrase-based stabilization of contextual embeddings, human-guided interactive adjustments, and graph distillation into curved manifolds. What unifies these methods is not a fixed objective, but the retention of a pretrained embedding space as a prior and the insertion of task-relevant relational structure after pretraining.