Aligning Knowledge and Text Embeddings by Entity Descriptions
Paper · 2015 · Huaping Zhong, Jianwen Zhang, Zhen Wang et al.
Summary
A database can record who or what an entity is related to, while a description explains what the entity is in ordinary language. These sources can be useful together, but their representations have to agree before a system can compare a database entity with a phrase in a document. Huaping Zhong and colleagues address that problem by learning numerical representations of entities, relations, and words in a shared space. A description gives a knowledge graph entity a connection to the language used to describe it, even when its name is ambiguous or the graph records few facts about it.
The authors build on an earlier system that aligned the two sources through Wikipedia links. A linked phrase tells that system which entity appears in a passage, so it can learn from the words around the mention. Zhong and colleagues use a different pairing. They take a description already associated with an entity and train that entity and the description’s words to predict each other. The entity keeps the same vector when it participates in a database fact. Ordinary word co-occurrence still contributes to training, so a word’s vector reflects both the contexts it appears in and the entities whose descriptions use it. These are the paper’s word embeddings.
On FB15K link prediction, description alignment puts the held-out entity in the top 10 in 77.3% of cases under filtered evaluation, compared with 72.0% for anchor alignment and 47.1% for TransE. It also attains 80.9% overall accuracy on a separate triplet classification benchmark, where an endpoint can be a database entity or an ordinary word or phrase. Anchor alignment reaches 79.9%, and separate training reaches 73.6%. In text-based fact extraction, the description system has a slight edge over anchor alignment when each is combined with either of the paper’s base extractors, on the test items whose components all have learned vectors.
The word analogy results show where the choice of evaluation matters. Anchor alignment has a small lead on first-choice accuracy for single-word analogies, while description alignment leads on their top-10 measure. The description system’s largest advantage appears in analogies involving phrases, where it reaches 49.0% first-choice accuracy against 26.2% for anchor alignment. The experiments establish that description-based alignment can compete with a link-based approach on several tasks in the authors’ Freebase and Wikipedia setting. They leave open how much the method helps entities with sparse graph records and how it fares with descriptions from other sources.
Deep dive: Aligning Knowledge and Text Embeddings by Entity Descriptions
Entity descriptions connect knowledge graphs with word embeddings, helping rank missing facts, judge candidate triples, and answer phrase analogies. · about 36 minutes to read
The problem and its context
When a fact has to meet a phrase
A structured knowledge base represents a fact through its participants and the relation between them. Each participant can have a database identifier, and the relation has a designated place in the record. A text corpus gives a different kind of evidence. A phrase can indicate the value of a relation even though the knowledge base has no entry for that phrase. The paper starts from the difficulty of making a numerical judgment in that situation. An approach whose vocabulary ends at the database boundary has no learned entity vector to retrieve for that phrase. This matters when a system tries to assemble facts from text, one of the paper’s applications of information extraction.
The difficulty is separate from deciding whether a fact is plausible on the basis of graph structure. A graph can give a system reasons to favor some entities over others, because a candidate may appear in many other facts and its vector can reflect those connections. A phrase with no entity record can still occur frequently in text. Its evidence takes the form of nearby words, including words it shares with descriptions of known entities. To score a candidate with a database entity on one side and a phrase on the other, the authors need to use those two kinds of evidence in a single operation.
Embeddings make that operation possible when their coordinates have been learned together. An embedding gives an item a list of numerical coordinates. In a graph embedding, facts constrain the coordinates of entities and relations. In a text embedding, occurrences in context constrain the coordinates of words. Both can express useful regularities internally. If they are trained independently, however, a direction or distance that means something within one set of coordinates may have no corresponding interpretation in the other. The common dimensionality alone gives no reason to expect a graph entity and a phrase with related meanings to lie near each other.
A second concern in the paper is uneven coverage by the graph itself. Even when an entity has a database entry, the facts available for training may give little evidence about it. The authors’ proposal treats the description as an additional source of constraints on that same entity vector. The origin of the concern matters for interpreting the eventual experiments. A method can improve its average performance by making better use of text on well-documented entities, by helping sparsely connected entities, or through changes that affect both. A design that can draw on descriptions gives a plausible route to helping sparse entities. Establishing the size of that benefit requires results organized around graph coverage.
Graph translation and word context
The paper takes TransE as its starting point on the graph side. A relation acts like a displacement. Starting from the vector of a fact’s head entity, the system adds the relation vector and asks how close the result is to the tail entity’s vector. The same relation participates in many facts, so a displacement has to work across the examples in which that relation appears. The paper describes the simplicity of this operation as a reason for its use in subsequent knowledge embedding approaches. Its source is Bordes and colleagues’ TransE paper.
This view helps explain how graph embeddings can score a fact that was absent from training. The system can take the vectors learned from recorded facts and apply them to a fresh combination of entities and a relation. For instance, if the head and relation are known, it can check which candidate tail is closest to the translated head. This judgment depends on the geometry induced by the training facts. To bring phrases into this procedure, the paper needs phrase vectors to occupy positions that make sense under the same translations.
On the text side, the authors start from Skip-gram. The signal there comes from which words appear near one another within windows in the corpus. A word serves as the conditioning item, and a word observed nearby supplies the target. Many such pairs turn local observations into constraints on the vocabulary’s vectors. The paper points to analogical regularities as an example of what these vectors can express. It also observes that a useful word offset learned from text gives no explicit name to the relation it expresses. A database, by design, associates its facts with named relations. The text-learning approach is introduced in Efficient Estimation of Word Representations in Vector Space.
Graph translation and word-context prediction therefore contribute complementary structure to the method. One can train relation vectors from records where the relation is specified. The other can train vectors for items that occur in text even when the graph has no identifier for them. In principle, that lets a known relation be applied across endpoints drawn from both vocabularies. The missing ingredient is evidence that ties positions in the graph vocabulary to positions in the text vocabulary. Without such evidence, text co-occurrence can organize phrases well for text tasks and still leave them poorly placed for use with a relation learned from the graph.
The earlier ways to make the connection
The immediate predecessor already had the same broad division of labor. It had a graph component based on translation, a text component based on context prediction, and an alignment component that connected them. In the resulting space, comparisons such as the inner product of an entity vector and a word vector could carry information. Zhong and colleagues retain the first two components and change how the connection is learned. The earlier system is described in Knowledge Graph and Text Jointly Embedding.
One earlier alignment strategy used entity names. It made a version of the graph facts that used names in place of identifiers. An entity’s name could then participate in the same kinds of training examples as the identifier, encouraging the name phrase and the entity to have similar representations. That shortcut treats an entity’s label as evidence about the meaning of a text item. The potential conflict is ambiguity. A name in the vocabulary can have several readings in text, while the identifier refers to a particular database entry. The earlier authors had observed adverse effects on word embeddings when using names this way.
The other strategy used Wikipedia anchors. An anchor provides a phrase in a passage together with an entity that the passage links to. The earlier system could replace that occurrence of the phrase with its corresponding database entity and use the neighboring words to train the entity vector. This makes a particular use of the phrase informative. An ambiguous phrase can point to a specific referent at one occurrence, and the surrounding words become evidence for that referent. The pairing is therefore more specific than the association between a dictionary-like name string and every fact containing the entity.
The dependency lies in getting those identified mentions. In the earlier method, each anchor yields a connection between a corpus occurrence and an entity. A collection can have descriptions attached to database records without having links throughout its prose. The paper changes the source of supervision to suit that case. It uses the connection between the record and its description, then takes words in the description as evidence for the entity. This still requires correspondence between an entity and a piece of text. It changes where that correspondence has to be supplied and how much text it makes available to the alignment objective.
The method, step by step
Following an entity through training
Imagine starting with an entity that occurs in a recorded fact and also has a description. The recorded fact tells the training procedure which relation connects the entity to another endpoint. The description supplies many words associated with the entity. Meanwhile, the general corpus shows how those words are used around other words. Each observation places a different constraint on the vectors. The graph fact favors a good translation between its endpoints. A local text window favors a word that actually occurred in that context. An entity-description pair favors an observed word and the entity it describes.
The entity vector that enters those description comparisons is the one used in the graph facts. This shared parameter is how the description can affect a graph prediction. If updates from a description shift the entity’s vector, they also change the translations in which that entity participates. The word vector has a similar double role. Description training and local word-context training both update it. A word or phrase can thus acquire a position relative to known entities even when it has no database identifier of its own.
The comparison between a description word and an entity goes in both directions. In one direction, the entity serves as the cue and the training procedure favors words found in its description. In the other, a word from that description serves as the cue and the procedure favors the associated entity. A word can occur in the descriptions of many entities. Separate observations can then favor several word–entity pairings, with each training event drawing its meaning from the particular association supplied by the description.
The authors describe their goal as making the entity embedding agree with an embedding computed from the description. Their equations implement this through individual word comparisons. There is a learned vector for the entity, and the description’s contribution comes from adding the training terms for its words. The equations specify neither a word-order-sensitive document representation nor a separate document vector to be computed and substituted for the entity. This distinction helps explain how a whole description can supply evidence while the basic unit of the alignment calculation is a word paired with an entity.
Joint embedding with entity descriptions
The steps in order.
Representations and the combined objective
The input graph is a collection of facts written as triplets. The head and tail belong to the entity set E, and the relation belongs to the relation set R. The text vocabulary is V. Its entries can be words or phrases treated as single items for training. The paper uses I for the combined vocabulary, formed by taking the union of E and V. This is the vocabulary that lets the knowledge component consider a text item in the same endpoint position as a graph entity.
The description of entity e is Dₑ. When the authors need to refer to particular word occurrences, they use wᵢ,ₙ for the word at position n in the description of entity eᵢ. The number of words in that description is Nᵢ. The position identifies the observation for training. The alignment score itself uses the vectors of the word and the entity, with no separate input for that position. An entity without a description can receive updates from graph facts, whereas an entity with a description contributes the corresponding alignment observations as well.
The paper’s combined loss is an unweighted sum of the component losses as written. Training minimizes that sum over the learnable vectors.
L({eᵢ}, {rⱼ}, {wₗ}) = L_K + L_T + L_A
L is the total loss. The braces collect the entity vectors eᵢ, relation vectors rⱼ, and word vectors wₗ, indexed by i, j, and l respectively. L_K is the loss on graph facts, L_T is the loss on text windows, and L_A is the loss on entity descriptions. The plus signs indicate that the components contribute to the same training objective. The graph and text terms follow the earlier joint embedding framework. The description term is the part introduced by this paper.
The key distinction is between sharing an objective and sharing a parameter. Merely adding the losses of independent graph and text systems would leave each set of vectors free to organize itself. The description comparisons explicitly use both kinds of vector in one score. Furthermore, the endpoint vocabulary in the graph normalization includes words as well as entities. As specified by the equations, graph probabilities, text probabilities, and alignment probabilities contribute constraints to an interacting set of representations.
Learning the translations in the graph
The knowledge component assigns a score to a candidate triplet using the distance between a translated head and the tail. In the formulas that follow, an item name also denotes its vector when it appears in a distance or vector operation.
z(h, r, t) = b − 0.5 · ‖h + r − t‖₂²
Here z is the triplet score, h and t are the head and tail vectors, and r is the relation vector. Adding r to h gives the translated head, and subtracting t gives its residual displacement from the tail. The expression ‖·‖₂² is the squared Euclidean norm of that displacement. The factor 0.5 scales the distance penalty, and b is the constant offset set to 7 in the graph component, following the earlier work. A smaller residual gives the triplet a higher score.
The authors turn scores into conditional probabilities. To predict a head, the relation and tail stay fixed, and the score for a given head is normalized against the scores from the candidate head vocabulary.
Pr(h | r, t) = exp(z(h, r, t)) / Σ_{h̃ ∈ I} exp(z(h̃, r, t))
Pr is a conditional probability, with the items to the right of the vertical bar held fixed. The numerator uses the graph score z for head h, relation r, and tail t. The function exp exponentiates the score. In the denominator, Σ sums the exponentiated scores for candidate heads h̃, and ∈ indicates that each candidate belongs to I, the union of the entity and text vocabularies. The division expresses the selected head’s share of the normalized scores. The paper defines tail prediction by holding the head and relation fixed and varying the tail. Relation prediction holds the endpoints fixed and compares candidate relations.
Each observed graph fact supplies all of these prediction problems. Knowing the relation and tail provides a training cue for the head. Knowing the head and relation cues the tail. The pair of endpoints also provides a cue for the relation. A single graph score is used in all of them, while the alternatives that determine its probability change with the item being predicted.
L_K = −Σ_{(h, r, t)} [log Pr(h | r, t) + log Pr(t | h, r) + log Pr(r | h, t)]
L_K is the graph loss. The sum indexed by (h, r, t) runs over observed graph facts. In each bracket, Pr gives the conditional probability of the observed head h, tail t, or relation r, with the other parts of that fact supplied as conditions. The logarithm is written log, and the plus signs add the three contributions. The leading minus sign makes lower loss correspond to higher probabilities for the observed parts. A graph record therefore gives supervision about each of its positions while keeping their scores tied to the same geometry.
Learning which words occur together
The text component gives words a reason to stay useful as representations of corpus usage. It takes a pair of items that occur within a local text window and uses their distance in the shared space to score the pairing. A phrase that has been grouped during preprocessing enters as an item in its own right.
z(w, v) = b − 0.5 · ‖w − v‖₂²
Here z is the text pair score, and w and v are vectors for the observed target item and its conditioning context item. The norm ‖·‖₂² measures their squared Euclidean distance. As in the graph score, b is an additive offset and 0.5 scales the distance penalty. This score compares word vectors directly. A relation displacement is involved only in the graph triplet score.
Pr(w | v) = exp(z(w, v)) / Σ_{w̃ ∈ V} exp(z(w̃, v))
Pr(w | v) is the probability of target word w given context item v. The numerator exponentiates their text score z. The denominator sums the exponentiated scores over alternatives w̃ in V, the text vocabulary. The context item v stays fixed throughout this sum. A high value expresses a preference for the observed target among the available text items under that context.
L_T = −Σ_{(w, v)} log Pr(w | v)
L_T is the text loss. The sum runs over observed word-context pairs (w, v). Pr(w | v) is the probability assigned to the observed target w given v, and log takes its logarithm. The leading minus sign makes the loss smaller when the observed word receives higher probability. Repeating this calculation across corpus windows allows the same word vector to collect evidence from different local uses.
The earlier anchor strategy applies a related prediction idea to linked occurrences. It takes a linked phrase as an indication that a particular entity is present and asks that entity to predict a word observed in the phrase’s context. The predecessor expresses this as a log likelihood over the qualifying pairs.
L_AA = Σ_{(w, v) ∈ C, v ∈ A} log Pr(w | eᵥ)
L_AA is the anchor alignment log likelihood in the earlier approach. C is the observed collection of word-context pairs, and A is the set of Wikipedia anchors. The sum uses pairs (w, v) from C in which v belongs to A. The symbol eᵥ identifies the entity that the anchor v denotes. Pr(w | eᵥ) is the probability that the entity predicts the observed context word w, and log is the logarithm. In this setup, the informative words come from the vicinity of a particular mention. The description approach instead takes its pairs from a text already associated with the entity as a whole.
Learning from the description in both directions
The new alignment score measures distance between the entity and a word found in its description. Relation vectors are affected through the graph objective as the shared entity coordinates are updated. They do not enter this word–entity score directly.
z(e, w) = b − 0.5 · ‖e − w‖₂²
Here z is the alignment score, e is the graph entity’s vector, and w is the vector of a word or phrase in its description. The squared norm ‖·‖₂² measures the distance between those vectors, b is the additive offset, and 0.5 is the distance multiplier. The score increases as the two vectors move closer. Each word gives one distance comparison using its current representation.
For prediction from entity to word, the entity stays fixed and the candidate varies over the text vocabulary.
Pr(w | e) = exp(z(e, w)) / Σ_{w̃ ∈ V} exp(z(e, w̃))
Pr(w | e) is the probability of the description word w given entity e. The exponential exp uses the alignment score z for that pair. The sum in the denominator runs over candidate words w̃ belonging to V. The entity is held fixed across the candidates. Training encourages words observed in the description to receive more probability under this entity.
For prediction from word to entity, the word stays fixed and the candidate varies over the entities.
Pr(e | w) = exp(z(e, w)) / Σ_{ẽ ∈ E} exp(z(ẽ, w))
Pr(e | w) is the probability of entity e given word w. The numerator uses the same exponentiated alignment score z as in the other direction. The summation varies the candidate entity ẽ over E, the graph entity set, while keeping w fixed. The change in denominator gives the reverse prediction a different competition. An entity has to score well compared with other possible entities for that word.
This asymmetry in the alternatives is important even though both directions use the same distance. Predicting a word requires a good score relative to other words for the same entity. Predicting an entity requires a good score relative to other entities for the same word. An observed pair can face different competition in the two calculations. Adding both terms gives the system a way to learn from each perspective. The paper’s experiments evaluate their combined effect.
L_A = −Σ_{e ∈ E} Σ_{w ∈ Dₑ} [log Pr(w | e) + log Pr(e | w)]
L_A is the description alignment loss. The outer sum runs over entities e in E, and the inner sum covers the words w in the description Dₑ of the current entity. Both conditional probabilities are the ones defined above. Taking their logarithms, adding them, and applying the leading minus sign makes the loss decrease when the observed association becomes more probable in both directions. An entity with no associated description supplies no word–entity pairs to this term. The expression adds the contributions of the observed words. It shows no separate document-length weight.
From articles to updates
The experiments associate Wikipedia articles with Freebase entities where a mapping is available. The corresponding article serves as the description for that entity. Wikipedia articles also serve as the general text corpus. A single source can therefore provide evidence through local windows for the text component and through the article’s identity for the description component. The latter uses the connection between a document and its subject. This is different evidence from knowing which entity a linked mention elsewhere in an article denotes.
The authors follow the predecessor’s preprocessing. They segment sentences and divide the text into tokens using tokenization. They also tag names using named entity recognition. They group consecutive tokens when they are covered by an anchor or when they carry the same location, person, or organization tag under the stated rule. That detail gives the paper’s claim about anchors a precise scope. Description alignment requires no anchor occurrence as an entity–context training pair. The common preparation of the evaluation vocabulary still uses anchor boundaries as one way to identify phrases.
Training minimizes the combined loss with stochastic gradient descent. As the procedure processes examples, it updates the vectors in the directions indicated by their contribution to the loss. The probability formulas describe normalizations over full candidate vocabularies. The paper uses negative sampling to handle those large normalization steps in training. Under that procedure, an observed example is accompanied by sampled alternatives, so an update can compare the observation with alternatives without enumerating the full vocabulary for each example.
The implementation works across multiple threads with shared memory and without locks. Those details concern how the authors handle a large collection of text and facts. The source of alignment remains the association between an entity and its description. The corpus window sets which word neighbors can supply text examples, while the description objective draws its examples from the words of the associated article. The experiments evaluate different amounts of corpus traversal for the different graph tasks.
Experiments and results
What each comparison tests
The experiments ask whether replacing linked mentions with descriptions gives a usable shared representation. Link prediction checks the positions of graph entities under learned relations. Triplet classification extends the comparison to candidates that can include items from the text vocabulary. Relational fact extraction reuses the learned vectors to score candidates proposed by text-based extractors. The analogy task asks whether word and phrase vectors preserve regularities that can be recovered through vector operations. These are distinct routes from a training criterion to an observable result.
The baseline depends on which route is being tested. TransE supplies the graph-only comparison for link prediction. The separately trained system supplies a comparison for triplet classification and fact extraction. Anchor alignment provides the closest comparison for the description method because it also connects the graph and text spaces. For analogies, the authors additionally include the text-only Skip-gram approach and joint training with name alignment. These baselines help show where the presence of an alignment makes a difference and where the choice of alignment appears to matter.
The datasets also differ by task. Link prediction uses FB15K, a subset of Freebase. Triplet classification uses a larger Freebase dataset from the preceding joint embedding study. Wikipedia is the source of text across the experiments. For extraction and analogy evaluation, the authors use representations learned for the triplet classification experiment. Those results therefore tell us how the same training setup serves other uses of the vectors, while the link prediction results pertain to the separate FB15K training setup.
Link prediction on FB15K
Link prediction asks which entity belongs at a missing endpoint. For each candidate head or tail, the procedure can measure the distance between the translated head and the tail. Ranking by that distance puts better-fitting candidates earlier. The known entity is the held-out answer whose position is recorded. Mean rank measures how far down the candidate lists that entity tends to fall. HITS@10 measures how often the answer lands among the first 10 candidates. These measures can respond differently to changes in the rankings because only one of them tracks movement outside the cutoff.
The paper follows the TransE protocol for raw and filtered rankings. The raw setting lets alternative candidate completions compete as they are generated. The filtered setting removes competing completions that are already known facts, so an alternative recorded answer does not count against the designated answer. The distinction matters when a single head and relation can have several recorded tails, or a tail and relation several recorded heads. A rank in the filtered setting addresses how well the system finds the held-out answer once that source of competition has been removed.
The authors take the TransE baseline figures from the earlier paper and implement the anchor system for this comparison. They search over embedding dimensions of 50, 100, and 150, learning rates of 0.01 and 0.025, and 5 or 10 negative examples per positive example. They test maximum skip ranges of 5 and 10 for text windows and traverse the corpus for 1 epoch in this experiment. The selected settings are identical for the anchor and description systems. Each uses dimension 100, learning rate 0.025, 10 negative examples per positive example, and a maximum skip range of 5. That gives their comparison the same selected capacity, learning rate, sampling count, window limit, and corpus pass count.
FB15K filtered link prediction HITS@10
Description alignment places the held-out entity among the leading candidates most often.
The numbers
| System or setting | HITS@10 % |
|---|---|
| TransE | 47.1 |
| Jointly(anchor) | 72.0 |
| Jointly(desp) (this paper) | 77.3 |
For raw HITS@10 on FB15K, TransE records 34.9%, anchor alignment records 49.9%, and description alignment records 51.7%. The description system has the highest displayed hit rate in both candidate settings, with the paper characterizing the two joint systems as comparable in raw evaluation. In the filtered evaluation shown in the chart, description alignment reaches 77.3% against anchor alignment’s 72.0%. Both joint systems exceed the published TransE result of 47.1% on that measure.
The paper also evaluates the average position of the true entity. For the published TransE baseline, the raw mean rank is 243 and the filtered mean rank is 125. For anchor alignment, those mean ranks are 166 and 47. The authors characterize the raw comparison between the joint systems as comparable and favor description alignment in the other settings. The hit rates make the practical finding clear even without treating a top-of-list success as a complete account of the rankings. On both HITS@10 evaluations, the text-augmented training approaches put the target in the leading group more often than the graph-only baseline.
One especially useful feature of this experiment is that the query still concerns entities from the graph. It requires no candidate phrase outside the graph vocabulary to demonstrate an effect from adding text. The training signal from text changes what the graph vectors can do with familiar kinds of queries. Complementarily, the setting leaves open how the gains are distributed across entities that have long descriptions, short descriptions, or no descriptions at all.
Triplet classification with entity and text endpoints
Triplet classification presents an entire candidate fact and asks for a correct-or-incorrect decision. The authors use the protocol of the earlier joint embedding study and train the systems with their own implementation. The task gives the learned representations a different job from link prediction. A candidate already specifies both endpoints and the relation. The system’s decision concerns the candidate as a whole. The ability to score word and phrase vectors under a graph relation is therefore relevant whenever either endpoint comes from text.
The paper separates cases by the vocabulary supplying each endpoint. In e-e, both sides are entities in the knowledge base. In e-w, the head is a database entity and the tail comes from the text vocabulary outside the entity vocabulary. In w-e, the text item is the head and the graph entity is the tail. In w-w, both endpoints come from text. The direction matters because the graph score translates the head toward the tail. Breaking out the two mixed cases shows whether the learned alignment helps when a text item fills either role.
For this experiment, the reported best configurations use embedding dimension 150 and learning rate 0.025. They use 10 sampled negatives for each positive example and a maximum skip range of 5. The authors traverse the text corpus for 6 epochs. This is also the training setup from which the paper takes its representations for extraction and analogy evaluation. Performance in those later experiments therefore belongs with this configuration and dataset instead of the training regime described for FB15K.
Overall triplet classification accuracy on the Freebase classification dataset
Description alignment gives the highest overall accuracy, with anchor alignment close behind.
The numbers
| System or setting | Accuracy % |
|---|---|
| Separately | 73.6 |
| Jointly(anchor) | 79.9 |
| Jointly(desp) (this paper) | 80.9 |
On e-e triplets, separate training gives 94.0% accuracy, anchor alignment gives 95.2%, and description alignment gives 96.1%. This is the strongest endpoint category for each system. It is also a case where the value of alignment can appear indirectly. Graph facts involve entity vectors the system already learns from graph data, and the description or anchor signal can still change their positions in ways that affect classification.
The mixed categories show much lower accuracy under separate training. For w-e triplets, the three systems reach 51.7%, 65.3%, and 66.7%, in the order separate training, anchor alignment, and description alignment. For e-w triplets, the corresponding accuracies are 51.0%, 65.1%, and 66.1%. The same ordering holds when the text item moves from the head to the tail. Jointly training the spaces helps both categories, and changing the source of the alignment from anchors to descriptions adds a further improvement in each.
When both endpoints come from text, separate training reaches 69.0%, anchor alignment reaches 76.2%, and description alignment reaches 76.4%. Here too there is a clear separation between the separately trained system and the joint systems, with a much narrower separation between the two joint systems. Over all triplets, the reported values are 73.6%, 79.9%, and 80.9%. Taken together, the overall and category-level results indicate that the improvement appears in every reported endpoint category. The size of the advantage depends on which category and which baseline supply the comparison.
The endpoint breakdown makes the result easier to interpret than the overall accuracy alone. For a mixed pair, a source of information that only improves distances among graph entities would give an incomplete account of the gains. A candidate also contains a vector learned for a text item. The gains under both forms of joint training support the interpretation that their alignment makes such combinations usable. The smaller gains when switching from anchors to descriptions concern the quality of that connection in a setup where the connection already exists.
Scoring relational facts extracted from text
In relational fact extraction, the initial evidence is plain text. The authors build on a setup in which a text extractor scores a candidate fact and a graph-based representation supplies a separate plausibility score. They use the public NYT+FB dataset and two base extractors. One follows Mintz and colleagues’ work on distantly supervised relation extraction. The other is the multi-instance multi-label extractor, abbreviated MIML in the paper.
The test scope is defined by the representations available from triplet classification training. A candidate stays in the extraction evaluation only if its entities and relation can all be mapped to learned vectors from that experiment. This matters because the two sources of scores must apply to the same candidate. The base extractor supplies a probabilistic score using text. The embedding supplies a score using the candidate’s learned representations. The authors use the previous study’s linear combination procedure to put the two scores together.
The comparison is shown as precision–recall curves. Precision concerns the share of selected facts judged correct, while recall concerns how much of the set of correct facts is recovered. A curve summarizes how those quantities change as the system admits more or fewer candidates. It is appropriate when a change in scoring can alter the relative positions of true and false candidates across the ranking. Here the figure provides that comparison separately for the Mintz and MIML extraction settings.
With either base extractor, the authors report better curves for joint embeddings than for separate embeddings. They describe a slight advantage for descriptions over anchors. The reported result is thus a comparison of how the embedding variants supplement each extractor on covered candidates. The curves support a qualitative comparison, with no single precision or recall value assigned to the advantage in the paper’s discussion. The extraction study also uses the triplet classification vectors as learned, so the improvement is evidence that they are useful in a second decision procedure.
Word and phrase analogies
The analogy evaluation tests the text vocabulary through vector offsets. The experiment uses the original analogy dataset of Mikolov and colleagues and follows the evaluation procedure used by the earlier joint embedding study. The source of the dataset is Distributed Representations of Words and Phrases and their Compositionality.
For the paper’s example, France pairs with Paris and China pairs with Beijing. The system is given China, France, and Paris, with Beijing hidden. It takes the offset from France to Paris and applies it to the vector for China. Then it searches the vocabulary for a word with high similarity to the resulting vector. If the two country–capital pairs have compatible offsets in the learned space, Beijing should rank near the top. The evaluation repeats this procedure over examples where the expected answer is known.
Accuracy records how frequently the first prediction is the expected item. HITS@10 records how often the expected item appears among the first 10 candidates. The test also divides analogies into Words and Phrases according to whether the analogy contains a multiword phrase. The two divisions answer different questions. The metrics distinguish the best candidate from the leading group. The Words and Phrases split distinguishes examples that require a phrase representation from those that can be answered using single words.
On Words, Skip-gram reaches 67.4% first-choice accuracy, name alignment reaches 44.5%, anchor alignment reaches 69.4%, and description alignment reaches 69.3%. For Words HITS@10, the same systems reach 86.7%, 69.7%, 87.7%, and 88.3%. Among single-word analogies, the ordering of the two leading systems changes with the metric. Anchor alignment puts the correct item first slightly more often, while description alignment keeps it in the leading group more often.
First-choice accuracy on the Phrases split of the Mikolov analogy dataset
Description alignment leads the other systems on analogies that contain a phrase.
The numbers
| System or setting | Accuracy % |
|---|---|
| Jointly(name) | 11.5 |
| Skip-gram | 22.0 |
| Jointly(anchor) | 26.2 |
| Jointly(desp) (this paper) | 49.0 |
On Phrases, the description system reaches 49.0% first-choice accuracy, compared with 26.2% for anchor alignment, 22.0% for Skip-gram, and 11.5% for name alignment. The Phrases HITS@10 values are 86.5% for descriptions, 68.1% for anchors, 63.6% for Skip-gram, and 46.0% for names. Thus the strongest phrase result is visible both when the evaluation requires an exact first choice and when it allows the answer to appear in the leading group. An interpretation of the overall analogy experiment needs both splits. The marked lead on phrases and the near tie on first-choice word accuracy are part of the same result.
What the ablations show
The paper reports comparative experiments and category breakdowns, with no component-by-component ablation of the description objective. Its comparisons can nonetheless answer several questions about the choice to train jointly and the choice of description alignment. They also establish where the evidence ends. In particular, the complete description approach supplies evidence for the usefulness of its design as a whole. Its results leave the effects of individual operations inside that design unresolved.
What changes when alignment is added
The triplet classification comparison with separate training exposes the problem the alignment is intended to solve. Separate training is already strong with two graph entities, at 94.0% accuracy. Its performance is much lower when a text item occupies one endpoint. The two joint approaches improve those mixed categories in both directions. Because each mixed candidate requires a text vector to participate in a relation learned from graph facts, the comparison connects the improvement to the system’s ability to operate across vocabularies. The all-entity improvement suggests that joint training also changes how entity representations work within the graph.
This comparison is especially informative alongside FB15K. In link prediction, the published TransE comparison establishes that both text-augmented approaches can improve retrieval among graph entities. It does not isolate the effect of descriptions. Text training, shared representations, and the graph component used in the joint framework all distinguish the joint systems from the published baseline. The direct description–anchor comparison is more closely matched. The two joint systems use the same selected hyper-parameters and share the graph and text objectives.
Fact extraction offers similar evidence from a different point in the workflow. Separate and joint embeddings can both supply scores for the covered candidates. Adding the joint scores to the base extractor yields better curves under both extractor choices. The persistence across those choices indicates that the result does not depend on only one of the paper’s ways of scoring text. Since the eligible candidates come from the vocabulary learned in triplet classification, the result concerns the quality of scores in that common evaluation procedure.
What changes with the source of alignment
The anchor and description systems supply different observations to their alignment components. The anchor version draws context words from the vicinity of entity mentions. The description version makes word–entity comparisons using a document associated with the entity. On FB15K, the latter achieves the higher filtered hit rate, and the authors regard the raw comparison as close. In triplet classification, the description system reaches the higher accuracy in every endpoint category, with particularly close results when both endpoints come from text. Taken together, the comparisons show a viable alternative source of alignment supervision with an advantage that varies across evaluations.
The analogy experiment offers the widest comparison between different sources of supervision for the text vectors. Name alignment gives the lowest figures on both splits and both metrics. That pattern agrees with the earlier warning about binding ambiguous names to graph entities through replicated facts. The experiment measures poorer analogy predictions under that procedure. It does not label the examples by name ambiguity or trace each error to a conflicting sense, so ambiguity remains the motivating explanation rather than a diagnosed cause for every lost prediction.
The authors attribute the strongest description gains to the scope of the evidence in an entire document. A local window is informative about one use, while a description can supply many words linked to the same entity. That is consistent with the strong performance on phrase analogies. However, the comparison changes the supervision and how it is used at the same time. Description training pairs words with a document’s subject and predicts in both directions. Anchor training predicts from the entity at an anchored occurrence to nearby text. The experiment does not vary the span of evidence while holding those other choices fixed, so it cannot isolate document breadth as the cause of the advantage.
What the breakdowns clarify
The raw and filtered link rankings treat known alternative completions differently. They are two views of performance on candidate rankings, not two variants of the learned description objective. Their comparison shows that the relative performance can depend on which alternatives remain in the ranking. The paper’s close raw comparison and stronger account of the filtered results are therefore compatible. They refer to different candidate conditions.
Likewise, the Words and Phrases analogy split separates the cases that account for the clearest gain. A statement that descriptions give the strongest analogies overall could obscure how close single-word results are. The single-word accuracy figures favor anchors by a small margin, while the single-word hit rates favor descriptions. On phrase questions both measures favor descriptions. The closer match on Words narrows the claim about where description alignment changed the outcome most.
An ablation that removed the probability of the word given the entity, or removed the probability of the entity given the word, could have measured the contribution of each prediction direction within the description approach. The paper reports both directions together. It also gives no comparison across controlled description lengths or across groups defined by the number of facts attached to an entity. The analyses accordingly support claims about complete systems and task conditions. They give much less leverage for attributing a gain to one prediction term, a particular amount of document context, or a particular degree of graph sparsity.
Limitations
Limits stated by the authors
The method assumes that descriptions are available for some entities and that they can be associated with the corresponding records. The authors present this as a weaker requirement than a corpus of anchored mentions. Their argument for broader applicability is about what the description objective consumes. A collection may be usable for this method if it has text descriptions attached to records, even when its prose lacks linked mentions. For entities without descriptions, the direct alignment observations described in the paper are unavailable.
The authors also explicitly restrict the relational fact extraction evaluation to test candidates whose parts can be represented by the embeddings from triplet classification training. Consequently, the reported curves describe extraction on the retained items. They answer whether the embedding score improves the selection of facts when the score is available. The study gives no measurement of the practical cost of that coverage condition across the full extraction dataset. Its result therefore pertains to the combination of scores within the stated evaluation scope.
The paper characterizes the description approach as broadly comparable to, or better than, alignment with anchors. The individual figures qualify that statement. For example, the raw FB15K results are treated as close, and anchor alignment has a small edge in the first-choice accuracy of the single-word analogies. The authors’ broad assessment is supported by the pattern across tasks, with variation by metric. A stronger claim that the description system wins every comparison would go beyond those figures.
Limits visible in the setup
The experiments do not test cross-source portability directly. They draw graph data from Freebase subsets and corpus text and descriptions from Wikipedia. That setting demonstrates one way of constructing entity–document correspondences and exploiting them successfully. It leaves open what happens when descriptions are brief, unevenly edited, difficult to associate with entities, or written in a style unlike the evaluation text. The ability to define the description loss on such a collection and the ability to reproduce the observed performance are separate questions.
The preprocessing places a further boundary on the anchor-independence claim. The description term uses the article-to-entity association and the words of the article. At the same time, the shared preprocessing groups some text tokens into phrases using anchor spans. The phrase results are consequently evidence for a description objective under that preprocessing procedure. They leave open how the full system would perform with a phrase inventory produced without anchor boundaries. The availability of named entity tags gives the procedure another way to group some tokens, and the paper reports no comparison that isolates the effect of either source of phrase boundaries.
The proposal offers a direct way to supplement the training evidence for a sparsely connected entity, but the evaluation does not report the gains by entity degree or description availability. Classification categories distinguish endpoint types. They do not tell the reader how much graph evidence was available for each evaluated entity. Link prediction aggregates over questions, so a strong aggregate can include heterogeneous changes across entities. A separate evaluation organized by graph coverage would be needed to measure the particular sparsity benefit that motivates the paper.
The description objective supplies an association with the entire entity, and it treats words through their pairwise distances from that entity. Its equations have no direct representation of which sentence contains a word or what role that word has in the description. Repeated or incidental words can contribute alignment observations along with more informative ones. The reverse prediction across entities gives such words competition, and text training supplies ordinary usage information. The paper does not examine which words dominate updates or estimate how the design responds to irrelevant content in a description.
The system also learns entity vectors as parameters. The experiments use those learned vectors to rank or score candidates and filter extraction cases based on whether the necessary representations exist. They do not evaluate inserting a new entity at test time by reading a description and computing its vector directly. The description loss provides a way to train an entity from associated text. The results concern the vectors obtained in the reported training regime, rather than a separate test of immediate prediction for previously unseen entities.
Finally, the numerical comparisons are reported as results from the chosen configurations. The paper gives no variation across repeated training runs for judging the stability of narrow gaps, such as those in single-word analogy accuracy or w-w classification. The link-prediction baseline also comes from a published result while the two joint systems are trained for this study. The comparisons still describe the outcomes under the stated protocols. Their closest margins give limited evidence about how a rerun or a change in the training setting would affect the ordering.
What came after
Surveys of pretraining and graph embeddings
The 2020 survey of pretrained representations for natural language processing cites the paper from the perspective of a broader literature on representations learned before a particular language task. The connection to Zhong and colleagues’ experiments is that the learned vectors are reusable. The authors train them with graph facts and text, then take the vectors from triplet classification training into extraction and analogy experiments. The citing survey is a point of contact with that broader topic. The citation alone establishes neither an implementation of description alignment in the survey nor a replication of its measurements.
The 2021 overview of knowledge graph embedding cites the paper from the graph side. In that setting, the connection is the use of information beyond the facts recorded in the graph to constrain entity representations. Zhong and colleagues give a specific construction that uses an associated article and shares the resulting entity coordinates with the graph objective. The overview places the work in the literature on graph embeddings. The citation identifies that connection without establishing a later experiment on the effects of descriptions or sparse graph coverage.
Language-derived context for graph completion
The 2024 Contextualization Distillation for Knowledge Graph Completion cites the paper in work on using contextual information from a large language model for graph completion. This returns to a task that Zhong and colleagues evaluate directly through missing-entity prediction. In their setup, the extra information is the vocabulary of a known entity’s description, connected to the graph through a shared vector. The later work’s stated direction is to distill language-derived context for completion. Its citation shows continuity in the goal of bringing textual information to graph prediction. It does not establish that the later method retains the two description prediction terms or measures them against the original system.
Across these works, the documented connection is citation from several related lines of research. The surveys place the paper within discussions of learned language representations and graph embedding, while the completion work approaches the problem of adding language-derived context to graph inference. The 2015 contribution remains specifically the use of entity descriptions as training evidence for a shared graph and text space, with empirical comparisons against name alignment, anchor alignment, and the task-specific baselines.
Cite
Cite as Huaping Zhong, Jianwen Zhang, Zhen Wang, Hai Wan and Zheng Chen. 2015. Aligning Knowledge and Text Embeddings by Entity Descriptions. Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{zhong2015aligning,
title = {{Aligning Knowledge and Text Embeddings by Entity Descriptions}},
author = {Huaping Zhong, Jianwen Zhang, Zhen Wang, Hai Wan and Zheng Chen},
booktitle = {Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing},
year = {2015},
doi = {10.18653/v1/d15-1031},
url = {https://doi.org/10.18653/v1/d15-1031}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/zhong-2015-aligning-knowledge-text-embeddings-entity/