---
title: "Probing Linguistic Features of Sentence-Level Representations in"
description: "How linguistic probes reveal what sentence encoders retain for relation extraction, and why better probe scores need not mean better extraction."
canonical: "https://research.elamur.ai/free/en/papers/alt-2020-probing-linguistic-features-sentence-level/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/alt-2020-probing-linguistic-features-sentence-level/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / Probing Linguistic Features of Sentence-Level Representations in Neural Relation Extraction

# Probing Linguistic Features of Sentence-Level Representations in Neural Relation Extraction

Paper · 2020 · Christoph Alt, Aleksandra Gabryszak and Leonhard Hennig

**Authors:** [Christoph Alt](https://md.research.elamur.ai/free/en/authors/christoph-alt/), [Aleksandra Gabryszak](https://md.research.elamur.ai/free/en/authors/aleksandra-gabryszak/) and [Leonhard Hennig](https://md.research.elamur.ai/free/en/authors/leonhard-hennig/) · **Year:** 2020 · **Venue:** Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2020.acl-main.140/)
- [PDF](https://aclanthology.org/2020.acl-main.140.pdf)
- [DOI 10.18653/v1/2020.acl-main.140](https://doi.org/10.18653/v1/2020.acl-main.140)

## What it is about

How linguistic probes reveal what sentence encoders retain for relation extraction, and why better probe scores need not mean better extraction. · about 32 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [The problem and its context](#dd-the-problem-and-its-context)
3. [The method, step by step](#dd-the-method-step-by-step)
4. [Experiments and results](#dd-experiments-and-results)
5. [What the ablations show](#dd-what-the-ablations-show)
6. [Limitations](#dd-limitations)
7. [What came after](#dd-what-came-after)

### Summary

A system can identify a relationship in a sentence without making clear which linguistic clues led to its answer. It might recognize the types of the entities, follow a grammatical connection between them, or rely heavily on familiar names and nearby words. This paper investigates that uncertainty in neural [relation extraction](https://md.research.elamur.ai/free/en/topics/information-extraction/): the task of assigning a relationship to a designated pair of mentions in text. The authors examine the sentence representations produced during extraction and ask what information remains accessible within them. Their central contribution is a collection of 14 diagnostic tasks tailored to this setting, together with a comparison of more than 40 combinations of encoder architecture and supporting linguistic information.

The experimental procedure separates learning to extract relations from measuring the resulting representations. An encoder first learns its sentence representation through supervised relation classification. The authors then freeze it and train separate, simple classifiers to recover properties such as the entities’ types, the distance between them, the grammatical roles they occupy, and the parts of speech surrounding them. These classifiers receive the sentence representation alone. Their accuracy therefore measures how readily each tested property can be recovered from that representation, rather than how well it can be predicted directly from the original words.

The results show recognizable effects of architectural design. Convolutional and bidirectional recurrent encoders tend to preserve information about local context and argument position. A graph-based encoder, which processes a pruned dependency structure, is comparatively effective at retaining information about the grammatical connection between the arguments. Contextual word representations from ELMo or BERT generally improve relation extraction and make entity-related information more accessible. Yet the results also reveal important mismatches: self-attention can perform strongly at extracting relations while doing poorly on many probes, and replacing entity names with typed placeholders can improve extraction while reducing the recoverability of entity types.

On TACRED, the strongest tested configuration combines self-attention, cased BERT representations, and entity masking, reaching micro-averaged F1 of 66.9. On SemEval, the best configuration combines a convolutional encoder with uncased BERT representations and reaches macro-averaged F1 of 86.3. These results support the usefulness of contextual input and expose the influence of architectural choices, but they do not establish that a high probing score identifies information responsible for a prediction. The paper’s most consequential finding is the separation between successful relation extraction and successful recovery of familiar linguistic properties: the probes describe accessible information, while leaving open how that information contributes to the final decision.

### The problem and its context

#### A relation label hides the route to the answer

Relation extraction starts with a sentence and a designated pair of mentions. The goal is to decide which relationship, if any, the sentence expresses between them. The paper discusses categories involving people and organizations, including a spouse relationship, an organization’s founder, and a subsidiary relationship. In its illustrated TACRED example, the target relationship connects Aerolineas and Austral.

The designated pair matters. A sentence can contain several entities, and the same words can support different questions depending on which pair is selected. An encoder must therefore represent more than the sentence in isolation. It must construct a representation conditioned on the mentions whose relationship is being classified.

The common architecture examined in the paper compresses that input into a fixed-size vector. A classification layer then uses the vector to select a relation label. This arrangement creates a useful place to investigate what the extraction system has learned: the vector sits between the linguistic input and the final answer. Whatever the classifier can use must be available through that intermediate representation.

A correct relation label, however, reveals little about the representation’s contents. The prediction may depend on the entity categories, an expression near an argument, or a connection in the sentence’s grammatical structure. Different encoders can arrive at the same label while preserving different information. Conversely, an encoder can retain a linguistic property that its relation classifier does not use effectively.

The authors want to make these distinctions visible. They ask which established linguistic clues survive in learned sentence representations, how architecture shapes those clues, and what happens when additional linguistic information enters through the input. Their study concerns the contents of the representation as well as extraction performance.

#### Earlier feature engineering supplies the questions

The paper draws its diagnostic targets from earlier work on relation extraction. That literature had already identified useful information about argument types, token distances, grammatical structure, and local context. The authors use this history to choose questions that are relevant to the downstream task.

For example, an argument’s entity type constrains the relationships it can plausibly participate in. A person and an organization permit a different range of relation labels from a person and a date. Recovering entity types from the sentence vector therefore tests whether a familiar source of semantic constraint remains available after encoding.

Earlier approaches also used grammatical connections between arguments. The paper cites [work on shortest dependency paths](https://md.research.elamur.ai/free/en/papers/bunescu-2005-shortest-path-dependency-kernel-relation/) as part of this background. In a dependency representation, words connect through grammatical relationships rather than merely through their order in the sentence. The path joining the arguments can isolate a structural connection that spans intervening material.

Other useful clues are closer to the surface. The distance between mentions can characterize their arrangement. A nearby noun or possessive construction can help indicate the relationship. Earlier [work combining linguistic knowledge for relation extraction](https://md.research.elamur.ai/free/en/papers/zhou-2005-exploring-various-knowledge-relation-extraction/) motivates examining this range of information rather than restricting the analysis to a single grammatical property.

The authors’ question is whether neural encoders preserve these known clues when learning from relation labels. The existence of useful handcrafted features does not establish that a learned representation contains them. It also does not establish that all architectures preserve them equally well.

#### Diagnostic classifiers offer an indirect measurement

The paper uses probing, a method associated with [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/), to investigate this problem. A probing classifier receives a representation generated by another trained system and tries to predict a particular property of the original input. Its prediction target is chosen by the researcher.

Earlier probing studies, as the paper describes them, examined representations learned for translation, language prediction, and general sentence encoding. [Fine-grained analysis using auxiliary prediction tasks](https://md.research.elamur.ai/free/en/papers/adi-2016-fine-grained-analysis-sentence-embeddings/) supplied tests involving sentence length and word order. [Conneau and colleagues’ sentence-embedding study](https://md.research.elamur.ai/free/en/papers/conneau-2018-what-you-can-cram-into/) broadened this approach to several linguistic properties and encoder types.

Those general sentence tests provide a starting point, but relation extraction changes the object being studied. A general sentence representation need not distinguish a designated head argument from a designated tail argument. A representation trained for relation extraction must receive those argument identities as part of its input.

The authors therefore adapt the probing framework to an argument-conditioned setting. Some diagnostics retain general sentence properties, such as length and tree depth. Others ask explicitly about the selected mentions: their types, positions, surroundings, and grammatical functions. This produces a closer match between the measurement and the task that trained the encoder.

The resulting probes still measure information indirectly. If a classifier can recover an entity type from the vector, the type is accessible through the chosen classifier. That observation is informative, but it does not by itself identify the route taken by the relation classifier. This distinction becomes especially important when the experimental rankings disagree.

#### Architecture and added information are separate influences

The study treats architecture as a source of preference in what an encoder learns. A convolutional encoder searches for patterns within windows of nearby tokens. A recurrent encoder processes ordered context. A graph encoder follows connections supplied by a dependency structure. Self-attention constructs token representations through learned interactions across the input.

These mechanisms give the encoders different routes to useful evidence. The authors ask whether those differences become visible in the diagnostic results. A local pattern detector might preserve nearby part-of-speech information, while an encoder built around dependency connections might preserve more about the path joining the arguments.

The paper also studies supporting information supplied at the input. One intervention replaces entity mentions with placeholders containing their type and argument role. Another supplies contextual word representations, whose value depends on the surrounding sentence rather than only on the word itself.

These interventions raise different questions. Entity masking restricts access to particular names while making type and role information explicit. Contextual representations enrich token inputs with information learned before relation-extraction training. The study compares both interventions across architectures to examine how the final sentence vector changes.

The paper’s contribution is therefore an experimental framework for studying familiar extraction systems. Its aim is to make architectural preferences and input choices visible through a common set of linguistic measurements.

### The method, step by step

#### Learn the task before inspecting the representation

The procedure begins with supervised relation extraction. Each training example supplies a tokenized sentence, the spans of the designated arguments, and a relation label. The encoder converts the argument-conditioned input into a sentence vector, and a classification layer predicts the label.

After training, the authors hold the encoder fixed. They run sentences through it and collect the resulting vectors. A separate classifier is then fitted for each probing task, using the corresponding linguistic property as its target.

From relation training to linguistic diagnostics The steps in order.

Freezing the encoder is essential to the interpretation. During probing, the sentence representation cannot change to make the diagnostic easier. The new classifier must work with information already present after relation training.

The diagnostic classifier receives a single sentence vector. It does not receive the original sentence, the individual token vectors, or a second representation containing the answer. This restriction focuses the analysis on what the fixed-size representation preserves.

The authors use logistic regression for the binary and multiclass probes. They select the strength of its regularization through a validation-set grid search. This gives each diagnostic a relatively simple prediction mechanism and keeps the probing procedure consistent across encoders.

The approach asks about accessible information under that measurement procedure. A successful probe demonstrates that the sentence vector supports prediction of its target. A poor result means that the chosen classifier does not reliably recover the target; it does not settle whether a more complex decoder could recover it.

#### Represent both words and argument positions

The input consists of a sentence together with spans identifying the head and tail mentions. Here, “head” and “tail” name the designated relation arguments. They should not be confused with the grammatical head of a dependency connection, which appears later in the grammatical-role probes.

The paper writes the token sequence as:

```
{wₜ}ₜ₌₁,…,T
```

Here, wₜ is the token at position t, and T is the sentence’s token count. The index t runs over the sentence in order. The argument spans identify the beginning and end of the head mention and the tail mention within this sequence.

Every architecture receives positional information relative to the arguments. For each token, the authors construct an embedding representing its offset from the head and another representing its offset from the tail. These are joined to the word representation:

```
eᵢ = [eᵢʷ, pᵢʰ, pᵢᵗ]
```

Here, eᵢ is the complete input representation for token i. The component eᵢʷ represents the word, pᵢʰ represents its relative position with respect to the head argument, and pᵢᵗ represents its relative position with respect to the tail argument. The brackets indicate concatenation: the components occupy adjoining portions of the input vector.

The word component has dimension d, while each positional component has dimension c in the paper’s notation. In the implemented settings, the positional embeddings have 30 dimensions on TACRED and 50 dimensions on SemEval. These offsets let the same sentence be encoded differently when a different argument pair is designated.

This is also why a position-related probe is meaningful even when position enters explicitly. The probe tests whether that information remains recoverable after the encoder transforms the input into a sentence vector. Receiving a feature and retaining it in the final representation are distinct events.

#### Compare several ways of compressing the sentence

The convolutional encoder follows earlier [convolutional relation-classification work](https://md.research.elamur.ai/free/en/papers/zeng-2014-relation-classification-convolutional-deep-neural/) and the [relation-extraction study by Nguyen and Grishman](https://md.research.elamur.ai/free/en/papers/nguyen-2015-relation-extraction-perspective-convolutional-neural/). Filters inspect windows of the input sequence and produce feature maps. A maximum-pooling operation selects the strongest activation across sentence positions for each feature.

This produces a fixed-size vector even when sentences have different lengths. The construction emphasizes whether a useful pattern occurs somewhere in the sentence. Because filters inspect local windows, it also gives the architecture a direct way to represent short contexts near the arguments.

The bidirectional recurrent encoder uses long short-term memory processing in both sentence directions. At each token, it joins a forward state and a backward state:

```
hₜ = [hₜᶠ, hₜᵇ]
```

Here, hₜ is the combined hidden representation at position t. The component hₜᶠ comes from the forward recurrence, and hₜᵇ comes from the backward recurrence. The superscripts distinguish direction rather than powers, and the brackets again indicate concatenation.

The authors apply maximum pooling across the resulting sequence of hidden states. They report that this worked better than using the final hidden state in their preliminary comparison. The recurrent architecture therefore contributes contextual token states, while pooling performs the final compression.

The graph encoder follows [work on graph convolution over pruned dependency structures](https://md.research.elamur.ai/free/en/papers/zhang-2018-graph-convolution-over-pruned-dependency/), using the general approach of [graph convolutional networks](https://md.research.elamur.ai/free/en/papers/kipf-2016-semi-supervised-classification-graph-convolutional/). Each token becomes a node, and dependency connections provide edges. A dependency analysis thus determines which tokens exchange information directly.

The graph is pruned around the shortest path connecting the arguments. The appendix specifies path-centered pruning with K=1. This restricts processing to a focused portion of the sentence structure, including material near the connecting path.

A stack of graph-convolution layers lets token states incorporate information from progressively more distant graph neighbors. The authors construct the sentence representation through maximum pooling and also pool over the tokens belonging to each argument span. This supplies both a broader graph summary and argument-specific summaries.

The self-attentive encoder follows the architectural principle introduced in [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/). Its layers construct token representations using weighted combinations of projected input values. The weights depend on scaled, normalized comparisons between projected queries and keys, repeated across attention heads.

The paper describes these query, key, and value operations in prose instead of supplying a separate attention equation. Its important architectural choice here is how the sequence becomes a sentence vector: it takes the representation at the final token position from the final layer. Unlike the convolutional and recurrent encoders, this version does not use maximum pooling for that step.

These implementations therefore differ in both information processing and final aggregation. The comparison concerns complete encoder designs. It cannot attribute every observed difference solely to convolution, recurrence, graph structure, or attention in isolation.

#### Change what the encoder receives

The simplest word inputs are 300-dimensional [GloVe embeddings](https://md.research.elamur.ai/free/en/concepts/glove/). These provide pretrained [word representations](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) for the sentence tokens. The study then compares contextual alternatives and a separate masking intervention.

ELMo supplies context-dependent representations through a pretrained bidirectional recurrent network. The paper describes its forward and backward components as separately conditioned on the preceding and following contexts. Its token representation joins those directional components:

```
hᵢ = [hᵢᶠ, hᵢᵇ]
```

Here, hᵢ is the contextual representation of token i. The forward component hᵢᶠ depends on the earlier context, while the backward component hᵢᵇ depends on the later context. The brackets join the components into the representation passed onward. This resembles the bidirectional state notation above, but here it describes the pretrained contextual input rather than the relation encoder’s own hidden state.

In the ELMo configurations, these contextual representations are used together with GloVe embeddings. The paper links this input choice to [Deep Contextualized Word Representations](https://md.research.elamur.ai/free/en/papers/peters-2018-deep-contextualized-word-representations/).

The BERT configurations instead use the computed BERT representations as their word inputs. [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) uses word-piece input and a self-attentive architecture. As described by the authors, its masked prediction training allows a token representation to depend jointly on the context before and after it.

The study includes both cased and uncased BERT variants. This permits a comparison involving capitalization, although it remains a comparison of the resulting input representations rather than a direct intervention on individual capital letters.

Entity masking changes another part of the input. Each entity mention is replaced with a placeholder that combines its entity type and its argument role. The role distinguishes subject from object in the masking scheme. The grammatical-role probes, in contrast, use dependency labels and therefore ask a more detailed question.

The purpose of masking is to reduce access to specific names. An encoder can no longer rely on the original entity spelling in the same way. The authors suggest that this can discourage memorization and increase attention to the context expressing the relationship.

Masking does not remove every trace of entity information. The replacement explicitly includes an entity category. A central experimental question is therefore what happens to the recoverability of types when their input representation changes from natural mentions to typed placeholders.

#### Build the surface diagnostics

The first group of probes concerns relatively direct properties of the sentence and argument arrangement.

SentLen predicts a sentence-length category. The authors partition sentence lengths into approximately balanced bins instead of asking for an exact token count. TACRED uses 10 bins, and SemEval uses 7. The classifier must identify which category contains the sentence.

ArgDist similarly predicts a category for the token distance between the arguments. It uses 10 bins on TACRED and 5 on SemEval. Binning makes distance a multiclass prediction target while avoiding an excessively sparse set of exact distances.

EntExist asks whether a named entity occurs between the arguments. It is a binary classification task. Its target concerns the inner context of the designated pair, so success requires the sentence vector to retain information about material in that region.

These probes should not be read as a list of equally desirable abilities. Sentence length may be easy to recover but largely irrelevant to the relation label. The value of the diagnostic lies in revealing what survives encoding, including information that the downstream task may have little reason to preserve.

#### Build the structural and local-context diagnostics

The structural probes use [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/) information and argument order.

TreeDepth predicts a category corresponding to the greatest depth in the sentence’s dependency tree. The authors use 10 categories for TACRED and 7 for SemEval, with depth values extending from 1 to 15. The bins are chosen to distribute training examples approximately evenly.

SDPTreeDepth narrows the question to the structure connecting the arguments through their shortest dependency path. It uses 6 categories on TACRED and 4 on SemEval. The reduced category sets reflect the shallower structures associated with these argument connections.

ArgOrd asks whether the designated head argument appears before the tail in the sentence. This distinguishes relation direction from textual order. In an acquisition statement, for instance, the acquiring company can appear before the acquired company in a direct verbal construction, while a nominal construction can place them in the opposite order.

The next diagnostics target [part-of-speech information](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) immediately around the mentions. Separate probes predict the tag to the left and right of the head and to the left and right of the tail.

The paper calls these PosHeadL, PosHeadR, PosTailL, and PosTailR. They test whether the sentence vector preserves very local context at designated positions. A title word or a possessive expression near a person’s name can be informative for relation classification, so these questions connect local grammatical categories to extraction practice.

These tasks differ from asking whether an encoder generally represents grammatical structure. They inspect particular positions selected by the argument spans. An architecture can therefore perform well by preserving local evidence without retaining a detailed account of the whole sentence.

#### Build the argument diagnostics

TypeHead and TypeTail predict the entity categories assigned to the designated mentions. These categories constrain the relation inventory and are a direct test of whether the sentence representation preserves information about what the arguments denote.

The remaining probes, GRHead and GRTail, predict the arguments’ grammatical roles. The authors derive each target from the dependency label joining the argument to its grammatical head. The distinguished labels are nsubj, nsubjpass, dobj, and iobj; other labels share an other category.

This is a deliberately limited grammatical inventory. It emphasizes subject and object functions while combining many other constructions. The authors explicitly mention possessive modifiers, compounds, and appositional structures as additional relationships that could matter for extraction.

The combination of general sentence tests and argument-specific tests makes the diagnostic collection broader than a single measure of syntax. It examines surface arrangement, local context, structural information, entity categories, and grammatical functions within a shared probing procedure.

#### Prepare annotations and train consistently

For TACRED, the authors retain the dataset’s established training, validation, and test partitions. They use its supplied named-entity labels, part-of-speech tags, and dependency analyses to construct diagnostic targets.

For SemEval, they keep the test set and reserve 10% of the original training material for validation. They obtain the linguistic analyses with the Stanford Parser, using version 2018-10-05. The distinction matters because the probing labels depend on these annotations.

The relation-extraction training settings vary by architecture and dataset. TACRED uses batch size 50, while SemEval uses 30. Unless another setting is specified, masked and unmasked versions share hyper-parameters.

The convolutional setup on TACRED uses Adagrad, beginning at learning rate 0.1 and training for 50 epochs. Its non-BERT version uses 500 filters with widths [2, 3, 4, 5]. BERT configurations use 200 filters and begin at learning rate 0.01. On SemEval, the convolutional setup uses Adadelta, learning rate 1, and 150 filters.

The recurrent setup uses stacked bidirectional layers. On TACRED, each direction has hidden dimension 500; on SemEval, the corresponding dimension is 300. The TACRED recurrent training runs for 30 epochs, with an initial learning rate of 0.01.

The graph setup uses SGD with initial learning rate 0.3. TACRED has two graph-convolution layers of dimension 200, followed by feedforward processing; SemEval uses a single graph-convolution layer of dimension 200.

For self-attention, hyper-parameter tuning selected 8 layers with 8 attention heads per layer. Keys and values have dimension 256, and the feedforward component has dimension 512. Training uses Adam with initial learning rate 10 −4. Across the implementations, dropout and learning-rate schedules provide additional regularization and optimization control.

The authors release their extraction framework as RelEx, built using [AllenNLP](https://md.research.elamur.ai/free/en/papers/gardner-2018-allennlp-deep-semantic-natural-language/). They also release REval, which extends [SentEval](https://md.research.elamur.ai/free/en/papers/conneau-2018-senteval-evaluation-toolkit-universal-sentence/) with the relation-specific probing tasks.

### Experiments and results

#### Two datasets create different extraction problems

TACRED contains 106,264 examples and 42 relation labels. Its negative examples constitute 79.5% of the data. The sentence pairs concern person- and organization-oriented relationships, with a no-relation category for cases lacking an annotated target relation.

The dataset provides typed arguments. Subject mentions fall into person and organization categories, while objects use 16 more detailed categories, including categories for dates, locations, and titles. This makes entity-type diagnostics closely connected to information available in the extraction setting.

The paper reports TACRED extraction performance using micro-averaged F1. Precision and recall are also reported in the appendix. These extraction measurements differ from probing accuracy: the relation classifier predicts relationships, while each probe predicts its own linguistic target.

[SemEval’s relation-classification benchmark](https://md.research.elamur.ai/free/en/papers/hendrickx-2010-semeval-2010-task-8-multi/) contains 10,717 examples overall, comprising 8,000 training sentences and 2,717 test sentences before the validation reservation. Its inventory contains 9 directional semantic relation categories and an undirected Other category, giving 19 labels.

Its designated arguments are nominals rather than the typed person and organization mentions central to TACRED. Examples of relation categories include Cause-Effect and Entity-Origin. Negative examples account for 17.4% of the dataset.

For SemEval, the paper follows the benchmark’s macro-averaged F1 convention, with directionality included. The authors report mean extraction performance over 5 random initializations because the dataset is small.

These differences prevent a simple reading of the datasets as interchangeable replications. They differ in size, label balance, argument types, and scoring convention. A configuration’s success on one does not automatically predict its relative standing on the other.

The diagnostic inventory also changes slightly. The authors omit ArgOrd and EntExist from SemEval. Its argument arrangement makes the ordering question unsuitable in the same form, and intervening named entities recognized by standard tools do not align with the dataset’s nominal relation setting.

#### Baselines distinguish learned information from easy cues

The probing experiments include several deliberately simple baselines. Majority vote always chooses the most frequent target class. This establishes how much accuracy can arise from label imbalance alone.

A length-based linear classifier receives sentence length as its only feature. A distance-based linear classifier receives only the distance between the arguments. These baselines reveal whether a target can be predicted from a simple scalar cue.

The bag-of-embeddings baseline sums the word embeddings in the sentence. It has access to lexical content without the structured sentence processing supplied by the learned encoders.

The dedicated scalar baselines reach 100.0 accuracy on the targets they directly encode. This is expected: the length classifier receives the information needed for SentLen, and the distance classifier receives the information needed for ArgDist.

More revealing is the bag-of-embeddings baseline’s performance. On TACRED, its SentLen accuracy is 54.7, and its ArgOrd accuracy is 97.3. It also improves over the simpler baselines on several entity and part-of-speech targets.

These outcomes make the baseline comparison necessary. A sentence vector can support a diagnostic through correlations in lexical content, even without the architecture a reader might associate with the linguistic property. High accuracy therefore needs to be interpreted against the alternatives, rather than treated as self-explanatory evidence of structural understanding.

#### TACRED extraction improves with contextual input and masking

The unaugmented encoders occupy a relatively narrow range on TACRED. The recurrent encoder reaches F1 of 55.3, the convolutional encoder 55.9, the graph encoder 57.4, and self-attention 57.6.

Contextual representations improve these systems. Without masking, ELMo brings self-attention to 64.7 F1. The corresponding convolutional, recurrent, and graph configurations reach 58.8, 61.8, and 62.1 respectively.

Masking also improves the basic configurations. With typed argument placeholders, the convolutional encoder reaches 59.5, the recurrent encoder 62.9, the graph encoder 63.7, and self-attention 65.9. The paper connects much of this improvement to stronger recall.

The best reported TACRED setting combines masking, self-attention, and cased BERT representations. Its micro-averaged F1 is 66.9.

TACRED test relation extraction, micro-averaged F1 Contextual input and entity masking improve extraction beyond the unaugmented encoders.

**The numbers**

| System or setting | F1 |
| --- | --- |
| Bag of embeddings | 39.4 |
| Bi-LSTM | 55.3 |
| CNN | 55.9 |
| GCN | 57.4 |
| Self-attention | 57.6 |
| Self-attention with ELMo | 64.7 |
| Self-attention with masking | 65.9 |
| Self-attention with cased BERT and masking (this paper) | 66.9 |

The appendix’s precision and recall figures help interpret masking. For the convolutional encoder, the unmasked setting has precision 72.3 and recall 45.5. Masking changes these to precision 67.2 and recall 53.4.

That pattern is compatible with the authors’ explanation that access to names encourages overly specific decisions. Restricting those names allows the system to recover more positive cases, even though precision can decline. The experiment establishes the performance change; memorization remains the authors’ explanation for it.

The strongest TACRED setting has precision 69.2 and recall 64.7. Its F1 advantage therefore reflects the combined behavior of both components, rather than a claim that it is best on every reported metric.

#### SemEval favors a different configuration

On SemEval, the unaugmented encoders again perform similarly. The convolutional and self-attentive encoders each reach F1 of 80.2, the recurrent encoder reaches 80.1, and the graph encoder reaches 79.6.

Adding ELMo raises the convolutional encoder to 84.4, the graph encoder to 84.2, the recurrent encoder to 83.7, and self-attention to 83.6. Contextual input is therefore beneficial across the architectural comparison.

The strongest SemEval result uses the convolutional encoder with uncased BERT representations. It reaches macro-averaged F1 of 86.3. The corresponding graph configuration reaches 85.7, while the recurrent and self-attentive configurations each reach 85.6.

SemEval test relation extraction, macro-averaged F1 Uncased BERT input improves every encoder, with the convolutional configuration performing best.

**The numbers**

| System or setting | F1 |
| --- | --- |
| GCN | 79.6 |
| Bi-LSTM | 80.1 |
| CNN | 80.2 |
| Self-attention | 80.2 |
| Bi-LSTM with uncased BERT | 85.6 |
| Self-attention with uncased BERT | 85.6 |
| GCN with uncased BERT | 85.7 |
| CNN with uncased BERT (this paper) | 86.3 |

The cased BERT convolutional setting reaches 86.0 F1, while the uncased setting has precision 89.5 and recall 83.4. The authors describe the strongest SemEval performance as comparable with earlier leading approaches, including [multi-level attention CNNs](https://md.research.elamur.ai/free/en/papers/wang-2016-relation-classification-multi-level-attention/).

The dataset comparison is instructive. TACRED’s best configuration uses masked arguments and self-attention; SemEval’s best uses convolution and uncased contextual representations. The paper therefore supports benefits from particular combinations under particular evaluation conditions, rather than a single architecture that wins regardless of the extraction problem.

#### Probe results reveal a different ranking

Entity-type information is generally much easier to recover from trained encoders than from the simple baselines. On TACRED, the unmasked convolutional encoder reaches TypeHead accuracy 94.0 and TypeTail accuracy 85.8. Adding ELMo raises these figures to 97.0 and 90.2.

Local-context diagnostics can also be strong. TACRED’s convolutional encoder with ELMo reaches 76.1 on the part-of-speech tag left of the head and 81.2 on the tag right of the head. Its corresponding tail-side scores are 86.6 and 90.1.

The graph encoder displays another strength. Without contextual augmentation or masking, its TACRED SDPTreeDepth accuracy is 49.9, compared with 44.0 for convolution and 38.2 for self-attention. On SemEval, its corresponding score is 80.3.

These results make the architectural effects visible. The stronger local-context performance of convolution and the graph encoder’s stronger path-related performance fit the information each architecture processes directly.

Yet high probe performance does not reproduce the extraction ranking. The TACRED convolutional configuration with ELMo performs strongly across many diagnostics, while its extraction F1 is 58.8. The best extraction configuration reaches 66.9 while showing weaker performance on numerous probes.

The paper explicitly reports an F1 separation of 8.1 between those configurations. This is the clearest evidence that the probing collection and the extraction objective measure different aspects of the learned representation.

### What the ablations show

#### These are comparisons of complete configurations

The paper’s analysis consists of controlled configuration comparisons rather than a single proposed architecture with a sequence of components removed. It varies encoder family, contextual input, entity masking, and BERT casing, then compares the resulting extraction and diagnostic scores.

These comparisons answer useful questions about representation changes. Some remain cleaner than others. Masked and unmasked versions generally share hyper-parameters, while architecture comparisons necessarily include different processing and aggregation choices. Contextual-input comparisons can also involve changes in input composition and training settings.

The most defensible reading therefore follows the actual intervention. When masking is introduced, the result concerns the replacement of entity mentions with typed role placeholders under the stated training setup. When the encoder family changes, the result concerns that complete implemented encoder.

This distinction prevents a common overinterpretation: treating every observed score change as evidence about a single isolated mechanism. The study shows patterns across configurations, with architectural explanations offered where those patterns match the design.

#### Local processing preserves local clues

Convolution has a direct route to short patterns around each argument. Its strong performance on adjacent part-of-speech tasks is consistent with that construction. A filter can respond to a nearby title, noun, or other contextual pattern, and pooling can preserve the response in the sentence vector.

The recurrent encoder also retains some position and local-context information, though its performance is less uniformly strong. On TACRED, its unaugmented ArgOrd accuracy is 99.4, showing that the designated argument order is readily accessible through the probe.

The comparison with self-attention makes the architectural pattern more visible. The unaugmented self-attentive encoder has TACRED ArgOrd accuracy 75.7, while its relation F1 exceeds that of the unaugmented recurrent encoder. Strong recovery of argument order is therefore not a prerequisite for the better extraction score in this comparison.

The authors interpret such results through architectural preference. Encoders with local or recency-related processing tend to retain some surface arrangements more clearly. Encoders that can draw on more distant connections may succeed without making those same arrangements easy to recover.

That interpretation is plausible within the comparison, but the probes do not reveal the precise alternative evidence used for each prediction. They show a change in accessible information and a separate change in extraction performance.

#### Dependency access helps with focused structure

The graph encoder receives a structural advantage on diagnostics associated with dependency connections. Its input graph is built from a dependency analysis, and the graph is focused on the path between the arguments.

The resulting strength on SDPTreeDepth is therefore unsurprising. The representation is produced by processing information closely related to the target. The diagnostic confirms that some of that information remains accessible after graph convolution and pooling.

Its performance on whole-sentence TreeDepth is much weaker. On TACRED, the unaugmented graph encoder reaches 24.0 on that probe. The authors explain the contrast through pruning: the encoder does not retain a full view of the dependency tree.

This comparison separates access to a focused grammatical connection from representation of the sentence’s overall structural depth. A graph-based design can preserve one while discarding information needed for the other.

The grammatical-role probes provide another useful result. The graph encoder tends to perform well on these tasks even though it does not receive dependency labels themselves. It receives the graph connections, and those structural relationships support recovery of some argument roles.

This is evidence that the organization of the graph carries useful information beyond explicitly supplied label identities. It does not mean that the encoder reconstructs the complete grammatical analysis. The probe targets cover only the selected role categories.

#### Masking separates explicit input from recoverable output

Entity masking produces the paper’s most counterintuitive comparison. The intervention supplies an explicit entity category in place of the original mention, yet the resulting sentence representation can make that category harder to recover.

For TACRED’s convolutional encoder, TypeHead accuracy changes from 94.0 without masking to 84.2 with masking. TypeTail changes from 85.8 to 60.9. Over the same comparison, extraction F1 rises from 55.9 to 59.5.

The recurrent encoder shows a related pattern. Its TypeHead accuracy changes from 93.4 to 81.9, while extraction F1 changes from 55.3 to 62.9. The diagnostic and downstream measurements again move in different directions.

These results distinguish information supplied to the input from information made explicit in the final vector. A typed placeholder can help the extraction process without producing a sentence representation from which the same type is easily decoded.

The authors interpret the decline as a shift of attention away from individual entity mentions and towards relation-bearing context. They also associate reductions in some positional and distance diagnostics with this change.

The pattern is not uniform across architectures. In the self-attentive encoder, masking raises TACRED ArgOrd accuracy from 75.7 to 91.2. ArgDist accuracy changes from 32.8 to 44.3. The authors interpret this as increased attention to the arguments and their surroundings.

Masking therefore does not impose a single representational effect. Its impact depends on how the encoder processes the altered input. The robust downstream benefit coexists with architecture-specific changes in what the probes can recover.

#### Contextual input helps without improving every probe

The broad benefit of ELMo and BERT is clear in relation-extraction F1. Their probing effects are more selective.

Entity-type recovery usually improves. On SemEval, the convolutional encoder’s TypeHead accuracy is 76.1 with basic input, 81.3 with ELMo, and 83.9 with uncased BERT. Its TypeTail scores follow the same broad pattern.

For some architectures, however, local-context probes decline after contextual augmentation. On SemEval, the recurrent encoder’s accuracy for the part-of-speech tag right of the head changes from 75.9 with basic input to 68.9 with uncased BERT. Its extraction F1 nonetheless rises from 80.1 to 85.6.

This comparison matters because the contextual input and the final sentence representation occupy different stages. Richer token representations need not make every linguistic feature more accessible after the downstream encoder compresses them.

The paper’s general conclusion is that contextual representations supply useful linguistic information. The detailed results add a qualification: the resulting benefit depends on how the relation encoder transforms that information, and diagnostic gains need not occur on every target.

#### Casing offers no universal advantage

The authors compare cased and uncased BERT input because capitalization might help identify proper entities. TACRED makes this expectation particularly relevant through its person- and organization-centered annotations.

Nonetheless, uncased BERT frequently matches or exceeds the cased variant on entity and part-of-speech diagnostics. On SemEval, the convolutional encoder’s uncased TypeHead accuracy is 83.9, compared with 83.4 for the cased version. Its uncased TypeTail accuracy is 84.1, compared with 83.7 for the cased version.

The strongest SemEval extraction result also uses uncased input. TACRED’s strongest extraction result uses cased input together with masking and self-attention.

The comparison therefore does not establish a general preference for discarding or retaining capitalization. It shows that the intuitive value of casing does not translate into a consistent advantage across these configurations and targets.

#### The probes do not define a single scale of quality

The self-attention results challenge the idea that the diagnostic collection can serve as a universal quality score. The authors observe strong extraction performance alongside weak results on many familiar linguistic properties.

They suggest that self-attention may encode more complex information that the current probes do not test. That is an explanation for the mismatch, rather than a directly measured result. The experiments do not introduce a diagnostic that identifies the proposed additional information.

Other possibilities remain compatible with the measurements. A useful property might be represented in a form that logistic regression does not decode well. A representation might preserve combinations of clues rather than individual diagnostic targets. Some tested properties might simply have little value for the final relation decision.

The paper does not resolve these alternatives. Its contribution is to expose the mismatch clearly enough that probe accuracy cannot be treated as a substitute for extraction evaluation.

### Limitations

#### Limits the authors identify

The authors explicitly leave parts of the linguistic inventory for future investigation. Their grammatical-role probes distinguish a small set of subject and object categories and place the remaining dependency labels together.

They identify constructions involving possessive modification, compounds, and apposition as potentially important extensions. These can connect entities through expressions that differ from the verbal subject–object patterns emphasized by the current role inventory.

The authors also propose investigating generalization to particular entity categories, including people and companies. Their existing type probes test whether categories can be recovered from the representation. That differs from testing whether extraction succeeds on unfamiliar entities belonging to those categories.

The self-attention discussion identifies another limit. The authors suggest that useful information may lie outside the diagnostic collection. Their interpretation of more complex linguistic features remains a hypothesis because the study does not measure those features directly.

These stated limits concern coverage. The diagnostics test a selected collection of properties, not every linguistic distinction relevant to a sentence’s meaning or to relation classification.

#### A careful reader should separate recovery from reliance

A limitation visible in the setup is the absence of a direct test of whether the relation classifier uses the probed property. The diagnostic classifier is trained after the encoder and has its own objective. It can exploit information that the relation classifier ignores.

Conversely, a weak probe does not prove that a property is unavailable for extraction. The relation classifier might use it through interactions that the diagnostic does not capture, or rely on a correlated representation that does not support the same target prediction cleanly.

The disagreement between probing and extraction makes this distinction concrete. Masking can improve the downstream task while weakening type recovery. Self-attention can produce competitive extraction with low accuracy on many probes.

A causal claim would require evidence that changing the relevant information changes the relation decision in the predicted way. The paper’s configuration interventions are informative, but they alter broad input or architectural conditions rather than selectively removing a single recovered property.

The appropriate claim is therefore about accessibility under the specified probe. The experiments support statements about what logistic regression can recover from the frozen representation and how that changes across configurations.

#### A simple diagnostic has a specific field of view

Logistic regression gives the study a consistent and relatively constrained measurement tool. That simplicity helps comparison, but it also limits the kinds of information the probe can recover.

A linguistic property might be distributed across the vector in a form that the classifier cannot decode accurately. Low probing accuracy can therefore reflect the representation, the diagnostic’s capacity, or their interaction.

The reverse problem also deserves attention. A successful probe can use predictive regularities without reconstructing the linguistic structure a reader imagines. The bag-of-embeddings results illustrate why simple lexical information needs to be taken seriously.

Its strong TACRED ArgOrd accuracy shows that a representation without explicit sentence-order processing can still support that diagnostic through the dataset’s regularities. The baseline does not invalidate the task, but it changes what a high score establishes.

The paper includes useful baselines for exactly this reason. Still, the diagnostic results remain measurements within a particular dataset distribution rather than independent tests of abstract linguistic competence.

#### Annotation choices define the targets

The probing labels depend on the supplied or automatically generated linguistic analyses. TACRED provides the relevant annotations, while SemEval receives parser-generated analyses.

Errors or conventions in those analyses can affect the targets. The experiment measures agreement with the selected annotation scheme, not an annotation-independent account of sentence structure.

Binning adds another boundary. SentLen, ArgDist, and the depth tasks ask for categories, rather than exact values. Good classification means that the representation preserves enough information to identify those categories under the chosen boundaries.

The bins also differ between datasets. This is reasonable given their distributions, but it makes raw probing accuracies difficult to compare as though the tasks were identical. A score on TACRED and a score on SemEval can refer to different class inventories and different target frequencies.

Grammatical-role coverage is similarly selective. Combining many dependency labels into other makes the task manageable, while hiding distinctions among constructions that could matter for particular relations.

#### Architecture comparisons include implementation choices

A further limitation visible in the setup is that architecture names summarize several choices at once. The self-attentive encoder uses the final token state, while the convolutional and recurrent encoders use maximum pooling. The graph encoder includes argument-specific pooling and a pruned structural input.

These differences are integral to the tested systems. They also prevent the comparison from isolating the effect of a single architectural operation.

The contextual-input comparisons have related qualifications. ELMo is combined with GloVe, while BERT configurations use their computed representations as the word input. Some training settings also change across input variants.

The paper therefore establishes results for the configurations it implements. Broader claims about every possible recurrent, convolutional, graph-based, or self-attentive encoder would exceed the experiment.

#### Dataset coverage and uncertainty remain bounded

The study uses supervised, sentence-level relation classification on TACRED and SemEval. The authors explain why the representation-based probing setup could also fit distantly supervised extraction, but the reported experiments do not evaluate that setting.

The results do not establish behavior for relations requiring evidence across sentences, for different annotation schemes, or for other language settings. Those are boundaries of the evaluation, rather than failures of the tested approach.

The datasets also differ sharply in negative-example prevalence. Extraction improvements can therefore involve different precision–recall behavior, and their F1 values follow different averaging conventions.

For SemEval, the appendix reports means over 5 random initializations. The reported comparisons do not supply a full account of uncertainty around every probing and extraction score. Small numerical separations should consequently be read as reported outcomes under the stated setup, without assuming that the paper has established a reliable ordering for every nearby pair.

The strongest conclusion survives these qualifications. Architecture and input choices visibly alter accessible linguistic information, but those changes do not map onto a single ranking of relation-extraction quality.

### What came after

#### A later question concerns task relevance directly

[Probing the Probing Paradigm](https://md.research.elamur.ai/free/en/papers/ravichander-2021-probing-probing-paradigm-does-probing/) appeared in 2021 and cites this study. Its title asks whether probing accuracy entails relevance to the task. That question connects directly to the mismatch exposed by the relation-extraction experiments.

The earlier study provides several reasons to ask it. Strong local-context and entity-type probes do not guarantee the strongest extraction score. Entity masking can improve extraction while making types harder to recover. A self-attentive representation can support successful relation classification without leading on the selected diagnostics.

These observations separate the presence of decodable information from evidence that a task decision depends on it. The later work’s stated question makes that separation explicit.

The available information identifies the citation and the research question, but does not establish the later study’s experimental design or findings. It would therefore be unjustified to claim that it confirmed a particular causal explanation for the relation-extraction results.

The connection that can be drawn is precise: the earlier paper measures recoverability and observes disagreement with downstream performance; the later title asks about the inference from recoverability to relevance. That is a continuation of the interpretive problem revealed by the original experiments.

#### Another citation concerns idiomatic representation

[Getting BART to Ride the Idiomatic Train](https://md.research.elamur.ai/free/en/papers/zeng-2022-getting-bart-ride-idiomatic-train/) appeared in 2022 and also cites the study. Its title identifies the learning of representations for [idiomatic expressions](https://md.research.elamur.ai/free/en/topics/multiword-expressions/) as its subject.

This places the citation in another area where the contents of a learned representation matter. The relation-extraction paper investigates which properties survive sentence encoding; the later title concerns representation learning for expressions whose interpretation is central to its task.

The citation information does not specify which part of the earlier work the later study uses. It does not establish reuse of the diagnostic inventory, the software, the masking procedure, or a particular architectural conclusion. Nor does it supply results that would support a comparison between the tasks.

The later record therefore supports a bounded account of influence. The paper is cited by work questioning the interpretation of probing accuracy and by work on idiomatic representation. The experimental contribution remains useful to those discussions because it makes a distinction visible: information recoverable from a representation and information sufficient for successful task performance need not receive the same ranking.

## Cite

Cite as Christoph Alt, Aleksandra Gabryszak and Leonhard Hennig. 2020. Probing Linguistic Features of Sentence-Level Representations in Neural Relation Extraction. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2020.acl-main.140](https://doi.org/10.18653/v1/2020.acl-main.140)

```bibtex
@inproceedings{alt2020probing,
  title = {{Probing Linguistic Features of Sentence-Level Representations in Neural Relation Extraction}},
  author = {Christoph Alt, Aleksandra Gabryszak and Leonhard Hennig},
  booktitle = {Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.140},
  url = {https://doi.org/10.18653/v1/2020.acl-main.140}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
