---
title: "GRN — paper by Chen et al. (2019) — summary and ideas"
description: "GRN uses gated connections between words to give a convolutional named entity recognizer sentence-wide context without a recurrent encoder."
canonical: "https://research.elamur.ai/free/en/papers/chen-2019-grn-gated-relation-network-enhance/"
---
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/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/chen-2019-grn-gated-relation-network-enhance/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / GRN: Gated Relation Network to Enhance Convolutional Neural Network for Named Entity Recognition

# GRN: Gated Relation Network to Enhance Convolutional Neural Network for Named Entity Recognition

Paper · 2019 · Hui Chen, Zijia Lin, Guiguang Ding et al.

**Authors:** [Hui Chen](https://md.research.elamur.ai/free/en/authors/hui-chen/), [Zijia Lin](https://md.research.elamur.ai/free/en/authors/zijia-lin/), Guiguang Ding, [Jianguang Lou](https://md.research.elamur.ai/free/en/authors/jianguang-lou/), [Yusen Zhang](https://md.research.elamur.ai/free/en/authors/yusen-zhang/) and Borje Karlsson · **Year:** 2019 · **Venue:** arXiv:1907.05611 · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**103** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2904442979) · [arXiv:1907.05611](https://openalex.org/S4210191458) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1907.05611)
- [arXiv 1907.05611](https://arxiv.org/abs/1907.05611)
- [OpenAlex](https://openalex.org/W2904442979)

Citations: OpenAlex, 2026-10-14.

## Summary

A name can be easy to spot and still be hard to classify. Nearby words may suggest that a phrase names a place, while a clue elsewhere in the sentence may settle whether it refers to a place or an organization. The authors ask how a system can use both kinds of evidence while processing the words of a sentence in parallel. The task is to find the boundaries of each mention and assign it a category, a process called [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/).

The paper introduces the gated relation network, or GRN. It first builds a representation of each word from its vocabulary entry and its spelling. It then applies convolutions, operations that look for learned patterns in short windows, to describe each word in its immediate surroundings. The next stage gives every word access to those local descriptions across the sentence. For each pair of positions, it learns a vector of gates that can give different amounts of weight to different parts of the same neighboring or distant word's description. A final sequence-labeling layer uses the resulting features to choose a consistent set of tags.

GRN reached a test F1 score of 91.44 on CoNLL-2003 English NER in its basic configuration and 92.34 when it also received contextual features from ELMo. It reached 87.67 on OntoNotes 5.0. F1 combines precision, the share of predicted mentions that are correct, and recall, the share of annotated mentions that the system recovers. The paper's comparisons put GRN in the same range as strong recurrent systems. In a separate timing experiment against a bidirectional recurrent baseline with the same input and output layers, the authors report training speedups above 1.15 and test speedups around 1.10 on both benchmarks. The additional contextual input came from [ELMo](https://md.research.elamur.ai/free/en/papers/peters-2018-deep-contextualized-word-representations/).

The component comparisons explain what contributed to those results. GRN lost accuracy when the authors omitted local word context, limited the available window widths, or removed the sentence-wide relation layer. It also performed better with a separate gate for each feature channel than with a single gate for each word pair. A visualization shows how distant entity words can receive a strong relation score. The benchmark comparisons establish the accuracy of the complete system, while the controlled comparisons show why combining local features with sentence-wide gating mattered in the authors' setup.

## Deep dive: GRN: Gated Relation Network to Enhance Convolutional Neural Network for Named Entity Recognition

GRN uses gated connections between words to give a convolutional named entity recognizer sentence-wide context without a recurrent encoder. · about 32 minutes to read

**In this deep dive**

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

### The problem and its context

#### Recognizing the span and its type

Named entity recognition takes a sentence and marks stretches of words that refer to entities. A prediction identifies both the stretch and its type. For a mention that covers several words, finding only part of the name yields a different result from finding the whole name. A prediction can also locate the full stretch and assign the wrong type. These distinctions matter when the output is passed to systems that look up information, extract relationships, or answer questions. The utility of the tagger depends on which mentions it passes along and what it says about them. Finding those mentions is a step in [information extraction](https://md.research.elamur.ai/free/en/concepts/information-extraction/).

The conventional setup described by the authors assigns a tag to each word. Some tags mark the beginning or interior of a mention and also carry its type. Another tag covers words outside any mention. A sentence therefore produces an ordered sequence of decisions that can be translated back into spans. Evidence for a single decision may come from the word itself, its surroundings, and the decisions made at nearby positions. A token that looks like a possible name still needs to be assigned a place within a sequence of tags.

The paper uses location names and nearby prepositions to explain why local context helps. A preposition such as *in*, *on*, or *at* can supply a clue about the word that follows it. Its relevance depends on the words around it. A wider window can also contain evidence that several neighboring words belong together. The tagger needs access to both narrow and wider patterns, since the span of the useful evidence changes from one position to another.

Some clues lie beyond any of the small windows in GRN's convolutional layer. The authors' goal is to give a word direct access to those clues while retaining the local patterns that make each word's surroundings informative. Sentence-wide context, in this formulation, means that every word can contribute to the representation used to tag a given position. What the network learns to take from those words is a separate question.

#### From handcrafted features to recurrent encoders

The paper describes an earlier generation of named entity recognizers built with methods such as hidden Markov systems and conditional random fields. A hidden Markov approach associates the words in a sentence with an underlying sequence of tags. A conditional random field scores candidate tag sequences given the observed sentence. These approaches could perform well, but the authors note that earlier systems relied heavily on features designed by hand or resources assembled for the task. Applying the same strategy in another domain or language could require rebuilding part of that feature inventory. The paper cites Nymble and [Early results for Named Entity Recognition with Conditional Random Fields](https://md.research.elamur.ai/free/en/papers/mccallum-2003-early-results-named-entity-recognition/).

Neural sequence taggers shifted much of the work of feature design into training. A recurrent neural network, or RNN, updates a running representation as it moves through a sequence. A long short-term memory network, or LSTM, is a recurrent design with gates that control how information is retained or updated. The bidirectional version, BiLSTM, reads the sentence in both directions, so the features at a word can draw on information from its left and its right. The authors identify the use of this approach for word context as an important step in earlier neural taggers. [Bidirectional LSTM-CRF for Sequence Tagging](https://md.research.elamur.ai/free/en/papers/huang-2015-bidirectional-lstm-crf-models-sequence/)

Subsequent systems added features learned from the characters in each word. This gave the tagger access to spelling patterns alongside the vector associated with a vocabulary entry. The paper also describes deeper recurrent systems that passed information between layers through residual connections, as well as work that added a language-prediction objective tailored to sequence labeling. These efforts changed the information available to the tagger and how it learned its features. Two examples of the use of character information are [Ma and Hovy's end-to-end sequence tagger](https://md.research.elamur.ai/free/en/papers/ma-2016-end-end-sequence-labeling-bi/) and [Chiu and Nichols's BiLSTM-CNN tagger](https://md.research.elamur.ai/free/en/papers/chiu-2015-named-entity-recognition-bidirectional-lstm/).

Other work supplied information from outside the recognition training data. The paper distinguishes lexical resources such as gazetteers, lists that help identify names, from representations learned on external text. It describes an earlier tagger that used character-level features from a pretrained system and a later one that used ELMo to generate features that vary with the sentence. These are different ways to broaden the evidence available to the tagger. GRN's proposal concerns how the tagger combines its input features, and the authors also test the proposal with contextual input from external pretraining. [Semi-supervised sequence tagging](https://md.research.elamur.ai/free/en/papers/peters-2017-semi-supervised-sequence-tagging-bidirectional/) and [Deep Contextualized Word Representations](https://md.research.elamur.ai/free/en/papers/peters-2018-deep-contextualized-word-representations/)

#### Why use convolution for the words?

In a recurrent encoder, a position's update depends on an update from another position. Bidirectional recurrence makes evidence available from both sides of a word, with each directional pass still following its own sequence of dependencies. The authors focus on that order of computation because it restricts how fully the encoder can use a GPU to process the positions of a sentence together. Their question is whether a feed-forward encoder can preserve the ability to combine distant evidence while reducing these dependencies between computation steps.

A convolution applies the same learned operation at different positions. Each word's output from a convolution can be computed from its input window without waiting for the output at the preceding word. The receptive field is the range of input positions that can affect a particular output. Stacking convolutions lets information pass through successive windows. Dilation spaces out the positions sampled by a convolution, which lets a window reach farther. The authors discuss iterated dilated convolution, or ID-CNN, as a previous attempt to make recognition more parallel. Its receptive field comes from the chosen arrangement of convolutional layers, which the authors see as a constraint when sentence lengths vary. [Fast and Accurate Entity Recognition with Iterated Dilated Convolutions](https://md.research.elamur.ai/free/en/papers/strubell-2017-fast-accurate-entity-recognition-iterated/)

The paper also situates its work alongside feed-forward approaches to other language tasks. It cites a convolutional system for sequence-to-sequence learning and a translation system based on self-attention, in which positions can draw information from other positions in the same sequence. GRN shares that broad idea of direct access between positions. Its design uses sigmoid gates on the channels of local word features and aggregates their contributions across the sentence. The authors use convolution to learn short-range patterns and give the separate relation layer responsibility for combining them over a longer range. [Convolutional Sequence to Sequence Learning](https://md.research.elamur.ai/free/en/papers/gehring-2017-convolutional-sequence-sequence-learning/) and [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/)

### The method, step by step

#### From a sentence to a sequence of tags

GRN processes the sentence in stages. It starts by describing a word from the identity of the whole word and the characters that form it. Next, it describes the position from several short windows of words. It then updates that local description using evidence from across the sentence. The final stage scores tag sequences. There are two kinds of dependencies in this design. The word encoder learns which parts of the sentence may help describe each position. The output layer learns how a tag at one position fits with the tag next to it.

How GRN turns a sentence into entity tags The steps in order.

#### Representing each word and its spelling

A vocabulary embedding gives each known word a learned vector. The individual entries of the vector are numerical features that the network can use. The paper starts these word features from GloVe vectors. The same vocabulary entry starts with the same vector wherever it appears, and training can adjust that vector to suit recognition. The later layers can then build different features for different occurrences by taking their surroundings into account. The starting vectors come from [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/).

```
s = (s₁, s₂, …, sₜ) with final index T
```

Here, `s` denotes an ordered sentence, `sᵢ` is the word at position `i`, and `T` is the sentence length. The ellipsis represents the intervening positions. In the notation below, the final word is written `s_T`, with an underscore used where a Unicode subscript would be unclear.

```
wᵢ = E(sᵢ)
```

Here, `i` identifies a sentence position, `sᵢ` denotes its word represented as a one-hot input, and `E` is the word embedding lookup. A one-hot input identifies one vocabulary entry. The lookup returns `wᵢ`, the word-level vector at that position. These vectors have dimension 100 in the experiments.

The spelling component gives the system a way to extract features from a word even when its identity provides little useful information. It embeds each character, then applies a small convolution across the character sequence of the word. The convolution can respond to short letter patterns wherever they occur. The character lookup starts from random values, and the recognition objective guides the features learned from these patterns. The character embeddings have dimension 30.

```
c̄ⁱⱼ = conv([cⁱ_(j−⌊k/2⌋), …, cⁱⱼ, …, cⁱ_(j+⌊k/2⌋)])
```

Here, `i` identifies the word, `j` identifies a character position within that word, and `cⁱⱼ` is the character embedding at that position. The square brackets hold the character embeddings in the convolution window. The ellipses indicate intervening positions. The function `conv` applies learned convolutional filters and returns `c̄ⁱⱼ`, the resulting vector of channel responses. A channel is a coordinate representing the response of one learned filter. The width `k` is 3 for this layer. The floor signs in `⌊k/2⌋` express the integer radius of the centered window.

The position-by-position character responses still form a sequence whose length depends on the word. The next operation, max pooling over time, takes the largest response in each channel across the word. Each channel can take its maximum from a different character position. The result records how strongly a pattern was detected somewhere in the word, in a vector of the same size for short and long words.

```
cᵢ = pooling([c̄ⁱ₀, …, c̄ⁱⱼ, …, c̄ⁱₙ])
```

Here, `cᵢ` is the pooled spelling feature for word position `i`. The inputs `c̄ⁱⱼ` are the convolution responses for that word, with `j` running over the available character positions. The notation `0` through `n` follows the paper's display of the pooling inputs, where `n` denotes the word's character count. The ellipses stand for the other responses, and `pooling` takes a separate maximum for each channel across those responses. The character convolution has 30 output channels.

```
zᵢ = [cᵢ; wᵢ]
```

Here, `zᵢ` is the input representation of the word at position `i`, `cᵢ` is its pooled character feature, and `wᵢ` is its word embedding. The semicolon inside the brackets denotes concatenation, with one vector placed after the other. Concatenation preserves both sets of coordinates. The context layer can learn combinations that use word identity, spelling, or both.

#### Looking at several word windows

The context layer applies convolution again, this time across words. Its input is the sequence of vectors `zᵢ`, so each position supplies the character and vocabulary information already combined. There are separate convolution branches with widths 1, 3, and 5. The width 1 branch can respond to the current word's features on their own. The wider branches can respond to the same word in combination with its surroundings. The learned filters in the branches can give different importance to the center and to the positions beside it.

```
z̄ᵏᵢ = convₖ([z_(i−⌊k/2⌋), …, zᵢ, …, z_(i+⌊k/2⌋)])
```

Here, `i` is the position receiving a local feature, `k` is the convolution width, and `z̄ᵏᵢ` is the response of that branch at that position. The function `convₖ` applies the learned filters for width `k`. The bracketed input is a window of word representations `z`, centered on `zᵢ`, and the ellipses fill in the positions inside the window. The floor signs specify the integer radius for the odd widths. The window consists solely of the central representation when the width is 1. At the sentence edges the authors use zero padding so that each branch returns a feature at every original position. The last entry in the paper's displayed window carries the character-feature symbol `c`. The window is written here with `z` throughout, consistent with its definition as a convolution over the combined word representations.

```
xᵢ = pooling([tanh(z̄¹ᵢ), tanh(z̄³ᵢ), tanh(z̄⁵ᵢ)])
```

Here, `xᵢ` is the final local feature vector at word position `i`. The inputs `z̄¹ᵢ`, `z̄³ᵢ`, and `z̄⁵ᵢ` come from the branches of widths 1, 3, and 5. The function `tanh`, the hyperbolic tangent, transforms each branch output coordinate by coordinate. The `pooling` operation takes the largest of the transformed responses separately for each channel across the branches. The word-context convolutions have 400 output channels.

The pooling here is over window widths at a fixed word position. In the character layer, it was over positions within a fixed word. Keeping that distinction in view helps explain what goes forward. At the word level, each output position keeps its place in the sentence. Within that position, each channel can favor whichever context width produced its strongest response. The relation layer receives a sequence of these local feature vectors. It can compare the feature at one position with features that already contain clues from their own neighborhoods.

#### Making a gate for each ordered pair

The relation layer has a target word whose feature is being updated and a source word whose feature can contribute to that update. It performs the same pairwise operation for all choices of the target and source, including when they coincide. There is no requirement for the source to be within one of the target's convolution windows. A distant word can contribute its own local description directly.

```
rᵢⱼ = Wᵣₓ[xᵢ; xⱼ] + bᵣₓ
```

Here, `i` is the target position, `j` is the source position, and `xᵢ` and `xⱼ` are their local context vectors. The bracketed pair with a semicolon concatenates the target and source vectors in that order. The learned weight matrix `Wᵣₓ` maps the concatenated vector to a vector of relation scores, and the learned bias vector `bᵣₓ` is added to produce `rᵢⱼ`. The result has the same number of coordinates as either local context vector. This lets the next operation associate an individual gate with every feature channel of the source.

The ordering makes the relation directional. When the target and source exchange roles, the corresponding vectors exchange places in the input to the learned matrix. The score for one direction can therefore differ from the score for the other. The pair function is shared across positions. Its inputs carry the information needed to distinguish one pair from another, including the local patterns already extracted around each word. The pair formula contains no separate term specifying how far apart the two positions are.

```
rᵢ = (1/T) ∑ⱼ₌₁ᵀ σ(rᵢⱼ) ⊙ xⱼ
```

Here, `rᵢ` is the combined sentence-wide feature at target position `i`. The summation adds source contributions for every `j` from the first word through the final position `T`, with `T` also serving as the divisor. The sigmoid `σ` acts separately on every coordinate of `rᵢⱼ`, putting the gate values between 0 and 1. The operator `⊙` multiplies matching coordinates. A source contribution is thus the vector `xⱼ` after each of its channels has been scaled by its corresponding gate. The summation includes the case `j = i`, which lets the target contribute its own local features through the same operation.

A scalar weight on a whole word would give all of its channels the same multiplier. GRN can make finer distinctions. For a given target, it can give substantial weight to one coordinate of the source feature and suppress another. A different target can draw on the same source with a different vector of multipliers. The representation entering the tagger is a mixture of contributions selected for the current position.

The sigmoid operates independently on the relation scores. Increasing one gate leaves the other gates free to remain where they were. The division by sentence length scales the resulting sum, and the coefficients for a channel need not add to a fixed total. The authors compare this design to channel-wise attention because it selects components of the information received from other words. They distinguish it from the usual softmax form, which couples the weights by normalizing them jointly across the sources.

This computation also determines the route that evidence takes through GRN. The source word's local window is encoded first. Then the result can enter a position anywhere in the sentence through its pairwise gate. The relation matrix and the aggregation can be applied across target positions without a left-to-right chain of updates. The number of pairs still depends on sentence length, since every position is considered as a possible source for every target.

#### The alternative ways of combining features

The authors define two related versions for comparison. The Direct Fusion Network, or DFN, keeps the pairwise relation scores and averages those scores directly. Its output is an average of the learned transformations of the pairs. The authors motivate the gated version by observing that many words in a sentence lie outside entity mentions. They expect an indiscriminate combination to introduce irrelevant signals, while useful context can still come from words outside a mention.

```
rᵢ = (1/T) ∑ⱼ₌₁ᵀ rᵢⱼ
```

Here, `rᵢ` is the direct fusion feature for target position `i`, `rᵢⱼ` is the relation score vector for target `i` and source `j`, and `T` is the number of words. The summation spans all source positions and `1/T` turns the sum into an average. Each pair has the same averaging coefficient. The relation scores themselves can differ, but this formula does not use them to multiply the original source features.

The second variant, the Gated Attention Network, or GAttN, keeps the idea of multiplying source features by sigmoid outputs. It compresses the gate for a pair to a scalar. The scalar can vary between word pairs, and each channel of the source gets the same weight within that pair.

```
αᵢⱼ = σ(Wₓ[xᵢ; xⱼ] + bₓ)
```

Here, `αᵢⱼ` is the scalar gate for target `i` and source `j`. The concatenation `[xᵢ; xⱼ]` joins the two local feature vectors in order. The learned weights `Wₓ` project this pair to a scalar, and `bₓ` is the learned bias. The sigmoid `σ` bounds the resulting multiplier between 0 and 1.

```
rᵢ = (1/T) ∑ⱼ₌₁ᵀ αᵢⱼ xⱼ
```

Here, `rᵢ` is the feature for target word `i`, `T` is the sentence length, and `j` runs over the source positions. The scalar `αᵢⱼ` multiplies the entire source feature `xⱼ`. The summation collects these scaled vectors, and `1/T` divides their sum by the number of words. The scalar variant has the same sentence-wide reach as GRN. The granularity of the weights is what changes.

Finally, the relation output undergoes another coordinate-wise transformation before it is used to score tags.

```
pᵢ = tanh(rᵢ)
```

Here, `pᵢ` is the final feature vector at word position `i`, `rᵢ` is the relation layer's combined vector at that position, and `tanh` is the hyperbolic tangent applied to each coordinate. The decoder receives the sequence of vectors `pᵢ`, keeping a distinct feature vector for each word.

#### Scoring complete tag sequences

The conditional random field, or CRF, accounts for dependencies between tags. If a position is tagged as continuing a mention, its neighboring tags affect whether that interpretation makes sense. The CRF learns transition weights between neighboring labels and combines them with the evidence for each label at each word. The word features can already incorporate evidence from anywhere in the sentence. The output layer adds direct interactions between adjacent tag decisions.

```
f(sᵢ, a, b) = W_b pᵢ + b_(a,b)
```

Here, `sᵢ` is the word at position `i`, `a` is the previous tag, and `b` is the current tag. The function `f` returns a score for this local tagging decision. The learned weights `W_b` score the feature vector `pᵢ` for tag `b`. The term `b_(a,b)` is a learned transition score for moving from tag `a` to tag `b`. The letter `b` used alone denotes the current tag, while `b_(a,b)` with the pair of subscripts denotes the transition parameter.

```
φᵢ(a, b, s) = exp(f(sᵢ, a, b))
```

Here, `φᵢ` is the positive factor used at position `i` for the pair of tags `a` and `b` in sentence `s`. The exponential function `exp` converts the score from `f` into that factor. The dependence on the full sentence comes through the feature at `sᵢ`, which the preceding layers computed using the sentence's words.

```
p(y | s) = [∏ᵢ₌₁ᵀ φᵢ(y_(i−1), yᵢ, s)] /
           [∑_(y′ ∈ 𝒴(s)) ∏ᵢ₌₁ᵀ φᵢ(y′_(i−1), y′ᵢ, s)]
```

Here, `y` is a proposed sequence of tags for `s`, the vertical bar means that the probability is conditional on the sentence, and `𝒴(s)` is the set of tag sequences for that sentence. The index `i` runs through the `T` positions. In the numerator, the product sign `∏` multiplies the positive factors for the sequence under consideration. The tags `y_(i−1)` and `yᵢ` are the previous and current labels at each step, with the first factor including a preceding boundary label in the notation. In the denominator, `y′` ranges over the candidate sequences, as indicated by `∈`. The summation adds their corresponding products. This normalizes the score over complete sequences of tags.

```
L = −∑ₛ log p(y | s)
```

Here, `L` is the loss, the summation ranges over training sentences `s`, and `y` in each term is the annotated tag sequence for that sentence. The function `log` takes the logarithm of the sequence probability `p(y | s)`. The minus sign makes a low probability for the annotated sequence costly. Training adjusts parameters throughout the network using this objective, so the local feature extractors and the relation gates are learned for the tagging task.

```
y* = arg max_(y ∈ 𝒴(s)) p(y | s)
```

Here, `y*` is the chosen sequence for sentence `s`, `𝒴(s)` contains its candidate sequences, and `arg max` returns the sequence `y` that achieves the largest conditional probability. Since each factor links neighboring labels, the authors use Viterbi decoding to find the best sequence. This dynamic programming procedure can retain the best sequence prefixes ending in each possible tag and extend them to the next word. The decoder has an order of computation of its own, alongside the feed-forward operations that produced the word features.

#### What the authors trained

The authors implemented GRN in PyTorch and made the NER-GRN code public. Every entry from the GloVe vectors that initialize the model goes into the vocabulary, along with each word that occurs three or more times in the training split. Words without a vocabulary entry share the unknown-word designation, UNK. Vectors for UNK and for included words without a GloVe vector start from Kaiming uniform initialization, a random initialization rule. The same rule initializes the character embeddings and the weight matrices of the linear and convolutional layers. Bias vectors start at 0. The initialized word embeddings are updated during training.

The optimizer uses mini-batch stochastic gradient descent, which updates the parameters from the loss on small groups of examples. The batch size is 10 and the momentum is 0.9. Momentum carries information from recent updates into the current one. The initial learning rate is 0.02 and the authors decrease it as training proceeds.

```
η(t) = 0.02 / (1 + ρt), with ρ = 0.02
```

Here, `η(t)` denotes the learning rate at epoch `t`, and `ρ` is the coefficient controlling its decay. The numerator `0.02` is the initial learning rate. The denominator starts from the constant `1` and includes the product of `ρ` and the epoch index. The learning rate determines the scale of the optimizer's updates.

Each accuracy run uses 200 epochs with dropout set to 0.5. Dropout suppresses a randomly selected portion of activations during training as a form of regularization. The authors select the version with the highest development-set performance and evaluate that version on the test split. They run each configuration 5 times and describe reporting the average and standard deviation. The development split thus guides checkpoint selection. The test result measures the behavior of the selected tagger on held-out sentences.

For the ELMo configuration, the authors concatenate ELMo's contextual output to the word feature in GRN. A vocabulary lookup supplies an embedding tied to word identity, while the ELMo input can vary with the word's occurrence in a sentence. This configuration gives the subsequent layers additional contextual evidence while retaining their role in the recognition system. In particular, the relation layer still computes position-specific combinations of the local features that reach it.

### Experiments and results

#### The data and what counts as a correct prediction

The paper evaluates on CoNLL-2003 English NER and OntoNotes 5.0. The former supplies an established comparison with previous recognition systems on a compact inventory of entity types. The latter lets the authors examine the same architecture on data drawn from a broader range of sources and with a broader category inventory. Each benchmark is evaluated under its own annotation scheme and data conditions.

The English CoNLL-2003 corpus has 22,137 sentences in total. The training split contains 14,987 sentences, the development split contains 3,466, and the test split contains 3,684. The benchmark's 4 entity types are PERSON, LOCATION, ORGANIZATION, and MISC. The MISC label covers mentions assigned to the benchmark's miscellaneous category. The splits keep examples used to fit the tagger and choose a checkpoint apart from examples used for its reported test score. [CoNLL-2003 shared task](https://md.research.elamur.ai/free/en/papers/sang-2003-introduction-conll-2003-shared-task/)

The paper gives a total of 76,714 sentences for OntoNotes 5.0 and describes sources including telephone conversation and newswire. Following earlier work, the authors use material with gold-standard entity annotation and exclude the New Testaments portion. The label inventory includes CARDINAL, MONEY, LOC, and PRODUCT, among others. This range broadens what an entity tag can represent. The study applies the same general recognition procedure to the different inventory, with the labels and annotations of OntoNotes providing the supervision. [OntoNotes](https://md.research.elamur.ai/free/en/papers/hovy-2006-ontonotes-90-solution/) and [Towards Robust Linguistic Analysis using OntoNotes](https://md.research.elamur.ai/free/en/papers/pradhan-2013-robust-linguistic-analysis-ontonotes/)

GRN is trained with BIOES tags on both datasets. The letters distinguish the beginning, inside, and end of a multiword mention, a single-word mention, and positions outside a mention. A mention tag also includes its entity type. This coding gives the CRF explicit labels for the end of a span and for a span consisting of one word. For evaluation, the authors convert their output back to BIO, which uses beginning, inside, and outside tags. A single-word mention becomes a beginning tag and the end of a multiword mention becomes an inside tag of the same type.

The authors use the standard CoNLL-2003 evaluation script. It measures recognition at the mention level, where the relevant match is a span with the correct boundaries and type. Precision asks how many of the predicted mentions meet that criterion. Recall asks how much of the annotated mention set the predictions cover. F1 brings the two measures together, so a system that finds many correct mentions while also predicting many spurious ones can be distinguished from one that predicts fewer mentions and misses more of the annotated set. The main claims in the paper use F1. The CoNLL comparison also includes maximum F1 and mean precision and recall where those figures are available.

#### CoNLL-2003 accuracy and the role of external features

The comparison set includes recurrent recognizers, a convolutional recognizer, and systems with attention. The authors reimplement Ma and Hovy's CNN-BiLSTM-CRF system and say that the resulting accuracy is comparable to the original report. They also build CNN-BiLSTM-Att-CRF by adding self-attention to that system. These comparisons help place GRN alongside taggers that have recurrent word context, including ones that also let positions exchange evidence through attention. For other systems, the general practice in the paper is to use their previously reported results.

ID-CNN serves a different purpose in the comparison. Like GRN, it replaces a recurrent encoder with a convolutional approach to word context. Its use of iterated dilated convolutions gives it a way to enlarge the area covered by its filters. The authors report that GRN achieves substantially higher CoNLL-2003 F1 than ID-CNN. This establishes a difference between the evaluated systems. The ablations within GRN provide the closer comparison for interpreting the contribution of its relation layer.

The basic GRN reaches a reported CoNLL-2003 test F1 of 91.44. The paper treats ordinary pretrained word embeddings as part of this basic setup. Its comparison category for external knowledge concerns additional resources beyond the recognition training corpus and those embeddings. With contextual features from ELMo, the reported test F1 for GRN is 92.34. The study thus reports GRN's performance under both input conditions. The ELMo figure is evidence about the architecture with the added input, and the basic figure shows where the architecture stands with its word and character features.

The authors also add ELMo to Ye and Ling's hybrid semi-Markov CRF system using its published code. They report a CoNLL-2003 test F1 of 91.79 ± 0.08 for that configuration. The chart uses its reported central F1 value. This is a comparison between implementations that both receive ELMo features, and the two systems have different ways of turning their features into recognition decisions.

ELMo-assisted systems on CoNLL-2003 English NER test F1 GRN has the higher reported F1 among these ELMo configurations.

**The numbers**

| System or setting | F1 |
| --- | --- |
| Hybrid semi-Markov CRF with ELMo | 91.79 |
| GRN with ELMo (this paper) | 92.34 |

The authors characterize GRN as comparable to or slightly ahead of leading recurrent recognizers in the CoNLL-2003 comparison. That characterization rests on the systems and settings they examined. The result with ELMo also establishes that the gated relation architecture can use previously learned contextual features alongside the representations built inside GRN. This matters for interpreting the comparison because contextual input and the design of the recognizer are distinct choices.

#### OntoNotes accuracy

The reported OntoNotes 5.0 test F1 for GRN is 87.67. The paper compares the result with published systems evaluated on OntoNotes, including the recognizer by Chiu and Nichols, the work on active learning by Shen and colleagues, and the joint entity analysis work by Durrett and Klein. The authors describe GRN's result as the strongest in that comparison. A separate benchmark matters here because the OntoNotes data cover a different mixture of text sources and a wider variety of labels than the CoNLL-2003 English NER task.

The two F1 values answer separate questions about held-out performance under each benchmark's conditions. Each combines decisions over the entities that its own annotation guidelines define. The result on OntoNotes shows that the same design can perform well in the second benchmark, while the controlled comparisons on both datasets help assess whether its component choices depend on CoNLL-2003 alone.

#### What the timing experiment measured

The speed test compares GRN with the authors' CNN-BiLSTM-CRF implementation. The input representation and CRF are shared. The input and output dimensions of the recurrent word encoder match those of GRN's context and relation stages taken together. This design keeps two substantial parts of the computation common and focuses the architectural difference on the word encoder. The measured times still cover the whole tagging system.

The authors run the comparison on a physical machine with Ubuntu 16. 04, one Tesla P100 GPU, and two Intel Xeon E5-2690 v4 CPUs. They initialize the systems randomly for the timing test and train them for 30 epochs, testing after each epoch. Training and testing both use batches of 10. To calculate speedup, they use mean per-epoch training time and mean test time. This repeated timing procedure is separate from the development-based selection of checkpoints for the main accuracy results.

GRN achieves a training speedup above 1.15 and a test speedup around 1.10 against CNN-BiLSTM-CRF on both datasets. The paper notes that the shared input representation and CRF contribute to the total time on either side of the comparison. Those common costs help explain why the measured speedup for the full system is modest. The experiment measures a practical difference in runtime with the same surrounding stages and the same batch size.

The authors note that the speedup is larger on CoNLL-2003. They give an average sentence length of about 14 words for CoNLL-2003 and about 18 for OntoNotes 5.0, and suggest that shorter sentences reduce the work for GRN's all-pairs layer. This explanation follows from the architecture, since a longer sentence gives each target more sources and introduces more targets. The timings compare datasets that differ in other respects as well. The paper does not time a sequence of otherwise matched inputs that vary only in length.

For context, the paper cites a CoNLL-2003 test speedup of 1.28 reported for ID-CNN-CRF against a basic BiLSTM-CRF. That figure comes from the earlier study. The authors use it to situate GRN's tradeoff between recognition accuracy and speed. Their own matched timing experiment quantifies the difference between GRN and CNN-BiLSTM-CRF under the hardware and procedure just described.

### What the ablations show

#### Why the relation layer needs local inputs

The authors run the component comparisons on both CoNLL-2003 and OntoNotes 5.0 under the same experimental settings as GRN. They begin with the layers that precede sentence-wide aggregation. One variant removes the word-context layer and sends the combined character and vocabulary representation straight to the relation layer. Each target still has access to every word. The vectors used to calculate those relations now carry information about individual words and their spelling, without the patterns formed by word-level convolution over nearby positions.

The authors report a clear F1 drop for this variant on both datasets. The result supports giving the relation layer inputs that already describe local context. A source position can be more informative when its feature represents what is happening around it, because the gate sees that context at the moment it decides what the source contributes. The ablation changes the feature transformation as a whole, so its measured effect includes the loss of the context layer's learned filters as well as the loss of their local windows.

A second variant keeps the branch with kernel width 3 and removes the other branches. It still has a local word encoder and all-pairs relation gates. What it loses is the opportunity to choose between differently sized windows when pooling each feature channel. The authors again report lower F1. This comparison narrows the finding to the design of the local stage. A fixed window centered on the word was less effective in these experiments than the set of windows in GRN.

The single-branch comparison concerns the window set and its associated filters together. Removing the other branches also removes learned parameters. The result supports the complete multi-branch design as tested. It does not identify whether the narrower branch or the wider branch makes the larger contribution, or whether another single-window configuration could recover some of the difference.

#### What changes when global information is fused differently

To test the relation layer's contribution, the authors remove it and send the context features directly to the CRF. The CRF still scores sequences of neighboring labels. The word features supplied to it now come only from the local convolution windows. This variant loses F1 on both benchmarks. The result shows that local convolution and label transitions leave room for improvement from a feature layer that combines information across the sentence.

Direct fusion tests whether access to the whole sentence is sufficient in the authors' setup. It computes relation score vectors for the same pairs and then averages those vectors. Full GRN instead uses the scores to control the participation of the original source features. Since the pair scoring transformation in DFN is linear with a bias, its average combines a target-dependent term with a term derived from the mean of the source features. The nonlinear gates in GRN let the target affect how individual source channels enter the average. The authors report higher F1 for GRN than for DFN, a result that supports the gated composition over direct averaging for these experiments.

The scalar-gate comparison isolates a more specific choice. GAttN still computes a sigmoid multiplier for each ordered pair and still forms a weighted mixture of source features. Each multiplier applies to the whole source vector. GRN can scale each coordinate of that vector separately. Full GRN achieves higher F1 under the matched settings, supporting the choice to make the relevance of a source depend on the feature channel as well as the pair of words.

Taken together, the comparisons distinguish several possible explanations for the benchmark results. The system needs a useful description of the immediate neighborhood before it combines evidence globally. Direct access across the sentence improves on local features alone in this architecture. The way the layer uses that access also matters, since the score-averaging and scalar-gating variants both retain access to the same positions and yield lower F1. The experiments compare these particular mechanisms under the same settings. They do not compare every way of implementing attention or every arrangement of convolution filters.

#### What the heat map measures

The paper also visualizes the pairwise relations for a sample sentence. The horizontal axis lists the sentence's words, and the vertical axis lists words belonging to entity mentions. A row lets the reader inspect the strengths of the relation scores received by an entity word from positions across the sentence. Darker regions indicate stronger displayed relations. This view makes it possible to see examples of high relation scores at a distance without reducing the figure to the prediction of a single tag.

The authors construct the display from the L2 norm of each relation score vector `rᵢⱼ`. This norm gives the vector a single magnitude based on the sum of its squared coordinates. The authors rescale those magnitudes to the interval from 0 to 1 for the heat map. The displayed quantity is based on the scores before sigmoid gating. It is also measured before the gate is multiplied by the source feature. The figure therefore describes one part of the relation computation. In particular, a large negative coordinate can raise a vector's norm while producing a small gate.

The authors draw attention to the relation between Sun and Sidek. They are the 1st and 8th words of the sample sentence, respectively. The paper identifies them as entity words and notes that they are too far apart to occur in the same receptive field of the convolutions used in GRN. Their pair is nevertheless available to the relation layer. This illustrates what changes with the new route for information. The local convolutions can describe each word's neighborhood, and the relation layer can compute a score using the two descriptions together.

The example provides evidence that a distant pair can receive a strong score in a trained GRN. It complements the ablation in which removing the relation layer reduces test F1. A separate question is whether the highlighted pair changes the predicted tag for either of those positions. The displayed magnitude alone does not answer that question, since the actual contribution depends on the gates, the source vector, the other words' contributions, and the CRF's sequence scores.

### Limitations

#### Limits the authors discuss

The authors qualify the measured efficiency gains by pointing to components shared with the recurrent baseline. Their timings include the representation layer and CRF, so the full-system speedup reflects how much work those common stages take alongside the word encoder. They also acknowledge the speed tradeoff with the faster ID-CNN-CRF result reported in earlier work. The throughput claim for GRN is therefore most concrete for the matched comparison against CNN-BiLSTM-CRF on the stated machine.

The authors also relate performance to the length of the sentences supplied to the relation layer. Their explanation for the smaller speedup on OntoNotes is that its sentences are longer on average, giving the gate more work. The layer's ability to connect all positions is useful with variable-length input. It also means the work it performs grows with the number of source-target pairs. The evaluation supplies runtime evidence for the workloads in these datasets and the batch size used in the experiment.

#### Limits of the evidence

Both accuracy studies are sentence-level recognition benchmarks. The results establish how GRN performs with these splits and their annotation conventions. They leave open how well the design transfers to other languages, different kinds of text, and evidence that crosses sentence boundaries. OntoNotes includes several kinds of source material, but the reported aggregate F1 does not establish that GRN improves equally across sources or across entity types. The whole-sentence context mechanism in the paper takes the sentence as the unit of its pairwise computation.

The benchmark rankings combine results reported by earlier studies with experiments the authors run themselves. The matched ablations offer a firmer basis for attributing differences to the particular changes tested inside GRN. The published benchmark comparisons locate the system among its contemporaries, with some variation in external resources, architecture, and evaluation summaries. The authors' 5-run procedure measures variation in their own runs. It does not provide a common estimate of variation for every published comparator, so small differences in reported F1 warrant a narrower interpretation than a large drop in a matched ablation.

The ablations change functional choices and, in some cases, the number of learned parameters. A vector gate makes more separate predictions per pair than a scalar gate. A context stage with several branches has more filters than the version retaining one branch. The experiments show the value of the complete choices at the tested settings. They leave the effect of equalizing parameter budgets unresolved. The relation comparisons also leave open how the gates perform against other sentence-wide mechanisms under an equally close architectural match.

The long-distance claim has a clear architectural part and a more limited empirical part. A word can receive information from any other word in the sentence through one application of the relation layer. The results show that removing that layer lowers aggregate F1, and the heat map shows a strong score for a distant pair. The study does not measure recognition accuracy by the distance to the clues an entity needs, or show how individual predictions change when specific distant sources are suppressed. Its evidence supports the importance of the relation layer as a whole. The frequency with which the improvement depends on distant connections remains open.

The pairwise design also imposes a scaling constraint. As sentences get longer, both the number of targets and the number of sources per target increase. The encoder can perform many of those computations in parallel, but parallel execution and total work are separate properties. The timing experiment gives no throughput or memory measurements for substantially longer inputs, other hardware, or other batch sizes. It also uses a CRF shared by both systems. The word encoder's lack of recurrence therefore describes the feature computation, while the reported end-to-end speed includes the work of structured decoding.

Finally, the ELMo experiment shows that extra contextual features can be incorporated into GRN and can accompany a higher CoNLL-2003 test score. It does not give a separate timing breakdown for producing those external features. The accuracy result with ELMo and the matched recurrent timing comparison answer different questions. Reading them together supports a claim about an effective and efficient basic architecture with the option of additional contextual input. The cost of the complete ELMo configuration remains unmeasured by the timing comparison.

### What came after

No later citing work is documented here, so there is no established account of how subsequent studies reused, tested, or changed GRN's combination of local convolution and sentence-wide feature gates.

## Cite

Cite as Hui Chen, Zijia Lin, Guiguang Ding, Jianguang Lou, Yusen Zhang and Borje Karlsson. 2019. GRN: Gated Relation Network to Enhance Convolutional Neural Network for Named Entity Recognition. arXiv:1907.05611.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1907.05611](https://doi.org/10.48550/arxiv.1907.05611) · [arXiv 1907.05611](https://arxiv.org/abs/1907.05611)

```bibtex
@misc{chen2019grn,
  title = {{GRN: Gated Relation Network to Enhance Convolutional Neural Network for Named Entity Recognition}},
  author = {Hui Chen, Zijia Lin, Guiguang Ding, Jianguang Lou, Yusen Zhang and Borje Karlsson},
  year = {2019},
  doi = {10.48550/arxiv.1907.05611},
  eprint = {1907.05611},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1907.05611}
}
```

> 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)
