---
title: "Neural Word Segmentation Learning for Chinese — Cai 2016"
description: "Learn how Neural Word Segmentation Learning for Chinese builds candidate words from characters and scores each against the words that…"
canonical: "https://research.elamur.ai/free/en/papers/cai-2016-neural-word-segmentation-learning-chinese/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/cai-2016-neural-word-segmentation-learning-chinese/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2016](https://md.research.elamur.ai/free/en/papers/2016/) / Neural Word Segmentation Learning for Chinese

# Neural Word Segmentation Learning for Chinese

Paper · 2016 · Deng Cai and Hai Zhao

**Authors:** [Deng Cai](https://md.research.elamur.ai/free/en/authors/deng-cai/) and [Hai Zhao](https://md.research.elamur.ai/free/en/authors/hai-zhao/) · **Year:** 2016 · **Venue:** Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**157** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2963628345) · [Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)](https://aclanthology.org/volumes/P16-1/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/P16-1039/)
- [PDF](https://aclanthology.org/P16-1039.pdf)
- [DOI 10.18653/v1/p16-1039](https://doi.org/10.18653/v1/p16-1039)
- [OpenAlex](https://openalex.org/W2963628345)

Citations: OpenAlex, 2026-10-14.

## Summary

Written Chinese ordinarily leaves word boundaries unmarked. A program that needs words as input must first decide which neighboring characters belong together. Cai and Zhao approach this [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) problem by comparing possible divisions of a sentence into words. Each division gives the program a different sequence to work with, even though the underlying characters are identical. The paper asks whether judging those sequences directly gives a segmenter better evidence than assigning a position tag to each character and connecting neighboring tags.

The authors build a vector for each candidate word from the characters it contains. A gated network learns how much to preserve from the individual characters and how much to take from a new representation of their combination. The segmenter gives the candidate a score for how plausible it is on its own and another for how well it follows the words already chosen. A long short-term memory network carries information forward as each candidate is appended. At a given point in a sentence, competing divisions of the same characters can therefore give different scores to the very same next word. Beam search keeps a small set of promising divisions at each character position so that the segmenter can make these comparisons without enumerating every complete answer.

On the PKU and MSR benchmark test sets, the method reaches F1 scores of 95.2 and 96.4 with randomly initialized character vectors. Initializing those vectors from Chinese Wikipedia raises the scores to 95.5 and 96.5, respectively. The method leads the neural segmenters in the paper’s like-for-like comparisons, while several established systems still score higher on MSR. The authors find that scoring a word against its preceding sequence recovers much of the performance of the full scoring system on PKU. They also show that allowing longer candidate words improves MSR F1 at the cost of longer training. The gains thus depend both on how the segmenter judges a candidate and on which candidates the search allows it to consider.

## Deep dive: Neural Word Segmentation Learning for Chinese

Learn how Neural Word Segmentation Learning for Chinese builds candidate words from characters and scores each against the words that precede it. · about 36 minutes to read

**In this deep dive**

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

### The problem and its context

#### The boundaries are the output

Chinese word segmentation takes a string of characters and returns a sequence of words. The words must cover the original string in order. The system supplies the boundaries, which are usually absent from the written input. For [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/) that uses words as units, this is a preliminary decision. A different boundary changes the units available to the next processing step, even when every character has been read correctly.

A boundary decision can change more than the length of a single word. If a character is grouped with the one to its left, it is unavailable to a candidate that would have started there and included a character on its right. Each proposed word therefore affects the rest of the division. The authors are also interested in a dependency that runs in the other direction. Once a segmenter has chosen some words, that choice can affect the plausibility of words farther along the sentence. Two divisions of a prefix can reach the same character boundary while leaving different sequences of words behind.

A segmenter has to reconcile evidence at these different scales. A candidate’s characters can make it look like a plausible word. The words already chosen can make that particular candidate more or less suitable at the current position. The paper treats both as information the segmenter should be able to learn. It also asks how to use that information when the prefix has several plausible divisions and only a small number can be kept during search.

#### What character tags made possible

An influential formulation described in [Chinese Word Segmentation as Character Tagging](https://md.research.elamur.ai/free/en/papers/xue-2003-chinese-word-segmentation-as-character/) turns boundary detection into a sequence of position decisions. A character gets a tag that describes its place in a word. Once the tags are assigned, their positions determine the division of the original string. This gives the learner a small set of decisions to score at each character and a straightforward way to recover words at the end.

The paper describes work that learned these decisions from labeled examples using approaches such as [maximum entropy](https://md.research.elamur.ai/free/en/papers/berger-1996-maximum-entropy-approach-natural-language/) and conditional random fields. One example of the latter is [Chinese Segmentation and New Word Detection using Conditional Random Fields](https://md.research.elamur.ai/free/en/papers/peng-2004-chinese-segmentation-new-word-detection/). In the authors’ account, these approaches depended heavily on features chosen by hand. Someone had to decide which aspects of the input to represent before the learning algorithm could decide how strongly to use them.

Neural taggers reduced some of that work. The approach in [Deep Learning for Chinese Word Segmentation and POS Tagging](https://md.research.elamur.ai/free/en/papers/zheng-2013-deep-learning-chinese-word-segmentation/) adapted the sequence-labeling architecture of [Natural Language Processing (almost) from Scratch](https://md.research.elamur.ai/free/en/papers/collobert-2011-natural-language-processing-almost-scratch/). It represented input characters as learned vectors and fed them into a network to score tags. Pei and colleagues added an explicit interaction between the local character context and the preceding tag. A gated recursive approach from Chen and colleagues learned how to combine features of nearby characters. These changes expanded what the tagger could learn from its inputs while keeping the tag as the unit of prediction.

Context and output history are distinct in this account. A system can know a great deal about preceding characters and still have little information about how it previously divided them into words. In [Long Short-Term Memory Neural Networks for Chinese Word Segmentation](https://md.research.elamur.ai/free/en/papers/chen-2015-long-short-term-memory-neural/), recurrence helped information travel across greater distances than in a fixed character window, though the authors describe an additional window over hidden states. The prediction was still a character tag, and the decoding history available through tag transitions was limited. Knowing the preceding tag gives some boundary information. It cannot in general tell the segmenter which particular words ended at that boundary or what sequence of decisions produced them.

That restriction also brings a computational benefit. If the only relevant dependency between outputs is the transition from the preceding tag to the current one, two partial tag sequences ending in the same tag offer the same transition possibilities. The weaker partial sequence can be discarded for purposes of finding the best full sequence. Cai and Zhao want a system in which two paths can remain meaningfully different after they meet at the same character position. They have to give up that simple way of combining paths to gain access to richer information about the segmentation history.

#### Earlier ways to work with words

Character tagging was the dominant formulation in the authors’ account, and word-based alternatives already existed. Zhang and Clark used a word-based perceptron. Work by Zhang and colleagues also showed how an incremental segmenter could use features that described words as it progressed through the sentence. The authors make a similar observation about these systems and the earlier taggers. Their performance depended on substantial manual feature design, and the word-based systems discussed in the paper generally consulted a bounded neighborhood of words.

The paper also places its contribution alongside contemporary neural approaches that use larger units. Liu and colleagues fed representations of candidate segments into a semi-CRF, which operates on spans. Zhang and colleagues used a transition-based formulation, in which actions build up the segmentation. Ma and Hinrichs used embeddings to match configurations to actions, with the evidence drawn from a limited context. These approaches establish that using words or word-like spans was already an active line of inquiry. Cai and Zhao’s specific choice is to build a word representation from characters, then use the sequence of these representations to make each extension sensitive to the division constructed so far.

This creates a separation between the character string that is observed and the word sequence that has to be inferred. The characters are fixed for a given sentence. The representation of the word history is conditional on the segmenter’s own decisions. Early choices change the inputs to the recurrence and can therefore change the evaluation of later words. The paper’s architecture, objective and decoder all follow from treating that dependency as part of the task.

### The method, step by step

#### From character spans to possible sentences

The segmenter reads from left to right. At a character position, it considers spans that end there, subject to a length limit. Each span is temporarily treated as a word and converted into a vector. It can be attached to any retained division of the prefix that ends immediately before the span starts. A candidate thus participates in several possible sentences without having to be represented anew for each preceding division. Its vector describes the characters inside it. Each preceding division supplies its own information about how those characters fit as the next word.

Consider the case in which a prefix can be divided in more than one way and those divisions end at the same position. A stretch of characters immediately after the prefix is available as a candidate to each division. The score for the stretch by itself is shared. The score for attaching it can differ because the previous words differ. Appending the stretch also produces a separate recurrent state for each resulting sequence. Later candidates can therefore be judged differently even after the two paths have appended a word in common.

How the segmenter builds and ranks word sequences The steps in order.

The paper expresses the target of decoding as a maximization over whole segmentations.

```
y* = argmax over y ∈ GEN(x) of ∑ᵢ₌₁ⁿ score(yᵢ | y₁, …, yᵢ₋₁)
```

Here x is the input character sequence and GEN(x) is the set of its possible segmentations. The symbol y denotes one such segmentation and y* denotes a highest-scoring one. The word candidates in y are indexed by i, with n the number of words in that particular division. The function score assigns a value to yᵢ conditional on the earlier words listed after the vertical bar. The summation adds the candidate scores, and argmax selects the segmentation that gives the largest sum. The practical decoder searches a restricted set of candidates and approximates this objective.

The sequence length in the sum is the number of proposed words. Different divisions of x can have different numbers of terms. The number of input characters, by contrast, stays fixed across all the divisions being compared. This difference matters in decoding. It is possible to align partial answers by the number of characters they have covered even when they contain different numbers of words. The authors use that alignment to organize search.

#### Building a vector for a possible word

The first learned representations describe characters. Each character in a vocabulary has an index, and the embedding layer uses that index to retrieve a column from a matrix. An embedding is a vector of real numbers whose coordinates are learned for the task. The paper uses the same dimensionality for a character vector and for the candidate word vector derived from it. At the word level these representations serve the purpose of [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), with the difference that the system builds them from the characters in the current span.

```
c ∈ D, 𝐜 ∈ ℝᵈ, M ∈ ℝᵈˣ|D|
```

Here c is a character and D is the character vocabulary. The bold 𝐜 is the vector for c, d is its dimension, and ℝ denotes the real numbers. M is the character embedding matrix with d rows and |D| columns, where |D| is the size of D. Looking up c in M retrieves its vector 𝐜.

The authors motivate composition with a coverage problem. A decoder proposes spans before it knows whether they are words. An embedding table indexed by complete word forms would have weak evidence for rare forms and could lack an entry for a form absent from training. A character-based representation can give a vector to a proposed span whose characters have entries even if the full span has never been stored as a word. The paper also wants the representation to capture internal structure. Which characters occur together and where they occur within the candidate can help the system judge whether a word boundary should enclose them.

The simplest composition in the paper stacks the character vectors in their original order, multiplies the stack by a learned matrix, and applies a nonlinear function. There is a separate matrix for each supported candidate length. The parameters for a given length are reused for all candidates of that length. Thus even before the gates are introduced, the system can apply different transformations to characters in different positions within a span.

```
w = g(W⁽ᴸ⁾ [c₁; …; cₗ])
```

Here the endpoint cₗ denotes c at index L, where L is the number of characters in the span. The c entries are character vectors of dimension d. The bracket with semicolons stacks the vectors in order into a single vector of length Ld. W⁽ᴸ⁾ is the length-specific matrix with d rows and Ld columns. The function g applies a nonlinearity to produce the d-dimensional candidate representation w. The paper uses this composition as the simpler comparison for its gated network.

The gated combination network adds a choice about how information reaches the output. It can form new features by mixing characters and it can also pass much of an existing character feature directly into the word vector. The choices are made coordinate by coordinate. A gate scales a vector, so an input can matter strongly for some coordinates and weakly for others. The network learns those choices from the characters that make up the candidate.

The reset gates come first. They select the character features available to the nonlinear combination. Though there is a reset vector for each character position, the reset matrix takes the full stack of character vectors as input. The treatment of one character can therefore depend on its neighbors inside the span.

```
[r₁; …; rₗ] = σ(R⁽ᴸ⁾ [c₁; …; cₗ])
```

Here L is the candidate length and the subscripts run from the first through the last position L. The c vectors are the character embeddings, and rᵢ is the d-dimensional reset vector for the character at position i. The symbol R⁽ᴸ⁾ is a learned matrix with Ld rows and Ld columns. Brackets with semicolons denote concatenation. The function σ is the element-wise sigmoid, which produces the gate values from the transformed input.

The reset vectors and character vectors are multiplied coordinate by coordinate. The network stacks the results and makes a new candidate representation from them. This representation is one of the sources that the final combination can use.

```
ŵ = tanh(W⁽ᴸ⁾ [r₁ ⊙ c₁; …; rₗ ⊙ cₗ])
```

Here ŵ is the newly computed d-dimensional vector. The r and c vectors are, respectively, the reset gates and the corresponding character embeddings in a candidate of length L. The symbol ⊙ means element-wise multiplication, and the bracket stacks the gated embeddings. W⁽ᴸ⁾ is the learned matrix with d rows and Ld columns for that length. The hyperbolic tangent tanh is applied element by element.

Update gates then decide how to combine ŵ with the original character vectors. Their inputs include all of those sources. In particular, the character features on this route are the original embeddings. The reset gates affect what enters ŵ, while the update gates control how much of ŵ and of each original vector enters the final result. The two kinds of gates have separate roles even though they influence the same word representation.

The update calculation can be written as an unnormalized step followed by a normalization step. The intermediate vectors a below name the positive, unnormalized outputs for each source.

```
[aₙ; a₁; …; aₗ] = exp(U⁽ᴸ⁾ [ŵ; c₁; …; cₗ])
```

Here the subscript n on aₙ marks the new activation ŵ, and aᵢ is the vector for character position i up to L. The notation n in this subscript is a label for that source. The c vectors are the original character embeddings. The length-specific matrix U⁽ᴸ⁾ maps the concatenation of ŵ and the c vectors to an output with the same number of coordinates. The exponential exp acts element by element. Each a block has dimension d, and the brackets indicate stacked blocks.

```
Zₖ = (aₙ)ₖ + ∑ᵢ₌₁ᴸ (aᵢ)ₖ
```

Here Zₖ is the normalization value for coordinate k, which ranges across the d coordinates of the word vector. The component (aₙ)ₖ is the unnormalized weight for the new activation at k, and (aᵢ)ₖ is the weight for the original vector at position i. The sum ranges over the L characters. It collects only the weights for that same coordinate.

```
(zⱼ)ₖ = (aⱼ)ₖ / Zₖ
```

Here j ranges over the source labels, which comprise n for the new activation and the character positions through L. The coordinate k of zⱼ is the normalized update weight for source j at that coordinate. Its numerator is the corresponding component of aⱼ, and its denominator Zₖ is the total weight over sources at k.

```
zₙ + ∑ᵢ₌₁ᴸ zᵢ = 1
```

Here zₙ is the update gate for the new activation and zᵢ is the update gate for character i. The sum runs over the L characters, and 1 denotes an all-ones vector of dimension d. The equality holds coordinate by coordinate. This is the condition the paper gives for the normalizer, and it makes the sources compete separately for each feature.

```
w = zₙ ⊙ ŵ + ∑ᵢ₌₁ᴸ zᵢ ⊙ cᵢ
```

Here w is the final candidate word vector, ŵ is the new activation, and cᵢ is the original embedding for character i in the span of length L. The z vectors are the corresponding update gates, with zₙ assigned to ŵ. Element-wise multiplication is denoted by ⊙, and the sum adds the weighted character contributions. Different coordinates of w can consequently favor different sources.

The authors connect this design to prior work on gated neural networks, including [Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation](https://md.research.elamur.ai/free/en/papers/cho-2014-learning-phrase-representations-rnn-encoder/). In the segmentation system, however, the role of the combination network is specifically to construct a representation of a proposed word. Once built, the same vector is available to the isolated word score, the contextual score, and the recurrent update. The segmenter learns its internal features through the training objective for the full task.

#### Scoring the word and the sequence

The isolated word score asks how plausible the candidate looks on the basis of its own vector. The paper uses a dot product with a learned vector. A dot product multiplies corresponding entries and adds the products, so here the learned entries determine which features raise or lower the score.

```
WordScore(yᵢ) = u · yᵢ
```

Here yᵢ denotes the d-dimensional vector of the candidate at word position i in the proposed segmentation. The symbol u is a learned vector of the same dimension, and · denotes the dot product. WordScore is the resulting scalar. A given candidate has the same isolated score wherever its character composition yields the same vector.

The link score asks how well the candidate follows the chosen prefix. To obtain that score, the authors adapt a recurrent idea from [language modeling](https://md.research.elamur.ai/free/en/concepts/language-model/). A recurrent network updates a state each time it consumes an item in a sequence. Here an item is a candidate word vector. The state available before a candidate is appended depends on the word vectors that the segmenter has already accepted along that path. From that state the network produces a vector against which the next candidate can be compared.

The paper begins its explanation with a basic recurrent update. The new state is a nonlinear transformation of the current input and the previous state.

```
hₜ = g(U hₜ₋₁ + W xₜ + b)
```

Here t indexes steps of the recurrence, hₜ is its new hidden state, and hₜ₋₁ is its previous state. The input at the current step is xₜ. U and W are learned matrices applied to the previous state and current input, respectively. The vector b is a learned bias and g is a nonlinear function. Iterating the update gives earlier inputs a route to influence later states. The paper notes the difficulty of training an ordinary recurrent network to use distant inputs when the gradient becomes very small as it moves backward through the sequence.

The chosen recurrence is a long short-term memory network, or LSTM. It adds a memory cell and learns gates that decide how to update it and what to expose in the hidden state. The current input in this application is the vector of the word just appended. The memory passed along a path belongs to that particular segmentation. In the following equations, c denotes the LSTM cell and its activations. The c used for a character embedding in the composition equations plays a separate role.

```
iₜ = σ(Wᵢ xₜ + Uᵢ hₜ₋₁ + bᵢ)
```

Here iₜ is the input gate at step t. The word vector being processed is xₜ, and hₜ₋₁ is the preceding hidden state. Wᵢ and Uᵢ are the learned input and recurrent matrices for this gate, bᵢ is its bias, and σ is the element-wise sigmoid. The input gate controls the contribution from new memory content.

```
fₜ = σ(W𝒻 xₜ + U𝒻 hₜ₋₁ + b𝒻)
```

Here fₜ is the forget gate, and the subscript 𝒻 marks its own parameters W𝒻, U𝒻 and b𝒻. The vectors xₜ and hₜ₋₁ are the current word input and prior hidden state. The sigmoid σ converts the transformed inputs into coordinate-wise weights for the previous memory.

```
oₜ = σ(Wₒ xₜ + Uₒ hₜ₋₁ + bₒ)
```

Here oₜ is the output gate at step t. Its parameters are the matrices Wₒ and Uₒ and the bias vector bₒ. The gate uses xₜ, the current word vector, and hₜ₋₁, the prior hidden state. The element-wise sigmoid σ produces weights that control what the updated memory contributes to the hidden state.

```
ĉₜ = tanh(W꜀ xₜ + U꜀ hₜ₋₁ + b꜀)
```

Here ĉₜ is the proposed new memory content at step t. W꜀ and U꜀ are the learned matrices for this proposal and b꜀ is the bias. The inputs are the current word vector xₜ and the previous hidden state hₜ₋₁. The function tanh transforms the result element by element.

```
cₜ = fₜ ⊙ cₜ₋₁ + iₜ ⊙ ĉₜ
```

Here cₜ is the updated memory and cₜ₋₁ is the previous memory. The forget gate fₜ weights the previous memory. The input gate iₜ weights the new proposal ĉₜ. The symbol ⊙ denotes element-wise multiplication. Adding the two weighted vectors lets the cell preserve earlier information alongside new content.

```
hₜ = oₜ ⊙ tanh(cₜ)
```

Here hₜ is the hidden state after step t, cₜ is its updated memory, and oₜ is the output gate. The function tanh transforms the memory coordinate by coordinate and ⊙ applies the gate coordinate by coordinate. The cell, hidden state and three gate vectors all have dimension H, the number of hidden units.

After the LSTM consumes a word, its hidden state can be converted into the space of candidate word vectors. The comparison with the next word is made in that space. A direction in the resulting prediction can favor candidates with particular combinations of learned features.

```
pₜ₊₁ = tanh(Wₚ hₜ + bₚ)
```

Here hₜ is the hidden state after consuming the word at position t. The learned projection Wₚ and bias bₚ map that state into the d-dimensional space of word representations, with tanh applied element by element. The result pₜ₊₁ is the prediction vector for the candidate at the next position. The notation indexes words along one proposed segmentation.

```
LinkScore(yₜ₊₁) = pₜ₊₁ · yₜ₊₁
```

Here yₜ₊₁ is the next candidate vector and pₜ₊₁ is the vector derived from the history before that candidate. The dot product · gives the scalar LinkScore. Comparing candidates this way yields a compatibility score. The system needs a ranking among possible extensions and does not normalize this score into probabilities over a vocabulary.

The score of a segmentation adds the two contributions for each proposed word. A path is evaluated against the sequence of states that it produced as it was built. An earlier boundary can influence the total directly through the words it creates and indirectly through the state available for later comparisons.

```
s(y[1:n], θ) = ∑ₜ₌₁ⁿ (u · yₜ + pₜ · yₜ)
```

Here y[1:n] is the proposed sequence from its first word through its nth, θ is the set of learned parameters, and s is the sentence score. The index t ranges over the n words. The vector yₜ represents the candidate at t, u is the isolated-word scoring vector, and pₜ is obtained from the hidden state before that word. Each dot product · gives a scalar. The sum combines the word and link scores across the sentence.

#### How the decoder limits the search

The number of complete divisions grows exponentially with the length of the character string. Exact Viterbi decoding of a tag sequence can exploit the fact that histories sharing the relevant final tag have the same possible transition scores going forward. A history here has a continuous hidden state and memory cell. Paths arriving at the same boundary can carry different values for both, with consequences for scores farther along the input. Keeping only the best path at each boundary would discard that information.

The decoder maintains a beam, a list of the highest-scoring partial answers retained at a position. It starts with an empty segmentation and an initial recurrent state. When it reaches a new character endpoint, it generates candidate words ending there within the permitted length range. Each candidate identifies the preceding endpoint where its prefix must stop. The decoder joins the candidate to the paths retained at that earlier endpoint, adds the new scores, and advances the state along each extension. It then keeps the highest-scoring extensions at the new endpoint. At the end of the sentence, the highest-scoring complete path in the final beam supplies the answer.

```
π[0] = {(0, h₀, c₀)}
```

Here π denotes the collection of beams indexed by character endpoint, and π[0] is the beam for the empty prefix. Braces enclose its sole initial entry. Inside the entry, 0 is the cumulative score, h₀ is the initial hidden state and c₀ is the initial memory state. For subsequent prefixes the score, hidden state and memory summarize the information used to extend each retained path.

The reusable part of the computation is the candidate vector. All paths that attach a particular span can use the vector already composed for that span. Their isolated word scores agree, while each path has its own link score and recurrent update. A partial result ending at an earlier position can also be extended by candidates of different lengths as their respective endpoints are reached. These are the features of the procedure that resemble dynamic programming. The beam still keeps separate hypotheses where their histories differ.

```
Search work scales with w × k × n.
```

Here w is the maximum candidate word length, k is the beam size, and n is the number of input characters in the decoding analysis. The multiplication describes the paper’s count of search work in terms of candidate lengths, retained predecessors and endpoints. It gives a linear dependence on sentence length when w and k are fixed. In this expression n counts characters. In the sentence score it counts words of a particular segmentation. The decoder can lose an eventual winner if the path to it drops out of an earlier beam, so the efficiency claim and the exactness of the returned answer are separate issues.

#### How the training signal reaches the parts

Training starts with an input string and its reference segmentation. The max-margin criterion compares the reference score with scores of competing segmentations. It asks the system to separate the reference from each rival by a margin that reflects the extent of the rival’s error. A rival with a high score and substantial disagreement with the reference can therefore exert more pressure on the update than a rival with the same score and a smaller disagreement.

```
Δ(y⁽ⁱ⁾, ŷ) = ∑ₜ₌₁ᵐ μ 𝟙{y⁽ⁱ⁾,ᵗ ≠ ŷₜ}
```

Here i indexes the training example, y⁽ⁱ⁾ is its reference segmentation, and ŷ is a proposed segmentation of the same input x⁽ⁱ⁾. The length m is the number of characters in that input, and t indexes their positions. The notations y⁽ⁱ⁾,ᵗ and ŷₜ here mean the segmentation assignments at character position t. The indicator 𝟙 contributes one if the assignments disagree and zero otherwise. The weight μ scales each disagreement, and Δ sums the weighted disagreements.

Earlier equations index word vectors. The margin comparison works at character positions so that the reference and rival are aligned even if they contain different numbers of words. This is also a different calculation from the benchmark score. Training uses the character disagreement to set the required margin, while evaluation compares recovered words with reference words.

```
ℓᵢ(θ) = max over ŷ ∈ GEN(x⁽ⁱ⁾) of [s(ŷ, θ) + Δ(y⁽ⁱ⁾, ŷ) − s(y⁽ⁱ⁾, θ)]
```

Here ℓᵢ is the loss for training example i and θ denotes all learned parameters. GEN(x⁽ⁱ⁾) gives the candidate segmentations for its input. The maximization chooses the largest expression across candidate rivals ŷ. The function s scores a segmentation, Δ adds the error-dependent margin, and y⁽ⁱ⁾ is the reference. Including the reference among the candidates provides a zero-valued option because its margin against itself is zero. A rival creates positive loss when its score plus the margin exceeds the reference score.

```
J(θ) = (1 / |Ω|) ∑₍ₓ⁽ⁱ⁾,ᵧ⁽ⁱ⁾₎ ∈ Ω ℓᵢ(θ) + (λ / 2) ‖θ‖₂²
```

Here J is the training objective, Ω is the collection of training pairs, and |Ω| is the number of those pairs. The sum averages ℓᵢ across the indexed inputs x⁽ⁱ⁾ and their references y⁽ⁱ⁾. The parameter vector θ contains the learned weights. The term ‖θ‖₂² is its squared Euclidean norm, and λ controls the weight of this regularization term. Averaging the loss measures disagreement with the training examples, while the norm term penalizes large parameter values.

The maximization gives the loss a hinge, where the objective can change which candidate determines the update. The authors use subgradients, which give an update direction for this kind of objective even at a point where the ordinary derivative is unavailable. They optimize with minibatches and the diagonal variant of AdaGrad. It adapts the update to the accumulated squared subgradients for each parameter.

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

Here t indexes the optimization step, i indexes a parameter coordinate, and ρ is the index of a step included in the accumulated sum. The parameter at the previous step is θₜ₋₁,ᵢ and its updated value is θₜ,ᵢ. The symbol gᵨ,ᵢ denotes the subgradient for coordinate i at step ρ, and gₜ,ᵢ is its current value. The learning-rate constant is α. The square root in the denominator scales the current change by the past squared subgradients of that coordinate.

The character embeddings, the composition parameters and the recurrent scoring parameters all participate in the segmentation objective. The isolated word term is thus learned from which candidate words help the reference outrank its rivals. The contextual term is learned from differences between competing paths through the same sentence. The paper reports an official code release for the segmenter under the name CWS.

### Experiments and results

#### Data, scoring and settings

The authors use PKU and MSR from [The Second International Chinese Word Segmentation Bakeoff](https://md.research.elamur.ai/free/en/papers/emerson-2005-second-international-chinese-word-segmentation/). These corpora supply the reference divisions that determine which predicted words count as correct. Before evaluation, the authors replace continuous runs of English characters and digits with a special token. The standard Bakeoff scoring program calculates word precision, recall and F1. Precision describes the share of predicted words that match reference words. Recall describes the share of reference words recovered. F1 combines the two, so a reader can see the balance between proposing correct words and covering the reference.

For hyper-parameter selection, the authors take the first 90% of the sentences in the training data for training and the remaining 10% for development. The character vectors have dimension 50 and the LSTM has 50 hidden units. The initial learning rate α is 0.2, the margin discount μ is 0.2, and the regularization coefficient λ is 10⁻⁶. The dropout rate on the input is 20%. [Dropout](https://md.research.elamur.ai/free/en/papers/srivastava-2014-dropout-simple-way-prevent/) is used as a training measure against overfitting. The main comparisons use a maximum word length of 4. Beam size is examined separately, with the authors adopting 4 after the PKU comparison.

The paper reports comparisons with randomly initialized character embeddings and with embeddings initialized by pretraining. Random initialization leaves the segmenter to learn the character representations from the labeled task data. For the pretrained condition, the authors use word2vec to train character representations on Chinese Wikipedia and take those vectors as starting values for segmentation training. The reference segmentation data retain their role in either case. The pretrained comparison supplies information from a separate corpus at initialization. The paper cites [Efficient Estimation of Word Representations in Vector Space](https://md.research.elamur.ai/free/en/papers/mikolov-2013-efficient-estimation-word-representations-vector/) for word2vec.

There is a separate distinction between experiments with and without an idiom dictionary. The dictionary procedure identifies listed idioms in the original text and substitutes a special token before training and test. This can change the boundary decisions the learner has to make, because a matched stretch is handled as a unit at preprocessing time. It also adds external linguistic information. The Bakeoff’s closed-set convention, as the paper describes it, permits the training corpus as the linguistic resource. The Wikipedia and dictionary conditions therefore need to be kept in view when interpreting claims about performance under the same resource conditions.

#### Against earlier neural segmenters

The comparison includes Zheng and colleagues’ neural tagger, Pei and colleagues’ extension that incorporates the previous tag, and the two approaches by Chen and colleagues. The latter use gated recursive feature combination and an LSTM tagger, respectively. For the comparisons without the idiom dictionary, the authors rerun the released implementations of both Chen systems so that the corresponding numbers use a common dictionary condition. The other results are presented alongside them in the same initialization comparisons.

Neural segmenters on the PKU test set with randomly initialized character embeddings The direct segmenter leads the comparison in F1 without pretrained character vectors.

**The numbers**

| System or setting | F1 |
| --- | --- |
| Zheng et al. | 92.4 |
| Pei et al. | 93.5 |
| Chen et al., gated recursive network | 94.4 |
| Chen et al., LSTM tagger | 94.3 |
| Cai and Zhao (this paper) | 95.2 |

On PKU with random initialization, Cai and Zhao’s test precision is 95.5 and recall is 94.9. On MSR in the same initialization condition, their precision is 96.1 and recall is 96.7, with F1 of 96.4. The MSR F1 comparisons are 93.3 for Zheng and colleagues, 94.4 for Pei and colleagues, 95.1 for the gated recursive tagger, and 95.0 for the LSTM tagger. The lead over the compared neural systems appears on both corpora. The balance between precision and recall differs across corpora, which helps explain why the authors provide the component scores as well as F1.

With Chinese Wikipedia initialization, Cai and Zhao obtain PKU test precision of 95.8, recall of 95.2 and F1 of 95.5. The PKU comparison in this condition reports F1 of 92.8 for Zheng and colleagues, 94.0 for Pei and colleagues, 94.5 for the gated recursive tagger and 94.8 for the LSTM tagger. On MSR with pretraining, Cai and Zhao report precision of 96.3 and recall of 96.8. The chart shows the corresponding MSR F1 comparison.

Neural segmenters on the MSR test set with pretrained character embeddings The direct segmenter retains the F1 lead when the comparison uses pretrained character vectors.

**The numbers**

| System or setting | F1 |
| --- | --- |
| Zheng et al. | 93.9 |
| Pei et al. | 94.9 |
| Chen et al., gated recursive network | 95.4 |
| Chen et al., LSTM tagger | 95.6 |
| Cai and Zhao (this paper) | 96.5 |

Pretraining improves the proposed system’s reported F1 on both benchmarks. The stronger comparison for the architectural claim is that its lead over the neural baselines is already present in the random-initialization block. Adding external character representations preserves that lead. The two blocks test initialization choices within a wider system comparison, instead of isolating a change to the segmenter’s word composition or use of history. The authors address those changes with separate experiments.

For the dictionary comparison, the authors say the exact source of the original idiom dictionary used by the Chen systems had not been specified and that it was unavailable publicly. They therefore rerun those systems with their selected dictionary. Under that shared dictionary condition, their own F1 is 95.7 on PKU and 96.4 on MSR. The gated recursive system reaches 94.9 on PKU and 95.8 on MSR with that dictionary. The LSTM tagger reaches 94.6 on PKU and 95.7 on MSR in the same comparison. The paper also presents scores from the other dictionary condition. Because the idiom lists can differ in what they match, the authors base their direct comparison there on the shared resource.

#### Against the broader field

The paper also compares against earlier strong segmenters beyond the neural group. These include the Bakeoff system described in [A Conditional Random Field Word Segmenter for Sighan Bakeoff 2005](https://md.research.elamur.ai/free/en/papers/tseng-2005-conditional-random-field-word-segmenter/) and the word-based perceptron by Zhang and Clark. The conditional random field result in the broader comparison is 95.0 F1 on PKU and 96.4 on MSR. The perceptron’s results are 94.5 on PKU and 97.2 on MSR. The table also includes a Zhao and Kit result of 95.4 on PKU and 97.6 on MSR.

The result depends on the corpus and the comparison conditions. The authors characterize their PKU result as reaching the state of the art in the closed-set comparison and their MSR result as competitive. The broader comparison displays their scores of 95.5 on PKU and 96.5 on MSR, which are also the scores shown for Wikipedia initialization in the neural comparison. Scores from systems using outside dictionaries or corpora appear in separately marked entries. The strongest direct evidence for performance without external initialization is the random-initialization block, whose PKU result is 95.2. The paper’s use of the closed-set description needs to be read alongside the resources behind the reported rows.

On MSR, the broader table shows that earlier systems can retain a lead even though the proposed system leads the neural group. Those are different comparisons. A result against taggers trained under comparable initialization and dictionary conditions addresses the competitiveness of the direct neural approach. A result against earlier high-scoring segmenters also reflects differences in search, features and resources. The paper’s longer-word experiment investigates a restriction of its own system that matters especially for MSR.

### What the ablations show

#### What the gates add to word composition

The authors replace the gated character combination with the simpler nonlinear layer while retaining direct segmentation and recurrent scoring. This tests the composition architecture within their own system. They compare the gated network with a simple layer at the same character embedding dimension and with a simple layer using larger embeddings. The resulting PKU comparison addresses whether a larger character representation can recover the performance obtained with gates.

Candidate word composition on the PKU test set The gated combination scores highest, including against the single layer with larger character embeddings.

**The numbers**

| System or setting | F1 |
| --- | --- |
| Single nonlinear layer, d = 50 | 94.0 |
| Single nonlinear layer, d = 100 | 94.7 |
| Gated combination, d = 50 (this paper) | 95.5 |

At embedding dimension 50, the single layer gives PKU precision of 94.3 and recall of 93.7. The gated combination reaches precision of 95.8 and recall of 95.2. The simple layer at dimension 100 reaches precision of 94.9 and recall of 94.4. The pattern extends across both component metrics. The gain is thus visible in the share of proposed words that match and in the coverage of the reference words. Increasing the embedding dimension helps the simple layer in this experiment, while the gated network with smaller embeddings remains ahead.

The experiment changes the composition mechanism as a whole. It supports giving the network a learnable way to reuse some character features and mix others. It does not identify the contribution of each gate separately. Removing either gate alone would be a different intervention. The comparison also leaves differences in the respective parameterizations, so it establishes an advantage for the reported gated setting over the tested alternatives. It cannot distinguish all the possible reasons for that advantage.

#### How much comes from the preceding words

The scoring experiment compares learning curves for the full system, a condition with the isolated word score alone, and a condition with the link score alone. The isolated score still uses learned composition within each span. It can distinguish two divisions through the plausibility of the words they contain, even though a candidate’s score is independent of the words that precede it. A sum of such scores can therefore choose boundaries across a whole sentence while using evidence from inside each word.

The link-only condition evaluates candidates with the LSTM prediction and dispenses with the separate dot product against u. It still has the candidate word vector, including the information learned from characters, on one side of the comparison. The other side changes with the preceding path. The authors report that this condition does substantially better than the word-only condition and approaches the performance of the combined scoring system on PKU.

This result tests whether adding a path-dependent judgment is worthwhile within the direct segmentation setup. The answer from the curves is that the contextual contribution accounts for much of the full system’s performance in this comparison. Word composition remains involved in every condition. The contrast is about what the scoring procedure does with the composed vectors, and the link score can learn a preference for the internal features of a word while consulting the preceding state.

There is also a distinction between showing the value of contextual scoring and showing the value of a particular historical distance. The link score has a route to any preceding word through the recurrent state. The comparison removes that entire route in the word-only condition. It does not shorten the history gradually or measure how frequently a word several decisions back changes the answer. A benefit from nearby preceding words and a benefit from much earlier ones are both compatible with the reported learning curves.

#### When search width and word length matter

The authors vary beam width on PKU and report that a width of 4 is sufficient to reach the best performance in the comparison. This probes the tradeoff between keeping alternatives and limiting the work for each input position. A wider beam retains more paths that could eventually become strong completions. The observed result indicates that retaining additional paths beyond the selected width did not improve the best reported PKU performance in that experiment. It gives a practical setting for that test instead of a guarantee that the global scoring optimum survives every pruning decision.

The maximum word length asks a different question about the search. Width controls how many divisions stay in contention. The length limit controls which words those divisions are allowed to contain. The paper reports that words longer than 4 characters account for 0.29% of words in PKU training data and 1.25% in MSR training data. The authors use the same cap for the main comparisons and acknowledge that it is especially restrictive for MSR.

On the MSR test set, the length comparison reports F1 of 96.5 at a maximum length of 4, 96.7 at a maximum of 5 and 96.8 at a maximum of 6. The corresponding training times are 4, 5 and 6 days. A larger cap gives the decoder more spans to consider and requires the composition network to support more lengths. The scores establish that the system benefits from the longer-word settings on MSR, with higher training cost. They do not give a separate accounting of how many of the additional correct words are themselves longer, or how often access to longer candidates changes the surrounding boundaries.

The paper gives a separate running-cost report for PKU. It takes about two days to complete 50 training epochs on two cores of an Intel i7-5960X CPU for the runs the authors identify. The training uses less than 800MB of RAM, and the learned parameters can be saved within 4MB. The MSR timing comparison and the PKU report refer to distinct runs. Together they make the computational tradeoff more concrete, especially for a method that keeps more information about a path than an adjacent-tag decoder does.

### Limitations

#### Limits the authors identify

The authors explicitly acknowledge that the shared 4-character ceiling is restrictive for MSR. Once a reference word is longer than the limit, the decoder cannot output it, regardless of how informative the embeddings or previous words are. The longer-word runs show that this restriction has measurable consequences. The choice of one cap across both benchmarks therefore makes the main settings consistent while giving the two corpora different coverage of their reference words. Increasing the cap takes additional training time, which the authors report alongside the improvement.

The paper also distinguishes the proposed approach’s standing among neural segmenters from its standing against the broader field. Some of the earlier strong systems use feature engineering, external corpora, or extra lexical resources. The authors warn that those results have different conditions from theirs. Their most favorable like-for-like results concern the neural comparisons with shared initialization categories and with the dictionary condition accounted for. Even in the broader table, MSR results above theirs make the qualification important.

The authors present semisupervised training, information from beyond the maintained segmentation history, and joint processing with other linguistic tasks as directions that might improve the approach. Those are suggestions based on techniques from earlier work. The experiments reported here address standalone segmentation and its word-boundary scores. They do not measure whether the resulting divisions help a subsequent task or whether learning those tasks jointly would improve the segmenter.

#### Limits visible in the design and evaluation

The recurrence has access to the previous segmentation through a learned state of fixed dimension. Calling this a full history describes the route by which any previously accepted word can affect a later score. It leaves open what the state actually retains after many updates and which earlier decisions matter most. The network may emphasize useful features of recent words and preserve selected features for longer. The study does not inspect the state to establish the span over which relevant information survives.

The history is also directional. A link is scored from preceding accepted words, before the new candidate enters the state. Later words can affect the ultimate ranking of complete paths when their scores are added. They cannot directly inform the current link score, and they cannot bring back a path that was already pruned. The claim about removing fixed context windows concerns how previous words reach the scorer. It coexists with a candidate length ceiling, a fixed-dimensional state and a finite search beam, each of which limits a different part of the procedure.

The beam-width analysis measures the performance of the search settings tried on PKU. It offers no comparison with exact decoding to separate errors in the learned scoring rule from errors introduced by pruning. Some wrong answers could arise because the desired segmentation has a lower score than a rival. Others could arise because a promising path was lost before its later scores could be added. The character-level margin and word-level evaluation leave another distinction. A training penalty based on character assignments can be informative about boundary mistakes, while word F1 gives credit only for correctly recovered word spans.

Composing from character embeddings gives the segmenter a means to represent unfamiliar combinations. The reported analysis does not separately quantify performance on previously unseen word forms. An improvement in overall F1 could reflect better treatment of familiar words, unseen ones, or both. The composition comparison also does not establish a benefit for each gate independently, and the scoring comparison does not isolate a particular distance in the recurrent history. Those results support the tested combinations and scoring conditions at the level of aggregate segmentation.

The evaluation covers PKU and MSR under the stated preprocessing and resource conditions. It does not measure performance on a new corpus or under a changed annotation standard. This matters for an approach trained to prefer a reference division of the text. Distinct standards can make different words the targets even when the input characters agree. Similarly, replacing English and digit runs or using an idiom list affects which decisions fall to the segmenter. The reported scores apply to the tested handling of those inputs.

Finally, the broader table and the initialization comparison need to be read together. The broader table repeats scores displayed under Wikipedia pretraining, while the paper also describes its performance in closed-set terms. The benchmark rule it gives excludes outside corpora. The scores that unambiguously demonstrate the neural comparison without Wikipedia initialization come from the separately reported random-initialization condition. This distinction limits the claim that can be based on the highest headline scores under a training-corpus-only interpretation.

### What came after

The citing papers named here move the discussion from word boundaries to relations among larger units of text. Their titles establish the tasks and, in several cases, identify a representation technique. The citation connection establishes that they cite Cai and Zhao’s paper. It gives no direct evidence that they adopt the segmenter, its character gates, its max-margin objective or its beam search. The relationships that can be made precise are therefore about the problems they name and the level at which they work.

[Modeling Multi-turn Conversation with Deep Utterance Aggregation](https://md.research.elamur.ai/free/en/papers/zhang-2018-modeling-multi-turn-conversation-deep/) addresses multi-turn conversation and identifies utterance aggregation as its approach. An utterance is the unit being combined in the task named by the title. In Cai and Zhao’s work the combination is of proposed words, whose boundaries are under consideration during inference. The comparison is between representations built over units at different scales. The citation alone leaves open whether the conversational work drew on the use of history, the construction of a representation from smaller units, or another aspect of the segmentation paper.

[Deep Enhanced Representation for Implicit Discourse Relation Recognition](https://md.research.elamur.ai/free/en/papers/bai-2018-deep-enhanced-representation-implicit-discourse/) addresses relation recognition in [discourse analysis](https://md.research.elamur.ai/free/en/concepts/discourse-analysis/). Its title locates the contribution in the representation used to recognize an implicit relation. The segmentation paper likewise makes the representation part of a decision about how text fits together, with a link score indicating whether a candidate word suits the preceding path. Relationship recognition and boundary selection are distinct decision problems. The citation supplies a connection between the works without specifying how the later representation was constructed from Cai and Zhao’s ideas.

[A Stacking Gated Neural Architecture for Implicit Discourse Relation Classification](https://md.research.elamur.ai/free/en/papers/qin-2016-stacking-gated-neural-architecture-implicit/) identifies gates and stacking as elements of an architecture for discourse relation classification. Cai and Zhao give gates explicit duties in word composition, where they control the contribution of unchanged character features and features computed from several characters. Their recurrent gates serve separate duties in updating the history. The citing paper’s title supports a comparison at the level of using learned gates in a text decision system. It leaves the gates’ inputs, outputs and relationship to these particular equations unspecified.

[Shallow Discourse Parsing Using Convolutional Neural Network](https://md.research.elamur.ai/free/en/papers/qin-2016-shallow-discourse-parsing-convolutional-neural/) names a convolutional approach to shallow discourse [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/). The connection is between work that learns representations for a parsing task and a segmenter that learns features for competing character spans. The architecture named in that title is convolutional. The segmentation paper uses a length-specific gated combination for characters and an LSTM for the chosen sequence of words. The citation shows that the segmentation work was relevant to the discourse paper’s discussion, with the exact role of that discussion undetermined.

[Implicit Discourse Relation Recognition with Context-aware Character-enhanced Embeddings](https://md.research.elamur.ai/free/en/papers/qin-2016-implicit-discourse-relation-recognition-context/) has the closest explicit overlap in its title with the segmentation paper’s choice of inputs. It identifies character information and context as ingredients of embeddings for a discourse relation task. Cai and Zhao use characters to create the candidate vector and introduce preceding context through a separate compatibility score. That division between local composition and sequential context is a specific property of their segmenter. The citing work names both ingredients at a different level of text analysis, while leaving open whether it follows the same division of labor.

## Cite

Cite as Deng Cai and Hai Zhao. 2016. Neural Word Segmentation Learning for Chinese. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

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

```bibtex
@inproceedings{cai2016neural,
  title = {{Neural Word Segmentation Learning for Chinese}},
  author = {Deng Cai and Hai Zhao},
  booktitle = {Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2016},
  doi = {10.18653/v1/p16-1039},
  url = {https://doi.org/10.18653/v1/p16-1039}
}
```

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