Adversarial training for multi-context joint entity and relation extraction
Paper · 2018 · Giannis Bekoulis, Johannes Deleu, Thomas Demeester et al.
Summary
An extraction system has to decide which words belong to a mention, what kind of thing the mention refers to, and how it is related to other mentions in the same sentence. Getting the relationship right can depend on getting the words and the type right first. Bekoulis and colleagues study a system that learns these decisions together. Their question is whether it can learn to make better predictions if, during training, it also sees slightly altered versions of the numerical representations it uses to read each sentence. The task belongs to information extraction.
The system builds a representation of each word from its spelling and a pretrained word vector, then reads the sentence in both directions to put those representations in context. It predicts entity tags and uses them to help score possible relationships. A word can be assigned several partners and relationship labels, so finding one connection leaves room for others. Where the boundaries of the mentions must also be recovered, a sequence labeller accounts for dependencies between neighbouring tags. This part of the task is named entity recognition.
The training change keeps the words, entity annotations and relationship annotations as they are. The system uses its own errors to find a small change to the input vectors that is likely to make the sentence harder to interpret. It then learns from the original and the altered representations under the same annotations. Because the direction of the alteration comes from the combined objective, the training exercise reflects the demands of both entity and relation extraction.
The authors test this procedure on English and Dutch data from news, biomedical text and real estate listings. Overall F1, the paper’s average of the entity and relation scores, rises in every reported comparison with the corresponding unperturbed baseline. Under strict scoring on ADE, for example, overall F1 rises from 80.49 to 81.13. The relation scores show the more consistent benefit. In the relaxed CoNLL04 setting with supplied boundaries, relation F1 rises from 67.01 to 67.99 while entity F1 falls from 93.26 to 93.04. The authors also observe high validation scores relatively early in training. The findings establish a modest benefit on the reported extraction benchmarks and leave open how well the procedure protects against changes to actual text.
Deep dive: Adversarial training for multi-context joint entity and relation extraction
How adversarial training changes joint entity and relation extraction, and what the results show across news, biomedical and real estate text. · about 33 minutes to read
The problem and its context
A sentence supplies several kinds of evidence
The output of this task is a structure built from the sentence. Entity extraction identifies a stretch of text and assigns it a category. Relation extraction identifies a connection of a specified type between two such stretches. A sentence can express several connections, including several that share an argument. The paper illustrates this with “Smith” and “California,” which could be linked by a residence relation. “Smith” could also take part in employment or birthplace relations with other mentions. An extractor that commits each mention to a single relation has difficulty expressing that structure.
Entity categories help narrow the interpretation of a possible link. A person tag, for instance, gives the relation component a reason to treat a mention as a possible participant in a residence relation. The sentence still has to supply evidence about the partner and the nature of the connection. Likewise, a correctly chosen type is only part of a successful entity prediction when the task requires the system to find the full span. If a mention covers several words, identifying its category while missing part of its boundary can also invalidate a relation that uses it under the strict evaluation.
The paper makes a distinction between entity recognition and entity classification. In recognition, both the extent of each mention and its type are unknown to the system. In classification, the extent is supplied and the system assigns types. These settings offer different starting points for the relation extractor. With boundaries supplied, ambiguity about which tokens make up a mention has already been removed. With boundaries to be discovered, even a plausible relation label can accompany an incorrect argument. Keeping these settings separate matters when interpreting the CoNLL04 experiments.
The authors are interested in what can be learned from complete sentences. A method that takes one marked pair at a time can build a representation tailored to that pair. It must process other candidate pairs as separate decisions. A sentence-wide representation makes every token available as a possible participant in the same pass through the encoder. That design also fits the case where the same participant takes several partners. Its usefulness depends on how well the system can score those possibilities, including when the sentence contains multiple mentions of compatible types.
What earlier joint systems supplied by hand
Earlier joint approaches already treated mention identification and relation prediction as connected problems. The paper describes work by Li and Ji and by Miwa and Sasaki that relies on manually specified features or features obtained through language-processing tools. Such features give the extractor information selected in advance, for example the output of a part-of-speech tagger. The paper places its own system in the line of work that learns the relevant word and sentence representations during training. Two examples of the earlier direction are Incremental Joint Extraction and Joint Extraction with Table Representation.
Neural methods already offered several ways to reduce feature design. One option was to build representations with recurrent or convolutional networks while supplying syntactic structure from a separate parser. The paper describes Miwa and Bansal’s sequence and tree approach, and Li and colleagues’ biomedical approach, in this connection. A dependency parser analyses which words are grammatically linked. That structure can give a subsequent extractor a route between mentions that are distant in the sentence. It also makes the extraction procedure depend on the parser’s analysis of the new text. The earlier approach is described in End-to-End Relation Extraction using LSTMs, and the underlying task is dependency parsing.
Gupta and colleagues combined recurrent representations with a collection of manually extracted features. Adel and Schütze worked with supplied entity boundaries and constructed the context for the relation component around individual entity pairs. That setup is relevant to the classification experiment in this paper, where the extent of a mention is also given. It answers a narrower question than end-to-end extraction because it starts after the mention boundaries have been identified. The corresponding earlier work is Global Normalization for Joint Entity and Relation Classification.
The paper identifies another issue with earlier neural approaches. A relation decision organised around a single label or a single partner can treat alternatives as competitors even when they can coexist in the annotation. The authors describe Katiyar and Cardie’s attention-based system as leaving this issue unresolved. They also distinguish their baseline from their own earlier real estate approach, which extracts a relation at a time and uses a more involved scorer in the entity component. The baseline in this study treats each possible combination of partner and relation as a separate candidate. That choice supplies the representation needed to express several links, even before the training change is introduced.
Why change the training examples
The motivation for adversarial training comes from work showing that small changes to a classifier’s numerical input can produce large changes in its predictions. A training set supplies ordinary examples and their labels. If a system learns a decision that depends on details of an example that are easy to disturb, a small alteration may move the example into a region where the system predicts the wrong label. Earlier work on classifiers used deliberately chosen alterations during training to make systems less sensitive to such changes. The paper draws on Intriguing Properties of Neural Networks and Explaining and Harnessing Adversarial Examples.
Text raises a practical problem for this idea. A word is a discrete choice, and replacing it can change the fact that a sentence expresses. The numerical representations inside a neural network can be varied in small increments while the original tokens and their annotations stay fixed. Earlier work brought this approach to text classification. The paper also places its work alongside applications to relation extraction and part-of-speech tagging. Its question concerns the shared training problem that arises when entity and relation decisions are learned together. Two precedents it discusses are Adversarial Training for Text Classification and Adversarial Training for Multilingual Part-of-Speech Tagging.
Adversarial training is a form of regularization, meaning that it changes the demands made during learning in the hope that performance will carry over to unseen examples. The paper contrasts its choice of alteration with randomly applied noise. Dropout and word dropout introduce randomness during training. The perturbation here is chosen for the current sentence and the current network, with the aim of increasing the training error. Its size is controlled separately. Thus the question is whether a targeted small change offers useful additional practice for an extractor whose main prediction procedure is already in place. The paper discusses Dropout and the word dropout used in Deep Unordered Composition.
The method, step by step
From spelling to a sentence representation
The system begins with a sentence represented as a sequence of tokens. A token is an element of that sequence, ordinarily a word or another unit identified in the prepared input. The paper writes the sequence as follows.
w = (w₁, …, wₙ)
Here w is the input sequence, w₁ is its first token, wₙ is its final token, and n is its length. The ellipsis stands for the intervening tokens. In the training equations, the authors also use w for the numerical representation of this sequence. Adding a perturbation to w refers to that numerical input.
Each token gets information from two sources. The first is a pretrained word vector. It supplies information associated with the word as a unit, in numerical form. The second is computed from the sequence of characters in that particular word. The system assigns each character a vector, feeds the character sequence into a recurrent network, and obtains a vector for the complete word. The character component gives the system a way to learn useful patterns in spelling, such as prefixes and suffixes. It can learn which of those patterns matter from the extraction task. These numerical representations are word embeddings.
The recurrent network for characters is a bidirectional long short-term memory network, or BiLSTM. An LSTM carries a learned state through a sequence. In the bidirectional version, one pass follows the sequence in its usual order and another reads it in reverse. The resulting word representation can reflect characters near either end and their place in the word. This computation is performed at the scale of a word. A separate bidirectional network reads at the scale of the sentence.
The system concatenates the character-derived and pretrained word vectors. Concatenation places their coordinates next to each other to form a single vector. This preserves separate information from the two sources while allowing the sentence encoder to use both. The resulting sequence of token vectors goes through the sentence-level BiLSTM. At the end of that stage, a position’s representation depends on its own input and on the other tokens that the network has read in both directions. The same sentence representations are used in the entity and relation components.
This order matters for understanding the perturbation. The authors add it after the two sources of token information have been combined, at the input to the sentence encoder. The altered input can therefore affect contextual representations before either prediction task reads them. A changed representation near one position can also influence how another position is represented after the recurrent passes. The perturbation is applied to a shared input, which gives both training objectives a reason to influence how it is chosen.
Joint extraction and adversarial training
The steps in order.
Finding the entity tags
For recognition, the system uses the BIO tagging scheme. A tag beginning with B marks the start of a mention, a tag beginning with I marks a position inside a continuing mention, and O marks a position outside mentions. The beginning and inside tags also carry the entity type. The paper illustrates this with B-PER, which marks the start of a person mention. To recover a multiword mention, the extractor has to find the start, maintain the correct continuation and end the span in the right place.
This coding scheme gives adjacent decisions a clear dependency. A beginning tag for a person followed by a location continuation would describe an incoherent transition for a single mention. A system making independent decisions at each position could prefer both tags locally. The authors use a linear-chain conditional random field, or CRF, for recognition. It scores a complete tag sequence using the evidence at each position and the relationships between adjacent tags. This lets the relative plausibility of a transition affect the chosen sequence. The paper takes its cue from Neural Architectures for Named Entity Recognition.
At prediction time, the CRF is decoded with the Viterbi algorithm. It searches for the highest-scoring tag sequence by retaining the best partial path for each possible ending tag as it advances through the sentence. What matters for this task is the scope of the decision. A tag can be chosen because of the full path it makes possible, even if a different tag has strong local evidence at the same position. The result is a sequence that can be interpreted as spans with types.
When boundaries are given, the paper uses a softmax output instead. A softmax assigns probabilities across the candidate types for a position. The system makes the type decisions independently and takes the locally preferred label. Given a mention boundary, the type classifier has a simpler job than the sequence labeller, since it can take that boundary as part of the setup. The authors train the entity component with a cross-entropy objective in both configurations. In this context, cross-entropy penalizes assigning low probability to the annotated answer, whether the answer is expressed as a sequence of tags or as local type labels.
The entity output also enters the relation component. A tag is represented there by a learned label vector, so the relation scorer receives numerical information about the types associated with the token representations. A potential relation can draw evidence from that type information and from the sentence encoder. The setup gives the tasks a connection at the output of the entity component as well as through the shared encoder. The direction specified for this connection runs from entity tags into relation prediction.
Turning relationships into head choices
The authors describe relation extraction as head selection. For each token, the system considers another token as a possible partner, called a head, together with a label for the proposed link. A head in this setting is the endpoint of a semantic relationship. The term describes how the output is encoded. The relation extractor scores candidate partners in the sentence using its learned representations.
A relation on a multiword mention needs a consistent token position to represent that mention. The paper designates its last token as the one eligible to act as the head of another token. This avoids producing equivalent heads at several positions inside the same mention. There is also a special way to account for an entity with no relation. The system assigns the auxiliary label N with the token itself as its head. That self-link represents the absence of an ordinary relation, so it has a different interpretation from a link between two participating mentions.
For a given token, the expected output consists of the selected heads and the labels of the corresponding relationships. The authors denote these by ŷᵢ and r̂ᵢ. The index i identifies the token whose outgoing choices are being described. The hat marks a prediction, y denotes heads, and r denotes relation labels. Several entries can be selected for the same token. For instance, accepting a link from “Smith” to “California” as a residence relation leaves other partners available if the sentence also supports an employment or birthplace relation.
The paper gives the probability of a proposed labelled head as follows.
P(wⱼ, rₖ | wᵢ; θ) = σ(s(wⱼ, wᵢ, rₖ))
Here P is the probability assigned to the candidate. The conditioning bar marks wᵢ as the source token for the selection, and θ denotes the network parameters used to score it. wⱼ is the proposed head and rₖ is the proposed relation type. The indices i and j refer to token positions and k identifies a relation label. s is the score produced by the paper’s single-layer neural scorer, and σ is the sigmoid that maps that score to a probability. The semicolon in the formula separates the parameter set from the input on which the probability is conditioned.
Applying the sigmoid to each score separately is the feature that makes this a multi-label decision. Several candidate probabilities can be high for the same source token. A softmax across possible heads would make the candidates compete for probability mass. The sigmoid instead lets the scores support multiple connections. At decoding time the authors use a threshold to select sufficiently probable combinations of head and label. Whether some other choice also passes the threshold is a separate decision.
The paper expresses the relation loss as a sum over the annotated head and label assignments.
Lᵣₑₗ = Σᵢ₌₀ⁿ Σⱼ₌₀ᵐ [−log P(yᵢ,ⱼ, rᵢ,ⱼ | wᵢ; θ)]
Lᵣₑₗ is the loss for relation extraction. The outer Σ sums over token positions i, with n denoting the sentence length. The inner Σ visits the associated heads for the token, with m denoting their number in the paper’s explanation. In this expression j indexes an entry in the associated-head list. yᵢ,ⱼ is the annotated head in that entry and rᵢ,ⱼ is its annotated label. The bar again marks the token wᵢ whose heads are being scored, and θ is the parameter set. P is the probability from the scorer, and −log turns low probability on an annotated choice into a larger penalty. The displayed sum gives the terms for the listed heads. The paper describes the training criterion as cross-entropy and gives no further equation for unlisted candidates.
The two tasks are then combined in a single objective.
Lⱼₒᵢₙₜ(w; θ) = Lₙₑᵣ + Lᵣₑₗ
Lⱼₒᵢₙₜ is the joint loss for input w under parameters θ. Lₙₑᵣ is the entity loss, including the classification version when the boundaries are given. Lᵣₑₗ is the relation loss. The plus sign indicates that the losses are added. An update driven by this objective can change the shared representation according to evidence from either task. The same sum is the starting point for constructing the adversarial example.
Finding a small change that makes a sentence harder
The authors want to add a disturbance that is small in size and consequential for the current system. To construct it, they ask which allowable change to the input vectors would make the combined error largest. They temporarily hold the current parameters fixed while answering that question. Freezing those values makes this a search over the input representation. The subsequent learning step uses the chosen change as part of the training example.
ηₐ𝒹ᵥ = argmax₍‖η‖ ≤ ε₎ Lⱼₒᵢₙₜ(w + η; θ̂)
η is a candidate perturbation, an array that can be added to the numerical input w. ‖η‖ denotes its norm, a measure of its size, and ε is the permitted upper bound. argmax denotes a choice that maximizes the quantity which follows it under the stated bound. Lⱼₒᵢₙₜ is the combined entity and relation loss. w + η is the altered sentence representation, θ̂ is a copy of the current parameters used in choosing the perturbation, and ηₐ𝒹ᵥ denotes the selected adversarial change.
There are many ways to change a sentence’s vectors while staying within a given norm. An exact search for the worst such change would have to account for the nonlinear response of the entire network. The authors use a local approximation. Near the current input, the gradient gives the direction in which a small step increases the loss most rapidly under the norm used by this approximation. It is computed for the current sentence and its annotations. A different sentence or a later stage of training can produce a different direction.
g = ∇w Lⱼₒᵢₙₜ(w; θ̂)
g is the gradient of the joint loss with respect to the numerical input. ∇w means to take derivatives with respect to the coordinates of w, the concatenated input representations. Lⱼₒᵢₙₜ is the loss for both tasks, and θ̂ again denotes the fixed copy of the current parameters. A large component of g indicates that a small change to that coordinate can have a relatively large local effect on the loss. The direction reflects both prediction tasks because both contribute to the function being differentiated.
ηₐ𝒹ᵥ = εg / ‖g‖
ηₐ𝒹ᵥ is the approximate adversarial perturbation, g is the joint-loss gradient with respect to the input, and ‖g‖ is the norm of that gradient. Dividing by the norm preserves its direction and normalizes its size. Multiplying by ε sets the perturbation scale. This allows the current loss to choose the direction while the experiment controls how far the representation is moved.
The authors make the bound depend on the dimension of the embeddings. Their rule follows the scaling used in the earlier work they cite on multilingual tagging.
ε = α√D
ε is the bound used when forming the perturbation, α is a scaling hyper-parameter selected on validation data, D is the embedding dimension, and √ denotes the square root. With this rule the total norm allowed for the change depends on the number of coordinates in the embedding as well as the selected scale. The paper reports testing α from {5e−2, 1e−2, 1e−3, 1e−4}. Its early experiments found that larger scales could hurt extraction performance.
The altered example still carries the same entity and relation annotations as the clean one. A sentence in which a person is annotated as living in a location continues to carry that target even when the input vectors have shifted in a direction that makes it harder to predict. The training demand is therefore to recover the same annotated structure from both representations. The authors write the resulting loss in terms of a clean evaluation and an evaluation on the altered input.
Lⱼₒᵢₙₜ(w; θ̂) + Lⱼₒᵢₙₜ(w + ηₐ𝒹ᵥ; θ̂)
Lⱼₒᵢₙₜ represents the sum of entity and relation losses, w is the original numerical input and w + ηₐ𝒹ᵥ is its adversarial version. ηₐ𝒹ᵥ is the change found from the current input gradient, and θ̂ is the paper’s notation for the current parameter values in the displayed expression. The plus sign combines the clean and altered losses without separate weights in that expression. The perturbation is chosen at the current values of the parameters, and training uses both loss terms to update the network. Ordinary extraction then uses the entity decoder and relation threshold described above.
How the training runs were set up
The authors retain embeddings used in earlier work for the benchmark comparisons. This reduces the possibility of attributing a difference to changing the available pretrained word representations. They use early stopping in every experiment. Early stopping uses validation performance to choose when to end training, so the final evaluation can use a checkpoint selected before training has run for its full possible duration. Validation data also guide the choice of learning rate, dropout values and perturbation scale. Parameter updates use Adam.
The paper identifies the authors’ released codebase as the implementation used for the experiments. The settings distinguish the ordinary recognition baseline with its CRF from the classification variant with supplied boundaries and a softmax. Adversarial training can be added to either, since both express their entity task as a loss and combine it with the same kind of relation objective. Accordingly, the main test of the training change is a comparison within each configuration. The baseline and the adversarial version can be judged with the same prediction task, input data and evaluation rule.
Experiments and results
Data splits and what counts as correct
The experiments span the ACE04 and CoNLL04 extraction benchmarks, the Dutch Real Estate Classifieds dataset DREC, and the Adverse Drug Events dataset ADE. This covers English and Dutch inputs and the news, real estate and biomedical contexts named by the authors. The contexts vary alongside their label inventories and protocols, so the study asks whether the same training idea helps on several established tasks. The ACE benchmark comes from The Automatic Content Extraction Program.
For ACE04 the paper follows the 5-fold cross-validation protocol used by Miwa and Bansal. In cross-validation, runs rotate which portion of the data supplies the evaluation examples. ADE uses 10-fold cross-validation, following the biomedical work by Li and colleagues. For CoNLL04, the entity classification experiment follows the splits used by Gupta and colleagues and by Adel and Schütze. The CoNLL04 recognition experiment follows the approach of Miwa and Sasaki and uses 10-fold cross validation. The DREC experiments use the train-test splits from the authors’ earlier real estate work. The result of each setting belongs to its own protocol.
The paper uses several rules for matching an entity prediction to an annotation. Strict scoring requires the correct boundaries and the correct type. The paper reports strict results for ACE04, ADE and CoNLL04 recognition, and also includes them for DREC. Boundaries scoring, reported for DREC, checks the extent of the predicted mention. Under that rule the entity type has no bearing on whether the mention matches. The DREC results therefore distinguish recovery of the right spans from recovery of spans together with their categories.
Relaxed scoring is used for the CoNLL04 classification comparison, where boundaries are supplied. With a multiword entity, assigning the right type to at least one of its tokens is sufficient to match the entity under this rule. The setup combines a simpler input task with a different evaluation criterion. Relation scoring still checks the predicted relation type and both participating entities. The entity matching rule thus matters to the relation score as well, because it helps determine whether the arguments are correct.
The main metric is F1, which balances precision and recall. Precision concerns how many predictions match an annotation. Recall concerns how many annotations the predictions recover. Both matter to extraction. A system that proposes many weak links may recover more annotated relations while also introducing more false ones. The paper gives separate F1 scores for entities and relations. Its overall F1 column averages those task scores, so movements in the two components can offset one another. The overall column describes their combined performance and the separate columns show which kind of prediction accounts for it.
ACE04 and ADE under strict scoring
On ACE04, the strict evaluation under the 5-fold protocol puts the authors’ ordinary baseline between two earlier comparisons. Katiyar and Cardie’s system, which uses automatically extracted features, reports 79.60 entity F1, 45.70 relation F1 and 62.65 overall F1. The authors’ baseline reports 81.16 entity F1, 47.14 relation F1 and 64.15 overall F1. This establishes that the underlying extractor already has a competitive starting point for evaluating the training extension.
Adversarial training raises the ACE04 strict entity score to 81.64 and the relation score to 47.45. Overall F1 reaches 64.54. Miwa and Bansal’s system, which uses external linguistic tools, remains ahead with 81.80 entity F1, 48.40 relation F1 and 65.10 overall F1. The result therefore supports an improvement over the authors’ own architecture under the same protocol and over the earlier comparison that uses automatically extracted features. The highest overall number in the full ACE04 comparison still belongs to Miwa and Bansal.
Strict overall F1 on ACE04 under the cross-validation protocol
Adversarial training improves the authors’ baseline while the parser-based comparison retains the highest score.
The numbers
| System or setting | F1 |
|---|---|
| Katiyar and Cardie | 62.65 |
| Authors’ baseline | 64.15 |
| Authors’ baseline with adversarial training (this paper) | 64.54 |
| Miwa and Bansal | 65.10 |
On ADE, the strict evaluation under 10-fold cross-validation gives a different ordering for the earlier systems and the authors’ baseline. Li and colleagues’ earlier ADE comparison reports 79.50 entity F1, 63.40 relation F1 and 71.45 overall F1. Their later comparison reports 84.60 entity F1, 71.40 relation F1 and 78.00 overall F1. The paper marks both earlier ADE systems as using external tools. Its own baseline already reaches 86.40 entity F1, 74.58 relation F1 and 80.49 overall F1.
Adding adversarial training on ADE yields 86.73 entity F1, 75.52 relation F1 and 81.13 overall F1. The larger visible movement is in relation extraction. Because this is strict evaluation, those extra correct relation predictions must satisfy the relation label and the criteria for their entity arguments. The article’s results table gives only the aggregate scores, so the added correct links can include improvements through the relation scorer, improvements through its arguments, or contributions from both.
Strict relation F1 on ADE under the cross-validation protocol
The authors’ baseline leads the earlier comparisons and gains further with adversarial training.
The numbers
| System or setting | F1 |
|---|---|
| Li and colleagues’ earlier system | 63.40 |
| Li and colleagues’ later system | 71.40 |
| Authors’ baseline | 74.58 |
| Authors’ baseline with adversarial training (this paper) | 75.52 |
The contrast between ACE04 and ADE is relevant to a second claim in the paper. A system based on learned features can be competitive with one that uses the output of linguistic tools, and it can exceed it in a particular domain. The ACE04 and ADE rankings show that the outcome depends on the benchmark. Comparing the authors’ baseline with its adversarial counterpart gives a narrower test of the training change because the main architecture is held constant. Comparing the baseline with the earlier systems addresses the competitiveness of the full design.
CoNLL04 with supplied and inferred boundaries
On CoNLL04 the authors run separate experiments for classification with supplied boundaries and recognition with boundaries to be found. In the relaxed classification setting on the earlier studies’ splits, Gupta and colleagues report 92.40 entity F1, 69.90 relation F1 and 81.15 overall F1 for their feature-based configuration. Their configuration without those features reports 88.80 entity F1, 58.30 relation F1 and 73.60 overall F1. Adel and Schütze report 82.10 entity F1, 62.50 relation F1 and 72.30 overall F1. That comparison uses their pair-oriented approach to the classification task.
The authors’ ordinary entity classification baseline reports 93.26 entity F1, 67.01 relation F1 and 80.14 overall F1 under the same relaxed evaluation. It has a higher entity score than the feature-based result from Gupta and colleagues, while Gupta and colleagues retain the advantage on relation F1 and the overall score. With adversarial training, the authors’ classification system gives 93.04 entity F1, 67.99 relation F1 and 80.51 overall F1. This is the case in which overall performance improves even though the entity score moves down. It matters when reading the authors’ broader description of the training extension, since a consistent increase in the joint score can coexist with a decline in one component.
In CoNLL04 recognition, under strict scoring and 10-fold cross validation, the task includes identifying the entity boundaries. Miwa and Sasaki report 80.70 entity F1, 61.00 relation F1 and 70.85 overall F1. The authors’ recognition baseline reports 83.04 entity F1, 61.04 relation F1 and 72.04 overall F1. The adversarial version reaches 83.61 entity F1, 61.95 relation F1 and 72.78 overall F1. Here the entity and relation columns both improve with adversarial training. The relation scores of the historical comparison and the ordinary baseline are close, which is easy to miss if the comparison is made only through the overall column.
Strict overall F1 for CoNLL04 entity and relation recognition
Adversarial training improves the recognition baseline, which already leads the historical table-based comparison.
The numbers
| System or setting | F1 |
|---|---|
| Miwa and Sasaki | 70.85 |
| Authors’ recognition baseline | 72.04 |
| Authors’ recognition baseline with adversarial training (this paper) | 72.78 |
Both CoNLL04 experiments concern the same dataset, but they give the system different information and use different evaluation rules and split procedures. The clean comparison for the effect of adversarial training is therefore within the classification setting or within the recognition setting. The higher numbers in the relaxed setting reflect a protocol with supplied boundaries and a more permissive type rule. The recognizer’s strict scores answer the question of how much of the full span-and-type structure can be recovered along with the relations.
Dutch real estate listings
On DREC, the comparison under boundaries evaluation uses the inherited train-test splits. The authors’ earlier real estate system reports 79.11 entity F1, 49.70 relation F1 and 64.41 overall F1. The ordinary baseline of the present paper reports 82.30 entity F1, 52.81 relation F1 and 67.56 overall F1. Adding adversarial training yields 82.96 entity F1, 53.87 relation F1 and 68.42 overall F1. In this scoring regime, the entity result describes whether the extent of a mention is recovered. A relation additionally needs the right label and entity arguments.
Under strict evaluation on the DREC train-test splits, the ordinary baseline gives 81.39 entity F1, 52.26 relation F1 and 66.83 overall F1. The version trained with perturbations gives 82.04 entity F1, 53.12 relation F1 and 67.58 overall F1. Both scoring regimes therefore show an increase in the overall figure and in both of its components. The boundaries result has a historical comparison in the paper’s table. The strict result compares the two versions of the present system.
The pair of DREC evaluations helps define the observed improvement. Under the boundaries rule, it is visible when recognizing spans is the entity criterion. Under strict scoring it remains visible when the criterion also includes the right category. The two aggregate rows give a more complete picture than either scoring rule alone, although they do not identify which particular mentions or relation types changed.
The overall pattern
Across the reported evaluation protocols, the authors describe the overall F1 increase over their baseline as ranging from ∼0.4% to ∼0.9%. Those are the paper’s approximate figures. The exact F1 scores above show how the change presents itself under each protocol. Every matched overall comparison favours adversarial training. Relation F1 also rises in every matched comparison, while the CoNLL04 classification result supplies the exception for entity F1.
The authors characterize the increase in relation F1 as ∼1% scoring points in most of their comparisons, with ACE04 as the exception. That shifts attention from the headline overall score to the component that benefits most in the table. The gain remains a property of the complete extraction pipeline under the relevant matching rule. Entity quality, the learned representation and relation scoring all determine whether a labelled link is counted. The experiment shows where the benefit appears in the metrics without resolving every cause of it.
What the ablations show
The paired training comparison
The paper’s main controlled comparison adds adversarial training to a fixed extraction design. The baselines include the same contextual encoder and relation scoring procedure as their corresponding adversarial versions. The recognition comparisons use the CRF in both versions, and the classification comparison uses the softmax in both. The intervention is training on the additional perturbed input under the original annotations. This is the most direct evidence that the training extension helps the design used in the paper.
Each paired comparison has a different role in establishing the scope of that result. ACE04 and ADE test the extension with strict entity evaluation in different domains. DREC tests it with both boundaries and strict matching in Dutch listings. The CoNLL04 results include recognition with inferred spans and classification with supplied spans. Seeing the direction of the overall change recur across these settings supports the authors’ claim about consistency for their baseline. The magnitude and component scores still depend on the setting.
The CoNLL04 classification result also sets a boundary on the interpretation. With supplied boundaries and relaxed type matching, adversarial training can improve the predicted links while slightly lowering the measured entity score. That shows the importance of examining the objective’s components separately. The training direction is derived from their sum, and the selection criterion for a useful perturbation is the combined loss. The resulting training procedure can therefore improve the overall outcome without producing matching improvements in every output category.
Progress on the validation sets
The authors also examine validation F1 during training. Their curves compare the ordinary baseline with the adversarial version as epochs advance. An epoch is a pass through the training data. In Figure 2, performance is plotted starting at an epoch between 10 and 30, with the starting point varying by dataset. The trend lines use LOWESS smoothing, a procedure that estimates a local trend from neighbouring observations. The figure also presents 95% confidence intervals around the plotted trends.
The authors read the curves as showing the adversarial system reaching performance close to its maximum relatively early. They highlight DREC, where their description puts the attainment of high validation performance in the first epochs. This is an observation about the validation trajectory. It complements the final F1 comparisons because checks made only at a selected checkpoint leave the earlier path invisible. It also concerns performance as a function of epochs. Adversarial training adds work within an epoch to construct and process the altered inputs, so a wall-clock efficiency comparison would require separate measurements.
For CoNLL04, the paper describes the separation on the evaluation curves as particularly small. The authors suggest that dataset size might affect the benefit of adversarial training. Their evidence for that possibility comes from comparing the observed behaviour across datasets. The datasets also vary in domain, annotations and protocol. A causal test of the size explanation would need a way to vary size while controlling those other factors.
How much can be attributed to particular choices
The paper provides a scale comparison in qualitative form. During early experiments, larger values of the perturbation scale produced consistent decreases in performance. The authors relate this to a possibility also raised in earlier work on relation extraction. A change that is too large can affect the information about the sentence carried by its representation. The training objective continues to require the original annotated output, which may become a less suitable target as the representation moves farther. The reported tuning experience supports bounding the perturbation and choosing its scale on validation data. The paper gives no score series across all the candidate values from which to infer a response curve.
The paper also offers explanations for why its ordinary baseline is competitive. On ACE04 it points to the character representations, sequence-level entity decisions and multi-label head selection. For CoNLL04 classification it points to using the whole sentence rather than processing one pair’s context at a time. The authors also credit the shared recurrent representation for the ability to learn features useful to both tasks. These are explanations of differences between complete systems. A component-by-component ablation would require switching individual pieces while holding the other choices fixed, and the paper’s comparisons do not provide that breakdown.
The role of the perturbation’s direction also remains open to a more specific comparison. The paper motivates a gradient-chosen direction by distinguishing it from random noise, then evaluates it against the baseline without the added adversarial examples. That comparison measures the value of adding this training procedure as a whole. A matched random-perturbation experiment would be needed to measure how much of the gain depends on the direction being chosen from the loss. Similarly, changing from a perturbation based on both losses to one based on a single loss would test the importance of constructing it jointly. These distinctions explain why the paper’s strongest result is the repeated baseline comparison.
Limitations
Limits identified by the authors
The authors emphasize that the overall gains are small and relate their size to the limited improvement in the entity component. The main results support that description. Relation scores improve more consistently, and the entity score in relaxed CoNLL04 classification decreases. The claim supported by the results is strongest for overall F1 under the reported protocols. Whether a gain of this size matters for a particular use would also depend on which errors that use can tolerate, information that the aggregate measures do not supply.
The authors report a practical limit to the scale of an effective perturbation. In early experiments, more aggressive settings lowered performance. They suggest that sufficiently large changes disrupt the sentence information encoded in the vectors. The choice to leave the annotations fixed is sensible for a small neighbourhood around the example. It becomes a stronger assumption as the input representation is moved farther away. The training procedure therefore depends on finding a scale that challenges the system while retaining enough evidence to learn the original tasks.
The paper also marks the proposed connection with dataset size as a question for future investigation. The variation in the validation curves is the reason the authors raise it. Their experiments compare established datasets with multiple differences at once, so the contribution of size remains unresolved. The result establishes that the benefit varies across the evaluated settings. The explanation for that variation is still a hypothesis.
An additional qualification comes from the paper’s own benchmark comparisons. The ordinary extractor and the adversarial version are strong against systems that use automatically extracted features. An earlier system with external tools retains the higher overall score on ACE04, and the feature-based Gupta configuration retains the higher overall score in relaxed CoNLL04 classification. On ADE the authors’ system leads the reported alternatives. Thus the state-of-the-art comparison needs the evaluation condition and the competing system’s feature setup to be stated alongside it.
Limits of the evaluation
The modification operates in embedding space. The paper evaluates the trained system on the benchmark inputs and follows its validation F1 through training. A test of robustness to misspellings, paraphrases or other changes to actual text would ask a different question, with its own procedure for retaining or adjusting the correct annotations. The reported experiment supports a regularization benefit on the benchmark tasks. The relationship between that benefit and performance on deliberately modified sentences remains unmeasured.
The paper reports final scores aggregated over the relevant protocols. It does not accompany the paired final F1 comparisons with a significance test or a breakdown of variation across folds or repeated runs. The confidence intervals described with the smoothed validation figure concern the plotted trends. The recurring direction of the overall changes is evidence across the tested configurations, while the precision of any individual gain and its sensitivity to the randomness of training remain open.
The representation is sentence-based. Both the contextual encoder and the candidate head selection operate on the tokens available in the input sequence. This supports relations between eligible positions in that sentence. Extending that setup to connections across sentences would require evidence and candidates beyond the presented input. The experiments give no separate measure of document-level extraction. They also provide no relation-by-relation breakdown that would reveal whether the reported F1 gains are spread across many labels or concentrated in some of them.
The entity tagging scheme imposes another representational scope. A sequence that assigns a single BIO tag to each position describes mentions as spans along the sentence. Representing overlaps or nested mentions would require additional output structure. The experiments establish performance for the annotations and matching rules used in the selected benchmarks. They leave open how the same training change would behave with an entity representation that can assign several span memberships to one token.
Finally, improvements in relation F1 are compatible with several routes through the system. More accurate entity boundaries or types can make an otherwise plausible link count as correct, while stronger relational evidence can improve the link even when the entity predictions stay the same. Changes to the shared encoder can contribute to both. The reported aggregate results measure the joint effect that matters for the extraction task. Distinguishing the routes would require an analysis that holds one component’s output fixed, or a breakdown showing which errors disappeared in each comparison.
What came after
Later research citing Bekoulis and colleagues includes work that revisits both the architecture of extraction systems and the use of adversarial training in language processing. The citations establish a connection to the earlier study. The later papers’ stated subjects indicate the directions they pursued, while their use of the original perturbation rule and their comparative results remain unspecified here.
Two are Better than One keeps entity and relation extraction together and identifies table and sequence encoders as its architectural ingredients. This takes up the question of how to represent the signals needed for both tasks. Bekoulis and colleagues use a sequence encoder and express relations as labelled head choices. The later work’s named design gives both a table representation and a sequence representation a role in joint extraction. Its point of contact is the structure of the extractor.
A Frustratingly Easy Approach for Entity and Relation Extraction revisits the same pair of tasks through an approach presented as simple. Its connection to the earlier study is the shared extraction problem, including the need to identify relation arguments and their types. The title establishes simplicity as the later work’s framing. The role, if any, of embedding perturbations in that approach remains unspecified.
A Joint Neural Approach to Information Extraction with Global Features pursues joint extraction with global features. It shares the concern that extraction decisions benefit from information beyond a single candidate considered in isolation. Bekoulis and colleagues address that concern with a shared sentence representation and entity label vectors supplied to the relation layer. The later title places global features at the centre of its treatment. The citation alone leaves the precise transfer between those approaches open.
Entity-Relation Extraction as Multi-Turn Question Answering reformulates the extraction task around a sequence of questions. Bekoulis and colleagues frame a relation as a choice of labelled heads inside a sentence. The later framing makes several turns of questioning part of how the extraction problem is posed. Its connection is the need to recover linked pieces of information, with the question sequence offering a different way to organize the decisions. That work approaches extraction through question answering.
Information Extraction Using Dynamic Span Graphs puts spans and their graph structure at the centre of a general extraction framework. That representation is relevant to a decision in the earlier paper. Bekoulis and colleagues recover spans with a tagger, then use a token position as the head that stands for a multiword mention in relation prediction. The later work names the span itself as the unit in a dynamic graph. It continues the architectural question of how to represent mentions and connections together.
Global Pointer takes up the entity side of this problem through span-based recognition. That is the part of the earlier joint system handled by BIO tags and sequence decoding when boundaries are unknown. The later work presents a span-based approach focused on named entity recognition. Its citation connects it to the recognition component of the joint task, while its title describes the scope of its own contribution.
Improving Generalization in Coreference Resolution via Adversarial Training follows the training question into another task involving mentions. Coreference resolution concerns which mentions refer to the same entity. Bekoulis and colleagues use perturbations to improve a system that detects entities and predicts typed relations. The later paper uses adversarial training with the stated aim of improving generalization in coreference resolution. The shared idea is to use deliberately difficult inputs during training, with a different prediction problem determining what counts as an error.
Cite
Cite as Giannis Bekoulis, Johannes Deleu, Thomas Demeester and Chris Develder. 2018. Adversarial training for multi-context joint entity and relation extraction. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{bekoulis2018adversarial,
title = {{Adversarial training for multi-context joint entity and relation extraction}},
author = {Giannis Bekoulis, Johannes Deleu, Thomas Demeester and Chris Develder},
booktitle = {Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing},
year = {2018},
doi = {10.18653/v1/d18-1307},
url = {https://doi.org/10.18653/v1/d18-1307}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bekoulis-2018-adversarial-training-multi-context-joint/