NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Borrowing Variation From an Entity's Peers: Implicit Type-Conditioned Augmentation for Knowledge Graph Embeddings

A knowledge graph stores facts as (head, relation, tail) triples, such as (Rome, capital_of, Italy). A knowledge graph embedding learns one vector per entity and relation so that missing facts can be predicted. Translational models are the simplest such models: each relation is a displacement vector, so head + relation should land near the tail. These models work well for entities that appear in many facts and poorly for entities that appear in only one or two, because a sparse entity's vector is barely constrained. One cheap fix is data augmentation, but the usual options are either crude (dropping or rewiring edges) or expensive (asking a large language model to write new facts and then filtering what it produces). We propose a third option that costs almost nothing. Groups of similar entities, discovered from the graph without any labels, define the typical directions along which their members vary. During training, a sparse entity's vector is treated as if it could have moved along its group's directions, and the loss averaged over all such moves is computed exactly in closed form, so no extra samples are ever drawn.

The technical observation that makes this work is simple. When training scores the query $h+r$ against every candidate tail using negative squared distance, the difference between any two candidates' scores is linear in the query vector. That is exactly the condition under which Implicit Semantic Data Augmentation (ISDA) gives an exact closed-form bound on the cross-entropy loss averaged over infinitely many Gaussian perturbations. ISDA could never be used on knowledge graphs, because it needs class labels to estimate a covariance for each class. We replace those labels with latent types discovered from the entities' relational behaviour, and we condition the covariance on the relation, so an entity that acts as a film director in one triple and a musician in another borrows variation from different peers in each. The claim is that this removes most of the sparse-entity penalty of translational models. The added cost should be a few percent of training time, and the method needs no generator, sampler, or filter.

Core Claim

Let $q = h + r$ be the query vector for a head $h$ and relation $r$. Let $t_j$ be the vector of candidate tail $j$, and let $y$ index the true tail. Training uses logits $s_j = -\|q - t_j\|^2$ with a softmax over all entities. Now perturb the query by $\delta \sim \mathcal{N}(0, \lambda \Sigma_{h,r})$, where $\Sigma_{h,r}$ is the covariance of the latent type that $h$ occupies under relation $r$ and $\lambda$ sets the strength. Expanding the logit differences gives $s_j - s_y = 2(q+\delta)^\top (t_j - t_y) - \|t_j\|^2 + \|t_y\|^2$, which is linear in $\delta$. Combining Jensen's inequality with the Gaussian moment-generating function then yields

$$\mathbb{E}_\delta\,\mathcal{L} \;\le\; \log \sum_{j} \exp\!\Big( s_j - s_y + 2\lambda\, (t_j - t_y)^\top \Sigma_{h,r}\, (t_j - t_y) \Big),$$

where $s_j$ is evaluated at $\delta = 0$. The factor 2 comes from $\tfrac12 a^\top \lambda\Sigma a$ with $a = 2(t_j - t_y)$.

The extra term penalises any wrong tail that differs from the true tail mainly along directions in which members of $h$'s type naturally vary. In effect, the model must answer correctly for every plausible type-mate of $h$, not only for $h$'s own poorly estimated vector. The same linearity holds for any model whose score is linear in the head vector, including squared-distance RotatE and the bilinear models. The method is therefore an add-on, not a new architecture.

Type discovery supplies $\Sigma_{h,r}$. Each entity receives soft memberships over $K$ latent types. These come from clustering its relational signature, meaning the counts of relations in which it appears as head and as tail. This follows the observation in Type-Constrained Representation Learning in Knowledge Graphs that observed domain and range statistics act as usable pseudo-types. For a query $(h, r)$, the memberships are renormalised over the types that occur in $r$'s observed head domain, and $\Sigma_{h,r} = \sum_k \pi_{k \mid h,r} \Sigma_k$. Each $\Sigma_k$ is a rank-$p$ covariance estimated online from the current embeddings of high-degree members of type $k$. Restricting the estimate to high-degree members is what moves variation from dense entities to sparse ones. Because every $\Sigma_k$ is low-rank, the extra term costs $O(N d p K)$ per batch for $N$ entities and dimension $d$. Like ISDA's covariances, the type statistics are running averages, not trained parameters. The method therefore avoids the per-relation projection matrices that AutoETER adds.

Relation to Prior Work

Two papers motivate the type side and show that unsupervised types help link prediction. Type-Sensitive Knowledge Base Inference Without Explicit Type Supervision learns a separate type vector per entity and gates scores with type-compatibility terms, raising FB15k MRR from 0.674 to 0.750. AutoETER learns relation-projected type embeddings constrained by a translation rule in type space. Both use types only to filter or score triples. Neither uses the spread within a type to generate variation.

The same type-sensitive paper also constrains our design. It excluded WN18 because generic relations like hypernym do not yield distinct types. We therefore expect, and will test, a small or zero effect on WN18RR.

Implicit Semantic Data Augmentation for Deep Networks supplies the closed-form technique and the cost benchmark: it reports 5–7% training overhead on ImageNet. It requires supervised class labels and covers only classification. Our contribution is to show that squared-distance link prediction meets its linearity condition exactly, and to replace its fixed classes with relation-conditioned latent types.

Data Augmentation for Few-Shot Knowledge Graph Completion from Hierarchical Perspective is the closest augmentation work on graphs. It applies Manifold Mixup to entity pairs and relation prototypes, which means it builds synthetic vectors by linearly blending existing ones. Those blends are not type-checked and can create invalid intermediates such as a mix of bornIn and directorOf. They are also drawn as explicit samples. Our perturbations stay inside a discovered type and are never sampled.

The work on generating synthetic data with large models, such as TrueTeacher (1.4M summaries annotated by a 540B model) and DISCO (generation followed by teacher filtering), defines the cost regime we want to avoid. We treat it as a constraint and a cost reference, not as a method to reuse.

Research Program

The work has three parts.

First, we derive and implement the bound for squared-distance TransE and squared-distance RotatE. Both are trained with reciprocal relations and a softmax over all entities. We then verify numerically that the closed form matches, or upper-bounds, a Monte Carlo estimate built from many explicit perturbations.

Second, we build the type module. This covers the clustering of relational signatures, relation-conditioned membership, online low-rank covariance estimation restricted to high-degree members, and a warm-up schedule for $\lambda$ so that covariances are not estimated from untrained embeddings.

Third, we run the analysis that decides whether the types matter. We vary the source of $\Sigma$ while holding everything else fixed, and we measure the gains as a function of entity degree.

Baselines

The do-nothing reference is the same base model, either squared-distance TransE or RotatE, trained with softmax over all entities and given the same hyperparameter search as our method with $\lambda = 0$. Every gain is reported against this tuned model, not against numbers from older papers.

The strongest published translational-family competitor on FB15k-237 is RotatE, which reports 0.338 MRR in RotatE. On WN18RR it reports 0.476 MRR. On YAGO3-10 the strongest is AutoETER at 0.550 MRR, against 0.495 for RotatE as reported in the same paper.

Our squared-distance variants differ from RotatE's original L1 distance and self-adversarial sampling. We therefore rerun RotatE with its published configuration under our compute budget and report both the rerun and the cited figure.

Beating the baseline has two parts. On FB15k-237 and YAGO3-10, overall MRR must improve with non-overlapping confidence intervals across five seeds. MRR on the lowest-degree bucket must improve by a clearly larger relative margin than on the highest-degree bucket.

For few-shot completion, the competitor is the hierarchical Mixup augmentation applied to MetaR on NELL-One. That paper reports a 38.4% relative MRR improvement from support augmentation. No absolute MRR is given in the file, so we rerun it. Our method replaces its Mixup inside the same MetaR pipeline with the same episodes and tuning budget.

Three ablations isolate the key ingredient, which is type-conditioned covariance. The first sets $\Sigma = I$, which is isotropic noise. The second uses one global covariance over all entities. The third uses the covariance of $r$'s observed head set, with no clustering at all. A further reference uses gold Freebase type annotations where they exist, to show how far discovered types are from curated ones.

Finally, explicit Monte Carlo augmentation with $M$ samples per query tests whether the closed form loses anything or saves anything.

Why not just…?

Why not just add isotropic noise or tune L2/N3 regularisation? This is the most serious threat. With $\Sigma = I$ our extra term becomes $2\lambda \|t_j - t_y\|^2$, which is a plain margin-style regulariser. A well-tuned regulariser may recover most of the gain. The $\Sigma = I$ and global-covariance ablations, given equal tuning budgets, settle this directly. If type conditioning does not beat them on the low-degree bucket, the type-discovery part of the claim fails and we will report it that way.

Why not just sample augmented vectors explicitly, or use Mixup as in the few-shot augmentation paper? Explicit sampling multiplies scoring cost by $M$ against all $N$ entities, and Mixup produces untyped blends across relations. We measure both accuracy and wall-clock time against $M$-sample augmentation and against the hierarchical Mixup on NELL-One. The question is whether the closed form matches $M$-sample accuracy at roughly ISDA-level overhead.

Why not just use curated ontology types? Curated catalogs are incomplete and assign static types, a point made by both the type-sensitive inference paper and AutoETER. The gold-type reference measures what curated types buy where they exist. Discovered types are justified if they come close to gold types and cover entities that have no annotation.

Why not have a language model write missing facts for sparse entities? Pipelines like TrueTeacher and DISCO need large-model generation plus filtering, at a cost far above training a small embedding model. On a 500-entity sparse slice of FB15k-237 we will run a small cost-matched generate-then-filter baseline and report accuracy against GPU-hours. We do not expect it to be cheaper. Whether it is more accurate is an open empirical question, and we will report the answer either way.

Proposed Experiments and Decisive Checks

We train on FB15k-237, YAGO3-10, and WN18RR with standard filtered MRR and Hits@1/10. Test triples are bucketed by head-entity training degree. To create harder sparsity, we also build a version of FB15k-237 in which 20% of entities keep only one or two training triples.

The method stands or falls on four checks. First, type-conditioned covariance must beat the isotropic, global, and relation-domain ablations on low-degree entities. If the relation-domain covariance alone matches it, we drop the clustering. Second, the gain must shrink on WN18RR, as the type-sensitive inference paper's exclusion of WN18 predicts. A uniform gain there would suggest that a generic regularisation effect is doing the work, not types. Third, the closed form must reach the accuracy of explicit augmentation with 16 to 64 samples, at measured overhead under about 10%. Fourth, discovered types must show non-trivial agreement with gold Freebase types, measured by normalized mutual information, which shows the clusters are real types and not arbitrary partitions.

As a secondary probe, we will measure whether embeddings of tails sharing a head under one-to-many relations collapse less under augmentation. This tests whether type-directed variation eases the known TransE collapse on such relations without adding projection matrices.