What do you learn from context? Probing for sentence structure in contextualized word representations
Paper · 2019 · Ian Tenney, Patrick Xia, Berlin Chen et al.
Summary
A word can play different parts in different sentences. A conventional word embedding gives a word type the same vector each time it occurs. A contextual encoder computes a vector for each occurrence after processing the text, so the vector can carry clues about the word’s particular use. The authors ask which clues a reader can recover from those vectors. Can it identify the grammatical function of a word, tell which role a phrase plays in an event, or link a pronoun to the right person? Strong performance on a complete language task leaves open which of these distinctions the encoder made easier and how much the task’s own classifier worked out.
The paper introduces edge probing to examine those questions. An edge is a classification target attached to one stretch of text or linking a pair of stretches. The experiment supplies these stretches from the original annotation. For a phrase, the probe might predict its grammatical category. For a predicate and a known participant, it might predict the participant’s role. The pretrained encoder is held fixed. A small classifier learns to summarize the vectors at the specified positions and predict labels from them. Words elsewhere in the sentence can influence those vectors through the encoder, but the standard classifier has no direct access to those other positions. A companion classifier reads context-independent features, establishing how much the designated words can already tell it by themselves.
The study compares CoVe, ELMo, OpenAI GPT and BERT, including BERT-base and BERT-large. The tasks cover grammatical tags and phrase categories, dependency relations and entity types, participant roles and properties, shared reference and semantic relations. OntoNotes 5.0 supplies much of the material. Other datasets add dependency annotations, fine-grained properties such as awareness, relations between entities and a pronoun challenge designed around ambiguous cases. Each task is scored with F1 on its labeling decisions. Supplying annotated spans focuses the evaluation on the labels a probe can recover once it knows where to look.
Contextual features yield some of their clearest gains on grammatical structure, particularly phrase categories and dependencies. They generally add less on fine-grained participant properties and on difficult reference decisions, although BERT-large makes notable gains on both coreference evaluations. The authors also find that the type of context matters. A short window around each word recovers much of ELMo’s advantage, especially on grammatical tasks, while the full encoder holds up better when a dependent and its head are far apart. On the relation benchmark, simply telling the classifier which words occur in the sentence reproduces much of the improvement from ELMo. Taken together, the experiments show where useful information is accessible and how comparisons with simpler inputs can clarify what kind of evidence supports a good score.
Deep dive: What do you learn from context? Probing for sentence structure in contextualized word representations
Edge probing tests what contextual word vectors reveal about sentence structure, from nearby grammatical cues to distant links and semantic roles. · about 40 minutes to read
The problem and its context
What changes when an embedding has a sentence around it?
An embedding is a list of numbers that a system can use as input in place of a word’s written form. The paper starts from a familiar use of pretrained embeddings. A system learns them from patterns of word occurrence in large quantities of unannotated text. Another system can then draw on those patterns when learning a task with its own labeled examples. In this arrangement, the same entry in the embedding vocabulary supplies the same vector whenever that entry is looked up. Words with useful statistical similarities can provide related inputs even when the task has seen them in different examples. Distributed Representations of Words and Phrases and their Compositionality
A contextual encoder keeps the interface of a vector at a token position and changes how the vector is produced. It takes a sequence as input and computes a representation at each position, using the surrounding sequence to the extent allowed by its architecture. An occurrence of a word can therefore carry information about the phrase it belongs to or the construction in which it appears. The downstream component still receives a sequence of vectors. This makes it possible to replace ordinary embeddings with contextual ones in existing task architectures without first redesigning the task around a different kind of input.
The paper describes encoders pretrained through translation or through a language modeling objective. Both give the encoder a training signal from large text collections without requiring the particular annotations used to test it later. A translation encoder learns in the service of producing a sentence in another language. An encoder trained to predict words learns in the service of predicting text. A later constituency parser can use the resulting features even though the pretraining task did not ask the encoder to give phrase spans their grammatical labels. ELMo illustrates the use of prediction-based pretraining to provide contextual features. Deep Contextualized Word Representations
The motivating examples include improved constituency parsing, semantic role labeling and coreference resolution. Those applications have different outputs. A parser recovers grammatical organization, a role labeler describes how participants relate to a predicate, and a coreference system connects expressions that refer to the same thing. Their success made it plausible that pretraining supplied evidence useful to several stages of linguistic analysis. Each application could also exploit its own training data and make decisions using several sentence positions at once. Its final score gives limited guidance about where in the input vectors that evidence was available. Constituency Parsing with a Self-Attentive Encoder
There are two dimensions to the authors’ question. One is the kind of linguistic distinction a representation supports, such as the grammatical category of a phrase or an event participant’s awareness. The other is the reach of the evidence that helps make that distinction. A representation can be useful because it carries information from a neighboring function word. It can also be useful because it has picked up something about a much more distant word. A grammatical label can draw on either source, and a task about meaning can sometimes be solved with a nearby lexical clue. Examining these dimensions separately keeps the subject matter of a task from dictating the explanation for its score.
From whole-sentence tests to questions about particular words
The paper places edge probing alongside application benchmarks such as SentEval and GLUE. Evaluations built around sentiment or textual entailment provide a practical test of what systems can do when a task combines many demands. An entailment decision, for instance, can involve recognizing entities, resolving what pronouns refer to and interpreting the relation between events. Once those demands are combined into a score, further tests are needed to decide which of them drove a gain or a failure. The paper treats probing as a way to ask a smaller question with a more specific target. SentEval · GLUE
Some earlier probes used an embedding of the entire sentence. They asked whether a fixed-length vector could support predictions about properties such as sentence length, the presence of a word or the ordering of words. Other probes worked with targets such as tense and the depth of a grammatical tree. This approach is well suited to questions about what survives in a global representation. A downstream reader that succeeds, however, can make use of cues gathered from across the sequence. That leaves a different question unresolved. A representation at the word whose role is being examined may be informative enough by itself, or useful evidence may only become available after information from many positions has been pooled. Probing Sentence Embeddings for Linguistic Properties
The paper also discusses experiments that inspect sentence or word probabilities. A system trained to predict language can be tested on whether it favors a verb form that agrees with its subject. Such a comparison connects a grammatical distinction to the system’s predictive behavior. Edge probing asks a related question through a different observation. It supplies positions from a linguistic annotation and learns to predict a label from the activations at those positions. For a dependency, for instance, those positions can already identify the words involved, leaving the probe to distinguish the functions of the link. Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependencies · Colorless Green Recurrent Networks Dream Hierarchically
Challenge sets provide another way to narrow the question. The earlier work described in the paper uses templates, changes to existing sentences or carefully related examples to test whether a prediction responds to a particular linguistic distinction. The Diverse Natural Language Collection makes different semantic questions look alike by turning them into entailment decisions. For example, an entailment could depend on deciding whether a pronoun and an earlier expression refer to the same person. This gives the natural language inference test a particular subject. If the system receives an encoding of the complete sentence, the test still leaves room for evidence to be distributed across positions.
Earlier work on token representations was already closer to what the authors wanted to measure. Studies of translation encoders had looked for grammatical categories, semantic tags and morphology in their internal vectors. Some work tested dependency relations between token pairs. Other analyses examined hierarchical phrase structure or compared layers and training objectives. The paper describes work on ELMo that extended these inquiries to phrases and gave a heuristic for pronoun reference without supervised training on that task. Edge probing broadens the set of questions that can be asked in this way, particularly when a label concerns the relationship between pieces of text.
Existing linguistic annotation provides a ready source of such questions. A parse specifies where its phrases are and how their categories differ. A role annotation supplies the predicate, the argument and the type of participation. Each can be converted into an example without handcrafting a new sentence for it. Because the example retains its anchors in the annotated text, the results can later be examined by category or by how far apart the linked words are. This combination of broad coverage and a restricted view of each example is the paper’s approach to interpretability.
The method, step by step
Give the probe a question about a piece of text
An edge-probing example tells the classifier where to read. Imagine a sentence in which a mechanic repairs a bicycle. An annotation could point to the complete phrase the bicycle and ask for its phrase category. Another could point to repairs and the bicycle and ask how that participant relates to the event. The sentence is processed by the encoder in either case. The phrase classifier receives the resulting vectors for the designated phrase. The role classifier receives vectors from the predicate and the argument. Other positions affect these decisions through whatever they contribute to those vectors.
The endpoints and the label come from the linguistic data. For a dependency example, the head is already supplied. For coreference, both mentions are already supplied, including when they refer to different entities. This format lets the authors apply a common classifier design across tasks. A specific probe is trained for the relevant labels and representations, with the same general stages of projection, pooling and prediction. The encoder’s parameters stay fixed as that probe learns.
How edge probing turns an annotation into a prediction
The steps in order.
Represent spans and edges
The paper indexes a sentence as a sequence of tokens. A token is a unit of the input segmentation and may correspond to a word or a piece of one.
T = [t₀, t₁, …, tₙ]
Here T is the token sequence. Each t with a subscript is the token at that position, and n is the last index. The brackets enclose the ordered sequence, and … stands for the intervening entries.
An annotation target uses a span for each of its endpoints. In the formula below, k identifies which endpoint is being described.
s⁽ᵏ⁾ = [i⁽ᵏ⁾, j⁽ᵏ⁾)
The span s⁽ᵏ⁾ starts at position i⁽ᵏ⁾ and ends just before j⁽ᵏ⁾. The square bracket includes the start and the round bracket excludes the end. That convention also describes an individual token. Starting at its index and stopping before the next index selects just that token.
{s⁽¹⁾, s⁽²⁾, L}
The braces group the information for one edge. The superscripts distinguish the first endpoint s⁽¹⁾ from the optional second endpoint s⁽²⁾. L is the set of applicable labels. When a target concerns a single span, such as a constituent, the edge has only the first endpoint. A dependency has both endpoints, with the dependent and head occupying distinct roles.
L ⊆ ℒ
ℒ is the inventory of labels for the task, and ⊆ means that L is a subset of it. An example can have no applicable label, a single label or several. During training the set has a binary representation.
L ∈ {0, 1}^|ℒ|
In this form L is the vector of target decisions. The symbol ∈ means that it belongs to the set of binary vectors, and the exponent |ℒ| specifies a vector entry for every label in the inventory. A 1 marks a label that applies and a 0 marks one that is absent.
A corpus annotation can contain several edges for the same sentence. Those edges furnish distinct prediction targets, even though their spans can share words and draw on the same sentence encoding. For example, words in an annotated noun phrase can also be part of a larger phrase. Each category decision gets its own input span. The experiment thus measures decisions on individual targets from the structure, leaving the assembly of a complete, consistent structure to a different task.
Decide what each label is meant to recover
The most narrowly anchored task is part-of-speech tagging. The classifier gets the vector for the designated token and predicts a category such as verb or adjective. Lexical identity is often informative because words have characteristic uses. The contextual test can reveal whether the vector for this particular occurrence helps sort out its category when that prior is insufficient.
Constituent labeling asks for the grammatical category of a known stretch of text. The annotation already establishes that the stretch is a unit in a phrase-structure parse. The category distinguishes possibilities such as a noun phrase and a verb phrase. The classifier can combine evidence from the words within the phrase, and contextual features may also tell it something about the surroundings. An improvement over lexical features shows that this additional input helps with the category once the phrase has been isolated.
The dependency parsing diagnostic begins with a known connection. It presents a dependent token and its syntactic head as separate spans. The classifier identifies the relation between them. This target can distinguish functions of a connection even when locating the connection would be a separate difficulty. The fixed endpoint order also lets the probe treat evidence from a dependent differently from evidence from a head.
For named entity recognition, the paper evaluates the typing part of the task. A supplied span might denote an organization, a person or a location. A phrase’s wording can give the lexical reader an immediate clue, while information about what that entity does in a sentence can help disambiguate its type. The label applies to the whole supplied span, even when one word within it carries much of the evidence.
Semantic role labeling treats a predicate and its known argument as an ordered pair. The output identifies the argument’s role with respect to that predicate. In a sentence about pushing, the person doing the pushing and the person being pushed can receive ARG0 and ARG1, respectively. These examples illustrate how a role describes the relation to an event rather than a property of a noun in isolation. The paper later distinguishes the core roles from non-core categories such as purpose and cause.
Semantic proto-role labeling makes the description of a participant more fine-grained. It pairs a predicate span with a known argument head and asks which semantic attributes apply. A participant can be aware of an action and undergo a change of state, so the answers to those questions can coexist. The two role tasks put related kinds of input to different uses. Identifying who did the pushing answers an argument-role question. Deciding whether that participant was aware of doing it asks for an additional judgment about the event.
Coreference takes two known mentions. The decision concerns whether they refer to the same entity or event in the text. A name and a descriptive phrase can refer together in spite of having little wording in common. A name and a pronoun can also refer together, with the intended interpretation depending on what the sentence says about the available candidates. At the level of the probe, each supplied pair gets a binary decision.
Relation classification also starts with mentions, but its classes name the type of real-world relation between the entities. The direction can matter. For an Entity-Destination relation, the moving entity and its destination have recognizably different functions in the pair. A relation cue can occur outside the mentions, making the task a test of whether the endpoint vectors provide access to such evidence. The experiment later gives a lexical baseline a broader view of the words to see how much such cues can explain.
Build the data from the original annotations
OntoNotes 5.0 supplies part-of-speech tags and constituency spans, as well as entity types, semantic roles and coreference links. The authors extract the grammatical tags from the constituency data. For the other tasks from the corpus, they translate the annotated targets into the edge format while retaining their linguistic labels. In the corpus statistics, an example generally means a sentence. For semantic roles it means a frame. A target counts a span or edge to be classified, so a sentence or frame can supply several targets.
OntoNotes supplies positive coreference annotations. For negative examples the authors pair mentions that the corpus does not mark as coreferent. The resulting task compares positive and negative connections among mentions from the data. It begins after mention identification, and the negative examples depend on which mentions and links the original annotation contains. The ordinary corpus test therefore measures a particular pairwise decision with a particular way of generating candidates.
The dependency data come from the English Web Treebank in Universal Dependencies 2.2. For proto-roles the authors use SPR1, derived from Penn Treebank, and SPR2, derived from English Web Treebank. These corpora fill gaps in OntoNotes. Their individual annotation schemes still define what each label means, even though the converted datasets expose the labels through the same interface.
The relation dataset consists of English web sentences from SemEval 2010 Task 8 and supplies 9 directional relation types. Its training material has no standard development split. The authors reserve a fixed 15% of it for development and fit the probe using the remaining 85%. The task’s test results consequently describe performance on held-out relation examples after development on that reserved portion. SemEval 2010 Task 8
The study also includes a Winograd-style coreference challenge, using the Definite Pronoun Resolution dataset in the version used by the earlier inference work cited in the paper. Its positive and negative pairs are balanced. The examples are chosen to make grammatical information alone insufficient for deciding which reading of a pronoun is intended. This gives the authors a separate check on the idea that contextual features help with reference because they carry subtler information about the situation the sentence describes.
Move the annotations into the encoder’s segmentation
The annotation and the encoder can disagree about tokenization while processing the same text. An annotation may use a treebank’s convention for writing a contraction. The encoder may divide the contraction differently, which shifts the integer positions of subsequent words. With subword tokenization, a word occupying a single annotation position can also become a span covering multiple pieces. The paper illustrates both problems with the word pineapples, whose interval changes across the native, Moses and sub-word segmentations.
The authors use Moses tokenization for CoVe and the encoders’ own sub-word schemes for GPT and BERT. They treat the target tokenizer as a black box that accepts the source sentence as a string and returns tokens. To map those tokens back to annotation positions, they rejoin the target tokens with spaces, then find a byte-level correspondence between the rejoined text and the source string. Levenshtein alignment works by matching the strings through edits. The representation is at the byte level so that corresponding portions of text can be traced across token boundaries even when the segmentations differ.
à = Align(T̃, S̃)
S̃ is the source string and T̃ is the string made by joining the target tokens. Align denotes the byte-level alignment procedure here. Its output à records correspondences from target-string byte positions to source-string byte positions.
U = Align([t₀, t₁, …, tₙ], T̃)
The bracketed list contains the target tokens t₀ through tₙ, with n their last index and … the intervening tokens. For this call, Align relates tokens to bytes in their joined string T̃. The matrix U records which target bytes belong to which target token.
V = Align([s₀, s₁, …, sₘ], S̃)
The list contains the source tokens s₀ through sₘ, with m their last index. The subscripted s here names a token from the source segmentation, distinct from the superscripted endpoint notation. Align relates these tokens to bytes in S̃, and V records those source token-to-byte correspondences. The source and target lists can have different lengths.
A = U Ã Vᵀ
A is the resulting token-to-token correspondence matrix. The product composes the alignments as Boolean adjacency matrices. U links target tokens with target bytes, Ã crosses between the two strings, and Vᵀ is the transpose of V, which connects source bytes back to their tokens. In effect, an active entry in A says that there is a path between the target token and the source token through corresponding byte positions.
To move an annotation, the authors create a binary vector over source tokens with active entries inside its boundaries. Applying A projects those entries to the target tokens. The first and last active positions on the target side determine the interval. Its end boundary lies after the last active position, following the same end-exclusive convention used by the edges. Taking the outer positions gives a contiguous span suitable for pooling. This is an approximate mapping when the strings themselves differ, as can happen when a tokenizer rewrites parts of the input.
Choose which frozen features the reader sees
CoVe uses the encoder half of an English–German machine translation system. Its bidirectional LSTM, a recurrent network that reads the sequence in both directions, has two layers. Its training material contains approximately 7 million sentences from sources including the web, news and government proceedings. The edge probe uses the forward and backward outputs from the top layer, each with dimension 300, along with a pretrained GloVe embedding of dimension 300. Concatenating them gives a vector of dimension 900. The original embedding remains explicitly available alongside the translation-trained features. Sequence to Sequence Learning with Neural Networks
ELMo begins with a character convolutional network. This layer represents the word’s written form using patterns over characters and is independent of the surrounding sentence. Above it are two recurrent layers trained through forward and backward prediction. Their training corpus is the Billion Word Benchmark, described in the paper as primarily newswire. The probe sees a learned mixture of the outputs available at the token position, including the character layer. One Billion Word Benchmark
eᵢ = γ (s₀ h₀,ᵢ + s₁ h₁,ᵢ + s₂ h₂,ᵢ)
eᵢ is the input vector the probe receives for token i. The vectors h₀,ᵢ, h₁,ᵢ and h₂,ᵢ are the outputs at that token from the character layer and the successive contextual layers. The s coefficients are learned scalar weights, one per layer, and γ is a learned overall scale. Juxtaposition denotes multiplication by a scalar and + adds the weighted vectors. The assignments of weight and scale depend on the probing task. The underlying layer outputs come from the fixed encoder, and the resulting vector has 1024 dimensions.
OpenAI GPT has a 12-layer Transformer trained on the Toronto Books Corpus. Its prediction runs from left to right. The causal attention restriction matters when interpreting the input to a probe. A contextual vector at a given position draws on the text available up to that position. If the probe gets two endpoints, the vector for the later endpoint can reflect words that were still unavailable to the earlier one. The authors keep the pretrained Transformer weights fixed. Attention Is All You Need · Toronto Books Corpus
BERT uses masked-word prediction and next-sentence prediction in pretraining on the Toronto Books Corpus together with English Wikipedia. Its contextual computation can draw on both sides of a token. The study uses bert-base-uncased, with 12 layers, and bert-large-uncased, with 24 layers. The authors also report that the cased releases recommended for named entity recognition made no difference to their supplied-span entity typing, so the reported BERT comparisons use uncased representations throughout.
For GPT and BERT, the paper compares two ways to extract features. In cat, the reader receives the input sub-word embedding followed by the activation of the top Transformer layer. In mix, the reader receives a scalar-weighted combination of the embedding layer and the contextual layers at that position. The mix weights are learned separately for each task. This exposes intermediate layers while keeping the features at a common dimension within each encoder. For GPT and BERT-base, cat produces 1536 dimensions and mix produces 768. For BERT-large, the dimensions are 2048 for cat and 1024 for mix.
Learn a fixed-length summary for each endpoint
After the encoder produces a sequence of vectors, the probe puts them into a common intermediate size. It projects each vector to 256 dimensions. There are separate learned projections for the two roles a span can take. For instance, in a predicate–argument task the projection for the predicate can emphasize different features from the projection for the argument.
eᵢ⁽ᵏ⁾ = A⁽ᵏ⁾ eᵢ + b⁽ᵏ⁾
eᵢ is the input feature vector at token position i. The superscript k selects the endpoint role. A⁽ᵏ⁾ is that role’s learned projection matrix and b⁽ᵏ⁾ is its learned bias vector. The result eᵢ⁽ᵏ⁾ is the projected vector. This A belongs to the classifier and is distinct from the byte-alignment notation.
r⁽ᵏ⁾(sₖ) = Pool(e⁽ᵏ⁾[iₖ], e⁽ᵏ⁾[iₖ + 1], …, e⁽ᵏ⁾[jₖ − 1])
r⁽ᵏ⁾(sₖ) is the fixed-length representation of span sₖ in role k. The bracketed indices on e⁽ᵏ⁾ identify projected vectors at the listed positions. iₖ is the start of the span, and jₖ is its exclusive end, so jₖ − 1 is the last position used. The dots denote any intervening positions. Pool is the operation combining those vectors into one.
Pooling uses learned doses of evidence from the tokens within a span. The paper adopts a self-attentive pooling operation from earlier work on structured language tasks. For a name containing several words, for example, the probe can learn that some words deserve more weight for predicting its category. The same projection and pooling rules apply when the span is a single token. In that case there is only one vector to summarize. End-to-end Neural Coreference Resolution
zᵢ⁽ᵏ⁾ = Wₐₜₜ⁽ᵏ⁾ eᵢ⁽ᵏ⁾
zᵢ⁽ᵏ⁾ is a scalar score for token i in endpoint role k. The learned attention weights Wₐₜₜ⁽ᵏ⁾ turn the projected vector eᵢ⁽ᵏ⁾ into that score. The probe computes scores at the positions belonging to the span.
aᵢ⁽ᵏ⁾ = softmax(z⁽ᵏ⁾)ᵢ
z⁽ᵏ⁾ collects the scores for the span. The softmax function maps them to positive weights that sum to one, and the trailing i selects aᵢ⁽ᵏ⁾, the weight for the token at that position. Each weight is normalized against the scores of the other tokens in the same span.
r⁽ᵏ⁾(sₖ) = ∑[iₖ ≤ i < jₖ] aᵢ⁽ᵏ⁾ eᵢ⁽ᵏ⁾
The sum ∑ runs over i, the positions at or after iₖ and before jₖ. The term for each position multiplies its pooling weight aᵢ⁽ᵏ⁾ by its projected vector eᵢ⁽ᵏ⁾. The left side is the resulting summary of sₖ for role k. There is no step here that scans the intervening words between separate endpoints. For the standard contextual probe, information from those words enters through the input vectors that lie within the endpoints.
Convert the summaries into label decisions
For paired inputs the probe places the two summaries end to end. A multilayer perceptron, a feed-forward network referred to as an MLP, transforms the joined vector. With a single endpoint, only that span’s summary enters the classifier. The MLP has two layers and is followed by a sigmoid output for each label.
h = MLP([r⁽¹⁾(s⁽¹⁾), r⁽²⁾(s⁽²⁾)])
h is the hidden representation returned by MLP. The brackets denote concatenation of the two span summaries. r⁽¹⁾ and r⁽²⁾ give the summaries for the spans s⁽¹⁾ and s⁽²⁾ in their respective endpoint roles.
P(labelℓ = 1) = σ(Wh + b)ℓ
P(labelℓ = 1) is the estimated probability that the label indexed by ℓ applies. There is an output for each label in ℒ. W maps the hidden representation h to a vector of label scores, and b adds a learned bias to those scores. The sigmoid function σ converts each score into a probability, with the trailing ℓ selecting the corresponding output. This output-layer b is separate from the role-specific projection bias.
The classifier minimizes binary cross-entropy, which penalizes confident wrong predictions for the individual label decisions. A softmax across labels would require them to compete for a shared probability total. The sigmoid outputs let several properties apply to the same argument in the proto-role data. They give the authors the same machinery for tasks whose annotations typically name a single category and allow the evaluation to examine particular subsets of labels.
The probe is implemented in PyTorch with AllenNLP. The authors release the data processing and probing code in jiant. For training they use batches of 32, counted as sentences for most tasks and predicates for semantic roles. The initial learning rate is 1e-4. Gradient clipping caps the L₂ norm, the Euclidean length of the gradient, at 5.0. Updates use Adam. AllenNLP · Adam
Most tasks are evaluated on validation data every 1000 training steps. Validation takes place every 100 steps for SPR1, SPR2 and the Winograd challenge. After 5 validations without improvement the learning rate is halved. Training stops after 20 validations without improvement. These updates fit the extraction machinery, including the scalar weights in the layer mixtures. The pretrained embedding and contextual layers provide their features throughout without being updated on the annotation tasks.
Experiments and results
Establish what a lexical reader can already do
Each encoder has a corresponding lexical baseline. For CoVe, the input is its 300-dimensional GloVe embedding, trained on 840 billion tokens of CommonCrawl text. The ELMo baseline receives the character-CNN output from layer 0. GPT and BERT use the learned sub-word embeddings from their own input layers. Each baseline trains a probe on the same kind of target as its contextual counterpart. It can read the word or sub-word vectors within the supplied spans, including both endpoints when the target has a pair.
The control’s strength is part of the experimental result. A phrase usually contains more than one word, and the lexical probe still has information about the words that make up that phrase. For relations the two mention spans are both available, so familiar pairs of expressions can be informative even without the rest of the sentence. In this setting, “lexical” refers to where the input features come from. Those features can support decisions about complete spans, and they contain properties learned in pretraining.
For each task, the comparison table reports micro-averaged F1 on the respective test set. This pools the binary label decisions before measuring precision, the share of predicted positives that are correct, and recall, the share of gold positives that are recovered. F1 combines those quantities. Subsets reported under a parent task are left out of the across-task macro average, so the SRL breakdown does not give SRL extra weight. The SRL results consider core and non-core roles while omitting continuation and reference labels. These details define the decisions represented by the numbers.
The main Winograd score averages five runs. On each run a random sample of 80% of the training data is drawn without replacement. The approximate 95% confidence intervals reported using a normal approximation are ±3 F1 points for Winograd and ±6 for BERT-large on that challenge. For SPR1 and SPR2 they are ±1, and for the other tasks ±0.5 or smaller. The repeated sampling makes the challenge average more informative than a single result, while the width of the intervals shows how much the pronoun test can vary.
Compare the full representations
With mixed features, GPT and ELMo are close across the suite. ELMo has a small lead on most tasks in the paper’s comparison, and GPT leads on relation classification and OntoNotes coreference. The paper gives an average advantage of 6.3 F1 points for ELMo and GPT in their comparison with CoVe. The ranking describes results from the particular pretrained encoders and feature choices. CoVe’s translation objective, recurrent architecture, corpus and lexical input differ from aspects of the other encoders at the same time.
The lexical comparison already favors ELMo and GPT over the GloVe input associated with CoVe. The paper reports average advantages of 5.4 F1 points for ELMo’s lexical representation and 2.4 for GPT’s. Winograd is the individual task that does not follow the lexical advantage over GloVe. Constituent and semantic role labeling show especially clear lexical differences. The authors suggest that the ability of characters and sub-words to capture information about word forms may contribute to this pattern. The baseline result gives that explanation a place in the comparison, while the experiment leaves the particular contribution of morphology open.
For GPT and BERT, the mix representation improves the average score by 1-3 F1 points compared with cat. When the authors use mix, BERT-base leads GPT by approximately 2 F1 points on average. Both have a 12-layer Transformer, which makes their depth similar while leaving differences in training and access to context. In the same comparison BERT-large improves on BERT-base by 1.1 F1 points and on ELMo by 2.7 F1 points on average. According to the paper, error on most tasks fell by almost 20% relative to ELMo.
The coreference results account for some of the clearest individual differences. On the OntoNotes test, BERT-large scores 7.4 F1 points above ELMo. The authors report that this corresponds to more than a 40% reduction in error. On the Winograd-style DPR test, the average improvement over ELMo is 7.8 F1 points. The authors observed runs in the mid-50s and the high-60s on that challenge. That spread is relevant to what the mean establishes about this particular encoder and its ability to support the harder pronoun decisions.
Ask which kinds of labels gain from contextual features
Constituent and dependency labeling stand out among the tasks that benefit most from context. ELMo, CoVe and GPT show this tendency when each is measured against its lexical input. These tasks ask whether a supplied phrase has a particular grammatical category or a known head–dependent pair has a particular relation. A contextual vector can help the reader distinguish these functions in the sentence, beyond the associations its lexical features give it.
For ELMo the OntoNotes test gain is +6.3 F1 for part-of-speech tags and +3.5 F1 for entity types. Those point gains are smaller than for several other tasks. The authors emphasize the strong lexical starting point and also express each improvement relative to the remaining error. On that basis the reported reductions are +66% for part-of-speech tagging and +44% for entity labeling. The comparison shows why a smaller point gain can still mean a substantial improvement for labels that are already predicted well from the supplied words.
The semantic role results can be read more precisely by looking at the role groups. In the OntoNotes test, the ELMo lexical baseline gives 74 F1 for core roles and 75 F1 for non-core roles. The gains from the contextual representation diverge from those similar starts. The authors connect the larger gain for core arguments with their close relationship to syntax. Labels involving notions such as negation, cause and purpose show a smaller gain.
ELMo gains by role group on the OntoNotes SRL test
Contextual features give the larger gain on core argument roles.
The numbers
| System or setting | F1-point gain over the lexical baseline |
|---|---|
| ELMo, non-core roles | +8.8 |
| ELMo, core roles (this paper) | +19.0 |
The proto-role data give a related comparison. The targets are still predicate–argument pairs, but the decisions concern properties such as awareness or a change of state. Across the SPR1 and SPR2 test results, the paper describes ELMo’s advantage over the lexical version as +1-5 F1. The combination of this result and the SRL breakdown supports a more specific account than the overall SRL score would. Context is very helpful to the reader assigning the main argument labels. On the attributes tested by the proto-role corpora, the contextual improvement is more limited.
SemEval relation classification is an exception to the pattern of smaller semantic gains. On its test set ELMo improves by 22 F1 points over its lexical baseline, reported as a 50% relative error reduction, and BERT-large adds another 4.6 points over ELMo. The paper gives a range of 51-58 F1 for the lexical baselines. Given only the entity mentions, the lexical probes frequently lack evidence found elsewhere in the sentence. The size of the gain raises the question of what kind of outside evidence matters. The authors test this by giving a lexical probe an unordered view of sentence words.
Measure how much of ELMo’s gain is available nearby
The local comparison adds a trainable convolution to the lexical input. It replaces the probe’s ordinary token projection with a computation over a fixed window around the position. A width of 3 gives the reader the center token and its ±1 neighbors. A width of 5 extends this to ±2. Span pooling still summarizes features at the endpoint positions. The difference is that each of those features can now incorporate directly observed lexical evidence from the corresponding short window.
The authors express the result as the share of the improvement from the lexical baseline to full ELMo that the CNN recovers. The shares below are macro averages over the tasks evaluated on their test sets. They use the same reference points, so the effect of enlarging the window can be read in the units of the original contextual gain.
Local CNN context on the test suite, macro average of ELMo gain recovered
The wider lexical window recovers more of the improvement from full ELMo.
The numbers
| System or setting | % of the lexical-to-ELMo F1 gap |
|---|---|
| CNN with width 3 | 72 |
| CNN with width 5 (this paper) | 79 |
On constituent labeling, the ±2 CNN reaches the full ELMo score. The paper reports +15.4 F1 for full ELMo over its lexical baseline on this OntoNotes test, so matching it is a meaningful result for the local control. The probe already receives the entire annotated constituent in either condition. Giving it a short neighborhood around the constituent’s words accounts for the contextual advantage measured here. The comparison leaves room for evidence from other parts of the sentence to matter on particular examples.
What the ablations show
Separate the recurrent computation from its learned weights
A contextual architecture mixes information across positions even with randomly chosen parameters. The ELMo control retains the architecture and its pretrained lexical layer, then replaces the weights above that layer with random orthonormal matrices. This replacement covers the recurrent cell weights and the projections between layers. For a rectangular matrix the smaller dimension determines the direction along which orthogonality is imposed. The probe then learns from the resulting contextual features as it does in the full-encoder condition.
This control improves on the lexical baseline. The result shows that the architecture can produce useful features from a sequence even without the contextual weights acquired in pretraining. A trained probe can take advantage of those features, and the comparison gives the authors a way to estimate how much the pretrained recurrent computation adds beyond them. They report that the learned weights explain more than 70% of the gain from full ELMo across the test suite. Their comparison concerns the weights above the lexical layer. The character encoder continues to supply learned representations to both the random and pretrained versions.
The randomized encoder and the CNN answer different questions. The randomized version preserves recurrent paths through which words at a distance can influence the endpoints. Its weights have not been selected through prediction on the training corpus. The CNN has learned weights for the labeling task and a deliberately short reach. Their results can be compared with full ELMo to investigate both the importance of what pretraining learned and the importance of access to a longer span of text.
Look for changes with the distance between endpoints
The paper finds that the ±2 CNN captures 80-90% of ELMo’s improvement for dependency labels, part-of-speech and core semantic roles in the test comparisons. A short run of words offers substantial clues to many of these decisions. On coreference, non-core semantic roles and proto-roles, the gap between the local comparisons and full ELMo is larger. The authors take that pattern as evidence that the gains on those tasks depend more on information beyond the short window. The result concerns the source of the gain as well as its size. A limited improvement on a semantic task can still be hard to reproduce using only local features.
The dependency analysis then examines a case where distance is known from the edge itself. For each example the endpoints identify a dependent and its head. The paper groups examples by the number of intervening tokens. Distance 0 denotes adjacency. The development figure also shows how many annotation targets occur at each distance, which matters because different portions of the curve are based on different amounts of evidence.
The CNN conditions and the randomized ELMo condition perform best on nearby dependencies and fall away more rapidly as spacing increases. Full ELMo’s F1 falls by 7 points from distance 0 to distance 8 on the development comparison. Its relative stability suggests that its learned features provide useful evidence about dependencies across wider stretches of text. The supplied head continues to be part of the input at every distance. The improvement concerns recovering the type of a known relation when the endpoints and their local surroundings are farther apart.
The contrast helps interpret the high average performance of the local reader. Many of the ordinary grammatical decisions in the suite are accessible through local evidence. The longer links identify a setting where the full encoder’s additional reach makes a clearer difference. Because the same dependency-labeling setup is used for nearby and distant links, the experiment can show this difference without moving to a different task or a different label inventory.
Give the lexical reader sentence-wide word cues
In the SemEval analysis the authors augment the lexical representation with a bag-of-words feature. This tells the probe about words in the sentence without encoding their order as part of that feature. For example, the word caused can point toward a Cause-Effect label even if the reader has a weak account of how the event and its consequence are arranged. The feature covers a different source of evidence from the CNN. It can pass along the presence of a word far from either supplied mention, while sacrificing information about how the sentence is organized.
On relation classification this control recovers more than 70% of the headroom between lexical inputs and full ELMo. The result places much of the gain within reach of a reader that can recognize useful words across the sentence. It does not identify which cues the full encoder actually uses or exclude more elaborate reasoning on some examples. It does establish that relying on the task’s intended meaning as an explanation for the whole gain would miss a simpler source of predictive evidence.
The same feature accounts for 20-50% of the full-encoder headroom on entity typing, depending on the encoder. The authors report smaller fractions on the other tasks. This comparison makes the relation result easier to interpret. A feature can have broad sentence access and still do relatively little for decisions that depend on ordering, local arrangement or the relationship between particular tokens. Its value on SemEval is a finding about that evaluation and the lexical cues available to the classifier there.
Check the effect of layer access and training genre
The comparison between cat and mix keeps the pretrained Transformer the same and changes which outputs the probe can read. Higher scores with mixing show that the probe benefits when it can use intermediate layers as well as the inputs and the last layer. The authors connect this with earlier evidence about layer specialization, including the idea that a final layer can become particularly oriented toward the pretraining prediction. A mixture can preserve distinctions that are easier to use elsewhere in the stack. Since the mixture uses several layers jointly, its score alone does not assign a particular label to a particular layer.
This choice also affects the cross-encoder comparison. In the earlier version of the study ELMo was judged better overall than GPT. Adding the learned GPT mixture changed the comparison to approximate parity, with differences by task. The updated experiments also add the BERT configurations and the relation classification task. The change in the GPT result makes clear that the original claim concerned a particular way of exposing pretrained features, and that changing feature access can affect a comparison while all the Transformer weights stay fixed.
Genre is a separate potential explanation for ELMo’s advantage on many tasks. The probe texts largely come from newswire and web sources, which the authors regard as closer to ELMo’s Billion Word Benchmark material than to the books used for GPT. They train a GPT clone on the Billion Word Benchmark using the original GPT code and hyper-parameters. On the probing suite, the clone improves by +0.15 F1 on average relative to GPT trained on the books and still trails ELMo by nearly 1 F1 point. Matching that training corpus changes little in this comparison. The result narrows a specific explanation for the observed gap while leaving differences in architecture and training setup in play.
Limitations
Limits the authors identify
The paper explicitly limits the evaluation to labeling with supplied spans or links. An entity classifier receives the mention it is supposed to type. A dependency classifier receives the dependent and its annotated head. A semantic role classifier has the predicate and an argument before predicting the role. The probe scores measure how well the classifier handles those decisions under those inputs. Complete systems that also propose spans, select heads or assemble reference clusters solve additional problems, so their scores are not directly comparable.
The authors also note that the encoders differ in architecture, objective, corpus size and text genre. The genre comparison changes one aspect of GPT’s pretraining input, and the ELMo controls isolate particular aspects of that encoder. The rankings of all the released encoders do not have that same degree of control. BERT-base and GPT, for example, share a reported depth, but their predictive objectives and access to surrounding text differ. The paper can describe which representations yielded better predictions without identifying a single training choice responsible for the ranking.
The frozen-encoder setting is another explicit boundary. The comparison is designed to examine features produced by pretraining before an annotation task changes the encoder. The authors note that adapting the encoder’s weights could make some information easier to access and leave that possibility for further work. The probe’s trained layer weights offer a limited way of choosing among existing activations. Fine-tuning would change the computation that produced those activations.
The discussion of the pronoun challenge also identifies a limit on the precision of the results. Balanced pairs and repeated training samples give a defined comparison, but BERT-large’s broad range of F1 values means the average is sensitive to the examples used for fitting. The result supports an improvement in the reported challenge setting. Its exact size is more uncertain than many of the comparisons on the other tests.
Limits that follow from the design
A label that a trained classifier recovers need not exist as an explicit symbol within the encoder. The probe has learned projections, pooling weights and a nonlinear readout. A dependency label could become predictable from several correlated clues without an internal variable dedicated to that relation. For the same reason, poor performance leaves open whether the relevant information is weak, distributed across locations outside the supplied spans or difficult for this particular readout to use. The experiment concerns accessibility under a specified measurement procedure.
The supplied endpoints also carry information independently of their vectors. Knowing that the second word is the head, for instance, discloses the existence and direction of a syntactic link before the probe assigns its label. Knowing which phrase is an argument changes the problem of interpreting the predicate. The lexical comparison shares these conditions and helps measure what contextual features add given the endpoints. It cannot tell how the same features would perform when the endpoints themselves had to be discovered.
The probe’s success also leaves the causal role of the recovered information open. A vector can support prediction of a phrase category after a probe has learned to read it. That observation does not establish that the encoder relies on the category to predict text or support translation. Demonstrating such reliance would require evidence about what happens to the original behavior when the relevant information is changed. The paper’s experiments use annotations as outputs of a diagnostic, rather than intervening on the linguistic information involved in the pretraining task.
A common metric lets readers compare patterns across the suite, but the candidate sets and label distributions still differ. The OntoNotes coreference test generates negatives from the annotated mentions, whereas the Winograd-style pairs come from a constructed challenge with balanced outcomes. These procedures change what a classifier is likely to encounter and how informative a given cue can be. A similar F1 in the two tests would therefore say little by itself about whether the underlying decisions were equally difficult.
Likewise, the amount of change over a baseline does not yield a pure measure of syntax or semantics. Core semantic roles can correlate strongly with grammatical function, and the bag-of-words experiment shows that even the relation task can reward fairly direct lexical cues. The empirical pattern is meaningful at the level of the tasks and controls the authors define. A broader claim about how much meaning an encoder has learned would need to describe which distinctions were required and which shortcuts remained available.
The short-window and distance comparisons have related constraints. A CNN window describes the direct access available at each endpoint, while a multiword span already gives the probe access to all the tokens inside it. A strong result with a short window therefore concerns local augmentation of a supplied span, not a universal limit on the range of useful information. In the distance plot, nearby and distant dependencies can differ in their label distribution and construction as well as their separation. The observed decline is a comparison across naturally occurring groups, instead of a manipulation that lengthens the same link in otherwise identical sentences.
Finally, the annotations come from English data with particular conventions about grammatical and semantic categories. The experiments provide no basis for assuming that the same balance of lexical, local and distant evidence carries over to another language or corpus tradition. The annotation conversion also uses an approximate correspondence across segmentations. A projected interval encloses the target positions linked by the alignment, which can include intervening material if the correspondence is imperfect. Both the corpus and the projection help determine exactly which inputs the probe receives.
What came after
Linguistic structure remained a target of probing
The citing works take up several questions made concrete by edge probing. The link between a citation and a method is specific. A paper can take up the same problem of interpreting pretrained features while placing its evidence somewhere other than a pair of supplied spans. The titles identify the directions of inquiry below. They support connections between research questions, while exact reuse of encoders, data or classifiers requires evidence about the later experiments themselves.
BERT Rediscovers the Classical NLP Pipeline connects BERT to the organization of traditional linguistic analysis. Edge probing makes that connection measurable by extracting annotation decisions at known positions, from word categories to reference links. The pipeline framing of the later work puts the relationship among stages in the foreground. The connection is especially close to the layer-access comparison here, where the amount of structure a probe recovers changes when intermediate representations become available. BERT Rediscovers the Classical NLP Pipeline
What Does BERT Learn about the Structure of Language? also puts linguistic structure at the center of a BERT-specific investigation. Its stated subject continues the question that motivates the original comparison between lexical and contextual features. The shared question is how to turn a broad claim about learning structure into a narrower observation about the structures that can be recovered. What Does BERT Learn about the Structure of Language?
A Structural Probe for Finding Syntax in Word Representations takes up the extraction of syntax from word vectors. The distinction in emphasis can be seen in the questions each title and setup identifies. Edge probing classifies the annotation attached to a supplied pair, such as the function of a dependent with respect to its head. A structural probe makes the syntax itself the object of the search in the representation. Both belong to the inquiry into what grammatical organization can be found in features computed for words. A Structural Probe for Finding Syntax in Word Representations
Linguistic Knowledge and Transferability of Contextual Representations brings transferability into the same line of inquiry. The original paper fixes the features and measures which labels a reader can extract from them. A transfer question asks how information in those representations bears on their use elsewhere. Juxtaposing these subjects helps distinguish the ability to recover an annotation from the wider question of where a representation confers an advantage. Linguistic Knowledge and Transferability of Contextual Representations
The probe became a subject of study
Designing and Interpreting Probes with Control Tasks puts the design of controls at the center of the analysis. This is closely related to the way the original paper uses matched lexical inputs, short windows and randomized recurring computation. A successful probe is an observation that calls for a comparison. Edge probing uses changes to the information source to help explain it. The later title foregrounds control tasks as another way to investigate what the probe’s performance warrants. Designing and Interpreting Probes with Control Tasks
Information-Theoretic Probing for Linguistic Structure connects the recovery of structure to an information-theoretic framing. Information-Theoretic Probing with Minimum Description Length names minimum description length as its measurement approach. These titles take up the measurement question from a different starting point than the original paper’s common F1 score. The edge-probing results describe how many annotated decisions a trained reader can recover under defined input conditions. The later works put the way accessible information is quantified at the center of probing. Information-Theoretic Probing for Linguistic Structure · Information-Theoretic Probing with Minimum Description Length
Probing Classifiers: Promises, Shortcomings, and Advances treats the family of methods as the subject of a survey. Its stated scope includes both what classifiers can establish and where their interpretation becomes difficult. Edge probing provides an example of that tension. A reader trained on frozen features returns a concrete, reproducible label decision, yet the explanation depends on the alternatives it was compared with and the information its inputs already supplied. Probing Classifiers: Promises, Shortcomings, and Advances
Factual Probing Is [MASK]: Learning vs. Learning to Recall moves the question to factual probing and draws attention to the distinction between learning and recall. The connection to edge probing is the interpretive problem posed by a trained procedure for extracting information. A correct answer involves the information source and the procedure that elicits the answer. The original study can attribute a gain more specifically when a stronger encoder beats a matched lexical or local reader. The later work’s stated focus carries the question of what the reader contributes into a different kind of test. Factual Probing Is [MASK]: Learning vs. Learning to Recall
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 1Research subjects and languages the work is about.Interpretability · 156 works
Concepts 1Key ideas and methods explained on our concept pages.Word embeddings · 30 works
Cite
Cite as Ian Tenney, Patrick Xia, Berlin Chen, Alex Wang, Adam Poliak, R Thomas McCoy, Najoung Kim, Benjamin Van Durme, Samuel R. Bowman, Dipanjan Das and Ellie Pavlick. 2019. What do you learn from context? Probing for sentence structure in contextualized word representations. arXiv:1905.06316.
@misc{tenney2019what,
title = {{What do you learn from context? Probing for sentence structure in contextualized word representations}},
author = {Ian Tenney, Patrick Xia, Berlin Chen, Alex Wang, Adam Poliak, R Thomas McCoy, Najoung Kim, Benjamin {Van Durme}, Samuel R. Bowman, Dipanjan Das and Ellie Pavlick},
year = {2019},
doi = {10.48550/arxiv.1905.06316},
eprint = {1905.06316},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1905.06316}
}References
- Yossi Adi, Einat Kermany, Yonatan Belinkov, Ofer Lavi, and Yoav Goldberg. Fine-grained analysis of sentence embeddings using auxiliary prediction tasks. In Proceedings of ICLR, 2017. our card
- Yonatan Belinkov. On internal language representations in deep learning: An analysis of machine translation and speech recognition. PhD thesis, Massachusetts Institute of Technology, 2018. OpenAlex ↗ · Scholar ↗
- Yonatan Belinkov, Nadir Durrani, Fahim Dalvi, Hassan Sajjad, and James Glass. What do neural machine translation models learn about morphology? In Proceedings of EMNLP, 2017a. our card
- Yonatan Belinkov, Lluís Màrquez, Hassan Sajjad, Nadir Durrani, Fahim Dalvi, and James Glass. Evaluating layers of representation in neural machine translation on part-of-speech and semantic tagging tasks. In Proceedings of IJCNLP, 2017b. our card
- Terra Blevins, Omer Levy, and Luke Zettlemoyer. Deep RNNs encode soft hierarchical syntax. In Proceedings of ACL, 2018. our card
- Ondřej Bojar, Christian Buck, Rajen Chatterjee, Christian Federmann, Yvette Graham, Barry Haddow, Matthias Huck, Antonio Jimeno Yepes, Philipp Koehn, and Julia Kreutzer (eds.). Proceedings of the Second Conference on Machine Translation. 2017. OpenAlex ↗ · Scholar ↗
- Ciprian Chelba, Tomas Mikolov, Mike Schuster, Qi Ge, Thorsten Brants, Phillipp Koehn, and Tony Robinson. One billion word benchmark for measuring progress in statistical language modeling. In Proceedings of Interspeech, 2014. our card
- Alexis Conneau and Douwe Kiela. SentEval: An evaluation toolkit for universal sentence representations. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation, 2018. our card
- Alexis Conneau, Douwe Kiela, Holger Schwenk, Loïc Barrault, and Antoine Bordes. Supervised learning of universal sentence representations from natural language inference data. In Proceedings of EMNLP, 2017. our card
- Alexis Conneau, Germán Kruszewski, Guillaume Lample, Loïc Barrault, and Marco Baroni. What you can cram into a single $&#* vector: Probing sentence embeddings for linguistic properties. In Proceedings of ACL, 2018. our card
- Ishita Dasgupta, Demi Guo, Andreas Stuhlmüller, Samuel J Gershman, and Noah D Goodman. Evaluating compositionality in sentence embeddings. arXiv preprint 1802.04302, 2018. OpenAlex ↗ · Scholar ↗
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint 1810.04805, 2018. our card
- Allyson Ettinger, Ahmed Elgohary, Colin Phillips, and Philip Resnik. Assessing composition in sentence vector representations. In Proceedings of COLING, 2018. OpenAlex ↗ · Scholar ↗
- Matt Gardner, Joel Grus, Mark Neumann, Oyvind Tafjord, Pradeep Dasigi, Nelson F Liu, Matthew Peters, Michael Schmitz, and Luke Zettlemoyer. AllenNLP: A deep semantic natural language processing platform. In Proceedings of Workshop for NLP Open Source Software (NLP-OSS), 2018. our card
- Daniel Gildea and Martha Palmer. The necessity of parsing for predicate argument recognition. In Proceedings of ACL, 2002. our card
- Kristina Gulordava, Piotr Bojanowski, Edouard Grave, Tal Linzen, and Marco Baroni. Colorless green recurrent networks dream hierarchically. In Proceedings of NAACL, 2018. our card
- Luheng He, Kenton Lee, Omer Levy, and Luke Zettlemoyer. Jointly predicting predicates and arguments in neural semantic role labeling. In Proceedings of ACL, 2018. our card
- Iris Hendrickx, Su Nam Kim, Zornitsa Kozareva, Preslav Nakov, Diarmuid Ó Séaghdha, Sebastian Padó, Marco Pennacchiotti, Lorenza Romano, and Stan Szpakowicz. SemEval-2010 task 8: Multi-way classification of semantic relations between pairs of nominals. In Proceedings of the Workshop on Semantic Evaluations: Recent Achievements and Future Directions, 2009. our card
- Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 1997. OpenAlex ↗ · Scholar ↗
- Jeremy Howard and Sebastian Ruder. Universal language model fine-tuning for text classification. In Proceedings of ACL, 2018. OpenAlex ↗ · Scholar ↗
- Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of ICLR, 2015. our card
- Ryan Kiros, Yukun Zhu, Ruslan R. Salakhutdinov, Richard Zemel, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Skip-thought vectors. In Proceedings of NIPS, 2015. OpenAlex ↗ · Scholar ↗
- Nikita Kitaev and Dan Klein. Constituency parsing with a self-attentive encoder. In Proceedings of ACL, July 2018. our card
- Adhiguna Kuncoro, Chris Dyer, John Hale, Dani Yogatama, Stephen Clark, and Phil Blunsom. LSTMs can learn syntax-sensitive dependencies well, but modeling structure makes them better. In Proceedings of ACL, 2018. our card
- Kenton Lee, Luheng He, Mike Lewis, and Luke Zettlemoyer. End-to-end neural coreference resolution. In Proceedings of EMNLP, 2017. our card
- Kenton Lee, Luheng He, and Luke Zettlemoyer. Higher-order coreference resolution with coarse-to-fine inference. In Proceedings of NAACL, 2018. our card
- Hector J. Levesque, Ernest Davis, and Leora Morgenstern. The winograd schema challenge. In Proceedings of the Thirteenth International Conference on Principles of Knowledge Representation and Reasoning, 2012. OpenAlex ↗ · Scholar ↗
- Tal Linzen, Emmanuel Dupoux, and Yoav Goldberg. Assessing the ability of LSTMs to learn syntax-sensitive dependencies. Transactions of the ACL, 2016. our card
- Rebecca Marvin and Tal Linzen. Targeted syntactic evaluation of language models. In Proceedings of EMNLP, 2018. OpenAlex ↗ · Scholar ↗
- Bryan McCann, James Bradbury, Caiming Xiong, and Richard Socher. Learned in translation: Contextualized word vectors. In Proceedings of NIPS, 2017. our card
- Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S. Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Proceedings of NIPS, 2013. our card
- Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in PyTorch. In Proceedings of NIPS, 2017. OpenAlex ↗ · Scholar ↗
- Jeffrey Pennington, Richard Socher, and Christopher Manning. GloVe: Global vectors for word representation. In Proceedings of EMNLP, 2014. our card
- Matthew Peters, Mark Neumann, Mohit Iyyer, Matt Gardner, Christopher Clark, Kenton Lee, and Luke Zettlemoyer. Deep contextualized word representations. In Proceedings of NAACL, 2018a. our card
- Matthew Peters, Mark Neumann, Luke Zettlemoyer, and Wen-tau Yih. Dissecting contextual word embeddings: Architecture and representation. In Proceedings of EMNLP, 2018b. our card
- Adam Poliak, Yonatan Belinkov, James Glass, and Benjamin Van Durme. On the evaluation of semantic phenomena in neural machine translation using natural language inference. In Proceedings of NAACL, 2018a. OpenAlex ↗ · Scholar ↗
- Adam Poliak, Aparajita Haldar, Rachel Rudinger, J. Edward Hu, Ellie Pavlick, Aaron Steven White, and Benjamin Van Durme. Collecting diverse natural language inference problems for sentence representation evaluation. In Proceedings of EMNLP, 2018b. our card
- Vasin Punyakanok, Dan Roth, and Wen-tau Yih. The importance of syntactic parsing and inference in semantic role labeling. Computational Linguistics, 340 (2):0 257–287, 2008. our card
- Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. Improving language understanding by generative pre-training. https://blog.openai.com/language-unsupervised, 2018. OpenAlex ↗ · Scholar ↗
- Altaf Rahman and Vincent Ng. Resolving complex cases of definite pronouns: The Winograd schema challenge. In Proceedings of EMNLP, 2012. our card
- Rachel Rudinger, Adam Teichert, Ryan Culkin, Sheng Zhang, and Benjamin Van Durme. Neural Davidsonian semantic proto-role labeling. In Proceedings of EMNLP, 2018. OpenAlex ↗ · Scholar ↗
- Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. In Proceedings of ACL, 2016. our card
- Xing Shi, Inkit Padhi, and Kevin Knight. Does string-based neural MT learn source syntax? In Proceedings of EMNLP, 2016. our card
- Natalia Silveira, Timothy Dozat, Marie-Catherine de Marneffe, Samuel Bowman, Miriam Connor, John Bauer, and Christopher D. Manning. A gold standard dependency corpus for English. In Proceedings of the Ninth International Conference on Language Resources and Evaluation, 2014. our card
- Emma Strubell, Patrick Verga, Daniel Andor, David Weiss, and Andrew McCallum. Linguistically-informed self-attention for semantic role labeling. In Proceedings of EMNLP, 2018. our card
- Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. Sequence to sequence learning with neural networks. In Proceedings of NIPS, 2014. our card
- Adam Teichert, Adam Poliak, Benjamin Van Durme, and Matthew Gormley. Semantic proto-role labeling. In Proceedings of AAAI, 2017. OpenAlex ↗ · Scholar ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Proceedings of NIPS, 2017. our card
- Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, 2018. our card
- Ralph Weischedel, Martha Palmer, Mitchell Marcus, Eduard Hovy, Sameer Pradhan, Lance Ramshaw, Nianwen Xue, Ann Taylor, Jeff Kaufman, Michelle Franchini, et al. OntoNotes release 5.0 LDC2013T19. Linguistic Data Consortium, Philadelphia, PA, 2013. OpenAlex ↗ · Scholar ↗
- Aaron Steven White, Pushpendre Rastogi, Kevin Duh, and Benjamin Van Durme. Inference is everything: Recasting semantic resources into a unified evaluation framework. In Proceedings of IJCNLP, 2017. our card
- Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, et al. Google's neural machine translation system: Bridging the gap between human and machine translation. arXiv preprint 1609.08144, 2016. OpenAlex ↗ · Scholar ↗
- Kelly Zhang and Samuel Bowman. Language modeling teaches you more than translation does: Lessons learned through auxiliary syntactic task analysis. In Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP, 2018. OpenAlex ↗ · Scholar ↗
- Yukun Zhu, Ryan Kiros, Rich Zemel, Ruslan Salakhutdinov, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of ICCV, 2015. our card
This page in Markdown https://md.research.elamur.ai/free/en/papers/tenney-2019-learn-context-probing-sentence-structure/