Elamur Research

Gated Recursive Neural Network for Chinese Word Segmentation

Paper · 2015 · Xinchi Chen, Xipeng Qiu, Chenxi Zhu et al.

Summary

Written Chinese generally gives a segmenter a continuous string of characters. To divide it into words, the system has to decide where each word begins and ends, even when several adjacent characters could plausibly go together. Chen and colleagues approach Chinese word segmentation as character tagging. They assign each character a label for its position within a word, then use the labels to recover the words. Their research question is how the system should combine the evidence in nearby characters before it scores those labels. Tokenization and segmentation

Earlier neural taggers looked up a vector for each character and joined the vectors from a local window into one input. The authors instead build representations of overlapping character spans, starting with adjacent characters and working up to the full window. At each step, reset gates control how much of each shorter span goes into a new combination. Update gates decide how to mix that new representation with the shorter representations already available. The tag scorer sees the representations at every depth, so it can draw on an individual character, a short combination, or a broader span. The authors train the network in stages, adding a layer at a time and starting each stage from the parameters learned in the preceding one.

With randomly initialized character vectors, the gated recursive network reached test F1 scores of 95.9 on PKU, 96.2 on MSRA, and 95.3 on CTB6, ahead of the earlier neural taggers in the paper's comparisons. With Wikipedia-pretrained character vectors and explicit features for adjacent pairs, it reached 96.4 on PKU, 97.6 on MSRA, and 95.8 on CTB6. On the NLPCC 2015 microblog test set, the same combination of input features yielded 94.8 F1, compared with 94.0 for FNLP and 93.3 for CRF++.

The depth experiment on PKU shows why the training schedule matters. Adding layers under direct training eventually lowered test F1, while staged training kept the deeper configurations around the best score in that comparison. Explicit adjacent-pair features also helped, but the network could already outperform the earlier neural systems with character vectors alone. Together, the results support learning character combinations inside the tagger. They leave open how much of the gain comes from each kind of gate and whether the same approach would help on other sequence-labeling tasks.

Deep dive: Gated Recursive Neural Network for Chinese Word Segmentation

Chen and colleagues use gated recursive networks to find Chinese word boundaries by learning which combinations of nearby characters matter. · about 38 minutes to read

The problem and its context

Turning a continuous string into words

A Chinese segmenter receives the characters of a sentence in order. It must place boundaries that turn that sequence into words. The absence of whitespace between words makes this a substantive decision before further Chinese language processing can use words as units. Knowing that a particular pair of characters can form a word only goes so far. The character to its left may form a plausible pair with the first character, and the character to its right may form another with the second. A choice changes which combinations remain available to the rest of the sentence.

The paper illustrates that problem with 雨天地面积水 and focuses on 地. One reading of the sentence divides the relevant part into 雨天, 地面, and 积水. Under that analysis, 地 begins 地面. Its left neighbor 天 can also combine with it as 天地, which would give 地 a different position. The character 面 participates in an overlapping possibility as well. The example gives a reason to examine several neighboring combinations before deciding what 地 is doing. A system that regards every plausible pair as equally persuasive will have difficulty settling on a consistent sequence of words.

The character-tagging formulation turns those competing divisions into choices among labels at each position. A character at the beginning of a word receives B, an interior character receives M, and the final character receives E. A character that forms a word on its own receives S. If 地 starts 地面, 地 gets B and 面 gets E. A different boundary can change both labels. Once the tagger has produced a coherent sequence, the word divisions can be read from it directly. The paper traces this formulation to earlier work on Chinese Word Segmentation as Character Tagging.

This formulation separates two kinds of evidence. The characters around 地 help determine which roles are plausible for 地 itself. The labels chosen at adjacent positions help determine which of those roles fit together. A tagger can therefore give 地 a high local score for being a beginning while still letting evidence elsewhere in the sequence affect the final decision. A local scoring function and a sentence-wide decoding procedure serve different purposes.

Why the representation of context mattered

The authors describe earlier supervised segmenters as relying heavily on discrete features. A designer could specify a template that checks the identity of the target character, or one that checks a particular configuration of characters around it. If the training corpus exhibits a combination covered by that template, the system can learn a weight associated with it. A template gives the system a direct way to distinguish configurations that might appear very similar when their characters are considered separately.

The difficulty is deciding which configurations to represent. A designer can use linguistic knowledge to propose combinations or use information from a corpus to identify promising ones. Each new template can introduce a large family of possible features. As that family grows, storing the features becomes more expensive, and the training material may give little evidence for many of them. The authors identify size and overfitting as practical concerns. A feature that rewards a pattern in one corpus may be responding to an accident of that corpus, especially when the pattern appears seldom.

Earlier neural taggers offered a different representation. They assigned each character a dense numerical vector, or embedding. The entries in the vector are learned and can contribute together to a tagging decision. At each position, the tagger collected the embeddings in a local window, concatenated them in order, and passed the resulting vector through a neural layer. This approach kept the positions of the characters available to the tagger and reduced the need to design a separate feature for every possible character combination. The paper situates these systems in the sequence-labeling tradition of Natural Language Processing (almost) from Scratch, including Deep Learning for Chinese Word Segmentation and POS Tagging.

Concatenation arranges the inputs without doing any computation between them. The next layer can combine entries from different positions, so the older approach can express interactions. The authors' concern is how much complicated structure the tagger is likely to learn when its main tools are a single nonlinear transformation over the concatenated input and a transition matrix over labels. The two mechanisms can both affect a boundary decision, but only the nonlinear transformation operates on the characters. The transition matrix can reward successive labels that work together. It has no direct way to represent why two particular characters make a useful pair in this context.

Adding ordinary hidden layers was another possibility. The authors cite earlier neural segmentation work in which a deeper network had failed to beat a network with a single nonlinear layer. That observation matters because the ability to express a complicated function is different from the ability to fit it from the available training data. Depth can provide more opportunities to combine inputs while also making training harder. The proposed architecture addresses both points. It gives the hidden layers a specific pattern of connections, and it uses a training schedule intended to make those layers easier to fit.

Pei and colleagues had already made character–tag interactions more explicit through a neural tensor. The paper describes the number of tensor slices as a constraint on how many interactions that approach can represent, with additional slices increasing complexity. Pei's system also used embeddings for pairs of consecutive characters. An explicit pair feature offers a short path from the identity of two neighbors to a score, whether or not the other layers learn a good representation of that pair. Chen and colleagues ask how much of this work can be done systematically by the architecture itself.

Why use a recursive structure

A recursive network applies a composition operation repeatedly over a structure. In a tree, for instance, the representation of a parent can be calculated from the representations of its children. Applying a shared operation as the tree is traversed lets the same computation combine short expressions near the leaves and larger expressions farther up. The paper takes that idea and gives it a regular structure over character windows. The children of a node are neighboring spans that are already available in the preceding layer. This makes the composition order a property of the window. Parsing with Compositional Vector Grammars

At a given position, it is still possible that one of the shorter spans contributes stronger evidence than the whole combination. A straightforward recursive network asks a single learned transformation to create each parent representation from its children. Chen and colleagues add gates to give the computation more direct ways to filter and pass on information. They take inspiration from gated recurrent networks, where gates govern how information is carried or updated as the network proceeds through a sequence. Here the operation has two children, and the computation advances through increasing span sizes inside a window. Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation

The paper also discusses a gated recursive architecture used in machine translation. As Chen and colleagues describe it, that architecture addressed inputs of varying lengths and used an update mechanism. Their own unit also filters the two children before forming a candidate representation. This gives them a way to separate what goes into a proposed new combination from what the parent ultimately retains. On the Properties of Neural Machine Translation

The method, step by step

From character identities to local evidence

For each character in the sentence, the system takes a window centered on that character. It looks up a vector for every position in the window, including the target. A position before the start of the sentence takes the vector for a special start symbol. A position after the end takes the vector for an end symbol. A character outside the known inventory uses a separate unknown symbol. Thus a window near a sentence edge can have the same shape as a window in its interior. The special inputs also let the network distinguish an edge from an unrecognized character.

The choice of window defines the scope of the direct character evidence. The paper illustrates a window of size 5 with 2 positions on each side of the target. The tagger moves that window along the sentence, and successive windows overlap. A particular character can therefore appear as the target once and as context for multiple neighboring targets. This arrangement still assigns the tag score vector to the center position. The wider span supplies evidence about that position's label.

From a character window to sentence segmentation

The steps in order.

From a character window to sentence segmentationStep 1: Collect the target and its neighboring characters1. Collect the target and its neighboring charactersStep 2: Look up a vector for each position2. Look up a vector for each positionStep 3: Build overlapping spans from neighboring nodes3. Build overlapping spans from neighboring nodesStep 4: Filter children before forming a new combination4. Filter children before forming a new combinationStep 5: Mix the candidate with the original child vectors5. Mix the candidate with the original child vectorsStep 6: Concatenate representations and score the target tags6. Concatenate representations and score the target tagsStep 7: Decode the best tag sequence with Viterbi7. Decode the best tag sequence with Viterbi

The window and lookup can be stated separately from the rest of the network. The paper defines a character set C with size |C| and stores its vectors in a matrix M with d rows and |C| columns. Here d is the length of each character embedding, and each column corresponds to a character in the lookup inventory. In the notation below, cᵢ denotes the character at position i and eᵢ denotes the vector returned for it. The paper distinguishes these by typesetting the vector differently. Word embeddings

w₁ + w₂ + 1 = w

Here w₁ and w₂ are the lengths of the left and right context, respectively. The 1 accounts for the target itself, and w is the total window size. In a sentence written c₁:ₙ, n is the number of character positions and the colon indicates the range from the first position through n. A window around i can be written cᵢ₋w₁:ᵢ₊w₂, with the special symbols taking the places that fall outside the sentence.

The baseline calculation

The paper first describes the common local scorer so the change in the proposed network is easy to locate. The familiar approach joins the embeddings in window order into a single input aᵢ. For example, the entries for the character just before the target occupy their own block of the input vector. They stay in that block regardless of which character appears there. The total input size is the width of an embedding times the number of window positions.

H₁ = w × d

H₁ is the length of the concatenated input aᵢ. The symbol × denotes multiplication, and w and d are the window size and character vector width. The baseline then applies a learned affine transformation and a nonlinear function.

hᵢ = g(W₁aᵢ + b₁)

The index i identifies the target position. The vector hᵢ holds the hidden activations for that target. W₁ is the learned matrix with H₂ rows and H₁ columns, where H₂ is the number of hidden units. The learned offset b₁ has H₂ entries. The function g acts on each entry separately, and the paper gives the hyperbolic tangent, tanh, as an example. An entry of hᵢ can depend on inputs from several positions because a row of W₁ can give weight to several blocks of aᵢ.

fᵢ = W₂hᵢ + b₂

Here fᵢ is the vector of local scores for tagging character i. Its entries correspond to the tag set T, whose members are B, M, E, and S. The matrix W₂ has |T| rows and H₂ columns, and b₂ is an offset with |T| entries. Vertical bars around a set denote its size. The output transformation has no activation function after the addition, so these entries are scores that can be combined with transition scores during decoding.

This baseline already gives the tagger access to every character in the window. The proposed change concerns the intermediate computation. Rather than asking one hidden layer to discover useful interactions from the flattened input, the new network explicitly computes representations for combinations of neighboring positions. It then makes those representations available alongside the original embeddings.

Building overlapping spans

The leaves of the recursive network are the embeddings in their original order. The layer immediately above them combines each neighboring pair. At the next layer, each node again combines neighboring nodes from below. The spans represented by those children overlap. One can contain the first part of the new span and the other its last part, with characters in the middle contributing through both children. Each higher layer has a shorter line of nodes, until the top has a single vector covering the window.

The result is a directed acyclic graph. The edges point up from a shorter span to a longer one, so every node can be evaluated after its children and there is no path that returns to an earlier node. It differs from a single binary tree over the window because one shorter span can help form more than one longer span. A pair in the middle can be used by a parent that extends it to the left and another parent that extends it to the right. The architecture thus preserves overlapping alternatives at the representation stage. It does not have to settle on a word boundary before evaluating larger context.

A plain recursive unit gives a starting point for understanding the gated version. It concatenates the two child vectors, transforms them, and applies a nonlinear function. Each parent has the same width as either child, so the same operation can be applied again at the next level.

hₚ = g(W[hₗ; hᵣ])

The vectors hₗ and hᵣ are the representations of the left and right children. Square brackets with a semicolon indicate vertical concatenation, with the left vector stacked above the right one. The matrix W has d rows and 2d columns. It maps the stacked input back to width d. The function g is the elementwise nonlinearity, and hₚ is the resulting parent vector. The paper presents this as a shared composition rule for an ordinary recursive network.

The gated unit keeps the bottom-up computation but provides additional routes from the children to the parent. One route produces a new representation from filtered versions of the children. The others pass information from the child vectors themselves into the parent output. A parent can therefore preserve part of a useful shorter-span representation while also introducing information about a broader combination.

Filtering the children and mixing the outputs

To describe the gated unit, write hⱼ⁽ˡ⁾ for the node at position j in recursion layer l. The index j can be read as the right endpoint of the span. At a higher layer the left child ends at j − 1, and the right child ends at j. The two children come from layer l − 1. At the base layer, l = 1, the node hⱼ⁽¹⁾ is simply the embedding eⱼ at position j in the window. Recursion proceeds from this layer through layer w.

The reset gates are calculated from the two children together. This joint calculation is important. How much information passes from the left child can depend on what is present in the right one, and the reverse is also possible. Each gate has one entry for each coordinate of the child it filters.

[rₗ; rᵣ] = σ(G[hⱼ₋₁⁽ˡ⁻¹⁾; hⱼ⁽ˡ⁻¹⁾])

Here rₗ and rᵣ are the left and right reset vectors of length d. The lower-case subscripts ₗ and ᵣ on r distinguish the children and are unrelated to the recursion layer l in the superscript. The inputs hⱼ₋₁⁽ˡ⁻¹⁾ and hⱼ⁽ˡ⁻¹⁾ are the left and right child vectors, respectively. G is a learned matrix of size 2d by 2d, and σ is the sigmoid function applied entry by entry. An entry close to the low end of the sigmoid range attenuates a child coordinate. An entry close to the high end lets much more of it through.

ĥⱼ⁽ˡ⁾ = tanh(Wĥ[rₗ ⊙ hⱼ₋₁⁽ˡ⁻¹⁾; rᵣ ⊙ hⱼ⁽ˡ⁻¹⁾])

The vector ĥⱼ⁽ˡ⁾ is the proposed new activation at node j in layer l. The operator ⊙ is elementwise multiplication, so a reset entry scales the corresponding coordinate of its child. Brackets stack the two filtered vectors. The learned matrix Wĥ has d rows and 2d columns, and tanh applies a nonlinear transformation separately to each output coordinate. Neither reset vector is a tag prediction. Its effect is on what information the candidate can use to represent the combined span.

The update gates have access to the candidate and the two original child vectors. The computation gives each of these sources a weight for every coordinate. The weights for a coordinate are normalized together. It helps to write the paper's update equation in two stages, first computing its unnormalized positive values, then dividing each one by the sum for its coordinate.

u = exp(U[ĥⱼ⁽ˡ⁾; hⱼ₋₁⁽ˡ⁻¹⁾; hⱼ⁽ˡ⁻¹⁾])

The learned matrix U has size 3d by 3d. Its input stacks the new candidate, the left child, and the right child, in that order. The function exp is applied elementwise and produces a positive vector u with 3d entries. The first block of d entries will supply the weights for the candidate, the next block those for the left child, and the last block those for the right child. Each entry can depend on information from the full stacked vector because of the multiplication by U.

Zₖ = ∑ᵢ₌₁³ u[d × (i − 1) + k]

Here Zₖ is the normalization constant for coordinate k, with k running from 1 through d. The sum runs over the 3 source blocks. In this formula i identifies a block, independent of the target-position index used earlier. The expression d × (i − 1) + k finds coordinate k within block i, and u in square brackets denotes the entry at that index. The normalization pairs corresponding coordinates across sources instead of pooling every coordinate in the concatenated vector.

[zₙ; zₗ; zᵣ] = [1/Z; 1/Z; 1/Z] ⊙ u

Here zₙ, zₗ, and zᵣ are the update vectors for the new activation, the left child, and the right child. Z is the vector of normalizers Zₖ, and 1/Z means the vector of their elementwise reciprocals. The three copies align with the three blocks of u. By multiplying corresponding entries, the expression gives each source its share of the weight at each coordinate. The weights are non-negative because the numerator and the normalizer are positive.

[zₙ]ₖ + [zₗ]ₖ + [zᵣ]ₖ = 1

In this expression [zₙ]ₖ, [zₗ]ₖ, and [zᵣ]ₖ are the three update weights at coordinate k. The sum is 1 for every coordinate from 1 through d. This constraint permits a mixture. One coordinate can be dominated by the candidate while another is supplied mainly by a child. There need be no single choice of the most useful source for the whole node.

hⱼ⁽ˡ⁾ = zₙ ⊙ ĥⱼ⁽ˡ⁾ + zₗ ⊙ hⱼ₋₁⁽ˡ⁻¹⁾ + zᵣ ⊙ hⱼ⁽ˡ⁻¹⁾     for l > 1

The left side is the final activation of the parent at node j in layer l. The first term weights the newly computed candidate. The other terms weight the original left and right child vectors. The addition takes place coordinate by coordinate. The condition l > 1 limits this calculation to nodes above the embedding layer. An entry suppressed by a reset gate before candidate formation can still reach the parent through the corresponding child update gate. The reset gates and update gates therefore answer distinct questions even when they operate on the same underlying information.

The example centered on 地 illustrates the intended effect. A representation that includes 地面 can contribute to a larger span, where other characters may give additional evidence about how to tag 地. The larger span can retain part of that pair representation while incorporating the neighboring material. Competing combinations can survive elsewhere in the graph and contribute different evidence. The paper pictures strong and weak information paths to convey this idea. In the equations, the gates implement graded weights, so the illustration is compatible with partial contributions from several sources.

Scoring tags and decoding the sentence

Once the network has finished computing representations for a window, it concatenates its nodes into an output for the central target. The calculation includes the embeddings at the bottom and the vectors for the various span lengths. A top vector summarizes the whole window, but the tag scorer can also reach the intermediate representations directly. That design matters when a particular pair gives clear local evidence that would be harder to recover from a single vector summarizing the entire window.

Q = q × d

Here q is the number of nodes whose vectors enter the concatenation, d is their common width, and Q is the length of the resulting feature vector. The paper calls the vector xᵢ, with i here indexing the target character. The exact contribution of each node to a particular tag is learned in the final scoring transformation.

yᵢ = Wₛxᵢ + bₛ

The vector yᵢ contains the scores for assigning the tags in T to the target at i. The matrix Wₛ has |T| rows and Q columns, and the offset bₛ has |T| entries. The subscript ₛ identifies the scoring parameters. Each row of Wₛ can use entries from any of the concatenated representations. Later, in the training formulas, the paper uses yᵢ for a reference tag sequence over a sentence. In this local equation it refers to the output score vector at one character.

The sentence decoder adds local tag scores to scores for adjacent tag pairs. Its transition matrix A has an entry for going from one tag to the next. A tag can score well in isolation and still lose to a different choice when the decoder counts the transitions it would introduce. The objective is a score over complete tag sequences, so the decoder considers how decisions fit together across the sentence.

s(c₁:ₙ, t₁:ₙ, θ) = ∑ᵢ₌₁ⁿ (A[tᵢ₋₁, tᵢ] + fθ(tᵢ | cᵢ₋w₁:ᵢ₊w₂))

The function s gives a score to tag sequence t₁:ₙ for character sequence c₁:ₙ. The symbol θ stands for the learned parameters. The sum runs over character positions i. The matrix entry A[tᵢ₋₁, tᵢ] is the transition score from the preceding tag tᵢ₋₁ to the current tag tᵢ. The first term in the sum thus uses t₀ as the predecessor at the sentence boundary. The function fθ takes the entry for tᵢ from the local score vector computed using the window around i. The vertical bar separates the tag from the character context on which its score depends. The terms are scores, and the equation adds them directly.

θ = (M, Wₛ, bₛ, Wĥ, U, G, A)

This tuple lists the parameters of the character-based architecture in the score equation. M is the embedding lookup, Wₛ and bₛ are the final tag scorer's matrix and offset, Wĥ constructs the candidate activation, U computes the update values before normalization, G computes the reset values, and A supplies the transition scores.

Viterbi decoding finds the highest-scoring sequence. The score can be optimized in stages because extending a partial sequence only requires its score so far and its last tag. At each position the decoder keeps the best partial sequence for each possible ending tag. The available continuations from two partial sequences ending in the same tag have the same future scoring terms, so the weaker of those sequences can be dropped. At the end the decoder follows the choices that produced the best score to recover the complete sequence. The word boundaries follow from the decoded labels.

Learning from the annotated sentences

The authors train with a structured max-margin objective. Each training sentence comes with the tag sequence derived from its reference segmentation. The desired outcome is for the reference sequence to earn the highest score, with a larger lead over alternatives that disagree at more character positions. This connects the local scoring network and the tag transition parameters to a single objective over sentences.

Δ(yᵢ, ŷ) = ∑ⱼ₌₁ⁿ η 𝟙{yᵢ,ⱼ ≠ ŷⱼ}

In the training notation xᵢ is the input sentence for training example i, and yᵢ is its correct tag sequence. The alternative sequence is ŷ. The index j runs over the n characters in xᵢ. The quantities yᵢ,ⱼ and ŷⱼ are the reference and alternative tags at position j. The indicator 𝟙 contributes the error cost η when the tags differ and contributes nothing when they agree. The total Δ is the margin for that alternative. It is measured in character tag errors, whereas the final segmentation evaluation counts complete words.

y* = arg max over ŷ ∈ Y(xᵢ) of s(xᵢ, ŷ, θ)

Here Y(xᵢ) is the set of possible tag sequences for xᵢ. The operation arg max returns a sequence attaining the highest score. The notation y* denotes the prediction under the ordinary sentence score s with parameters θ. This is the decision the system needs to make during decoding, when the reference tags are unavailable.

s(xᵢ, yᵢ, θ) ≥ s(xᵢ, ŷ, θ) + Δ(yᵢ, ŷ)

The reference score on the left should be at least as large as the alternative's score plus its disagreement cost. The comparison is intended to hold for every alternative ŷ in Y(xᵢ). A prediction can rank below the reference and still violate this margin condition if its score remains too close. The training objective therefore distinguishes between a sentence where the reference narrowly wins and one where it wins by the desired margin.

ℓᵢ(θ) = max over ŷ ∈ Y(xᵢ) of (s(xᵢ, ŷ, θ) + Δ(yᵢ, ŷ)) − s(xᵢ, yᵢ, θ)

Here ℓᵢ is the loss for example i. The maximum searches for the largest score after adding the cost of disagreement with yᵢ. The score of the reference is then subtracted. Because the reference is among the options and has no disagreement with itself, the loss is non-negative. The alternative that matters for the update is the one with the highest cost-adjusted score. It can differ from the sequence that would win under ordinary decoding. Since the error cost also decomposes by character, it can be added to the local scores during the training search.

J(θ) = (1/m) ∑ᵢ₌₁ᵐ ℓᵢ(θ) + (λ/2) ‖θ‖₂²

The training objective J combines average example loss with a penalty on the size of the parameters. The index i ranges over the m examples. The factor λ determines the strength of the penalty, and ‖θ‖₂² is the sum of squared parameter values, written as the squared Euclidean norm. This term discourages large weights while the margin loss rewards separating reference sequences from competing ones.

The maximum in the example loss can switch abruptly between alternatives as the parameters change. At points where the objective has no ordinary gradient, the authors use a subgradient, a direction usable in a gradient-style update. They optimize in minibatches with diagonal AdaGrad, which adjusts each parameter's step size using the history for that parameter.

θₜ,ᵢ = θₜ₋₁,ᵢ − αgₜ,ᵢ / √(∑τ₌₁ᵗ gτ,ᵢ²)

Here t is the update step, i indexes a scalar parameter, and θₜ,ᵢ and θₜ₋₁,ᵢ are its values after and before the update. The initial learning rate is α. The current subgradient coordinate is gₜ,ᵢ, and gτ,ᵢ is that coordinate at a past or current step τ. The denominator takes the square root of the accumulated squared subgradients for this parameter. The history affects each coordinate separately.

Adding depth during training

The training schedule begins with a network that reads only the lowest layer. Once training at that depth converges, the authors add the next layer and use the previously learned parameters to initialize the parts already present. They repeat the procedure up to the top of the graph. Each stage trains against the segmentation labels. The new depth gives the scorer additional span representations while inheriting a system that already has experience scoring the labels from smaller spans.

The motivation is that updates to parameters farther from the scoring layer can become weak in a deep network. A shallow stage gives the lower parts of the network a supervised objective before they participate in a deeper computation. The authors also discuss overfitting and use dropout on the input layer. During training, dropout temporarily removes inputs independently at the chosen rate, along with their connections. This makes the network practice predicting tags when some of the features it usually receives are absent.

The settings selected on development data were a context window of 5, embedding width d = 50, initial learning rate α = 0.3, margin cost η = 0.2, and regularization weight λ = 10⁻⁴. The input dropout rate was 20%, and the minibatch size was 20. The authors describe the embedding width as a compromise. Smaller embeddings appeared to underfit, while larger ones demanded more computational resources. They likewise selected input dropout as a practical tradeoff between efficiency and segmentation performance.

The newswire runs include different ways of supplying the input representations. In one set of comparisons, the character embeddings start at random. In another, the authors initialize them from representations learned on unlabeled Chinese Wikipedia with word2vec. A further setting supplies an embedding for an adjacent-character feature, or bigram. The authors initialize that vector by averaging the corresponding coordinates of the two characters' embeddings. The bigram vector gives the tagger explicit information about a pair in addition to the combinations it computes in the recursive graph. Efficient Estimation of Word Representations in Vector Space · N-gram

Experiments and results

The data and the scoring rule

The paper evaluates newswire and microblog text. The newswire tests use PKU, MSRA, and CTB6. PKU and MSRA come from the Chinese word segmentation Bakeoff, and the authors use the first 90% of the supplied training sentences for fitting and the remaining 10% for development. Their CTB6 splits follow the division used by Yang and Xue. CTB6 comes from Chinese TreeBank 6.0, a corpus with word segmentation, part-of-speech tags, and phrase brackets. The segmentation experiment uses its word divisions as the target. There is no need for its phrase brackets to supply the recursive graph, since the graph is determined by the window. Second International Chinese Word Segmentation Bakeoff · Treebanks · Part-of-speech tagging

The paper describes normalization of Chinese idioms and of contiguous English characters and digits using a special flag. This preprocessing forms part of the evaluation conditions. The reported scores concern the system trained and tested with that preparation. The normalization also helps explain what a character-level input means in the protocol. Some strings are represented through the flag before the network looks up the window positions.

The microblog evaluation uses the segmentation portion of NLPCC 2015, a shared task that also covered part-of-speech tagging. Its data come from Sina Weibo, with topics including sports, finance, and entertainment. The paper lists 10,000 sentences in the released training portion and 5,000 in the test portion. It reports a test out-of-vocabulary rate of 7.25%. The fitting and development portions are drawn from the released training data using the same first-90% and remaining-10% division as on PKU and MSRA. The microblog experiment uses its own labeled examples for training, so it evaluates the architecture on that kind of text through supervised learning in the domain.

All the evaluations use the standard Bakeoff scoring program. Precision measures how many predicted words match the reference words. Recall measures how many reference words the segmenter recovers. Matching depends on the positions of the boundaries. If a predicted word starts in the right place and ends in the wrong one, it fails the full-word match. F1 combines precision and recall through their harmonic mean and serves as the main score in the paper's comparisons. These measurements operate on the words produced by decoding, after the training procedure has worked with errors defined over individual tags. Evaluation and benchmarks

This distinction between training and evaluation matters when reading the tables. A tag error can change which neighboring characters are grouped together, and an erroneous boundary can affect multiple predicted or reference words. The choice of a per-character margin makes the training search decompose conveniently across positions. The word-level score tests whether the resulting decisions collectively recover the segmentation.

Learning the character vectors from random starts

The first newswire comparison asks how the neural taggers perform when their character embeddings are initialized randomly. The earlier systems are those of Zheng and colleagues and of Pei and colleagues. On PKU test, their F1 scores are 92.4 and 93.5, respectively, and the gated recursive network reaches 95.9. It records 96.0 precision and 95.7 recall on that test in the comparison. Both precision and recall are higher than the corresponding values for either earlier system, so the F1 ranking reflects gains on both measures.

The same ranking holds on MSRA. The earlier systems score 93.3 and 94.4 F1, while the gated recursive network scores 96.2. The new network has 96.3 precision and 96.1 recall. This comparison is particularly relevant to the argument about learning combinations. All three systems in the chart start without pretrained character embeddings. The performance gap is present without the later addition of vectors learned from Chinese Wikipedia.

Neural taggers with random character embeddings on MSRA test, F1

The gated recursive network leads both earlier neural taggers under random initialization.

Neural taggers with random character embeddings on MSRA test, F1Zheng et al.: 93.3Zheng et al.93.3Pei et al.: 94.4Pei et al.94.4Gated recursive network (this paper): 96.2Gated recursive network (this paper)96.2
The numbers
System or settingF1
Zheng et al.93.3
Pei et al.94.4
Gated recursive network (this paper)96.2

On CTB6, test F1 is 93.6 for Zheng and colleagues, 93.9 for Pei and colleagues, and 95.3 for the gated recursive network. The new network's precision is 95.4 and its recall is 95.2. The CTB6 values for the earlier systems are from the authors' own implementations, as indicated in the paper. That detail identifies whose runs the numbers represent. It matters both here and in the pretrained comparisons, where the corresponding baseline entries carry the same qualification.

These experiments compare complete taggers under a common condition on initialization. The shared ranking on the newswire datasets suggests that the advantage does not hinge on a single test corpus. To distinguish the effects of depth and the training schedule, the paper provides a separate PKU experiment. The random-start comparison with earlier taggers evaluates the package of changes together.

Pretraining and explicit adjacent-pair features

The paper next compares the systems using pretrained character embeddings. On PKU test, Zheng and colleagues reach 92.8 F1, Pei and colleagues reach 94.0, and the gated recursive network reaches 96.1. The new network's precision and recall are 96.3 and 95.9. On MSRA test, the corresponding F1 values are 93.9, 94.9, and 96.2. At the reported precision of the MSRA results, the new network's F1 has the same value as its random-start score. Its precision and recall are 96.2 and 96.3 in the pretrained run, so the matching F1 values do not imply identical predictions or identical precision and recall.

On CTB6 test, the pretrained comparison gives 93.7 F1 for Zheng and colleagues, 94.0 for Pei and colleagues, and 95.6 for the gated recursive network. Precision and recall for the gated recursive network are 95.8 and 95.4. Across the three datasets, the proposed architecture maintains its lead over the earlier neural taggers under pretraining. The effect of pretraining on the architecture's own F1 varies by dataset.

The paper also reports a setting where the gated recursive tagger uses bigram embeddings without the pretraining named in the combined setting. Its test F1 is 96.4 on PKU, 97.4 on MSRA, and 95.8 on CTB6. The addition gives a character pair its own input representation, providing a direct signal alongside the learned representations of overlapping spans. The proposed system's gains from this addition are visible even though the architecture was designed to construct pair and longer-span representations from characters.

The setting with both pretraining and bigram embeddings reaches 96.4 on PKU, 97.6 on MSRA, and 95.8 on CTB6. For PKU this combined setting gives 96.5 precision and 96.3 recall. The bigram setting without pretraining gives 96.6 precision and 96.2 recall. A matching F1 therefore coincides with a different balance of precision and recall. On MSRA, the combined setting reaches 97.8 precision and 97.4 recall. On CTB6 its precision and recall are 95.8 and 95.7.

For Pei's system the paper lists combined-setting test F1 of 95.2 on PKU and 97.2 on MSRA. The comparison is most informative when read together with the character-only runs. Pei's system begins from a lower F1 on those datasets and gains more when the explicit pair features are available, while the gated recursive tagger keeps the lead in the combined setting. The paper gives no corresponding combined score for Pei's system on CTB6.

Comparison with other newswire segmenters

The broader comparison includes methods with different choices about what constitutes a feature. Zhang and Clark explore word-based decoding with features of whole candidate words. The other systems in the table are character-based segmenters, with features drawn mainly from neighboring characters. Some use information beyond the labeled sentences. The paper mentions the use of unlabeled data or other information by Sun and Xu and by Zhang and colleagues. These are benchmark comparisons among complete systems with differing resources and representations. The table shows where the new scores stand among the published alternatives the authors selected.

On PKU, the gated recursive system reaches 96.4 test F1. The highest other entry in that comparison is 96.1 for Zhang and colleagues. Zhang and Clark have 95.1, and Tseng and colleagues have 95.0. On MSRA, the new system's 97.6 is above the 97.4 from Zhang and colleagues and the 97.2 from Zhang and Clark. Tseng and colleagues record 96.4 on MSRA. A Conditional Random Field Word Segmenter for Sighan Bakeoff 2005

Published segmentation systems on PKU test, F1

The gated recursive system has the highest F1 in the paper's PKU benchmark comparison.

Published segmentation systems on PKU test, F1Tseng et al.: 95.0Tseng et al.95.0Zhang and Clark: 95.1Zhang and Clark95.1Zhang et al.: 96.1Zhang et al.96.1Gated recursive network (this paper): 96.4Gated recursive network (this paper)96.4
The numbers
System or settingF1
Tseng et al.95.0
Zhang and Clark95.1
Zhang et al.96.1
Gated recursive network (this paper)96.4

The CTB6 column is sparser. Among the established segmenters listed there, the table provides a score for Sun and Xu, at 95.7. The gated recursive system's CTB6 test F1 is 95.8. This establishes the ranking in that column while limiting how broad a comparison it provides. A system with an empty cell has no reported value in the table, and its position on that dataset cannot be inferred from its performance elsewhere.

The benchmark table uses the proposed system's final headline scores. Some scores are also attained by the bigram setting without pretraining, so the combined configuration's success should be read together with the input comparisons. On MSRA the combined setting is the highest reported setting of the proposed network. On PKU and CTB6, adding pretraining to the bigram setup leaves the displayed F1 at the value already reached with bigrams.

Performance on microblog text

For NLPCC 2015, the authors use FNLP and CRF++ as baselines. They describe this dataset as newly released and choose existing open-source toolkits for sequence labeling. They use the default CRF++ settings and supply the same feature templates to both toolkits. The templates check individual character positions in the window, the adjacent pairs adjoining the target, and contiguous triples that include the target. This gives both toolkit baselines explicit character combinations.

The proposed system uses pretrained character embeddings together with bigram embeddings. On the NLPCC 2015 test set, it reaches 94.7 precision, 94.8 recall, and 94.8 F1. FNLP records 94.1 precision, 93.9 recall, and 94.0 F1. CRF++ records 93.3 precision, 93.2 recall, and 93.3 F1. The shared evaluation therefore places the gated recursive network ahead of both toolkits on each reported measure.

Chinese word segmenters on the NLPCC 2015 microblog test set, F1

The gated recursive tagger leads both toolkit baselines on the microblog test set.

Chinese word segmenters on the NLPCC 2015 microblog test set, F1CRF++: 93.3CRF++93.3FNLP: 94.0FNLP94.0Gated recursive network (this paper): 94.8Gated recursive network (this paper)94.8
The numbers
System or settingF1
CRF++93.3
FNLP94.0
Gated recursive network (this paper)94.8

The microblog result broadens the evidence about the types of text for which the method can be trained. The network produces the strongest reported segmentation scores in this comparison even though the toolkits have feature templates designed to include local character combinations. The evaluation does not trace the gain to particular informal expressions or kinds of unfamiliar words. Its unit of comparison is the overall word segmentation result on the test split.

What the ablations show

Depth and the order of training

The PKU study changes how many layers contribute to the final score and whether the parameters learned at a shallower depth initialize training at the next depth. Every variant keeps the width of the input window at 5. A shallower variant therefore still sees the same surrounding characters. It restricts which spans the recursive network can construct and which representations the final scorer can use. That is a more focused comparison than shrinking the context window along with the number of layers.

The 1-layer variant uses the embeddings directly in the tag scorer. It has no nonlinear composition of nearby characters. On PKU test it reaches 90.7 precision, 89.6 recall, and 90.2 F1 under direct training. The authors interpret its relatively weak result as underfitting. This version still has the entire character window and the sentence-level transitions, so its result illustrates what is missing when each character embedding contributes through a linear scorer and the local input has no mechanism for building joint character representations.

With 2 layers, the graph supplies the scorer with the first compositions of neighboring characters as well as the leaves. Both training approaches reach 96.0 precision, 95.6 recall, and 95.8 F1 on PKU test. This is the depth at which the study first includes a gated composition layer. The improvement relative to the shallow variant supports computing interactions between neighboring inputs. The comparison also adds parameters and a nonlinear computation, so it cannot assign the entire gain to the gates.

With 3 layers, direct training yields 95.7 F1 and staged training yields 95.9 on PKU test. With 4 layers the results are 95.4 and 95.9, respectively. At the full depth of 5 layers, direct training yields 95.0 while staged training reaches 95.9. The full staged variant has 96.1 precision and 95.7 recall in this table. The random-start comparison against other neural taggers gives the proposed system 96.0 precision and 95.7 recall on PKU with the same displayed F1 of 95.9. The values belong to their respective comparisons.

The controlled pattern begins after the first composition layer. Under direct training, additional depth beyond that point accompanies lower test F1. Under staged training, the deeper configurations stay at 95.9. In the staged comparison the additional span layers support a small improvement followed by a plateau. The table gives the same best displayed F1 at several depths. It therefore supports the idea that training by stages helps preserve performance when the graph grows. It gives less reason to expect a large test improvement merely from reaching the top of the graph.

The paper also plots convergence on the PKU development set. The authors describe staged training as reaching good performance fastest in that comparison. The two forms of evidence answer different questions. The development curves describe learning progress, while the test table shows the performance of the resulting systems on held-out sentences. Together they support the usefulness of the schedule on PKU. They do not directly measure how much gradient reaches a given layer or show that a particular cause accounts for the difference in optimization.

How much comes from the input features

The settings with random and pretrained embeddings provide one check on the role of extra data. With random starts the gated recursive tagger already exceeds the earlier neural systems on the reported newswire tests. Pretraining brings its PKU test F1 to 96.1 from 95.9 and its CTB6 test F1 to 95.6 from 95.3, while the MSRA score is 96.2 in both settings. The direction is favorable or neutral at the displayed precision, and the scale of the change depends on the corpus. Wikipedia data are therefore one source of improvement within some settings, while the lead over the baselines is visible even in their absence.

The bigram comparison addresses how much can still be gained from giving the network an explicit adjacent-pair feature. On PKU test, Pei's architecture moves from 94.0 with pretrained character vectors to 95.2 with pretraining and bigrams. The gated recursive network moves from 96.1 to 96.4. On MSRA test, Pei's values are 94.9 and 97.2, and the gated recursive network's are 96.2 and 97.6. In both comparisons, the proposed system begins from a stronger pretrained character-only result and retains the lead after explicit bigrams enter.

The authors connect the smaller gains from bigrams to the architecture's built-in way of combining adjacent characters. The depth study is consistent with that account. A configuration that already sees the whole window improves when it can represent neighboring pairs by composition. A configuration that constructs pair representations internally can still benefit from a dedicated pair input, which may give it information it does not recover reliably from the character vectors. The size of an incremental F1 change also depends on the starting performance, so the pair comparison alone cannot tell how completely the recursive network captures the relevant interactions.

The setting with bigrams and without pretraining provides another useful comparison. It matches the displayed F1 of the combined setting on PKU and CTB6, while the combination yields a higher value on MSRA. This suggests that the extra input resources overlap in their contribution on some datasets. The experiment compares finished systems and does not identify which individual character combinations the two resources help to represent or whether their benefits fall on the same test words.

What the gate comparisons can establish

The paper explains the roles of the reset and update mechanisms through the formulas and through the diagram centered on 地. The depth study compares active networks that include different numbers of composition layers. The reported comparisons do not include a matched recursive network with the same depth and training schedule and with either gate disabled. They also do not compare use of the top representation alone with direct scoring from all intermediate nodes. Those architectural choices enter together.

What the evidence supports most directly is the combination of recursive span construction, adaptive mixing, a readout from multiple depths, and staged training. The experiments that vary depth and training order give separate evidence about those two choices on PKU. The input comparisons give evidence about which settings improve after incorporating pretraining or bigrams. Attributing the reported lead to the reset gates alone, or to a specific interaction between the two kinds of gate, would require the corresponding controlled comparison.

Limitations

Limits the authors state

The authors present the approach as potentially applicable to other sequence-labeling tasks and leave those applications for future work. The evaluations all concern Chinese word segmentation. CTB6 supplies additional kinds of annotation, and the NLPCC shared task also includes part-of-speech tagging, but the reported results here are for word segmentation. The architecture's ability to accept another set of labels is a reason for investigating transfer. It does not establish gains in a different task.

The authors report the detailed depth and training-order analysis only on PKU, citing space constraints. The strongest evidence about how performance changes as layers are added therefore comes from that dataset. The newswire and microblog comparisons show that the final architecture can work on other corpora under the reported setup. They give no equivalent curves or depth-by-depth results for those corpora.

Their discussion also identifies a practical cost in the size of the embedding. Larger vectors demand more computation, while lower-dimensional vectors appeared to underfit in their experiments. The selected width and input dropout rate reflect judgments made on the development data. The paper reports the resulting settings and the observed tradeoff, rather than a full account of how sensitivity to these choices varies across corpora and training configurations.

Limits of what the experiments measure

The highest-level comparison pools effects from several decisions. The proposed network changes how character spans are represented, filters the children when forming each candidate, mixes candidates with child representations, and provides direct access to intermediate spans. It also uses the staged schedule to train the deep network. The benchmark scores establish the performance of that system. They cannot determine the effect of all these changes independently. In particular, the illustrated division of labor between reset and update gates is a description of how the computation can work, with no reported gate-specific removal experiment to quantify each mechanism's contribution.

The local window limits the text available to a character's score vector. The decoder can coordinate decisions farther along the sentence through the succession of tag transitions. Its transition scores depend on adjacent labels, though, and do not carry a representation of distant characters into the target's local score. The experiments leave open whether access to broader character context would resolve remaining errors or be especially valuable for particular kinds of word boundaries.

The learned spans are also different from a recovered linguistic analysis of the sentence. The graph supplies overlapping contiguous spans by construction, and its gates weight information within the vectors for those spans. A heavily weighted coordinate can help predict a tag without identifying a reusable linguistic rule or indicating that the whole span is a word. The authors' illustration gives an intuitive view of how information can pass through the graph. No systematic analysis in the paper tests whether the internal representations correspond to interpretable feature templates, words, or syntactic constituents. Interpretability

The microblog experiment evaluates training and testing within the microblog domain. It cannot answer how a newswire-trained system would segment informal text without in-domain labels. The published microblog comparison also uses the setting with both pretrained character vectors and bigrams, so it does not show how far a random-initialized character-only version would go on that dataset. Though the corpus statistics include an out-of-vocabulary rate, the results table gives aggregate scores. There is no separate result for recovering words outside the training vocabulary. The gain might come from more accurate boundaries around familiar words, unfamiliar words, or both.

Finally, the score tables give point estimates. They report neither variation across random runs nor uncertainty intervals. That affects how confidently one can interpret close rankings, such as 95.8 versus 95.7 on CTB6 test, or decide whether settings with identical displayed F1 have practically equivalent performance. The earlier-system entries also differ in provenance and resources. Some CTB6 baseline values are from the authors' implementations, and some published newswire systems use auxiliary information. The cleanest reading is to distinguish the comparisons made under common initialization conditions from the wider benchmark comparison of finished systems.

What came after

The follow-up work on Long Short-Term Memory for Chinese Word Segmentation cites the gated recursive paper and puts a different neural architecture to work on the same segmentation problem. This places the recursion study alongside a line of work organized around recurrent memory. In the gated recursive paper, the computation that assembles character context runs through overlapping spans inside a fixed window, after which Viterbi joins the local decisions into a tag sequence. A long short-term memory architecture raises the related question of what can be learned by maintaining a state as the input sequence is processed.

Neural Word Segmentation Learning for Chinese also cites the paper and continues the investigation of learned segmentation for Chinese. The connection is the effort to learn the evidence needed for segmentation with a neural system. Chen and colleagues make a specific choice about where that learning takes place. They build features over adjacent character spans and use them to estimate the role of a target character, with complete word divisions emerging from the decoded tags. The later paper takes up neural segmentation as the task. Its citation places the gated recursive approach among the alternatives that subsequent segmentation research could build on or compare against.

The citations establish continuity of the research question. They do not on their own establish that either later study retained the span graph, the two gate calculations, or the staged training procedure. What the gated recursive study contributes to that trajectory is a concrete account of how a segmenter can learn overlapping combinations before predicting boundaries, and experiments that show where that choice helped under the conditions the authors tested.

Cite

Cite as Xinchi Chen, Xipeng Qiu, Chenxi Zhu and Xuanjing Huang. 2015. Gated Recursive Neural Network for Chinese Word Segmentation. Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.3115/v1/p15-1168

@inproceedings{chen2015gated,
  title = {{Gated Recursive Neural Network for Chinese Word Segmentation}},
  author = {Xinchi Chen, Xipeng Qiu, Chenxi Zhu and Xuanjing Huang},
  booktitle = {Proceedings of the 53rd Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)},
  year = {2015},
  doi = {10.3115/v1/p15-1168},
  url = {https://doi.org/10.3115/v1/p15-1168}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/chen-2015-gated-recursive-neural-network-chinese/