Elamur Research

Oxford at SemEval-2017 Task 9: Neural AMR Parsing with Pointer-Augmented Attention

Paper · 2017 · Jan Buys and Phil Blunsom

Summary

An Abstract Meaning Representation, or AMR, describes a sentence as a graph of concepts and their relationships. Building that graph requires decisions about what the sentence refers to, which roles each concept plays, and when several relationships lead back to the same concept. The words offer clues, but the graph comes with no instructions for matching its nodes to them. Jan Buys and Phil Blunsom investigate whether making those matches an explicit part of prediction helps a neural system learn this kind of semantic parsing.

Their Oxford parser reads a sentence and writes a sequence that can be turned back into an AMR graph. It uses ordinary attention to gather information from across the sentence. A separate pointer chooses a particular input token for each output step. When the parser predicts a name string or a concept closely tied to a word, that choice tells it where to recover the spelling or base form. A predicate’s sense label still has to be predicted. Concepts such as the protein category in the paper’s example can be written directly, even when the word under the pointer is the name of a particular protein.

The distinction between picking a word and deciding what it means gives the decoder a smaller inventory of output symbols. Training requires an automatic alignment between the graph and the sentence, together with a procedure that supplies candidate base forms and strings for each token. The system uses lexical resources and sentence tags for these jobs. It can encode and decode a sentence without a syntactic parse, then reconstruct the graph, fill in its lexical forms, and recover links to nodes that participate in more than one relationship.

On the biomedical development set, the attention baseline with richer input features scored 57.27 Smatch F1. The pointer system that recovered constant strings while still predicting full concept labels reached 57.99. Factoring the base forms of lexical concepts out of the decoder’s predictions raised the score to 59.18. On the SemEval test set, the submitted system achieved a Smatch score of 59%. It exceeded the shared-task average on reentrancies, which are links back to concepts already represented in the graph, and fell below the average on Wikification, for which the authors used no dedicated system for predicting Wikipedia entries. The clearest development-set improvement among the pointer settings came when the pointer took on the additional job of helping recover lexical concepts.

Deep dive: Oxford at SemEval-2017 Task 9: Neural AMR Parsing with Pointer-Augmented Attention

Oxford’s AMR parser learns where graph concepts come from in a sentence and uses those pointers to recover words and names. · about 34 minutes to read

The problem and its context

What a graph makes explicit

In AMR, a sentence is represented as a directed acyclic graph. Its nodes carry labels called concepts, and its directed edges have labels called relations. A concept can represent an event, a participant, or a category introduced by the annotation. An edge identifies the role of a concept in relation to another. The graph can also carry constant values, such as a name string or a number. This combination lets an AMR distinguish a category from the particular entity named in the sentence. The formalism is introduced in Abstract Meaning Representation for Sembanking.

The biomedical example in the paper contains a response and a treatment. The response has a participant, and the treatment relates to that participant as well. A single concept can take part in both relationships. The treatment is also connected to a protein, and the representation gives the protein a name containing the constant string FGF. If a parser gets the string right but misses the link between the response and the treatment, it has recovered a piece of the sentence without recovering the full account of how its parts fit together. If it writes the same participant concept twice and leaves the two occurrences disconnected, matching labels alone will not restore the shared participant.

That sharing explains an important distinction between a graph and a tree. In a tree, a node beneath another node has a unique parent. In AMR, several incoming edges can reach the same node. A link that returns to a node reached elsewhere is called a reentrancy. It lets the graph express that separate relationships involve the same participant. An AMR can have reentrancies and still be acyclic. Sharing a node does not require a directed path that eventually returns to its own starting point.

AMR annotations use a rooted spanning tree to write out a graph. The tree gives a route for visiting its nodes, starting at a designated root. The written form also records the edges beyond that tree so the graph can be recovered. A relation whose direction is reversed for the tree traversal receives an -of suffix. The direction used to lay out a graph for reading is therefore distinguishable from the direction of an edge in the graph itself. This convention matters for a parser that learns from a sequence. It has to produce enough information to recover the graph after the sequence has served its purpose.

Why the words and graph need an alignment

The annotation gives the parser a sentence and its graph. It leaves open which token should account for any given node. A concept may be easy to associate with a particular word, as with a predicate whose base form resembles the verb in the sentence. Other nodes are introduced by the conventions of AMR. The word FGF, for example, supplies a string in the example. The graph also uses name and protein to describe what that string denotes. Treating all of these labels as alternative spellings of the same token would lose their distinct functions.

Predicate concepts can contain both a lemma and a sense label. A lemma is the base form used to represent a word or related forms. In a graph label such as respond-01, the lemma identifies the predicate family and -01 identifies a sense within it. The paper draws these predicate labels from framesets associated with The Proposition Bank. The sense label and the lemma solve different problems. Finding the token that expresses a response may make respond a good candidate. The sentence context still has to support the relevant predicate sense and the edges that give its arguments their roles.

The direction of an AMR relation and the roles it assigns are also independent of any assumed correspondence with sentence syntax. A sentence gives the system words in order. AMR asks it to recover a structure in which several graph elements may be associated with the same token, and a node can occur wherever the graph traversal puts it. The position of a concept in the written AMR tells the system about that traversal. Its position by itself gives no direct answer about which word expressed the concept.

This leaves a neural parser learning several things from each example. It needs a way to recognize a relevant expression, select a concept label, distinguish senses where the representation calls for them, and place the concept in the graph. It must also learn how to write the graph in a consistent sequence. The authors treat the sizes of the available training sets as a reason to make some of this structure explicit. Where the graph label is closely tied to a word, the system can learn which word is relevant and delegate part of the label to a lexical procedure. Where a label is an AMR category, the decoder can learn to produce it as part of the graph.

How earlier parsers approached the task

The paper describes a field in which many parsers used several stages and drew on additional linguistic resources. Earlier neural encoder–decoders had already tried mapping a sentence to AMR as a generation problem. The authors cite an earlier neural translation approach and a study that addressed data sparsity with preprocessing and categorization. They describe the resulting accuracies as below the strongest AMR systems available to them. This sets up an architectural question. How much structure can a sequential neural parser use while retaining a single encoder and decoder for its principal parsing decisions?

Other neural approaches gave learning a different place in the pipeline. The paper describes one system that arranged multiple long short-term memory networks in stages, and another that used neural classifiers inside a parser with features and external resources. It treats both as competitive approaches. The Oxford parser keeps a sequential encoder–decoder and changes what its decoder learns to emit. It also uses an earlier aligner during preparation of the training data, the JAMR aligner from A Discriminative Graph-Based Parser for the Abstract Meaning Representation.

There was a precedent for distinguishing concepts tied directly to words from other semantic material. In its discussion of Minimal Recursion Semantics and the English Resource Grammar, the paper notes that this distinction and corresponding alignments are explicitly annotated. AMR gives the Oxford system neither as supervision. The authors therefore build both from the training pairs. They obtain an automatic alignment first, then use a heuristic to decide which of the aligned concepts gets its lexical form from the word. This makes the partition a design choice of the parser, with consequences for both what it can generalize and what mistakes it can make.

The method, step by step

What the decoder has to write

The parser reads a tokenized sentence and produces a traversal of its graph. In the simplest version, the traversal gives the label of each concept, the relations leading to its dependents, and the bracket structure that groups those dependents. A conventional sentence encoder and attention decoder can learn to generate that sequence. The final version changes the representation of entries whose identity depends on an input token. It lets the decoder specify a kind of graph entry, together with a location in the sentence where the lexical part of that entry can be found.

From sentence tokens to a reconstructed AMR graph

The steps in order.

From sentence tokens to a reconstructed AMR graphStep 1: Tokenize and tag the sentence1. Tokenize and tag the sentenceStep 2: Prepare candidate lemmas and constant strings2. Prepare candidate lemmas and constant stringsStep 3: Encode tokens in both directions3. Encode tokens in both directionsStep 4: Predict an input position and compute attention4. Predict an input position and compute attentionStep 5: Generate the next graph symbol5. Generate the next graph symbolStep 6: Recover words, strings, and shared nodes6. Recover words, strings, and shared nodes

Think of the decoder arriving at the FGF string in the graph. It has already been generating the structure around the protein and its name. For the string itself it can write a placeholder, CONST, and select the token that supplies the candidate value. The association is with an input position, which remains available even if the string is rare in training. The decoder has a different job when it writes protein. It chooses that concept label as a graph symbol, because the word associated with that part of the graph supplies the particular name. The same token can serve as a point of reference for the category and the string, while only the string comes from the candidate list.

Predicates illustrate a further division of work. The graph example contains respond-01 and treat-04. In the most compact traversal, the decoder writes the sense markers -01 and -04 and supplies the relevant token positions. The system retrieves a candidate predicate lemma at each selected location and combines it with the predicted marker. For a lexical concept outside that predicate scheme, the decoder emits -u to indicate that it needs a base form without a predicate sense label. The mechanism supplies lemmas and prepared strings. It does not treat every position as a request to copy the visible token verbatim.

The graph in standard, lexicalized, and delexicalized form

The standard linearization stays close to AMR’s tree-shaped notation. A linearization is a way to arrange a structure as a sequence. Here, entering a relation opens a group and finishing its dependent closes it. The authors use concept labels to identify nodes and handle constant strings as nodes in the traversal. This means that the sequential prediction problem can be expressed using graph labels and delimiters, without requiring the decoder to invent explicit identifiers for ordinary node occurrences.

Reentrancies need special treatment in this representation. The authors append * to the relation that leads back to an existing node, then repeat that node’s concept label. In the biomedical example, a marked argument under the treatment repeats the concept of the participant introduced under the response. That repeated label constitutes a reference in the traversal. During graph reconstruction the parser looks for the closest node with the same concept in the linear order. This is how a sequence of symbols comes to describe one node shared by several relations. It also means that the decoder can get the marked relation and repeated concept right while reconstruction still has to choose among possible antecedents with that label.

The lexicalized representation associates each node with an input token. It still keeps full concept labels as output symbols. Constants become CONST, and the pointer supplies the position for restoring the prepared value afterwards. The word lexicalized thus applies to the way the sequence continues to represent concept labels. Some string values have already moved out of the decoder’s vocabulary. The relevant comparison with the standard form is whether the decoder needs to generate those constant values itself and whether it has explicit alignment decisions available while it writes the graph.

The delexicalized representation goes beyond constants. It also removes the lemmas of concepts chosen as lexical. It retains the alignment and a symbol that indicates the appropriate lexical type, including the sense marker for a predicate. Non-lexical concepts are still written by name. The example’s lower branch contains a protein category, a name concept, and the constant beneath the name. In the illustrated traversal, several entries in that branch are associated with the same input word. Their labels still distinguish a literal string from the concepts that classify and organize it. The alignment alone could never make those distinctions.

This redesign also changes what a vocabulary item can express. A symbol for a full predicate label combines a specific lemma with a particular sense. A sense marker can be used with lemmas obtained from different input tokens. That creates a way to predict a label whose lemma need not have appeared often as a decoder output. It also creates a dependency on preprocessing. If the candidate predicate lemma supplied at the chosen position is wrong, the decoder’s correct sense marker will be combined with the wrong base form. The output representation and the candidate procedure have to work together.

Preparing alignments for training

The training procedure needs a position to associate with each graph node. The authors first tokenize the sentence and annotate tokens with their part of speech and named entity information. A part-of-speech tag identifies a token’s grammatical class. Named entity recognition supplies information about expressions such as names. The paper attributes its tokenization choice partly to the treatment of hyphenated biomedical expressions, which gave a closer fit to AMR concepts and constants in the authors’ comparisons with other tokenizers. These operations use Stanford CoreNLP.

Tokenization matters because a pointer can only choose among the positions created by the tokenizer. A segmentation that puts the relevant expression across several tokens changes what the alignment has to represent. The decoder’s output is a position for a graph entry, so the training procedure must reduce any span to a position or distribute the span among multiple entries. In the case of a multiword name, the sentence may provide several pieces that the graph represents as separate constants. A single span for the name subgraph gives a useful starting point. It still needs to be converted into the separate relationships between tokens and those constants.

The authors run the rule-based JAMR aligner on the training pairs, then adapt its output. For multiword names, they split the subgraph-to-span alignment so that each constant is paired with its corresponding token. For other multi-token alignments, they retain the first token in the span. A Wiki node is assigned to a token by prefix overlap, choosing the token with the greatest overlap. For other nodes still lacking an alignment, they try the leftmost position associated with their children. If there are no children, they take the alignment from the parent side. The result gives the pointer a target even for graph elements that do not have an obvious word of their own.

The aligned pairs also supply a rule for deciding where to remove a lemma. The parser allows at most one lexical node per token. When multiple nodes share an alignment, frequently as parts of a subgraph, the authors take the lowest node as the lexical one. This rule separates a word’s direct contribution from the graph material surrounding it. It gives the training procedure a consistent interpretation for many alignments, although that interpretation is only as good as the assumptions about the subgraph and the correctness of the alignment.

These steps perform two jobs that should be kept distinct. One assigns positions so the decoder can learn a pointer distribution. The other decides which positions will actually be used to recover part of an output label. Even a node treated as non-lexical has a position during training. A token assigned by the fallback from a child may provide the decoder with a useful region of the sentence. Its lemma will only be inserted if the eventual output symbol calls for it.

Preparing forms the pointer can retrieve

The system builds separate lexical candidates for predicates, other concepts, constants, and Wikification. These are different uses of the same sentence token. A word associated with a predicate may need a verbal form. The same word under a different output type may call for a noun form. A token in a name may need a string written according to AMR conventions. The pointer chooses the position. The output symbol helps determine which prepared candidate matters there.

The first resource consists of dictionaries induced from the automatically aligned training pairs. Each dictionary associates a token or a token span with a likely output of the corresponding type. The authors also extract a predicate dictionary from the PropBank framesets included with LDC2016E25. Because a frameset supplies information about predicates, that resource has a specific place in candidate selection. It is used for predicate lemmas. The corpus dictionaries cover the types for which the training alignments supply examples.

When suitable WordNet entries are available through NLTK, the system can use associated forms to find a verbal form for a predicate or a nominal form for another concept. This is one reason the word copy only partly describes the pointer. The token that provides the evidence is selected directly from the input. The candidate drawn from that location can be a related form prepared outside the decoder.

For unfamiliar names, the parser can use forms supplied by the Stanford named entity tagger. The authors found that those forms broadly fit AMR’s annotation conventions. The same procedure can express numbers as numerals. SUTime provides normalized date and time forms. The resource inventory also includes a lemmatizer as a fallback for predicates, other lexical concepts, and constants. Wikification has its own candidate type, with resources listed for it as part of preprocessing. The submitted system used no dedicated Wikifier to choose Wikipedia entries.

The candidate procedure takes the first available prediction in the resource order for the relevant type. For predicates, an aligned-data lookup can take precedence over a PropBank or WordNet candidate. The name and number procedures contribute in the settings where a prepared constant is needed. This priority gives the parser a specific value to retrieve. The decoder’s flexibility lies in choosing the sentence position and output symbol. It does not separately rank every possible lexical form from all the resources for that position.

The authors preprocess the sentence and the gold graph independently when building a training example. The gold graph supplies the structure and alignment targets on the output side, while candidate preparation on the input side is kept comparable to what can be done at test time. A candidate form need not agree with the reference concept even if the decoder is given the intended position and sense. The authors describe this as a source of noise. Their oracle scores, discussed below, give a direct way to see how much can be lost before errors by the learned decoder enter the comparison.

Encoding the sentence

The encoder forms a vector for each token from several kinds of information. It looks up a word vector, a part-of-speech vector, and a named entity vector, concatenates them, and maps the result through a linear layer. The paper calls the resulting representation g(e) for a token e. The letter g denotes the mapping from a token and its features to a vector whose size matches that of the LSTM cell. The relevant word embeddings put tokens into a numerical form that the recurrent encoder can use alongside the tag information.

An LSTM, or long short-term memory network, is a recurrent network. It updates a state as it reads along a sequence, retaining information from earlier positions in that reading order. The encoder processes the sentence in both directions. At each position, it joins the forward state and the backward state to make the encoder representation for that token. The pointer therefore selects a position whose representation already includes information from elsewhere in the sentence. If a word appears repeatedly, its occurrences can offer different contextual information even though they share a spelling.

The paper writes the sentence as e₁:ᵢ, using I for the full sentence length, so the complete sequence runs from e₁ to e at position I. It denotes the output sequence by f, with J as its length and fⱼ as the symbol at output step j. The alignment sequence is a, and each aⱼ is an input index from 1 to I. The encoder vector for input position i is hᵢ. The decoder state at output step j is sⱼ, and its initial state s₀ is taken from the backward encoder’s final state. The reversal in the encoder’s reading direction gives the decoder a state computed after that encoder has read the sentence.

How the pointer and attention interact

At each output step, the decoder scores the input positions. The function that does this is a small feed-forward network. It combines the encoder state for a candidate position with the current decoder state, applies a nonlinear transformation, and produces a scalar score.

uᵢⱼ = wᵀ tanh(W⁽¹⁾ hᵢ + W⁽²⁾ sⱼ)

Here uᵢⱼ is the unnormalized alignment score for input position i at output step j. The vector hᵢ represents that input position, and sⱼ is the current decoder state. The learned matrices W⁽¹⁾ and W⁽²⁾ project those vectors into a common space. The plus sign adds the projected vectors, and tanh applies the hyperbolic tangent to each component. The trainable vector w, transposed as wᵀ, turns the result into one score. This scoring arrangement lets the suitability of a position change from one graph decision to the next.

p(aⱼ | a₁:ⱼ₋₁, f₁:ⱼ₋₁, e) = softmax(uⱼ)

The notation p denotes a probability distribution, and the vertical bar introduces the information it conditions on. The variable aⱼ is the chosen token index at output step j. The expression a₁:ⱼ₋₁ denotes earlier alignment choices, f₁:ⱼ₋₁ denotes earlier output symbols, and e denotes the input sentence. The vector uⱼ collects the alignment scores for all input positions at that step. The softmax converts those scores to probabilities whose total is one. A training alignment supplies a particular input position as the target. This use of a distribution over available positions follows the idea in Pointer Networks.

The decoder also computes attention. Its attention scores are obtained in similar fashion, with a separate set of learned parameters. The attention distribution has no observed target alignment. Its purpose is to pool information that will help the decoder produce the graph, and the weights may be spread across multiple positions. This is the attention mechanism the paper adapts from Neural Machine Translation by Jointly Learning to Align and Translate.

qⱼ = ∑ᵢ₌₁ᴵ αⱼⁱ hᵢ

In this expression, qⱼ is the context vector for output step j. The weight αⱼⁱ is the attention assigned at that step to input position i, and hᵢ is the encoder vector at that position. The summation symbol ∑ adds the weighted vectors from position 1 through position I, the sentence length. The result has the form of an average over encoded tokens, with the contribution of each one set by its attention weight.

A single decoder step consequently has access to two views of the source. The attention context brings together the information available across the sentence. The vector at the selected alignment provides the representation of a specific location. Later, that location can serve as a lookup for a candidate lexical form. A relation symbol can benefit from the sentence context and from the selected encoder state without being assigned a word during reconstruction. A lexical output makes an additional, explicit use of the position to recover the missing part of its label.

Predicting a graph symbol and advancing the decoder

The decoder sends the current state, the attention context, and the selected input vector through a linear layer. The resulting vector, oⱼ, is then projected to a score for every output symbol in the decoder vocabulary.

vⱼ = R oⱼ + b

The vector vⱼ contains the unnormalized output scores at step j. The learned matrix R projects oⱼ into that score space, and b is a learned bias vector. The intermediate representation oⱼ combines sⱼ, the most recent recurrent state, with qⱼ, the attention context, and hₐⱼ, the encoder vector at the position given by aⱼ. The plus sign adds the bias to the projected vector.

p(fⱼ | f₁:ⱼ₋₁, e) = softmax(vⱼ)

Here p again denotes a probability distribution. The new symbol is fⱼ, the previous symbols are f₁:ⱼ₋₁, and e is the source sentence. The vertical bar marks the conditioning information shown in the paper’s equation. Applying softmax to vⱼ gives probabilities across the graph output vocabulary. The equation lists the previous output symbols and sentence as its conditioning variables. In the computation described by the authors, the scores also use the vector selected by the current pointer, and previous pointer choices can feed into the recurrent state.

After choosing a symbol, the decoder prepares the input to its next recurrent update. The paper describes a linear layer that combines the embedding of the chosen symbol, the attention context, and the vector for the chosen input position. It denotes the symbol embedding by v(fⱼ) in its definition and uses d(fⱼ) in the description of the layer’s inputs. The embedding represents the chosen symbol as a vector. The vector dⱼ denotes the result of combining it with the two sources of sentence information.

sⱼ₊₁ = RNN(dⱼ, sⱼ)

In this update, sⱼ₊₁ is the next decoder state, dⱼ is the current input to the recurrent update, and sⱼ is the state it starts from. The function RNN is the state update of the recurrent decoder, implemented with an LSTM. Feeding in both sentence vectors gives the next prediction access to information about the context just used and the position just selected. The new state can therefore support the next alignment and output decisions.

Learning and reconstructing the graph

The experiments employ LSTMs that have one layer and a 256-dimensional hidden state. Dropout is 0.3 on the input and output connections, which means training periodically removes parts of those connections’ signals. Word embeddings have size 512. The first 100 dimensions are initialized with vectors from a structured skip-gram approach. The part-of-speech and named entity embeddings each have size 32. The pretrained initialization is based on Two/Too Simple Adaptations of Word2Vec for Syntax Problems.

During training, tokens occurring only once are replaced with the unknown-word symbol with probability 0.5. This exposes the parser to some training inputs where the word identity is unavailable. The authors implement the system in TensorFlow and update the parameters on minibatches of size 64. Their learning rate is 0.01, and they clip the gradient norm to 5.0 to limit the size of large gradients. The optimizer is Adam.

For decoding, the paper uses greedy decisions. The parser advances through the output using the choices favored at the current step. It skips symbols that are out of place so that the result can be read as a well-formed output. It also removes repeated sibling subtrees when they are equivalent apart from the argument numbers on relations. Sibling subtrees are branches attached at the same level under a parent. This cleanup targets a type of repeated structure that can result from generating a graph as a sequence.

Postprocessing interprets the traversal as a graph, recovers the lexical entries called for by the placeholders, and resolves the marked reentrancies. A constant can recover a candidate string. A lexical predicate gets a candidate lemma and retains the sense marker generated by the decoder. A reentrancy uses the repeated concept and its location in the traversal to identify a node already present. The roles and bracketing come from the output sequence itself. Through these operations, the parser turns a set of local predictions about symbols and positions into graphs of the same kind as those used for evaluation.

Experiments and results

Training data and comparison settings

The authors use both corpora distributed for the shared task. LDC2016E25 contributes 35,498 training sentences from newswire, weblogs, and discussion forums. The Bio AMR Corpus contributes 5,542 training sentences from the biomedical domain. For biomedical training, a Bio AMR sentence receives a sampling weight of 7 relative to an LDC sentence when the authors draw training minibatches. This changes the representation of the two sources during training. The biomedical development comparison therefore concerns a parser that learns from the shared-task resources with extra weight on in-domain material.

The attention baseline comes in a word-only version and a richer-input version. The latter uses part-of-speech and named entity embeddings as well as pretrained word embeddings. The baseline family predicts the AMR traversal without using explicit input-to-graph alignments or the external candidate resources used by the pointer versions. The pointer comparison keeps full concept labels in the lexicalized setting. The delexicalized setting uses the same general architecture with separate recovery of lexical concept lemmas. This progression tests input enrichment, the addition of positions and candidate strings, and a further change to the vocabulary of the graph decoder.

The paper evaluates graph predictions with Smatch. The measure compares what is present in the predicted graph with what is present in the reference graph while allowing the nodes’ arbitrary identifiers to be matched. The reported F1 balances the agreement of predicted material with the reference and the coverage of reference material by the prediction. That suits the parser’s design because the generated traversal is an intermediate representation. A parser should receive credit for the correct graph relationships even if the internal names used to reconstruct its nodes differ from the reference.

Biomedical development scores

Bio AMR development set Smatch F1 by parser setting

The delexicalized pointer setting has the highest development score.

Bio AMR development set Smatch F1 by parser settingAttention without tags: 54.60Attention without tags54.60Attention with tags: 57.27Attention with tags57.27Lexicalized pointer: 57.99Lexicalized pointer57.99Delexicalized pointer (this paper): 59.18Delexicalized pointer (this paper)59.18
The numbers
System or settingSmatch F1
Attention without tags54.60
Attention with tags57.27
Lexicalized pointer57.99
Delexicalized pointer (this paper)59.18

The word-only attention baseline reaches 54.60 Smatch F1 on the Bio AMR development set. With richer input representations, the attention baseline scores 57.27. That comparison establishes that a stronger encoder input already improves the result before there is a separate pointer. It also affects which baseline is most informative for the rest of the experiment. The enriched attention system gives a closer comparison to a parser that benefits from a greater amount of information about the words.

The lexicalized pointer system scores 57.99 Smatch F1 on the same split. Its score is close to that of the enriched baseline. The authors emphasize its ability to choose the source of a constant string, a capacity the attention baseline does not have in this form. Full concept labels still have to be generated. Factoring out the lexical lemmas as well produces the best Bio AMR development result, 59.18 Smatch F1. The improved score is for the combination of a new output representation and recovery through the candidate procedure.

The shared-task test set

The official test table gives rounded percentages. The submitted Neural AMR system scores 59 Smatch, against a shared-task average of 53.67 on that metric. The additional measures break out several properties of the graphs. Unlabeled scoring reduces the emphasis on edge labels. The measure headed No WSD looks at graph agreement with the word-sense distinctions set aside. Named Entities and Wikification assess different aspects of entity representation. The table also reports scores for negation, concepts, reentrancies, and semantic role labeling. The task average is an aggregate reference for each measure, which is a different kind of comparison from the attention baselines on the development set.

SemEval test set reentrancy scores for Oxford and the shared-task average

Oxford scores above the shared-task average on links that return to a graph node.

SemEval test set reentrancy scores for Oxford and the shared-task averageShared-task average: 34.17Shared-task average34.17Oxford Neural AMR (this paper): 43Oxford Neural AMR (this paper)43
The numbers
System or settingReentrancies score %
Shared-task average34.17
Oxford Neural AMR (this paper)43

On the SemEval test set, Oxford records 63 for Unlabeled against a task average of 57.83 and 59 for No WSD against an average of 53.67. The overall Smatch and No WSD rows give the same displayed values for each of these comparisons. The scores were reported with rounding, and the table does not establish what fraction of individual predicate senses the parser recovered. It does show that the favorable comparison with the task average extends to evaluations that relax different aspects of exact graph labeling.

Named Entities scores 66 for Oxford against 55.83 for the task average. Wikification goes in the opposite direction, with 18 for Oxford against an average of 33.00. A graph can identify and represent a name correctly while failing to assign the expected Wikipedia entry. That separation is reflected in the table. The authors attribute the Wikification result to the absence of a dedicated Wikifier in their pipeline. Their preprocessing makes candidate forms available for graph entries, but it does not give them the same capability as a component specifically built to predict Wiki entries.

The official Negation score is 27 for Oxford against a task average of 23.17. Concepts scores 74 against 71.17. Semantic role labeling, which concerns the roles of arguments in the graph, scores 57 against 50.33. Together with the reentrancy result, these values show that the submission’s advantage over the reported task average is visible in several parts of the graph, including properties concerned with its edges. The table gives a separate score for each aspect. It does not trace the individual graph decisions that produced it.

The authors also report corpus test-set results to make later comparisons possible. On the Bio AMR test set, the parser scores 59.27 Smatch F1. In the condition that trains and tests only on LDC2016E25, it scores 61.89 Smatch F1 on the LDC2016E25 test set. The latter is its own experiment, with a different training and test condition from the biomedical setting. The shared-task result and the corpus-specific results describe performance on their respective tests. Their numerical ordering alone does not establish the relative difficulty of the texts or the effect of pooling the corpora.

What the ablations show

Richer input helps before the pointer is added

The nearest thing to a controlled removal experiment in the paper is its progression of development settings. Start with the attention parser that represents the input by words. Enrich the input, add explicit alignment and constant recovery, then make lexical concepts recoverable through the same mechanism. The measurements tell us how those successive packages behave on the same development split. Attributions are strongest at the level of each package. Several of the steps change more than one ingredient.

In the baseline comparison, the richer input raises Bio AMR development Smatch F1 from 54.60 to 57.27. The authors describe the improvement in terms of part-of-speech and named entity embeddings. The experimental description also assigns pretrained word embeddings to the richer baseline. Its result therefore supports the value of the input change as a whole. The table does not tell us how much of the gain tags account for, whether one kind of tag contributes more than the other, or how much the pretrained word vectors contribute.

This matters for the comparison with the final parser. Against the word-only baseline, the full system has the benefit of richer input and all the changes to graph generation. Against the enriched baseline, the input comparison is closer and the focus shifts toward what is being predicted. The experiment makes both comparisons available. The higher baseline illustrates how much of the overall improvement arises before the system is asked to learn a pointer.

Constant recovery and concept recovery have different effects

Adding the lexicalized pointer setup brings the development score from the enriched attention baseline’s 57.27 to 57.99 Smatch F1. The authors identify the use of pointers for constants as the main practical difference between these settings and interpret the gain as relatively small. In that setup, choosing a position lets the system recover a name string or another constant through preprocessing. Ordinary concept labels, including whole predicate labels, still occupy entries in the decoder vocabulary. The change reaches one class of graph entries directly while changing the neural computation that produces the sequence.

In the next comparison, the delexicalized variant reaches 59.18 Smatch F1 on the Bio AMR development set. Now the pointer does more work. It can supply the token for a lexical concept whose base form would otherwise have to be written by the decoder. The shift replaces full labels with smaller pieces whose common parts can be shared across predicates. It trains the decoder to make decisions about a type or a sense marker while the candidate procedure supplies a form appropriate to the selected position. The observed improvement supports this joint design. The experiment does not determine whether the smaller vocabulary, the lexical candidates, or repeated use of the pointer during concept recovery explains the largest share of it.

The comparison also gives substance to the distinction between pointing and attending. Both pointer settings retain attention. They use the selected encoder vector and the attention context during neural prediction. The delexicalized setting increases the range of decisions for which the selected position is needed during reconstruction. The results favor that increase in responsibility for the pointer. A comparison of separate parameterizations of attention and pointing, or of a pointer used only at reconstruction time, would answer a different question.

Oracles reveal a cost of the representation

The authors report development-set oracle scores for the representations. The standard linearization has an oracle score of 98.7% Smatch. The aligned lexicalized form reaches 96.16%, and the delexicalized form reaches 93.48%. An oracle comparison gives the system the intended representation so that the recovery process can be examined with prediction errors set aside. If that representation and its associated recovery procedure were lossless, reconstruction would preserve the graph they began with. Departures in these scores show that the procedure can itself change the graph.

Development set oracle Smatch by AMR representation

The standard representation retains the most graph information under oracle reconstruction.

Development set oracle Smatch by AMR representationStandard linearization (this paper): 98.7Standard linearization (this paper)98.7Aligned lexicalized linearization: 96.16Aligned lexicalized linearization96.16Delexicalized linearization: 93.48Delexicalized linearization93.48
The numbers
System or settingSmatch %
Standard linearization (this paper)98.7
Aligned lexicalized linearization96.16
Delexicalized linearization93.48

The oracle and learned-parser comparisons assess different properties. A full concept label in the standard representation preserves information about the lemma as long as the label is available. In a delexicalized sequence, a perfect prediction of the target position and sense marker still leaves the lexical procedure to supply the lemma. The latter representation loses more in oracle reconstruction while yielding a higher score when a decoder has to learn to predict it. The gain in the learned system can coexist with these reconstruction losses because remembering the desired full labels and predicting them from sentences are separate tasks.

Several sources could contribute to the oracle pattern, including imperfect automatically produced alignments, disagreement between a candidate and the reference form, and the conventions used to recover shared nodes. The aggregate oracle scores describe their combined effect in each representation. They do not give an error count by cause. For instance, they cannot tell us whether improving the multiword-name alignments would recover more graph agreement than improving the predicate candidate dictionary.

Reentrancies are evidence about the full system

The official reentrancy comparison gives the authors a reason to emphasize the system’s ability to handle concepts with more than one occurrence in the traversal. Reconstructing one of these links requires a marked relation and enough information to resolve which concept is being repeated. The pointer can provide relevant context and, for a lexical concept, help recover the repeated form. The postprocessor uses the repeated concept and proximity in the traversal. The test score gives evidence about how these operations work together in the submitted parser.

The comparison with the shared-task average does not isolate the pointer’s role in those links. The paper gives no corresponding breakdown of reentrancy performance for the attention baseline and the delexicalized variant on the same split. The result is compatible with the authors’ explanation that their pointer architecture helps with repeated concepts. It also incorporates the choice of linearization, the restoration of lexical labels, and the heuristic that turns repeated mentions into a reference to a shared node. The named entity and Wikification rows illustrate the same general point. They locate strengths and weaknesses of the submission while leaving the contributions of individual components open.

Limitations

Limits the authors identify

AMR does not furnish the token-to-node alignments that supervise the pointer in this system. The authors call the inferred alignments noisy. JAMR provides useful associations, and the preprocessing changes them to fit the architecture’s need for a token index at every step. A position inherited from another node or chosen at the beginning of a span serves a defined purpose in training. It also gives a different kind of evidence from an explicit annotation of which word contributed a concept. The paper’s claim about learning alignments concerns the alignment signal the authors construct.

The authors also point to noise introduced by preparing sentence candidates separately from graph targets. A realistic testing setup has no reference graph to use in choosing forms. Independent preparation makes the input side closer to that setting, at the cost of examples in which the intended graph cannot be recovered exactly from the prepared candidates. The oracle comparison makes the loss visible. It leaves open how much additional accuracy would result from repairing any particular source of candidate noise.

The paper identifies Wikification as a weakness of the submission and relates it to the lack of a Wikifier. Selecting a token and choosing a string associated with it can recover a literal value. Assigning the graph the expected Wiki entry involves a prediction that can differ from the literal spelling of a name. A parser can do relatively well on entity strings and still perform poorly on this part of the annotation. The official results display both behaviors.

The authors describe the generalization gain from pointer-based constant prediction as small in their development comparison. The larger benefit appears when the predicted position is also used to recover lexical lemmas. Thus the paper’s strongest support is for the connection between explicit alignment and a representation that uses it extensively. The results give less support to the idea that adding a pointer for constant recovery by itself accounts for the improvement over attention.

Limits visible in the setup

The alignment representation commits to a single token position for each output step. A multiword named entity gets a special decomposition into constants, but other multi-token alignments are reduced to their first position. The underlying attention context can still cover several words. The lexical lookup, however, starts from the position supplied by the pointer. The procedure is well suited to a graph entry recoverable from one prepared candidate. It offers less direct support for a lexical interpretation that depends on a whole span whose contribution cannot be represented by the chosen token and its candidates.

The heuristic for lexical concepts has a related constraint. The training procedure assumes that a token gives rise to at most one lexical node and uses the lowest node to resolve competing alignments. This lets the authors learn a well-defined output representation from graphs that do not label the distinction. The evaluation measures agreement of complete graphs. It does not independently establish how frequently the lexical classification matches a linguist’s judgment or how errors in that classification affect each diagnostic metric.

There is also a constraint in how the graph is serialized. Repeating a concept and marking its relation makes reentrancies expressible without a separate identifier for every output node. The nearest-match rule can conflate different graph nodes with the same concept label if several are available nearby. Furthermore, a traversal can be syntactically well formed after cleanup and still describe a graph with a wrong relation or omitted participant. Smatch reflects the final reconstructed graph. The paper does not report how many predicted graphs needed the cleanup rules or what share of errors arose specifically in the reconstruction of reentrancies.

Greedy decoding connects each result to a sequence of local choices. An early position or symbol can affect the recurrent state used to choose later ones. The architecture gives a reason to consider this possibility, because both the pointer’s selected vector and the symbol embedding feed the state update. The experiment includes no alternative search comparison that estimates how much performance depends on greedy decoding. The final scores measure the system with this decoding procedure and its repairs in place.

The inputs used here also limit what the resource claim can mean. The neural encoder takes words and tags without requiring a syntactic parse. Training uses an automatic aligner, and candidate preparation uses dictionaries, tagged entities, lexical information, and time normalization. This is a compact neural parsing architecture with substantial preparation around its lexical decisions. The paper shows how that combination works with the shared-task resources. It provides no controlled comparison that removes every lexical resource or repeats the method with another language or annotation scheme.

Finally, the development progression, the oracle checks, and the official test breakdown answer different questions. The development results compare settings under a common biomedical evaluation. The oracle results study information retained by the representations and recovery rules. The official results compare the submitted system with shared-task averages. The experiments do not report repeated-run variation or an independent assessment of pointer accuracy against manually annotated alignments. Across the tables, the strongest conclusion concerns the tested combination of alignment, attention, and lexical recovery. The separate causal effects of those choices remain less certain.

What came after

The later work linked most directly by its subject is AMR Parsing as Graph Prediction with Latent Alignment, published in 2018. Its title identifies a different formulation of the same broad problem of relating sentence words to an AMR graph. Graph prediction puts the graph at the center of the prediction task. Latent alignment treats the connection between sentence and graph as something to infer. In the Oxford paper, the correspondence is made an explicit decoder prediction, and automatic alignments are produced in advance to supervise it. The Oxford decoder also writes a traversal from which the graph is reconstructed. Those are the two design decisions the later title puts into perspective, the status of the alignment and the choice of what to predict. The citation establishes that the later work engages with the Oxford paper. The title alone leaves the precise mechanisms and their relation to Oxford’s pointer unspecified.

A second citing paper from 2018, Multitask Parsing Across Semantic Representations, addresses parsing across different semantic representations as a multitask problem. That scope raises a different question from the one Oxford tested. Oxford makes use of distinctions specific to the form of its AMR targets, including which concepts have a recoverable lemma and which relations mark references in a traversal. Multitask parsing asks how parsing tasks for different representations can be treated together. The citation connects the papers within semantic parsing. It does not establish that a pointer, a lexical candidate procedure, or the AMR linearization was carried over. The documented connection is between a parser designed around one representation and later work concerned with learning across representations.

Cite

Cite as Jan Buys and Phil Blunsom. 2017. Oxford at SemEval-2017 Task 9: Neural AMR Parsing with Pointer-Augmented Attention. Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/s17-2157

@inproceedings{buys2017oxford,
  title = {{Oxford at SemEval-2017 Task 9: Neural AMR Parsing with Pointer-Augmented Attention}},
  author = {Jan Buys and Phil Blunsom},
  booktitle = {Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017)},
  year = {2017},
  doi = {10.18653/v1/s17-2157},
  url = {https://doi.org/10.18653/v1/s17-2157}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/buys-2017-oxford-semeval-2017-task-9/