Word vectors learned from text co-occurrence mix two things people usually want apart. One is similarity: huge and large can replace each other. The other is relatedness: doctor and hospital occur together but mean different things. Methods that pull synonyms together and push antonyms apart improve similarity scores, but they damage the topical neighborhoods that document classification needs. The field has therefore treated the two as a zero-sum trade: you keep one specialized space per use, or you pick a setting that favors one. This proposal tests a different approach. An autoencoder is a network that squeezes each input through a small middle layer and reconstructs it on the other side. We train one such network to compress a pretrained word space into a short code with two reserved halves. Similarity queries read one half and relatedness queries read the other. A reconstruction loss keeps the whole code faithful to the original space.
The main bet is not that splitting a vector into two halves is clever. Obvious alternatives such as keeping two separate spaces would compete with that. The bet is that a shared encoder, trained on the small fraction of vocabulary covered by a synonym/antonym lexicon, carries the similarity correction over to words the lexicon never mentions. Post-hoc methods like counter-fitting cannot do this, because they only move words that appear in their constraint lists. If this works, a low-resource or specialized-domain user gets similarity specialization on words outside the lexicon, keeps relatedness, and pays a fraction of the storage.
Core Claim
A partitioned-bottleneck autoencoder produces a code $z = [z_{\text{sim}} \,\|\, z_{\text{rel}}]$ that improves on post-hoc specialization in three ways at once, at a fixed total dimension well below the input's. It retains similarity gains on words absent from the constraint lexicon. It preserves relatedness that counter-fitting destroys. It matches or beats two independently compressed specialized spaces of the same total size. The objective is
$$\mathcal{L} = \|x - g(z)\|^2 + \lambda_{\text{sim}}\,\mathcal{L}_{\text{AR/SA}}(z_{\text{sim}}) + \lambda_{\text{rel}}\,\mathcal{L}_{\text{ctx}}(z_{\text{rel}}),$$
where $x$ is a pretrained word vector, $g$ the decoder, and $\mathcal{L}_{\text{AR/SA}}$ the antonym-repel and synonym-attract margins of counter-fitting applied to cosine in $z_{\text{sim}}$. The term $\mathcal{L}_{\text{ctx}}$ asks a bilinear score $z_{\text{rel}}(a)^\top M z_{\text{rel}}(b)$ to match the word-to-context dot product $w_a^\top c_b$ from the same skip-gram model, with $M$ a learned, not necessarily symmetric, matrix. The weights $\lambda_{\text{sim}}, \lambda_{\text{rel}}$ are swept so that the result is a trade-off curve rather than one point.
The relatedness term needs no curated resource. It reuses the skip-gram context matrix, which is usually thrown away after training and which Querying Word Embeddings for Similarity and Relatedness showed encodes directional association. Only the similarity half consumes a lexicon.
Where This Sits
Three lines of prior work motivate the gap. Counter-fitting Word Vectors to Linguistic Constraints adjusts pretrained vectors with synonym-attract, antonym-repel and a stay-close term, reaching SimLex-999 Spearman 0.74. CoKE reports that this focus on similarity degrades relatedness. Specializing Word Embeddings for Similarity or Relatedness retrofits skip-gram to a thesaurus or to association norms. It finds each specialization wins its own tasks: 88.75% TOEFL for similarity, better RCV1 classification for relatedness. It concludes that the two need distinct spaces. We reuse counter-fitting's loss as a method component. We differ in applying it through an encoder, so it generalizes, and in confining it to half the code, so it cannot erase relatedness.
A constraining result pulls the other way. Uncovering Divergent Linguistic Information in Word Embeddings shows that a closed-form linear reweighting of the embedding's eigenvectors, $Q\Lambda^\alpha$, raises GloVe SimLex-999 from 40.70 to 51.54 with no lexicon at all. Its best settings for semantics and for syntax do not overlap. This suggests the divergent signals already coexist in one space. If a cheap linear map surfaces them, a learned non-linear bottleneck must earn its cost, and our experiments include this transform explicitly.
Two autoencoder papers supply the compression recipe. Learning Compressed Sentence Representations for On-Device Text Processing combines reconstruction with a loss that preserves cosine structure in a compact code. It stays within about 2% of uncompressed vectors on SentEval at 98.5% storage reduction. It also reports that random projections are competitive at small code sizes, a warning we take seriously. SALSA adds a contrastive metric loss to a reconstruction autoencoder for molecules. It raises the correlation between latent distance and true structural similarity from 0.51 to 0.88. Both impose a single target geometry on a single undivided code. We impose two conflicting geometries on reserved parts of one code and trace the frontier between them and reconstruction.
On disentangling, Explaining Word Embeddings via Disentangled Representation rotates GloVe orthogonally so that labeled categories occupy dedicated dimensions. OSCaR rotates bias subspaces to be orthogonal rather than projecting them out, preserving valid associations. Both are linear, label-driven, and do not compress. Our partition is defined by two continuous relational objectives instead of categories.
The name overlap with Pareto Variational Autoencoder is incidental. That paper uses the Pareto probability distribution for heavy tails. It is relevant here only as a possible latent prior for rare words, which we treat as an optional ablation.
Research Program
We start from 300-dimensional SGNS vectors trained on a Wikipedia dump. We keep both the word matrix $W$ and the context matrix $C$, following the setup of Querying Word Embeddings for Similarity and Relatedness. We repeat with GloVe for the linear-transform comparison, using $W$ only and dropping the relatedness-from-context term. The synonym/antonym constraints come from the same lexical sources counter-fitting used.
The critical design choice is a lexicon split. We partition vocabulary so that every word in the SimLex-999 and SimVerb-3500 test pairs is either fully covered by constraints or fully held out from them. Held-out words appear only through the reconstruction loss and the context-based relatedness loss. Their similarity quality then measures generalization, which is where post-hoc methods have nothing to offer.
We train encoder–decoder pairs with total code sizes of 50, 100 and 150 dimensions. We vary how dimensions are allocated between $z_{\text{sim}}$ and $z_{\text{rel}}$, and we sweep the loss weights. For each configuration we record reconstruction error, similarity quality, and relatedness quality. This produces an empirical frontier. It answers the question the file flags as open after SALSA and the sentence-compression work: what reconstruction fidelity costs in relational geometry, and whether the cost is steep or flat.
Secondary analyses probe what the split buys. We check whether antonym pairs are far apart in $z_{\text{sim}}$ but close in $z_{\text{rel}}$, as the design intends. We check whether the asymmetric $M$ recovers the directional association that the word-to-context score captures on ProNorm.
Baselines
The naive reference point is the uncompressed pretrained vectors, plus the same vectors reduced by PCA and by random projection to each code size. This tells us what compression alone costs. The sentence-compression paper found random projection strong at small budgets, so it is not a straw man.
The strongest similarity competitor is counter-fitting run by us on the same base vectors and the same constraint set, then reduced by PCA to the matching code size. The file's reported number for counter-fitting is SimLex-999 Spearman 0.74 in Counter-fitting Word Vectors to Linguistic Constraints. That result starts from Paragram vectors, which are already tuned on paraphrase data, so we treat it as a ceiling reference, not a like-for-like target. On SimVerb-3500 the file reports 0.628 for Paragram with counter-fitting (SimVerb-3500). Beating counter-fitting means two things. On held-out-lexicon pairs, we must exceed its score by a margin larger than seed variance. On covered pairs, we must stay within 0.02 Spearman of it while keeping relatedness near the unspecialized base.
The strongest lexicon-free competitor is the eigenvalue reweighting of Uncovering Divergent Linguistic Information in Word Embeddings, with its reported GloVe SimLex-999 of 51.54 against 40.70 unmodified. To make it a compression baseline, we compute the similarity-favoring and relatedness-favoring settings of $\alpha$, truncate each to half the code size along the top eigenvectors, and concatenate. We give $\alpha$ the same development-set tuning budget our loss weights get.
The strongest relatedness competitor is the raw word-to-context score, which the file reports at ProNorm Spearman about 0.26 versus 0.19 for word-to-word similarity. It uses twice the storage of one matrix, and we report that alongside its score. For document-level relatedness, the file cites relatedness-specialized retrofitting on RCV1 but gives no number: no reported result found on Lacuna for RCV1 classification accuracy. We rerun that retrofitting ourselves.
Three ablations isolate the key ingredients. The first is a single unpartitioned code carrying both losses, which tests whether the split matters. The second drops the reconstruction term, which tests whether reconstruction is what protects out-of-lexicon structure. The most important is a free per-word code table. Instead of an encoder, each word gets its own learnable low-dimensional vector, optimized with the identical objective. This is retrofitting in the compressed space. If it matches the encoder on held-out words, the generalization claim is false. All methods share base vectors, constraint sets, development split (the 500-pair SimVerb development set and a held-out fold of constraints) and an equal hyperparameter search budget.
Why not just…?
Why not just keep two specialized spaces, each compressed to half the budget? This is the most serious threat. It is exactly what Specializing Word Embeddings for Similarity or Relatedness recommends. It would plausibly tie our method on covered words. We run it at equal total dimension: counter-fitted vectors reduced by PCA to half the budget, concatenated with relatedness-retrofitted vectors reduced to the other half. If it ties us on held-out words too, the partitioned code is merely a packaging convenience. We would then report that the contribution reduces to the encoder's generalization, if any survives the free-table ablation.
Why not just use the closed-form eigenvalue reweighting, which needs no training and no lexicon? It already surfaces a large similarity gain from GloVe. Its authors show one setting cannot serve both goals, but two settings concatenated might. That baseline is built into the design, as described above. If it lands within noise of our similarity and relatedness numbers, the non-linear bottleneck is unjustified for this task. Held-out-lexicon generalization is irrelevant to that comparison, since the transform uses no lexicon at all. So there the comparison is purely on quality per dimension.
Why not just counter-fit and then compress with PCA? It is fast; the file notes under two minutes. But CoKE reports that counter-fitting degrades association, and the method cannot move words outside its constraint lists. The lexicon-split evaluation and the relatedness benchmarks measure both weaknesses directly, and compression afterward fixes neither.
Proposed Experiments
Similarity is measured by Spearman correlation on SimLex-999 and SimVerb-3500, reported separately for covered and held-out-lexicon pairs, plus TOEFL synonym accuracy. Relatedness is measured on MEN and WordSim-353, directional association on ProNorm, and extrinsic topical use through RCV1 document classification with a fixed linear classifier on averaged word codes. We report reconstruction error and code size for every model, and results are averaged over at least five seeds.
The decisive check is held-out-lexicon SimLex-999 and SimVerb-3500 at a 100-dimensional code. The encoder must beat counter-fitting with PCA, the two-store baseline, and the free per-word table. It must also keep MEN and RCV1 within a small margin of the uncompressed base. If the free table matches the encoder, the generalization mechanism fails. If the two-store baseline matches everything, the partition adds nothing beyond storage accounting. We would report either outcome as a finding about whether similarity and relatedness truly need separate spaces, which is the disagreement between Kiela et al. and Artetxe et al. that this experiment adjudicates. A secondary check traces the full frontier across loss weights to see whether reconstruction and the two relational geometries trade off smoothly or sharply. We also run the whole pipeline on a smaller-vocabulary lexicon subset to simulate low-resource coverage, where the generalization advantage should be largest if it exists.
References
- Querying Word Embeddings for Similarity and Relatedness
- Counter-fitting Word Vectors to Linguistic Constraints
- CoKE : Word Sense Induction Using Contextualized Knowledge Embeddings
- Specializing Word Embeddings for Similarity or Relatedness
- Uncovering Divergent Linguistic Information in Word Embeddings with Lessons for Intrinsic and Extrinsic Evaluation
- Learning Compressed Sentence Representations for On-Device Text Processing
- SALSA: Semantically-Aware Latent Space Autoencoder
- Explaining Word Embeddings via Disentangled Representation
- OSCaR: Orthogonal Subspace Correction and Rectification of Biases in Word Embeddings
- Pareto Variational Autoencoder
- SimVerb-3500: A Large-Scale Evaluation Set of Verb Similarity