Abstract
Analogy completion has been a popular task in recent years for evaluating the semantic properties of word embeddings, but the standard methodology makes a number of assumptions about analogies that do not always hold, either in recent benchmark datasets or when expanding into other domains. Through an analysis of analogies in the biomedical domain, we identify three assumptions: that of a Single Answer for any given analogy, that the pairs involved describe the Same Relationship, and that each pair is Informative with respect to the other. We propose modifying the standard methodology to relax these assumptions by allowing for multiple correct answers, reporting MAP and MRR in addition to accuracy, and using multiple example pairs. We further present BMASS, a novel dataset for evaluating linguistic regularities in biomedical embeddings, and demonstrate that the relationships described in the dataset pose significant semantic challenges to current word embedding methods.
Introduction
Standard word embedding analogy tests, famously exemplified by the "king - man + woman = queen" relationship, rely on several fragile assumptions that often fail in specialized domains. This paper identifies three primary flaws in the standard methodology:
- The Single-Answer Assumption: The belief that only one correct answer exists for a given analogy prompt. In biomedicine, a prompt like
flu : nausea :: fever : ?could be validly answered with multiple symptoms likecoughorlight-headedness. - The Same-Relationship Assumption: The assumption that the example pair ($a,b$) and the query pair ($c,d$) share exactly one target relationship, ignoring the semantic overlap common in complex domains.
- The Informativity Assumption: The assumption that a single example pair provides sufficient context to isolate the specific relationship required for the query.
Methods
To address these limitations, the authors propose modifications to the standard vector offset method (3CosAdd):
- Multi-Answer Setting: Evaluation is relaxed to accept any valid target from a set of correct answers.
- All-Info Setting: Instead of a single exemplar pair, multiple valid exemplar vectors are averaged to create a more robust semantic offset.
- Ranking Metrics: The introduction of Mean Average Precision (MAP) and Mean Reciprocal Rank (MRR) allows for evaluating the quality of the model's ranked predictions rather than relying solely on top-1 accuracy.
- Multi-Word Expression (MWE) Handling: Medical terms are often multi-word; these are represented by averaging the embeddings of their constituent words.
The BMASS Dataset
The authors introduce the BioMedical Analogic Similarity Set (BMASS), generated from expert-curated knowledge in the UMLS Metathesaurus. It comprises 61,250 analogies across 25 distinct binary relations, categorized into groups such as Lab/Rx, Hierarchical, and Anatomy.
Results and Analysis
The evaluation reveals significant performance variance across different relationship types. For instance, relations like has-salt-form (L7) show relatively high accuracy, while structural relations like anatomic-structure-is-part-of (A1) remain challenging.
Key findings include:
- Multi-Answer Benefits: Moving to a Multi-Answer setting consistently improves relaxed accuracy, providing a fairer assessment of semantic capture.
- All-Info Limitations: Surprisingly, the "All-Info" setting—using multiple examples—actually degraded performance for certain relations like
form-of(L1), suggesting that averaging multiple vectors can sometimes introduce semantic noise. - Ranking Insights: High MRR scores often accompany low top-1 accuracy, indicating that while the model might not pick the exact target first, the correct answers are typically within the immediate semantic neighborhood.
- Lexical Gravity: Averaging words for MWEs often led the model to favor terms with shared lexical components (prefixes or words) rather than true semantic analogs.
Conclusion
While relaxing the Single-Answer and Informativity assumptions provides a more nuanced view of embedding quality, the Same-Relationship assumption remains a significant hurdle. Vector arithmetic struggles to disentangle specific relationships when terms are multi-related. Future work should investigate whether parametric models or more sophisticated vector offset methods can better navigate these complex semantic landscapes.
Summary updated