Out-of-Sample Representation Learning for Knowledge Graphs
Paper · 2020 · Marjan Albooyeh, Rishab Goel and Seyed Mehran Kazemi
Summary
A knowledge graph can acquire new entities faster than a learning system can retrain itself. A job recommendation service, for instance, may already contain applicants, companies, skills, and job postings when a new posting arrives. Some links for that posting are immediately available: perhaps its company or required skills. The practical question is whether the system can use those links to make further predictions without rebuilding its learned representations. This paper studies that problem for knowledge graphs whose entities have no initial descriptive feature vectors. The available evidence consists of relationships with entities already encountered during training.
The authors distinguish this setting from ordinary transductive prediction. In a transductive experiment, a system predicts missing links between familiar entities. Here, an entity is entirely absent from training and appears only when predictions are required. Its representation must therefore be constructed from newly observed connections to the familiar graph. This is a restricted but useful form of generalization: the entity is new, while its neighboring entities and relation types belong to the training vocabulary. The paper formalizes that setting, constructs evaluation datasets, and develops ways to adapt an established link-scoring approach.
The main proposal concerns training as much as representation construction. A conventional approach could learn embeddings for familiar entities and then average neighboring embeddings whenever a new entity appears. However, those familiar embeddings were never trained to support such reconstruction. The authors instead sometimes treat a training entity as though it were unseen. They replace its stored embedding with a representation assembled from its other links, excluding the link currently being predicted. Training then rewards representations that remain useful when an entity must be reconstructed from relational evidence. Other training examples retain the conventional lookup procedure, allowing familiar-entity prediction to act as a supporting task.
The paper develops relation-aware averaging and a regularized least-squares alternative around DistMult, a scoring function that combines entity and relation embeddings through elementwise multiplication. The resulting systems perform differently across the evaluation datasets. On oWN18RR, oDistMult-LS obtains filtered mean reciprocal rank of 0.4093, while oDistMult-ERAvg obtains 0.3904. On oFB15k-237, relation-aware averaging is stronger: oDistMult-ERAvg reaches 0.2557, compared with 0.2126 for oDistMult-LS. These results support the value of matching training to the way representations will be constructed at prediction time, without establishing a universally best aggregation rule.
The analyses also reveal important boundaries. Adding more observed links does not consistently help: performance worsens across larger neighborhood groups for the averaging approaches examined. A mixture of ordinary and simulated unseen-entity training works better than always reconstructing an endpoint. An additional familiar-entity experiment finds broadly comparable performance after changing the training procedure, although individual ranking metrics move in different directions. The contribution is therefore both constructive and diagnostic: the paper supplies a concrete unseen-entity task, useful baselines, and evidence that the training interface and aggregation mechanism need to be designed together.
Interesting ideas
Train through the deployment interface. If deployment constructs a representation from partial observations, training should exercise that construction process. Learning a stored representation and later substituting an unrelated reconstruction rule creates a mismatch. The paper’s simulated unseen-entity examples make the actual prediction pathway part of optimization. This principle applies to systems that must work from incomplete records, newly introduced concepts, or observations collected after deployment.
Hold out identities, not merely records. Removing individual facts can leave every entity familiar to the learner. That evaluates missing-link completion without testing whether the system can accommodate a genuinely new entity. The paper separates entities before forming evaluation queries. Similar distinctions matter in document processing, user modeling, lexical resources, and any application where performance on a new identity may differ from performance on another record about a known identity.
Preserve relationship information during aggregation. A neighbor’s identity is only part of its contribution. The relation connecting that neighbor to the target determines what the observation says. Relation-aware averaging retains this distinction by combining a neighbor embedding with its relation embedding before aggregation. More generally, pooled evidence should preserve the role through which each observation becomes relevant.
Use a simple scoring rule to derive reconstruction. The proposed aggregators follow from the algebra of DistMult rather than being attached as arbitrary processing stages. Averaging uses vectors that contribute directly to the score; least squares converts desired local compatibility into a regularized linear problem. This is a reusable mathematical strategy: inspect a decision rule, identify what an unknown representation must satisfy, and derive an estimator from those requirements.
Keep an established task as a supporting objective. Training does not have to abandon the familiar problem completely when a new capability is introduced. The paper alternates reconstructed and directly retrieved entity representations. Its analysis suggests that conventional link prediction can help maintain useful information while the system learns unseen-entity behavior. Such mixed training can be valuable when a specialized objective otherwise weakens the representations on which it depends.
Measure behavior against evidence quantity. A larger neighborhood looks like an advantage, but the experiments show that averaging can become less effective as the available neighborhood grows. Grouping results by the amount of evidence exposes this behavior, which an overall score would conceal. The same analysis is useful for document length, dictionary witness counts, retrieved passages, or the number of observations supporting a conclusion.
Compare quality with incorporation cost. An unseen entity must be accommodated using a finite computation. The paper distinguishes an inexpensive averaging operation from a more demanding least-squares solve. That comparison encourages engineers to evaluate the whole incorporation procedure, including the work required when new data arrives, instead of judging a system only by its final ranking score.
Deep dive: Out-of-Sample Representation Learning for Knowledge Graphs
How unseen entities can receive knowledge graph representations from their known links, and what aggregation-aware training achieves. · about 36 minutes to read
How Mova uses it
Mova is a small, transparent language system written in Rust. Its documented mechanisms include dependency parsing, event frames, explicit worlds, compiled knowledge, and retained graph-based learning. Those mechanisms provide several places where the paper’s experimental reasoning could transfer. They do not establish that Mova implements the paper’s embedding methods. The status marks below are proposals assessed against the documented mechanisms; a mark of novelty is provisional, and the effect of each proposed transfer remains unknown until measured.
Idea: Train through the representation pathway used at deployment. Where: Section 3.1, proposed training procedure, and Algorithm 2. Area: learning and evaluation. Mova: частково є (retained school learning in world and the fresh-process assessment path). Mova already distinguishes a retained state from a course run that has just replayed its lessons. The paper suggests extending that discipline: when a native reader will later operate on a prepared graph, evaluate and tune the process that constructs that graph as part of the complete pathway. Matching the deployed interface could prevent improvements that depend on information unavailable during actual use. Why Mova: it would make a claimed reading improvement correspond more closely to the state from which Mova must really answer.
Idea: Hold out complete entity identities. Where: Datasets, entity selection and validation/test construction. Area: evaluation design. Mova: нове. A candidate experiment could withhold selected concepts or narrative entities from a learning phase, then introduce them through licensed relational evidence and ask questions requiring their incorporation. This would distinguish a new combination of familiar facts from generalization to a previously unavailable identity. A corresponding Mova benchmark is not established by the digest, so the novelty mark is tentative. Why Mova: dictionary growth and new story participants both require handling identities that were not available when earlier parameters or rules were prepared.
Idea: Keep relationship roles in pooled evidence. Where: Section 3.2, oDistMult-ERAvg and Equation (2). Area: knowledge representation. Mova: частково є (prag frames and world state preserve typed roles). Mova already separates agents, patients, recipients, and places rather than reading a sentence as an unordered word collection. The transferable proposal is to preserve those distinctions when combining graph observations across witnesses or contexts. The paper supports relation-aware aggregation in its embedding experiments; a native symbolic aggregation rule would need separate testing. Why Mova: evidence about possession, location, and attribution should contribute according to its role rather than merely sharing an entity name.
Idea: Derive reconstruction from the decision rule. Where: Section 3.2, derivations of the averaging and least-squares aggregators. Area: mathematics and inference. Mova: частково є (math provides exact computations and explicit solving steps). Mova could formulate a missing intermediate representation as constraints imposed by the downstream native decision. This would favor an explicit derivation over an unexplained fallback. The paper’s particular linear system depends on DistMult and cannot simply be imported into every symbolic reader. Why Mova: deriving a repair from declared requirements fits a system whose answers are expected to retain their reasons.
Idea: Preserve a familiar task while adding a new objective. Where: Section 5.3, analysis of the training-mixture parameter. Area: training and regression control. Mova: частково є (regression-gated changes and held-out self-play in world). The paper mixes standard lookup examples with reconstructed examples rather than replacing the original task completely. Mova could use an analogous evaluation schedule when adding new graph-reading or dictionary behavior: retain established tasks as explicit constraints while measuring the added capability. The paper’s auxiliary-task explanation remains an interpretation, not a demonstrated mechanism in Mova. Why Mova: a new ability is useful only if it preserves the native readers on which existing workflows depend.
Idea: Stratify performance by the amount of evidence. Where: Figure 2 and Section 5.3, neighbor-size analysis. Area: statistics and evaluation. Mova: нове. Candidate reports could group dictionary decisions by available witness count, or reader answers by the number of relevant graph observations. Existing Mova measurements do not establish this exact analysis. The paper warns that additional observations can expose weaknesses in aggregation rather than improving a result. Why Mova: an overall score could hide a native reader that handles sparse evidence well but becomes confused by richer documents.
Idea: Measure incorporation cost alongside answer quality. Where: Section 3.3, time-complexity analysis. Area: efficiency and operational planning. Mova: частково є (tools/twin records prospective costs and measured runs; bounded workers retain budgets). A proposed extension would measure the work needed to incorporate a new concept or document before evaluating its answers. The comparison should separate preparation cost from repeated query cost. No runtime benefit from this paper has been measured in Mova. Why Mova: a logical module must remain usable when new material arrives continuously, not only after a large preparation run.
Idea: Exclude the target fact from its own supporting representation. Where: Section 3.1 and the leave-one-link-out evaluation in Experiments and results. Area: data leakage prevention. Mova: частково є (tools/dictindex excludes assessment material, and enrichment separates reviewed teaching material from assessment labels). For a graph-based answer, a proposed check could verify that the retained evidence does not already contain the answer under another preparation path. The paper removes the queried edge before reconstructing an entity; Mova would need a source-aware equivalent. Why Mova: a correct answer should demonstrate reading or inference rather than accidental access to a hidden assessment fact.
Idea: Specify which kinds of novelty a task permits. Where: Definition 1, out-of-sample KG reasoning. Area: interfaces and evaluation scope. Mova: частково є (layers routing and configured native worker capabilities declare their boundaries). The paper allows an unseen entity while requiring familiar relation types and familiar neighboring entities. Mova could make similarly explicit distinctions between a new entity, a new word sense, a new relation, and an unsupported operation. These are different demands and should not share an undifferentiated generalization claim. Why Mova: explicit novelty contracts would make failures easier to diagnose and reported successes easier to interpret.
Idea: Separate stored knowledge from a newly constructed representation. Where: Background and Notation, embedding lookup, and Section 3, aggregation from observed links. Area: knowledge architecture. Mova: вже є (docs/knowledge.md distinguishes the skeleton, operational RAM knowledge, and durable graph knowledge). The paper offers another concrete reason to preserve this distinction: a temporary representation for a new entity need not imply a global revision. A proposed Mova application would keep local graph-derived conclusions attached to their context and provenance. Why Mova: local interpretation should not silently become durable general knowledge.
Idea: Include an uninformative global fallback as a baseline. Where: Section 5.1, OOV baseline. Area: evaluation. Mova: нове. A symbolic counterpart might answer from a context-independent default, while the tested reader uses the actual local evidence. The purpose would be diagnostic, not to endorse default answers. The exact baseline would need to fit the native task rather than imitate vector averaging mechanically. Its presence in current Mova assessments is unknown. Why Mova: it would reveal whether a new incorporation mechanism uses the incoming evidence more effectively than a generic prior.
Idea: Test a frequency-only explanation of success. Where: Section 5.1, Popularity baseline. Area: statistical controls. Mova: частково є (school reports contain controls, while dictindex records occurrence frequencies). A task-specific control could rank candidate concepts or answers using only their frequency in the permitted preparation data. This would test whether an apparent reasoning gain mainly tracks common answers. Existing controls are not evidence that this particular comparison has been run. Why Mova: frequent dictionary entries or story concepts can create misleading gains unless their contribution is measured separately.
Idea: Compare identity-rich evidence with structural summaries. Where: Section 5.1, RGCN-D initialization from incoming and outgoing relation counts. Area: representation analysis. Mova: нове. A native graph reader could be compared with a version that sees only typed degree summaries instead of the identities of connected concepts. Such a control would estimate how much a task depends on particular neighbors instead of broad graph shape. The paper’s weak structural baseline does not predict the outcome for Mova. Why Mova: the comparison could identify when a compact structural summary is sufficient and when lexical or conceptual identity is essential.
Idea: Change the training procedure while holding aggregation fixed. Where: Table 2 and Section 5.3, corresponding standard and out-of-sample variants. Area: experimental design. Mova: частково є (held-out change gates and recorded positive and negative experiments). Mova could use paired native-reader configurations in which the graph representation and answer rule stay fixed while only the preparation or learning schedule changes. This follows the paper’s most informative controlled comparison. Why Mova: it would prevent a gain from being attributed to learning when the real cause was a simultaneous representation change.
Idea: Isolate normalization as a separate choice. Where: Section 5.1, DistMult-LS-U, and Section 5.3. Area: mathematics and numerical analysis. Mova: нове. Where Mova combines weighted evidence, a candidate experiment could compare normalized and unnormalized contributions without changing the other decision rules. This is a proposal about experimental structure, not a claim that DistMult’s normalization belongs in symbolic inference. An equivalent existing Mova application is unknown. Why Mova: large-magnitude or frequent observations should not dominate a conclusion merely because their scale was left unchecked.
Idea: Use regularization to make an underdetermined reconstruction well defined. Where: Section 3.2, Equation (4). Area: mathematics. Mova: частково є (math supplies explicit mathematical operations, while learned school parameters have separate admission paths). The paper resolves a potentially underdetermined linear reconstruction with a regularized objective. Mova could borrow the discipline of declaring what selects among multiple compatible parameter solutions. Whether a specific native fitting problem requires this treatment remains unknown. Why Mova: an explicit selection principle makes ambiguous reconstruction inspectable and reproducible.
Idea: Treat evidence selection as a distinct aggregation problem. Where: Section 5.3, neighborhood-size findings and the suggestion of alternative aggregation functions. Area: information selection. Mova: частково є (Mouse specialists use attention terms, observation rules, and proof obligations over a shared retained graph). The proposed transfer is to measure whether selecting relevant graph observations improves answers compared with pooling everything available. The authors suggest attention-based alternatives but do not test them. Why Mova: specialist attention should be justified by answer quality, especially when larger documents introduce irrelevant or conflicting observations.
Idea: Audit dataset construction after removing held-out entities. Where: Datasets, removal of unsupported entities, relations, and low-degree evaluation cases. Area: data processing. Mova: частково є (tools/sources verifies manifests, and tools/dictindex validates source/version conditions). A graph benchmark builder could recheck its invariants after every filtering stage, recording which candidates and relations remain. The paper shows why an initial split can create secondary problems in the remaining graph. Why Mova: filtering for licences, provenance, or assessment separation can change the usable evidence and should trigger a new structural audit.
Idea: Aggregate query-level scores without hiding unequal entity coverage. Where: Equations (5) and (6), which average over evaluation queries. Area: statistics. Mova: нове. A proposed report could distinguish performance per question from performance per introduced concept or document. The paper’s query construction gives different entities different numbers of queries, which makes the averaging unit consequential. A corresponding Mova comparison is not established. Why Mova: heavily documented concepts should not silently determine conclusions about how well the system handles a typical new concept.
Idea: Recheck established behavior after changing incorporation. Where: Section 5.3, in-sample experiment and Table 3. Area: regression evaluation. Mova: вже є (level-one extensions and student changes pass regression gates). The paper provides an example of testing the original capability after modifying training for a new one. Mova can retain that principle when changing dictionary admission, retained graphs, or native extraction. The paper’s familiar-entity result is evidence for its own setup, not a guarantee for Mova. Why Mova: improvements in handling new material should remain accountable to established behavior.
Idea: Distinguish a closed-form operation from a cheap operation. Where: Section 3.3, matrix construction and inversion costs. Area: resource estimation. Mova: частково є (tools/twin and bounded job execution distinguish estimated from measured costs). A proposed cost report could identify the dominant mathematical step instead of labeling an analytic procedure as automatically fast. The least-squares construction is explicit but more expensive than averaging. Why Mova: transparent mathematics still needs realistic resource accounting before it becomes a worker capability.
Idea: Keep proposed extensions separate from validated scope. Where: Conclusion, temporal graphs, hypergraphs, and transfer to another graph. Area: research planning. Mova: вже є (docs/hybrid-system.md separates current configured execution from automatic composition as direction). The paper’s future work suggests a useful reporting discipline: list the changed assumptions for each extension and avoid carrying over benchmark success without a new experiment. Why Mova: a logical module benefits from precise claims about which entities, relations, contexts, and execution paths have actually been tested.
The problem and its context
Why an unseen entity is a different problem
A multi-relational graph represents information using directed, labeled connections. A fact identifies a subject, a relation, and an object. The relation label matters because the same entities can participate in very different facts. In the paper’s running example, applicants connect to skills and job postings, while postings also connect to companies and titles. These connections support predictions such as whether an applicant has a skill or suits a particular job.
Conventional graph completion typically assumes that the entities are already known. Training assigns a representation to each entity, and prediction evaluates additional combinations of those representations. An unobserved fact is new, but its endpoints are familiar. This is the transductive setting.
The arrival of a new job posting breaks that assumption. There is no stored embedding for the new identifier. Some observed links may be available immediately, but the learner must translate those links into something its scoring function can use. The paper calls this out-of-sample reasoning.
This distinction is about what was visible during training, not simply whether a fact was withheld. A graph can contain many missing relationships among known entities without ever requiring the incorporation of an unseen entity. As a consequence, strong performance on conventional completion does not directly demonstrate an ability to accommodate new identities.
The authors further restrict the task to a particular interface. The new entity connects to familiar entities through familiar relation types. Its available neighborhood is revealed at prediction time. The system is not asked to interpret an entirely unfamiliar relation or to learn a separate graph whose entities are all unknown. Those are broader problems.
What information is available
The paper distinguishes attributed graphs from non-attributed graphs. In an attributed graph, each entity has an initial feature vector. Such features provide a starting point for representing an entity even if its identifier was absent during training. In the non-attributed setting examined here, the usable initial information comes from graph relations.
That restriction makes the neighborhood central. A new entity cannot be represented from its own learned identifier, and no descriptive feature vector is supplied. Its known relationships must carry the information needed for further prediction.
The job-posting example makes the practical logic clear. A system may know the company associated with a posting or the title it advertises. Those observations can connect the posting to established representations in the graph. The task is to use that partial relational description to judge an additional relationship, such as compatibility with an applicant.
This resembles a cold-start problem, but the exact source of help is narrowly specified. The new entity is not isolated. It has observed connections, and the experiment examines whether those connections can support a useful representation.
The earlier approaches described by the authors
The paper organizes existing representation-learning work into several broad families. Graph convolution approaches extend neighborhood-based computation to graph structures. The discussion cites graph convolutional networks and localized spectral graph filtering as part of this background.
Another family describes relations through transformations between entity representations. The authors include translation-based approaches, represented by TransE, and rotational approaches such as RotatE. Their purpose in this discussion is to show the range of established ways to score graph facts.
A further family treats the graph’s facts as entries in a tensor and learns a factorization. DistMult belongs to this group. The paper also mentions ComplEx and other scoring approaches when discussing how its general training idea might extend beyond the particular implementation studied.
The authors describe substantial previous work on unseen-entity representation for attributed graphs. They also cite inductive representation learning for simple graphs. Their claimed gap is more specific: unseen-entity representation in graphs that combine multiple relation types with no supplied entity attributes.
They discuss an earlier non-attributed simple-graph approach by Ma and colleagues, but argue that moving from a single relation to a multi-relational graph is not straightforward. Different edge labels must contribute different information, which motivates the relation-aware construction developed here.
Why test-time retraining is not the chosen solution
A straightforward response to a new entity would be to introduce a fresh embedding and run additional optimization. The authors regard that strategy as unsuitable for high-throughput production settings. Their task therefore emphasizes incorporation through an aggregation function rather than another round of gradient-based fitting at prediction time.
This design choice shapes the entire contribution. The learner must prepare familiar entity and relation embeddings that can support later reconstruction. It must also supply a reusable scoring function and a procedure for turning a new neighborhood into a compatible representation.
The central difficulty is therefore coordination between the learned representation space and the incorporation procedure. A neighborhood average may be easy to compute, but it will only work if the surrounding representations encode information in a form that such an average can exploit.
The method, step by step
The method begins with an ordinary graph embedding system and changes how entity representations are obtained during training. The score function can remain the same. What changes is whether an endpoint receives its stored embedding or an embedding reconstructed from its other known connections.
Learning to incorporate an unseen entity
The steps in order.
Facts, embeddings, and scores
The authors write a graph fact as a triple containing a head entity, a relation, and a tail entity:
(v, r, u)
Here, v is the head or subject, r is the relation, and u is the tail or object. V denotes the collection of training entities, while R denotes the available relation types. The observed graph G contains known facts involving those entities and relations.
An embedding is a learned vector used as an internal representation. The system stores entity embeddings in a matrix called Z_ent and relation embeddings in Z_rel. Each entity or relation corresponds to a row. Looking up a familiar entity retrieves its row directly.
The paper distinguishes the entity embedding dimension from the relation embedding dimension in its general notation. For DistMult, both use the same dimension, written d. This common dimensionality permits coordinatewise multiplication.
DistMult assigns a score using the following expression:
φ(z_v, z_r, z_u) = Σ_i z_v[i] z_r[i] z_u[i]
The vectors z_v and z_u represent the endpoint entities, and z_r represents their relation. The index i ranges over embedding coordinates. The symbol φ names the scoring function. A larger score expresses greater support for the candidate triple under the learned representation.
This score is a sum of products of corresponding coordinates. It does not require a separate graph traversal for every candidate once the embeddings are available. The paper selects DistMult as a simple, effective basis for studying the incorporation problem.
Ordinary training
Conventional training processes batches containing observed facts and corrupted alternatives. Observed triples receive positive labels. Negative examples are created by modifying positive triples according to the corruption procedure cited by the authors.
For every triple in a batch, the learner retrieves the embeddings of its head, relation, and tail. It computes the score, compares that score with the label, and updates the parameters using a loss function.
The loss combines a softplus classification term with a penalty on parameter magnitude:
L(Θ) = Σ_((v,r,u),l)∈batch softplus(−l φ(z_v,z_r,z_u)) + λ ‖Θ‖₂²
Θ represents the learned parameters. The label l is either −1 or 1. The summation covers labeled triples in the batch. The coefficient λ controls L2 regularization, and the squared norm penalizes large parameter values.
Softplus is defined as:
softplus(x) = log(1 + exp(x))
Here, x is the input scalar, exp is the exponential function, and log is the logarithm. Combined with the signed triple score, this expression penalizes scores that disagree with their labels.
The important limitation of ordinary training is not a missing loss component. It is that every entity representation comes from a lookup. The learner never has to make the same prediction using an embedding assembled from other facts.
The information supplied for a new entity
For an unseen entity v, the available graph fragment contains incoming and outgoing links to familiar entities:
G_v = {(v,r,u) : u∈V, r∈R} ∪ {(u,r,v) : u∈V, r∈R}
G_v denotes the observed neighborhood of v. V and R are the familiar entity and relation sets. The union includes both directions of participation: v can occur as the head or as the tail.
These links appear only when the new entity is introduced. They were unavailable during training because the entity itself was absent. The incorporation function must use G_v together with the learned familiar embeddings to construct z_v.
An obvious approach would train conventionally and attach an averaging rule afterwards. The paper argues that this does not align the learning objective with the representation used at prediction time. Its proposed training algorithm addresses that mismatch directly.
Simulating unseen entities during training
For a training triple, the algorithm first retrieves the relation embedding. It then chooses among several representation pathways using a parameter ψ.
With probability ψ/2, the head is reconstructed from its neighborhood while the tail uses its stored embedding. With probability ψ/2, the tail is reconstructed and the head is retrieved. With probability 1 − ψ, both endpoints use ordinary lookups.
The queried training link is excluded from the neighborhood used for reconstruction. Otherwise, the representation would be built partly from the very relationship it is being asked to predict. This exclusion makes the simulated task resemble the evaluation protocol.
After selecting the representations, the learner applies the same scoring and loss machinery. Gradients update the entity and relation embeddings, together with any learnable parameters in the aggregation or scoring functions.
At ψ = 0, the procedure becomes conventional transductive training. At ψ = 1, every training triple has an endpoint represented through aggregation. Intermediate values mix the original task with the reconstructed-entity task.
The algorithm is presented as a general training framework. Its particular instantiations depend on the chosen score function and aggregator. The reported main implementations use DistMult.
Relation-aware averaging
The first proposed aggregator follows directly from the DistMult score. If the new entity participates in a fact with relation r and familiar entity u, the contribution of that observation can be written as an elementwise product:
a_(r,u) = z_r ⊙ z_u
The vector a_(r,u) is the relation-conditioned contribution of neighbor u. The symbol ⊙ denotes coordinatewise multiplication. The vectors z_r and z_u are the learned relation and familiar-entity embeddings.
DistMult then scores the new entity through a dot product with this contribution:
φ(z_v,z_r,z_u) = z_v · a_(r,u)
The dot denotes the ordinary vector dot product. This form makes the reconstruction intuition visible: a new representation aligned with a contribution vector gives that observed relationship a high score, subject also to the vectors’ magnitudes.
When multiple links are available, the proposed averaging rule combines their contribution vectors:
z_v = (Σ_(v,r,u)∈G_v z_r⊙z_u + Σ_(u,r,v)∈G_v z_r⊙z_u) / |G_v|
The quantity |G_v| is the number of observed triples involving the new entity. The separate sums account for outgoing and incoming links. Every observed triple contributes a relation-conditioned neighbor vector.
The system called oDistMult-ERAvg uses this rule together with the proposed training algorithm. The corresponding name without the initial “o” uses the same aggregation rule after conventional training. This pairing isolates the effect of the training procedure.
The averaging rule is straightforward, but its derivation is an intuition for compatibility rather than a guarantee that every observed link receives an optimal score. Contributions from different neighbors can point in conflicting directions.
Least-squares reconstruction
The alternative aggregator treats the observed links as a collection of equations. Instead of averaging their contribution vectors directly, it seeks a representation that approximately satisfies a normalized compatibility condition for each link:
z_v · (z_r ⊙ z_u) / ‖z_r ⊙ z_u‖ = 1
The denominator is the Euclidean norm of the relation-conditioned neighbor vector. The unknown is z_v. The right-hand side specifies the desired normalized dot product for each observed relationship.
The derivation begins from cosine alignment, but removes the unknown representation’s norm to obtain a system that can be solved analytically. The authors justify this removal by observing that the omitted factor affects score magnitude rather than candidate ordering.
Each observed relationship supplies a row of a matrix A. That row contains its relation-conditioned neighbor vector. The corresponding entry of a target vector b is the norm of that row vector.
The regularized solution is:
z_v = (AᵀA + λI)⁻¹ Aᵀb
Aᵀ denotes the transpose of A. I is the identity matrix, and the inverse is indicated by ⁻¹. The coefficient λ controls the regularization used in this reconstruction. The vector b contains the target values derived from the observed relationships.
Regularization matters because the neighborhood may provide fewer independent constraints than the embedding has coordinates. The paper uses it to obtain a unique solution. The resulting system is called oDistMult-LS when trained with the proposed procedure.
The authors also discuss extending these constructions to scoring functions containing several analogous product terms. That is a proposed generalization of the derivation; the main experiments do not establish its effectiveness across all those alternatives.
Computational requirements
Let N be the number of observed links for the new entity and d the embedding dimension. Relation-aware averaging requires coordinatewise products followed by averaging:
T_ERAvg = O(Nd)
T_ERAvg denotes the asymptotic incorporation cost for relation-aware averaging. The expression grows with both the neighborhood size and vector dimension.
The least-squares procedure must also form matrix products and solve the regularized system:
T_LS = O(Nd² + d³)
T_LS denotes the least-squares incorporation cost. The paper explains that when the embedding dimension dominates the neighborhood size, the cubic term becomes the main asymptotic component.
These are complexity analyses, not measured latency claims. They establish a meaningful computational distinction between the aggregators without determining which will be preferable on a particular implementation or workload.
Experiments and results
Building evaluation datasets around unseen identities
The authors derive their benchmarks from WN18RR and FB15k-237. WN18RR comes from WordNet, while FB15k-237 comes from Freebase. The derived benchmarks are called oWN18RR and oFB15k-237.
Construction begins by merging the original training, validation, and test triples. The new task therefore uses newly created partitions rather than preserving the original evaluation split.
Among entities occurring in at least 2 triples, the authors randomly select 20% as candidates for unseen-entity evaluation. Entities with only 1 triple are unsuitable because the protocol needs an observed relationship to construct a representation while another relationship is withheld as the query.
Triples connecting candidate unseen entities to each other are discarded. Triples connecting a candidate unseen entity to a familiar entity become evaluation material. The remaining triples form the training graph.
This filtering can leave an intended familiar entity without any training occurrence. A relation type can similarly disappear from training while remaining in evaluation material. The authors remove such entities and relations together with their associated triples.
They also remove evaluation entities that no longer have at least 2 triples after filtering. Finally, the remaining unseen identities are divided between validation and test sets.
The resulting oWN18RR training graph contains 32,270 familiar entities, 11 relation types, and 60,608 training triples. Its validation and test partitions each contain 2848 unseen entities. The validation partition supplies 12,760 queries, and the test partition supplies 12,440 queries.
For oFB15k-237, the corresponding training counts are 11,579 familiar entities, 234 relation types, and 193,490 triples. Validation contains 1395 unseen entities and 44,601 queries. Test contains 1396 unseen entities and 54,082 queries.
These counts describe different objects. The number of evaluation entities measures identity coverage, whereas the query count reflects the number of held-out links evaluated across those identities.
Query construction and ranking metrics
For each evaluation entity, every available triple takes a turn as the query. The representation is built from the remaining triples. A candidate answer is then ranked against familiar entities under the filtered evaluation setting.
If the held-out fact places the unseen entity in the head position, the query asks for the tail. If the unseen entity is the tail, the query asks for the head. The procedure therefore tests both incoming and outgoing relationships.
Filtering prevents other known correct relationships from being treated as ordinary competing negatives. This matters because a query can have more than one true answer in the available graph.
Mean reciprocal rank averages the reciprocal of the correct answer’s rank:
MRR = (Σ_q 1/κ_q) / Q
Q is the number of evaluation queries. The rank of the correct answer for query q is κ_q. A correct answer near the top contributes more than one far down the ranking.
The paper also reports Hit@k:
Hit@k = (Σ_q 𝟙[κ_q ≤ k]) / Q
The indicator 𝟙 is 1 when the condition holds and 0 otherwise. Hit@k measures the fraction of queries whose correct answer appears within the first k candidates. The reported cutoffs are 1, 3, and 10.
Both measures describe candidate ranking. They do not evaluate whether the system can explain a prediction or establish a graph fact as logically true.
Baselines and implementation choices
The Popularity baseline ignores the individual query’s neighborhood and ranks familiar entities by their training occurrence counts. The OOV baseline instead assigns every unseen entity the average embedding of all familiar entities.
RGCN-D uses a relational graph convolution approach initialized with structural features. Each entity receives counts of incoming and outgoing links for every relation type. This supplies a representation pathway without descriptive entity attributes.
The entity-only averaging baseline constructs an unseen representation from neighboring entity embeddings while ignoring relation embeddings during aggregation. Relation-aware averaging and least squares are also evaluated after ordinary training, allowing direct comparison with their aggregation-aware counterparts.
The main implementations use AdaGrad. Learning rates are selected from {0.1, 0.01}, while L2 regularization is selected from {0.1, 0.01, 0.001, 0.0001}. Validation filtered MRR determines the selected settings and training epoch, with validation performed every 100 epochs.
The negative ratio is 1, and the embedding dimension is 200. Unless an experiment specifically changes it, ψ is 0.5. The authors identify OOS-KGE as the released code and dataset collection.
Main ranking results
The following comparison shows how the aggregation-aware training procedure changes filtered MRR on oWN18RR.
Aggregation and training on oWN18RR, filtered MRR
Aggregation-aware training improves each corresponding reconstruction approach.
The numbers
| System or setting | filtered MRR |
|---|---|
| DistMult-EAvg | 0.0446 |
| oDistMult-EAvg | 0.2239 |
| DistMult-ERAvg | 0.3048 |
| oDistMult-ERAvg | 0.3904 |
| DistMult-LS | 0.3514 |
| oDistMult-LS (this paper) | 0.4093 |
The comparison supports the paper’s central claim particularly clearly for this dataset. The aggregation mechanism alone matters, but the same mechanism becomes more effective when training has exercised it.
For oWN18RR, the authors report filtered MRR improvements of 28% for relation-aware averaging and 16% for least squares when switching to the proposed training procedure. Those percentages are the paper’s own reported comparisons.
The best least-squares system also records Hit@1 of 0.3643, Hit@3 of 0.4371, and Hit@10 of 0.4892. The stronger MRR result is therefore accompanied by strong performance at the reported ranking cutoffs.
The same training comparison on oFB15k-237 gives a different ordering among aggregation choices.
Aggregation and training on oFB15k-237, filtered MRR
Relation-aware averaging gives the strongest result, while the training gains are smaller.
The numbers
| System or setting | filtered MRR |
|---|---|
| DistMult-EAvg | 0.0813 |
| oDistMult-EAvg | 0.1765 |
| DistMult-ERAvg | 0.2456 |
| oDistMult-ERAvg (this paper) | 0.2557 |
| DistMult-LS | 0.2073 |
| oDistMult-LS | 0.2126 |
On this dataset, oDistMult-ERAvg also obtains Hit@1 of 0.1698, Hit@3 of 0.2885, and Hit@10 of 0.4201. The least-squares alternative does not dominate simply because its reconstruction procedure solves a more elaborate optimization problem.
The simpler controls help establish the task’s difficulty. Popularity has filtered MRR of 0.0094 on oWN18RR and 0.0320 on oFB15k-237. OOV reaches 0.0004 and 0.0002 respectively. A shared global embedding is therefore a weak substitute for entity-specific relational evidence in these experiments.
RGCN-D is strongly dataset-dependent. Its filtered MRR is 0.0178 on oWN18RR and 0.1683 on oFB15k-237. The authors suggest that sparse neighborhoods make degree-based starting features insufficiently discriminative on oWN18RR. That explanation is plausible within their setup, but it is offered as an interpretation rather than isolated by a dedicated feature-information experiment.
What the ablations show
Training and aggregation contribute separately
The strongest controlled comparison keeps the aggregation rule fixed and changes the training algorithm. The entity-only, relation-aware, and least-squares approaches all have corresponding standard-training variants.
This design is valuable because an improvement cannot automatically be credited to a new reconstruction formula. The results show that training the surrounding representation space to support reconstruction is itself consequential.
The entity-only baseline also clarifies the role of relation information. With the proposed training procedure, relation-aware averaging is stronger than averaging neighbors without their relation embeddings on both benchmarks. The comparison does not establish that every relation-aware rule will work, but it shows that discarding edge labels loses useful information here.
The very weak OOV results provide a complementary control. They indicate that simply assigning a generic vector to new identities does not reproduce the benefit of a neighborhood-specific construction.
Normalization affects least-squares reconstruction
The authors include an unnormalized version of the least-squares baseline, called DistMult-LS-U. It replaces the normalized compatibility requirement with a fixed unnormalized target. In the matrix formulation, the entries of b become 1.
The ordinary normalized least-squares baseline obtains filtered MRR of 0.3514 on oWN18RR, compared with 0.3238 for its unnormalized counterpart. On oFB15k-237, the corresponding values are 0.2073 and 0.1674.
These comparisons support normalization within this reconstruction setup. They show that the particular linear system matters, rather than any least-squares construction being equally effective.
They do not determine whether normalization would interact differently with the proposed training algorithm. The explicitly reported unnormalized baseline uses conventional training, so the scope of the controlled finding should remain tied to that comparison.
The training mixture has an interior optimum
The parameter ψ controls how frequently training reconstructs an endpoint. The authors vary it for oDistMult-ERAvg on oWN18RR and plot test MRR.
At ψ = 0, training never exercises the unseen-entity representation pathway. Introducing reconstruction produces a substantial improvement. Performance then rises toward a plateau before declining at ψ = 1.
The authors report similar behavior in additional combinations of aggregators and datasets. Exact values for the plotted curve are not tabulated, so the finding is best described qualitatively.
Their explanation is that ordinary transductive examples provide a useful auxiliary task. Familiar embeddings must remain effective as direct representations as well as ingredients for reconstructing other entities. Maintaining both pressures may preserve more useful information than reconstruction-only training.
This explanation is not independently proven by the curve. Other optimization effects could also contribute. What the experiment directly establishes is that always treating an endpoint as unseen is not the strongest setting in the reported comparison.
Larger neighborhoods expose an averaging weakness
The evaluation queries are grouped into 5 approximately balanced bins according to how many observed triples support reconstruction. This analysis asks whether the incorporation procedure benefits from additional relational evidence.
The proposed training procedure is stronger than conventional training in all but one reported bin across the comparisons. Its benefit is therefore not confined to a single narrow neighborhood size.
However, both averaging variants perform worse as neighborhood size increases. More observations do not translate into better ranking in this analysis.
Averaging supplies a natural possible explanation. Every observed relation contributes to the same pooled vector, even if different relationships provide conflicting or query-irrelevant signals. Richer neighborhoods may therefore increase representational interference.
The authors interpret the result as a weakness of their aggregation strategy and suggest attention-based alternatives. They do not implement or evaluate those alternatives in the reported experiments.
The bins also compare different queries rather than controlled additions of links to the same query. A careful interpretation should therefore allow for differences in the difficulty of entities and relations across bins. The pattern is informative, but it is not by itself a causal demonstration that adding a particular fact reduces accuracy.
Familiar-entity prediction remains broadly comparable
The paper separately evaluates ordinary link prediction on WN18AM, described as a cleaned version of WN18RR. This experiment compares DistMult with oDistMult-ERAvg using the original splits of that dataset.
Its optimization differs from the main unseen-entity experiments. The authors use Adam and apply dropout of 0.5 after the coordinatewise product and before summation. Learning rate and weight decay are tuned over {0.0001, 0.001, 0.01, 0.1}.
DistMult records MRR of 0.4498, while oDistMult-ERAvg records 0.4483. Hit@1 is 0.4179 for DistMult and 0.4072 for the aggregation-aware variant.
The ordering reverses at the other reported cutoffs. Hit@3 is 0.4614 for DistMult and 0.4711 for oDistMult-ERAvg. Hit@10 is 0.5099 and 0.5210 respectively.
The authors conclude that the modified training does not meaningfully damage familiar-entity prediction. The detailed result is more precise than a claim of identical behavior: overall ranking remains close, with different metrics favoring different systems.
A graph-convolution modification does not change the diagnosis
The authors also try a relational graph convolution variant without self-loops, motivated by earlier work. They report results similar to RGCN-D.
This additional comparison weakens the explanation that self-loops alone caused the baseline’s poor performance. It does not establish a general limitation of graph convolution. The initial structural features, neighborhood sparsity, architecture, and training setup remain part of the evaluated configuration.
Limitations
The authors identify aggregation as unfinished work
The paper’s clearest empirical limitation is the neighborhood-size finding. A reconstruction procedure intended to exploit observed links becomes less effective across groups with larger neighborhoods. The authors explicitly identify their averaging approach as a shortcoming and propose exploring other aggregation mechanisms.
They also present the training procedure as a starting point rather than a final solution. Future work includes different training strategies and aggregation functions, as well as combinations with other transductive scoring approaches.
That distinction matters because the generic algorithm and the demonstrated implementation have different scopes. The algorithm permits many scoring functions, but the main evidence centers on DistMult-based systems. Algebraic compatibility with another score function is not equivalent to a measured result.
The least-squares alternative also leaves room for improvement. It is more computationally demanding, and it does not consistently outperform averaging. Its advantage on oWN18RR does not carry over to oFB15k-237.
The novelty contract is deliberately narrow
A careful reading should preserve the boundary imposed by the formal task. The unseen entity connects to familiar entities through relation types learned during training.
The benchmark removes triples between unseen entities. Consequently, the results do not show that the system can represent a newly arriving cluster whose members are connected mainly to one another. Such a cluster would require information to propagate through several unknown representations, which is outside the tested interface.
The task also excludes unseen relations. A new relation label would not have a learned relation embedding available for the proposed constructions. Success on new entities therefore cannot be generalized to arbitrary vocabulary growth.
Likewise, these experiments do not demonstrate transfer to a wholly separate graph with a different entity population. The authors list transfer across graphs among their future directions. It should remain separate from incorporating an entity into a familiar relational environment.
The new entity must have usable observed links
The evaluation construction removes entities that cannot support the leave-one-link-out protocol. Every query therefore has some remaining relational evidence from which to construct a representation.
The paper does not establish behavior for an isolated new entity. In the stated non-attributed setting, such an entity would provide neither a stored embedding nor descriptive features nor observed links. The proposed aggregation interface has no evidence to aggregate.
This requirement is practical rather than incidental. The method solves incorporation from partial relational observations; it does not infer a representation from an identifier alone.
The benchmark also treats the available neighborhood as given. It does not study whether those observed facts are erroneous, uncertain, maliciously supplied, or contradictory. Any deployment handling noisy graph updates would need additional checks.
The graph partitions create a controlled task
The authors merge the original benchmark partitions before constructing the unseen-entity splits. Their results therefore answer a newly defined evaluation question. They should not be read as scores on the original completion tasks.
Randomly withholding entities also differs from observing a graph evolve over time. Newly arriving entities in a production system may differ systematically from older entities, and their first observed relationships may be a selective subset of what later becomes known.
The reported protocol reconstructs each entity repeatedly, withholding a different link for each query. This provides a clear controlled evaluation, but it does not reproduce every operational arrival sequence.
These are limits visible in the setup, rather than additional limitations explicitly investigated by the authors. They identify conditions that would need separate experiments before making broader deployment claims.
Query-level averages can conceal entity-level differences
The reported metrics average over queries. An entity with more evaluation triples contributes more queries than an entity with fewer triples.
This weighting is consistent with the evaluation definition, but it means that the headline score is not an equally weighted measure over unseen entities. A system could perform differently on sparsely and richly described identities while obtaining the same aggregate ranking metric.
The neighborhood-bin analysis partially addresses this issue by exposing performance across evidence quantities. It does not replace an entity-level or relation-level analysis.
No conclusion about fairness across entity types follows from the reported averages. The task measures ranking performance under its constructed query distribution.
Scores are predictive evidence, not proofs
DistMult produces a compatibility score from learned vectors. Its predictions are not derivations from explicit logical rules.
The reconstruction methods inherit that status. Averaging gathers compatible vector contributions, while least squares fits local constraints in the learned space. Neither operation establishes that a predicted relationship follows deductively from the observed neighborhood.
This distinction is especially important when considering transfer to transparent reasoning systems. The paper supplies useful methods for prediction and experimental design, but a graph score cannot automatically become an asserted fact or a proof.
There is also a structural restriction visible in the chosen score. Exchanging the endpoint embeddings leaves the coordinatewise product unchanged for a fixed relation. This limits what the score can distinguish about direction using that relation alone.
The paper’s broader training framework may accommodate other scoring functions. The main results, however, remain attached to the expressiveness of the function actually used.
Computational analysis does not establish serving latency
The paper provides asymptotic incorporation costs, including the matrix operations required by least squares. It does not report a comprehensive serving-latency or throughput comparison.
An analytic solution avoids test-time gradient descent, but that fact alone does not guarantee low latency. Matrix size, implementation choices, repeated queries, and the number of arriving entities would affect operational cost.
The averaging method has the simpler asymptotic form. Still, its practical advantage must be assessed alongside representation quality rather than assumed sufficient for a particular service.
The production motivation is therefore stronger than the deployment evidence. The paper identifies a relevant computational requirement and proposes compatible mechanisms, while leaving detailed system-level validation open.
Statistical uncertainty is not fully characterized
The reported tables provide point estimates. They do not include confidence intervals or a systematic account of variation across repeated dataset constructions and training runs.
This does not erase the observed comparisons, but it limits how confidently small score differences can be interpreted. The paper’s larger patterns—such as the weakness of a shared OOV representation and the value of aggregation-aware training—are more clearly supported than a universal ordering among closely competing settings.
The parameter analysis also reports qualitative patterns without tabulated values for every point. It supports the conclusion that the training mixture matters, while leaving exact sensitivity harder to assess from the reported numbers alone.
Finally, the authors’ explanations about auxiliary-task regularization and insufficiently informative degree features remain interpretations. Their experiments motivate those explanations but do not uniquely identify the causal mechanism.
What came after
The later citing work identified for this paper is Survey on English Entity Linking on Wikidata, published in 2021. It places the citation in the context of English entity linking on Wikidata.
The citation record does not specify which part of the unseen-entity approach the survey discusses. It therefore does not establish that the survey adopts the proposed training procedure, uses either aggregator, evaluates the released benchmarks, or reports an extension. Its contribution to the subsequent record can be described as a citing survey, without assigning it a technical development that is not documented.
The original paper itself leaves a clear set of research questions open. It proposes investigating different aggregation rules, extending incorporation to temporal graphs and hypergraphs, and transferring learned knowledge to another graph. It also suggests comparing unseen-entity representation with out-of-vocabulary word representation and testing other relational application domains.
Those proposals follow naturally from the paper’s strongest finding: the way a representation will be constructed should influence how the surrounding system is trained. They also preserve its unresolved question. Once an entity has many heterogeneous observations, a useful incorporation method must determine how those observations should combine, instead of assuming that a larger average will provide a better representation.
Cite
Cite as Marjan Albooyeh, Rishab Goel and Seyed Mehran Kazemi. 2020. Out-of-Sample Representation Learning for Knowledge Graphs. Findings of the Association for Computational Linguistics: EMNLP 2020.
@inproceedings{albooyeh2020out,
title = {{Out-of-Sample Representation Learning for Knowledge Graphs}},
author = {Marjan Albooyeh, Rishab Goel and Seyed Mehran Kazemi},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2020},
year = {2020},
doi = {10.18653/v1/2020.findings-emnlp.241},
url = {https://doi.org/10.18653/v1/2020.findings-emnlp.241}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/albooyeh-2020-out-sample-representation-learning-knowledge/