| { |
| "paper_id": "2020", |
| "header": { |
| "generated_with": "S2ORC 1.0.0", |
| "date_generated": "2023-01-19T16:21:48.130210Z" |
| }, |
| "title": "Relation Extraction with Contextualized Relation Embedding (CRE)", |
| "authors": [ |
| { |
| "first": "Xiaoyu", |
| "middle": [], |
| "last": "Chen", |
| "suffix": "", |
| "affiliation": {}, |
| "email": "" |
| }, |
| { |
| "first": "Rohan", |
| "middle": [], |
| "last": "Badlani", |
| "suffix": "", |
| "affiliation": {}, |
| "email": "rohan.badlani@cs.stanford.edu" |
| } |
| ], |
| "year": "", |
| "venue": null, |
| "identifiers": {}, |
| "abstract": "Relation extraction (RE) is the task of identifying relation instance(s) between two entities given a corpus whereas Knowledge base (KB) modeling is the task of representing a knowledge base, in terms of relations between entities. This paper proposes an architecture for the relation extraction (RE) task that integrates semantic information with knowledge base (KB) modeling in a novel manner. Existing approaches for relation extraction either don't utilize knowledge base modelling or use separately trained KB models for the RE task. We present a model architecture that internalizes KB modeling in relation extraction. This model applies a novel approach to encode sentences into contextualized relation embeddings (CRE), which can then be used together with parameterized entity embeddings to score relation instances. The proposed CRE model achieves state of the art performance on datasets derived from The New York Times Annotated Corpus 1 and FreeBase 2. The source code has been made available 3 to reproduce the results.", |
| "pdf_parse": { |
| "paper_id": "2020", |
| "_pdf_hash": "", |
| "abstract": [ |
| { |
| "text": "Relation extraction (RE) is the task of identifying relation instance(s) between two entities given a corpus whereas Knowledge base (KB) modeling is the task of representing a knowledge base, in terms of relations between entities. This paper proposes an architecture for the relation extraction (RE) task that integrates semantic information with knowledge base (KB) modeling in a novel manner. Existing approaches for relation extraction either don't utilize knowledge base modelling or use separately trained KB models for the RE task. We present a model architecture that internalizes KB modeling in relation extraction. This model applies a novel approach to encode sentences into contextualized relation embeddings (CRE), which can then be used together with parameterized entity embeddings to score relation instances. The proposed CRE model achieves state of the art performance on datasets derived from The New York Times Annotated Corpus 1 and FreeBase 2. The source code has been made available 3 to reproduce the results.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Abstract", |
| "sec_num": null |
| } |
| ], |
| "body_text": [ |
| { |
| "text": "Relation extraction (RE) is a sub-task under the broad category of information extraction (IE) that aims to identify relationship(s) between named entities based on textual information (corpus). The groundtruth relationship(s) between an entity pair can be either internal, if each sentence in the corpus is explicitly labeled, or external, in the form of relation instances in a standalone knowledge base (KB). Such knowledge bases, like Freebase Bollacker et al. (2008) , are collaboratively edited by human beings and thus offer high informational fidelity.", |
| "cite_spans": [ |
| { |
| "start": 448, |
| "end": 471, |
| "text": "Bollacker et al. (2008)", |
| "ref_id": "BIBREF0" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Introduction", |
| "sec_num": "1" |
| }, |
| { |
| "text": "In this paper, we focus on the problem of predicting the collection of relations for a new entity pair based on the usage of that entity pair in its respective collection of sentences. To this end, we assume the general construction that given a dataset with a set of named entity pairs and each entity pair's respective collection of sentences as input along with entity pair's respective collection of relations as output, our goal is to train a model with the objective of predicting collection of relevant relation(s) for a new entity pair based on its contextual usage.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Introduction", |
| "sec_num": "1" |
| }, |
| { |
| "text": "Distant supervision Mintz et al. (2009) is the most popular approach for this problem, that has achieved its success by leveraging knowledge base information for relation extraction tasks. However, this restricts the usage of semantic information present in knowledge bases, since the distant supervision work mainly incorporates the knowledge base information as labels instead of treating it as a graph and thereby losing the dense relationships between different entities. Knowledge base modelling is an independent area of research and there has been some recent work on utilizing knowledge base modeling and incorporating internal structural information from them to the relation extraction task. , Trouillon et al. (2016) . conducted the first research work that utilized knowledge bases as a structural graph by training a TransE ) KB model alongside a traditional distant supervision extractor. However, this has been a simple combination of both ideas but despite its simplicity, the model was able to beat the thenstate-of-the-art models in Relation Extraction tasks. The work by Han et al. (2018) , on the other hand, The details of \"Sentence Encoder\" can be found in figure 2. The scoring function takes one CRE vector and two entity embedding vectors as inputs, and outputs a scalar score. went a step further by sharing some model weights between the distant supervision extractor and the knowledge base model. However, although there is some shared architecture, but the objective function for the KB modelling and the distant supervision remain separate. Another notable work by Xu and Barbosa (2019) combines the two models through an additional objective function that guides the training but during prediction time there is no any shared architecture and hence knowledge base information is not really incorporated well for relation prediction.", |
| "cite_spans": [ |
| { |
| "start": 20, |
| "end": 39, |
| "text": "Mintz et al. (2009)", |
| "ref_id": "BIBREF5" |
| }, |
| { |
| "start": 704, |
| "end": 727, |
| "text": "Trouillon et al. (2016)", |
| "ref_id": "BIBREF7" |
| }, |
| { |
| "start": 1090, |
| "end": 1107, |
| "text": "Han et al. (2018)", |
| "ref_id": "BIBREF3" |
| }, |
| { |
| "start": 1595, |
| "end": 1616, |
| "text": "Xu and Barbosa (2019)", |
| "ref_id": "BIBREF10" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Introduction", |
| "sec_num": "1" |
| }, |
| { |
| "text": "The model presented in this paper differs from all previous work in that it is a single relation extraction model that internalizes knowledge base modeling. Instead of treating relation embeddings as parameters like in standalone knowledge embedding models (eg: TransE ), where such embeddings have no context of any textual information, our model expresses relation embeddings as context-aware latent states generated by encoding textual data. Such contextualized embeddings represent a natural link between the textual input and the knowledge base modeling objective, so that the end-to-end information transformation is completely internal to the model. The entity embeddings, on the other hand, are not contextualized and will still be trained as parameters of the same model, because they need to serve as bridges across different entity pairs and globalize the knowledge base modeling which is now based on contextualized relation embeddings localized to each entity pair. A significant innovation of this work is that each sentence in which a pair of entities occurs, we represent each possible relation between them as a function of that entire sentence and score the relation for that entity pair and sentence using the representation of the relation.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Introduction", |
| "sec_num": "1" |
| }, |
| { |
| "text": "Let R stand for the set of all relations and E stand for set of all entities. Then, for the i-th entity pair, H i and T i stand for the subject and object respectively, both belonging to E. R i \u2282 R stand for the set of relations existing between the i-th entity pair. S i stands for the collection of sentences that contain H i as the subject and T i as the object; S jk i stands for the k-th word of the j-th sentence in S i , where each S jk i is delimited by spaces except for the subject and the object, whose phrasal integrities are preserved (e.g. if it is the subject/object of a sentence, the United States will be considered as a single \"word\").", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Contextualized Relation Embedding", |
| "sec_num": "2" |
| }, |
| { |
| "text": "We propose a novel neural network model (called CRE model) that implicitly combines knowledge base to detect relationships between entities, given a corpus of sentences containing those entities. The overall architecture of a CRE model is shown in figure 1, which consists of a sentence encoding step and a knowledge base modeling step. During the sentence encoding step, the model transforms each S jk i into E-dimensional embeddings. Specifically, we apply pretrained skipgram embeddings Mikolov et al. (2013) , treating all named entities as unknown, which results in a W -dimensional embedding for each word. We Zeng et al. (2014) , where each word's index in the positional \"vocabulary\" is defined as its relative distance to one of the named entities. Consider the sentence \"A bear entered the fridge\" and named entities \"bear\" and \"fridge\". The word \"A\" will have \u22121 as its positional embedding index with respect to \"bear\" and \u22124 with respect to \"fridge\", whereas \"entered\" will have +1 with respect to \"bear\" and \u22122 with respect to \"fridge\". For each word (including the two named entities), we represent it as its skip-gram word embedding of dimension W , concatenated with its positional embeddings (each of dimension P ) with respect to the two named entities, to form a final embedding of dimension E, where E = W + 2 * P . The skip-gram embeddings are fixed during training, whereas the positional embeddings are learnt. This leads to a sentence embedding of L * E, where L is the maximum length of each sentence. We utilize the above mentioned sentence embeddings and learn an encoder that encodes each sentence into a R * K embedding, which can be represented as |R| K-dimensional embeddings, each of which corresponds to a distinct relation in R. Figure 2 illustrates the sentence encoding process for a single sentence.", |
| "cite_spans": [ |
| { |
| "start": 490, |
| "end": 511, |
| "text": "Mikolov et al. (2013)", |
| "ref_id": "BIBREF4" |
| }, |
| { |
| "start": 616, |
| "end": 634, |
| "text": "Zeng et al. (2014)", |
| "ref_id": "BIBREF11" |
| } |
| ], |
| "ref_spans": [ |
| { |
| "start": 1764, |
| "end": 1772, |
| "text": "Figure 2", |
| "ref_id": "FIGREF1" |
| } |
| ], |
| "eq_spans": [], |
| "section": "Contextualized Relation Embedding", |
| "sec_num": "2" |
| }, |
| { |
| "text": "It is worth noting that the sentence encoder is a generic framework where we can plug in any model architecture (both for positional encoding and sentence encoding). In our experiments, we found that neural network based encoders tend to result in better performance. We think this is due to their ability to extract both semantic and syntactic information. We denote sentence j's representation of r's relation for entity pair i as CRE jr i . In order to provide the model more context, we explicitly apply a K-dimensional embedding for each part of the entity pair represented by H i and T i respectively. These entity embeddings are learnt as parameters during training, similar to the positional embeddings above. We utilize the relation embeddings (contextualized relation embeddings) from the sentences and these entity embeddings to form relation triplet embeddings. Specifically, this will result in R triplets for each sentence, since we computed R relation embeddings for each sentence. This allows us to apply different knowledge based models and further enhances the generalization of our model. Depending on the choice of knowledge based model, we use the relation triplet embeddings to compute its score based on the scoring function of the respective knowledge base model. For example, if TransE is chosen as the underlying knowledge base model with H i and T i as head and tail entity embeddings, then embeddings for relation r derived from sentence j will be scored as:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Contextualized Relation Embedding", |
| "sec_num": "2" |
| }, |
| { |
| "text": "EQUATION", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [ |
| { |
| "start": 0, |
| "end": 8, |
| "text": "EQUATION", |
| "ref_id": "EQREF", |
| "raw_str": "Score j,r i = 1 \u2212 tanh(||H i + CRE jr i \u2212 T i ||); where 0 \u2264 Score j,r i \u2264 2", |
| "eq_num": "(1)" |
| } |
| ], |
| "section": "Contextualized Relation Embedding", |
| "sec_num": "2" |
| }, |
| { |
| "text": "Since most knowledge base models are characterized by their scoring functions, it is straightforward to swap in any knowledge base model here for scoring purposes. Finally, the model aggregates scores for the same relation across all sentences so that we can obtain a single score for each relation given an entity pair:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Contextualized Relation Embedding", |
| "sec_num": "2" |
| }, |
| { |
| "text": "EQUATION", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [ |
| { |
| "start": 0, |
| "end": 8, |
| "text": "EQUATION", |
| "ref_id": "EQREF", |
| "raw_str": "Score r i = j Score j,r i", |
| "eq_num": "(2)" |
| } |
| ], |
| "section": "Contextualized Relation Embedding", |
| "sec_num": "2" |
| }, |
| { |
| "text": "For experiments in this paper, we adopted summation as the aggregation function since we do not have prior knowledge about our dataset and thus want to take into account the \"opinion\" of all sentences equally, but it is by no means prescriptive. One can certainly use maximum, minimum or mean as the aggregation functions instead of sum in case the dataset is such that any single sentence's outcome can be regarded as reliable.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Contextualized Relation Embedding", |
| "sec_num": "2" |
| }, |
| { |
| "text": "We train the model with a binary cross entropy loss, after normalizing relation scores and targets and we use an L2 regularization that helps prevent overfitting.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Contextualized Relation Embedding", |
| "sec_num": "2" |
| }, |
| { |
| "text": "EQUATION", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [ |
| { |
| "start": 0, |
| "end": 8, |
| "text": "EQUATION", |
| "ref_id": "EQREF", |
| "raw_str": "N S r i = Score r i r Score r i (3) m r i = I[r \u2208 R i ] |R i | (4) L r i = \u2212m r i * log(N S r i ))+ (m r i \u2212 1 |R i | ) * log(1 \u2212 N S r i ) (5) L i = r L ir + \u03bb * ||w|| 2", |
| "eq_num": "(6)" |
| } |
| ], |
| "section": "Contextualized Relation Embedding", |
| "sec_num": "2" |
| }, |
| { |
| "text": "We use the normalized scores to predict the relations for the given entity pair. Note that normalization is still necessary for quantitative evaluation. We pool together scores for different entity pairs to form a precision-recall curve, so scores need to be comparable and normalization brings them to the same scale. The top-k prediction can formulated as:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Contextualized Relation Embedding", |
| "sec_num": "2" |
| }, |
| { |
| "text": "EQUATION", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [ |
| { |
| "start": 0, |
| "end": 8, |
| "text": "EQUATION", |
| "ref_id": "EQREF", |
| "raw_str": "T op k i = argmax k r (N S r i ) T opScore k i = N S T op k i i", |
| "eq_num": "(7)" |
| } |
| ], |
| "section": "Contextualized Relation Embedding", |
| "sec_num": "2" |
| }, |
| { |
| "text": "3 Experiments", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Contextualized Relation Embedding", |
| "sec_num": "2" |
| }, |
| { |
| "text": "For our experiments, we use the textual data from The New York Times (NYT) Annotated Corpus Riedel et al. (2010) , and the knowledge base are derived from the most recent FreeBase Bollacker et al. (2008) dump. Note that entities in each NYT sentence are already annotated. The NYT and Freebase presents a more challenging task for relation extraction models than FreeBase and Wikipedia texts due to their heterogeneous nature, since FreeBase itself is largely derived from Wikipedia. We construct the dataset through the following procedure:", |
| "cite_spans": [ |
| { |
| "start": 92, |
| "end": 112, |
| "text": "Riedel et al. (2010)", |
| "ref_id": "BIBREF6" |
| }, |
| { |
| "start": 180, |
| "end": 203, |
| "text": "Bollacker et al. (2008)", |
| "ref_id": "BIBREF0" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Data and Experimental Setup", |
| "sec_num": "3.1" |
| }, |
| { |
| "text": "1. Filter out any relation instance from FreeBase dump if the mapping between the ID of either of its two entities and its corresponding English phrase is not available.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Data and Experimental Setup", |
| "sec_num": "3.1" |
| }, |
| { |
| "text": "2. Find the top 500K entities based on the number of relation instances they participate in, and further filter out any relation instance if either of its two entities is not in the top 500K list.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Data and Experimental Setup", |
| "sec_num": "3.1" |
| }, |
| { |
| "text": "3. Inner join the NYT dataset with the filtered Freebase by aligning NYT entity annotations and Freebase entity English phrases. In other words, no example in the NYT dataset that contains unseen entities in the filter Freebase is preserved, and vice versa.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Data and Experimental Setup", |
| "sec_num": "3.1" |
| }, |
| { |
| "text": "4. Backfill an N/A relation for any entity pair present in the filtered NYT dataset that has no relation instance in the filtered Freebase.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Data and Experimental Setup", |
| "sec_num": "3.1" |
| }, |
| { |
| "text": "After this procedure, we have a dataset that contains 465K sentences, 35K entities, 233K entity pairs, and 238 relations. As most entities in this world do not possess direct relations with other entities, the dataset is extremely unbalanced, where only 5K entity pairs out of the 233K have non-N/A relation. These 5K entity pairs contribute 20K sentences out of the 465K. Because of this imbalance, we performed train-test splits for positive pairs and negative pairs separately, so that test set gets around 1200 positive pairs and 57K negative pairs. Since this test set is still severely imbalanced and we don't want our model to be biased in favor an N/A prediction, we further randomly sample the negative pairs in the test set so that the number of sentences consisting of negative pairs is roughly the same as that of any positive relation. We did not perform similar filtering to the training set from the outset, but randomly applied such filtering at the beginning of each training epoch, in order to utilize all training data we have.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Data and Experimental Setup", |
| "sec_num": "3.1" |
| }, |
| { |
| "text": "In order to quantitatively evaluate the performance of our model, we measure precision over various recall levels. Specifically, we examine precision-recall curves for top-1 predictions, top-3 predictions, and top-5 predictions. Top-1 predictions, which only includes the relation with the highest score among all relations for a given entity pair, are widely used in related literature, but we believe it alone does not provide a comprehensive view, since each entity pair can have multiple relations. Besides the precisionrecall curve, we also measure the mean reciprocal rank (MRR) among top-3 predictions and top-5 predictions.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Evaluation Metrics", |
| "sec_num": "3.2" |
| }, |
| { |
| "text": "On the qualitative side, we examine the number of distinct top-1 relation predictions, in order to check if our model achieves high precision just by heavily favoring certain relations, given the unbalanced nature of our dataset.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Evaluation Metrics", |
| "sec_num": "3.2" |
| }, |
| { |
| "text": "As discussed in Section 2, our proposed model provides a deep integration of knowledge bases in the relation prediction task. We select two baseline models to compare performance: one from Weston et al. (2013) as a representative of weak integration between knowledge bases and relation extraction, and the other from Han et al. (2018) to represent a semi-integrated setup. Both models have already been briefly described in the Introduction section. Since the state of art of these models is not publically available, we performed hyperparameter tuning for both models on our dataset, since they may not be exactly the same as the datasets used in their respective work.", |
| "cite_spans": [ |
| { |
| "start": 318, |
| "end": 335, |
| "text": "Han et al. (2018)", |
| "ref_id": "BIBREF3" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Baseline Models", |
| "sec_num": "3.3" |
| }, |
| { |
| "text": "As shown in the model details section, there can be a myriad of options for various components of our proposed CRE model. In this evaluation, we will focus on the effect of different choices of sentenceto-CRE encoders as well as underlying knowledge base models. Every other aspect will be kept fixed as described in the preceding section.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Model Configurations", |
| "sec_num": "3.4" |
| }, |
| { |
| "text": "For sentence-to-CRE encoders, we will explore 3 options:", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Model Configurations", |
| "sec_num": "3.4" |
| }, |
| { |
| "text": "\u2022 A single 1D convolutional layer with hidden state dimension of 230 and window size of 3.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Model Configurations", |
| "sec_num": "3.4" |
| }, |
| { |
| "text": "\u2022 A single LSTM layer with hidden state dimension of 230.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Model Configurations", |
| "sec_num": "3.4" |
| }, |
| { |
| "text": "\u2022 A double-layered transformer encoder with hidden state dimension of 100 and 5-head attention Vaswani et al. (2017) .", |
| "cite_spans": [ |
| { |
| "start": 95, |
| "end": 116, |
| "text": "Vaswani et al. (2017)", |
| "ref_id": null |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Model Configurations", |
| "sec_num": "3.4" |
| }, |
| { |
| "text": "All these encoders are followed by a tanh activation layer and a linear layer to project the lowdimensional hidden state onto |R|K-dimensional space. 230 is selected as the hidden dimension for fair comparison purpose because it is the CNN hidden state dimension used in Han et al. (2018) . The complexity of encoders evaluated here are limited by computational resources available for this work, so it is possible to find more sophisticated encoders that can achieve further improvements. For the transformer based encoder, an additional linear projection and tanh activation is applied at the front to reduce the number of parameters that need to be trained to a manageable level. For knowledge base model, we explore 2 options:", |
| "cite_spans": [ |
| { |
| "start": 271, |
| "end": 288, |
| "text": "Han et al. (2018)", |
| "ref_id": "BIBREF3" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Model Configurations", |
| "sec_num": "3.4" |
| }, |
| { |
| "text": "\u2022 TransE with embedding dimension of 50.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Model Configurations", |
| "sec_num": "3.4" |
| }, |
| { |
| "text": "\u2022 ComplEx Trouillon et al. (2016) with embedding dimension of 25 for the real part and 25 for the imaginary part. The dimensions chosen here are based on reports from each model's respective paper. By combining these options, we will explore 6 different model configurations in total. We use Adam optimizer for training and consider the model to have converged when the loss on the current epoch is no less than the average loss of the last ten epochs. Each model is then used to make predictions on the same held-out test set.", |
| "cite_spans": [ |
| { |
| "start": 10, |
| "end": 33, |
| "text": "Trouillon et al. (2016)", |
| "ref_id": "BIBREF7" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Model Configurations", |
| "sec_num": "3.4" |
| }, |
| { |
| "text": "In order to test for statistical significance, we divided the dataset into 3 different subsets randomly and recorded the results of each model on all three subsets.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Model Configurations", |
| "sec_num": "3.4" |
| }, |
| { |
| "text": "We compare the performance of the CRE models across different configurations, which is illustrated in figure 4. From the results, we can see that the more sophisticated knowledge base model (ComplEx) outperforms the simpler alternative (TransE) at lower recall levels (less than 0.25), but under-performs at higher recall levels. Similarly, for different choices of sentence-to-CRE encoders, we observe that the more complex transformer encoder is almost perfect before recall rises above 0.25.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "The best model configuration", |
| "sec_num": "3.5.1" |
| }, |
| { |
| "text": "The most consistent configuration, from a quantitative perspective, is the combination of CNN and TransE. These results are reinforced by the MRR comparison among different CRE configurations, as shown in table 2. We can see that the model that achieved the best precision-recall result (CNN+TransE) also dominates in terms of MRR, whereas the worst results for both metrics are attributable to the LSTM+TransE configuration. Figure 3 shows the precision-recall curve comparisons between baseline models and a CRE-based model with Transformer+ComplEx configuration. Each model's confidence interval was obtained via variance among precisions at the same recall level of 9 different runs: 3 runs for each of 3 different random subset of the training/testing dataset. The CRE model was able to outperform both baseline models.", |
| "cite_spans": [], |
| "ref_spans": [ |
| { |
| "start": 426, |
| "end": 434, |
| "text": "Figure 3", |
| "ref_id": "FIGREF2" |
| } |
| ], |
| "eq_spans": [], |
| "section": "The best model configuration", |
| "sec_num": "3.5.1" |
| }, |
| { |
| "text": "Interestingly, Weston's approach achieved top-1 prediction accuracy comparable with what was reported in its original paper, but saw a particularly sharp drop in precision as the number of predictions examined increases. This contrast is unsurprising though, because Weston's approach only re-scores its most confident predictions, so models trained this way have no capability of making multiple predictions for a single entity pair.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Comparison with baseline models", |
| "sec_num": "3.5.2" |
| }, |
| { |
| "text": "In addition, we observed the mean reciprocal rank for CRE model is significantly higher than baseline models, as shown in table 1, which corresponds to the improvement we saw in terms of precision-recall curve. Table 3 shows most frequent relations and the number of times each model concludes one of them to be the most likely relation given an entity pair, as well as the ground truth. It can be observed that the CRE models tend to generate a less skewed distribution of these frequent relations compared to Han's, which is the better of the two baseline models in terms of quantitative performance.", |
| "cite_spans": [], |
| "ref_spans": [ |
| { |
| "start": 211, |
| "end": 218, |
| "text": "Table 3", |
| "ref_id": "TABREF4" |
| } |
| ], |
| "eq_spans": [], |
| "section": "Comparison with baseline models", |
| "sec_num": "3.5.2" |
| }, |
| { |
| "text": "Our experiments from figure 3 clearly demonstrate that models utilizing contextualized relation embeddings that internalize both relation extractor modeling and knowledge base modeling tend to perform much better on relation extraction task than architectures like and Han et al. (2018) that join a relation extractor and a knowledge base model in some arbitrary way. We believe this is due to the fact that the \"internal knowledge base models\" within CRE models are context-aware. As a result, CRE models can take advantage of the contextual information contained in the corpus more effectively.", |
| "cite_spans": [ |
| { |
| "start": 269, |
| "end": 286, |
| "text": "Han et al. (2018)", |
| "ref_id": "BIBREF3" |
| } |
| ], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Discussion", |
| "sec_num": "4" |
| }, |
| { |
| "text": "We demonstrate the generality and flexibility of the proposed CRE model that can work with different encoders and knowledge base models. Moreover, it can be observed from Table 3 that the CRE-models generate less skewed distribution of frequent relations compared to the baseline models, thus demonstrating that the CRE model provides robust predictions and works well even with imbalanced datasets.", |
| "cite_spans": [], |
| "ref_spans": [ |
| { |
| "start": 171, |
| "end": 178, |
| "text": "Table 3", |
| "ref_id": "TABREF4" |
| } |
| ], |
| "eq_spans": [], |
| "section": "Discussion", |
| "sec_num": "4" |
| }, |
| { |
| "text": "It can be observed from Figure 4 that more complex configurations for our model tend to achieve stellar results in the low recall arena but lose steam when recall levels are high. This may be explained by the insufficient training epochs due to resource constraints. As a result, these complex models did not get the chance to optimize for the less seen prediction targets. However, it can been seen from Table 3 that the transformer-based CRE model was able to correctly uncover some rare relations, like programCreator, which was missed by the CNN-based CRE model, despite it having better overall quantitative results. It is reasonable to expect that given a more balanced dataset with sufficient training time, the transformer-based CRE model may obtain a better quantitative result than its CNN counterpart.", |
| "cite_spans": [], |
| "ref_spans": [ |
| { |
| "start": 24, |
| "end": 32, |
| "text": "Figure 4", |
| "ref_id": "FIGREF3" |
| }, |
| { |
| "start": 405, |
| "end": 412, |
| "text": "Table 3", |
| "ref_id": "TABREF4" |
| } |
| ], |
| "eq_spans": [], |
| "section": "Discussion", |
| "sec_num": "4" |
| }, |
| { |
| "text": "Since contextual knowledge plays a big role in the performance of CRE models, it will be interesting to see how such models may perform over prediction on input texts that are heterogeneous to the New York Times. For example, an alternative input text source could be a collection of academic publications, which is of very different genre compared to the New York Times. If our hypothesis on why these models work well is correct, then we would expect to see some degradation in performance, though it should be no worse than context-free approaches. This can be overcome, of course, by utilizing pre-trained CRE models and finetuning on the new text body, so that the model can learn about the new context.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Discussion", |
| "sec_num": "4" |
| }, |
| { |
| "text": "In this paper, we introduced a novel contextualized relation embedding (CRE) model for relation extraction that incorporates knowledge base modeling in a comprehensive and efficient manner. We demonstrate both empirically and qualitatively that the CRE model is able to achieve state of the art results on relation extraction task on the New York times dataset with Freebase as a knowledge source. We demonstrate the flexibility of the model by using different encoders and knowledge based modeling schemes which are a testament to the modular nature of this model, which can easily be upgraded with alternative configurations with ease. Finally, we showcase that CRE model tend to generate a less skewed distributions of predicted relations and the model is robust to imbalances in the dataset.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Conclusion and Future Work", |
| "sec_num": "5" |
| }, |
| { |
| "text": "Interesting directions of future work may include utilizing CRE pre trained models and evalauting if these models can be finetuned to work in lowresource situations when the testing set distribution is different than the training distribution. Another interesting direction may be utilizing pre-trained BERT-based Devlin et al. (2018) models as sentence encoders and fine-tune them for the relation extraction task, since such models are already trained on large amount of textual data and thus may hold contextual knowledge that might be useful for this task. This may also reveal some hidden connections between contextualized word embeddings and contextualized relation embeddings.", |
| "cite_spans": [], |
| "ref_spans": [], |
| "eq_spans": [], |
| "section": "Conclusion and Future Work", |
| "sec_num": "5" |
| } |
| ], |
| "back_matter": [], |
| "bib_entries": { |
| "BIBREF0": { |
| "ref_id": "b0", |
| "title": "Freebase: A collaboratively created graph database for structuring human knowledge", |
| "authors": [ |
| { |
| "first": "Kurt", |
| "middle": [], |
| "last": "Bollacker", |
| "suffix": "" |
| }, |
| { |
| "first": "Colin", |
| "middle": [], |
| "last": "Evans", |
| "suffix": "" |
| }, |
| { |
| "first": "Praveen", |
| "middle": [], |
| "last": "Paritosh", |
| "suffix": "" |
| }, |
| { |
| "first": "Tim", |
| "middle": [], |
| "last": "Sturge", |
| "suffix": "" |
| }, |
| { |
| "first": "Jamie", |
| "middle": [], |
| "last": "Taylor", |
| "suffix": "" |
| } |
| ], |
| "year": 2008, |
| "venue": "Proceedings of the 2008 ACM SIGMOD International Conference on Management of Data, SIGMOD '08", |
| "volume": "", |
| "issue": "", |
| "pages": "1247--1250", |
| "other_ids": { |
| "DOI": [ |
| "10.1145/1376616.1376746" |
| ] |
| }, |
| "num": null, |
| "urls": [], |
| "raw_text": "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, SIGMOD '08, page 1247-1250, New York, NY, USA. Association for Computing Machinery.", |
| "links": null |
| }, |
| "BIBREF1": { |
| "ref_id": "b1", |
| "title": "Translating embeddings for modeling multirelational data", |
| "authors": [ |
| { |
| "first": "Antoine", |
| "middle": [], |
| "last": "Bordes", |
| "suffix": "" |
| }, |
| { |
| "first": "Nicolas", |
| "middle": [], |
| "last": "Usunier", |
| "suffix": "" |
| }, |
| { |
| "first": "Alberto", |
| "middle": [], |
| "last": "Garcia-Duran", |
| "suffix": "" |
| }, |
| { |
| "first": "Jason", |
| "middle": [], |
| "last": "Weston", |
| "suffix": "" |
| }, |
| { |
| "first": "Oksana", |
| "middle": [], |
| "last": "Yakhnenko", |
| "suffix": "" |
| } |
| ], |
| "year": 2013, |
| "venue": "Advances in Neural Information Processing Systems", |
| "volume": "26", |
| "issue": "", |
| "pages": "2787--2795", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Antoine Bordes, Nicolas Usunier, Alberto Garcia- Duran, Jason Weston, and Oksana Yakhnenko. 2013. Translating embeddings for modeling multi- relational data. In Advances in Neural Information Processing Systems 26, pages 2787-2795. Curran Associates, Inc.", |
| "links": null |
| }, |
| "BIBREF2": { |
| "ref_id": "b2", |
| "title": "Bert: Pre-training of deep bidirectional transformers for language understanding", |
| "authors": [ |
| { |
| "first": "Jacob", |
| "middle": [], |
| "last": "Devlin", |
| "suffix": "" |
| }, |
| { |
| "first": "Ming-Wei", |
| "middle": [], |
| "last": "Chang", |
| "suffix": "" |
| }, |
| { |
| "first": "Kenton", |
| "middle": [], |
| "last": "Lee", |
| "suffix": "" |
| }, |
| { |
| "first": "Kristina", |
| "middle": [], |
| "last": "Toutanova", |
| "suffix": "" |
| } |
| ], |
| "year": 2018, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding.", |
| "links": null |
| }, |
| "BIBREF3": { |
| "ref_id": "b3", |
| "title": "Neural knowledge acquisition via mutual attention between knowledge graph and text", |
| "authors": [ |
| { |
| "first": "Xu", |
| "middle": [], |
| "last": "Han", |
| "suffix": "" |
| }, |
| { |
| "first": "Zhiyuan", |
| "middle": [], |
| "last": "Liu", |
| "suffix": "" |
| }, |
| { |
| "first": "Maosong", |
| "middle": [], |
| "last": "Sun", |
| "suffix": "" |
| } |
| ], |
| "year": 2018, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Xu Han, Zhiyuan Liu, and Maosong Sun. 2018. Neural knowledge acquisition via mutual attention between knowledge graph and text.", |
| "links": null |
| }, |
| "BIBREF4": { |
| "ref_id": "b4", |
| "title": "Distributed representations of words and phrases and their compositionality", |
| "authors": [ |
| { |
| "first": "Tomas", |
| "middle": [], |
| "last": "Mikolov", |
| "suffix": "" |
| }, |
| { |
| "first": "Ilya", |
| "middle": [], |
| "last": "Sutskever", |
| "suffix": "" |
| }, |
| { |
| "first": "Kai", |
| "middle": [], |
| "last": "Chen", |
| "suffix": "" |
| }, |
| { |
| "first": "Greg", |
| "middle": [], |
| "last": "Corrado", |
| "suffix": "" |
| }, |
| { |
| "first": "Jeffrey", |
| "middle": [], |
| "last": "Dean", |
| "suffix": "" |
| } |
| ], |
| "year": 2013, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg Corrado, and Jeffrey Dean. 2013. Distributed representations of words and phrases and their compositionality. CoRR, abs/1310.4546.", |
| "links": null |
| }, |
| "BIBREF5": { |
| "ref_id": "b5", |
| "title": "Distant supervision for relation extraction without labeled data", |
| "authors": [ |
| { |
| "first": "Mike", |
| "middle": [], |
| "last": "Mintz", |
| "suffix": "" |
| }, |
| { |
| "first": "Steven", |
| "middle": [], |
| "last": "Bills", |
| "suffix": "" |
| }, |
| { |
| "first": "Rion", |
| "middle": [], |
| "last": "Snow", |
| "suffix": "" |
| }, |
| { |
| "first": "Daniel", |
| "middle": [], |
| "last": "Jurafsky", |
| "suffix": "" |
| } |
| ], |
| "year": 2009, |
| "venue": "Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP", |
| "volume": "", |
| "issue": "", |
| "pages": "1003--1011", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Mike Mintz, Steven Bills, Rion Snow, and Daniel Jurafsky. 2009. Distant supervision for relation extraction without labeled data. In Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP, pages 1003-1011, Suntec, Singapore. Association for Computational Linguistics.", |
| "links": null |
| }, |
| "BIBREF6": { |
| "ref_id": "b6", |
| "title": "Modeling relations and their mentions without labeled text", |
| "authors": [ |
| { |
| "first": "Sebastian", |
| "middle": [], |
| "last": "Riedel", |
| "suffix": "" |
| }, |
| { |
| "first": "Limin", |
| "middle": [], |
| "last": "Yao", |
| "suffix": "" |
| }, |
| { |
| "first": "Andrew", |
| "middle": [], |
| "last": "Mccallum", |
| "suffix": "" |
| } |
| ], |
| "year": 2010, |
| "venue": "Machine Learning and Knowledge Discovery in Databases", |
| "volume": "", |
| "issue": "", |
| "pages": "148--163", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Sebastian Riedel, Limin Yao, and Andrew McCallum. 2010. Modeling relations and their mentions without labeled text. In Machine Learning and Knowledge Discovery in Databases, pages 148-163, Berlin, Heidelberg. Springer Berlin Heidelberg.", |
| "links": null |
| }, |
| "BIBREF7": { |
| "ref_id": "b7", |
| "title": "Complex embeddings for simple link prediction", |
| "authors": [ |
| { |
| "first": "Th\u00e9o", |
| "middle": [], |
| "last": "Trouillon", |
| "suffix": "" |
| }, |
| { |
| "first": "Johannes", |
| "middle": [], |
| "last": "Welbl", |
| "suffix": "" |
| }, |
| { |
| "first": "Sebastian", |
| "middle": [], |
| "last": "Riedel", |
| "suffix": "" |
| }, |
| { |
| "first": "\u00c9ric", |
| "middle": [], |
| "last": "Gaussier", |
| "suffix": "" |
| }, |
| { |
| "first": "Guillaume", |
| "middle": [], |
| "last": "Bouchard", |
| "suffix": "" |
| } |
| ], |
| "year": 2016, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Th\u00e9o Trouillon, Johannes Welbl, Sebastian Riedel, \u00c9ric Gaussier, and Guillaume Bouchard. 2016. Complex embeddings for simple link prediction. CoRR, abs/1606.06357.", |
| "links": null |
| }, |
| "BIBREF9": { |
| "ref_id": "b9", |
| "title": "Connecting language and knowledge bases with embedding models for relation extraction", |
| "authors": [ |
| { |
| "first": "Jason", |
| "middle": [], |
| "last": "Weston", |
| "suffix": "" |
| }, |
| { |
| "first": "Antoine", |
| "middle": [], |
| "last": "Bordes", |
| "suffix": "" |
| }, |
| { |
| "first": "Oksana", |
| "middle": [], |
| "last": "Yakhnenko", |
| "suffix": "" |
| }, |
| { |
| "first": "Nicolas", |
| "middle": [], |
| "last": "Usunier", |
| "suffix": "" |
| } |
| ], |
| "year": 2013, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Jason Weston, Antoine Bordes, Oksana Yakhnenko, and Nicolas Usunier. 2013. Connecting language and knowledge bases with embedding models for relation extraction. CoRR, abs/1307.7973.", |
| "links": null |
| }, |
| "BIBREF10": { |
| "ref_id": "b10", |
| "title": "Connecting language and knowledge with heterogeneous representations for neural relation extraction", |
| "authors": [ |
| { |
| "first": "Peng", |
| "middle": [], |
| "last": "Xu", |
| "suffix": "" |
| }, |
| { |
| "first": "Denilson", |
| "middle": [], |
| "last": "Barbosa", |
| "suffix": "" |
| } |
| ], |
| "year": 2019, |
| "venue": "", |
| "volume": "", |
| "issue": "", |
| "pages": "", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Peng Xu and Denilson Barbosa. 2019. Connecting language and knowledge with heterogeneous representations for neural relation extraction. CoRR, abs/1903.10126.", |
| "links": null |
| }, |
| "BIBREF11": { |
| "ref_id": "b11", |
| "title": "Relation classification via convolutional deep neural network", |
| "authors": [ |
| { |
| "first": "Daojian", |
| "middle": [], |
| "last": "Zeng", |
| "suffix": "" |
| }, |
| { |
| "first": "Kang", |
| "middle": [], |
| "last": "Liu", |
| "suffix": "" |
| }, |
| { |
| "first": "Siwei", |
| "middle": [], |
| "last": "Lai", |
| "suffix": "" |
| }, |
| { |
| "first": "Guangyou", |
| "middle": [], |
| "last": "Zhou", |
| "suffix": "" |
| }, |
| { |
| "first": "Jun", |
| "middle": [], |
| "last": "Zhao", |
| "suffix": "" |
| } |
| ], |
| "year": 2014, |
| "venue": "Proceedings of COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers", |
| "volume": "", |
| "issue": "", |
| "pages": "2335--2344", |
| "other_ids": {}, |
| "num": null, |
| "urls": [], |
| "raw_text": "Daojian Zeng, Kang Liu, Siwei Lai, Guangyou Zhou, and Jun Zhao. 2014. Relation classification via convolutional deep neural network. In Proceedings of COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers, pages 2335-2344, Dublin, Ireland. Dublin City University and Association for Computational Linguistics.", |
| "links": null |
| } |
| }, |
| "ref_entries": { |
| "FIGREF0": { |
| "num": null, |
| "uris": null, |
| "type_str": "figure", |
| "text": "Contextualized Relation Embedding (CRE) Model Architecture" |
| }, |
| "FIGREF1": { |
| "num": null, |
| "uris": null, |
| "type_str": "figure", |
| "text": "Single Sentence Encoding Process apply a positional embedding based on" |
| }, |
| "FIGREF2": { |
| "num": null, |
| "uris": null, |
| "type_str": "figure", |
| "text": "Weston et al. vs. Han et al. vs. CRE Model" |
| }, |
| "FIGREF3": { |
| "num": null, |
| "uris": null, |
| "type_str": "figure", |
| "text": "CRE Models with different configurations Left: precision-recall curves of the most confident prediction for each entity pairs Middle: precision-recall curves of the top 3 most confident predictions for each entity pairs Right: precision-recall curves of the top 5 most confident predictions for each entity pairs Model MRR among Top-3 MRR among Top-5 Weston et al." |
| }, |
| "TABREF0": { |
| "content": "<table/>", |
| "num": null, |
| "html": null, |
| "type_str": "table", |
| "text": "" |
| }, |
| "TABREF2": { |
| "content": "<table/>", |
| "num": null, |
| "html": null, |
| "type_str": "table", |
| "text": "MRR comparison between different configurations of CRE" |
| }, |
| "TABREF4": { |
| "content": "<table/>", |
| "num": null, |
| "html": null, |
| "type_str": "table", |
| "text": "Top relation prediction counts by each model compared to truth" |
| } |
| } |
| } |
| } |