<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN" "http://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="1.1">
<front>
<journal-meta>
<journal-id journal-id-type="pmc">IASC</journal-id>
<journal-id journal-id-type="nlm-ta">IASC</journal-id>
<journal-id journal-id-type="publisher-id">IASC</journal-id>
<journal-title-group>
<journal-title>Intelligent Automation &#x0026; Soft Computing</journal-title>
</journal-title-group>
<issn pub-type="epub">2326-005X</issn>
<issn pub-type="ppub">1079-8587</issn>
<publisher>
<publisher-name>Tech Science Press</publisher-name>
<publisher-loc>USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">28352</article-id>
<article-id pub-id-type="doi">10.32604/iasc.2022.028352</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Article</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Attention Weight is Indispensable in Joint Entity and Relation Extraction</article-title><alt-title alt-title-type="left-running-head">Attention Weight is Indispensable in Joint Entity and Relation Extraction</alt-title><alt-title alt-title-type="right-running-head">Attention Weight is Indispensable in Joint Entity and Relation Extraction</alt-title>
</title-group>
<contrib-group content-type="authors">
<contrib id="author-1" contrib-type="author" corresp="yes">
<name name-style="western"><surname>Ouyang</surname><given-names>Jianquan</given-names></name>
<xref ref-type="aff" rid="aff-1">1</xref><email>oyjq@xtu.edu.cn</email>
</contrib>
<contrib id="author-2" contrib-type="author">
<name name-style="western"><surname>Zhang</surname><given-names>Jing</given-names></name>
<xref ref-type="aff" rid="aff-1">1</xref>
</contrib>
<contrib id="author-3" contrib-type="author">
<name name-style="western"><surname>Liu</surname><given-names>Tianming</given-names></name>
<xref ref-type="aff" rid="aff-2">2</xref>
</contrib>
<aff id="aff-1"><label>1</label><institution>Key Laboratory of Intelligen Computing and Information Processing, Ministry of Education, Computer science College of Xiangtan University</institution>, <addr-line>Xiangtan, 411100</addr-line>, <country>China</country></aff>
<aff id="aff-2"><label>2</label><institution>Department of Computer Science, University of Georgia</institution>, <addr-line>Athens</addr-line>, <country>USA</country></aff>
</contrib-group><author-notes><corresp id="cor1"><label>&#x002A;</label>Corresponding Author: Jianquan Ouyang. Email: <email>oyjq@xtu.edu.cn</email></corresp></author-notes>
<pub-date pub-type="epub" date-type="pub" iso-8601-date="2022-05-23"><day>23</day>
<month>05</month>
<year>2022</year></pub-date>
<volume>34</volume>
<issue>3</issue>
<fpage>1707</fpage>
<lpage>1723</lpage>
<history>
<date date-type="received"><day>08</day><month>2</month><year>2022</year></date>
<date date-type="accepted"><day>11</day><month>4</month><year>2022</year></date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2022 Ouyang, Zhang and Liu</copyright-statement>
<copyright-year>2022</copyright-year>
<copyright-holder>Ouyang, Zhang and Liu</copyright-holder>
<license xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="TSP_IASC_28352.pdf"></self-uri>
<abstract>
<p>Joint entity and relation extraction (JERE) is an important foundation for unstructured knowledge extraction in natural language processing (NLP). Thus, designing efficient algorithms for it has become a vital task. Although existing methods can efficiently extract entities and relations, their performance should be improved. In this paper, we propose a novel model called Attention and Span-based Entity and Relation Transformer (ASpERT) for JERE. First, differing from the traditional approach that only considers the last hidden layer as the feature embedding, ASpERT concatenates the attention head information of each layer with the information of the last hidden layer by using an attentional contribution degree algorithm, so as to remain the key information of the original sentence in a deep transferring of the pre-trained model. Second, considering the unstable performance of the linear span classification and width embedding structure of the SpERT, ASpERT uses a multilayer perceptron (MLP) and softmax-based span classification structure. Ablation experiments on the feature embedding and span classification structures both show better performances than SpERT&#x2019;s. Moreover, the proposed model achieved desired results on three widely-used domain datasets (SciERC, CoNLL04, and ADE) and outperforms the current state-of-the-art model on SciERC. Specifically, the F1 score on SciERC is 52.30%, that on CoNLL04 is 71.66%, and that on ADE is 82.76%.</p>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>Attentional contribution degree</kwd>
<kwd>joint entity and relation extraction</kwd>
<kwd>BERT</kwd>
<kwd>span</kwd>
</kwd-group>
</article-meta>
</front>
<body>
<sec id="s1">
<label>1</label>
<title>Introduction</title>
<p>Entity and relation extraction (ERE) has received much attention as a fundamental task in NLP, especially in specific domains (e.g., science, journalism, and medicine). The purpose of ERE is to extract structured triplets automatically from unstructured or semistructured natural language texts. A triplet consists of two entities and the relationship between them, and a sentence may contain multiple triplets. Owing to nested entities and overlapping relations, the extracted triplets may have similar or identical entities, and a triplet itself may contain two identical entities (with different relationships).</p>
<p>ERE is divided into pipeline ERE [<xref ref-type="bibr" rid="ref-1">1</xref>] and joint ERE (JERE) [<xref ref-type="bibr" rid="ref-2">2</xref>&#x2013;<xref ref-type="bibr" rid="ref-5">5</xref>]. Their difference is the execution sequence of two subtasks, named entity recognition (NER) [<xref ref-type="bibr" rid="ref-6">6</xref>&#x2013;<xref ref-type="bibr" rid="ref-9">9</xref>] and relation extraction (RE) [<xref ref-type="bibr" rid="ref-10">10</xref>]. Specifically, pipeline ERE first extracts entities from the text and then extracts relations between every two entities. In this serial execution, the success of RE most likely depends on the results of NER, and the lack of information interaction between NER and RE can cause errors to accumulate. Compared with the pipeline method, the joint method uses a parameter sharing or joint decoding mechanism between NER and RE. Such a mechanism enhances the information interaction between NER and RE, reduces the high dependence of RE on NER results, and improves the accuracy of ERE. JERE includes three directions: tagging [<xref ref-type="bibr" rid="ref-11">11</xref>], table filling [<xref ref-type="bibr" rid="ref-12">12</xref>], and sequence to sequence (Seq2Seq) [<xref ref-type="bibr" rid="ref-13">13</xref>]. Studies are considerably inclined to methods based on BIO/BILOU labels, and some complex algorithms may cause unbearable computational costs. Unlike BIO/BILOU labels, span-based methods [<xref ref-type="bibr" rid="ref-14">14</xref>] can efficiently identify nested entities, such as &#x201C;phenytoin&#x201D; within &#x201C;phenytoin toxicity.&#x201D;</p>
<p>Known as state-of-the-art span-based JERE, Span-based Entity and Relation Transformer (SpERT) [<xref ref-type="bibr" rid="ref-15">15</xref>] uses a sufficient number of strong negative samples and localized context to construct lightweight inference of BERT [<xref ref-type="bibr" rid="ref-16">16</xref>] embeddings, but this model still has two main flaws. First, SpERT focuses on learning span representation and lacks clear boundary supervision of entities. That is, the model relies on a width embedding layer to train the span length and directly classifies the sampled span through a fully connected layer. Second, many BERT-based JERE models (including SpERT) do not fully exploit domain-specific information. The semantic learning of sentences by using these models mainly comes from the coding information of the last hidden layer obtained through fine-tuning the BERT model, which limits the model&#x2019;s performance.</p>
<p>To solve the problems mentioned above, we propose Attention and Span-based Entity and Relation Transformer (ASpERT), which is a JERE model based on the attentional contribution degree and MLP-softmax span classification structure. In ASpERT, a more complex MLP is added to enhance the entity boundary detection. In addition, in JERE&#x2019;s studies on Transformer [<xref ref-type="bibr" rid="ref-17">17</xref>,<xref ref-type="bibr" rid="ref-18">18</xref>], the multihead self-attention is used to capture interactions among tokens, but only the last hidden layer is considered as the feature embedding for downstream tasks. In this paper, we develop a novel attentional contribution degree algorithm, which concatenates the softmax score of the attention head and the hidden layer feature embedding. View as a training strategy, this algorithm remains the strong attention between words by backpropagating to learn query vectors and key vectors in the pre-trained model. Finally, weighted joint optimization of the multitask loss function is conducted in the training process.</p>
<p>ASpERT is compared with state-of-the-art methods on three datasets, SciERC, CoNLL04 and ADE (public dataset repository address: <uri xlink:href="http://lavis.cs.hs-rm.de/storage/spert/public/datasets/">http://lavis.cs.hs-rm.de/storage/spert/public/datasets/</uri>). Specifically, our model shows a significant performance improvement with a 1.39% increase in F1 score comparing to the baseline model (SpERT). Our model outperforms the current state-of-the-art model on the SciERC dataset and achieves desired results on CoNLL04 and ADE. In addition, we also investigate how to set contribution thresholds and different fusion methods more efficiently. And in the ablation experiments, we demonstrate the effectiveness of the novel span classification structure and attentional contribution degree algorithm.</p>
<p>The contributions of our work can be summarized as follows:<list list-type="alpha-lower"><list-item>
<p>We analyze the reasons for the inaccurate boundary recognition of SpERT and propose a simple and effective span classification structure to alleviate this problem.</p></list-item><list-item>
<p>We propose an attentional contribution degree algorithm to enhance the model with strong attention between words by backpropagation.</p></list-item><list-item>
<p>Experiments show that our model achieves outstanding performance on domain-specific datasets (SciERC, CoNLL04, and ADE) in science, news, and medicine. Especially, it is better than the current state of the art on SciERC.</p></list-item></list></p>
</sec>
<sec id="s2">
<label>2</label>
<title>Related Work</title>
<p>Acting as an implementation of ERE, the pipeline method [<xref ref-type="bibr" rid="ref-19">19</xref>,<xref ref-type="bibr" rid="ref-20">20</xref>] executes NER and RE in series. Herein, NER methods [<xref ref-type="bibr" rid="ref-21">21</xref>] can be categorized into rule, dictionary, and machine learning-based methods [<xref ref-type="bibr" rid="ref-22">22</xref>&#x2013;<xref ref-type="bibr" rid="ref-24">24</xref>]. ER methods can be divided into handcrafted feature-based methods [<xref ref-type="bibr" rid="ref-25">25</xref>] and neural network-based methods [<xref ref-type="bibr" rid="ref-26">26</xref>&#x2013;<xref ref-type="bibr" rid="ref-28">28</xref>]. Although the pipeline method has been successfully applied in some fields, the sequential execution of NER and RE makes it ignore the correlation between the two tasks, which limits the further development of these methods.</p>
<p>To alleviate the above limitations, researchers proposed JERE, including feature-based methods [<xref ref-type="bibr" rid="ref-29">29</xref>,<xref ref-type="bibr" rid="ref-30">30</xref>] and neural network-based methods [<xref ref-type="bibr" rid="ref-31">31</xref>&#x2013;<xref ref-type="bibr" rid="ref-35">35</xref>]. Limited by the expression capability of the model, later studies are mainly based on the neural network method. Research on JERE includes three main directions: tagging, table filling, and Seq2Seq. Zheng et al. [<xref ref-type="bibr" rid="ref-36">36</xref>] proposed a novel tagging scheme, which assigns a tag to each word (including word position, relation type, and relation role) for classification. The table filling [<xref ref-type="bibr" rid="ref-37">37</xref>] is usually to construct a two-dimensional table; thus, the solutions of NER and RE become the problems of labeling diagonal and nondiagonal elements in the table, respectively. These methods allow a single model to execute NER and RE simultaneously but cannot fully use the table structure. Wang et al. [<xref ref-type="bibr" rid="ref-38">38</xref>] proposed to learn two separate encoders (a table encoder and a sequence encoder), which effectively alleviates this problem. The Seq2Seq method [<xref ref-type="bibr" rid="ref-39">39</xref>] first retains sentence features and then extracts triplets in sequence. CopyRE [<xref ref-type="bibr" rid="ref-40">40</xref>], the most typical method, is based on the copy mechanism and Seq2Seq structure, but only extracts individual word. In response to this problem, Zeng et al. [<xref ref-type="bibr" rid="ref-41">41</xref>] proposed a multitask learning method based on BIO labeling.</p>
<p>Methods aforementioned are all based on the BIO/BILOU scheme, and they face a common problem&#x2014;nested entities. To solve the problem, Takanobu et al. [<xref ref-type="bibr" rid="ref-42">42</xref>] adopted a hierarchical reinforcement learning framework. In this framework, entities and relations are divided into different levels, and the semantic information detected by high-level relations is used in extracting low-level entities. The two levels alternate back and forth to achieve JERE. Dai et al. [<xref ref-type="bibr" rid="ref-43">43</xref>] proposed a position-attention mechanism to solve this problem. It uses tag sequences that have the same length as the sentence to annotate each word. Although these methods alleviate the nested entity problem, the immense computational burden is inevitable.</p>
<p>An alternative to the BIO/BILOU scheme is the span-based method [<xref ref-type="bibr" rid="ref-44">44</xref>], which performs a detailed search on all spans to prevent the interference of nested entities on JERE results. This method enhances the interaction among tasks by refining the span representation, allowing the model to learn useful information from a broader context. The methods include the bi-LSTM-based span-level model proposed by Dixit et al. [<xref ref-type="bibr" rid="ref-45">45</xref>] and the dynamic span graph approach through soft coreference and relation links proposed by Luan et al. [<xref ref-type="bibr" rid="ref-46">46</xref>]. To improve the performance of the span method further, Wadden et al. [<xref ref-type="bibr" rid="ref-47">47</xref>] replaced the BiLSTM encoder with Transformers and combined it with BERT encodings and graph propagation to capture context relevance. Recently, Eberts and Ulges&#x2019; SpERT [<xref ref-type="bibr" rid="ref-15">15</xref>] found localized context representation and strong negative sampling to be of vital importance. Although SpERT is the state-of-the-art model for span-based JERE, it suffers from underutilization of BERT encoding information and inaccurate identification of span boundaries.</p>
</sec>
<sec id="s3">
<label>3</label>
<title>Background</title>
<p>In this section, we introduce the baseline model, SpERT. It uses pretrained BERT as the core, tokenizes the input sentence, and applies span classification, span filtering, and relation classification. Specifically, it classifies each span into entity types, filters nonentities, and categorizes all candidate entity pairs. To train the classifier efficiently, SpERT uses negative samples at the model training stage.</p>
<sec id="s3_1">
<label>3.1</label>
<title>Negative Sampling</title>
<p>Negative sampling is performed on each sentence <inline-formula id="ieqn-1">
<mml:math id="mml-ieqn-1"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow><mml:mspace width="thickmathspace" /><mml:mo>&#x2208;</mml:mo><mml:mspace width="thickmathspace" /><mml:mi>D</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</inline-formula> in <italic>corpus</italic> <inline-formula id="ieqn-2">
<mml:math id="mml-ieqn-2"><mml:mi>D</mml:mi></mml:math>
</inline-formula>. A fixed number of negative samples are randomly sampled from sentence <inline-formula id="ieqn-3">
<mml:math id="mml-ieqn-3"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math>
</inline-formula> and labeled with <italic>none</italic>, which is combined with the positive samples of existing labels in <italic>corpus</italic> <inline-formula id="ieqn-4">
<mml:math id="mml-ieqn-4"><mml:mi>D</mml:mi></mml:math>
</inline-formula> to form training samples (including candidate span and candidate entity pair). Then, the training samples are applied in learning the span and relation classifiers. For the span classifier, SpERT selects subsequences that do not belong to the positive span sample and are less than 10 words as the negative span sample. For the relation classifier, SpERT selects entity pairs without any relation labels from positive span samples as negative relation samples (See supplementary file for details).</p>
</sec>
<sec id="s3_2">
<label>3.2</label>
<title>Span Classification</title>
<p>The span classifier of SpERT consists of a fully connected layer and a softmax layer, and regards any candidate span <inline-formula id="ieqn-5">
<mml:math id="mml-ieqn-5"><mml:mi>s</mml:mi><mml:mspace width="thickmathspace" /><mml:mo>:=</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</inline-formula> as input (where <inline-formula id="ieqn-6">
<mml:math id="mml-ieqn-6"><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math>
</inline-formula> represents the <italic>i</italic>-th token embedding). Its output is the entity class probability <inline-formula id="ieqn-7">
<mml:math id="mml-ieqn-7"><mml:mrow><mml:msup><mml:mrow><mml:mover><mml:mi>y</mml:mi><mml:mo stretchy="false">&#x005E;</mml:mo></mml:mover></mml:mrow><mml:mi>s</mml:mi></mml:msup></mml:mrow></mml:math>
</inline-formula> of this candidate span (where <inline-formula id="ieqn-8">
<mml:math id="mml-ieqn-8"><mml:mo>&#x2218;</mml:mo></mml:math>
</inline-formula> denotes concatenation):</p>
<p><disp-formula id="eqn-1"><label>(1)</label>
<mml:math id="mml-eqn-1" display="block"><mml:mi>e</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>M</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi><mml:mi>P</mml:mi><mml:mi>o</mml:mi><mml:mi>o</mml:mi><mml:mi>l</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>g</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>l</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo stretchy="false">)</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2218;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow></mml:math>
</disp-formula></p>
<p><disp-formula id="eqn-2"><label>(2)</label>
<mml:math id="mml-eqn-2" display="block"><mml:mrow><mml:msup><mml:mi>x</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>e</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2218;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>c</mml:mi><mml:mi>l</mml:mi><mml:mi>s</mml:mi></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow></mml:msub></mml:mrow></mml:math>
</disp-formula></p>
<p><disp-formula id="eqn-3"><label>(3)</label>
<mml:math id="mml-eqn-3" display="block"><mml:mrow><mml:msup><mml:mrow><mml:mover><mml:mi>y</mml:mi><mml:mo stretchy="false">&#x005E;</mml:mo></mml:mover></mml:mrow><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>s</mml:mi><mml:mi>o</mml:mi><mml:mi>f</mml:mi><mml:mi>t</mml:mi><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msup><mml:mi>W</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x22C5;</mml:mo><mml:mrow><mml:msup><mml:mi>x</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msup><mml:mi>b</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</disp-formula></p>
<p>where <inline-formula id="ieqn-9">
<mml:math id="mml-ieqn-9"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>l</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</inline-formula> is the last hidden layer embedding from the fine-tuned BERT. <inline-formula id="ieqn-10">
<mml:math id="mml-ieqn-10"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow></mml:math>
</inline-formula> is width embedding, which learns the width of each candidate span from a dedicated embedding matrix. <inline-formula id="ieqn-11">
<mml:math id="mml-ieqn-11"><mml:mi>M</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi><mml:mi>P</mml:mi><mml:mi>o</mml:mi><mml:mi>o</mml:mi><mml:mi>l</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>g</mml:mi></mml:math>
</inline-formula> is the maximum pooling. <inline-formula id="ieqn-12">
<mml:math id="mml-ieqn-12"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>c</mml:mi><mml:mi>l</mml:mi><mml:mi>s</mml:mi></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow></mml:msub></mml:mrow></mml:math>
</inline-formula> is the last hidden layer embedding from BERT&#x2019;s special [CLS] token. <inline-formula id="ieqn-13">
<mml:math id="mml-ieqn-13"><mml:mrow><mml:msup><mml:mi>W</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="script">R</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mn>2</mml:mn><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>l</mml:mi></mml:msub></mml:mrow><mml:mo>+</mml:mo><mml:mi>n</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x00D7;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mi>s</mml:mi></mml:msub></mml:mrow></mml:mrow></mml:msup></mml:mrow></mml:math>
</inline-formula> is the trainable weight, and <inline-formula id="ieqn-14">
<mml:math id="mml-ieqn-14"><mml:mrow><mml:msup><mml:mi>b</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="script">R</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mn>2</mml:mn><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>l</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>n</mml:mi><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow></mml:mrow></mml:msup></mml:mrow></mml:math>
</inline-formula> is the bias. <inline-formula id="ieqn-15">
<mml:math id="mml-ieqn-15"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>l</mml:mi></mml:msub></mml:mrow></mml:math>
</inline-formula> is the dimension of the BERT&#x2019;s last hidden layer, <inline-formula id="ieqn-16">
<mml:math id="mml-ieqn-16"><mml:mi>n</mml:mi></mml:math>
</inline-formula> is the dimension of <inline-formula id="ieqn-17">
<mml:math id="mml-ieqn-17"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow></mml:math>
</inline-formula>, and<inline-formula id="ieqn-18">
<mml:math id="mml-ieqn-18"><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mi>s</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow></mml:math>
</inline-formula>is the number of entity classes (including <inline-formula id="ieqn-19">
<mml:math id="mml-ieqn-19"><mml:mi>n</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mi>e</mml:mi></mml:math>
</inline-formula>) <inline-formula id="ieqn-20">
<mml:math id="mml-ieqn-20"><mml:mi>s</mml:mi><mml:mi>o</mml:mi><mml:mi>f</mml:mi><mml:mi>t</mml:mi><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:math>
</inline-formula> is the softmax activation function.</p>
</sec>
<sec id="s3_3">
<label>3.3</label>
<title>Span Filtering</title>
<p>The entity classes include predefined entity types (<xref ref-type="table" rid="table-2">Tab. 2</xref>) and <inline-formula id="ieqn-21">
<mml:math id="mml-ieqn-21"><mml:mi>n</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mi>e</mml:mi></mml:math>
</inline-formula> label that does not constitute entities. In accordance with the output of the span classifier (<xref ref-type="disp-formula" rid="eqn-3">Eq. (3)</xref>), the entity class with the highest probability is selected as the predicted result. If the predicted probability of the <inline-formula id="ieqn-22">
<mml:math id="mml-ieqn-22"><mml:mi>n</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mi>e</mml:mi></mml:math>
</inline-formula> label is the largest, then the candidate span does not constitute an entity.</p>
</sec>
<sec id="s3_4">
<label>3.4</label>
<title>Relation Classification</title>
<p>The relation classifier consists of a fully connected layer and sigmoid. The input of the classifier is any candidate entity pair<inline-formula id="ieqn-23">
<mml:math id="mml-ieqn-23"><mml:mspace width="thickmathspace" /><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</inline-formula>, and the output is the relation class probability <inline-formula id="ieqn-24">
<mml:math id="mml-ieqn-24"><mml:mrow><mml:msup><mml:mrow><mml:mover><mml:mi>y</mml:mi><mml:mo stretchy="false">&#x005E;</mml:mo></mml:mover></mml:mrow><mml:mi>r</mml:mi></mml:msup></mml:mrow></mml:math>
</inline-formula> of this candidate entity pair:</p>
<p><disp-formula id="eqn-4"><label>(4)</label>
<mml:math id="mml-eqn-4" display="block"><mml:mrow><mml:msup><mml:mi>x</mml:mi><mml:mi>r</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>e</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2218;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2218;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>e</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</disp-formula></p>
<p><disp-formula id="eqn-5"><label>(5)</label>
<mml:math id="mml-eqn-5" display="block"><mml:mrow><mml:msup><mml:mrow><mml:mover><mml:mi>y</mml:mi><mml:mo stretchy="false">&#x005E;</mml:mo></mml:mover></mml:mrow><mml:mi>r</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>&#x03C3;</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msup><mml:mi>W</mml:mi><mml:mi>r</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x22C5;</mml:mo><mml:mrow><mml:msup><mml:mi>x</mml:mi><mml:mi>r</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msup><mml:mi>b</mml:mi><mml:mi>r</mml:mi></mml:msup></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</disp-formula></p>
<p>where <inline-formula id="ieqn-25">
<mml:math id="mml-ieqn-25"><mml:mi>e</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</inline-formula> and <inline-formula id="ieqn-26">
<mml:math id="mml-ieqn-26"><mml:mi>e</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</inline-formula> are the BERT/width embedding (<xref ref-type="disp-formula" rid="eqn-1">Eq. (1)</xref>) of the head entity <inline-formula id="ieqn-27">
<mml:math id="mml-ieqn-27"><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:math>
</inline-formula> and the tail entity <inline-formula id="ieqn-28">
<mml:math id="mml-ieqn-28"><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:math>
</inline-formula> in the candidate entity pair <inline-formula id="ieqn-29">
<mml:math id="mml-ieqn-29"><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</inline-formula>. <inline-formula id="ieqn-30">
<mml:math id="mml-ieqn-30"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msub></mml:mrow></mml:math>
</inline-formula> is the localized context representation. Specifically, SpERT places the span between the head entity and the tail entity into the fine-tuned BERT for encoding and obtains <inline-formula id="ieqn-31">
<mml:math id="mml-ieqn-31"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mspace width="thickmathspace" /><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msub></mml:mrow></mml:math>
</inline-formula>. If this span is empty, then <xref ref-type="disp-formula" rid="eqn-4">Eq. (4)</xref> is changed to <inline-formula id="ieqn-32">
<mml:math id="mml-ieqn-32"><mml:mi>e</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2218;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>e</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</inline-formula>. <inline-formula id="ieqn-33">
<mml:math id="mml-ieqn-33"><mml:mrow><mml:msup><mml:mi>W</mml:mi><mml:mi>r</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="script">R</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mn>3</mml:mn><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>l</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mn>2</mml:mn><mml:mi>n</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x00D7;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mi>r</mml:mi></mml:msub></mml:mrow></mml:mrow></mml:msup></mml:mrow></mml:math>
</inline-formula> is the trainable weight, <inline-formula id="ieqn-34">
<mml:math id="mml-ieqn-34"><mml:mrow><mml:msup><mml:mi>b</mml:mi><mml:mi>r</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="script">R</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mn>3</mml:mn><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>l</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mn>2</mml:mn><mml:mi>n</mml:mi></mml:mrow></mml:msup></mml:mrow></mml:math>
</inline-formula> is the bias, and <inline-formula id="ieqn-35">
<mml:math id="mml-ieqn-35"><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mi>r</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow></mml:math>
</inline-formula>is the number of relation classes (including <inline-formula id="ieqn-36">
<mml:math id="mml-ieqn-36"><mml:mi>n</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mi>e</mml:mi></mml:math>
</inline-formula>). <inline-formula id="ieqn-37">
<mml:math id="mml-ieqn-37"><mml:mi>&#x03C3;</mml:mi></mml:math>
</inline-formula> is the sigmoid activation function. Given a threshold <inline-formula id="ieqn-38">
<mml:math id="mml-ieqn-38"><mml:mi>&#x03B1;</mml:mi></mml:math>
</inline-formula>, any relation class probability greater than <inline-formula id="ieqn-39">
<mml:math id="mml-ieqn-39"><mml:mi>&#x03B1;</mml:mi></mml:math>
</inline-formula> is considered activated. If <inline-formula id="ieqn-40">
<mml:math id="mml-ieqn-40"><mml:mi>n</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mi>e</mml:mi></mml:math>
</inline-formula> is activated, then this entity pair has no known relation. For example, if the predicted probabilities of the entity pair <inline-formula id="ieqn-41">
<mml:math id="mml-ieqn-41"><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>1</mml:mn></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mspace width="thickmathspace" /><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:math>
</inline-formula> with respect to <inline-formula id="ieqn-42">
<mml:math id="mml-ieqn-42"><mml:mi>A</mml:mi><mml:mi>d</mml:mi><mml:mi>v</mml:mi><mml:mi>e</mml:mi><mml:mi>r</mml:mi><mml:mi>s</mml:mi><mml:mi>e</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mi>E</mml:mi><mml:mi>f</mml:mi><mml:mi>f</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>t</mml:mi></mml:math>
</inline-formula>, <inline-formula id="ieqn-43">
<mml:math id="mml-ieqn-43"><mml:mi>D</mml:mi><mml:mi>r</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi></mml:math>
</inline-formula>, and <inline-formula id="ieqn-44">
<mml:math id="mml-ieqn-44"><mml:mi>n</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mi>e</mml:mi></mml:math>
</inline-formula>. are 0.43, 0.47, and 0.1, respectively, then there are two types of relationships between <inline-formula id="ieqn-45">
<mml:math id="mml-ieqn-45"><mml:mi>A</mml:mi><mml:mi>d</mml:mi><mml:mi>v</mml:mi><mml:mi>e</mml:mi><mml:mi>r</mml:mi><mml:mi>s</mml:mi><mml:mi>e</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mi>E</mml:mi><mml:mi>f</mml:mi><mml:mi>f</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>t</mml:mi></mml:math>
</inline-formula> and <inline-formula id="ieqn-46">
<mml:math id="mml-ieqn-46"><mml:mi>D</mml:mi><mml:mi>r</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi></mml:math>
</inline-formula>. If the predicted probabilities are 0.59, 0.0, 0.41, respectively, then no relationship exists for that entity pair (The threshold <inline-formula id="ieqn-47">
<mml:math id="mml-ieqn-47"><mml:mi>&#x03B1;</mml:mi></mml:math>
</inline-formula> is set at 0.4).</p>
</sec>
<sec id="s3_5">
<label>3.5</label>
<title>Problems of SpERT</title>
<p>As mentioned in the Introduction, we determine that SpERT has two problems. First, SpERT&#x2019;s classifier lacks clear boundary supervision on the span. Width embedding is the only constraint mechanisin span width. Considering that the span is long or short, spans composed of different numbers of words will have distinct characteristics. SpERT specifically learns a width embedding matrix through backpropagation; hence, it should play a key role in entity boundary supervision. To evaluate the effectiveness of width embedding, we test two different training models on three datasets:<list list-type="bullet"><list-item>
<p>SpERT: It uses the default structure settings, which provide the width embeddings that need to be learned by backpropagation (<xref ref-type="disp-formula" rid="eqn-1">Eq. (1)</xref>).</p></list-item><list-item>
<p>ERT&#x2019;: The variant model of SpERT that removes the width embedding in the span and relational classifiers, while keeping the other default structure settings of the model.</p></list-item></list></p>
<p>As shown in <xref ref-type="table" rid="table-1">Tab. 1</xref>, the addition of width embedding is unreliable in improving the performance of the span classifier. Especially on the SciERC dataset, the F1 score of the SpERT model with width embedding decreases by 0.75% in terms of NER. Three reasons are considered for our analysis. First, the model lacks boundary supervision when facing a complex dataset. The SciERC dataset is more complicated than the two other datasets. It is more significant than CoNLL04 in the dataset size, and it is 3 times that of ADE in the entity class. Second, the width embedding of SpERT only learns the span width and cannot essentially solve the problem of inaccurate boundary recognition. Consequently, performance degradation is expected. Third, because the span classifier of SpERT is only a fully connected layer, the model is overly dependent on BERT encoding. For example, when the extraction target is the &#x201C;geometric estimation problem,&#x201D; the model extracts the correct span while also extracting the semantically similar wrong span &#x201C;selection of geometric estimation problems,&#x201D; which leads to a decrease in model performance.</p>
<table-wrap id="table-1"><label>Table 1</label>
<caption>
<title>Results of SpERT and SpERT&#x2019; on three datasets. The effectiveness of width embedding for the SpERT model is evaluated</title></caption>
<table><colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Dataset</th>
<th>Model</th>
<th>Precision</th>
<th>Recall</th>
<th>F1</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2">CoNLL04</td>
<td>SpERT</td>
<td>87.99</td>
<td><bold>89.62</bold></td>
<td><bold>88.80</bold></td>
</tr>
<tr>
<td>SpERT&#x2019;</td>
<td><bold>88.15</bold></td>
<td>88.97</td>
<td>88.56</td>
</tr>
<tr>
<td rowspan="2">SciERC</td>
<td>SpERT</td>
<td>69.34</td>
<td>68.84</td>
<td>69.09</td>
</tr>
<tr>
<td>SpERT&#x2019;</td>
<td><bold>70.01</bold></td>
<td><bold>69.67</bold></td>
<td><bold>69.84</bold></td>
</tr>
<tr>
<td rowspan="2">ADE</td>
<td>SpERT</td>
<td><bold>90.83</bold></td>
<td>91.18</td>
<td><bold>91.00</bold></td>
</tr>
<tr>
<td>SpERT&#x2019;</td>
<td>89.00</td>
<td><bold>91.37</bold></td>
<td>90.17</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>In addition, many experiments have shown that the BERT model effectively extracts text information. If the text data are domain-specific (e.g., science, news, and medicine), we may need to consider creating our domain-specific language model. Relevant models have been created by training the BERT architecture on a domain-specific <italic>corpus</italic> rather than the general English text <italic>corpus</italic> used to train the original BERT model. Because pretraining BERT requires a large <italic>corpus</italic>, and we cannot use this method to improve the model&#x2019;s extraction of text in a specific field. Therefore, we need to change the method to mine the unexploited information in the Transformers pretrained model under the existing conditions. At present, the input for downstream tasks of many mainstream models (including SpERT) often comes from the last hidden layer embedding of BERT while ignoring the interactive information among words carried by the BERT attention head itself. To this aim, we provide a novel attentional contribution degree algorithm, which combines the softmax attention head score with hidden layer feature embedding to improve the model&#x2019;s extraction of entities and relationships.</p>
</sec>
</sec>
<sec id="s4">
<label>4</label>
<title>Our Method</title>
<p>In this section, we choose SpERT as the baseline model, analyze SpERT&#x2019;s problems of inaccurate span recognition and insufficient information mining in specific fields, and propose a novel ASpERT model (<xref ref-type="fig" rid="fig-1">Fig. 1</xref>). Then, we introduce a novel attentional contribution degree algorithm and a multitask training method that combines span and relation classifiers.</p>
<fig id="fig-1">
<label>Figure 1</label>
<caption>
<title>Overview of the ASpERT model for JERE and the orange part is our contribution</title></caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="IASC_28352-fig-1.png"/>
</fig>
<sec id="s4_1">
<label>4.1</label>
<title>Novel Structure for the Span Classifier</title>
<p>We consider that the span classifier is different from the traditional classifier, such as fully connected layer and softmax layer. In addition to classifying the span, it also needs to predict which words belong to the entity boundary. Thus, we propose a span classification structure that considers these two functions.</p>
<p>The BERT embedding of candidate span <inline-formula id="ieqn-48">
<mml:math id="mml-ieqn-48"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>l</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</inline-formula> and the BERT embedding of the special [CLS] token <inline-formula id="ieqn-49">
<mml:math id="mml-ieqn-49"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>c</mml:mi><mml:mi>l</mml:mi><mml:mi>s</mml:mi></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow></mml:msub></mml:mrow></mml:math>
</inline-formula> are the main sources of textual semantic information (<xref ref-type="disp-formula" rid="eqn-1">Eq. (1)</xref>). The special [CLS] token represents the complete sentence information in the classification task. The maximum pooling of these BERT embeddings is only applicable to span classification. A candidate span includes one or more words, and BERT assigns an embedding matrix to each word through fine-tuning. Maximum pooling (<xref ref-type="disp-formula" rid="eqn-1">Eq. (1)</xref>) of the BERT embedding of the candidate span is equivalent to selecting the largest single word embedding matrix to represent the semantic information of this span. SpERT excessively strengthens key information at the expense of marginal information and the association among words, resulting in the unclear boundary supervision of entities. This condition explains well why &#x201C;geometric estimation problems&#x201D; and &#x201C;selection of geometric estimation problems&#x201D; have similar span class probabilities. For the above reasons, we add the attentional contribution degree <inline-formula id="ieqn-50">
<mml:math id="mml-ieqn-50"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>a</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</inline-formula> to the span representation as the boundary confidence of span classification. Specifically, we first concatenate all the attention heads with the residuals of the span classifier, then remove the lower attention scores and take the average (<italic>via</italic> the attention contribution algorithm in Section 4.2) combined with the feature embedding. Finally, the fine-tuning of the pre-trained model is constrained by backpropagation learning. We consider that the attentional contribution degree incorporates word-to-word attention as well as residual concatenation, allowing the model not to lose original information as depth increases. The specific improvements to <xref ref-type="disp-formula" rid="eqn-1">Eqs. (1)</xref> and <xref ref-type="disp-formula" rid="eqn-2">(2)</xref> respectively are as follows:</p>
<p><disp-formula id="eqn-6"><label>(6)</label>
<mml:math id="mml-eqn-6" display="block"><mml:mi>E</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>M</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi><mml:mi>P</mml:mi><mml:mi>o</mml:mi><mml:mi>o</mml:mi><mml:mi>l</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>g</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>l</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo stretchy="false">)</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2218;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>a</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2218;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow></mml:math>
</disp-formula></p>
<p><disp-formula id="eqn-7"><label>(7)</label>
<mml:math id="mml-eqn-7" display="block"><mml:mrow><mml:msup><mml:mi>X</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>E</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2218;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>c</mml:mi><mml:mi>l</mml:mi><mml:mi>s</mml:mi></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow></mml:msub></mml:mrow></mml:math>
</disp-formula></p>
<p>where <inline-formula id="ieqn-51">
<mml:math id="mml-ieqn-51"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>l</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</inline-formula>, <inline-formula id="ieqn-52">
<mml:math id="mml-ieqn-52"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow></mml:math>
</inline-formula> and <inline-formula id="ieqn-53">
<mml:math id="mml-ieqn-53"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mi>c</mml:mi><mml:mi>l</mml:mi><mml:mi>s</mml:mi></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow></mml:msub></mml:mrow></mml:math>
</inline-formula> are obtained in the same way as in <xref ref-type="disp-formula" rid="eqn-1">Eq. (1)</xref>. The details of the calculation of <inline-formula id="ieqn-54">
<mml:math id="mml-ieqn-54"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>a</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:mrow><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mo>+</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</inline-formula> are described in the Attentional Contribution Degree Algorithm section.</p>
<p>JERE tasks are usually converted into one or more classification tasks at the end. Therefore, the classifier&#x2019;s quality is related to whether the high-dimensional data information can be accurately mapped to a given category. SpERT&#x2019;s span classifier is a linear fully connected layer. Few data strictly adhere to the linear distribution when noise is introduced, such that a simple linear structure cannot accurately predict the span class. Recently, MLP has been repositioned in visual classification [<xref ref-type="bibr" rid="ref-48">48</xref>]. For migration learning, we use MLP for span classification, hoping to increase the number of parameters to improve the potential representation capability of the classifier. The improvements to <xref ref-type="disp-formula" rid="eqn-3">Eq. (3)</xref> are as follows:</p>
<p><disp-formula id="eqn-8"><label>(8)</label>
<mml:math id="mml-eqn-8" display="block"><mml:mrow><mml:msup><mml:mi>Y</mml:mi><mml:mrow><mml:msup><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msup></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>L</mml:mi><mml:mi>U</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:msup><mml:mi>W</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mn>1</mml:mn></mml:msub><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x22C5;</mml:mo><mml:mrow><mml:msup><mml:mi>X</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:msub><mml:mrow><mml:msup><mml:mi>b</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mn>1</mml:mn></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</disp-formula></p>
<p><disp-formula id="eqn-9"><label>(9)</label>
<mml:math id="mml-eqn-9" display="block"><mml:mrow><mml:msup><mml:mrow><mml:mover><mml:mi>Y</mml:mi><mml:mo stretchy="false">&#x005E;</mml:mo></mml:mover></mml:mrow><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>s</mml:mi><mml:mi>o</mml:mi><mml:mi>f</mml:mi><mml:mi>t</mml:mi><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:msup><mml:mi>W</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mn>2</mml:mn></mml:msub><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x22C5;</mml:mo><mml:mrow><mml:msup><mml:mi>Y</mml:mi><mml:mrow><mml:msup><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi mathvariant="normal">&#x2032;</mml:mi></mml:mrow></mml:msup></mml:mrow></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:msub><mml:mrow><mml:msup><mml:mi>b</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mn>2</mml:mn></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math>
</disp-formula></p>
<p>where <inline-formula id="ieqn-55">
<mml:math id="mml-ieqn-55"><mml:mrow><mml:msup><mml:mrow><mml:mover><mml:mi>Y</mml:mi><mml:mo stretchy="false">&#x005E;</mml:mo></mml:mover></mml:mrow><mml:mi>s</mml:mi></mml:msup></mml:mrow></mml:math>
</inline-formula> is the entity probability. <inline-formula id="ieqn-56">
<mml:math id="mml-ieqn-56"><mml:msub><mml:mrow><mml:msup><mml:mi>W</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mn>1</mml:mn></mml:msub><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="script">R</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mn>2</mml:mn><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>l</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>a</mml:mi></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x00D7;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow></mml:math>
</inline-formula> and <inline-formula id="ieqn-57">
<mml:math id="mml-ieqn-57"><mml:msub><mml:mrow><mml:msup><mml:mi>W</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mn>2</mml:mn></mml:msub><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="script">R</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mi>m</mml:mi><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x00D7;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msub><mml:mi>k</mml:mi><mml:mi>s</mml:mi></mml:msub></mml:mrow></mml:mrow></mml:msup></mml:mrow></mml:math>
</inline-formula> are the trainable weights. <inline-formula id="ieqn-58">
<mml:math id="mml-ieqn-58"><mml:msub><mml:mrow><mml:msup><mml:mi>b</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mn>1</mml:mn></mml:msub><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="script">R</mml:mi></mml:mrow></mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mn>2</mml:mn><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>l</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>a</mml:mi></mml:msub></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:mrow></mml:math>
</inline-formula> and <inline-formula id="ieqn-59">
<mml:math id="mml-ieqn-59"><mml:msub><mml:mrow><mml:msup><mml:mi>b</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mn>2</mml:mn></mml:msub><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msup><mml:mrow><mml:mrow><mml:mi mathvariant="script">R</mml:mi></mml:mrow></mml:mrow><mml:mi>m</mml:mi></mml:msup></mml:mrow></mml:math>
</inline-formula> are the biases. <inline-formula id="ieqn-60">
<mml:math id="mml-ieqn-60"><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>a</mml:mi></mml:msub></mml:mrow></mml:math>
</inline-formula> is the number of BERT&#x2019;s attention heads. <inline-formula id="ieqn-61">
<mml:math id="mml-ieqn-61"><mml:mi>m</mml:mi></mml:math>
</inline-formula> is the number of hidden layer units of the MLP. <inline-formula id="ieqn-62">
<mml:math id="mml-ieqn-62"><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>L</mml:mi><mml:mi>U</mml:mi></mml:math>
</inline-formula> is the ReLu activation function, and <inline-formula id="ieqn-63">
<mml:math id="mml-ieqn-63"><mml:mi>s</mml:mi><mml:mi>o</mml:mi><mml:mi>f</mml:mi><mml:mi>t</mml:mi><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi></mml:math>
</inline-formula> is the softmax activation function.</p>
</sec>
<sec id="s4_2">
<label>4.2</label>
<title>Attentional Contribution Degree Algorithm</title>
<p>In this subsection, we describe the attentional contribution degree algorithm in detail. Attentional contribution degree is a novel attention weight, which concatenates the calculated attentional contribution degree with hidden layer features to obtain a weighted feature encoding. This encoding helps the model understand the contextual information of the span and strengthens the model&#x2019;s extraction of entities and relations.</p>
<fig id="fig-3">
<graphic mimetype="image" mime-subtype="png" xlink:href="IASC_28352-fig-3.png"/>
</fig>
<p>The attentional contribution degree is derived from the attention paid to interword information by each attention head in each layer of the pretrained model. Among them, pretrained model comes from the BERT variant of the Transformers library. The large model and <italic>corpus</italic> symbolize many GPU resources, such that we only fine-tune the pretrained model (such as BERT base (cased) [<xref ref-type="bibr" rid="ref-16">16</xref>], SciBERT (cased) [<xref ref-type="bibr" rid="ref-49">49</xref>], and BioBERT (cased) [<xref ref-type="bibr" rid="ref-50">50</xref>]) in a specific field. This condition does not mean that we are bound by the pretrained model. On the contrary, we fully utilize the attention header information of Transformers. We train and use the intermediate product of the model&#x2014;self-attention head. For example, BERT base has 12 layers, and each layer has 12 attention heads. Then we can make use of the information of these 144 attention heads.</p>
<p>Specifically, first we extract all the attention heads, which contain information about the relationship among words in a sentence. Second, we concatenate multiple attention heads in the num head dimension. As shown in Algorithm 1, we mask irrelevant words and only retain the relationship information between the candidate span and the words in the full text. Immediately after, considering that each attention layer provides multiple &#x201C;representation subspaces,&#x201D; the multihead attention mechanism expands the model&#x2019;s ability to represent different positions. We provide the contribution threshold <inline-formula id="ieqn-73">
<mml:math id="mml-ieqn-73"><mml:mi>&#x03B8;</mml:mi></mml:math>
</inline-formula> to filter the attention head information with low attention to candidate span. Finally, the attention contribution degree is obtained by mean-pooling the attention header information from the token dimensions of both the context and the entity. (Algorithm 2).</p>
<fig id="fig-4">
<graphic mimetype="image" mime-subtype="png" xlink:href="IASC_28352-fig-4.png"/>
</fig>
</sec>
<sec id="s4_3">
<label>4.3</label>
<title>Training</title>
<p>Our training is supervised, providing the model with labeled sentences (including candidate span, entity class, candidate entity pair, and relation class). We learn width embedding <inline-formula id="ieqn-92">
<mml:math id="mml-ieqn-92"><mml:mrow><mml:msub><mml:mi>w</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow></mml:math>
</inline-formula> and span/relation classifiers&#x2019; parameters (<inline-formula id="ieqn-93">
<mml:math id="mml-ieqn-93"><mml:msub><mml:mrow><mml:msup><mml:mi>W</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mo>&#x22C5;</mml:mo><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msub></mml:math>
</inline-formula>, <inline-formula id="ieqn-94">
<mml:math id="mml-ieqn-94"><mml:msub><mml:mrow><mml:msup><mml:mi>b</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mo>&#x22C5;</mml:mo><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:msub></mml:math>
</inline-formula>, <inline-formula id="ieqn-95">
<mml:math id="mml-ieqn-95"><mml:msup><mml:mi>W</mml:mi><mml:mi>r</mml:mi></mml:msup><mml:mo>,</mml:mo><mml:mspace width="thickmathspace" /><mml:msup><mml:mi>b</mml:mi><mml:mi>r</mml:mi></mml:msup></mml:math>
</inline-formula>) and fine-tune the domain-specific BERT. Different from the joint loss function defined by SpERT, <xref ref-type="disp-formula" rid="eqn-10">Eq. (10)</xref> is used here for entity classification and relation classification:</p>
<p><disp-formula id="eqn-10"><label>(10)</label>
<mml:math id="mml-eqn-10" display="block"><mml:mi>L</mml:mi><mml:mspace width="thickmathspace" /><mml:mo>=</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:msup><mml:mi>L</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mo>+</mml:mo><mml:mrow><mml:mspace width="thickmathspace" /></mml:mrow><mml:mrow><mml:msup><mml:mi>L</mml:mi><mml:mi>r</mml:mi></mml:msup></mml:mrow></mml:math>
</disp-formula></p>
<p>where <inline-formula id="ieqn-96">
<mml:math id="mml-ieqn-96"><mml:mi>&#x03BB;</mml:mi></mml:math>
</inline-formula> is the weight of the joint loss function, <inline-formula id="ieqn-97">
<mml:math id="mml-ieqn-97"><mml:mrow><mml:msup><mml:mi>L</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:mrow></mml:math>
</inline-formula> is the loss of the span classifier calculated using the cross-entropy loss function, and <inline-formula id="ieqn-98">
<mml:math id="mml-ieqn-98"><mml:mrow><mml:msup><mml:mi>L</mml:mi><mml:mi>r</mml:mi></mml:msup></mml:mrow></mml:math>
</inline-formula> is the loss of the relation classifier calculated using the binary cross-entropy loss function.</p>
</sec>
</sec>
<sec id="s5">
<label>5</label>
<title>Experiment</title>
<sec id="s5_1">
<label>5.1</label>
<title>Datasets and Setting</title>
<p>We evaluate the model on three datasets from different domains, CoNLL04 [<xref ref-type="bibr" rid="ref-51">51</xref>], SciERC [<xref ref-type="bibr" rid="ref-14">14</xref>], and ADE [<xref ref-type="bibr" rid="ref-52">52</xref>]. As shown in <xref ref-type="table" rid="table-2">Tab. 2</xref>, the CoNLL04 dataset is derived from news articles and includes four entity types and five relationship types. The dataset is divided into a training set of 911 sentences, a validation set of 231 sentences, and a test set of 288 sentences. The SciERC (scientific information extractor) dataset is derived from abstracts of artificial intelligence papers and includes six scientific entity types and seven relationship types. This dataset is divided into a training set of 1861 sentences, a validation set of 275 sentences, and a test set of 551 sentences. The ADE (adverse drug effect) dataset is derived from medical reports describing the adverse effects of drug use and contains two entity types and one relationship type. The dataset is divided into a training set of 3843 sentences and a validation set of 429 sentences.</p>
<table-wrap id="table-2"><label>Table 2</label>
<caption>
<title>Detailed information of datasets</title></caption>
<table><colgroup>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Dataset</th>
<th>Entity type</th>
<th>Relationship type</th>
</tr>
</thead>
<tbody>
<tr>
<td>CoNLL04</td>
<td>Location, organization, people, other</td>
<td>Work-for, kill, organizationbased-in, live-in, located-in</td>
</tr>
<tr>
<td>SciERC</td>
<td>Task, method, metric, material, other-scientific-term, generic</td>
<td>Compare, conjunction, evaluate-for, used-for, featureof, part-of, hyponym-of</td>
</tr>
<tr>
<td>ADE</td>
<td>Adverse-effect</td>
<td>Adverse-effect, drug</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>We evaluated ASpERT on entity extraction and RE. An entity prediction is considered correct if the span and entity type of the entity prediction match the ground truth. A relation prediction is considered correct if the relation type and the two related entities (span and type) match the ground truth. In particular, to be consistent with the evaluation criteria of the comparative model, we only consider the prediction of relationship and entity span (ignoring the accuracy of entity type) on the SciERC dataset. Hyperparameters used for final training are listed in <xref ref-type="table" rid="table-3">Tab. 3</xref>.</p>
<table-wrap id="table-3"><label>Table 3</label>
<caption>
<title>Optimal hyperparameters used for final training on the ADE, SciERC, and CoNLL04 datasets</title></caption>
<table><colgroup>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Hyperparamete</th>
<th>CoNLL04</th>
<th>SciERC</th>
<th>ADE</th>
</tr>
</thead>
<tbody>
<tr>
<td>Entity negative sampling number</td>
<td>150/sentence</td>
<td>150/sentence</td>
<td>150/sentence</td>
</tr>
<tr>
<td>Relation negative sampling number</td>
<td>150/sentence</td>
<td>150/sentence</td>
<td>150/sentence</td>
</tr>
<tr>
<td>Pre-trained model type</td>
<td>BERT base (cased)</td>
<td>SciBERT (cased)</td>
<td>BioBERT (cased)</td>
</tr>
<tr>
<td>Span classifier MLP size <inline-formula id="ieqn-99">
<mml:math id="mml-ieqn-99"><mml:mi>m</mml:mi></mml:math>
</inline-formula></td>
<td>784</td>
<td>784</td>
<td>784</td>
</tr>
<tr>
<td>width embedding size <inline-formula id="ieqn-100">
<mml:math id="mml-ieqn-100"><mml:mi>n</mml:mi></mml:math>
</inline-formula></td>
<td>25</td>
<td>25</td>
<td>25</td>
</tr>
<tr>
<td>Contribution threshold <inline-formula id="ieqn-101">
<mml:math id="mml-ieqn-101"><mml:mi>&#x03B8;</mml:mi></mml:math>
</inline-formula></td>
<td>0.5</td>
<td>0.5</td>
<td>0.5</td>
</tr>
<tr>
<td>Relation classifier threshold <inline-formula id="ieqn-102">
<mml:math id="mml-ieqn-102"><mml:mi>&#x03B1;</mml:mi></mml:math>
</inline-formula></td>
<td>0.4</td>
<td>0.4</td>
<td>0.4</td>
</tr>
<tr>
<td>MLP dropout</td>
<td>0.1</td>
<td>0.1</td>
<td>0.1</td>
</tr>
<tr>
<td>Optimizer</td>
<td>Adam</td>
<td>Adam</td>
<td>Adam</td>
</tr>
<tr>
<td>Peak learning rate</td>
<td>5e&#x2212;5</td>
<td>5e&#x2212;5</td>
<td>5e&#x2212;5</td>
</tr>
<tr>
<td>Linear warmup learning rate</td>
<td>0.1</td>
<td>0.1</td>
<td>0.1</td>
</tr>
<tr>
<td>Linear decay learning rate</td>
<td>0.01</td>
<td>0.01</td>
<td>0.01</td>
</tr>
<tr>
<td>Epochs</td>
<td>20</td>
<td>20</td>
<td>20</td>
</tr>
<tr>
<td>Batch size</td>
<td>4</td>
<td>6</td>
<td>10</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s5_2">
<label>5.2</label>
<title>Comparison with the State of the Art</title>
<p>First, to evaluate the effectiveness of ASpERT&#x2019;s improvement based on SpERT, we train both models on the same device and unify the pretrained model and training parameters. We report an average of over five runs for each dataset. In particular, the ADE dataset uses 10-fold cross validation. As shown in <xref ref-type="table" rid="table-4">Tab. 4</xref>, the performance of ASpERT is significantly better than that of the baseline model (SpERT) on different datasets. For entity extraction, the micro-F1 scores are increased by 0.45% (CoNLL04), 0.20% (SciERC), and 0.52% (ADE), and the macro-F1 scores are increased by 0.71% (CoNLL04), 0.33% (SciERC), and 0.50% (ADE). For RE, the micro-F1 scores are increased by 1.25% (CoNLL04), 1.39% (SciERC), and 1.31% (ADE), and the macro-F1 scores are increased by 1.25% (CoNLL04), 1.29% (SciERC), and 1.31% (ADE).</p>
<table-wrap id="table-4"><label>Table 4</label>
<caption>
<title>Results of SpERT and ASpERT on three datasets (metrics: microaverage &#x003D; &#x2020;, macroaverage &#x003D; &#x2021;)</title></caption>
<table><colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th rowspan="2">Dataset</th>
<th rowspan="2">Model</th>
<th colspan="3">Entity</th>
<th colspan="3">Relation</th>
</tr>
<tr>
<th>Precision</th>
<th>Recall</th>
<th>F1</th>
<th>Precision</th>
<th>Recall</th>
<th>F1</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="4">CoNLL04</td>
<td>SpERT<sup>&#x2020;</sup></td>
<td>87.64</td>
<td>89.03</td>
<td>88.32</td>
<td>70.72</td>
<td>67.58</td>
<td>69.11</td>
</tr>
<tr>
<td>SpERT<sup>&#x2021;</sup></td>
<td>84.75</td>
<td>85.86</td>
<td>85.26</td>
<td>72.11</td>
<td>69.24</td>
<td>70.41</td>
</tr>
<tr>
<td>ASpERT<sup>&#x2020;</sup></td>
<td>89.03</td>
<td>88.53</td>
<td>88.77</td>
<td>73.62</td>
<td>67.39</td>
<td>70.36</td>
</tr>
<tr>
<td>ASpERT<sup>&#x2021;</sup></td>
<td>86.57</td>
<td>85.49</td>
<td>85.97</td>
<td>74.92</td>
<td>69.01</td>
<td>71.66</td>
</tr>
<tr>
<td rowspan="4">SciERC</td>
<td>SpERT<sup>&#x2020;</sup></td>
<td>69.46</td>
<td>70.59</td>
<td>70.02</td>
<td>52.20</td>
<td>49.71</td>
<td>50.91</td>
</tr>
<tr>
<td>SpERT<sup>&#x2021;</sup></td>
<td>69.28</td>
<td>70.62</td>
<td>69.79</td>
<td>51.74</td>
<td>47.87</td>
<td>49.23</td>
</tr>
<tr>
<td>ASpERT<sup>&#x2020;</sup></td>
<td>69.88</td>
<td>70.57</td>
<td>70.22</td>
<td>53.59</td>
<td>51.07</td>
<td>52.30</td>
</tr>
<tr>
<td>ASpERT<sup>&#x2021;</sup></td>
<td>69.72</td>
<td>70.67</td>
<td>70.12</td>
<td>53.26</td>
<td>48.88</td>
<td>50.52</td>
</tr>
<tr>
<td rowspan="4">ADE</td>
<td>SpERT<sup>&#x2020;</sup></td>
<td>89.83</td>
<td>91.40</td>
<td>90.60</td>
<td>79.70</td>
<td>83.29</td>
<td>81.45</td>
</tr>
<tr>
<td>SpERT<sup>&#x2021;</sup></td>
<td>90.10</td>
<td>91.74</td>
<td>90.91</td>
<td>79.70</td>
<td>83.29</td>
<td>81.45</td>
</tr>
<tr>
<td>ASpERT<sup>&#x2020;</sup></td>
<td>90.68</td>
<td>91.56</td>
<td>91.12</td>
<td>81.65</td>
<td>83.92</td>
<td>82.76</td>
</tr>
<tr>
<td>ASpERT<sup>&#x2021;</sup></td>
<td>90.96</td>
<td>91.87</td>
<td>91.41</td>
<td>81.65</td>
<td>83.92</td>
<td>82.76</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Subsequently, we compared the proposed model with the most advanced models currently. As shown in <xref ref-type="table" rid="table-5">Tab. 5</xref>, these models are the top four models (except for SpERT) of the three datasets in the Papers With Code ranking list. We sorted ASpERT and these models in descending order in accordance with the F1 score of RE. The experimental results show that ASpERT has higher extraction performance in entities and relations. Even in the challenging and domain-specific SciERC dataset, ASpERT&#x2019;s F1 score RE is 0.30% higher than that of the top-ranked PL-Marker.</p>
<table-wrap id="table-5"><label>Table 5</label>
<caption>
<title>Results of comparing ASpERT with the state-of-the-art models on three datasets (metrics: microaverage &#x003D; &#x2020;, macroaverage &#x003D; &#x2021;)</title></caption>
<table><colgroup>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Dataset</th>
<th>Model</th>
<th>Entity</th>
<th>Relation</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="5">CoNLL04</td>
<td>REBEL [<xref ref-type="bibr" rid="ref-39">39</xref>]<sup>&#x2021;</sup></td>
<td>&#x2013;</td>
<td>76.65</td>
</tr>
<tr>
<td>Table-Sequence [<xref ref-type="bibr" rid="ref-38">38</xref>]<sup>&#x2021;</sup></td>
<td>86.90</td>
<td>75.40</td>
</tr>
<tr>
<td>Deeper [<xref ref-type="bibr" rid="ref-3">3</xref>] <sup>&#x2021;</sup></td>
<td>87.00</td>
<td>72.63</td>
</tr>
<tr>
<td><bold>ASpERT</bold><sup>&#x2021;</sup></td>
<td><bold>85.97</bold></td>
<td><bold>71.66</bold></td>
</tr>
<tr>
<td>Biaffine attention [<xref ref-type="bibr" rid="ref-2">2</xref>]<sup>&#x2021;</sup></td>
<td>86.20</td>
<td>64.40</td>
</tr>
<tr>
<td rowspan="5">SciERC</td>
<td><bold>ASpERT</bold><sup>&#x2020;</sup></td>
<td><bold>70.22</bold></td>
<td><bold>52.30</bold></td>
</tr>
<tr>
<td>PL-Marker [<xref ref-type="bibr" rid="ref-35">35</xref>]<sup>&#x2020;</sup></td>
<td>69.90</td>
<td>52.00</td>
</tr>
<tr>
<td>SpERT.PL [<xref ref-type="bibr" rid="ref-33">33</xref>]<sup>&#x2020;</sup></td>
<td>70.53</td>
<td>51.25</td>
</tr>
<tr>
<td>Ours: cross-sentence [<xref ref-type="bibr" rid="ref-22">22</xref>]<sup>&#x2020;</sup></td>
<td>68.90</td>
<td>50.10</td>
</tr>
<tr>
<td>DyGIE&#x002B;&#x002B; [<xref ref-type="bibr" rid="ref-47">47</xref>]<sup>&#x2020;</sup></td>
<td>67.50</td>
<td>48.40</td>
</tr>
<tr>
<td rowspan="5">ADE</td>
<td>Deeper [<xref ref-type="bibr" rid="ref-3">3</xref>] <sup>&#x2021;</sup></td>
<td>89.48</td>
<td>83.74</td>
</tr>
<tr>
<td>PFN [<xref ref-type="bibr" rid="ref-32">32</xref>] <sup>&#x2021;</sup></td>
<td>91.30</td>
<td>83.20</td>
</tr>
<tr>
<td><bold>ASpERT</bold><sup>&#x2021;</sup></td>
<td><bold>91.41</bold></td>
<td><bold>82.76</bold></td>
</tr>
<tr>
<td>REBEL [<xref ref-type="bibr" rid="ref-39">39</xref>]<sup>&#x2021;</sup></td>
<td>&#x2013;</td>
<td>82.20</td>
</tr>
<tr>
<td>CMAN [<xref ref-type="bibr" rid="ref-34">34</xref>]<sup>&#x2021;</sup></td>
<td>89.40</td>
<td>81.14</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s5_3">
<label>5.3</label>
<title>Effects of Attentional Contribution Degree</title>
<p>In <xref ref-type="table" rid="table-4">Tab. 4</xref>, although the performance of ASpERT is better than that of SpERT, it is still not clear which part of ASpERT plays a key role. To demonstrate the advantage of the attentional contribution algorithm in JERE, we test two models:<list list-type="bullet"><list-item>
<p>Full: We use the complete ASpERT model structure.</p></list-item><list-item>
<p>-AC: We retain most of the ASpERT model structure but remove the attentional contribution degree algorithm.</p></list-item></list></p>
<p>We ran these two models more than 5 times on three datasets and average them (the ADE dataset uses 10-fold cross validation). As shown in <xref ref-type="table" rid="table-6">Tab. 6</xref>, the performance of the variant model without the attentional contribution degree algorithm is significantly decreased. In terms of entity extraction, F1 scores decreased by 0.48%. In RE, the F1 score decreased by 1.46%. These experimental results show that the attentional contribution degree algorithm can capture word-to-word relationships adequately, which helps in efficient relation classification and is the main contribution of the new model architecture.</p>
<table-wrap id="table-6"><label>Table 6</label>
<caption>
<title>Effect of attentional contribution degree algorithm on ERE</title></caption>
<table><colgroup>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Dataset</th>
<th>Model</th>
<th>Entity F1</th>
<th>Relation F1</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2">ConLL04</td>
<td>Full</td>
<td>85.97</td>
<td>71.66</td>
</tr>
<tr>
<td>-AC</td>
<td>86.10</td>
<td>70.20</td>
</tr>
<tr>
<td rowspan="2">SciERC</td>
<td>Full</td>
<td>70.22</td>
<td>52.30</td>
</tr>
<tr>
<td>-AC</td>
<td>70.05</td>
<td>51.56</td>
</tr>
<tr>
<td rowspan="2">ADE</td>
<td>Full</td>
<td>91.41</td>
<td>82.76</td>
</tr>
<tr>
<td>-AC</td>
<td>90.93</td>
<td>81.73</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>Then, we investigated the effect of setting different contribution thresholds on the model&#x2019;s ability to capture word-to-word relationships on SciERC and CoNLL04. <xref ref-type="fig" rid="fig-2">Fig. 2</xref> shows the F1 scores (RE) with different contribution thresholds. When the threshold is 0.5, the model performance is optimal.</p>
<fig id="fig-2">
<label>Figure 2</label>
<caption>
<title>Effect of different contribution thresholds on the relation F1 score</title></caption>
<graphic mimetype="image" mime-subtype="png" xlink:href="IASC_28352-fig-2.png"/>
</fig>
<p>Lastly, we also investigate the different fusion methods of each attention head information, namely, the maximum pooling, sum pooling, and mean pooling. <xref ref-type="table" rid="table-7">Tab. 7</xref> shows the F1 scores by using different fusion methods on three datasets. We determined that the mean pooling is more advantageous for JERE.</p>
<table-wrap id="table-7"><label>Table 7</label>
<caption>
<title>Study of different fusion methods for each attention head information</title></caption>
<table><colgroup>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Dataset</th>
<th>Method</th>
<th>Entity F1</th>
<th>Relation F1</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="3">ConLL04</td>
<td>Max</td>
<td>85.68</td>
<td>69.17</td>
</tr>
<tr>
<td>Sum</td>
<td>86.38</td>
<td>70.83</td>
</tr>
<tr>
<td>Mean</td>
<td>86.8</td>
<td>71.21</td>
</tr>
<tr>
<td rowspan="3">SciERC</td>
<td>Max</td>
<td>70.10</td>
<td>51.16</td>
</tr>
<tr>
<td>Sum</td>
<td>70.21</td>
<td>51.79</td>
</tr>
<tr>
<td>Mean</td>
<td>69.80</td>
<td>52.38</td>
</tr>
<tr>
<td rowspan="3">ADE</td>
<td>Max</td>
<td>91.27</td>
<td>82.34</td>
</tr>
<tr>
<td>Sum</td>
<td>91.73</td>
<td>82.09</td>
</tr>
<tr>
<td>Mean</td>
<td>91.96</td>
<td>82.94</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
<sec id="s5_4">
<label>5.4</label>
<title>Effects of the Novel Span Classifier</title>
<p>To evaluate the effectiveness of the novel span classifier, we further test two models on the SciERC dataset:<list list-type="bullet"><list-item>
<p>Full: We use the complete ASpERT model structure.</p></list-item><list-item>
<p>-MLP: We retain most of the ASpERT model structure but replace the MLP structure with a fully connected layer in span classification.</p></list-item></list></p>
<p>As shown in <xref ref-type="table" rid="table-8">Tab. 8</xref>, removing the MLP structure weakened the classifier&#x2019;s ability to learn information about span boundaries, leading to a decrease in the recall and accuracy of entity extraction and thus a decrease in the F1 score by nearly 0.74%.</p>
<table-wrap id="table-8"><label>Table 8</label>
<caption>
<title>Effect of MLP on entity extraction</title></caption>
<table><colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Dataset</th>
<th>Model</th>
<th>Entity<break/>Precision</th>
<th>Entity<break/>Recall</th>
<th>Entity<break/>F1</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="2">ConLL04</td>
<td>Full</td>
<td>86.57</td>
<td>85.49</td>
<td>85.97</td>
</tr>
<tr>
<td>-MLP</td>
<td>84.84</td>
<td>85.71</td>
<td>85.23</td>
</tr>
<tr>
<td rowspan="2">SciERC</td>
<td>Full</td>
<td>69.88</td>
<td>70.57</td>
<td>70.22</td>
</tr>
<tr>
<td>-MLP</td>
<td>69.74</td>
<td>70.49</td>
<td>70.11</td>
</tr>
<tr>
<td rowspan="2">ADE</td>
<td>Full</td>
<td>90.96</td>
<td>91.87</td>
<td>91.41</td>
</tr>
<tr>
<td>-MLP</td>
<td>90.24</td>
<td>91.98</td>
<td>91.10</td>
</tr>
</tbody>
</table>
</table-wrap>
</sec>
</sec>
<sec id="s6">
<label>6</label>
<title>Conclusion</title>
<p>In this paper, we have proposed a novel model termed ASpERT for JERE. This model fuses the overlooked attention header information in downstream tasks with the feature embedding of the hidden layer <italic>via</italic> a new attentional contribution degree algorithm. Specifically, the attentional contribution incorporates word-to-word attention and the residual connectivity of the span classifier with each attentional head. This allows the model to maintain the raw information as depth increases and thus enhance the model&#x2019;s ability to capture contextual information, thus being adapted to domain-specific JERE. Moreover, the MLP-softmax structure of the span classifier and the attentional contributions is used to determine the boundary supervision and to improve the span classification. Without these ideas, researchers who are limited by hardware conditions may have to fine-tune parameters for information extraction tasks. The use of pre-trained models is not limited to the encoding of implicit layer information.</p>
<p>Considering that the attentional head is the base unit of Transformer pre-training models, in future work, we will further demonstrate the influence of the attentional contribution degree algorithm on other Transformer pre-training models. Notably, Asian languages, however, require more words to express the same meaning as English, which is not friendly to the random sampling method, hence we will focus on spanwise sampling of complex language structures.</p>
</sec>
</body>
<back>
<ack>
<p>We thank the open-source authors of the dataset. We also thank all members from Xiangtan University 504 Lab for their strong support for my research.</p>
</ack><fn-group>
<fn fn-type="other">
<p><bold>Funding Statement:</bold> This work was supported by Key Projects of the Ministry of Science and Technology of the People&#x2019;s Republic of China (2020YFC0832401) and National College Students Innovation and Entrepreneurship Training Program (No. 202110530001).</p>
</fn>
<fn fn-type="conflict">
<p><bold>Conflicts of Interest:</bold> The authors declare that they have no conflicts of interest to report regarding the present study.</p>
</fn>
</fn-group>
<ref-list content-type="authoryear">
<title>References</title>
<ref id="ref-1"><label>[1]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>M. R.</given-names> <surname>Gormley</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Yu</surname></string-name> and <string-name><given-names>M.</given-names> <surname>Dredze</surname></string-name></person-group>, &#x201C;<article-title>Improved relation extraction with feature-rich compositional embedding models</article-title>,&#x201D; <year>2015</year>. [Online]. Available: <uri>https://arxiv.org/abs/1505.02419</uri>.</mixed-citation></ref>
<ref id="ref-2"><label>[2]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>D. Q.</given-names> <surname>Nguyen</surname></string-name> and <string-name><given-names>K.</given-names> <surname>Verspoor</surname></string-name></person-group>, &#x201C;<article-title>End-to-end neural relation extraction using deep biaffine attention</article-title>,&#x201D; in <conf-name>European Conf. on Information Retrieval</conf-name>, Cologne, Germany, pp. <fpage>729</fpage>&#x2013;<lpage>738</lpage>, <year>2019</year>. </mixed-citation></ref>
<ref id="ref-3"><label>[3]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>P.</given-names> <surname>Crone</surname></string-name></person-group>, &#x201C;<article-title>Deeper task-specificity improves joint entity and relation extraction</article-title>,&#x201D; <year>2002</year>. [Online]. Available: <uri>https://arxiv.org/abs/2002.06424</uri>.</mixed-citation></ref>
<ref id="ref-4"><label>[4]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>C.</given-names> <surname>Chen</surname></string-name> and <string-name><given-names>F.</given-names> <surname>Kong</surname></string-name></person-group>, &#x201C;<article-title>Enhancing entity boundary detection for better chinese named entity recognition</article-title>,&#x201D; in <conf-name>Proc. of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th Int. Joint Conf. on Natural Language Processing</conf-name>, vol. <volume>2</volume>, pp. <fpage>20</fpage>&#x2013;<lpage>25</lpage>, <year>2021</year>. </mixed-citation></ref>
<ref id="ref-5"><label>[5]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>S.</given-names> <surname>Zhao</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Hu</surname></string-name>, <string-name><given-names>Z.</given-names> <surname>Cai</surname></string-name> and <string-name><given-names>F.</given-names> <surname>Liu</surname></string-name></person-group>, &#x201C;<article-title>Dynamic modeling cross-modal interactions in two-phase prediction for entity-relation extraction</article-title>,&#x201D; <source>IEEE Transactions on Neural Networks and Learning Systems</source>, pp. 1&#x2013;10, <year>2021</year>.</mixed-citation></ref>
<ref id="ref-6"><label>[6]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>G.</given-names> <surname>Luo</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Huang</surname></string-name>, <string-name><given-names>C.-Y.</given-names> <surname>Lin</surname></string-name> and <string-name><given-names>Z.</given-names> <surname>Nie</surname></string-name></person-group>, &#x201C;<article-title>Joint entity recognition and disambiguation</article-title>,&#x201D; in <conf-name>Proc. of the 2015 Conf. on Empirical Methods in Natural Language Processing</conf-name>, Lisbon, Portugal, pp. <fpage>879</fpage>&#x2013;<lpage>888</lpage>, <year>2015</year>. </mixed-citation></ref>
<ref id="ref-7"><label>[7]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>Z.</given-names> <surname>Liu</surname></string-name> and <string-name><given-names>X.</given-names> <surname>Chen</surname></string-name></person-group>, &#x201C;<article-title>Research on relation extraction of named entity on social media in smart cities</article-title>,&#x201D; <source>Soft Computing</source>, vol. <volume>24</volume>, no. <issue>15</issue>, pp. <fpage>11135</fpage>&#x2013;<lpage>11147</lpage>, <year>2020</year>.</mixed-citation></ref>
<ref id="ref-8"><label>[8]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>C.</given-names> <surname>Tan</surname></string-name>, <string-name><given-names>W.</given-names> <surname>Qiu</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Chen</surname></string-name>, <string-name><given-names>R.</given-names> <surname>Wang</surname></string-name> and <string-name><given-names>F.</given-names> <surname>Huang</surname></string-name></person-group>, &#x201C;<article-title>Boundary enhanced neural span classification for nested named entity recognition</article-title>,&#x201D; <source>Proceedings of the AAAI Conference on Artificial Intelligence</source>, vol. <volume>34</volume>, no. <issue>5</issue>, pp. <fpage>9016</fpage>&#x2013;<lpage>9902</lpage>, <year>2020</year>.</mixed-citation></ref>
<ref id="ref-9"><label>[9]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Cheng</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Liu</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Xu</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Xia</surname></string-name>, <string-name><given-names>L.</given-names> <surname>Liu</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>A review of chinese named entity recognition</article-title>,&#x201D; <source>KSII Transactions on Internet and Information Systems</source>, vol. <volume>15</volume>, no. <issue>6</issue>, pp. <fpage>2012</fpage>&#x2013;<lpage>2030</lpage>, <year>2021</year>.</mixed-citation></ref>
<ref id="ref-10"><label>[10]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>G.</given-names> <surname>Zhou</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Su</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Zhang</surname></string-name> and <string-name><given-names>M.</given-names> <surname>Zhang</surname></string-name></person-group>, &#x201C;<article-title>Exploring various knowledge in relation extraction</article-title>,&#x201D; in <conf-name>Proc. of the 43rd Annual Meeting of the Association for Computational Linguistics</conf-name>, Ann Arbor, Michigan, USA, pp. <fpage>427</fpage>&#x2013;<lpage>443</lpage>, <year>2005</year>. </mixed-citation></ref>
<ref id="ref-11"><label>[11]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>Y.</given-names> <surname>Wang</surname></string-name>, <string-name><given-names>B.</given-names> <surname>Yu</surname></string-name>, <string-name><given-names>Y.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>T.</given-names> <surname>Liu</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Zhu</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Tplinker: Single-stage joint extraction of entities and relations through token pair linking</article-title>,&#x201D; <year>2010</year>. [Online]. Available: <uri>https://arxiv.org/abs/2010.13415</uri>.</mixed-citation></ref>
<ref id="ref-12"><label>[12]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>M.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>Y.</given-names> <surname>Zhang</surname></string-name> and <string-name><given-names>G.</given-names> <surname>Fu</surname></string-name></person-group>, &#x201C;<article-title>End-to-end neural relation extraction with global optimization</article-title>,&#x201D; in <conf-name>Proc. of the 2017 Conf. on Empirical Methods in Natural Language Processing</conf-name>, Copenhagen, Denmark, pp. <fpage>1730</fpage>&#x2013;<lpage>1740</lpage>, <year>2017</year>. </mixed-citation></ref>
<ref id="ref-13"><label>[13]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>T.</given-names> <surname>Nayak</surname></string-name> and <string-name><given-names>H. T.</given-names> <surname>Ng</surname></string-name></person-group>, &#x201C;<article-title>Effective modeling of encoder-decoder architecture for joint entity and relation extraction</article-title>,&#x201D; <source>Proceedings of the AAAI Conference on Artificial Intelligence</source>, vol. 34, no. 05, pp. <fpage>8528</fpage>&#x2013;<lpage>8535</lpage>, <year>2020</year>.</mixed-citation></ref>
<ref id="ref-14"><label>[14]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>Y.</given-names> <surname>Luan</surname></string-name>, <string-name><given-names>L.</given-names> <surname>He</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Ostendorf</surname></string-name> and <string-name><given-names>H.</given-names> <surname>Hajishirzi</surname></string-name></person-group>, &#x201C;<article-title>Multi-task identification of entities, relations, and coreference for scientific knowledge graph construction</article-title>,&#x201D; <year>2018</year>. [Online]. Available: <uri>https://arxiv.org/abs/1808.09602</uri>.</mixed-citation></ref>
<ref id="ref-15"><label>[15]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>M.</given-names> <surname>Eberts</surname></string-name> and <string-name><given-names>A.</given-names> <surname>Ulges</surname></string-name></person-group>, &#x201C;<article-title>Span-based joint entity and relation extraction with transformer pre-training</article-title>,&#x201D; <year>2019</year>. [Online]. Available: <uri>https://arxiv.org/abs/1909.07755</uri>.</mixed-citation></ref>
<ref id="ref-16"><label>[16]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Devlin</surname></string-name>, <string-name><given-names>M.-W.</given-names> <surname>Chang</surname></string-name>, <string-name><given-names>K.</given-names> <surname>Lee</surname></string-name> and <string-name><given-names>K.</given-names> <surname>Toutanova</surname></string-name></person-group>, &#x201C;<article-title>Bert: Pre-training of deep bidirectional transformers for language understanding</article-title>,&#x201D; <year>2018</year>. [Online]. Available: <uri>https://arxiv.org/abs/1810.04805</uri>.</mixed-citation></ref>
<ref id="ref-17"><label>[17]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>Z.</given-names> <surname>Lan</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Chen</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Goodman</surname></string-name>, <string-name><given-names>K.</given-names> <surname>Gimpel</surname></string-name>, <string-name><given-names>P.</given-names> <surname>Sharma</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Albert: A lite bert for self-supervised learning of language representations</article-title>,&#x201D; <year>2019</year>. [Online]. Available: <uri>https://arxiv.org/abs/1909.11942</uri>.</mixed-citation></ref>
<ref id="ref-18"><label>[18]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>Y.</given-names> <surname>Liu</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Ott</surname></string-name>, <string-name><given-names>N.</given-names> <surname>Goyal</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Du</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Joshi</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Roberta: A robustly optimized bert pretraining approach</article-title>,&#x201D; <year>2019</year>. [Online]. Available: <uri>https://arxiv.org/abs/1907.11692</uri>.</mixed-citation></ref>
<ref id="ref-19"><label>[19]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>M.</given-names> <surname>Mintz</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Bills</surname></string-name>, <string-name><given-names>R.</given-names> <surname>Snow</surname></string-name> and <string-name><given-names>D.</given-names> <surname>Jurafsky</surname></string-name></person-group>, &#x201C;<article-title>Distant supervision for relation extraction without labeled data</article-title>,&#x201D; in <conf-name>Proc. of the Joint Conf. of the 47th Annual Meeting of the ACL and the 4th Int. Joint Conf. on Natural Language Processing of the AFNLP</conf-name>, Suntec, Singapore, pp. <fpage>1003</fpage>&#x2013;<lpage>1011</lpage>, <year>2009</year>. </mixed-citation></ref>
<ref id="ref-20"><label>[20]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>Y. S.</given-names> <surname>Chan</surname></string-name> and <string-name><given-names>D.</given-names> <surname>Roth</surname></string-name></person-group>, &#x201C;<article-title>Exploiting syntactico-semantic structures for relation extraction</article-title>,&#x201D; in <conf-name>Proc. of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies</conf-name>, Portland, Oregon, pp. <fpage>551</fpage>&#x2013;<lpage>560</lpage>, <year>2011</year>. </mixed-citation></ref>
<ref id="ref-21"><label>[21]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>D.</given-names> <surname>Nadeau</surname></string-name> and <string-name><given-names>S.</given-names> <surname>Sekine</surname></string-name></person-group>, &#x201C;<article-title>A survey of named entity recognition and classification</article-title>,&#x201D; <source>Lingvisticae Investigationes</source>, vol. <volume>30</volume>, no. <issue>1</issue>, pp. <fpage>3</fpage>&#x2013;<lpage>26</lpage>, <year>2007</year>.</mixed-citation></ref>
<ref id="ref-22"><label>[22]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>Z.</given-names> <surname>Zhong</surname></string-name> and <string-name><given-names>D.</given-names> <surname>Chen</surname></string-name></person-group>, &#x201C;<article-title>A frustratingly easy approach for entity and relation extraction</article-title>,&#x201D; <year>2020</year>. [Online]. Available: <uri>https://arxiv.org/abs/2010.12812</uri>.</mixed-citation></ref>
<ref id="ref-23"><label>[23]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>P.</given-names> <surname>Chen</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Ding</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Araki</surname></string-name> and <string-name><given-names>R.</given-names> <surname>Huang</surname></string-name></person-group>, &#x201C;<article-title>Explicitly capturing relations between entity mentions via graph neural networks for domain-specific named entity recognition</article-title>,&#x201D; in <conf-name>Proc. of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th Int. Joint Conf. on Natural Language Processing</conf-name>, Bangkok, Thailand, vol. <volume>2</volume>, pp. <fpage>735</fpage>&#x2013;<lpage>742</lpage>, <year>2021</year>. </mixed-citation></ref>
<ref id="ref-24"><label>[24]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>N.</given-names> <surname>Alsaaran</surname></string-name> and <string-name><given-names>M.</given-names> <surname>Alrabiah</surname></string-name></person-group>, &#x201C;<article-title>Arabic named entity recognition: A bert-bgru approach</article-title>,&#x201D; <source>Computers Materials &#x0026; Continua</source>, vol. <volume>68</volume>, no. <issue>1</issue>, pp. <fpage>471</fpage>&#x2013;<lpage>485</lpage>, <year>2021</year>.</mixed-citation></ref>
<ref id="ref-25"><label>[25]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>B.</given-names> <surname>Rink</surname></string-name> and <string-name><given-names>S.</given-names> <surname>Harabagiu</surname></string-name></person-group>, &#x201C;<article-title>Utd: Classifying semantic relations by combining lexical and semantic resources</article-title>,&#x201D; in <conf-name>Proc. of the 5th Int. Workshop on Semantic Evaluation</conf-name>, Uppsala, Sweden, pp. <fpage>256</fpage>&#x2013;<lpage>259</lpage>, <year>2010</year>. </mixed-citation></ref>
<ref id="ref-26"><label>[26]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>Y.</given-names> <surname>Xu</surname></string-name>, <string-name><given-names>L.</given-names> <surname>Mou</surname></string-name>, <string-name><given-names>G.</given-names> <surname>Li</surname></string-name>, <string-name><given-names>Y.</given-names> <surname>Chen</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Peng</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Classifying relations via long short term memory networks along shortest dependency paths</article-title>,&#x201D; in <conf-name>Proc. of the 2015 Conf. on Empirical Methods in Natural Language Processing</conf-name>, Lisbon, Portugal, pp. <fpage>1785</fpage>&#x2013;<lpage>1794</lpage>, <year>2015</year>. </mixed-citation></ref>
<ref id="ref-27"><label>[27]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>S.</given-names> <surname>Zheng</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Xu</surname></string-name>, <string-name><given-names>P.</given-names> <surname>Zhou</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Bao</surname></string-name>, <string-name><given-names>Z.</given-names> <surname>Qi</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>A neural network framework for relation extraction: Learning entity semantic and relation pattern</article-title>,&#x201D; <source>Knowledge-Based Systems</source>, vol. <volume>114</volume>, no. <issue>8</issue>, pp. <fpage>12</fpage>&#x2013;<lpage>23</lpage>, <year>2016</year>.</mixed-citation></ref>
<ref id="ref-28"><label>[28]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>Q.</given-names> <surname>Yue</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Li</surname></string-name> and <string-name><given-names>D.</given-names> <surname>Li</surname></string-name></person-group>, &#x201C;<article-title>Chinese relation extraction on forestry knowledge graph construction</article-title>,&#x201D; <source>Computer Systems Science and Engineering</source>, vol. <volume>37</volume>, no. <issue>3</issue>, pp. <fpage>423</fpage>&#x2013;<lpage>442</lpage>, <year>2021</year>.</mixed-citation></ref>
<ref id="ref-29"><label>[29]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><given-names>X.</given-names> <surname>Yu</surname></string-name> and <string-name><given-names>W.</given-names> <surname>Lam</surname></string-name></person-group>, &#x201C;<chapter-title>Jointly identifying entities and extracting relations in encyclopedia text via a graphical model approach</chapter-title>,&#x201D; in <source>Coling 2010: Posters</source>, Beijing, China: Coling 2010 Organizing Committee, pp. <fpage>1399</fpage>&#x2013;<lpage>1407</lpage>, <year>2010</year>.</mixed-citation></ref>
<ref id="ref-30"><label>[30]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>M.</given-names> <surname>Miwa</surname></string-name> and <string-name><given-names>Y.</given-names> <surname>Sasaki</surname></string-name></person-group>, &#x201C;<article-title>Modeling joint entity and relation extraction with table representation</article-title>,&#x201D; in <conf-name>Proc. of the 2014 Conf. on Empirical Methods in Natural Language Processing (EMNLP)</conf-name>, Doha, Qatar, pp. <fpage>1858</fpage>&#x2013;<lpage>1869</lpage>, <year>2014</year>. </mixed-citation></ref>
<ref id="ref-31"><label>[31]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>M.</given-names> <surname>Miwa</surname></string-name> and <string-name><given-names>M.</given-names> <surname>Bansal</surname></string-name></person-group>, &#x201C;<article-title>End-to-end relation extraction using lstms on sequences and tree structures</article-title>,&#x201D; <year>2016</year>. [Online]. Available: <uri>https://arxiv.org/abs/1601.00770</uri>.</mixed-citation></ref>
<ref id="ref-32"><label>[32]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>Z.</given-names> <surname>Yan</surname></string-name>, <string-name><given-names>C.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Fu</surname></string-name>, <string-name><given-names>Q.</given-names> <surname>Zhang</surname></string-name> and <string-name><given-names>Z.</given-names> <surname>Wei</surname></string-name></person-group>, &#x201C;<article-title>A partition filter network for joint entity and relation extraction</article-title>,&#x201D; <year>2021</year>. [Online]. Available: <uri>https://arxiv.org/abs/2108.12202</uri>.</mixed-citation></ref>
<ref id="ref-33"><label>[33]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>T.</given-names> <surname>Santosh</surname></string-name>, <string-name><given-names>P.</given-names> <surname>Chakraborty</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Dutta</surname></string-name>, <string-name><given-names>D. K.</given-names> <surname>Sanyal</surname></string-name> and <string-name><given-names>P. P.</given-names> <surname>Das</surname></string-name></person-group>, &#x201C;<article-title>Joint entity and relation extraction from scientific documents: Role of linguistic information and entity types</article-title>,&#x201D; in <conf-name>Proc. of the 2nd Workshop on Extraction and Evaluation of Knowledge Entities from Scientific Documents (EEKE2021)</conf-name>, Virtual Event, <year>2021</year>. </mixed-citation></ref>
<ref id="ref-34"><label>[34]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>S.</given-names> <surname>Zhao</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Hu</surname></string-name>, <string-name><given-names>Z.</given-names> <surname>Cai</surname></string-name> and <string-name><given-names>F.</given-names> <surname>Liu</surname></string-name></person-group>, &#x201C;<article-title>Modeling dense cross-modal interactions for joint entity-relation extraction</article-title>,&#x201D; in <conf-name>Proc. of the Twenty-Ninth Int. Conf. on International Joint Conf. on Artificial Intelligence</conf-name>, Montreal-themed virtual reality, pp. <fpage>4032</fpage>&#x2013;<lpage>4038</lpage>, <year>2021</year>. </mixed-citation></ref>
<ref id="ref-35"><label>[35]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>D.</given-names> <surname>Ye</surname></string-name>, <string-name><given-names>Y.</given-names> <surname>Lin</surname></string-name> and <string-name><given-names>M.</given-names> <surname>Sun</surname></string-name></person-group>, &#x201C;<article-title>Pack together: Entity and relation extraction with levitated marker</article-title>,&#x201D; <year>2021</year>. [Online]. Available: <uri>https://arxiv.org/abs/2109.06067</uri>.</mixed-citation></ref>
<ref id="ref-36"><label>[36]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>S.</given-names> <surname>Zheng</surname></string-name>, <string-name><given-names>F.</given-names> <surname>Wang</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Bao</surname></string-name>, <string-name><given-names>Y.</given-names> <surname>Hao</surname></string-name>, <string-name><given-names>P.</given-names> <surname>Zhou</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Joint extraction of entities and relations based on a novel tagging scheme</article-title>,&#x201D; <year>2017</year>. [Online]. Available: <uri>https://arxiv.org/abs/1706.05075</uri>.</mixed-citation></ref>
<ref id="ref-37"><label>[37]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>P.</given-names> <surname>Gupta</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Sch&#x00FC;tze</surname></string-name> and <string-name><given-names>B.</given-names> <surname>Andrassy</surname></string-name></person-group>, &#x201C;<article-title>Table filling multi-task recurrent neural network for joint entity and relation extraction</article-title>,&#x201D; in <conf-name>Proc. of COLING 2016, the 26th Int. Conf. on Computational Linguistics: Technical Papers</conf-name>, Osaka, Japan, pp. <fpage>2537</fpage>&#x2013;<lpage>2547</lpage>, <year>2016</year>. </mixed-citation></ref>
<ref id="ref-38"><label>[38]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Wang</surname></string-name> and <string-name><given-names>W.</given-names> <surname>Lu</surname></string-name></person-group>, &#x201C;<article-title>Two are better than one: Joint entity and relation extraction with table-sequence encoders</article-title>,&#x201D; <year>2020</year>. [Online]. Available: <uri>https://arxiv.org/abs/2010.03851</uri>.</mixed-citation></ref>
<ref id="ref-39"><label>[39]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><given-names>P.-L. H.</given-names> <surname>Cabot</surname></string-name> and <string-name><given-names>R.</given-names> <surname>Navigli</surname></string-name></person-group>, &#x201C;<chapter-title>Rebel: Relation extraction by end-to-end language generation</chapter-title>,&#x201D; in <source>Findings of the Association for Computational Linguistics: EMNLP 2021</source>, Online and Punta Cana, Dominican Republic: Association for Computational Linguistics, pp. <fpage>2370</fpage>&#x2013;<lpage>2381</lpage>, <year>2021</year>.</mixed-citation></ref>
<ref id="ref-40"><label>[40]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>X.</given-names> <surname>Zeng</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Zeng</surname></string-name>, <string-name><given-names>S.</given-names> <surname>He</surname></string-name>, <string-name><given-names>K.</given-names> <surname>Liu</surname></string-name> and <string-name><given-names>J.</given-names> <surname>Zhao</surname></string-name></person-group>, &#x201C;<article-title>Extracting relational facts by an end-to-end neural model with copy mechanism</article-title>,&#x201D; in <conf-name>Proc. of the 56th Annual Meeting of the Association for Computational Linguistics</conf-name>, Melbourne, Australia, vol. <volume>1</volume>, pp. <fpage>506</fpage>&#x2013;<lpage>514</lpage>, <year>2018</year>. </mixed-citation></ref>
<ref id="ref-41"><label>[41]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>D.</given-names> <surname>Zeng</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Zhang</surname></string-name> and <string-name><given-names>Q.</given-names> <surname>Liu</surname></string-name></person-group>, &#x201C;<article-title>Copymtl: Copy mechanism for joint extraction of entities and relations with multi-task learning</article-title>,&#x201D; <source>Proceedings of the AAAI Conference on Artificial Intelligence</source>, Hilton New York Midtown, New York, New York, USA, pp. <fpage>9507</fpage>&#x2013;<lpage>9514</lpage>, <year>2020</year>.</mixed-citation></ref>
<ref id="ref-42"><label>[42]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>R.</given-names> <surname>Takanobu</surname></string-name>, <string-name><given-names>T.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Liu</surname></string-name> and <string-name><given-names>M.</given-names> <surname>Huang</surname></string-name></person-group>, &#x201C;<article-title>A hierarchical framework for relation extraction with reinforcement learning</article-title>,&#x201D; <source>Proceedings of the AAAI Conference on Artificial Intelligence</source>, vol. <volume>33</volume>, pp. <fpage>7072</fpage>&#x2013;<lpage>7079</lpage>, <year>2019</year>.</mixed-citation></ref>
<ref id="ref-43"><label>[43]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>D.</given-names> <surname>Dai</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Xiao</surname></string-name>, <string-name><given-names>Y.</given-names> <surname>Lyu</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Dou</surname></string-name>, <string-name><given-names>Q.</given-names> <surname>She</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Joint extraction of entities and overlapping relations using position-attentive sequence labeling</article-title>,&#x201D; <source>Proceedings of the AAAI Conference on Artificial Intelligence</source>, vol. <volume>33</volume>, pp. <fpage>6300</fpage>&#x2013;<lpage>6308</lpage>, <year>2019</year>.</mixed-citation></ref>
<ref id="ref-44"><label>[44]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>K.</given-names> <surname>Ding</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Liu</surname></string-name>, <string-name><given-names>Y.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>H.</given-names> <surname>Zhang</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Zhang</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>A knowledge-enriched and span-based network for joint entity and relation extraction</article-title>,&#x201D; <source>Computers Materials &#x0026; Continua</source>, vol. <volume>68</volume>, no. <issue>1</issue>, pp. <fpage>377</fpage>&#x2013;<lpage>389</lpage>, <year>2021</year>.</mixed-citation></ref>
<ref id="ref-45"><label>[45]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>K.</given-names> <surname>Dixit</surname></string-name> and <string-name><given-names>Y.</given-names> <surname>Al-Onaizan</surname></string-name></person-group>, &#x201C;<article-title>Span-level model for relation extraction</article-title>,&#x201D; in <conf-name>Proc. of the 57th Annual Meeting of the Association for Computational Linguistics</conf-name>, Florence, Italy, pp. <fpage>5308</fpage>&#x2013;<lpage>5314</lpage>, <year>2019</year>. </mixed-citation></ref>
<ref id="ref-46"><label>[46]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>Y.</given-names> <surname>Luan</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Wadden</surname></string-name>, <string-name><given-names>L.</given-names> <surname>He</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Shah</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Ostendorf</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>A general framework for information extraction using dynamic span graphs</article-title>,&#x201D; <year>2019</year>. [Online]. Available: <uri>https://arxiv.org/abs/1904.03296</uri>.</mixed-citation></ref>
<ref id="ref-47"><label>[47]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>D.</given-names> <surname>Wadden</surname></string-name>, <string-name><given-names>U.</given-names> <surname>Wennberg</surname></string-name>, <string-name><given-names>Y.</given-names> <surname>Luan</surname></string-name> and <string-name><given-names>H.</given-names> <surname>Hajishirzi</surname></string-name></person-group>, &#x201C;<article-title>Entity, relation, and event extraction with contextualized span representations</article-title>,&#x201D; <year>2019</year>. [Online]. Available: <uri>https://arxiv.org/abs/1909.03546</uri>.</mixed-citation></ref>
<ref id="ref-48"><label>[48]</label><mixed-citation publication-type="book"><person-group person-group-type="author"><string-name><given-names>I. O.</given-names> <surname>Tolstikhin</surname></string-name>, <string-name><given-names>N.</given-names> <surname>Houlsby</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Kolesnikov</surname></string-name>, <string-name><given-names>L.</given-names> <surname>Beyer</surname></string-name>, <string-name><given-names>X.</given-names> <surname>Zhai</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> <chapter-title>Mlp-mixer: An all-mlp architecture for vision</chapter-title>. In: <source>Advances in Neural Information Processing Systems</source>. Virtual, Vol. <volume>34</volume>, <year>2021</year>.</mixed-citation></ref>
<ref id="ref-49"><label>[49]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><given-names>I.</given-names> <surname>Beltagy</surname></string-name>, <string-name><given-names>K.</given-names> <surname>Lo</surname></string-name> and <string-name><given-names>A.</given-names> <surname>Cohan</surname></string-name></person-group>, &#x201C;<article-title>Scibert: A pretrained language model for scientific text</article-title>,&#x201D; in <conf-name>Proc. of the 2019 Conf. on Empirical Methods in Natural Language Processing and the 9th Int. Joint Conf. on Natural Language Processing (EMNLP-IJCNLP)</conf-name>, Hong Kong, China, <year>2019</year>. </mixed-citation></ref>
<ref id="ref-50"><label>[50]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>J.</given-names> <surname>Lee</surname></string-name>, <string-name><given-names>W.</given-names> <surname>Yoon</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Kim</surname></string-name>, <string-name><given-names>D.</given-names> <surname>Kim</surname></string-name>, <string-name><given-names>S.</given-names> <surname>Kim</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Biobert: A pre-trained biomedical language representation model for biomedical text mining</article-title>,&#x201D; <source>Bioinformatics</source>, vol. <volume>36</volume>, no. <issue>4</issue>, pp. <fpage>1234</fpage>&#x2013;<lpage>1240</lpage>, <year>2020</year>.</mixed-citation></ref>
<ref id="ref-51"><label>[51]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><given-names>D.</given-names> <surname>Roth</surname></string-name> and <string-name><given-names>W.-t</given-names> <surname>Yih</surname></string-name></person-group>, &#x201C;<article-title>A linear programming formulation for global inference in natural language tasks</article-title>,&#x201D; <comment>Illinois Univ at Urbana-Champaign Dept of Computer Science</comment>, <year>2004</year>.</mixed-citation></ref>
<ref id="ref-52"><label>[52]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><given-names>H.</given-names> <surname>Gurulingappa</surname></string-name>, <string-name><given-names>A. M.</given-names> <surname>Rajput</surname></string-name>, <string-name><given-names>A.</given-names> <surname>Roberts</surname></string-name>, <string-name><given-names>J.</given-names> <surname>Fluck</surname></string-name>, <string-name><given-names>M.</given-names> <surname>Hofmann-Apitius</surname></string-name> <etal>et al.</etal></person-group><italic>,</italic> &#x201C;<article-title>Development of a benchmark corpus to support the automatic extraction of drug-related adverse effects from medical case reports</article-title>,&#x201D; <source>Journal of Biomedical Informatics</source>, vol. <volume>45</volume>, no. <issue>5</issue>, pp. <fpage>885</fpage>&#x2013;<lpage>892</lpage>, <year>2012</year>.</mixed-citation></ref>
</ref-list>
</back>
</article>