Elamur Research

Enhancing Entity Boundary Detection for Better Chinese Named Entity Recognition

Paper · 2021 · Chun Chen and Fang Kong

Summary

Finding a name in Chinese text means deciding exactly which characters belong to it. A recognizer can notice that a passage contains an organization and still return an incomplete name or include words that belong to the surrounding sentence. Written Chinese generally leaves word boundaries unmarked, so spaces cannot settle those decisions. Chun Chen and Fang Kong study whether giving a system more evidence about the edges of a phrase improves named entity recognition.

Their starting point is Star-Transformer, a sentence encoder in which each token exchanges information with its neighbors and with a shared relay. The authors add boundary information in two ways. A graph attention layer lets words exchange information along grammatical links supplied by a parser. Those links can help the recognizer build a more coherent picture of a phrase. Two separate training tasks ask whether each position begins or ends an annotated entity. The features learned for these tasks join the features from the graph, and a sequence decoder uses the combined representation to assign entity labels.

The authors test the system on news text from OntoNotes V4.0 and OntoNotes V5.0 and on Sina Weibo posts. The complete system reports F1 of 79.95% on OntoNotes V4.0, 79.53% on OntoNotes V5.0, and overall F1 of 70.14% on Weibo. These are the highest corresponding scores in the paper’s comparison. On Weibo, the complete system also scores highest for named entities. Nominal mentions, which are noun-like referring expressions, score highest in the version that adds boundary prediction without graph attention.

The error counts help explain why the authors treat the additions as complementary. On OntoNotes V5.0, graph attention alone reduces missed identifications compared with the Star-Transformer baseline, while the boundary error count rises from 139 to 169. With the beginning and ending tasks added, the complete system records 121 boundary errors and the fewest missed identifications of the configurations tested on that dataset. Giving the recognizer access to grammatical structure can help it find more of the material that deserves a label. Teaching it where a mention starts and stops addresses a decision that remains difficult even when more of that material is found.

Deep dive: Enhancing Entity Boundary Detection for Better Chinese Named Entity Recognition

Chen and Kong improve Chinese named entity recognition by using syntactic links and training a system to identify where each entity begins and ends. · about 36 minutes to read

The problem and its context

Finding a mention involves finding its extent

Named entity recognition marks spans of a sentence and assigns them categories defined by the dataset. A successful prediction therefore answers related questions about location and type. The system has to identify the position where a mention begins, follow it through the text, and recognize where it ends. It also has to assign the category appropriate to that span. If it selects the wrong extent, a plausible category cannot recover the text that should have been selected. If it selects the right extent and assigns the wrong category, it has found the mention but made a different kind of error. This distinction motivates both the architecture and the paper’s error analysis.

For a downstream application, the extent is part of the information being extracted. A system that looks for relations needs to know which expressions take part in them. A coreference system uses mentions to connect expressions that refer to the same thing. Work on knowledge graphs also uses identified entities as inputs. In each case, the output of recognition is a piece of text with a label. An error near an edge can change that piece of text even when the recognizer has located the general area of the sentence correctly. The paper motivates its attention to boundaries through these uses of information extraction. Its discussion of reference draws on coreference resolution and cites Improving Coreference Resolution by Learning Entity-Level Distributed Representations.

The authors single out a practical difficulty in Chinese. Written text does not visibly divide its characters into words in the way that spaces typically divide words in English. A computational pipeline can still segment a Chinese sentence, but those segmentation decisions can be wrong. Recognition then has to operate on an input whose units already embody decisions about where words begin and end. Additionally, a word boundary and a mention boundary describe different things. A mention can cover a sequence of words, so even a useful word segmentation leaves open the question of which neighboring words belong to the name. The paper also mentions the absence of the kind of tense information it contrasts with English, although the proposed system concentrates on boundaries.

A character representation offers evidence from inside a word. The individual written units that make up the word are available even when the word-level representation is insufficient for a recognition decision. The authors accordingly keep both views. They use words to organize the sentence and its grammatical links, while allowing the content of a word to contribute through its characters. They also include a grammatical category for each word. The combination is meant to reduce the consequences of relying solely on word segmentation. Word segmentation remains relevant because the grammatical graph and the sequence of input vectors are organized around words.

How sequence labeling framed the task

Much of the earlier work discussed in the paper treats recognition as sequence labeling. For each position in a sentence, an encoder collects evidence from the text, and a decoder selects labels for the sentence. The interaction between those jobs is important. A position can look like the interior of a name because of the words on either side, and its label has to make sense alongside the labels at those positions. A sequence decoder can consider how likely those labels are together. The encoder still has to produce useful evidence about the words themselves and their role in the current sentence.

The paper describes a family of earlier systems that pairs a bidirectional long short-term memory network, or BiLSTM, with a conditional random field, or CRF. A bidirectional encoder processes a sequence from both directions so that each position can receive information from preceding and following positions. A CRF provides a way to score labels together across the sequence. Variants in the related work investigate different ways of representing the input to this pipeline. Two examples cited by the authors are Named Entity Recognition with Bidirectional LSTM-CNNs and End-to-end Sequence Labeling via Bi-directional LSTM-CNNs-CRF.

Attention provides a different route for combining evidence. It allows a position to give varying weight to the representations it can consult. In a fully connected attention layer, a position can consult every other position. The paper reports that prior work found the fully connected Transformer approach unsatisfactory for named entity recognition. Chen and Kong point out that a sentence may contain relatively few entity positions, making all-to-all attention an unnecessary default in their view. They choose Star-Transformer as a way to retain a route for distant information while limiting the direct connections made by individual positions. Their discussion traces the general attention mechanism to Attention Is All You Need and the Transformer and attention architecture.

Star-Transformer gives each token a node in a sequence and makes a shared relay available to all of them. Nearby positions can interact directly. Information from farther away can pass through the relay. For the authors, this is a useful arrangement for sentence context, but it leaves a specific question open. The most informative interaction for recognizing a local phrase may follow a grammatical relationship that the sequence connections do not explicitly represent. The relay provides input drawn from across the sentence, while the links defining a particular phrase are frequently much more selective. This is the gap the added graph is intended to address.

Why the authors use syntax and separate boundary labels

The related work also describes Chinese recognition systems that make use of lexicons and grammatical dependencies. A lexicon gives a system access to possible word forms or combinations. Dependency information describes relationships among words in a sentence. Either kind of evidence can supplement a representation learned only from a sequence. The cited work includes a lattice approach and a flat lattice architecture, as well as graph approaches that incorporate lexical information or connect words and characters. The paper draws on this line of work while choosing directed grammatical dependencies as the edges for its additional graph. Two of the cited lexical approaches are Chinese NER Using Lattice LSTM and FLAT: Chinese NER Using Flat-Lattice Transformer.

The authors’ idea is that a word connected to another word by a dependency may carry more specific information about a possible phrase than an equally distant word elsewhere in the sentence. This remains a source of evidence about the phrase. A grammatical connection does not itself say which positions the dataset marks as an entity, and the set of words reached by graph edges does not serve as the system’s answer. The graph instead changes the features the decoder sees. Its usefulness depends on the learned attention weights, the links the parser returns, and the relation between those links and the spans recognized under the dataset’s annotation scheme. The relevant analysis of word relationships comes from dependency parsing.

The beginning and ending tasks connect the method directly to annotated spans. The beginning task can learn what an entry into a mention looks like. The ending task can learn what an exit looks like. These are different questions even though a short mention can begin and end at the same position. Both are also simpler than full sequence labeling because each asks for a binary decision without requiring the entity type. The authors want the hidden features used to answer these questions to be available to the recognizer throughout the sentence. That arrangement supplies evidence designed for the edges as well as evidence about a phrase’s internal structure.

The method, step by step

From a sentence to a labeled sequence

The system starts with a vector at each word position. A vector is a collection of numerical features. Here it combines a learned representation of the word, features composed from its characters, and its part of speech. The word positions then supply the satellite nodes in Star-Transformer. Each satellite receives information from its neighbors and from a relay that summarizes the sentence. The result is a sequence of representations that includes information from outside the individual words.

The graph attention layer works over directed grammatical links from DDParser. Given the contextualized representations, it learns how much weight to assign to the neighbors available to each position. In parallel with the contextual and dependency computation, separate gated recurrent units learn to represent mention beginnings and ends from the token inputs. The graph output and the hidden representations from the two boundary branches are combined and passed to a conditional random field. The CRF produces the sequence of recognition labels. The input includes word embeddings and the result of part-of-speech tagging.

From word and character features to entity labels

The steps in order.

From word and character features to entity labelsStep 1: Represent words, their characters, and parts of speech1. Represent words, their characters, and parts of speechStep 2: Exchange sentence context through satellites and the relay2. Exchange sentence context through satellites and the relayStep 3: Apply graph attention along directed dependency links3. Apply graph attention along directed dependency linksStep 4: Learn beginning and ending features from token inputs4. Learn beginning and ending features from token inputsStep 5: Combine boundary features with graph output5. Combine boundary features with graph outputStep 6: Decode the entity label sequence with a CRF6. Decode the entity label sequence with a CRF

The flow describes where the representations come together. The beginning and ending branches can be understood alongside the sentence and graph branches because they take the token representation as input. The decoder receives their hidden features after combination with the graph features. This makes the boundary task part of how the system learns to recognize an entity. The paper’s equations put the combination before sequence decoding, so a reader should distinguish these features from a pair of hard boundary decisions that would determine the output in advance.

Building a vector from a word and its characters

The lookup step uses pretrained Chinese embeddings. The paper identifies the embedding resource as Chinese Word Vectors. The lookup provides an initial vector for a word or character before the recognition network computes contextual features. At the character level, the system passes the embeddings through a bidirectional gated recurrent unit, or GRU. This recurrent layer passes a state along a sequence and updates it when it sees the next input. That state lets the contribution of a character depend on the characters already encountered in its direction of processing.

The paper writes the forward and backward recurrences with directional arrows. The subscript marks position in the recurrence and the superscript carries the recurrent state notation. In these equations, the inputs are the representations being processed inside the bidirectional layer. The token representation used by the sentence encoder is assembled after the character computation.

h⃗ᵗᵢ = GRU⃗(xᵗᵢ, h⃗ᵗᵢ₋₁)

Here h⃗ᵗᵢ is the forward hidden state at position i, and xᵗᵢ is the corresponding input vector. The superscript t is the recurrent state index carried in the paper’s notation. h⃗ᵗᵢ₋₁ denotes the state at the preceding position. GRU⃗ is the forward gated recurrent computation. The arrow marks the direction from earlier to later positions in the input order.

h⃖ᵗᵢ = GRU⃖(xᵗᵢ, h⃖ᵗᵢ₊₁)

h⃖ᵗᵢ is the backward hidden state at position i under the same recurrent notation t. GRU⃖ processes the sequence in the reverse direction. It receives the same position’s input xᵗᵢ and the reverse state h⃖ᵗᵢ₊₁ from the following position in the original order. The arrows on the states keep this information distinct from the information propagated by the forward unit.

hᵗᵢ = concat(h⃗ᵗᵢ, h⃖ᵗᵢ)

hᵗᵢ is the bidirectional hidden representation at the position indexed by i with recurrent index t. concat appends the components of the forward vector h⃗ᵗᵢ and the backward vector h⃖ᵗᵢ. Both directions remain available in the resulting representation. Concatenation is the operation written with brackets and a separator in the paper.

At the level of assembling the word input, the paper describes the character contribution through the following equation. The position index now refers to the word in the sentence. A sequence of characters belonging to that word is the input to the character encoder.

xᶜᵢ = GRU(e(charᵢ))

xᶜᵢ is the character-derived vector for word position i. charᵢ is the ordered collection of characters belonging to that word, and e looks up their embeddings. GRU refers here to the bidirectional computation over that collection. The equation names the resulting character vector without specifying a separate pooling or state-selection operation in the formula.

xʷᵢ = e(wordᵢ)

xʷᵢ is the word embedding for position i. wordᵢ is the word at that position, and e is the embedding lookup applied to it. This component supplies a representation for the word as a unit. The character computation supplies features based on the sequence of written units within it.

xᵢ = concat(xʷᵢ, xᶜᵢ, posᵢ)

xᵢ is the complete token vector for word position i. xʷᵢ is the word component, xᶜᵢ is the character component, and posᵢ represents the word’s part-of-speech tag. concat places their components next to one another. The next layers can draw on each source of information when they compute features for the sentence or learn to predict boundaries.

One reason to retain the character vector is that the word lookup and the recurrent computation describe the input at different scales. The word lookup starts from the identity of the segmented word. The recurrent computation can encode the ordering of the characters inside it. The grammatical category adds a further kind of information about the word. These components still form a vector at each word position, which is important for understanding how the later dependency graph aligns with the contextual sequence.

How attention chooses among available inputs

An attention operation takes a query, keys, and values. The query represents the position or state asking for information. A key is the representation against which that query is compared. A value contains the information to be collected from the corresponding candidate. The operation computes compatibility scores, turns them into weights, and uses those weights to combine the values. Which candidates are available depends on the architecture. In Star-Transformer, a satellite has a small, specific set of candidates. The relay can consult the set of satellites.

Att(Q, K, V) = softmax((QKᵀ) / √dₖ) · V

Att is the attention operation, Q is the query, K collects the keys, and V collects the values. Kᵀ is the transpose of the key matrix, letting the product QKᵀ compare the query with the keys. dₖ is the dimensionality of the keys, and √dₖ scales those comparisons. softmax normalizes the scaled scores across candidates. The product with V, denoted by ·, collects the values according to the resulting weights.

K = XWᴷ

X is the sequence of candidate input vectors, and Wᴷ is the learned key projection. Their matrix product gives K, the representation of the candidates used for scoring their compatibility with the query. A projection here is a learned transformation of the input features into the space used for a particular calculation.

V = XWⱽ

V is the set of value vectors. It comes from the same candidate input X through the learned value projection Wⱽ. The key and value projections can thus extract different useful features from the same underlying input. The key contributes to the weight and the value contributes to the weighted result.

The Transformer calculation runs several attention computations in parallel. Each is called a head. Its projections can give it a different way to compare inputs and a different set of features to pass forward. The paper writes the completed calculation as a combination of these individual outputs.

MulAtt = (z₁ ⊕ z₂ ⊕ ⋯ ⊕ zₕ) · Wᵒ

MulAtt is the resulting multi-head attention representation. Each z with a subscript is a head output, and h denotes the number of heads. The ellipsis ⋯ represents the intermediate heads. ⊕ concatenates the outputs, and · Wᵒ multiplies the concatenation by the learned output matrix Wᵒ.

zᵢ = Att(QWᵢQ, KWᵢK, VWᵢV)

zᵢ is the output of head i. Q, K, and V are the query, key, and value inputs, and Att is the scaled attention operation defined above. WᵢQ, WᵢK, and WᵢV denote the learnable query, key, and value projections for head i, respectively. The adjacent symbols denote matrix products. Each head therefore produces a result using its own projections before the outputs are concatenated.

The attention heads here refer to parallel computations. An entity head, in the paper’s terminology for the auxiliary task, means the beginning of an annotated span. The two uses of the word have different roles in the architecture. Attention heads decide how to combine available representations. The entity beginning branch receives supervision about where a mention starts.

How Star-Transformer passes sentence context

Each token position is assigned a satellite node. The satellite begins with the input vector for that position. A relay node begins with the average of the token vectors and gives every satellite a path to information from the wider sentence. The encoder then repeatedly updates the satellites and the relay. A satellite can retain information associated with the position itself, attend to a nearby position in either direction, or take in what the relay has gathered. The same connection pattern is used as these states change across rounds.

Cᵢᵗ = concat(hᵢ₋₁ᵗ⁻¹, hᵢᵗ⁻¹, hᵢ₊₁ᵗ⁻¹, eᵢ, sᵗ⁻¹)

Cᵢᵗ is the collection of contextual inputs for satellite i in update round t. hᵢ₋₁ᵗ⁻¹, hᵢᵗ⁻¹, and hᵢ₊₁ᵗ⁻¹ are the preceding, current, and following satellite states from the previous round t⁻¹. eᵢ is the initial input associated with position i in this update notation. sᵗ⁻¹ is the previous relay state. concat assembles these candidates for the attention operation. The sequence of candidates includes both the original input and the preceding contextual state of the current position.

hᵢᵗ = MulAtt(hᵢᵗ⁻¹, Cᵢᵗ, Cᵢᵗ)

hᵢᵗ is the satellite state produced by the attention update at position i and round t. MulAtt denotes multi-head attention. The previous state hᵢᵗ⁻¹ supplies the query. Cᵢᵗ supplies both the keys and values, so the satellite chooses among the candidates assembled for this round.

sᵗ = MulAtt(sᵗ⁻¹, concat(sᵗ⁻¹, Hᵗ), concat(sᵗ⁻¹, Hᵗ))

sᵗ is the relay state at round t, and sᵗ⁻¹ is its previous state. Hᵗ is the collection of satellite states from the current round. concat joins those states with the previous relay state, and this collection supplies the keys and values for MulAtt. The previous relay provides the query. The relay thus has access to the current information from across the sentence when it updates.

The ordering of these calculations explains how the shared relay can carry distant information. Satellites consult the relay from the preceding round, and the relay collects the satellite updates from the current round. Information from a distant position can affect the relay and then become available to another satellite. The available sentence-wide information has been collected into that shared representation. Direct consultation at a satellite stays limited to the positions and states in its own update set.

What the highway branch adds

The paper adds a highway branch to the satellite update. The authors motivate it as a way to preserve access to existing satellite features while allowing learned transformations and attention updates. A gate controls how the existing state and its transformed version contribute. The direct path through the highway branch also gives training gradients a route through a deep computation. The paper invokes that as a design motivation and cites Highway Networks.

g = σ(w₁hᵢ + b₁)

hᵢ is the satellite state for position i entering the highway calculation. w₁ is the learned weight for the gate, and b₁ is its learned bias. σ is the activation function used to produce the gate g. The gate determines how much of the transformed state is used relative to the direct path.

f(hᵢ) = w₂hᵢ + b₂

f is the learned transformation applied to satellite state hᵢ. w₂ and b₂ are the learned weight and bias for this transformation. Multiplication by w₂ changes the representation, and addition of b₂ shifts the result. These parameters belong to the transformation, while the parameters in the preceding equation determine the gate.

HW(hᵢ) = (1 − g) · hᵢ + g · f(hᵢ)

HW(hᵢ) is the highway output for state hᵢ. g is the gate and 1 − g gives the complementary weight on the existing state. f(hᵢ) is the transformed state. The products indicated by · apply the weights, and + combines the two contributions. Keeping a route for hᵢ lets the branch carry an existing feature through the update when the learned transformation would contribute little to it.

hᵢ,updated = HW(hᵢ) + MulAtt(hᵢ, Cᵢ, Cᵢ)

hᵢ,updated denotes the new satellite state at position i, while hᵢ on the right is the state used as input to this calculation. HW is the highway operation, MulAtt is the multi-head attention operation, and Cᵢ is the context collection for the current update. The attention output and the highway output are added. The update consequently incorporates both the gated computation on the satellite’s own representation and information collected from the positions it can attend to.

How the dependency graph changes which words can interact

The graph layer uses the words as nodes and syntactic dependencies as directed edges. DDParser supplies those dependencies. Once the graph is available, a node attends to its allowed neighbors. This makes the graph’s computation sensitive to a kind of structure different from the linear order used to select adjacent satellites. Two positions connected by syntax can exchange evidence even when they are separated in the sentence. The operation begins from the contextual representations, so the graph adds information to words already represented in their sentence context.

The links determine which neighbors are eligible. A learned attention mechanism determines how much each eligible neighbor contributes. The authors’ rationale is that, where the parser’s connections reflect the internal structure of a phrase, the word representations can become more informative for recognizing that phrase. The graph does not receive the entity annotation as its edge set. It uses the approach cited as Graph Attention Networks.

eᵢⱼ = att(Whᵢ, Whⱼ)

i is the receiving node, and j is a neighbor whose contribution is being assessed. hᵢ and hⱼ are their input feature vectors. W is a learned projection applied to each. att is the learned compatibility function, and eᵢⱼ is the unnormalized score for neighbor j in the update of node i. This score is local to the directed relation being considered for the update.

αᵢⱼ = softmaxⱼ(eᵢⱼ)

αᵢⱼ is the normalized attention weight for neighbor j at node i. eᵢⱼ is its unnormalized score. The j on softmaxⱼ indicates that the normalization runs over the candidate neighbors of i. A score is interpreted relative to the other scores in that neighborhood.

αᵢⱼ = exp(eᵢⱼ) / ∑ₖ∈Nᵢ exp(eᵢₖ)

exp is the exponential function. The numerator uses the score eᵢⱼ for the neighbor currently being weighted. The denominator uses ∑ to sum the exponentiated scores eᵢₖ over nodes k belonging to neighborhood Nᵢ, as indicated by ∈. Dividing by that sum gives the weight αᵢⱼ. Here k is a neighbor index, while i stays fixed for the whole normalization.

αᵢⱼ = exp(LeakyReLU(aᵀ[Whᵢ ⊕ Whⱼ])) /
       ∑ₖ∈Nᵢ exp(LeakyReLU(aᵀ[Whᵢ ⊕ Whₖ]))

This writes the score inside the normalization explicitly. Whᵢ, Whⱼ, and Whₖ are the projected representations of node i and candidate neighbors j and k. ⊕ concatenates the projected pair in brackets. a is a learned attention vector and aᵀ is its transpose, used here to turn that pair into a scalar score. LeakyReLU is the activation applied to the score before exp exponentiates it. Nᵢ is the receiving node’s neighborhood, ∈ indicates membership, and ∑ adds the values in the denominator. αᵢⱼ is the resulting weight for the particular neighbor j.

The graph has multiple attention heads. The equation averages their weighted contributions inside an activation. As in the sentence encoder, parallel heads let the computation learn multiple ways of weighing the available inputs. Here the available inputs are determined by the dependency graph.

h′ᵢ = σ((1 / K) ∑ₖ₌₁ᴷ ∑ⱼ∈Nᵢ αᵏᵢⱼ Wʲ⁰hⱼ)

In this equation Wʲ⁰ denotes the shared projection symbol W of the graph update, applied to the feature vector hⱼ at neighbor j. h′ᵢ is the updated feature vector at node i, σ is the output activation, and K is the number of graph attention heads. The outer sum runs over heads indexed by k. The inner sum runs over j in Nᵢ, the set of neighbors of node i. αᵏᵢⱼ is the weight assigned by head k to neighbor j for node i. The factor 1 / K averages the head contributions. The lower bound 1 begins the head index.

How the beginning and ending tasks enter recognition

A beginning label says that a mention starts at a position. An ending label says that a mention stops there. A position inside a longer mention can belong to the entity without being either edge, and a mention that occupies a single position has its beginning and ending at that same position. The two tasks therefore take complementary views of the annotated span. Treating them as binary predictions also lets their supervision apply across entity categories. A beginning is a beginning regardless of which full recognition label the decoder ultimately assigns.

The authors use separate GRU layers for these tasks. They refer to the beginning as the head and the ending as the tail. These words designate positions in the annotated entity. A syntactic head, by contrast, is a word involved in a grammatical dependency. The architecture obtains its graph edges and its supervised entity boundaries from different sources.

Hʰ = GRUhead(xᵢ)

xᵢ denotes the token input at position i, in the sequence processed by the boundary branch. GRUhead is the recurrent layer trained for predicting entity beginnings. Hʰ denotes the hidden representation from that branch. Its features carry information used by the beginning task and enter the recognition computation.

Hᵗ = GRUtail(xᵢ)

GRUtail is the separate recurrent layer for predicting entity endings. It receives the token input xᵢ at position i as part of the sequence. Hᵗ denotes the hidden representation produced for the ending task. The superscript here denotes the tail branch. In the relay equation, the same letter was used for the update round of the satellite-state collection.

H = W₁ · Hʰ + W₂ · Hᵗ + W₃ · Hᴳᴬᵀ

H is the final representation passed to the conditional random field. Hʰ contains the beginning-branch features, Hᵗ contains the ending-branch features, and Hᴳᴬᵀ is the dependency graph output. W₁, W₂, and W₃ are learnable parameters for the respective contributions, · indicates their application, and + adds the resulting features. The equation puts the outputs into a common representation from which the sequence can be labeled.

Feature combination lets the final recognizer use partial evidence. For example, features useful for the ending task can help the decoder assess whether it should continue the span at the next position. Features from the graph can simultaneously supply evidence about how neighboring words relate to the current position. The CRF considers the label sequence using the combined representation. The paper defines the inputs to this decision through learned features and gives no rule that imposes the binary predictions as required endpoints.

Labels, supervision, and loss

The main task uses BIESO labels. B denotes the beginning of a mention that spans multiple positions, I its interior, and E its end. S marks a mention that fits in a single position. O marks a position outside annotated mentions. Within this labeling scheme the system predicts the entity category as part of recognition. Boundary supervision can be drawn from the same annotations because the full labels already identify where the annotated spans start and finish. The auxiliary objectives change the training signal applied to the boundary branches without needing a further source of annotated spans.

The objective adds the losses for beginning prediction, ending prediction, and sequence labels. The paper describes the losses in terms of cross-entropy for boundary and recognition categories. Cross-entropy measures how well predicted probabilities agree with the observed labels. The architecture also specifies a CRF for sequence decoding. The loss equation states how the objectives are combined and leaves their internal scoring calculations unnamed beyond those descriptions.

Lmulti = Lhead + Ltail + Llabel

Lmulti is the overall training loss. Lhead is the loss for predicting mention beginnings, Ltail is the loss for predicting mention endings, and Llabel is the loss for the recognition labels. The plus signs indicate that training minimizes their sum. The equation gives each term an additive contribution without showing separate coefficients for the terms. The learned projections in the feature combination are parameters of the recognizer and play a different role from weights on the training losses.

For each corpus, the authors follow a split used in earlier work. The input pipeline uses the pretrained embedding resource and the dependency parser named above. The annotations give the sequence labels and, through the edges of the annotated spans, the targets for the auxiliary tasks. At prediction time the output described in the paper is the CRF’s recognition sequence, using features computed from the input. The authors report releasing the implementation as Boundary-Enhanced-NER.

Experiments and results

News text and social media put different demands on recognition

OntoNotes V4.0 is a Chinese news dataset. The authors follow the split used by Zhang and Yang. This makes their results comparable to earlier numbers reported under that division of the corpus. News is also the domain on which they look closely at the role of phrase structure. Their explanation of the graph component draws on the possibility that recognizable entities in OntoNotes have recurring internal patterns. The earlier split is the one used in Chinese NER Using Lattice LSTM.

OntoNotes V5.0 also supplies Chinese news text. The paper describes it as larger and as covering more entity types than V4.0. For this version the authors follow the split used by Jie and Lu. A result reported for one version therefore carries information about its particular corpus, annotation categories, and evaluation partition. Each version has its own comparison with earlier systems. The corpus is described in Towards Robust Linguistic Analysis using OntoNotes.

The Weibo dataset contains annotated messages from Sina Weibo. The authors use the split from Peng and Dredze. The table reports named entities and nominal mentions separately as well as an overall score. Named entities correspond to the kind of entities reported for OntoNotes. Nominal mentions are noun-like expressions that refer to something, so the Weibo evaluation includes a group whose role can be understood without assuming it is a proper name. This distinction becomes important when graph attention changes the category scores by different amounts. The split comes from Named Entity Recognition for Chinese Social Media with Jointly Trained Embeddings.

The authors use precision, recall, and F1. Precision describes how much of what the system returned agrees with the annotations. Recall describes how much of the material annotated for recognition the system recovered. F1 combines precision and recall into a single score that reflects both. The separate measures are useful because identifying more entities can also produce more incorrect predictions. The reported recognition scores below refer to the paper’s evaluations under the cited splits. The results table gives a score under each dataset or Weibo category, with no additional partition label on individual rows.

How the comparisons are organized

The authors compare their systems with results attributed to earlier Chinese recognition work. The earlier approaches include the lattice method of Zhang and Yang, the lexicon approach of Ma and colleagues, and the flat lattice approach of Li and colleagues. The comparison also includes dependency-guided sequence labeling by Jie and Lu and previously reported graph approaches. The entries available vary across the corpora. Some earlier systems have F1 values without separate precision and recall, and the OntoNotes V5.0 comparison has fewer reported results from earlier work than the V4.0 or Weibo comparisons.

The Star-Transformer system is the authors’ own baseline. They compare it with a version that adds the graph attention network, a version that adds the beginning and ending tasks, and the complete version with both additions. In the charts, MultiTask denotes the auxiliary boundary tasks and GAT denotes the dependency graph attention layer. Each chart includes the strongest earlier F1 entry reported for the corresponding corpus or aggregate and the authors’ configurations. That arrangement preserves both comparisons the paper needs. The earlier entry situates the result among prior reports, while the comparison within the Star-Transformer family tests what changes when the boundary components are present.

OntoNotes V4.0

On the OntoNotes V4.0 split, the complete system reaches F1 of 79.95%, with precision of 79.25% and recall of 80.66%. The latter is close to the 80.78% recall of the version with the auxiliary tasks alone. The complete system has the higher precision and F1 of those two configurations. The strongest earlier F1 listed on this split is 76.45% for FLAT. The Star-Transformer baseline scores 74.92% F1, so the highest result in this comparison comes from adding the boundary components to a baseline that begins below the best earlier entry.

OntoNotes V4.0 F1 across earlier work and Star-Transformer configurations

The full system has the highest F1 and the auxiliary tasks account for most of the improvement over Star alone.

OntoNotes V4.0 F1 across earlier work and Star-Transformer configurationsFLAT: 76.45FLAT76.45Star: 74.92Star74.92Star + GAT: 76.67Star + GAT76.67Star + MultiTask: 79.69Star + MultiTask79.69Star + GAT + MultiTask (this paper): 79.95Star + GAT + MultiTask (this paper)79.95
The numbers
System or settingF1 %
FLAT76.45
Star74.92
Star + GAT76.67
Star + MultiTask79.69
Star + GAT + MultiTask (this paper)79.95

The baseline has precision of 73.40% and recall of 76.50%. Adding the graph produces precision of 77.33% and recall of 76.03%. On this split, the F1 improvement from graph attention alone comes with higher precision and slightly lower recall. Adding the auxiliary tasks alone gives precision of 78.64% alongside its higher recall. Comparing the complete system with the auxiliary-only version shows how limited the further movement in aggregate F1 is once explicit boundary supervision is present. The error breakdown gives a more detailed view of what changes.

OntoNotes V5.0

The complete system records F1 of 79.53% on OntoNotes V5.0. Its precision is 78.22% and its recall is 80.88%. The earlier dependency-guided result reported from Jie and Lu is 77.40% F1, with 77.40% precision and 77.41% recall. The Star-Transformer baseline reports 75.53% F1. As in V4.0, each addition on its own improves F1 over the baseline and the complete system has the highest F1 among the reported configurations.

OntoNotes V5.0 F1 across earlier work and Star-Transformer configurations

Both additions improve F1 over Star on this split, and the complete system finishes highest.

OntoNotes V5.0 F1 across earlier work and Star-Transformer configurationsJie and Lu: 77.40Jie and Lu77.40Star: 75.53Star75.53Star + GAT: 78.44Star + GAT78.44Star + MultiTask: 78.79Star + MultiTask78.79Star + GAT + MultiTask (this paper): 79.53Star + GAT + MultiTask (this paper)79.53
The numbers
System or settingF1 %
Jie and Lu77.40
Star75.53
Star + GAT78.44
Star + MultiTask78.79
Star + GAT + MultiTask (this paper)79.53

On this split the baseline records precision of 75.41% and recall of 75.66%. Graph attention alone raises both to 77.03% precision and 79.90% recall. The auxiliary tasks alone produce 77.60% precision and 80.01% recall. The complete system has higher precision and recall than either single addition. The way the graph contributes differs from its precision-led result on V4.0. That variation matters when the authors ask whether a common architectural change leads to a common pattern of recognition errors.

Weibo

On Weibo, the Star-Transformer baseline reaches 68.15% overall F1, exceeding the earlier overall values listed by the authors. The strongest of those is 63.63%, from Tang and colleagues. Each addition improves on Star alone in overall F1. The complete system reaches 70.14% overall F1. The combined result gives the authors evidence that the approach can help on social media as well as on the news data, even though the comparison between Weibo categories changes the picture of which configuration is strongest.

Weibo overall F1 across earlier work and Star-Transformer configurations

Star already leads the listed earlier systems, and the combined boundary enhancements provide the highest overall F1.

Weibo overall F1 across earlier work and Star-Transformer configurationsTang and colleagues: 63.63Tang and colleagues63.63Star: 68.15Star68.15Star + GAT: 68.34Star + GAT68.34Star + MultiTask: 68.61Star + MultiTask68.61Star + GAT + MultiTask (this paper): 70.14Star + GAT + MultiTask (this paper)70.14
The numbers
System or settingF1 %
Tang and colleagues63.63
Star68.15
Star + GAT68.34
Star + MultiTask68.61
Star + GAT + MultiTask (this paper)70.14

For Weibo named entities, the baseline scores 65.37% F1, graph attention alone scores 67.38%, and the auxiliary tasks alone score 67.58%. The complete system reaches 69.50% F1 for this category, with precision of 78.92% and recall of 62.09%. The auxiliary-only version reaches the higher precision of 80.39%, with recall of 58.29%. The complete system’s named-entity result reflects better recall alongside lower precision than the auxiliary-only result.

For Weibo nominal mentions, the baseline reaches 77.46% F1. Graph attention alone scores 76.79%, the auxiliary-only version scores 77.78%, and the complete system scores 77.33%. Adding the graph to Star by itself raises nominal-mention precision from 88.16% to 90.85%, while recall falls from 69.07% to 66.49%. The auxiliary-only and complete systems both report nominal-mention recall of 68.56%. Their precision differs, with 89.86% for the auxiliary-only configuration and 88.67% for the complete system. Thus the configuration that leads on overall F1 and on named entities gives up some precision on nominal mentions relative to the strongest configuration for that category.

Reading the categories separately helps interpret the social-media result. Improved recognition of named entities accompanies a smaller and less consistent change for nominal mentions. The overall score is reported directly by the paper and serves as the corpus-wide measure for ranking the configurations. The category columns answer a different question about what the recognizer is recovering within that corpus. Both are needed to describe what the complete system does on Weibo.

What the ablations show

Comparing each addition with the same baseline

The four Star-Transformer configurations form a controlled comparison at the level of architectural components. Starting from Star, the paper adds grammatical graph attention, auxiliary boundary supervision, or both. This makes it possible to read the result of introducing one component by itself and the result of introducing it in the presence of the other. An earlier system’s score gives context about benchmark performance. It cannot answer the same question because an earlier system may differ from the proposed system in several parts of its architecture and training.

In aggregate recognition F1, the auxiliary tasks alone score above graph attention alone on each of the reported evaluations. The V4.0 numbers make that ordering especially clear. The multitask version improves precision and recall over Star, while the graph-only version improves precision and has slightly lower recall. On V5.0, both additions improve both measures. These comparisons support the authors’ decision to treat boundary supervision as a distinct source of information. The evidence concerns the beginning and ending tasks as a package, including the recurrent representations associated with them.

The complete system has the highest overall F1 for Weibo and the highest F1 on each OntoNotes version. At the same time, an increase in aggregate performance can coexist with a decline on a particular measure. The complete V4.0 system gives up a little recall relative to the auxiliary-only version. The complete Weibo system gives up nominal-mention F1 relative to that version. The stronger aggregate result arises from the performance of the combined recognizer across the evaluated labels, rather than from every component improving every individual score.

Distinguishing types, missed identifications, and boundaries

The authors count type errors, unidentification errors, and boundary errors for their configurations on OntoNotes. A type error concerns the assigned category. An unidentification error concerns a mention the system fails to identify. A boundary error concerns the extent of a mention. This division helps connect the experiments to the motivation for the method. Aggregate F1 shows how well predictions agree with the annotations overall. The error categories show whether a change is associated with fewer errors near the span edges, fewer missing identifications, or fewer mistakes in category assignment.

On OntoNotes V4.0, the baseline has 2236 type errors, 1912 unidentification errors, and 151 boundary errors. With graph attention alone the corresponding counts are 1787, 1916, and 140. The graph-only configuration therefore makes fewer type and boundary errors, with a slightly higher count of missed identifications under the paper’s categories. That is consistent with the precision and recall pattern on V4.0. The graph improves the system’s F1 while leaving evidence of a tradeoff in which mentions it identifies.

With the auxiliary tasks alone, V4.0 type errors fall to 1772, unidentification errors to 1563, and boundary errors to 114. The authors highlight the reduction from 151 to 114 in boundary mistakes when the beginning and ending tasks are added to Star. This is the comparison that most directly checks the intended effect of explicit boundary supervision. It also improves the other error categories. A method focused on span edges is therefore associated with changes in the wider recognition result, as would be expected when location and type are decided by the same sequence recognizer.

The complete system on V4.0 records 1701 type errors, 1564 unidentification errors, and 108 boundary errors. It gives the lowest type and boundary counts among the authors’ configurations for this version. The auxiliary-only version retains the lowest unidentification count. This distinction is easy to miss in the F1 ranking. The addition of graph features to explicit boundary supervision improves two of the reported error counts and produces the highest F1, while the result for missed identifications is almost unchanged.

When stronger recognition comes with more boundary errors

The V5.0 comparison shows that success on the overall task can come apart from success on the span edges. Star records 1921 type errors, 1896 unidentification errors, and 139 boundary errors. Star with graph attention records 1877 type errors, 1596 unidentification errors, and 169 boundary errors. The graph-only version improves F1 and identifies more mentions under the error analysis, while recording more boundary mistakes. On this dataset, graphical access to phrase structure appears to help the recognizer find plausible material for labeling without reliably resolving its full extent.

The auxiliary-only version on V5.0 records 1814 type errors, 1590 unidentification errors, and 127 boundary errors. The full system records 1762, 1505, and 121, respectively. Compared with the graph-only version, the complete version improves each count, including the boundary count that graph attention by itself worsened. Compared with the auxiliary-only system, the full configuration also improves all three counts. These comparisons are consistent with the architecture’s intended division of work. The graph enriches the representations of connected words, and the auxiliary tasks add supervision specifically about the positions where spans open and close.

The changes in type errors also matter. The stated purpose is stronger boundary detection, but the combined representations are fed into the same decoder that selects entity labels. The type error counts improve across the configurations on both OntoNotes versions as the two enhancements are introduced. This shows that the effects reach the full recognition decision. The table does not track the same individual mentions across configurations, so it cannot show whether a corrected category arose because a span was represented more coherently, because a different span was found, or because other evidence changed the prediction. The measured result is the change in the error totals.

Names and nominal mentions respond differently

For Weibo the category scores offer a different kind of analysis. The paper interprets named entities as closer to the more regular expressions it discusses for OntoNotes. It attributes the smaller or weaker effect of graph attention on nominal mentions to their short spans and limited internal structure. That explanation fits the purpose of the graph component. Where there is little internal material to connect, a dependency-based operation has fewer opportunities to enrich a mention through relations among its own words.

The graphs and category scores show an association compatible with that explanation. On Weibo, graph attention alone improves F1 for named entities and lowers it for nominal mentions. It also shifts nominal mentions towards higher precision and lower recall. With both additions, scored named-entity recall is highest among the authors’ Weibo configurations, while nominal-mention F1 is highest with the auxiliary tasks alone. These outcomes indicate that a method designed to exploit internal structure can be more helpful for some kinds of mentions than others within the same corpus.

The paper’s ablations vary the presence of the graph layer and the presence of the shared package of boundary tasks. They do not vary mention length, parser accuracy, or the form of individual graph edges. The observed difference between named and nominal mentions motivates the authors’ account of why the graph can help. The comparison does not establish shortness or limited internal structure as the cause of that difference. On OntoNotes, the fact that graph attention has opposite effects on the two baseline boundary error counts likewise cautions against treating grammatical structure as an automatic guide to annotators’ span edges.

Limitations

Where the authors qualify their account

The authors motivate the dependency layer by identifying a weakness in sentence-level context encoding. Star-Transformer can carry information across distance, while the paper sees it as less well equipped to represent how particular words form a phrase. The authors also treat the graph as an indirect way to supply boundary evidence. They add explicit beginning and ending supervision because learning from internal grammatical relationships leaves the boundaries themselves insufficiently specified. The architecture reflects this qualification by keeping the two kinds of evidence available to the final decoder.

The other qualification the authors make concerns nominal mentions in Weibo. They describe them as short and less structured, and they connect these properties to the weaker impact of the dependency graph. The measurements show that full-system F1 for nominal mentions lies below the auxiliary-only result. This is a meaningful qualification of their corpus-wide conclusions because a reader interested mainly in nominal mentions would rank the configurations differently from a reader interested in the overall Weibo score.

The authors describe the complete system as lightweight and the results as evidence that the approach can work for both news and social media. The architectural rationale for the first description is Star-Transformer’s sparse connectivity. The empirical basis for the second is successful recognition on the two OntoNotes versions and Weibo. The paper reports recognition scores and error counts. It does not include timing, memory, parameter-count, or resource comparisons that would quantify the efficiency of the complete system, including its recurrent branches and dependency parser.

What the experimental design leaves open

The datasets establish the scope of the performance claim. The experiments cover Chinese news text and annotated Sina Weibo posts under the named splits. Equal success across other domains, other segmentation conventions, other entity inventories, or other languages would require evidence from those settings. Even within these evaluations, the earlier comparison has uneven coverage. The reported lead over earlier results refers to the entries available for the same corpus or category. OntoNotes V5.0 in particular has a narrower earlier comparison in the results table than the other splits.

The dependency component relies on an externally supplied parse. A wrong parsing link can change which words are allowed to exchange information, and a missed link can remove a route the graph would otherwise offer. The paper identifies DDParser but reports no test that changes the parser, substitutes alternative edges, or measures recognition as a function of parsing quality. Its results consequently support the usefulness of this graph component as implemented, within the evaluated system. They leave open how much of the benefit depends on the choice of parser and the quality of dependencies in each corpus.

For much the same reason, the graph activation and F1 scores cannot by themselves verify the proposed explanation about phrase structure. The graph adds both a particular set of connections and learned transformations. A comparison using alternative connections or a comparably sized layer with a different neighborhood would help identify which part of that addition accounts for the observed changes. The paper’s graph ablation measures the whole component. Its error totals show the effects of adding it, but they do not measure the correctness of edges within annotated mentions or how much the system attends to those edges in successful cases.

The character representation also operates inside words supplied to the system. It exposes the sequence of characters from which a word is composed, addressing some of the dependence on the word lookup. The paper does not report an experiment that deliberately changes the segmentation or distinguishes errors originating in segmentation from those made later. Its findings therefore concern the complete input representation under the segmentation used in the experiments. The degree to which character features protect the recognizer against specific segmentation mistakes remains undetermined.

The explicit tasks are tested together. The comparisons leave unresolved whether beginnings or endings account for more of the improvement. They also leave open how much comes from the supervision and how much from the additional recurrent computations that supply features to the CRF. There are no separate beginning and ending prediction scores in the results table. The reduction in boundary errors shows a benefit for the recognizer when the two branches are trained and used together. It provides no direct measurement of how accurately each branch identifies its own edge.

The error counts offer an aggregate view of the remaining mistakes. The paper does not break down boundary errors into spans that start too early, start too late, stop too early, or stop too late. It does not report whether corrections concentrate in particular entity types or particular mention lengths. This limits the precision of its explanation for short nominal mentions. The result for nominal mentions shows a real difference between configurations in the reported evaluation, while the reason for that difference is an interpretation based on the category’s structure.

Finally, the tabulated results are point estimates. The paper gives no variation across repeated runs or uncertainty estimates for the comparisons. Some of the most informative changes involve modest movements in F1 or shifts in opposite directions between precision and recall. The exact ordering is the ordering of the reported scores. The larger pattern is that the full system leads in the corpus-wide comparisons and the auxiliary boundary tasks improve the baseline boundary counts on both OntoNotes versions. The magnitude and stability of smaller differences remain open.

What came after

The paper establishes a comparison between two ways of making mention boundaries more visible to a Chinese recognizer. Grammatical links supply evidence about how a phrase fits together, and supervised edge predictions supply evidence about where the annotated span begins and ends. The results leave open whether either benefit carries over to other encoders or corpora. There are no documented follow-up studies to report here, so whether later work reused either mechanism or tested the two together remains undetermined.

Cite

Cite as Chun Chen and Fang Kong. 2021. Enhancing Entity Boundary Detection for Better Chinese Named Entity Recognition. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2021.acl-short.4

@inproceedings{chen2021enhancing,
  title = {{Enhancing Entity Boundary Detection for Better Chinese Named Entity Recognition}},
  author = {Chun Chen and Fang Kong},
  booktitle = {Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 2: Short Papers)},
  year = {2021},
  doi = {10.18653/v1/2021.acl-short.4},
  url = {https://doi.org/10.18653/v1/2021.acl-short.4}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/chen-2021-enhancing-entity-boundary-detection-better/