Elamur Research

Effect of Non-linear Deep Architecture in Sequence Labeling

Paper · 2013 · Mengqiu Wang and Christopher D. Manning

Summary

When a sequence labeler improves after a redesign, the improvement can come from a better way to represent the words, a better way to score their labels, or both. Mengqiu Wang and Christopher D. Manning study this problem for named entity recognition and syntactic chunking. The first task asks which stretches of text name people, places, organizations, or other entities covered by the annotation. The second asks where phrases begin and end and what kind of phrases they are. In both tasks, a decision about one word can affect how its neighbors should be labeled. The authors preserve that relationship and change how the system scores a possible label for each word.

The paper connects a linear-chain conditional random field, or CRF, to the sentence-level likelihood neural network introduced in Natural Language Processing (almost) from Scratch. Both assign scores to whole tag sequences using evidence about individual positions and transitions between neighboring tags. The CRF forms its local scores by weighting and adding the input features. The neural architecture first mixes those features in a hidden layer and then applies a nonlinear activation. The authors also train a hidden-layer version with no activation. Its layers can be combined into a single linear scoring operation, so it helps reveal what happens when the parameterization changes while the local scores remain linear in the input.

The better scoring architecture depends on the representation. On the CoNLL-2003 entity test set, the CRF reaches 85.0 F1 with sparse, discrete features, compared with 83.6 for the nonlinear network. With word embeddings and capitalization indicators as input, the ranking reverses. The nonlinear network reaches 80.7 F1 on that test set, compared with 76.0 for the CRF. Discrete-feature results on syntactic chunking also favor the CRF over the nonlinear network. The paper’s embedding comparisons concern entity recognition.

The strongest reported entity results come from giving each architecture both kinds of evidence. The combined CRF leads the combined nonlinear network on the CoNLL development and test sets and on the ACE and MUC transfer tests. It reaches 82.2 F1 on ACE and 81.1 on MUC. These results establish that a nonlinear layer can make a compact representation more effective in this setup, while a direct linear scorer can make better use of a much larger discrete feature inventory. The activity of learning the hidden layer matters too. Even without a nonlinear activation, the factorized scorer can lose ground to the direct CRF, so the paper treats optimization as part of the explanation for performance in the sparse setting.

Deep dive: Effect of Non-linear Deep Architecture in Sequence Labeling

Wang and Manning test when nonlinear layers improve sequence labeling, comparing discrete features and word embeddings for entity recognition and chunking. · about 33 minutes to read

The problem and its context

Why neighboring decisions matter

Sequence labeling turns a sentence into a parallel sequence of annotations. Each word position gets a tag, and a group of tags can identify a span. In linguistic annotation, such a span may carry information about the role of a phrase or the type of entity it denotes. A word that begins a named organization and a word that continues it can belong to the same kind of entity while receiving different tags. The distinction allows a downstream system to recover the organization as a stretch of text. The paper gives question answering and relation extraction as applications that can benefit from labels attached to text.

A labeler has access to two different sources of evidence. The current word and its surroundings can make a tag plausible at a particular position. The labels assigned to surrounding positions can make that same tag more or less plausible in the sentence’s proposed annotation. Consider the decision to give a word the tag for the interior of a phrase. Its lexical context can favor a particular phrase type, while an adjacent tag supplies evidence about whether a phrase of that type is already under way. A sequence score can account for both kinds of evidence before the system chooses an annotation.

The study concerns where flexibility enters that calculation. One place is the mapping from observations to local tag scores. A system can assign weights to explicit indicators, such as whether a particular neighboring word occurs, and add the weights for the cues present at the position. Another place is the treatment of the output tags. A chain can make the score for a proposed tag depend on the tag beside it, even while the contribution from the input features is linear. Calling the CRF’s local scorer linear therefore says something precise about how it uses its feature vector. The chain still couples the output decisions across the sentence.

That distinction also helps explain the role of feature engineering. A feature can already represent a conjunction, such as the presence of a specific pair of neighboring words. With that feature included in the input, a linear scorer can learn a weight for the whole pair. From the perspective of the original words, the feature expresses an interaction. From the perspective of the scorer, it is a single supplied coordinate. The benefit of adding a hidden layer may depend on how much work of this kind the input construction has already done.

A comparison with two moving parts

The paper places its study against a tradition of generalized linear methods for sequence tasks in natural language processing. The common principle in its account is that evidence is combined linearly in a chosen feature space or in the quantities used to define probabilities. A CRF belongs to the latter case. Its feature weights contribute to a sequence score, and exponentiation and normalization turn those scores into conditional probabilities. The linear part is the score before those operations.

A conventional discrete representation supplies an inventory of features tied to events such as word identities or neighboring tag combinations. At any particular word, only the relevant features are active. Such a vector is sparse because much of the inventory concerns other words or contexts. Its total dimensionality can still be large. In particular, a vocabulary and the pairs formed from it can produce a wide range of distinct lexical cues. A feature that identifies a particular pair can give the scorer specific evidence without requiring it to learn the pair from separate coordinates for its members.

The approach of Collobert and colleagues makes a different choice about input. It uses word embeddings, which represent vocabulary items as vectors of numbers in a shared continuous space. A particular coordinate can contribute to the representation of many words, so a weight on that coordinate can affect many different inputs. The same work also uses a nonlinear transformation to combine input coordinates. The paper describes promising results from that sentence-level neural approach on tasks including part-of-speech tagging, entity recognition, chunking, and semantic role labeling. Those examples motivate the comparison. The experiments here ask what each change contributes when the feature representation and scoring architecture can be varied separately.

The distinction matters because the two changes make different predictions about where improvements should appear. If a nonlinear transformation is especially helpful with distributed inputs, a comparison using embeddings should favor it more strongly than a comparison using explicit binary features. If the transformation is independently helpful for a conventional CRF, adding it should improve performance even with that CRF’s feature inventory. A third possibility is that the amount of discrete evidence available changes the result. The paper considers this by varying the fraction of binary features accessible to the tagger.

The authors also trace a structural connection with prior work. They identify closely related architectures in conditional neural fields, neural conditional random fields, and a study of phone recognition. In their account, those lines of work and the sentence-level network of Collobert and colleagues had been presented without making the connection explicit. The connection that matters here is that a neural network can supply the local scores in the same chain used by a CRF. This lets the authors pose an architectural question within a common probabilistic framework.

Their other point of comparison is earlier research on discrete and continuous features. Word Representations provides a precedent for studying the contribution of distributed word information alongside conventional features. The present paper uses that possibility to ask a further question. Once a labeler has access to both representations, does the nonlinear scorer still hold the advantage it might have when asked to work from the continuous representation alone?

The method, step by step

From an observed sentence to a scored annotation

The method starts with a sentence and an inventory of possible tags. For each word position, the labeler constructs an input vector. In the discrete condition, coordinates indicate which feature events occur at that position. In the continuous condition, the vector is assembled from the embeddings of the current word and nearby words, with capitalization indicators attached. In the combined condition, the labeler gives its local scorer access to both sources of evidence.

The scorer then produces a value for each possible tag at the position. One version calculates that value directly from the input vector. The hidden-layer versions first map the input to intermediate values and then map those values to the tag scores. The nonlinear version transforms the intermediate values before the last step. In each version, the result is a set of local scores, one for each possible label at that word.

The chain also assigns a score to each adjacent pair of labels. The study generally uses a transition feature for the current and preceding predicted tags. This means that two annotations that assign the same label at the current word can still receive different contributions there when they assign different labels at the preceding word. A favorable lexical score can thus coincide with an unfavorable transition, and the overall annotation depends on how that tradeoff plays out across the sentence.

The labeler’s conditional probability is defined over full tag sequences. During training, it scores the annotation recorded for a sentence and compares its score with the mass assigned to all possible annotations of that sentence. The chain allows the sums required for that comparison to be computed by dynamic programming. The calculation has the same structure whether the local scores come straight from the input features or pass through a hidden layer.

From sentence features to a sequence labeler

The steps in order.

From sentence features to a sequence labelerStep 1: Build a feature vector for each word position1. Build a feature vector for each word positionStep 2: Produce local scores for candidate labels2. Produce local scores for candidate labelsStep 3: Score neighboring pairs of candidate labels3. Score neighboring pairs of candidate labelsStep 4: Combine local and transition scores across the sentence4. Combine local and transition scores across the sentenceStep 5: Normalize over possible tag sequences5. Normalize over possible tag sequencesStep 6: Update weights using the annotated sequences6. Update weights using the annotated sequences

The conditional probability and its factors

The paper gives the conditional distribution as a product of position factors and neighboring-label factors, divided by a normalizer. The equations below use a square bracketed subscript to show the position at which a feature vector is evaluated. This makes explicit a dependency that the paper leaves implicit when writing its feature functions.

P(y ∣ x) = [∏ᵢ Ψ(x, yᵢ; Θ) ∏ⱼ Φ(x, yⱼ, yⱼ₋₁; Λ)] / Z(x)

Here x is the sentence of observed words, y is a proposed sequence of tags, and P(y ∣ x) is the probability of that sequence with the words held fixed. yᵢ is the proposed tag at position i, and yⱼ and yⱼ₋₁ are the tags at position j and its predecessor. Each product, written ∏, runs over the sentence positions from 1 through |x|, where |x| denotes the sentence length. Ψ is the local factor for an individual tag and uses parameters Θ. Φ is the transition factor and uses parameters Λ. Z(x) is the sequence-wide normalizing function. The semicolons inside the factor arguments distinguish learned parameters from the observations and tags used to evaluate the factors.

A factor is a positive contribution to the unnormalized weight of an annotation. The local factor of the direct CRF is an exponential of a weighted feature sum.

Ψ(x, yᵢ; Θ) = exp(∑ₖ θ₍ₖ,ᵧᵢ₎ fₖ(x)[i])

Here Ψ, x, yᵢ, i, and Θ have the meanings above. exp is the exponential function, and ∑ₖ adds the contributions for feature indices k from 1 through m, the number of local features. fₖ(x)[i] is the value of feature k at position i in the observed sentence. θ₍ₖ,ᵧᵢ₎ is the learned weight in Θ for that feature and candidate tag. The product inside the sum gives the contribution of the feature to the score before exponentiation. The same feature can have different weights for different tags, so an active indicator can favor one tag while penalizing another.

The chain uses a corresponding expression for its transition factor.

Φ(x, yᵢ, yᵢ₋₁; Λ) = exp(∑ₖ λ₍ₖ,ᵧᵢ,ᵧᵢ₋₁₎ gₖ(x)[i])

Here Φ is the factor for the edge into position i, x is the sentence, and yᵢ and yᵢ₋₁ are the current and previous tags. Λ is the collection of edge weights. The exponential exp takes a sum over edge features, with k ranging from 1 through m′, the number of such features. gₖ(x)[i] gives the value of edge feature k at this position, and λ₍ₖ,ᵧᵢ,ᵧᵢ₋₁₎ is its weight for the specified pair of tags. The earlier work calls its adjacent-tag weights transition scores. The authors use the same form of label-pair evidence for the main comparisons.

The denominator sums the unnormalized sentence weights over all candidate annotations.

Z(x) = ∑ᵧ′ [∏ᵢ Ψ(x, y′ᵢ; Θ) ∏ⱼ Φ(x, y′ⱼ, y′ⱼ₋₁; Λ)]

Here Z(x) is the partition function for sentence x. The sum runs over y′, each full candidate tag sequence. y′ᵢ and y′ⱼ denote tags at positions i and j in that candidate, and y′ⱼ₋₁ is the tag preceding y′ⱼ. The products range over the sentence, with Ψ and Φ evaluated using the local and transition parameters Θ and Λ. Dividing each candidate weight by this same total ensures that the resulting probabilities sum to one. In log space, multiplying the factors becomes adding their scores, which is the basis for the training objective below.

How the hidden layer changes the local scorer

For a fixed position, the CRF can calculate all the local scores in one matrix operation. The paper writes the score for a candidate tag as the component indexed by that tag.

ψ(x, yᵢ; Θ) = [Θᵀ f(x)[i]]₍ŷᵢ₎

Here ψ is the log of the local factor Ψ, x is the sentence, and yᵢ is a candidate tag at position i. f(x)[i] is the column vector containing its local feature values. Θ has a feature weight for each combination of input coordinate and output tag, and ᵀ denotes matrix transposition. The matrix-vector product produces the scores for all tags, and ŷᵢ is the ordinal index of yᵢ, used to select the relevant component. A bias can be represented by an input feature that is always active. The paper calls this direct architecture an input-output neural network when it draws the mapping in neural-network form.

The linear hidden-layer condition replaces the direct operation with two successive matrix multiplications.

s = Δᵀ Ωᵀ f(x)[i]

Here s is the vector of local tag scores at position i of sentence x, and f(x)[i] is the feature vector there. Ω contains the weights from input features to hidden units. Δ contains the weights from hidden units to output tags. Each ᵀ transposes its matrix for multiplication with the column on its right. The first multiplication forms hidden values by adding weighted feature contributions. The second combines those values into an output score for each possible tag. The selected component of s supplies the local log factor for that tag.

Multiplying the two sets of weights together gives a direct weight matrix for the scoring function represented by the linear network.

Θ = Ω Δ

Here Θ is the resulting input-to-tag matrix, Ω is the input-to-hidden matrix, and Δ is the hidden-to-output matrix. The equality is a statement about the scores a fitted linear network can express. For any particular pair of matrices, the composed calculation has the same input-output behavior as the corresponding direct matrix. Learning the factors separately changes how the weights are represented and how the optimizer moves through them. The paper exploits that distinction when it compares the direct CRF with the linear neural network, abbreviated LNN.

The nonlinear condition introduces an activation between the matrix operations. The following notation makes explicit the same change that the paper shows in its architecture diagram.

ψ′(x, yᵢ; Ω, Δ) = [Δᵀ a(Ωᵀ f(x)[i])]₍ŷᵢ₎

Here ψ′ is the new local log factor for candidate yᵢ in sentence x. Ω and Δ are the input and output weight matrices, ᵀ denotes transposition, and f(x)[i] is the input at position i. a is the nonlinear activation applied to the hidden values, and ŷᵢ selects the output component corresponding to the candidate tag. The paper discusses sigmoid and tanh as possible activations and uses soft tanh in its experiments. With the activation in place, the hidden units can respond to combinations of inputs in ways unavailable to a single weighted sum of those same inputs.

The sentence-level likelihood neural network, abbreviated SLNN, uses this nonlinear local score inside the chain. The exponentiated local factor now comes from ψ′, while the transition score keeps its previous form. This is the basis for the authors’ equivalence claim about the SLNN and a CRF equipped with nonlinear local scoring. It is also the reason the comparisons can preserve one inference procedure. Once the local and transition scores have been computed, the chain needs only their values.

How the sentence-wide calculation supports learning

If the local scorer were used on its own for logistic regression, its outputs at a word could be turned into probabilities by a softmax, a normalization over that word’s candidate labels. With edge factors in play, a tag’s probability depends on the neighboring assignments and, through them, the rest of the sequence. In the linear chain, each internal tag is conditionally independent of the other tags once its two neighbors and the observations are given. That local structure allows the algorithm to work through the sentence by retaining sums for partial sequences that end in each possible tag. A backward pass gives the corresponding information for the suffix of the sentence. The authors use these forward-backward calculations for the partition function and the marginal probabilities needed in training. A marginal gives the probability of a tag or tag pair after summing over the other assignments.

The supervised objective adds the log conditional probabilities of the gold annotations. Written in terms of local and transition scores, it has the following form before regularization.

L(Y* ∣ X) = ∑ₗ [∑ᵢ ψ′(xˡ, yᵢˡ*) + ∑ⱼ φ(xˡ, yⱼˡ*, yⱼ₋₁ˡ*) − log Z(xˡ)]

Here L is the training log likelihood, X is the set of training sentences, and Y* is the corresponding set of annotated tag sequences. The outer sum ranges over training examples indexed by l, and xˡ is the sentence in example l. The inner sums range over positions i and j of that sentence. yᵢˡ*, yⱼˡ*, and yⱼ₋₁ˡ* are the recorded tags at the indicated positions, with * marking the gold annotation. ψ′ is the local log factor supplied by the network, and φ is the log of Φ, the edge factor. Their learned parameters are implicit in this expression. log Z(xˡ) is the logarithm of the partition function for that sentence. The first two terms favor the annotated sequence, while the last accounts for the scores of the competing sequences.

For an input-to-hidden weight, differentiating the objective yields the derivative of the gold local score minus its expectation under the current conditional distribution, summed over examples and positions.

∂L/∂ω₍ₖ,ⱼ₎ = ∑ₗ ∑ᵢ [∂ψ′(xˡ, yᵢˡ*)/∂ω₍ₖ,ⱼ₎ − E₍P(yˡ∣xˡ)₎[∂ψ′(xˡ, yᵢˡ)/∂ω₍ₖ,ⱼ₎]]

Here ∂ denotes a partial derivative, and ω₍ₖ,ⱼ₎ is the entry of Ω from input feature k to hidden unit j. In this equation j indexes a hidden unit, while i indexes a word position and l a training example. L is the unregularized objective, ψ′ is the local log factor, and xˡ is the observed sentence. yᵢˡ* is the annotated tag at position i, while yᵢˡ is the tag at that position in candidate sequence yˡ. E denotes an expectation, with each candidate weighted by P(yˡ ∣ xˡ). The sentence-level expectation can be evaluated from the tag marginal at the relevant position because the derivative inside it depends on the candidate through that position’s tag.

The derivatives within the local network are obtained by back-propagation, which applies the chain rule from the output score through the activation and into the input weights. The output weights and edge weights have corresponding observed-versus-expected gradients for their contributions. The paper uses L-BFGS to optimize the weights and applies quadratic regularization, which penalizes large weights through a Gaussian prior. It cites Semi-Supervised Recursive Autoencoders as earlier work for its account of L-BFGS as a stable option for neural-network training.

Building the inputs and setting up training

The discrete input for entity recognition comes from the standard feature configuration of the Stanford named entity recognizer. The experiments use the Stanford CRF Toolkit, associated with the paper on non-local information in information extraction. The inventory generated on the CoNLL-2003 entity training set contains 437,905 features. A large feature inventory matters especially for a dense hidden layer, since the input-to-hidden mapping associates weights with the feature coordinates and hidden units.

The discrete chunking features include the current word and its tag, word pairs on either side of the current position, and conjunctions of nearby tags. The paper also uses a disjunctive set of words from the preceding and following 4 positions. These are observations used to score the chunk label. In particular, the input tags in those templates are distinct from the chunk tags being predicted by the chain. The discrete inventory generated for chunking contains 317,794 features.

For the continuous entity representation, the paper uses embeddings from Collobert and colleagues covering 130K words, each with 50 dimensions. Those vectors were trained on Wikipedia for 2 months. The labeler looks up an embedding for every word in a five-word window centered on the position to be labeled. It appends four binary capitalization features to each word’s input and concatenates the resulting position-specific vectors. Concatenation preserves the difference between an observation about the center word and the same observation about a neighboring word. The authors report replacing digit sequences with num, so their example PS1 becomes PSnum. The padding token PAD supplies context beyond a sentence boundary, and UNKNOWN stands in for words missing from the embedding vocabulary.

The implementation uses the embeddings without task-specific fine-tuning and makes several choices that distinguish the setup from the earlier sentence-level network. It uses soft tanh in place of hard tanh, BIO2 in place of BIOES, and L-BFGS in place of stochastic gradient descent. It omits gazetteer features, which would give the tagger evidence from lists of names or related entries. The authors implement four capitalization indicators because the earlier paper describes four while mentioning five.

The standard hidden width in the experiments is 300 units. All trainable parameters are initialized randomly within [−0.1, 0.1] to break symmetry, so hidden units can follow different learning trajectories. The authors tune the Gaussian prior variance on the CoNLL-2003 development set and use 20 as a stable setting. They stop L-BFGS when its average improvement falls below 1e-3. This keeps the central comparison focused on the scoring architecture and feature representation while giving the architectures a shared optimization procedure.

Experiments and results

What the datasets ask the labeler to recover

The entity recognition experiments train on the Reuters newswire data from the CoNLL-2003 shared task. Its annotations cover Person, Location, Organization, and Miscellaneous. Under BIO2, a B- tag opens an entity span of the designated type, and an I- tag marks a position inside a span after its beginning. An O tag marks a word outside an entity. The scheme lets individual word tags identify multiword spans and distinguish adjacent entities even when their type is the same.

The CoNLL-2003 training split contains 204K words in 14K sentences. The development split contains 51K words in 3.3K sentences, and the test split contains 46K words in 3.5K sentences. Training estimates the weights from annotated sentences. The development data help set regularization and provide the split for the experiment that varies available discrete features. The test data provide an additional comparison on text from the same benchmark.

For transfer evaluation, the authors run the CoNLL-trained labelers on ACE and on the MUC7 Formal Run test set. The ACE test material contains 63K words and comes from ACE Phase 2 and ACE-2003. The paper describes it as coming largely from American news sources, with CoNLL drawn largely from sources in England. The authors regard this as a genre or dialect difference within newswire. That makes ACE a test of transfer across data collections and sources while preserving a broad similarity in text type.

The annotation schemes also differ. ACE marks Person, Location, Organization, Fact, and GPE. The authors map Fact and GPE spans to O in the evaluation data and drop predicted Miscellaneous tags from the labeler’s output. The MUC7 test set contains 59K words. It has no Miscellaneous category and includes Date, Time, Money, and Percent, which are outside the CoNLL-2003 scheme. The paper applies the same conversion approach to MUC7. In both transfer tests, comparisons therefore concern the entity inventory made comparable by this procedure.

Syntactic chunking is evaluated using the CoNLL-2000 shared task, whose data come from the Penn Treebank. The training split contains 211K words in 8.9K sentences. The test split contains 47K words in 2K sentences. Here the labels express phrase types and boundaries. In the paper’s examples, B-NP marks the first word of a noun phrase, while I-PP identifies a word within a prepositional phrase after its beginning.

How the scores are read

The paper reports precision, recall, and F1 for entities or chunks. Precision asks how many proposed spans are correct out of all the spans predicted. Recall asks how many annotated spans are recovered out of all the spans in the evaluation data. Taking the harmonic mean of precision and recall yields F1, a single score for comparing both forms of success together. Because the reported measures concern spans, a plausible tag at one word may contribute to a span that still fails when its boundary or type is wrong.

The direct CRF is the conventional comparison system. The SLNN changes the local scoring function while preserving sequence scoring, and the LNN helps diagnose the effect of the hidden-layer factorization in the discrete setting. The discrete comparison covers both tasks. The continuous and joined-feature results are reported for entity recognition, including the transfer tests. Each ranking is best read with both the input features and the evaluation split in view.

With discrete features, the direct CRF leads

On the CoNLL-2003 development set, the discrete CRF reaches 90.7 entity F1, while the discrete SLNN reaches 89.5. On the test set, the corresponding scores are 85.0 and 83.6. The test precision of the CRF is 85.4 and its recall is 84.7. The SLNN reaches 83.3 precision and 83.9 recall there. Both parts of the span measure favor the direct scorer on the held-out CoNLL test set.

Discrete-feature scorers on CoNLL-2003 entity test F1

The direct CRF leads both hidden-layer variants with discrete inputs.

Discrete-feature scorers on CoNLL-2003 entity test F1Linear hidden-layer network: 83.9Linear hidden-layer network83.9Nonlinear sentence-level network: 83.6Nonlinear sentence-level network83.6Direct CRF (this paper): 85.0Direct CRF (this paper)85.0
The numbers
System or settingF1
Linear hidden-layer network83.9
Nonlinear sentence-level network83.6
Direct CRF (this paper)85.0

The discrete CRF also reaches 77.4 entity F1 on ACE and 73.5 on MUC, compared with 77.3 and 72.6 for the discrete SLNN. The ACE scores are close. The CRF’s precision there is 81.0 and its recall is 74.2, while the SLNN’s are 80.9 and 74.0. On MUC, the CRF’s precision is 72.5 and recall is 74.5. The SLNN reaches 71.1 precision and 74.1 recall on that test. The transfer cases give different views of how much the architecture matters in the discrete setting.

On the CoNLL-2000 chunking test set, the discrete CRF reaches 93.6 chunk F1 and the discrete SLNN reaches 93.3. The direct scorer gives 93.7 precision and 93.5 recall. The nonlinear scorer gives 93.3 for both. The task therefore supplies a result from a different label inventory and a different discrete feature set, with the same ordering between the direct CRF and SLNN that appears in the entity comparisons.

With embeddings and capitalization, the nonlinear scorer leads

The continuous condition replaces the conventional discrete inventory with the window of embedding vectors and their capitalization indicators. With this representation, the SLNN reaches 86.6 on CoNLL-2003 development entity F1, compared with 79.7 for the CRF. The nonlinear scorer reaches 86.1 precision and 87.1 recall there, while the direct scorer reaches 80.7 precision and 78.7 recall. The architecture difference is visible in both reported components.

Embedding-based scorers on CoNLL-2003 entity development F1

The nonlinear scorer makes more effective use of the embedding and capitalization input.

Embedding-based scorers on CoNLL-2003 entity development F1Direct CRF: 79.7Direct CRF79.7Nonlinear sentence-level network (this paper): 86.6Nonlinear sentence-level network (thispaper)86.6
The numbers
System or settingF1
Direct CRF79.7
Nonlinear sentence-level network (this paper)86.6

On the CoNLL-2003 test set, the continuous SLNN reaches 80.7 entity F1 and the continuous CRF reaches 76.0. The nonlinear system’s precision and recall are 79.8 and 81.7, respectively. The direct system’s are 76.4 and 75.5. The development and test rankings agree, and the direction is the reverse of the one observed with the large discrete inventory.

ACE transfer entity F1 is 75.0 with the continuous SLNN and 71.3 with the continuous CRF. The nonlinear score is supported by 75.8 precision and 74.1 recall, compared with 71.5 and 71.1 for the CRF. On the MUC transfer test, the continuous SLNN gives 70.8 F1 and the continuous CRF gives 69.4. There the SLNN reaches 65.7 precision and 76.8 recall, while the CRF reaches 65.3 precision and 74.0 recall. The nonlinear scorer leads on each reported entity split with this representation, while the size and composition of its advantage vary across them.

The representation comparisons within an architecture are also informative. For the CoNLL-2003 entity test, both architectures achieve a higher F1 with the full discrete feature set alone than with the embedding input alone. The same holds on ACE and MUC. The result in favor of nonlinear scoring with embeddings concerns which architecture makes more effective use of those inputs. The stronger discrete results show why the paper proceeds to combine the sources of evidence.

With joined features, both architectures improve

In the joined condition, the authors append the embedding-based input to the discrete features. The direct CRF reaches 92.4 entity F1 on CoNLL-2003 development and 87.7 on the CoNLL-2003 test. The corresponding SLNN scores are 91.9 and 87.1. Each architecture improves on its stand-alone discrete and continuous conditions on both splits. The direct scorer has the higher F1 once the same combination of evidence is available to each.

The joined CRF reaches 82.2 entity F1 on ACE, compared with 81.2 for the joined SLNN. On MUC, the joined CRF reaches 81.1 and the joined SLNN reaches 79.7. The cross-corpus results make the contribution of the joined input visible because they can be compared with either kind of evidence alone for the same architecture. On MUC, for example, the discrete and continuous CRFs achieve 73.5 and 69.4 F1, while their shared-feature counterpart reaches 81.1. The corresponding SLNN conditions reach 72.6 and 70.8 before the inputs are joined.

Scoring architectures and input representations on MUC entity test F1

Both scorers improve with joined features, and the joined CRF earns the highest score.

Scoring architectures and input representations on MUC entity test F1CRF with discrete features: 73.5CRF with discrete features73.5SLNN with discrete features: 72.6SLNN with discrete features72.6CRF with embeddings and capitalization: 69.4CRF with embeddings and capitalization69.4SLNN with embeddings and capitalization: 70.8SLNN with embeddings and capitalization70.8SLNN with joined features: 79.7SLNN with joined features79.7CRF with joined features (this paper): 81.1CRF with joined features (this paper)81.1
The numbers
System or settingF1
CRF with discrete features73.5
SLNN with discrete features72.6
CRF with embeddings and capitalization69.4
SLNN with embeddings and capitalization70.8
SLNN with joined features79.7
CRF with joined features (this paper)81.1

The experiments consequently give different answers depending on how a proposed comparison is framed. Holding continuous input fixed favors the nonlinear scorer. Holding the full discrete inventory fixed favors the direct scorer in the CRF–SLNN comparison. Giving both scorers the combined representation produces the strongest reported entity F1 for each architecture, with the CRF in front. This last comparison is especially important for the transfer question. A continuous representation can be valuable even where its strongest use is as an additional source of evidence in a linear scorer.

What the ablations show

Factoring the weights changes the learning problem

In the comparison, the LNN keeps the hidden layer and matches the SLNN’s parameter count, with the nonlinear activation removed. That makes it possible to compare the effect of the activation with the effect of introducing the hidden-layer parameterization itself. The direct CRF learns a weight matrix, while the LNN learns two matrices whose product determines its scoring function. The function represented by that product remains linear in the supplied features.

The authors illustrate the issue by considering a scaling of the input-to-hidden matrix and the corresponding inverse scaling of the hidden-to-output matrix. The two operations cancel when the matrices are composed, leaving the scoring function unchanged. The parameter values can therefore move while describing the same local scoring function. The authors describe optimization in the factorized setting as non-convex. In practical terms, the architecture introduces an additional problem for training even before asking whether a nonlinear activation would produce a better score.

On the CoNLL-2003 entity development split, the discrete LNN reaches 90.0 F1, between the CRF’s 90.7 and the SLNN’s 89.5. On the entity test split, it reaches 83.9 F1, again between the CRF’s 85.0 and the SLNN’s 83.6. This shows a performance loss from the hidden parameterization even when the fitted scorer is linear. The downstream sequence calculation and the discrete feature input are shared, so those parts of the setup cannot account for the difference between the direct and factorized linear conditions.

The ordering varies across the remaining datasets. On ACE, both hidden-layer systems reach 77.3 entity F1, alongside 77.4 for the direct CRF. The LNN reaches 73.7 on MUC, where the direct CRF reaches 73.5 and the SLNN reaches 72.6. On CoNLL-2000 chunking, the nonlinear variant reaches 93.3 F1, ahead of the LNN’s 93.2, while the CRF leads both at 93.6. The chunking comparison shows a slight gain from the activation relative to the linear hidden-layer version. ACE has a tie on F1 between the hidden-layer versions at the precision reported in the tables. MUC supplies an example where the factorized linear scorer does well while the activation is associated with a lower score.

The paper connects the overall difficulty of hidden-layer training to the scale of the discrete input. It describes the entity recognition SLNN with 300 hidden units as having on the order of 100 million parameters. A large input-to-hidden matrix puts much of the estimation burden at the first layer. In the authors’ interpretation, the resulting non-convex optimization problem helps explain why the hidden-layer systems fail to improve on the direct CRF in much of the discrete comparison. The experiment identifies an empirical cost associated with the parameterization. It leaves room for other influences, including the regularization applied to the separate weights and the way the features encode useful distinctions.

Restricting the feature inventory changes the ranking

The paper also randomly subsamples the binary features and plots CoNLL-2003 development entity F1 against the proportion retained. The curve changes the availability of discrete features while keeping the evaluation on a common split. The labels and the broad feature construction stay the same. The horizontal axis measures feature coverage, so the analysis concerns the size of the input inventory at a fixed supply of training sentences.

The authors describe a small advantage for the SLNN when less than 30% of the discrete features are available. As more features are added, the CRF overtakes it. This matters because the nonlinear scorer’s favorable regime can be observed even within a discrete representation. The comparison between the full discrete inventory and the embedding vectors changes both the feature type and the dimensionality. Sub-sampling supplies a view of what happens when the paper varies dimensionality inside a single broad feature family.

Removing features changes more than the width of the input matrix. It also removes potentially informative cues, including indicators that can encode useful word identities or combinations directly. A hidden layer might have more to contribute when the remaining coordinates leave some distinctions implicit. A wider hidden input also entails more learned weights. The curve is consistent with both ideas, and the random sub-sampling comparison does not establish how much of the change comes from each. It does establish that the result for the full discrete representation is sensitive to how much of that representation is available.

Changing the representation changes what the scorer must learn

The continuous comparison suggests that the relationships among coordinates in the embedding input contain useful information that the nonlinear scorer can exploit. A feature weight on one embedding coordinate is shared across words, and the nonlinear transformation allows the response to depend on the other coordinates present. By contrast, an explicit binary feature can already stand for a particular word or a particular configuration of nearby observations. A strong linear result with such features is compatible with the input representation having supplied some of the useful combinations in advance.

This is the authors’ explanation for the broad interaction between representation and architecture. They discuss the possibility that conventional features in sequence tasks already deliver highly informative units, leaving less gain from explicitly learning nonlinear interactions among the local inputs. They also point out that a CRF can express interactions through its structured variables as well as through the supplied feature combinations. The paper puts these ideas forward to interpret the experiments. It does not identify particular embedding coordinates or hidden units responsible for specific correct annotations.

Joining the features provides a second way to evaluate the explanation. With the discrete and continuous evidence available together, the CRF improves even though it still uses a linear combination of features for local scoring. The benefit of embeddings therefore reaches beyond interactions learned inside a hidden layer. Their coordinates can make useful distinctions available to a linear scorer alongside explicit lexical indicators. This is especially apparent in the ACE and MUC comparisons. The evidence there supports an improvement in transfer under the paper’s setup while leaving the contribution of particular words, contexts, or entity types open.

The authors report that hidden widths from 50 to 500 preserve the main qualitative results. They also report that adjusting the regularization setting does not change the qualitative conclusions. These checks address two possible explanations tied to settings chosen for the main tables. The paper gives the outcome of the checks in qualitative terms, so their value is in assessing the stability of the reported pattern across the settings examined.

Limitations

Qualifications stated by the authors

The authors say that the specific statistical properties responsible for the performance loss with the full discrete feature space are hard to determine. They consider the size and difficulty of hidden-layer optimization a partial explanation. The LNN comparison and the feature sub-sampling curve support that possibility from different directions. The first shows that changing the parameterization can hurt even with linear scoring. The second shows that the ranking can change as the discrete inventory grows. Neither analysis identifies the statistical properties of the corpus that make one scorer preferable for a particular decision.

The authors also qualify their account of novelty. They explain that nonlinear local potentials in a conditional chain had been introduced elsewhere, and they describe their contribution in terms of the connection among these architectures and an empirical comparison. Likewise, their comments about the kinds of local interactions found in sequence labeling are an explanation they offer for the observed pattern. The study tests named entities and chunks. Its remarks about richer statistical structures in other language and vision tasks are broader considerations, rather than results from experiments on those tasks.

The feature sets were chosen for the comparison, and the authors say they did not explicitly engineer the CRF features for maximum performance. They consider the feature choices competitive with earlier CRF results. This gives the baselines a recognizable foundation while limiting the conclusion to the feature configurations used. The continuous replication is also qualified by the authors themselves. The choices about activation, optimization, tag encoding, capitalization, and gazetteers mean the continuous condition is an implementation in the style of the earlier work. The comparison that the paper directly supports is among its own systems trained and evaluated with the stated settings.

The description of ACE puts a further limit on the transfer claim. The authors call attention to the shared newswire character of CoNLL and ACE and describe their differences in terms of source, genre, or dialect. Transfer here measures what happens when the CoNLL-trained system is applied to another annotated collection under the paper’s label conversion. It gives evidence of generalization beyond the CoNLL benchmark split within that setting.

Limits visible in the experimental design

The clearest evidence for nonlinear scoring with embeddings concerns entity recognition. Chunking broadens the discrete comparison, where the direct CRF leads the nonlinear network. The paper supplies no continuous or joined chunking results. The experiment therefore leaves open how much the ordering would change for that task if its conventional local input were supplemented or replaced by embeddings.

There is also an asymmetry in the ablations. The LNN appears in the discrete comparison, which provides a way to assess what a hidden parameterization costs there before nonlinear activation is introduced. The continuous comparison presents a CRF and an SLNN. It therefore establishes a performance advantage for the nonlinear architecture over the direct CRF with the same continuous representation, while leaving the contribution of a matched linear hidden layer in that setting unmeasured. A direct comparison with a continuous LNN would be needed to make the activation-versus-factorization analysis as specific there as it is for discrete features.

The architectures use the same family of chain calculations and are trained with the same named optimizer, but they present different objectives in their fitted parameters. A penalty on a direct matrix is a different parameter-level constraint from penalties on the two factors of a composed matrix. The scaling example makes it clear why different parameter settings can correspond to the same unregularized scoring function. Once regularized training is considered, the relation between scoring functions and preferred weights can also differ. The study reports the performance of the training setups as used, so the observed loss in the hidden linear condition cannot be apportioned precisely between optimization and the effective constraints on the fitted scorer.

Dimensionality plays several roles in the evidence. The embedding experiments alter what each feature means, how widely its effect can be shared across words, and how the input is assembled. The discrete sub-sampling experiment varies how many explicit cues the system has at its disposal, as well as how many input connections it needs to learn. The fact that both comparisons point toward an interaction with input size gives the authors a basis for their account. It leaves the individual effects of dimensionality, sparsity, and feature content intertwined.

The embedding conditions use a particular set of pretrained vectors, a centered window, capitalization indicators, and a shared unknown-word representation. The study tests the feature package as a whole. Its scores do not measure what the same local scorer would do with different vectors, a different window, or the capitalization indicators removed. Likewise, the improvement from joining features does not show which part of the continuous input complements the discrete cues on each corpus. The evidence supports the use of the combined input in the tested setting without isolating the responsible coordinates or token categories.

The results tables also summarize aggregate span precision, recall, and F1. Those aggregates can distinguish a precision change from a recall change, but they do not reveal whether an improvement comes largely from placing boundaries correctly, assigning types correctly, or handling a subset of the entity inventory. The paper initializes weights randomly and describes sensitivity checks for hidden width and regularization. Its tables give point scores, so the reader cannot quantify variation across initializations or attach uncertainty to close comparisons such as the discrete ACE F1 results.

Finally, the ACE and MUC conversions define the scope of the external evaluation. Relabeling unsupported categories and discarding Miscellaneous output make the schemes more comparable. They also mean the transfer numbers measure performance on adapted versions of those tasks. The study provides no comparison that quantifies how the conversions themselves affect the architecture ranking, and its conclusions about transfer apply to the label space used in the comparisons.

What came after

The works that cite Wang and Manning extend into word representation, sequence tagging, targeted sentiment, and parsing. Their titles establish the subjects of those contributions. They show where the questions of input representation and structured scoring recur, while the citation relationship alone leaves open which parts of Wang and Manning’s design each work adopted.

Word representations and sequence tags

GloVe: Global Vectors for Word Representation concerns the construction of word vectors. It addresses the representation side of the distinction Wang and Manning draw. Their sequence labelers take vectors learned from Wikipedia as an input, then compare what linear and nonlinear scoring can do with them. GloVe puts the vectors themselves at the center of the work. The connection is at the interface between representation and downstream scoring. A method for constructing word vectors changes the evidence a sequence labeler receives, while the comparative question in Wang and Manning concerns how a particular labeler uses the evidence once it is supplied.

Bidirectional LSTM-CRF for Sequence Tagging brings a bidirectional LSTM and a CRF into the same tagging architecture. The title identifies a combination directly relevant to Wang and Manning’s decomposition. Their study uses a fixed window to provide a local scorer with evidence on either side of a word, then lets a chain account for neighboring labels. The later work puts a bidirectional LSTM on the neural side of a CRF tagging system. Its relationship to the earlier comparison is architectural. The contribution made by the neural component and the contribution made by structured tag scoring remain distinguishable questions when the neural component changes.

Sentiment and parsing

Neural Networks for Open Domain Targeted Sentiment applies neural networks to a problem in sentiment analysis focused on targets. A target gives the sentiment decision an object within the text, which makes the treatment of local evidence pertinent to the task. Wang and Manning’s entity and chunking experiments give a point of comparison for thinking about the feature representation available to a neural scorer in a different application. The later title identifies the task and the use of neural networks. It leaves the details of any shared feature configuration or sequence objective unspecified.

Cross-lingual Dependency Parsing Based on Distributed Representations brings distributed representations into cross-lingual dependency parsing. This is another setting where two questions can be distinguished. One concerns what the representation lets the system share across linguistic inputs. The other concerns how the system scores the structure it predicts. Wang and Manning examine transfer across entity corpora using tag chains. The later work concerns dependency structures across languages, so the parallel lies in bringing distributed input representations to a structured linguistic task.

Neural CRF Parsing considers the combination of neural scoring and a conditional random field in parsing. The connection is the use of neural and conditional structured components together. Wang and Manning make that combination easy to see for a linear chain because the local tag scores can be exchanged while the adjacent-label factors continue to work in the same way. Parsing changes the structured prediction problem. The common architectural question is what the neural component contributes to the scores that a conditional structured system uses.

Cite

Cite as Mengqiu Wang and Christopher D. Manning. 2013. Effect of Non-linear Deep Architecture in Sequence Labeling. Proceedings of the Sixth International Joint Conference on Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{wang2013effect,
  title = {{Effect of Non-linear Deep Architecture in Sequence Labeling}},
  author = {Mengqiu Wang and Christopher D. Manning},
  booktitle = {Proceedings of the Sixth International Joint Conference on Natural Language Processing},
  year = {2013},
  url = {https://aclanthology.org/I13-1183/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/wang-2013-effect-non-linear-deep-architecture/