A Mixture-of-Experts Model for Learning Multi-Facet Entity Embeddings
Paper · 2020 · Rana Alshaikh, Zied Bouraoui, Shelan Jeawak et al.
Summary
Two films can belong together for different reasons. They might share a genre, depict the same historical event, or use similar production techniques. An entity embedding represents each film as a vector, so its neighbors are the films that lie closest to it in the resulting space. When there is a single space, the same geometry has to serve all those purposes. Alshaikh and colleagues ask whether descriptions of entities can support several useful geometries at once, with a different kind of similarity emphasized in each.
Their method, MoEGloVe, learns several vectors for every entity. Each vector belongs to an expert trained to predict which words occur in the entity’s description and how often. The experts use a regression objective adapted from GloVe. A separate network, called a gate, learns how strongly each word should be assigned to each expert. It uses pretrained word embeddings to give related words a reason to end up with the same expert. The procedure alternates between measuring how well the experts fit each word and using that information to update the gate and the experts. It learns these assignments without labels for facets such as genre or production.
The authors evaluate the representations on descriptions of films, buildings, place types, geographic locations, and Wikipedia entities. The comparison with a single GloVe space keeps the total size of each entity representation at 100 dimensions. The split representation improves held-out F1, a score that combines precision and recall, across many tasks. On Wikipedia semantic type, for example, the test F1 with the support-vector classifier rises from 0.49 for GloVe to 0.61 for MoEGloVe. On the finest CORINE land-cover task in Locations, the nearest-neighbor classifier scores 0.17 with GloVe and 0.21 with MoEGloVe. Some comparisons favor a baseline or end in a tie, including several tests with shallow decision trees and some comparisons with earlier approaches that split an existing space.
The authors also inspect what changes when entities are compared within a particular expert’s space. A film’s nearest neighbors can become more consistent in genre. For a location in Liverpool, one expert emphasizes other urban areas, while another brings coastal locations into view. These examples show how the choice of space changes which resemblances are prominent. The classification experiments show that the resulting representations can help predict labeled properties. They leave open how reliably the learned facets can be named, how cleanly they separate, and which facet would be most useful for a new request.
Deep dive: A Mixture-of-Experts Model for Learning Multi-Facet Entity Embeddings
Follow how a mixture of GloVe experts learns several kinds of entity similarity from text and how those embeddings fare on classification tasks. · about 35 minutes to read
The problem and its context
What a single space asks of similarity
An entity embedding gives an object such as a building, a film, or a geographic location a position in a vector space. The authors describe this as a compact way of encoding similarity. If the inputs are descriptions, the position reflects patterns in the words used to describe that entity and others. The paper places this idea alongside uses of vector representations in cognitive science and information retrieval. It also describes applications in recommendation, entity-focused search, and the incorporation of background knowledge into neural systems. One example it cites uses entity representations in a knowledge graph for fact-aware text prediction. Barack’s Wife Hillary
The difficulty arises when the purpose of the comparison changes. Sharing an event and sharing a genre are both reasonable grounds for calling films similar. Words that describe the event and words that signal the genre can both contribute to a film’s position. A single neighborhood consequently reflects an overall combination of these signals. Even if the vector contains information about both, a later application still needs a way to emphasize the relation relevant to its task. This distinction between the information a vector contains and the comparisons it readily supports motivates the paper.
The authors make the problem concrete with concept induction. The task is to supply more members of a category from a small set of examples. Given Barcelona, Madrid, and Alicante, a plausible completion would be another Spanish city. With only a few names and a general-purpose space, a straightforward procedure is to average the seed vectors and look at the neighbors of that average. The result depends on which features the space makes prominent. The named cities share properties beyond being cities in Spain, and overall proximity can give those other properties considerable influence. If the representation offers different spaces, there is another decision available. The application can try to identify the space in which the examples exhibit the kind of resemblance it needs.
This argument does not require every use of an entity to have a separate vector. It requires that some kinds of similarity can be shared across many entities and can be learned from recurring descriptive evidence. A film space concerned with genre has value because many films can be compared along that aspect. A space that captures technical production has a different use for the same collection. The aim is to make both comparisons possible before the downstream task supplies a category or query.
The influence of conceptual spaces
The paper draws on the distinction between integral and separable dimensions in theories of categorization. The distinction concerns how features are perceived together. Size and hue can be considered separately in the example the authors give. Hue, saturation, and luminosity are treated as components of the perception of color. The conceptual-space account groups integral dimensions into domains and treats different domains as separable. Objects can then be compared inside each domain, with the contribution of a domain depending on the context in which the comparison is made.
This gives the authors a concrete way to think about geometry. Within a domain, several coordinates can work together to express a recognizable kind of resemblance. A broader judgment can combine distances from several such domains with different weights. The theory therefore suggests a unit of interpretation larger than an individual coordinate but smaller than the complete representation. One can ask whether a space captures a recognizable property of films while leaving open what each coordinate in that space represents.
The paper relates this to work on interpretable directions within an embedding. Derrac and Schockaert had sought directions that could be described with words. These directions could overlap and did not have to be perpendicular to one another. The earlier entity-facet method by Alshaikh and colleagues took the idea further by identifying interpretable directions, grouping their descriptions, and finding a subspace for the most prominent group. It then repeated the procedure on the part of the original space orthogonal to that subspace. In this account, a facet is recovered by analyzing structure already present in a learned embedding.
Why learn the spaces together?
The earlier decomposition used multidimensional scaling, abbreviated MDS, to obtain its starting representation. The authors identify a computational problem with this choice. The space required by MDS grows quadratically with the number of entities, restricting the size of collections it can handle. They also identify a representational problem. Each useful facet must be recoverable as a linear subspace of the starting embedding. A direction that matters to a downstream task may already have been suppressed by that embedding’s overall similarity relation.
The earlier method also depended on finding clusters in a pretrained word space to describe the facets. The authors argue that this is a demanding assumption about how a facet is expressed in language. Names for different film genres can be close together, while an adjective such as scary can help identify genre without sitting in the same cluster as those names. A useful allocation of words therefore needs to accommodate both groups of close neighbors and other kinds of words that support the same comparison. The new proposal uses word-vector proximity as a cue while learning how the words should be grouped from the entity descriptions.
The related discussion of disentangled representation learning clarifies a second choice. The work the authors review frequently aims to give individual latent coordinates a recognizable interpretation. They describe visual approaches that seek factors such as the presence of glasses or the orientation of a head. In text, they discuss separating style or sentiment from content and using aspect-specific judgments or labels. One example concerns style transfer between texts without paired versions. Disentangled Representation Learning for Non-Parallel Text Style Transfer
For entity embeddings, the authors look for useful groups of coordinates that jointly define different forms of similarity. They do not require coordinate-by-coordinate interpretation or statistical independence between the underlying properties. Their own example makes the reason clear. Particular actors can be strongly associated with particular genres, even though actor and genre are intelligible as distinct facets. The method needs a way to encourage a separation when the data contains correlations like this. Pretrained word vectors supply that bias. The allocation of words is learned alongside the entity spaces, so a facet can take shape as the experts learn to fit the descriptions.
The method, step by step
From descriptions to expert spaces
The input is a bag of words for each entity. A bag of words records which terms appear and how frequently they occur while discarding their original order. A film gets a bag compiled from descriptions associated with it. A geographic location can get a bag built from the tags on nearby photographs. Together, the bags form a matrix in which rows correspond to entities, columns correspond to words, and entries are counts. The same vocabulary column can be examined across every entity that uses the word.
Begin with an ordinary GloVe-style fit to this matrix. The fit learns a vector for each entity and another for each word. An entity vector and a word vector are multiplied using a dot product, which pairs their coordinates and adds the resulting products. With an offset for the entity and another for the word, the score is supposed to approximate the logarithm of the word’s count in that entity’s description. A good fit for a word means that the scores track its observed counts across the entities in which it occurs. Its prediction errors can be added up separately from the errors for other words.
MoEGloVe uses several such fits. Each expert keeps its own entity vectors, word vectors, and offsets. This makes it possible to use the same film in a production-related comparison and a genre-related comparison. The experts share the collection of descriptions, but a particular word can matter much more to the training of one expert than to the training of another. Each expert’s entity coordinates are learned under the influence of the vocabulary emphasized in its loss.
The gate controls that emphasis. For each vocabulary word, it looks at a pretrained word vector and outputs a probability for each expert. These probabilities depend on the word alone. Every occurrence of a given word contributes to a given expert with the same gate weight. The frequency of the word can still differ from entity to entity, and each expert can make a different count prediction for each entity. What stays shared is the allocation of the word as a vocabulary item.
The two parts learn from one another. An expert that predicts the counts of a set of words well provides evidence about which words can be handled together. The gate learns from those patterns of fit and uses its input vectors to make related assignments across the vocabulary. Once the gate is updated, its probabilities influence which predictions the experts are asked to improve. The description of the algorithm alternates between these jobs.
Learning facet spaces from entity descriptions
The steps in order.
The GloVe objective and the fit of a word
The paper expresses the baseline objective as a sum of word-specific losses. The decomposition is important because it gives the authors a quantity they can use to compare an expert’s performance on a particular word.
G = ∑ⱼ₌₁ᵐ Gⱼ
Here G is the full GloVe loss, Gⱼ is the part attributable to vocabulary word j, and m is the number of words in the vocabulary. The summation ranges over the entire vocabulary.
Gⱼ = ∑ᵢ:ₓᵢⱼ₍₊₎ f(xᵢⱼ) (eᵢ · w̃ⱼ + bᵢ + b̃ⱼ − log xᵢⱼ)²
In the sum, the marker ₍₊₎ means that xᵢⱼ is positive. The index i selects an entity, and j selects a word. The count xᵢⱼ gives the number of times word j occurs in the bag for entity i. The vector eᵢ represents that entity, and w̃ⱼ is the word vector learned in this fit. The centered dot denotes the dot product. The entity bias bᵢ and word bias b̃ⱼ are scalar offsets. The function log takes the logarithm of the observed count, so the expression in parentheses is a prediction error on the logarithmic scale. Squaring it makes errors in either direction contribute positively. The function f weights each squared error using its count.
f(xᵢⱼ) = (xᵢⱼ)⁰·⁷⁵
Here f is the count-weighting function, xᵢⱼ is the observed entity–word count, and the superscript denotes the exponent 0.75. The paper gives this weighting as a way to reduce the influence of rare words. The expert losses used in the alternating procedure omit this frequency-based factor.
There are two useful distinctions in these expressions. The word vector w̃ⱼ is learned from the entity descriptions and participates directly in the count prediction. The pretrained vector used by the gate comes from a separate embedding and provides information about the word before the count regression assigns it a role. Also, Gⱼ concerns a whole word column. For the displayed objective, a low error means that the dot products and biases fit the observed entries for that word. A low error on its own does not say which absent words the representation could have ruled out.
The authors report that words with small loss terms often describe meaningful properties. This observation motivates both their training procedure and a later classifier experiment. In training, fit provides evidence for how the gate should distribute a word across experts. In evaluation, the learned direction for a well-fitted word can serve as a feature. The first use asks where a word is predictable. The second asks whether the direction associated with that word can help identify a labeled property of an entity.
The probabilistic picture
The authors motivate the mixture by appealing to the connection between least squares and Gaussian likelihood. If an observation has Gaussian noise around a predicted mean with fixed variance, a larger squared residual gives the observation lower density. The article’s displayed likelihood uses xᵢⱼ in the observation slot. Its regression losses use log xᵢⱼ as the target. The likelihood below retains the paper’s notation, while the subsequent fitting equations show the scale on which the residuals are actually defined.
L(X) = ∏ᵢ,ⱼ G(xᵢⱼ | eᵢ · w̃ⱼ + bᵢ + b̃ⱼ, σ²)
Here X is the count matrix and L(X) is its likelihood in the paper’s notation. The product ∏ᵢ,ⱼ runs over the indexed entity–word entries in the likelihood expression. The symbol G in this expression is a Gaussian density. The vertical bar separates its observation xᵢⱼ from the mean and variance that parameterize the density. The mean uses the entity vector eᵢ, word vector w̃ⱼ, entity bias bᵢ, and word bias b̃ⱼ, with the dot denoting the vector dot product. The variance σ² is fixed and strictly positive.
With several experts, the expression inside the product becomes a weighted sum of densities. Each expert can favor a different count prediction, and the gate determines how much weight its density receives for each word.
L(X) = ∏ᵢ,ⱼ ∑ₖ₌₁ᴷ g(k,j) G(xᵢⱼ | eᵢᵏ · w̃ⱼᵏ + bᵢᵏ + b̃ⱼᵏ, σ²)
The product again uses the entity index i and word index j, with X denoting the count matrix and L denoting likelihood. The sum combines the contributions of the K experts, indexed by k. The gate weight g(k,j) is the probability it assigns to expert k for word j. The superscript k on eᵢᵏ, w̃ⱼᵏ, bᵢᵏ, and b̃ⱼᵏ identifies that expert’s entity vector, word vector, entity bias, and word bias. It is an index on these terms. The dot product and biases give that expert’s mean. The function G evaluates the Gaussian density at xᵢⱼ given the expert’s mean and the common variance σ².
This formulation lets a word contribute to several experts in different proportions. It also separates the gate’s role from that of the expert. The gate can judge that a word is relevant to an expert without estimating how often it will occur for a particular entity. The expert makes that latter prediction using its own entity vector and biases. The score for a film’s production-related word, for instance, can differ between films even when the gate sends the word to the same expert with the same strength.
How the gate uses a word vector
The gate is a multilayer perceptron, a neural network that transforms an input vector into a sequence of scores through learned layers. For each vocabulary item it produces a score for every expert. Softmax converts those scores to positive weights whose sum over the experts is one.
(yⱼ¹, …, yⱼᴷ) = φ(xⱼ)
Here φ is the gate’s multilayer perceptron, j identifies a vocabulary word, and xⱼ is its pretrained word vector. The vector xⱼ is distinct from the scalar count xᵢⱼ for an entity–word pair. The outputs yⱼ¹ through yⱼᴷ are the unnormalized scores for that word, with K giving the number of experts. The ellipsis stands for the intervening expert scores.
g(k,j) = exp(yⱼᵏ) / ∑ᵣ₌₁ᴷ exp(yⱼʳ)
The result g(k,j) is the gate probability for expert k and word j. The score yⱼᵏ is the output for that expert. The exponential function exp turns each real-valued score into a positive quantity. The denominator adds these quantities over expert index r up to K. This common denominator makes the values comparable across experts for the same word.
The word embedding acts as an inductive bias, a prior preference about the kinds of assignments the training procedure should learn. The same network processes all word vectors. This allows patterns learned for some words to influence the treatment of words with similar inputs. The assignments are learned from the experts’ errors, so the gate can use several regions of the input word space for the same expert. There is no step that picks a single cluster and declares it a facet. Similarly, the equations impose no rule that all words assigned to an expert must be close together or that neighboring words must always receive the same assignment.
Alternating between assignment and fitting
The paper calls the training schedule expectation maximization, or EM. It first computes a soft distribution over experts for each word from the current errors. It then updates the gate to predict those distributions and trains the experts with the gate’s probabilities as weights. The distinction between the error-derived distribution and the gate output matters because the two quantities play different roles in the update.
The first quantity needed is the total squared error for a word in an expert. That total uses the entities with a positive observed count for the word.
ε(k,j) = ∑ᵢ:ₓᵢⱼ₍₊₎ (eᵢᵏ · w̃ⱼᵏ + bᵢᵏ + b̃ⱼᵏ − log xᵢⱼ)²
The symbol ε(k,j) is the error of expert k on word j across the observed entries for that word. The index i runs over entities, and ₍₊₎ restricts the sum to positive xᵢⱼ, where xᵢⱼ is the word count for that pair. The entity and word vectors for expert k are eᵢᵏ and w̃ⱼᵏ. Their dot product and the biases bᵢᵏ and b̃ⱼᵏ predict the target log xᵢⱼ. Squaring the residual gives the contribution summed for that entity. All the experts are compared on the same set of observed entries for a given word.
S(k,j) = exp(−ε(k,j)) / ∑ᵣ₌₁ᴷ exp(−ε(r,j))
Here S(k,j) is the soft target for expert k and word j. A smaller error ε(k,j) gives a larger value after applying the exponential to its negative. The denominator sums the corresponding values for all K experts, using r as the expert index. It normalizes the result into a distribution over experts for that word. This is a normalization of the word-level errors. The gate’s previous probabilities are absent from the stated target equation.
A useful way to read the targets is to ask whether the current experts differ in their ability to fit a word. If several fit it comparably well, several can receive substantial target weight. When one fits it much better, the target can strongly favor that expert. The target is relative to the other experts on the same word. A favored expert can still make sizable errors, and a word with sizable residuals everywhere still receives a distribution over experts.
The gate update minimizes cross-entropy. This loss penalizes the gate when it gives little probability to an expert that the error-derived distribution favors.
E_gate = −∑ⱼ₌₁ᵐ ∑ₖ₌₁ᴷ S(k,j) ln g(k,j)
Here E_gate is the loss used to train the gate, m is the number of vocabulary words, and K is the number of experts. The sums cover the word index j and expert index k. The target probability is S(k,j) and the predicted probability is g(k,j). The notation ln denotes the natural logarithm. The minus sign turns the weighted log probabilities into a loss to minimize. The gate learns to predict the targets from the pretrained embeddings of the words.
The expert update uses the gate’s predictions. Every observed count for a word is weighted by the probability that the gate assigns to the expert being trained.
G(k) = ∑ⱼ₌₁ᵐ ∑ᵢ:ₓᵢⱼ₍₊₎ g(k,j) (eᵢᵏ · w̃ⱼᵏ + bᵢᵏ + b̃ⱼᵏ − log xᵢⱼ)²
The expression G(k) is the training loss for expert k. The outer sum ranges over the m vocabulary words and the inner sum over entities i with a positive count xᵢⱼ for word j, marked by ₍₊₎. The factor g(k,j) is the gate’s probability for this word and expert. Within parentheses, eᵢᵏ and w̃ⱼᵏ are the expert’s entity and word vectors, the dot is their dot product, and bᵢᵏ and b̃ⱼᵏ are the corresponding biases. Their score is compared with log xᵢⱼ, and the residual is squared. The term g(k,j) transfers the gate’s allocation into the expert’s regression problem.
Using g here gives the gate an active role in shaping what the experts learn. If the gate generalizes a pattern across several related words, all those words can gain influence on the next fit of the expert. In the following iteration, the errors reflect the updated entity and word vectors. A shared assignment can thus emerge through repeated feedback between count prediction and word-vector-based routing. The training loss contains no separate label indicating that a particular expert should become the film-genre expert or that another should learn coastal similarity.
Initialization and training settings
The initial parameters come from ordinary GloVe training. Later cycles start from the parameters carried over from the preceding cycle. In their experiments, the authors found that five EM iterations were enough for the experts to converge, so they ran five. In every iteration, the gate undergoes 20 epochs of training and the experts undergo 10. An epoch is a pass through the training data. The optimization uses AdagradOptimizer, a learning rate of 0.05, and mini-batches of size 1000.
The gate receives a 50-dimensional GloVe vector for each word, pretrained on English Wikipedia. This is a separate dimensionality from the budget for representing entities. In the experiments the combined entity-vector dimensionality across experts is 100. The candidate numbers of experts are given by the set {4, 5, 10}, with the choice made on tuning data. When there are 4 experts, each entity has a 25-dimensional vector in each of the expert spaces. The main GloVe baseline places the same 100 entity coordinates in one space.
The Wikipedia bags are particularly sparse, meaning that much of the vocabulary is absent from a given entity’s bag. For that dataset, the authors use a GloVe variant with negative samples, following earlier work. The principal regression equations describe the observed positive entries. The paper reports the use of negative sampling for Wikipedia without spelling out a separate full objective for it. The authors make the implementation available in the code repository named MoEGloVe.
Experiments and results
What the entity descriptions and labels contain
The experiments evaluate whether the embeddings support prediction of properties that have independent labels. The text descriptions supply the input to embedding learning. Labels are used to train and evaluate classifiers and to tune the experimental choices. This distinction is essential to interpreting the unsupervised claim. The gate does not train directly on genre or land-cover labels. The reported F1 scores come from supervised tasks that use the vectors learned from descriptions.
The Movies dataset starts from words drawn from reviews. It has classification tasks for plot keywords, genre, and age ratings. The paper lists 100 plot-keyword classes, 23 genre classes, and 6 age-rating classes. These labels ask for different information about the same films. In particular, predicting genre is a different use of the embedding from predicting detailed plot keywords. The availability of genre labels also makes it possible to discuss the nearest-neighbor examples in terms more concrete than visual proximity in a plot.
The Place types dataset describes types of place using Flickr tags. Its evaluations draw on categories from Foursquare, Geonames, and OpenCYC, with 9, 7, and 20 classes respectively. All of those tasks use the same learned entity representations. The Buildings dataset gets its descriptions from Wikipedia articles and evaluates prediction of country and administrative location. Each building task has 2 classes. Together these smaller collections allow comparison with the previous facet-decomposition techniques.
The Locations dataset concerns geographic locations across the UK. The text for a location comes from Flickr tags assigned to photographs taken nearby. Tags can contain concatenated words, so the authors apply Wordninja to split them using unigram frequencies from English Wikipedia. This is a tokenization step, converting a tag into component terms that can be counted. They remove stop words, which are common terms excluded from the vocabulary, and discard words without a pretrained vector for the gate. They use NLTK for stop-word removal.
The Locations labels come from CORINE land cover. The categories have different levels of detail. Level 1 has 5 classes, level 2 has 15 classes, and level 3 has 44 classes. This gives the same description source and entity collection several prediction tasks. It is possible for an embedding to expose the distinctions in a broad land-cover category while leaving many confusions within its more specific categories.
The Wikipedia collection comes from the 100,000 concepts with the longest articles in English Wikipedia. The paper says this selection roughly corresponds to articles with more than 200 words after stop-word removal and exclusion of terms occurring less than 10 times in the collection. One task predicts semantic type from Wikidata. The authors retain 13 types with at least 2000 instances each. This task asks whether the learned representation supports a broad distinction among kinds of entities.
The authors also take nine Wikidata attributes with sufficient labeled instances. For film entities, the tasks are language, color, and country. For music entities, they are country and genre. For businesses the attributes are country and legal form, and for people they are gender and country of citizenship. An attribute task can concern only a subset of the entity collection. The ability to distinguish movie language and the ability to identify a business’s legal form therefore test different uses of the same embedding scheme.
Splits, comparisons, and classifiers
For Buildings and Place types, the authors use 2/3 of the labeled examples for training and 1/3 for testing, preserving the splits in their earlier work. They use 3-fold cross-validation within the training portion to tune their choices. The remaining datasets use 60% of their labeled examples for training and 20% each for tuning and testing. The Movies split also follows the earlier study. The headline comparisons below refer to test classification scores under those arrangements.
Ordinary GloVe is the main comparison. The authors chose it because earlier experiments on entity embeddings had found it competitive with other approaches. It has the same 100-dimensional budget for entity vectors as the combined expert representation. Two other baselines, IncAggGloVe and IncHDBGloVe, apply the earlier decomposition approach to a single GloVe embedding. The former uses agglomerative hierarchical clustering in the word-grouping stage and the latter uses HDBSCAN. These comparisons ask whether learning the facets directly does better than obtaining them by splitting up an existing GloVe representation.
Neither incremental baseline could be run at the scale of the Locations and Wikipedia experiments, even with GloVe as its starting point. The comparisons there are with the single GloVe space. The appendix gives MDS-based results on the smaller collections and makes it possible to look separately at decomposition with the starting representation originally used for it. The authors also tried variational approaches, including the Neural Variational Document Model, and report that they obtained no competitive results with them. They provide no score series for those trials.
The evaluation uses several ways of turning entity vectors into predictions. One is a linear support-vector machine, or SVM, which learns a linear decision boundary. In the facet-based setting, each space gets its own classifier. Logistic regression then learns to combine their predictions. The single-space GloVe baseline uses one SVM trained on its whole vector. The composite classifier can use labeled examples to learn which facets to trust for a category. The test score reflects both the facet representations and that way of combining their evidence.
The nearest-neighbor variant, abbreviated KNN, also obtains predictions from each space and combines them. A nearest-neighbor classifier uses labels attached to nearby training examples. The number of neighbors is chosen on tuning data from the set {1, 3, 5}. This classifier gives a different view of the same geometry. The SVM asks whether a boundary can be learned in the feature space. KNN asks whether the local neighborhoods are useful for passing category information to nearby entities.
The Gaussian classifier estimates a Gaussian distribution within each facet space with a diagonal covariance matrix. A diagonal covariance gives each coordinate its own variance without estimating covariance terms between different coordinates. The classifier adds the log probabilities provided by the spaces and predicts a positive example when the total clears a threshold estimated by maximum likelihood. This method needs no separate logistic combiner. The authors’ intuition is that a facet with high variance for a category provides relatively weak evidence about where a positive example should lie.
The decision trees test a more restricted question about the representations. The authors choose words with the lowest regression error for an expert. Each selected word becomes a linear feature obtained by taking the dot product of the entity vector and that expert’s word vector. A tree can split on those features. For GloVe the authors choose 2000 words from the single space. For the facet methods they select 200 words from each space. The reported trees have depths 1 and 3, so they can base a prediction on only a limited sequence of feature tests. Good performance suggests that a property is accessible through a few prominent learned directions.
The tables report F1, which combines precision and recall. The more informative comparisons hold the label task and the classifier family fixed. Such a comparison says how well each representation supports the same kind of prediction on the same split. The paper describes the reported values as F1 and does not specify an averaging convention in the results discussion. The numbers are presented on the F1 scale used in its tables.
The smaller collections
For Foursquare category prediction on Place types, the nearest-neighbor comparison gives an example of how the particular way of obtaining facets matters. The MoEGloVe representation has the strongest test F1 in this comparison. The single GloVe space performs better than either of its incrementally decomposed variants.
Nearest-neighbor test F1 for Foursquare categories on Place types
MoEGloVe leads the comparison, and both incremental decompositions trail single-space GloVe.
The numbers
| System or setting | F1 |
|---|---|
| GloVe | 0.70 |
| IncHDBGloVe | 0.58 |
| IncAggGloVe | 0.68 |
| MoEGloVe (this paper) | 0.73 |
On Place types with the SVM evaluation, MoEGloVe reaches 0.76 test F1 on Foursquare categories and GloVe reaches 0.75. The corresponding Geonames scores are 0.45 and 0.39, and the OpenCYC scores are 0.40 and 0.37. The gain is thus visible across these labels while its size varies with the task. There is an exception to MoEGloVe’s lead over the incremental GloVe baselines. For the Gaussian classifier on OpenCYC categories, IncHDBGloVe scores 0.50 and MoEGloVe scores 0.49 on the test set.
On Movies, the nearest-neighbor comparison for genre is particularly favorable to the learned expert spaces. Test F1 is 0.47 with MoEGloVe, 0.23 with GloVe, 0.33 with IncHDBGloVe, and 0.32 with IncAggGloVe. Genre scores with the SVM are more tightly grouped. In that setting MoEGloVe and the single-space baseline both record 0.47 test F1. These results describe the same attribute of the same collection under different ways of reading the representation. They give a reason to ask which aspect of the geometry each classifier can exploit.
For the Movies age-rating task, GloVe and MoEGloVe score 0.30 and 0.48 with the nearest-neighbor classifier, and 0.33 and 0.47 with the SVM. On plot keywords, the corresponding test scores are 0.13 and 0.27 for nearest neighbors and 0.17 and 0.26 for the SVM. The scores for plot keywords and genre make clear that learning a space useful for film similarity does not make the various film properties equally predictable. The results pertain to the labeled categories, the available descriptions, and the classification procedure together.
Buildings presents a less uniform ordering. In country prediction, the SVM scores 0.64 for GloVe and 0.68 for MoEGloVe. For administrative location the same classifiers score 0.45 and 0.55. With the depth-1 tree on country, however, IncAggGloVe scores 0.52 compared with 0.48 for MoEGloVe. For administrative location with the Gaussian classifier, each method in the main comparison scores 0.56. The advantage of joint facet learning on Buildings is visible under particular ways of predicting the labels, with both ties and stronger baselines elsewhere in the table.
The larger collections
Wikipedia semantic type gives a useful view across the classifier families. The GloVe and MoEGloVe SVM test scores are 0.49 and 0.61. With KNN they are 0.49 and 0.60. With the Gaussian classifier they are 0.51 and 0.57. The depth-3 decision tree scores 0.23 and 0.28, while the depth-1 tree scores 0.19 and 0.23. The direction of the comparison is consistent across these readings of the entity vectors. The shallower feature tests yield lower scores than the more flexible classifiers on this task.
The attribute-level results show where that pattern changes. For Wikipedia film language, nearest-neighbor test F1 is 0.33 with GloVe and 0.50 with MoEGloVe. For film color, the same comparison gives 0.56 with GloVe and 0.55 with MoEGloVe. An SVM on film color gives 0.48 and 0.51 respectively. With the depth-1 tree, the comparison on music genre gives 0.09 for GloVe and 0.08 for MoEGloVe. The depth-3 tree reports 0.10 for each on that task. A gain on the broad semantic-type task consequently cannot serve as a proxy for gains on every individual attribute.
Some of the Wikipedia SVM results concern labels for particular subsets. On the music-country task, GloVe scores 0.17 and MoEGloVe scores 0.27. For the human gender attribute the figures are 0.44 and 0.66, and for human country of citizenship they are 0.47 and 0.64. These are test F1 scores for predicting the corresponding Wikidata labels. The experiments do not identify which words account for these particular gains or require that an individual facet bear the name of the attribute it helps predict.
In Locations, the finest land-cover classification is one of the clearest examples of why the score level and its comparison both matter. The facet representation makes the SVM more effective than it is with the single space. The test score is still low on that task.
SVM test F1 for CORINE level 3 land cover on Locations
The facet representation gives the SVM a higher score on the finest land-cover task.
The numbers
| System or setting | F1 |
|---|---|
| GloVe | 0.01 |
| MoEGloVe (this paper) | 0.06 |
The nearest-neighbor classifier gives the strongest MoEGloVe scores among the tested classifier families at each CORINE level. On level 1 its test F1 is 0.39, compared with 0.29 for GloVe. On level 2 the scores are 0.24 and 0.21. On level 3 they are 0.21 and 0.17. This comparison shows the gain at fixed classifier family and also the decline in scores at finer levels of detail. With the Gaussian classifier the MoEGloVe scores are 0.33 at level 1, 0.17 at level 2, and 0.14 at level 3. The corresponding GloVe figures are 0.30, 0.11, and 0.10.
Across the experiments, the depth-1 and depth-3 trees generally give lower scores than the other classifiers. The Locations results qualify that observation. With MoEGloVe at level 1 the depth-3 tree scores 0.31, the same as the depth-1 tree and close to the Gaussian classifier’s 0.33. On level 3, the MoEGloVe depth-3 tree scores 0.07, compared with the SVM’s 0.06 and KNN’s 0.21. The apparent strength of simple linear features therefore depends partly on which other classifier provides the point of comparison.
What the ablations show
The paper offers no systematic component ablation of MoEGloVe. Its evidence about why the method helps comes from comparisons with a single space and with decomposed spaces, an appendix that changes the starting representation for the decomposition, and inspections of vocabulary, feature directions, and neighbors. The authors also report some training choices they tried without giving a full score comparison for them.
Joint learning and decomposition
The comparison with single-space GloVe controls the total number of entity coordinates. The facet method can improve a classification score without giving the final classifier a larger entity vector. The comparison changes several other things at once. The experts have their own word vectors and biases, the gate varies the weight of words across experts, and the downstream classifiers can combine facet-level predictions. It supports a claim about the whole representation and evaluation arrangement. It does not establish an isolated effect size for the gate or show that dividing the coordinates, on its own, would yield the observed gains.
The incremental comparisons add evidence about how the spaces are obtained. Because IncAggGloVe and IncHDBGloVe both begin with a single GloVe embedding, they test forms of facet extraction that depend on the structure of that embedding. Some of their scores fall below the unsplit baseline, as the Foursquare nearest-neighbor comparison shows. Jointly learning the expert spaces is more effective in many of these settings. The result is particularly relevant to the authors’ concern that a facet may be difficult to recover from a space already optimized for a broader notion of resemblance.
The MDS comparisons make it possible to see where this concern needs qualification. The appendix restores the original kind of base space for the earlier decomposition methods. For Movies, the authors relearn MDS using only vocabulary with pretrained word vectors to make the comparison fairer. On the Gaussian evaluation of Foursquare categories in Place types, the MDS baseline has 0.81 test F1. Incremental agglomerative decomposition of MDS reaches 0.87 and the HDBSCAN variant reaches 0.84. MoEGloVe scores 0.74 in the same test. Here the base space is strong, and both decompositions improve on it.
For the SVM on those same Foursquare categories, the order differs. The MDS baseline has 0.65 test F1, its incremental agglomerative version reaches 0.73, and MoEGloVe reaches 0.76. On Movies genre with KNN, both incremental MDS variants reach 0.52, while MDS reaches 0.50 and MoEGloVe reaches 0.47. On Buildings country with the SVM, MoEGloVe reaches 0.68, compared with 0.52 for the agglomerative MDS decomposition and 0.51 for the HDBSCAN decomposition. The appendix supports the claim that the starting space matters to incremental decomposition. It also documents cases in which the older approach remains stronger on the smaller datasets.
The authors report two preliminary choices more briefly. They tried including the entity in the gate’s input, which would let the assignment of a word depend on the entity it describes. They did not obtain better results with that approach. They also found the ordinary GloVe frequency weighting unhelpful for the expert losses and omitted it. Neither observation is accompanied by test scores across the datasets or a breakdown by class or classifier. They explain choices in the final architecture and leave the magnitude and conditions of the effects unresolved.
What the shallow trees reveal
The shallow trees are a test of whether prominent linear directions describe the labels. A tree with a tight depth limit needs features whose values make useful distinctions quickly. The candidate directions come from words chosen for low reconstruction error. If a few such directions suffice, strong classification performance can arise from properties that the embedding already expresses prominently and that can be examined through the associated words.
The difference between land cover and Foursquare categories is the authors’ main example. On the broadest land-cover task, the depth-1 tree using MoEGloVe has test F1 of 0.31 and the corresponding SVM has 0.30. On Foursquare categories, the MoEGloVe depth-1 tree scores 0.45 while the SVM scores 0.76. The paper interprets this pattern as evidence that dominant directions capture land-cover properties more readily than they capture the Foursquare distinctions. For the latter categories, useful information may be accessible to a classifier that can exploit a wider combination of features.
This is a test of a candidate feature pool as well as a test of the entity space. Word directions enter the pool because the count regression models them well, irrespective of their class relevance. The single space and the facet spaces also use different rules for how many words to select from each space. Consequently, the tree results indicate how labels align with the well-fitted directions available under the paper’s selection procedure. They leave open what another feature-selection rule or a deeper tree would find.
How words and neighbors change
The film examples compare nearest neighbors in ordinary GloVe with neighbors in an expert space the authors associate with genre. For Troy, both lists include Alexander and Kingdom of Heaven. The genre space also returns films such as King Arthur and Lawrence of Arabia, while the full-space list includes Pig, labeled as horror. For Iron Man, Hulk appears in both views. The genre-space list includes Aliens and Star Trek Nemesis, while the full-space list includes Ali. The accompanying genre labels give a reader a way to judge how the search changed.
The lists also show that genre is itself a broad notion. For The Sound of Music, the facet list includes Singin in the Rain and Willy Wonka and the Chocolate Factory. It also includes Casablanca, which shares drama and romance in the table’s labels. Individual neighbors can agree with the target on different parts of its genre description. These examples illustrate a shift in which resemblances recur throughout the list. The paper does not turn the selected cases into a collection-wide genre retrieval score.
The authors also inspect words by assigning them to whichever expert receives their highest gate probability. In Movies, words such as soundtrack, graphics, and cinematography appear in a group concerned with production. The authors associate another expert with genre, with words such as drama, comedy, and thriller alongside vocabulary for characters and family. They connect a third group to historical films based on terms related to periods, manuscripts, and literature. These word lists help explain the human labels applied to the spaces. They also show the breadth of the groups, which can contain several sorts of evidence for a facet.
For Wikipedia, groups revolve around topics such as companies, music, and politics. Terms like manufacturers and software appear in one group, while album and song occur in another. The political group includes language associated with opposition, regimes, and ethnic groups. For Place types, the word lists are also described as largely thematic. One combines terms for destinations, buildings, and dining, and another contains vehicle names alongside music vocabulary. The inspection makes the thematic regularities visible while also giving examples of assignments whose interpretation is less tidy.
The geographic visualization checks the spaces in a different way. The query location is in Liverpool. Other urban areas, such as London, Southampton, and Newcastle, resemble the query in one of the expert spaces. In another, coastal areas across the UK become prominent. The standard GloVe space shows the coastal pattern less clearly. This example makes the original motivation concrete. The same target has plausible neighbors under both urban and coastal comparisons, and choosing a facet changes which comparison guides the search. The authors present the map as an illustration of the learned geometry. The land-cover classifiers provide separate evidence about whether those representations help predict labels.
Limitations
Limits the authors identify
The authors restrict their study to bags of words. The count matrix has no word order, and a word receives the same gate weights wherever it occurs. The authors point out that a gate conditioned on the entity could in principle help decide whether an entity has a meaningful representation in a given facet. Their preliminary implementation did not improve the results. They suggest investigating related ideas with document embeddings based on BERT as future work.
The authors frame their scalability claim in terms of the approaches they compare. The previous MDS procedure requires quadratic space, and the incremental methods failed to scale to Locations and Wikipedia even when supplied with a GloVe embedding. MoEGloVe is evaluated on both collections. The paper presents the combination of unsupervised embedding learning and this ability to handle larger collections as a contribution, while qualifying the priority claim as being to the best of the authors’ knowledge.
The experiments also show limits of the strongest aggregate reading of the results. The main tables contain individual ties and losses for MoEGloVe. The appendix includes favorable comparisons for the earlier MDS-based methods. The shallow-tree discussion identifies categories whose useful distinctions are difficult to express through the most prominent word directions. These findings restrict the comparison to the particular task, dataset, classifier, and starting representation in each result.
Limits visible in the setup
The evaluation tests how fixed representations support classifiers of known attributes. Concept induction from a few examples motivates the method, but the paper does not report a separate experiment that takes a small set of seed entities, selects a facet for the set, and measures the recovery of further members. The logistic combiner can learn how to use facets from labeled examples, and the nearest-neighbor cases show how existing facets alter retrieval. An application that needs to choose a facet for a new request without such labels would need its own evidence about the reliability of that choice.
Equal entity dimensionality makes the GloVe comparison informative while leaving other capacities unmatched. The expert architecture maintains separate word-side parameters, uses a pretrained word representation in the gate, and fits several regressions in an alternating procedure. Some downstream evaluations also add a learned combination stage for the facets. The paper provides no matched comparison that holds all those choices fixed while varying only semantic routing. A gain at the same entity-vector size can therefore be attributed to the complete approach, with the contribution of each component still uncertain.
The gate’s decisions concern word types. A word that serves different purposes in different descriptions shares a single distribution over experts across those uses. Soft probabilities let the word support several spaces, yet each description receives the same allocation for that word. The descriptions themselves can distinguish entities through the other words they contain and their frequencies. The method does not explicitly track which sense or relation a particular occurrence contributes. This boundary matters for interpreting any claim that the system separates word meanings.
The qualitative analyses do not show that facets are independent, exhaustive, or stable under a fresh run. The examples are selected words, selected films, and a visualization around a target location. They make some facets intelligible and some boundaries visibly mixed. There is no gold inventory of facets against which to compare the assignments, and the paper supplies no systematic assessment of how often readers would agree on their names. The setup yields useful geometries even in cases where a simple human name for a space is difficult to find.
The scale of the experiments also puts a boundary on computational conclusions. The authors show that their procedure can be run on collections for which the older incremental methods were unsuccessful. They do not give a runtime or memory curve that would identify how much larger a collection can become under the same conditions. Likewise, the tables report point scores, with no run-to-run variation or uncertainty intervals. Small differences are observed rankings within the reported splits. Their stability under changes in initialization or sampling remains open.
Finally, the embeddings are learned for the entity collections whose descriptions supply the count matrices. Each entity vector is one of the fitted parameters of the corresponding expert. Holding out labels for test classification assesses whether those fitted vectors support prediction on held-out labeled examples. It does not on its own establish performance on entities absent during embedding training. The paper learns from several kinds of description, but its filtering of tags and reliance on English Wikipedia word vectors also delimit the evidence about portability to other vocabularies or languages.
What came after
There are no documented follow-up studies to trace here. The direction the authors identify is to carry facet learning beyond word counts into document representations learned with BERT. In MoEGloVe, a word’s count-prediction error gives a direct way to compare experts and to train the gate. Extending the idea to document embeddings would require a corresponding way to tell which parts of a description an expert captures. The paper leaves that extension as a research question.
Cite
Cite as Rana Alshaikh, Zied Bouraoui, Shelan Jeawak and Steven Schockaert. 2020. A Mixture-of-Experts Model for Learning Multi-Facet Entity Embeddings. Proceedings of the 28th International Conference on Computational Linguistics.
@inproceedings{alshaikh2020mixture,
title = {{A Mixture-of-Experts Model for Learning Multi-Facet Entity Embeddings}},
author = {Rana Alshaikh, Zied Bouraoui, Shelan Jeawak and Steven Schockaert},
booktitle = {Proceedings of the 28th International Conference on Computational Linguistics},
year = {2020},
doi = {10.18653/v1/2020.coling-main.449},
url = {https://doi.org/10.18653/v1/2020.coling-main.449}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/alshaikh-2020-mixture-experts-model-learning-multi/