SimKGC: Simple Contrastive Knowledge Graph Completion with Pre-trained Language Models
Paper · 2022 · Liang Wang, Wei Zhao, Zhuoyu Wei et al.
Summary
A knowledge graph records facts as links between entities. A birthplace link, for example, connects a person to a place. When a link is missing, a completion system can propose which entity belongs at its open end. SimKGC learns to make that choice from written descriptions. This gives it a way to represent an entity that never appeared in the training graph, provided it has a description. Earlier text-based systems had this advantage but often ranked answers below methods that learned a separate vector for each entity from the graph. The authors investigate whether training against too few alternative answers helps explain that gap.
SimKGC uses separate BERT encoders for the query and the candidate. One turns the known entity and the requested relation into a vector. The other represents a candidate from its description alone, so the same candidate vector can be compared with many queries. During training, each recorded answer competes with tails from other examples in the current batch, cached tails from earlier batches, and the query’s own starting entity. The last option is a deliberately difficult negative because its text overlaps with the query. Together, these sources can supply thousands of alternatives. The InfoNCE training objective gives greater weight to alternatives that score highly. Where the training graph contains the query entity, a separate ranking adjustment can also favor nearby candidates.
On the test sets, mean reciprocal rank, which rewards placing the recorded answer near the top, rose from the previous best of 47.6 to 66.6 on WN18RR. It rose from 29.0 to 35.8 on Wikidata5M-Trans, where test entities occur in training, and from 49.3 to 71.4 on Wikidata5M-Ind, where the entity sets are disjoint. The inductive benchmark ranks a much smaller candidate pool than the transductive benchmark. On FB15k-237, SimKGC remained competitive at 33.6% mean reciprocal rank, compared with 35.8% for the stronger result in the paper’s comparison. Controlled experiments on WN18RR found that both the number of alternatives and the loss used to compare them influenced the outcome.
The authors also checked top-ranked Wikidata5M-Trans answers that the benchmark counted as misses. Human reviewers accepted an average of 49% of the sampled misses as correct. A person can share a birthplace with the recorded answer to a head prediction query and still be missing from the graph. The study therefore shows both how text-based ranking can improve and how incomplete records can obscure part of that improvement. The authors make the implementation and full test predictions available in the public SimKGC repository.
Deep dive: SimKGC: Simple Contrastive Knowledge Graph Completion with Pre-trained Language Models
SimKGC uses entity descriptions and contrastive training to predict missing links in knowledge graphs, including links between unseen entities. · about 40 minutes to read
The problem and its context
A missing link is a question about a particular relation
A graph can identify an entity and record facts about it while leaving many of its relationships unspecified. The missing information might concern which place a person was born in, which category an entity belongs to, or which entity stands at the other end of another named relation. Completion is the task of proposing links that the graph could contain. The paper motivates it through the construction and verification of graph data and through applications that use such data, including recommendation, conversational agents, and question answering.
The basic record is a triple. It says that a head entity stands in a given relation to a tail entity. The names “head” and “tail” describe positions in this directed record. They can change roles when a query is asked in reverse. If the relation is birthplace and the head is a person, tail prediction asks for the place. If the place and the relation are given, head prediction asks which person belongs at the other end. An entity can be appropriate for one of those slots and inappropriate for the other even when its name and description stay the same.
A completion method in this paper receives the relation as part of the question. Its job is to rank possible occupants of the empty slot. The distinction matters for understanding why ordinary textual similarity is insufficient. Two descriptions may concern the same subject area while the entities fail to stand in the specified relation. A person and a similarly named person could be close in text space, for example, although the desired answer is a place. Conversely, a place description can be a good match for a query about a person even if it says little about the person directly. The system has to use the relation to turn a broad resemblance between descriptions into a preference appropriate to the query.
The pool of answers is made up of identifiable graph entities. A completion system needs a way to compare them even when several names sound suitable or when one description is far richer than another. The ranking formulation puts that comparison at the center of the task. It also keeps the identity of the answer explicit. Predicting a name as a piece of text would leave open which graph entity the name refers to. Giving scores to candidate entities directly supplies the identifiers that could occupy the missing slot.
Vectors fitted to a graph and vectors built from text
The paper describes two broad families of methods. In the embedding-based family, an entity or relation has a learned numerical representation, or embedding. Training adjusts those representations to make triples recorded in the graph score well under a chosen mathematical rule. Since the system can look up an existing representation when it encounters an entity, it can compare a given triple with many corrupted versions without encodings of their descriptions.
In TransE, a relation behaves like a displacement. Applying it to a head should reach a point near the tail. The same relation is used across many triples, so the training data constrain how that displacement can align heads and tails. The paper also discusses RotatE, where the corresponding operation is a rotation in a space of complex-valued embeddings. Other approaches represent the collection of possible triples as a multidimensional array and decompose it into factors that can give scores to links. These methods put their assumptions about relations in the scoring rule.
For a method that learns a separate vector for each entity identifier, the training graph plays two roles. It supplies facts to learn from and determines which entities have fitted representations. This suits the transductive setting, where test queries use entities present during training. Inductive completion changes the second part of the setup. Some entities to be scored at test time fall outside the collection the system learned directly during training. A lookup for a fitted vector then cannot provide the representation those methods normally need.
Text-based methods make the representation depend on a description that can be processed when an entity arrives. DKRL uses a convolutional text encoder. KG-BERT, StAR, and BLP draw on pretraining to represent textual inputs. If a new entity has usable text, the learned encoder can process it using the same parameters that it applies to familiar entities. The paper also cites GraIL and BERTRL as approaches to inductive relation prediction that draw on subgraphs or paths. Text is therefore one source of evidence for unfamiliar entities, while graph structure provides another when the relevant connections are available.
Text adds information to the input, but it also adds computation. An embedding-based approach can compare the recorded tail with a substitute through a lookup and a scoring operation. A text-based approach may need to run the encoder for the substitute as well. In a cross-encoder such as KG-BERT, the query and a particular candidate are processed jointly. A different candidate changes the joint input, so a representation produced for the first comparison cannot simply serve as the representation for the second. The authors see this cost as a reason earlier text-based systems could make fewer comparisons during training.
The role of competing answers
Contrastive learning trains a system by making compatible inputs score above competing inputs. Here the graph provides the compatible pairs. The head and relation form the query, and a recorded tail supplies its positive answer. A negative is an alternative entity used for comparison. It matters which alternatives are shown. A substitute that already scores far below the answer provides little evidence about the boundary the system finds difficult. A nearby competitor exposes a distinction that the system needs to learn.
The authors compare training configurations to illustrate the cost disparity. Their example for RotatE on Wikidata5M uses 1000 training epochs and a negative sample size of 64. Their example for KEPLER uses 30 epochs and a negative sample size of 1, with the cost of its RoBERTa encoder given as the reason for the smaller configuration. The comparison is a motivation for the authors’ hypothesis. Those configurations also differ in their architecture and training schedule. The paper’s own controlled experiments later vary the comparisons within SimKGC so that the effect of negative sampling can be examined more directly.
The paper draws on earlier uses of contrastive learning where the competing items have a different meaning. In visual representation learning, different views of one image can form a positive pair, while views drawn from other images supply alternatives. In dense passage retrieval, an encoding of a question is compared with encodings of passages. A passage that contains the answer supplies positive evidence. Reusing the representations of passages already present in a batch makes it possible to train on many comparisons without separately encoding every passage for every question. The relevant comparison in SimKGC is between a graph query and an entity description. The reuse of candidate vectors follows the same principle as Dense Passage Retrieval.
The authors connect graph completion with an earlier question about facts acquired during language pretraining. Work such as Language Models as Knowledge Bases? poses factual prompts to see whether the expected answers can be recovered. Subsequent work cited by the paper searches for better prompts. A related line of research adds explicit graph information during pretraining. SimKGC uses a different experimental setup. It takes pretrained BERT encoders, trains them with labeled graph triples, and presents them with descriptions when ranking entities. The resulting task brings learned language representations, text supplied for a particular entity, and supervision from graph links into the same decision.
The method, step by step
Express both prediction directions as tail queries
The starting point is a directed graph with an entity set and a collection of observed triples. If a birthplace record has a person as its head and a place as its tail, the usual tail query supplies the person and the relation. To ask for the missing person with the same interface, SimKGC reverses the record and gives the reversed relation its own description. The place becomes the query entity, and the person becomes the expected tail under that inverse relation. Both directions now call the same tail-ranking procedure.
(h, r, t) → (t, r⁻¹, h)
Here h is the original head, r is the original directed relation, and t is the original tail. The parentheses group the fields of a triple in their order. The arrow shows the construction of an accompanying record with t in the first slot and h in the last. The symbol r⁻¹ means the inverse relation. Its superscript marks a reversal of direction, instead of an arithmetic operation on the relation.
The implementation creates the inverse relation’s text by adding the word inverse before the existing description. The inverse of the relation named instance of, for instance, is represented by the text inverse instance of. The prefix is a consistent signal about how to interpret the relation. The method still has to learn what makes an appropriate answer in that direction. The original and reversed records use the same kind of scoring operation, while their query texts distinguish the tasks.
The inverse records used by SimKGC serve a different purpose from the inverse-relation leakage discussed in the benchmark design. Reversing an available training triple changes how it is presented to the same system. Leakage in the older benchmark collections made some held-out triples recoverable from facts under preexisting inverse relations. The former is a choice about how to express a prediction direction. The latter concerns which evidence the dataset makes available across its splits.
How SimKGC trains and ranks candidate entities
The steps in order.
Encode the query and each candidate separately
The query encoder takes a sequence formed from the head description and the relation description, with the special token [SEP] between them. A token is an input unit processed by the encoder, and the separator marks the boundary between the entity text and the requested relation. After BERT has processed this sequence, the last layer gives a vector for each token position. SimKGC averages those vectors, a procedure called mean pooling, then scales the result to unit length with L₂ normalization. One pooled vector thus carries information from both the head and the relation.
The effect of including the relation is easy to see if a particular person is the head of several queries. Asking for that person’s birthplace and asking for an applicable category produce different text inputs. The two queries can point towards different parts of the space of possible tails even though the head description is identical. The query encoder has access to the words that specify the relation as it builds the vector, so the role of that text extends beyond attaching a label to an already completed head representation.
The tail encoder receives the candidate entity’s description. It uses the same scheme of last-layer mean pooling and normalization. The two encoders begin from the same pretrained BERT checkpoint, then update separate parameters. The query encoder can learn to interpret a joint entity and relation input. The candidate encoder can learn which features of an entity description help match a range of queries. A particular candidate has the same encoded representation across those comparisons. Its suitability changes because the query vector changes.
Mean pooling gives the final representation access to the sequence through the final vectors for all its token positions. The authors cite prior sentence representation work as motivation for using this pooling operation rather than selecting the first token’s vector. The experiment is about completion with the resulting encoders. The paper does not present a pooling comparison within SimKGC that would establish how much of its benchmark gain comes from that choice. The cited background includes Sentence-BERT and SimCSE.
Preparing the text can involve a limited use of graph data. Some WN18RR and FB15k-237 descriptions are short, so the authors append names of neighbors connected to the entity in the training graph. They exclude the correct entity dynamically when constructing the training input. That control is important because including a name among the appended neighbors could reveal the target through the input. This text augmentation acts before an embedding is computed. The graph-based score adjustment described below acts on the already computed scores.
Use the angle between the vectors as the score
The query vector and the candidate vector can now be compared through cosine similarity. It measures how closely they point in the same direction. With unit-length vectors, the operation reduces to a dot product. The training loss and the initial retrieval ranking use this same comparison.
cos(eₕᵣ, eₜ) = (eₕᵣ · eₜ) / (‖eₕᵣ‖ ‖eₜ‖) = eₕᵣ · eₜ
The symbol eₕᵣ denotes the embedding of head h together with relation r, and eₜ denotes the embedding of candidate tail t. The function cos is cosine similarity, the dot · is the vector dot product, and ‖ ‖ denotes Euclidean length. The slash divides the dot product by the product of the two vector lengths. Both lengths are one after normalization, which explains the final equality.
argmaxₜᵢ cos(eₕᵣ, eₜᵢ), tᵢ ∈ ℰ
The operator argmaxₜᵢ selects the candidate tᵢ that gives the largest score. The index i distinguishes candidates, ℰ is the applicable entity set, and ∈ indicates membership in that set. The score compares the fixed query vector eₕᵣ with the candidate vector eₜᵢ using cos. The maximizer gives the first-ranked prediction. Retaining the rest of the ordered scores gives the full ranking needed for evaluation.
Normalizing the vectors means that a candidate does not move up simply because its vector has a larger magnitude. The query and the candidate each contribute through their direction. During learning, useful text features have to affect that direction so that an answer aligns with queries it can complete. Since the candidate vector contains no particular query, its direction has to support comparisons across the relations in which the entity can participate.
Reuse alternatives across the current batch and earlier batches
A training batch groups positive triples that are processed together. Each positive tail needs to be encoded for its own query. Once those embeddings are available, each can also be considered as a candidate for other queries in the group. This is the first source of alternatives, called in-batch negatives. An entity can be the right answer to the question attached to its own training record and a plausible but wrong answer to a different question. The same computed vector serves in both roles. The label belongs to the comparison with a particular query.
In a bi-encoder, the tail representations for a batch can be scored against the head-and-relation representations from that batch without rerunning BERT for each pairing. Compared with a procedure that samples a separate corruption for each triple, this makes negative comparisons relatively cheap. Their number still depends on how many examples can fit in a batch. A larger batch offers more possible alternatives but also uses more memory for encoding and scoring. The authors add a second source so that the latest batch does not have to provide every comparison.
Pre-batch negatives are tail embeddings retained from earlier batches. The system compares current queries with these cached vectors. The earlier vectors were produced before the encoders reached their current parameters, so they can differ from the vectors that would be computed from the same text now. Short caches limit how long these representations can age. The paper describes using 1 or 2 pre-batches as the usual practice and uses 2 in the reported main configuration. It also points to Momentum Contrast as a possible way to obtain more alternatives and leaves that approach unevaluated.
The two sources extend training in different ways. A current-batch tail is a fresh representation and its presence depends on which other examples are being processed at that step. A cached tail expands the available comparisons using computation already done. Keeping it is cheaper than encoding its description again, at the cost of using a representation from an earlier parameter state. The paper’s implementation assigns the pre-batch logits, or scores supplied to the loss, a weight of 0.5. This is a setting for cached negatives in training, separate from the graph adjustment used after candidate scoring.
Give the system a tempting incorrect answer
The third source is the head entity itself. A query contains that entity’s description, so its own description as a candidate can look highly similar. For many queries, returning the same entity fills the slot incorrectly. A self-negative deliberately exposes this kind of mistake. It asks the system to make the correct tail score well even when another option has almost the most direct text overlap the training procedure could offer.
A hard negative is hard because the scoring system has a reason to prefer it, even though it is being used as an alternative to the recorded answer. Here that reason can be word overlap. SimKGC obtains a targeted competitor for each query without searching the full graph for confusable examples. The relation still determines whether the candidate should be penalized. If the graph records a true link from the entity to itself for the relation in question, the known-positive mask provides the same protection that it provides for other negatives.
𝒩(h, r) = {t′ | t′ ∈ 𝒩_IB ∪ 𝒩_PB ∪ 𝒩_SN, (h, r, t′) ∉ 𝒢}
The collection 𝒩(h, r) contains the eligible negatives for head h and relation r. The braces describe the collection of candidates t′ satisfying the conditions after the vertical bar. The symbols 𝒩_IB, 𝒩_PB, and 𝒩_SN denote the in-batch, pre-batch, and self-negative proposals, respectively. The union sign ∪ combines those sources. The sign ∈ tests membership in their union, and ∉ requires that the triple containing candidate t′ be absent from the known training graph 𝒢.
This condition is implemented with a binary mask, which can allow or suppress the score for a proposal depending on whether the corresponding link is already known. Another training record can place an alternative valid tail in the same batch as the query, for example. The graph lets the mask prevent that tail from being treated as an incorrect answer. Missing facts set the limit of this protection. A link absent from the recorded training triples may still be true, leaving a real answer eligible to be used as a negative.
The paper illustrates the scale with a batch size of 1024 and 2 cached batches. For a particular query, there are 1024 − 1 other positions in the current batch, 2 × 1024 positions in the cache, and 1 self-negative proposal. The stated total of 3072 describes the scale of available comparisons. The known-positive mask can remove proposals for a particular query, and the candidate positions need not all correspond to different entities. The advantage comes from bringing many scores into the comparison while encoding far fewer separate query-candidate inputs.
Make highly scored alternatives matter in the loss
SimKGC learns from the scores by minimizing InfoNCE with an additive margin. For a given query, the loss compares the score of its recorded answer with the scores of its surviving negatives. It converts the scores into exponential weights and calculates how much of the combined weight goes to the answer. The negative logarithm penalizes a small share. The goal is to make the recorded answer competitive with the alternatives that currently receive substantial weight.
ℒ = −log {exp[(φ(h, r, t) − γ)/τ] /
[exp[(φ(h, r, t) − γ)/τ] + ∑ᵢ₌₁^|𝒩| exp[φ(h, r, t′ᵢ)/τ]]}
The symbol ℒ is the training loss for the query. The operation log is the natural logarithm, the leading minus sign makes a smaller answer share produce a larger loss, and exp is the exponential function. The function φ scores a triple by cosine similarity between its query and candidate embeddings, with values in [-1, 1]. Here h is the head, r the relation, and t the recorded tail. The positive score is reduced by the additive margin γ before it is divided by the temperature τ. The slash between the numerator and denominator gives the positive weight’s share of the total. The sum ∑ runs over indices i from 1 through |𝒩|, where the bars denote the number of retained negatives. Each t′ᵢ is the corresponding negative tail. The denominator adds all their exponential weights to the adjusted positive weight.
The margin reduces the score credited to the positive inside the training comparison. In consequence, making the recorded answer marginally more similar than a rival may still leave it with a modest share of the weight. The system is encouraged to establish a clearer gap. The temperature has a separate effect. With a smaller temperature, differences between scores lead to sharper differences between their exponential weights. Among the negatives, candidates already scoring highly then have more influence on how the encoders are updated than candidates at the bottom of the comparison.
log(1/τ)
The expression log(1/τ) is the quantity the authors make learnable. Here / forms the reciprocal of the temperature τ, 1 is its numerator, and log takes the natural logarithm. Learning this value lets the system change the scale applied to the scores during training. The authors caution that highly concentrated attention to the hardest alternatives can make the learner more sensitive to label errors. A valid but unrecorded answer may receive a strong score and, if treated as negative, a correspondingly strong penalty.
In the main configuration, the temperature starts at 0.05 and the additive margin is 0.02. The margin and temperature concern the training objective. The cosine score used to rank candidates at inference has a simpler job. It compares the learned vectors using the geometry shaped by those training settings.
Rank from a reusable inventory and add a neighborhood preference
At inference, the system first needs embeddings for candidate entities. Those can be calculated once for the inventory to be searched. Each test triple yields a query for the forward direction and a query for the reverse direction. The query encoder processes each separately. Once its vector is ready, scoring candidates consists of dot products with embeddings already available. In the reverse query, the original tail is part of the query input, while the original head is one of the possible answers in the inventory.
|ℰ| + 2 × |𝒯|
This is the paper’s count of BERT forward passes for SimKGC. The symbol ℰ denotes the candidate entity set, 𝒯 the test triple set, and the surrounding bars count the members of each set. The 2 accounts for the forward and reverse queries per test triple. Multiplication × counts those queries across the test set, and addition + includes the cost of encoding the candidate inventory.
|ℰ| × 2 × |𝒯|
This is the corresponding count for a cross-encoder that processes each query-candidate pair through BERT. Again |ℰ| counts candidate entities and |𝒯| counts test triples. The 2 represents the prediction directions, and multiplication × requires a separate pass for every combination. These expressions count text encoder calls. SimKGC must still store or access the candidate vectors and perform similarity search. The authors point to Faiss as an option for retrieving the highest-scoring candidates from precomputed vectors.
When the training graph provides usable connections, the authors make one extra adjustment. They increase the score of a candidate found within a specified number of graph steps from the query entity. A step is a hop along the graph. The adjustment expresses a preference for entities near each other in the known graph, even if their descriptions do not make that proximity obvious. It changes the ranking score after the text comparison.
argmaxₜᵢ [cos(eₕᵣ, eₜᵢ) + α · 𝟙(tᵢ ∈ ℰₖ(h))]
The operator argmaxₜᵢ returns the candidate tᵢ with the largest adjusted score. The cosine term cos(eₕᵣ, eₜᵢ) compares the query vector for head h and relation r with the vector of candidate tᵢ. The factor α is a non-negative bonus, multiplication is indicated by ·, and 𝟙 is an indicator that is one if the condition holds and zero otherwise. The membership symbol ∈ asks whether tᵢ belongs to ℰₖ(h), the set of neighbors within k hops of h in the training graph. The plus sign adds the bonus to the cosine score when the indicator is active.
Every candidate that qualifies for the bonus receives the same increment. Moving a nearby candidate up therefore depends on how small its original score gap is relative to a candidate outside the neighborhood. The score adjustment does not specify which relation should hold between nearby entities. That distinction still depends on the text score. In the inductive setting examined by the paper, the test entities are absent from the training graph. The paper uses text-based ranking there without the training-neighborhood bonus.
Experiments and results
What the benchmarks ask the system to rank
WN18RR contains around 41k synsets and 11 relations from WordNet. A synset here is an entity representing a word sense through a group of synonymous expressions. FB15k-237 contains around 15k Freebase entities and 237 relations. The two datasets descend from WN18 and FB15k, respectively. The paper explains that the original collections had inverse relations that allowed information to leak into test predictions. The revised datasets addressed this by removing inverse relations implicated in the leakage. For both revised collections, SimKGC starts from the textual descriptions made available by the KG-BERT work.
Wikidata5M contains around 5 million entities and around 20 million triples. It comes with descriptions of entities and relations. Its transductive and inductive settings use the distinction between training familiarity and test-time novelty directly. In Wikidata5M-Trans, every test entity also belongs to the training entity set. In Wikidata5M-Ind, the training and test entity sets are disjoint. Consequently, the inductive evaluation asks whether a system can turn new descriptions into useful representations under relations learned from different entities.
The candidate inventories also differ. The cited protocol ranks 7,475 test entities in the inductive setting and around 4.6 million entities in the transductive setting. The inductive result shows how the method works with unseen entities under that smaller retrieval problem. The transductive result tests ranking across the much larger inventory with familiar entities. A ranking score reflects how many competitors there are and how well the method distinguishes among them. Comparisons with earlier methods on the same split are therefore more informative than a comparison of the absolute scores across the two splits.
The datasets offer different mixtures of graph evidence and written evidence. WN18RR describes lexical entities, while FB15k-237 and Wikidata5M use graph entities from their respective knowledge bases. Description sources and the availability of training neighbors determine what the text encoder can see. The authors’ shared training settings help make the evaluation a test of one general design across these conditions, with learning rates and training duration chosen for each dataset.
How a ranked prediction is counted
Mean reciprocal rank, or MRR, gives each prediction a contribution equal to the reciprocal of the recorded answer’s position in the ranking. It then averages those contributions. The measure is especially sensitive to changes near the front. Moving the expected answer from a low rank to first place changes its contribution more than shifting it by the same number of places far down the ranking. MRR rewards a system that consistently puts the expected entity close to the beginning, even when it is not first on every query.
Hits at a cutoff, abbreviated H@k, measures the proportion of queries where the expected entity appears within the first k candidates. The reported cutoffs are H@1, H@3, and H@10. H@1 is the strict top-answer measure. H@10 gives credit when the answer remains in a short list, even if several alternatives are ahead of it. A change can help the first measure and hurt the wider one because the measures reward different movements in the ordering.
The evaluation is filtered. For each query, other entities known to form a true triple are ignored when determining the rank of the designated answer. A fact can qualify for that treatment if it is recorded in training, validation, or test data. Suppose the query has several recorded answers and the system puts one of them above the particular answer being evaluated. Counting that other entity as a rival would lower the designated answer’s rank despite the system having retrieved a known fact. Filtering removes that penalty where the data identify the other answer. The metrics average the results of head and tail prediction.
The filter used for benchmark scoring and the mask used for training address related problems with different information. The training mask can use facts available to the learner in the training graph. The evaluation filter uses the known facts across all benchmark splits to interpret a ranking after prediction. Both depend on which true triples the graph has recorded. An omitted fact can escape either procedure. This is the reason the authors supplement the automatic measures with human judgments on a set of Wikidata5M-Trans predictions.
Training and comparison conditions
The two encoders begin at bert-base-uncased, the English BERT checkpoint named in the paper. Entity descriptions are capped at 50 tokens. The experiments use AdamW with a learning rate that decays linearly. The typical batch for the main results contains 1024 examples, and training runs on 4 V100 GPUs. With that batch size and the cache, the experiments put the paper’s negative reuse strategy into practice at the scale described in the method.
The selected learning rate is 5 × 10⁻⁵ on WN18RR, 10⁻⁵ on FB15k-237, and 3 × 10⁻⁵ on Wikidata5M. Training lasts 50 epochs on WN18RR, 10 on FB15k-237, and 1 on each Wikidata5M setting. An epoch is a pass through the training data. The appendix reports roughly 3 minutes per epoch for WN18RR, roughly 12 minutes for FB15k-237, and approximately 12 hours for Wikidata5M in either setting. Those are timings for the stated setup. They give a sense of how data scale affects the cost of applying the same basic encoder and loss design.
The neighborhood bonus is 0.05. The authors use a 5-hop neighborhood on WN18RR and a 2-hop neighborhood on the other datasets where the training graph can supply those neighbors. The descriptions, selected learning rates, and training schedules give the reader the conditions behind the reported figures. The neighborhood rule is one place where the final system uses an explicit setting for the breadth of graph evidence. Its effect is examined separately on the transductive Wikidata benchmark.
The results compare SimKGC with established embedding-based and text-based methods. The main comparisons draw on reported values from earlier work, including TransE and DKRL numbers from the KEPLER study and RotatE values from the GraphVite benchmark. The WN18RR and FB15k-237 comparison also identifies figures taken from the StAR work. The embedding baselines that require a fitted vector for each entity do not supply a result on the entity-disjoint Wikidata5M setting. Text-based methods able to represent new entities supply the relevant comparison there.
Where SimKGC improves the ranking
The WN18RR test MRR comparison goes from a previous best of 47.6 to 66.6 for SimKGC. On Wikidata5M-Trans, the previous best of 29.0 rises to 35.8 with SimKGC. These are distinct gains on distinct graphs. The WN18RR comparison is for lexical entities. The transductive Wikidata5M comparison involves searching a substantially larger candidate inventory.
Previous best and SimKGC on Wikidata5M-Trans test MRR
SimKGC raises the reciprocal rank of recorded answers in the large transductive candidate inventory.
The numbers
| System or setting | MRR |
|---|---|
| Previous best | 29.0 |
| SimKGC (this paper) | 35.8 |
For Wikidata5M-Ind, the paper reports test MRR of 71.4 for SimKGC against the preceding best of 49.3. The result establishes a gain within a protocol in which the entities answering test queries are distinct from those used to train the encoders. The candidate descriptions provide the way to embed them, and the shared scoring rule determines which ones match a given relation-aware query.
Previous best and SimKGC on Wikidata5M-Ind test MRR
SimKGC ranks recorded answers higher among the unseen entities of the inductive benchmark.
The numbers
| System or setting | MRR |
|---|---|
| Previous best | 49.3 |
| SimKGC (this paper) | 71.4 |
The authors report statistical significance for the Wikidata5M results under a paired Student’s t-test with a p-value of 0.05. In this context, pairing uses the fact that the methods are evaluated on common prediction cases. The statement supports a comparison under the evaluation protocol. The size and composition of each candidate pool still matter to how the resulting MRR should be read.
FB15k-237 has a different outcome. SimKGC reaches 33.6% MRR on its test ranking, compared with 35.8% for the stronger reported result. The authors note that this graph has an average degree of around 37 per entity and around 15k entities. They suggest that its density favors methods that learn transferable patterns of graph relations. A text match can indicate which people, places, or objects are relevant to a query while leaving the exact relational connection unresolved. They also cite earlier work arguing that many FB15k-237 links cannot be predicted from the available information. These are proposed explanations for the performance gap. The benchmark comparison does not estimate how much each explanation contributes.
The cost of preparing candidates
On Wikidata5M-Trans, preparing around 4.6 million SimKGC entity embeddings takes around 40 minutes on 2 GPUs. The paper gives an estimate of 3000 hours for a cross-encoder such as KG-BERT. The measured SimKGC number refers to candidate embedding computation, which the authors describe as the most expensive stage of its inference. The cross-encoder figure is an estimate for a design that repeats text encoding across query-candidate combinations.
The comparison helps explain why the architecture is relevant beyond the training loss. Extending the candidate inventory adds entity descriptions to encode. Once those vectors are ready, subsequent queries can reuse them. The expense of answering an individual query still includes encoding the head and relation and searching the inventory. The paper points out that ConvE and StAR already offer related computational advantages. The evidence here is that SimKGC preserves the reuse property while learning strong text-based rankings on the tested graphs.
What the ablations show
The number of negatives and the loss both matter
The main results compare a complete system with earlier methods. The WN18RR ablation asks a narrower question using SimKGC with in-batch negatives. The reference configuration uses a batch size of 256 and an InfoNCE objective with 255 negatives. Reducing the negative count to 5 lowers the test MRR from 64.4 to 48.8. In a further comparison, replacing InfoNCE with the paper’s margin ranking loss yields 39.5. The authors take the series as evidence that negative count and loss design both contribute, and that loss choice has the larger effect in their tested comparisons.
Negative count and loss choices on WN18RR test MRR
The InfoNCE reference setting with more negatives ranks the recorded answers highest in this ablation.
The numbers
| System or setting | MRR |
|---|---|
| InfoNCE with 255 negatives (this paper) | 64.4 |
| InfoNCE with 5 negatives | 48.8 |
| Margin ranking loss comparison | 39.5 |
The ordinary margin comparison illustrates why the type of weighting can matter even when the system uses the same cosine score. It asks how much each negative violates a desired score gap, then averages the penalties over the negatives. A rival far below the answer already satisfies the gap, so its contribution is zero. For rivals that violate the gap, the penalty increases with the size of the violation. Each term has the same coefficient in the average.
(1/|𝒩|) ∑ᵢ₌₁^|𝒩| max(0, λ + φ(h, r, t′ᵢ) − φ(h, r, t))
This expression is the comparison margin loss. The bars in |𝒩| count the available negatives, and 1/|𝒩| is their common averaging weight. The sum ∑ runs over i from 1 to that count. The max operator chooses the larger of 0 and the computed violation, so a negative violation incurs no penalty. The margin λ is set to 0.8 in this comparison. The function φ is the cosine score for head h, relation r, and the supplied tail. The term with t′ᵢ scores negative candidate i, while the term with t scores the recorded tail. The plus and minus operations express how much the rival score plus the required gap exceeds the positive score.
The authors then introduce a temperature-weighted margin variant. Its first component is the same violation for a candidate considered individually. Large violations mark alternatives on which the scoring function is furthest from meeting the desired margin.
s(t′ᵢ) = max(0, λ + φ(h, r, t′ᵢ) − φ(h, r, t))
The symbol s denotes the violation function for the negative t′ᵢ, indexed by i. The max operation sets the result to 0 if the remaining expression is negative. The symbol λ gives the required gap, and φ scores the triple with head h and relation r. It evaluates the candidate t′ᵢ and the recorded tail t in the two terms. Adding the margin to the rival’s score and subtracting the true score produces the quantity tested against zero.
exp[s(t′ᵢ)/τ] / ∑ⱼ₌₁^|𝒩| exp[s(t′ⱼ)/τ]
The expression gives the averaging weight for negative t′ᵢ. The function s measures its violation and τ is the temperature, set to 0.05 for this variant. Each slash inside an exponential scales a violation by the temperature, and exp converts it into a positive weight. The sum ∑ runs over negative indices j from 1 to |𝒩|, the number of negatives. The denominator adds the weights of the candidates t′ⱼ, and the outer division gives candidate i its share of that total. This replaces the uniform weight in the ordinary margin loss.
The weighted variant performs better than the ordinary margin loss. This gives the authors a comparison within the margin formulation that is consistent with their account of InfoNCE. More strongly violating alternatives can be made more influential by a change to the weighting. The paper relates this to the self-adversarial negative weighting proposed for RotatE. It also says that most of its hyper-parameters were chosen with InfoNCE in mind. The margin variant’s result is therefore informative about the value of emphasizing difficult negatives, while its best attainable result under separate optimization remains open.
A related experiment studies negative count with the batch size fixed at 1024 on WN18RR. The authors change the number of comparisons that reach the loss by masking scores in the softmax, the normalization that turns exponential scores into relative weights. MRR improves across the reported range from 48.8 to 67.1. This experiment distinguishes adding more competitors to the loss from simply changing how many examples are loaded into each batch. It is a separate comparison from the headline benchmark result. The numerical endpoints describe the tested sweep; they do not establish how the trend would continue outside it. The appendix also reports batch-size comparisons for the in-batch variant on Wikidata5M-Trans and FB15k-237.
Self-negatives help where returning the query entity is tempting
The main result tables compare configurations that use different combinations of the three negative sources. The in-batch-only variant is already strong with the large batch. Combining in-batch comparisons with cached representations gives the loss more alternatives. Self-negatives change the kind of selection pressure as well as adding an alternative. They guarantee that the query’s own entity can become a competitor when it would otherwise receive a high score merely because its description is familiar.
The clearest numerical result stated for this change is on Wikidata5M-Ind. In the comparison that adds self-negatives, test MRR rises from 60.3% to 71.3%. The authors suggest that in the inductive setting, the system relies more heavily on text matching and is more susceptible to returning the head entity. The improvement supports the value of the training change in that setup. The paper explains the mechanism through text overlap, while the benchmark result measures the consequence for rank.
The effect across cutoff metrics is mixed. The authors observe that adding self-negatives tends to help H@1 and hurt H@10. The top position can improve when the system learns to reject a deceptively similar entity. The broader short list can suffer if the learned preference also discourages text matches that would have kept a correct answer within reach. The latter is the authors’ proposed interpretation. The observed difference between the metrics shows why a gain from a hard-negative policy depends on which part of the ranking the application needs.
All three sources together generally produce the strongest results in the reported comparisons, with exceptions. That qualification matters because the sources address distinct failure modes. In-batch comparisons make efficient use of current vectors. Cached comparisons give a larger set at the price of staleness. Self-negatives supply a particular kind of difficult alternative. The experiments compare usable combinations of these sources, without identifying a single composition that leads on every dataset and ranking cutoff.
The appendix additionally compares InfoNCE with and without the additive margin on FB15k-237. The authors report a consistent but small benefit from adding the margin in their experiments. This is a comparison between versions of the same contrastive objective. It concerns the adjustment to the positive score, whereas the WN18RR loss comparison concerns the way positive and negative scores are combined and weighted.
The graph bonus helps a little on a graph with familiar entities
The reranking ablation on Wikidata5M-Trans compares performance with the neighborhood adjustment against performance without it. The authors report a slight improvement across the automatic metrics with the adjustment. A nearby entity evidently gains a helpful advantage often enough in this test to improve the ranking in aggregate. Since the text score is already available on both sides of the comparison, the result attributes the additional lift to the distance-based bonus under those conditions.
The rule cannot favor one qualifying neighbor over another through a larger bonus. Both receive the same lift. A useful change in order therefore happens when a candidate near the head competes with a candidate outside the qualifying neighborhood. This helps explain the character of the improvement. The geometry of the graph contributes a local preference to scores that already reflect the descriptive text and the query relation. The ablation establishes the value of that preference on the tested transductive split. It leaves more elaborate ways of using graph structure for future study.
Relations with several candidates are harder to score and to judge
The paper groups relations by the cardinality of their head and tail arguments. It uses the categories one-to-one, one-to-many, many-to-one, and many-to-many. These describe how many entities can occur on one side for a given entity on the other. Because the benchmark asks questions in both directions, the same relation can present a restricted answer space in one direction and a crowded answer space in the other. Birthplace makes the asymmetry concrete. Given a person, the requested answer is a place. Given a place, many people may satisfy the relation.
The analysis reports lower performance when the system has to predict the side with many possible entities. One cause is competition from plausible but incorrect candidates. Another comes from the benchmark’s incomplete set of known facts. When several answers are true and only some are recorded, filtering can ignore the recorded alternatives. It has no basis to ignore valid answers missing from the graph. The resulting rank can reflect both a choice made by the scorer and a gap in the reference data.
The paper’s examples illustrate both cases. In one query, Marbletown, Ulster County, and New York are accepted as correct answers in the analysis. The example makes it possible to see how several geographic descriptions can fit the relationship under review. In another, several people can genuinely share the same birthplace, leaving a correct prediction vulnerable to being scored as wrong if its particular link has not been entered. The authors also show a case where the entity named http server is closely related to the expected entity but still gives the wrong completion. A plausible association can therefore indicate either an omitted fact or a genuine ranking mistake. The distinction requires evidence about the relation and the entities.
Human review and a view of the learned entity space
To examine automatic misses, the authors draw a random sample from the Wikidata5M-Trans test predictions counted as wrong by H@1. The human evaluation specifies a sample size of 100 wrong predictions and reports head and tail prediction separately. Reviewers consider the textual information and can classify a prediction as correct, incorrect, or unknown when the evidence does not let them decide. The average judged correct is 49% of the sampled automatic misses.
That percentage has a specific denominator. It concerns predictions already selected because their first-ranked entity failed the benchmark test. It is not an H@1 for the entire split. The result gives direct evidence that the benchmark sometimes penalizes true completions. It also shows why a revised full-split score would need more than a mechanical correction from this sample. Unknown cases and the coverage of human judgment enter into how a broader estimate could be constructed.
A separate qualitative analysis plots candidate embeddings from Wikidata5M-Trans. The authors choose the 8 largest categories using the graph’s instance of links, then select 50 entities at random from each category. The candidate encoder supplies the vectors. The paper uses t-SNE to make a two-dimensional view in which points with similar representations can appear near one another. Several categories separate in the plot, and Community and Village overlap. The authors observe that those concepts can overlap in meaning. The figure shows category organization in a sample of the candidate space. The link-prediction experiments are the evidence for what happens when those vectors are used with relation-aware queries.
Limitations
Limits the authors identify
The authors point to interpretability as an open problem. In TransE, a relation is expressed as a translation between representations. In RotatE, it has the interpretation of a rotation in complex space. A SimKGC score emerges from contextual encoding, pooling, and the angle between the resulting vectors. This explains how the score is calculated, but it gives a less direct account of which piece of the description, which fact from training, or which relation pattern makes a given prediction appropriate. The paper leaves more informative explanations for individual predictions to future work.
False negatives are another stated limitation. The training mask can protect links that the training graph already records. Its evidence is the record of known triples, which is incomplete by the premise of the task. Adding more alternatives to the comparison creates more opportunities to find informative competitors and can also expose valid unrecorded ones. The risk matters especially when the loss concentrates its updates on alternatives with high scores. If a missing true link is exactly the sort of answer the learned geometry finds appealing, a strong penalty pushes against knowledge the system might otherwise recover.
The authors also limit the reach of the graph adjustment. The inductive test entities are absent from the training graph, so the neighborhood bonus has no training neighborhood to use for them. For the settings where it does apply, the authors describe it as a simple local preference and propose more expressive uses of graph structure, including approaches related to graph neural networks. The small positive reranking ablation supplies evidence for one local rule on Wikidata5M-Trans. It leaves open what a richer treatment of paths or global structure would contribute.
Compute restricts the negative-count study. The paper does not experiment with batch sizes above 1024. The authors cite memory demand and possible optimization difficulties as concerns when the comparison set grows. They also discuss future work on a momentum-based method for retaining more negatives. The observed trend in their tested range supports increasing negative coverage within that range. It does not give a scaling rule for larger batches, longer caches, or greater quantities of stale vectors.
The authors call attention to the weaker result on FB15k-237 and to the possibility of combining their system with graph embeddings. They discuss denser connections and earlier evidence about hard-to-predict links as possible explanations for the outcome. The experiments do not include the proposed ensemble. Similarly, the authors expect stronger pretrained encoders might improve the method, but their reported architecture begins with the stated BERT checkpoint. Both are avenues they identify, with their effects left unmeasured.
Measurement is an open question by the authors’ account. Human evaluation finds that a substantial fraction of sampled first-ranked misses are judged correct. It does not resolve how a completion benchmark should decide whether all plausible answers to a query are valid or determine cases where the available text leaves the relation uncertain. The paper’s automatic results remain meaningful for matching the recorded facts. The human results qualify how fully that task measures recovery of true links.
Limits implied by the setup
The inductive result is evidence about unfamiliar entities with descriptions available in the Wikidata5M-Ind benchmark. Training on disjoint entity sets addresses novelty at the entity level. The task still provides the relation in the query and a defined candidate inventory. It does not test the discovery of an unnamed relation, the creation of an entity absent from the candidate set, or prediction from an entity that has no usable text. The selected BERT initialization and description cap are part of the conditions under which the method is shown to work.
The candidate inventories also bound the interpretation. A system can face unfamiliar entities and still have fewer rivals to distinguish among for a given query. That is how the inductive evaluation is set up here. The gain over prior inductive results is informative under the shared protocol. The higher absolute MRR relative to Wikidata5M-Trans gives no separate estimate of what would happen if the unseen-entity set grew to the size of the transductive inventory.
The results also cannot determine where a particular piece of factual information originated. SimKGC begins with pretrained encoders, reads descriptions, trains on graph triples, and can use training-neighbor information in specified settings. A correct answer may reflect a fact stated in a description, language regularities learned before task training, a pattern learned from graph supervision, or several of these influences together. The reported ablations isolate parts of the learning objective and ranking process. They do not trace a prediction back to a particular source of knowledge.
The inference results measure a computational advantage associated with separable encoding. The formal comparison counts forward passes, and the Wikidata5M-Trans timing reports candidate embedding preparation with a specific GPU setup. A deployed search would also need to manage the vectors and search them, and the measured preparation time alone does not give its end-to-end response time. The gap between a measured stage and an estimated cross-encoder cost should therefore be read in light of what the paper times and what it derives from the architecture.
The visual and human analyses have different scopes. Cluster organization in a two-dimensional projection does not show whether the query encoder has learned to distinguish specific directed relations. Human review addresses the truth of sampled outputs but leaves cases unknown when text lacks sufficient evidence. The benchmark scores, the review, and the projection each answer a different question about the system. Taken together, they support a claim about effective ranking from descriptions under the tested conditions, while leaving broader questions about fact verification and the origin of the evidence open.
What came after
Later works that cite SimKGC place the paper alongside several different uses of language and graph information. Their stated subjects indicate how the research questions relate to SimKGC. The details of how each work uses the citation are unspecified, so the connections below concern the tasks and approaches identified by the works themselves.
Unifying Large Language Models and Knowledge Graphs is a roadmap about bringing the two kinds of systems together. SimKGC illustrates one direction in that broader relationship. Written descriptions and pretrained encoders help propose links for a graph, and recorded links provide examples from which the encoders learn. The roadmap addresses the wider relationship between the two forms of representation, of which text-based graph completion is one case.
Joint Knowledge Base Completion and Question Answering brings completion together with answering questions, using a combination of large and small language systems. In SimKGC, a query already has a graph entity and relation specified, and success means ranking the recorded answer entity highly. Joint completion and question answering puts the completion problem in contact with a second task that needs facts to answer questions. The connection is especially direct because question answering is one of the motivations the SimKGC authors give for improving graph coverage.
Risk-Controlled Event-Driven Cascading Updates addresses consistency restoration when changes lead to further graph updates. SimKGC scores individual candidate links for a given query. Restoring consistency after a change raises a question about how updates interact across the graph and what risks arise as one leads to another. The work’s stated focus connects completion with the ongoing maintenance of graph facts. A candidate link and the consequences of applying updates belong to different parts of that maintenance problem.
Linguistic Initialization for Inductive Reasoning connects most directly with SimKGC’s treatment of unseen entities. SimKGC can form a candidate embedding from text when the entity has no vector learned from the training graph. The later work’s focus is linguistic initialization for inductive reasoning in heterogeneous knowledge graphs. Its subject carries the question of how language can support unfamiliar entities into a reasoning setup with heterogeneous graph information.
MAKI addresses structure-aware graph completion through multilayer aligned knowledge injection. SimKGC combines text-derived similarity with an optional neighborhood preference once candidates have been scored. MAKI’s stated focus places graph knowledge within a multilayer injection approach. This connects to the original paper’s open question about how to bring graph structure more fully into text-based completion, beyond adding the same score bonus to candidates within a fixed distance.
Cite
Cite as Liang Wang, Wei Zhao, Zhuoyu Wei and Jingming Liu. 2022. SimKGC: Simple Contrastive Knowledge Graph Completion with Pre-trained Language Models. Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).
@inproceedings{wang2022simkgc,
title = {{SimKGC: Simple Contrastive Knowledge Graph Completion with Pre-trained Language Models}},
author = {Liang Wang, Wei Zhao, Zhuoyu Wei and Jingming Liu},
booktitle = {Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
year = {2022},
doi = {10.18653/v1/2022.acl-long.295},
eprint = {2203.02167},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/2022.acl-long.295}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/wang-2022-simkgc-simple-contrastive-knowledge-graph/
References
- Ivana Balazevic, Carl Allen, and Timothy Hospedales. 2019. TuckER: Tensor factorization for knowledge graph completion (https://doi.org/10.18653/v1/D19-1522). In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 5185–5194, Hong Kong, China. Association for Computational Linguistics. our card
- Kurt Bollacker, Colin Evans, Praveen Paritosh, Tim Sturge, and Jamie Taylor. 2008. Freebase: a collaboratively created graph database for structuring human knowledge. In Proceedings of the 2008 ACM SIGMOD international conference on Management of data, pages 1247–1250. OpenAlex ↗ · Scholar ↗
- Antoine Bordes, Nicolas Usunier, Alberto García-Durán, Jason Weston, and Oksana Yakhnenko. 2013. Translating embeddings for modeling multi-relational data (https://proceedings.neurips.cc/paper/2013/hash/1cecc7a77928ca8133fa24680a88d2f9-Abstract.html). In Advances in Neural Information Processing Systems 26: 27th Annual Conference on Neural Information Processing Systems 2013. Proceedings of a meeting held December 5-8, 2013, Lake Tahoe, Nevada, United States, pages 2787–2795. our card
- Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners (https://proceedings.neurips.cc/paper/2020/hash/1457c0d6bfcb4967418bfb8ac142f64a-Abstract.html). In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual. our card
- Yixin Cao, Xiang Ji, Xin Lv, Juanzi Li, Yonggang Wen, and Hanwang Zhang. 2021. Are missing links predictable? an inferential benchmark for knowledge graph completion (https://doi.org/10.18653/v1/2021.acl-long.534). In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 6855–6865, Online. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey E. Hinton. 2020. A simple framework for contrastive learning of visual representations (http://proceedings.mlr.press/v119/chen20j.html). In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, volume 119 of Proceedings of Machine Learning Research, pages 1597–1607. PMLR. our card
- Daniel Daza, Michael Cochez, and Paul Groth. 2021. Inductive entity representations from text via link prediction. In Proceedings of the Web Conference 2021, pages 798–808. OpenAlex ↗ · Scholar ↗
- Tim Dettmers, Pasquale Minervini, Pontus Stenetorp, and Sebastian Riedel. 2018. Convolutional 2d knowledge graph embeddings (https://www.aaai.org/ocs/index.php/AAAI/AAAI18/paper/view/17366). In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence, (AAAI-18), the 30th innovative Applications of Artificial Intelligence (IAAI-18), and the 8th AAAI Symposium on Educational Advances in Artificial Intelligence (EAAI-18), New Orleans, Louisiana, USA, February 2-7, 2018, pages 1811–1818. AAAI Press. OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding (https://doi.org/10.18653/v1/N19-1423). In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota. Association for Computational Linguistics. our card
- Emily Dinan, Stephen Roller, Kurt Shuster, Angela Fan, Michael Auli, and Jason Weston. 2019. Wizard of wikipedia: Knowledge-powered conversational agents (https://openreview.net/forum?id=r1l73iRqKm). In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net. our card
- Tianyu Gao, Xingcheng Yao, and Danqi Chen. 2021. Simcse: Simple contrastive learning of sentence embeddings (https://arxiv.org/abs/2104.08821). ArXiv preprint, abs/2104.08821. our card
- Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre H. Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Ávila Pires, Zhaohan Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Koray Kavukcuoglu, Rémi Munos, and Michal Valko. 2020. Bootstrap your own latent - A new approach to self-supervised learning (https://proceedings.neurips.cc/paper/2020/hash/f3ada80d5c4ee70142b17b8192b2958e-Abstract.html). In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual. our card
- Beliz Gunel, Jingfei Du, Alexis Conneau, and Veselin Stoyanov. 2021. Supervised contrastive learning for pre-trained language model fine-tuning (https://openreview.net/forum?id=cu7IUiOhujH). In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net. our card
- Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross B. Girshick. 2020. Momentum contrast for unsupervised visual representation learning (https://doi.org/10.1109/CVPR42600.2020.00975). In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2020, Seattle, WA, USA, June 13-19, 2020, pages 9726–9735. IEEE. our card
- Jin Huang, Wayne Xin Zhao, Hongjian Dou, Ji-Rong Wen, and Edward Y. Chang. 2018. Improving sequential recommendation with knowledge-enhanced memory networks (https://doi.org/10.1145/3209978.3210017). In The 41st International ACM SIGIR Conference on Research & Development in Information Retrieval, SIGIR 2018, Ann Arbor, MI, USA, July 08-12, 2018, pages 505–514. ACM. OpenAlex ↗ · Scholar ↗
- Tri Huynh, Simon Kornblith, Matthew R. Walter, Michael Maire, and Maryam Khademi. 2020. Boosting contrastive self-supervised learning with false negative cancellation (https://arxiv.org/abs/2011.11765). ArXiv preprint, abs/2011.11765. OpenAlex ↗ · Scholar ↗
- Zhengbao Jiang, Frank F. Xu, Jun Araki, and Graham Neubig. 2020. How can we know what language models know? (https://doi.org/10.1162/tacl_a_00324) Transactions of the Association for Computational Linguistics, 8:423–438. our card
- Jeff Johnson, M. Douze, and H. Jégou. 2021. Billion-scale similarity search with gpus. IEEE Transactions on Big Data, 7:535–547. our card
- Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense passage retrieval for open-domain question answering (https://doi.org/10.18653/v1/2020.emnlp-main.550). In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 6769–6781, Online. Association for Computational Linguistics. our card
- Bosung Kim, Taesuk Hong, Youngjoong Ko, and Jungyun Seo. 2020. Multi-task learning for knowledge graph completion with pre-trained language models (https://doi.org/10.18653/v1/2020.coling-main.153). In Proceedings of the 28th International Conference on Computational Linguistics, pages 1737–1743, Barcelona, Spain (Online). International Committee on Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Phuc H Le-Khac, Graham Healy, and Alan F Smeaton. 2020. Contrastive representation learning: A framework and review. IEEE Access. OpenAlex ↗ · Scholar ↗
- Jinhyuk Lee, Mujeen Sung, Jaewoo Kang, and Danqi Chen. 2021. Learning dense representations of phrases at scale (https://doi.org/10.18653/v1/2021.acl-long.518). In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 6634–6647, Online. Association for Computational Linguistics. our card
- Song Liu, Haoqi Fan, Shengsheng Qian, Yiru Chen, W. Ding, and Zhongyuan Wang. 2021. Hit: Hierarchical transformer with momentum contrast for video-text retrieval (https://arxiv.org/abs/2103.15049). ArXiv preprint, abs/2103.15049. OpenAlex ↗ · Scholar ↗
- Weijie Liu, Peng Zhou, Zhe Zhao, Zhiruo Wang, Qi Ju, Haotang Deng, and Ping Wang. 2020. K-BERT: enabling language representation with knowledge graph (https://aaai.org/ojs/index.php/AAAI/article/view/5681). In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pages 2901–2908. AAAI Press. our card
- L. V. D. Maaten and Geoffrey E. Hinton. 2008. Visualizing data using t-sne. Journal of Machine Learning Research, 9:2579–2605. OpenAlex ↗ · Scholar ↗
- Chaitanya Malaviya, Chandra Bhagavatula, Antoine Bosselut, and Yejin Choi. 2020. Commonsense knowledge base completion with structural and semantic context. In AAAI. our card
- George A. Miller. 1992. WordNet: A lexical database for English (https://aclanthology.org/H92-1116). In Speech and Natural Language: Proceedings of a Workshop Held at Harriman, New York, February 23-26, 1992. our card
- Jianmo Ni, Noah Constant, Ji Ma, Keith B Hall, Daniel Cer, Yinfei Yang, et al. 2021. Sentence-t5: Scalable sentence encoders from pre-trained text-to-text models (https://arxiv.org/abs/2108.08877). ArXiv preprint, abs/2108.08877. our card
- Maximilian Nickel, Volker Tresp, and Hans-Peter Kriegel. 2011. A three-way model for collective learning on multi-relational data (https://icml.cc/2011/papers/438\_icmlpaper.pdf). In Proceedings of the 28th International Conference on Machine Learning, ICML 2011, Bellevue, Washington, USA, June 28 - July 2, 2011, pages 809–816. Omnipress. OpenAlex ↗ · Scholar ↗
- Fabio Petroni, Tim Rocktäschel, Sebastian Riedel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, and Alexander Miller. 2019. Language models as knowledge bases? (https://doi.org/10.18653/v1/D19-1250) In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 2463–2473, Hong Kong, China. Association for Computational Linguistics. our card
- Yingqi Qu, Yuchen Ding, Jing Liu, Kai Liu, Ruiyang Ren, Wayne Xin Zhao, Daxiang Dong, Hua Wu, and Haifeng Wang. 2021. RocketQA: An optimized training approach to dense passage retrieval for open-domain question answering (https://doi.org/10.18653/v1/2021.naacl-main.466). In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5835–5847, Online. Association for Computational Linguistics. our card
- Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. 2021. Learning transferable visual models from natural language supervision (http://proceedings.mlr.press/v139/radford21a.html). In Proceedings of the 38th International Conference on Machine Learning, ICML 2021, 18-24 July 2021, Virtual Event, volume 139 of Proceedings of Machine Learning Research, pages 8748–8763. PMLR. our card
- Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. 2018. Improving language understanding by generative pre-training. OpenAlex ↗ · Scholar ↗
- Colin Raffel, Noam M. Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, W. Li, and Peter J. Liu. 2019. Exploring the limits of transfer learning with a unified text-to-text transformer (https://arxiv.org/abs/1910.10683). ArXiv preprint, abs/1910.10683. our card
- Nils Reimers and Iryna Gurevych. 2019. Sentence-BERT: Sentence embeddings using Siamese BERT-networks (https://doi.org/10.18653/v1/D19-1410). In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 3982–3992, Hong Kong, China. Association for Computational Linguistics. our card
- Taylor Shin, Yasaman Razeghi, Robert L. Logan IV, Eric Wallace, and Sameer Singh. 2020. AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts (https://doi.org/10.18653/v1/2020.emnlp-main.346). In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 4222–4235, Online. Association for Computational Linguistics. our card
- Robyn Speer, Joshua Chin, and Catherine Havasi. 2017. Conceptnet 5.5: An open multilingual graph of general knowledge (http://aaai.org/ocs/index.php/AAAI/AAAI17/paper/view/14972). In Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence, February 4-9, 2017, San Francisco, California, USA, pages 4444–4451. AAAI Press. OpenAlex ↗ · Scholar ↗
- Fabian M. Suchanek, Gjergji Kasneci, and Gerhard Weikum. 2007. Yago: a core of semantic knowledge (https://doi.org/10.1145/1242572.1242667). In Proceedings of the 16th International Conference on World Wide Web, WWW 2007, Banff, Alberta, Canada, May 8-12, 2007, pages 697–706. ACM. OpenAlex ↗ · Scholar ↗
- Haitian Sun, Tania Bedrax-Weiss, and William Cohen. 2019a. PullNet: Open domain question answering with iterative retrieval on knowledge bases and text (https://doi.org/10.18653/v1/D19-1242). In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 2380–2390, Hong Kong, China. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Zhiqing Sun, Zhi-Hong Deng, Jian-Yun Nie, and Jian Tang. 2019b. Rotate: Knowledge graph embedding by relational rotation in complex space (https://openreview.net/forum?id=HkgEQnRqYQ). In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net. our card
- Komal Teru, Etienne Denis, and Will Hamilton. 2020. Inductive relation prediction by subgraph reasoning (http://proceedings.mlr.press/v119/teru20a.html). In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, volume 119 of Proceedings of Machine Learning Research, pages 9448–9457. PMLR. our card
- Kristina Toutanova, Danqi Chen, Patrick Pantel, Hoifung Poon, Pallavi Choudhury, and Michael Gamon. 2015. Representing text for joint embedding of text and knowledge bases (https://doi.org/10.18653/v1/D15-1174). In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 1499–1509, Lisbon, Portugal. Association for Computational Linguistics. our card
- Théo Trouillon, Johannes Welbl, Sebastian Riedel, Éric Gaussier, and Guillaume Bouchard. 2016. Complex embeddings for simple link prediction (http://proceedings.mlr.press/v48/trouillon16.html). In Proceedings of the 33nd International Conference on Machine Learning, ICML 2016, New York City, NY, USA, June 19-24, 2016, volume 48 of JMLR Workshop and Conference Proceedings, pages 2071–2080. JMLR.org. our card
- Denny Vrandečić and Markus Krötzsch. 2014. Wikidata: a free collaborative knowledgebase. Communications of the ACM, 57(10):78–85. our card
- Bo Wang, Tao Shen, Guodong Long, Tianyi Zhou, Ying Wang, and Yi Chang. 2021a. Structure-augmented text representation learning for efficient knowledge graph completion. In Proceedings of the Web Conference 2021, pages 1737–1748. OpenAlex ↗ · Scholar ↗
- Feng Wang and Huaping Liu. 2021. Understanding the behaviour of contrastive loss. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2495–2504. OpenAlex ↗ · Scholar ↗
- Liang Wang, Wei Zhao, and Jingming Liu. 2021b. Aligning cross-lingual sentence representations with dual momentum contrast. In EMNLP. OpenAlex ↗ · Scholar ↗
- Xiaozhi Wang, Tianyu Gao, Zhaocheng Zhu, Zhengyan Zhang, Zhiyuan Liu, Juanzi Li, and Jian Tang. 2021c. Kepler: A unified model for knowledge embedding and pre-trained language representation. Transactions of the Association for Computational Linguistics, 9:176–194. OpenAlex ↗ · Scholar ↗
- Zhen Wang, Jianwen Zhang, Jianlin Feng, and Zheng Chen. 2014. Knowledge graph embedding by translating on hyperplanes (http://www.aaai.org/ocs/index.php/AAAI/AAAI14/paper/view/8531). In Proceedings of the Twenty-Eighth AAAI Conference on Artificial Intelligence, July 27 -31, 2014, Québec City, Québec, Canada, pages 1112–1119. AAAI Press. OpenAlex ↗ · Scholar ↗
- Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, C. Zhang, and Philip S. Yu. 2019. A comprehensive survey on graph neural networks. IEEE Transactions on Neural Networks and Learning Systems, 32:4–24. our card
- Ruobing Xie, Zhiyuan Liu, Jia Jia, Huanbo Luan, and Maosong Sun. 2016. Representation learning of knowledge graphs with entity descriptions (http://www.aaai.org/ocs/index.php/AAAI/AAAI16/paper/view/12216). In Proceedings of the Thirtieth AAAI Conference on Artificial Intelligence, February 12-17, 2016, Phoenix, Arizona, USA, pages 2659–2665. AAAI Press. OpenAlex ↗ · Scholar ↗
- Lee Xiong, Chenyan Xiong, Ye Li, Kwok-Fung Tang, Jialin Liu, Paul N. Bennett, Junaid Ahmed, and Arnold Overwijk. 2021. Approximate nearest neighbor negative contrastive learning for dense text retrieval (https://openreview.net/forum?id=zeFrfgyZln). In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021. OpenReview.net. our card
- Bishan Yang, Wen-tau Yih, Xiaodong He, Jianfeng Gao, and Li Deng. 2015. Embedding entities and relations for learning and inference in knowledge bases (http://arxiv.org/abs/1412.6575). In 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings. our card
- Yinfei Yang, Gustavo Hernández Ábrego, Steve Yuan, Mandy Guo, Qinlan Shen, Daniel Cer, Yun-Hsuan Sung, Brian Strope, and Ray Kurzweil. 2019. Improving multilingual sentence embedding using bi-directional dual encoder with additive margin softmax (https://doi.org/10.24963/ijcai.2019/746). In Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI 2019, Macao, China, August 10-16, 2019, pages 5370–5378. ijcai.org. OpenAlex ↗ · Scholar ↗
- Liang Yao, Chengsheng Mao, and Yuan Luo. 2019. Kg-bert: Bert for knowledge graph completion (https://arxiv.org/abs/1909.03193). ArXiv preprint, abs/1909.03193. OpenAlex ↗ · Scholar ↗
- Yang You, Jing Li, Sashank J. Reddi, Jonathan Hseu, Sanjiv Kumar, Srinadh Bhojanapalli, Xiaodan Song, James Demmel, Kurt Keutzer, and Cho-Jui Hsieh. 2020. Large batch optimization for deep learning: Training BERT in 76 minutes (https://openreview.net/forum?id=Syx4wnEtvH). In 8th International Conference on Learning Representations, ICLR 2020, Addis Ababa, Ethiopia, April 26-30, 2020. OpenReview.net. our card
- Hanwen Zha, Zhiyu Chen, and Xifeng Yan. 2021. Inductive relation prediction by bert (https://arxiv.org/abs/2103.07102). ArXiv preprint, abs/2103.07102. OpenAlex ↗ · Scholar ↗
- Zhengyan Zhang, Xu Han, Zhiyuan Liu, Xin Jiang, Maosong Sun, and Qun Liu. 2019. ERNIE: Enhanced language representation with informative entities (https://doi.org/10.18653/v1/P19-1139). In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 1441–1451, Florence, Italy. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Zexuan Zhong, Dan Friedman, and Danqi Chen. 2021. Factual probing is [MASK]: Learning vs. learning to recall (https://doi.org/10.18653/v1/2021.naacl-main.398). In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 5017–5033, Online. Association for Computational Linguistics. our card