Word Order Sensitive Embedding Features/Conditional Random Field-based Chinese Grammatical Error Detection
Paper · 2016 · Wei-Chieh Chou, Chin-Kui Lin, Yuan-Fu Liao et al.
Summary
A Chinese grammar checker for learners has to make several judgments about the same sentence. It must decide whether anything is wrong, what kind of error occurred, and where to direct the learner’s attention. A sentence can contain the intended words in the wrong order, omit a needed word, include an unnecessary one, or use a word that does not fit. Chou and colleagues address these cases in traditional Chinese with a conditional random field, or CRF, which assigns labels across a sequence. Their main question is whether the checker benefits from word representations trained to distinguish the positions of neighboring words. That question sits at the intersection of grammatical error correction and learner language and word embeddings.
The checker starts by normalizing the text, identifying word boundaries, and assigning each word a grammatical category. The authors reuse a traditional Chinese parser trained on Sinica Balanced Corpus 4.0 and originally built for automatic speech recognition. They then group words by their embeddings, letting the checker learn from examples that contain different words assigned to the same group. They compare the original Word2Vec approaches, Skip-gram and continuous bag-of-words, with CWindow and Structured Skip-gram. CWindow keeps the positions of neighboring words distinct when predicting the middle word. Structured Skip-gram uses the middle word to predict its neighbors separately by position. The checker also gets a feature for membership in a short list of words that frequently cause learners trouble.
On the held-out portion of their development data, both position-sensitive approaches scored above both original Word2Vec approaches on F1, a measure that combines precision and recall. CWindow had the highest F1, at 18.03, and the highest recall, at 10.89%, in that comparison. Structured Skip-gram had the highest precision, at 56.97%. A separate comparison found that adding the feature for error-prone words to the CWindow checker improved F1 from 17.75% to 18.03%, while its accuracy edged down.
The authors used CWindow for all their submissions to the NLP-TEA-3 shared task, which evaluated diagnosis on TOCFL learner writing. The submissions used different operating points, meaning they made different tradeoffs in how readily they raised an alarm. The authors report that their most conservative submission, Run1, had the lowest false-alarm rate and the highest precision at all the task’s evaluation levels among participants. In the official-results discussion, Run1 has a false-alarm rate of 0.1362 and position-level precision of 0.2542, with position-level recall of 0.0483. The conclusion gives a conflicting false-alarm figure. The results bring a practical choice into view for a learning tool. Avoiding spurious feedback matters, and a checker tuned to raise fewer alarms can leave much of the learner’s actual error burden unaddressed.
Deep dive: Word Order Sensitive Embedding Features/Conditional Random Field-based Chinese Grammatical Error Detection
How word embeddings that preserve context order help a Chinese grammar checker identify errors and limit false alarms in learner writing. · about 36 minutes to read
The problem and its context
What a diagnosis has to tell the learner
The task concerns sentences written by people learning Chinese as a foreign language. The system encounters the learner’s wording as it stands. To diagnose a sentence, it needs to decide whether the wording calls for an alert and, if it does, identify the kind of problem and locate it. Flagging a whole sentence can direct a learner to the right place in an essay. A diagnosis within the sentence can direct attention to the expression that needs reconsideration. The shared task expects both a location and an error type, so a system that recognizes a suspect sentence still has work to do.
The paper describes Mandarin as relying heavily on word order and sentence structure to convey grammatical function. Changes in the form of individual words carry less of that work in the authors’ account. The place occupied by a word can therefore matter even when every word in an expression is familiar and individually plausible. Grammatical particles and expressions associated with aspect or mood pose a related challenge. The learner has to judge when an expression is needed and where it belongs. For a detector, recognizing the expression is only a starting point. The words around it and the arrangement of the larger phrase help determine whether its use is appropriate.
The authors distinguish disorder, missing material, redundancy, and selection. Disorder covers cases where some of the material belongs in a different order. In an example about a gift that may arrive late, the duration is placed before the expression for being late, where the correction puts it afterward. A missing error calls for material that is absent from the learner’s sentence. In an example about finding a job, the authors add 了 after the expression for finding work. An extra word can also be the problem. The paper illustrates redundancy with uses of 是 that the corrections remove. In a selection error, the position may be recognizable and still contain the wrong expression. The paper gives a case where the learner’s choice of 那麼 is replaced by 多.
These distinctions make the task more demanding than finding words that look unusual in isolation. A misplaced expression can be composed of entirely ordinary words, and each can retain its usual meaning. An unnecessary word can be entirely appropriate in another sentence. A missing word cannot be identified by looking up the material that occupies the gap, because the detector sees the surrounding words only. A selection error can resemble a grammatical pattern closely enough that recognition of the broad pattern leaves the problem unresolved. The paper’s categories distinguish the relationships that the diagnostic system needs to learn between the observed sentence and an annotation of what went wrong.
There is a further question about what constitutes an observed word. In the traditional Chinese text used here, the checker has to infer word boundaries during preprocessing. Its later features describe units produced by that segmentation, such as the grammatical category or length of a word. Different boundaries can change what those features describe and which words count as neighbors. The problem therefore involves a practical dependency between the quality of identifying the units and the quality of diagnosing their arrangement. The authors make this dependency explicit by giving the traditional Chinese front end its own place in the system and reporting its performance separately. Tokenization and segmentation
How earlier systems looked for errors
The paper describes earlier approaches as falling broadly into systems that combine linguistic rules with statistical evidence and systems that pose diagnosis as classification. In the rule-based work by Lee and colleagues, hand-built rules use information about sentence structure to detect errors in learner writing. A subsequent system from Lee and colleagues combines rules with statistics over short sequences. These sequences, called n-grams, retain a local ordering of their elements, so they offer evidence about which arrangements occur in the data. In the paper’s account, this previous work uses linguistic expectations and corpus statistics together to make a sentence judgment. A Sentence Judgment System for Grammatical Error Detection
Lin and Chen took a related route through hypothetical edits. Their checker produced sentence variants by removing, adding, or exchanging characters or words and then assessed how likely the resulting strings were. The paper describes their likelihood functions as using frequencies from a version of Google n-grams with spaces removed. This approach brings the types of learner errors into the search procedure itself. A deletion can test the possibility of redundancy, an insertion can test for missing material, and an exchange can test a change in order. The evidence for a possible problem comes from the plausibility of an edited sentence.
The paper also describes several ways to treat diagnosis as a labeling or classification problem. Xiang used an ensemble with randomly selected feature subspaces, so the classifiers in the ensemble could work from different subsets of the available evidence. Cheng and colleagues applied a CRF to the narrower problem of detecting word-order errors and used a separate ranking procedure based on a support vector machine to propose corrections. Chen and colleagues and Yeh and colleagues also used CRFs, with rules or patterns associated with common errors. This line of work made it possible to learn from labeled learner sentences while giving the learner a more specific diagnosis than a sentence-level judgment alone.
A CRF is attractive to the authors because the units within a sentence can be labeled as a sequence. Decisions at neighboring positions can take account of one another, and the input features can describe how the words are arranged. The authors see a constraint in the evidence available to a conventional implementation. A feature tied to an exact word and its immediate neighbors can represent a useful pattern, yet it may receive little training evidence if many different word identities can occur in that pattern. Adding grammatical tags supplies a shared description, but the authors also want a way to group words according to what the surrounding text reveals about their use.
The paper cites a figure of more than 160,000 Chinese words when motivating the sparsity problem. That figure is its illustration of the size of the lexical inventory, separate from the measured size of the vocabulary in the embedding experiments. The underlying difficulty is that a useful pattern can recur across sentences without recurring in precisely the same words. If the detector represents each occurrence with different word-specific features, the training evidence is split among those features. A class index gives the learning procedure a chance to pool evidence from members of the same group, even when the exact word combination is absent from the labeled examples.
The proposed change uses distributed word representations to form those classes. The original Word2Vec approaches cited by the paper learn from context, and the particular distinction the authors draw concerns relative positions inside that context. A representation trained from neighbors with their positions set aside can be a reasonable source of word classes. For grammar diagnosis, the authors ask whether it helps to build classes from evidence that distinguishes the neighbor before a word from the neighbor after it, and nearer positions from farther ones. That change concerns what is learned from the context, while the diagnosis still depends on features observed in an ordered sentence. Distributed Representations of Words and Phrases and their Compositionality
The method, step by step
From learner text to usable features
The system joins two kinds of training evidence. General text supplies examples of how words occur in context. Annotated learner sentences supply examples of errors and their locations. The authors first train a representation of words from the general text and group the resulting vectors into classes. The grammar checker then uses those classes alongside evidence from a parser and a list of selected words. This arrangement lets the groups carry information learned from ordinary text into an error-diagnosis task where the useful supervision comes from a different source.
At the front end, the traditional Chinese parser normalizes the input, segments the characters into words, and assigns a grammatical tag to each word. The normalization stage prepares the text for the later stages. Segmentation establishes the sequence to which subsequent features refer. A grammatical tag assigns a category to a word as used in that sequence. The authors also use a reduced inventory of tags, so a word can contribute evidence at a finer and a coarser level of grammatical description. The paper uses the abbreviations POS and RPOS for the full and reduced tags. Part-of-speech tagging
The final detector is another CRF, separate from the one used for preprocessing. A learner sentence enters this detector as a sequence of observations derived from the words and their surroundings. The training examples pair those observations with the target diagnosis labels. The detector learns to assign a sequence of labels from the features. For instance, a feature can identify the grammatical tag of a word while also describing the tags of its neighbors. A different feature can identify a cluster containing words with related contextual behavior. The same observed position can thus contribute information from several sources.
From text corpora and learner sentences to diagnoses
The steps in order.
The diagram includes both preparation and use. The embedding training and clustering produce a resource that the system can reuse across learner sentences. Preprocessing and feature construction turn an individual sentence into observations for the detector. During training, the learner annotations tell the detector what labels to associate with such observations. At evaluation time, its input consists of features derived from the sentence. In particular, the word groups come from distributional evidence in general text. The connection between a pattern of groups and a particular learner error is learned in the diagnosis stage.
The parser establishes the word sequence
The parser was trained on Sinica Balanced Corpus 4.0. It was originally developed for automatic speech recognition, so reusing it for written learner sentences also gives the authors an opportunity to examine its applicability beyond its original purpose. In the grammar checker, the parser supplies boundaries and grammatical tags, the functions the paper describes for this component. The representations that arrive at the final detector depend on those decisions. For instance, joining characters into a different word can change its length, its tag, whether it matches an entry in the error-prone list, and the class index associated with it.
A full set of 47 tags gives the checker a relatively fine description of each word’s grammatical category. The reduced tag supplies a way to treat a distinction as irrelevant in a particular position of a feature template. For example, a template can specify the full tag of the current word while describing nearby words using reduced tags. It can then apply across neighboring contexts that differ only in distinctions removed by the reduced inventory. This is a second kind of sharing in the design. A coarse tag can pool evidence across grammatical categories, and a word class can pool evidence across words whose vectors group together.
The examples and templates in the paper treat the sentence as a sequence of parser-defined words. Position in this sequence has a different meaning from a character offset in the raw text. A context slot next to a word in a feature template refers to a neighboring word, regardless of how many characters either word contains. This distinction matters in Chinese because the relevant words can have different lengths. It also explains why the word-length observation is distinct from a template offset. One describes the unit, while the other describes its relationship to the current position.
Learning from context while keeping positions distinct
A word embedding is a vector associated with a word. In this system, a vector is learned through a prediction task on text. The training procedure supplies a word and its context, with part of that arrangement serving as input and part as the target to predict. After training, the vectors are used to group words. The grammar detector receives the resulting group identifiers. Although a group can support a feature about position, the vector itself belongs to the word, and the group identifier comes from that vector. The design therefore preserves positional evidence through the way the vectors are learned, then uses the learned classes in ordered patterns.
The original continuous bag-of-words approach, CBOW, predicts a middle word from context represented as a collection of neighbors. The original Skip-gram works in the other direction, using a middle word to predict neighbors with a prediction procedure that does not distinguish their offsets. The paper treats both as insensitive to the order inside the context window. What matters for the comparison is the training procedure’s treatment of positions. Both alternatives used by the authors still produce word vectors, and both change the predictive evidence that shapes those vectors. Linguistic Regularities in Continuous Space Word Representations
CWindow keeps the direction of prediction used by CBOW. The context provides the input and the middle word is the target. To distinguish positions, it places the neighbors’ embeddings side by side in a fixed order. The input for the neighbor immediately before the middle word goes into a different part of the resulting vector from the input for the neighbor immediately after it. Two contexts containing the same words in different arrangements can therefore give different inputs. A predictor with separate weights for the different parts can learn that a word is informative in one position and less informative in another.
[e(w(−c)), …, e(w(−1)), e(w(1)), …, e(w(c))]
Here w(i) is the context word at offset i from the middle word, and e maps a word to its embedding vector. The variable c is the context radius in words on each side. A minus sign marks an offset before the middle word, and a positive offset marks one after it. The offset sequence omits the middle position because the word there is the prediction target. The ellipses stand for the intervening offsets. The brackets and commas indicate that the vectors are concatenated in the displayed order.
O ∈ ℝ^(|V| × (2c × d))
Here O is the output predictor for CWindow. The membership sign ∈ places it in the set of real matrices described by ℝ and the dimensions following it. V is the vocabulary and |V| is its size. The predictor has an output dimension corresponding to that vocabulary and an input dimension of 2c × d. The factor 2c counts the slots on both sides of the middle word and d is the size of each word vector. The multiplication signs specify the size of the concatenation and the shape of the predictor. This is the architecture’s dimensional description. The experiment section separately specifies how the authors estimated target-word probabilities in training.
CWindow can use evidence from the occupied slots together when it predicts the middle word. The contribution from a particular slot enters through the portion of the input assigned to that slot, giving the predictor a way to weigh identical neighboring words differently according to where they occur. To see how this relates to the error task, consider the difference between a particle occurring before a phrase and the same particle occurring after it. A predictor that treats all context slots alike loses the distinction at the point where it learns from the window. A predictor with separate slots can use it when learning the embeddings. The downstream detector then has access to the groups produced from those embeddings.
Structured Skip-gram reverses the direction. The input is the embedding of the middle word. The neighboring words supply the targets, and the method gives each context position its own output predictor. Predicting the word immediately before the middle word and predicting the word immediately after it are different prediction problems within the training procedure. They start with the same middle-word representation, but each uses the output predictor associated with its own offset. The middle-word vector can consequently receive different training evidence from the same neighboring word appearing in different slots.
(O(−c), …, O(−1), O(1), …, O(c))
Here O(i) is the predictor for the neighboring word at offset i. The radius c, the signs, and the ellipses mark the same range of surrounding positions as in the CWindow input. The parentheses and commas collect the predictors for the slots. There are c × 2 predictors, with every context slot supplied by its corresponding predictor. Each takes the middle-word embedding as input.
O(i) ∈ ℝ^(|V| × d)
The notation O(i) now refers to the predictor for a particular slot. The set of real matrices is denoted by ℝ with its shape, and ∈ indicates that the predictor has that shape. The output dimension is the vocabulary size |V|, and the input dimension is the single middle-word embedding size d. The multiplication sign separates the row and column dimensions. The shape applies to each predictor in the preceding collection.
The two adaptations thus put position in different parts of the prediction. CWindow makes position explicit in the input used to predict a middle word. Structured Skip-gram makes it explicit in the outputs used to predict neighbors. Both give the embedding training access to the difference between left and right contexts, and both distinguish offsets farther away from those closer in. The authors adopt these approaches from work on adapting Word2Vec for syntactic tasks and compare their usefulness once the embeddings have been converted to features for a Chinese learner error detector. Two/Too Simple Adaptations of Word2Vec for Syntax Problems
Turning vectors into class indices
The authors built the embeddings with a modified Word2Vec toolkit. All the variants drew their training text from the same sources. These included Chinese Gigaword Second Edition from LDC and Sinica Balanced Corpus 4.0. The collection also included the Chinese Information Retrieval Benchmark, version 3.03, identified as CIRB0303, and Taiwan Panorama Magazine. TCC300 and the ZH_TW version of Wikipedia supplied further text. The shared training collection matters for the comparison because a variant’s detector could otherwise benefit simply from having learned its groups from a different pool of text.
The vectors had size 300 for every variant. The context window was specified as 13 (6+1+6) words, with the middle position between the slots on either side. The paper reports using hierarchical softmax to estimate target-word probabilities for computational efficiency. It organizes the prediction through a hierarchy so the procedure can estimate the probability of a word without directly scoring the entire vocabulary in a single flat calculation. Its role in the pipeline is during embedding training. The diagnosis stage uses the class index derived from the resulting vector.
The grouping step used k-means with 1,024 classes. K-means groups vectors around cluster centers, giving a discrete identity to membership in each group. Words with vectors assigned to the same cluster share the corresponding index. Its appearance in a learner sentence allows the detector to activate a feature that is also available in sentences containing other members of the cluster. A position-specific pattern in the detector can therefore be supported by several different surface forms in the learner training data.
Clustering changes the form in which the information is available. A vector can express degrees of similarity and carry information across its dimensions. A cluster index supplies a discrete membership decision. This gives the CRF an observation it can combine with tags and nearby indices, using the same feature structure across all the embedding variants. It also means that the eventual grouping is part of the intervention being tested. Changing how the vectors are learned can change which words share a class, and those changed memberships are the evidence that reaches the detector.
Giving recurrent learner trouble spots their own feature
The authors complement the cluster and tag features with an indicator for words that often appear in learner errors. Yeh’s earlier checker used patterns involving quantifiers and combinations of specific words with grammatical tags. The paper describes patterns involving such words as 把 and 跟, expressions such as 應該 and 好像, and combinations involving 到底 and 已經. Chou and colleagues selected those words for special treatment and added 是, 的, and 了. This produces the paper’s set of 9 error-prone words. In the detector, the indicator records whether the current word belongs to that set.
The paper illustrates why the listed words need their surrounding context. Some learner examples contain an unnecessary 把, 是, 的, or 了. In one example, the correction removes 是 from an expression of someone’s age. In another, the correction moves 跟我 earlier in an invitation to go to a film. The paper gives a case where 到底 is moved from the opening of a question to a position after its subject. These are different error types, and the ability to notice one of the selected words supplies only part of the evidence needed to distinguish them.
Other examples show why an individual listed word cannot determine a diagnosis. In one learner passage, 好像 is used to introduce examples of what students should learn about another culture, and the correction uses 例如. In the job example, the correction supplies 了. Elsewhere, a correction deletes 了. Its presence can therefore be part of a redundant construction, while its absence can create a missing error. In a sentence where a word is absent, the indicator has no occurrence of that word to flag at the gap. Evidence for a missing item must come through the observations the sentence does contain and the labels the detector has learned to associate with them.
The authors’ template combines the indicator with the full grammatical tags of its immediate neighbors. This gives the detector a way to learn which environments around a listed word merit attention from labeled examples. The template is related to Yeh’s word-and-tag patterns, but the feature expresses membership in the selected set and lets the detector learn from the neighboring tags. Triggering the feature therefore creates evidence to weigh along with the rest of the sequence. The diagnosis still depends on the full set of observations and the learned weights.
Combining observations into patterns for labeling
The paper describes five observations for each word. Word length supplies a property of the segmented unit. The full POS tag and its reduced version describe grammatical category at different levels. The class index provides the group learned from embedding vectors. The error-prone indicator records membership in the short list. The authors illustrate a training record containing the word itself, these observations, and the target error label. The examples show the unit at which feature values are assembled. The feature-template specification then describes which of those values the detector examines together.
The word-class family uses single class indices as well as sequences of indices. Its single-position observations cover the current word and the nearby positions on each side. The combinations include runs before and through the current position, runs from that position onward, and runs centered on it. Consequently, the same class can carry a different signal when it is on one side of the position being labeled than when it is on the other. The feature can also represent a multiword pattern whose individual class assignments would provide weaker evidence in isolation.
{Cₙ₋₂, Cₙ₋₁, Cₙ, Cₙ₊₁, Cₙ₊₂, (Cₙ₋₂, Cₙ₋₁, Cₙ), (Cₙ, Cₙ₊₁, Cₙ₊₂), (Cₙ₋₁, Cₙ, Cₙ₊₁), (Cₙ₋₂, Cₙ₋₁, Cₙ, Cₙ₊₁, Cₙ₊₂)}
Here C is the word class index and n is the position whose label the template helps predict. The subscripts give positions in the segmented sentence. A minus sign moves towards the preceding words, and a plus sign moves toward the following words. The braces collect the templates in the family. A standalone index provides a feature from one position, while a parenthesized group combines its comma-separated values in sentence order. A group describing the immediately surrounding words differs from one that extends from the current word farther toward either end of the sentence.
The family that combines full and reduced tags puts a full tag at the current position and reduced tags at nearby positions. It can represent a construction anchored on a specific grammatical category while grouping together less detailed variants of the rest of the pattern. One pattern looks backward from the full tag. Another surrounds it with a reduced tag on each side. Another looks forward. This gives the detector access to different local arrangements around a finely described center.
{(RPOSₙ₋₂, RPOSₙ₋₁, POSₙ), (RPOSₙ₋₁, POSₙ, RPOSₙ₊₁), (POSₙ, RPOSₙ₊₁, RPOSₙ₊₂)}
POS denotes the full grammatical tag and RPOS the reduced tag. The subscript n identifies the current word, and n with a signed offset identifies a preceding or following word. The braces enclose the family, and each parenthesized sequence is a separate feature template. Commas inside a sequence separate feature values that are considered jointly in the displayed order. The connection between the features comes from their ordered positions in the input.
The family that mixes reduced tags with class indices uses the same arrangement of positions, with the current word identified by its learned class. This lets the detector represent, for instance, a group of distributionally related words followed by a particular sequence of broad grammatical categories. It gives the class index an anchoring role that differs from its use in a run of indices alone. The nearby words in this family contribute grammatical categories, so a feature can recur across contexts whose neighboring words belong to different vector clusters.
{(RPOSₙ₋₂, RPOSₙ₋₁, Cₙ), (RPOSₙ₋₁, Cₙ, RPOSₙ₊₁), (Cₙ, RPOSₙ₊₁, RPOSₙ₊₂)}
Here Cₙ is the current word’s class index and RPOS supplies the reduced tags. The subscript n marks the current position. Subtracting or adding the displayed offset refers to words before or after it. The braces list the available combinations, and the parentheses and commas keep the observations grouped and ordered within each combination.
The final family takes the error-prone indicator at the current position and surrounds it with full tags. In this family the central value is membership in the selected list, and the two grammatical tags retain the distinctions of the full tag inventory. This matches the authors’ aim of letting the detector use the grammatical surroundings of a often misused word. In combination with the other families, it can give the detector evidence that is more directly tied to recurrent learner behavior than a general class learned from ordinary text.
(POSₙ₋₁, EPWIₙ, POSₙ₊₁)
EPWI is the error-prone word indicator, and its subscript n places the indicator at the current word. POS identifies the full tag. The signed offsets select the words immediately before and after the current word. The parentheses and commas form the ordered combination used as a feature template.
The word-class patterns themselves also preserve sequence order. This is a separate source of ordering information from the embedding training architecture. A class from CBOW can occupy a distinctly preceding or following position in a CRF feature, just as a class from CWindow can. The difference being tested is what happens when the identities filling those slots come from position-sensitive embedding training. The detector, built with CRF++, provides a common labeling framework across the comparisons. Its learned diagnosis can use evidence about the current word, evidence jointly describing nearby words, and the fact that its output is a sequence of labels.
Experiments and results
The data used for development and evaluation
For the experiments, the researchers analyze writing by learners from TOCFL (Test of Chinese as a Foreign Language) that was provided for the NLP-TEA-3 shared task. To enlarge the pool for development, the authors also added material from earlier editions, NLP-TEA1 and NLP-TEA2. They report 63,462 sentences in the combined development pool. They divided it at a ratio of 9:1, with 57,116 sentences for training and 6,346 for testing within development. This held-out subset served the preliminary comparisons. The shared task’s official evaluation was a separate stage involving submitted configurations.
The development-data statistics give 1,980 for disorder, 4,971 for redundancy, 90 for missing errors, and 10,686 for selection. The correct category is listed with a count of 35,141. These figures are the entries the paper reports for the assembled material. The table mixes error categories with a correct category under a count heading, so the entries should be read as reported counts. The paper gives the overall sentence count and the split sizes separately. Relative frequency matters when interpreting performance, since a score aggregated across cases can convey little about a category with relatively few reported examples.
The preprocessing component has its own figures. The authors report segmentation F-measure of 96.72% on the original corpus and 97.50% on a manually corrected version. They describe the difference between segmentation precision and recall as less than 0.06%. For grammatical tagging, they report accuracy of 94.97% using the full 47-tag inventory. These figures characterize the parser in the authors’ corpus evaluation. The learner diagnosis experiments ask a different question about the complete system and depend on more than whether a word boundary or a tag is correct.
What the metrics reveal
Accuracy measures the share of decisions judged correct at the evaluation level in question. Precision asks how often a reported detection meets that level’s criterion for a correct detection. Recall asks how much of the annotated error material the system recovers under the same criterion. The more specific the required diagnosis, the more information a correct detection may need to supply. For the official position-level result, the reported diagnosis includes a location. The paper’s discussion gives the position-level figures for Run1 and reports its precision standing across the shared task’s evaluation levels.
F1 combines precision and recall into a measure that responds to both being high. A setting with strong precision and weak recall can therefore have a lower F1 than another with slightly weaker precision and better recall. This distinction matters in the preliminary experiments because the settings change their relative standing across the measures. A headline about the best accuracy, another about the best precision, and another about the best F1 can point to different configurations. The authors used F1 to choose which embedding approach to submit.
The false-alarm rate addresses the burden of incorrect alerts on material that should be left alone. In the educational setting discussed by the authors, this matters because the checker’s output is intended to guide a learner. A system that flags too many acceptable sentences can direct attention to places where no change is needed. Precision and false alarms both concern incorrect alerts, but their reference sets differ. Precision starts from what the system reports. The false-alarm rate concerns opportunities to flag acceptable material. Recall addresses another cost, the errors that a learner receives no alert about.
How the embedding approaches compared
The preliminary experiments used the same diagnosis framework for Skip-gram, CBOW, Structured Skip-gram, and CWindow. All included the error-prone word feature in the comparison reported here. The embedding variants were trained on the same sources with the same vector size and window specification, and the authors used the same number of word classes. The class assignments were allowed to change with the learned embeddings. The comparison therefore represents the effect of using each source of word classes within the authors’ common system design.
Word embedding approaches on the TOCFL shared-task development split by F1
CWindow leads on F1, and both position-sensitive approaches finish ahead of both original Word2Vec approaches.
The numbers
| System or setting | F1 |
|---|---|
| Skip-gram | 16.98 |
| CBOW | 17.22 |
| Structured Skip-gram | 17.29 |
| CWindow (this paper) | 18.03 |
For Skip-gram, development accuracy was 89.59%, precision was 44.57%, and recall was 10.49%. CBOW produced accuracy of 89.91%, precision of 52.00%, and recall of 10.32%. CBOW therefore made a stronger showing on precision and F1 within the original Word2Vec pair, while Skip-gram had higher recall. This baseline comparison gives some perspective on the position-sensitive variants. Even without giving the individual context slots special treatment in embedding training, the two prediction directions produced classes that led to different profiles in the downstream checker.
Structured Skip-gram achieved development accuracy of 90.02%, precision of 56.97%, and recall of 10.19%. It led the comparison in accuracy and precision. Its recall was the lowest of the four settings, which helps explain why its F1 fell below CWindow’s even with the strongest precision. Structured Skip-gram’s F1 was above that of either original Word2Vec approach. The gains that matter most for this variant show up in the correctness of the detections it made, alongside a smaller share of the annotated errors recovered.
CWindow achieved development accuracy of 89.89%, precision of 52.32%, and recall of 10.89%. Its recall was the highest in the comparison and its precision exceeded that of both original Word2Vec variants. This combination produced its leading F1 of 18.03. Its accuracy was lower than that of the other position-sensitive variant and also lower than CBOW’s. The authors chose it because F1 reflected the balance they wanted in preliminary development. The choice says which system best met their selection criterion under these settings, and the metric-by-metric results show where another approach had the advantage.
The accuracy and recall figures also give different impressions of how much help a learner would receive. Accuracy is near the reported values for the other variants, yet recall remains low for every setting. The precise inference is that many annotated errors go undetected under the preliminary evaluation. A reader looking for a checker that catches a broad range of learner mistakes needs recall information alongside the accuracy figure. The paper uses the combined score for system selection, while the individual measures show the character of the selected system’s performance.
The official submissions and their operating points
The authors entered NCTU+NTUT-Run1, Run2, and Run3 in the official evaluation. All used the CWindow variant. Their stated experimental difference was the operating point, expressed through false-alarm performance. An operating point is a particular balance between making more detections and making fewer false detections. The comparison among these runs consequently addresses how the submitted detector behaves at different points on that tradeoff. The comparison among embedding approaches belongs to the preliminary experiments.
The authors report that Run1 achieved the lowest false-alarm rate and the highest precision across all the official evaluation levels among participants. For the position-level result, their official-results discussion gives Run1 a false-alarm rate of 0.1362, accuracy of 0.4603, precision of 0.2542, and recall of 0.0483. The abstract also gives 0.1362 for the false-alarm rate. The conclusion gives 0.1342 for what it describes as the lowest false-alarm rate. The paper offers no explanation for the discrepancy. The position-level figures are reported here with the false-alarm value used in the official-results discussion and the abstract.
Run1’s profile explains why the paper emphasizes a practical decision for an educational application. The authors valued keeping false alarms low, and the official comparison supports their claim about standing on that measure. Position-level recall of 0.0483 also shows that few of the annotated errors were recovered at the required level of localization. The precision ranking is a comparative statement about the task submissions. The absolute precision and recall numbers describe the assistance that the selected operating point actually provided under official scoring. Those are complementary ways to read the result.
The paper does not give enough detail in its narrative about the official scoring to equate the preliminary percentages with the position-level figures from the shared task. The preliminary split supported feature comparisons and the selection of CWindow. The shared task evaluation assessed submitted operating points. Differences between the results can reflect the evaluation data, the criterion for a correct detection, or the operating point. The direct comparison supported by the preliminary table is the comparison among embedding approaches within that split. The official ranking concerns the actual submissions evaluated by the organizers.
What the ablations show
Adding the feature for error-prone words
The closest component ablation checks what happens when the CWindow detector includes or omits the templates for the selected words. Both conditions use CWindow to generate the word classes. This keeps the embedding approach fixed while testing whether a small amount of targeted lexical information helps the diagnostic stage. The experiment asks about adding this feature to a system that already has general sources of evidence from grammatical tags and learned word groups.
Error-prone word templates in the CWindow checker on the TOCFL shared-task development split by F1
Adding the templates improves the combined precision and recall score.
The numbers
| System or setting | F1 % |
|---|---|
| CWindow without templates | 17.75 |
| CWindow with templates (this paper) | 18.03 |
Without the templates, the CWindow detector had development accuracy of 89.91%, precision of 52.17%, and recall of 10.69%. With them, it had accuracy of 89.89%, precision of 52.32%, and recall of 10.89%. The F1 increase from 17.75% to 18.03% reflects gains in both its component measures in the reported comparison, while accuracy is slightly lower. The authors kept the indicator in the subsequent settings. Their decision fits the emphasis on a combined precision and recall measure seen again in their choice of embedding representation.
The ablation gives a result for the list and template as a unit. It does not separate the contribution of words taken from Yeh’s patterns from the contribution of the additions. It also does not give a result for individual words or an error-type breakdown. For example, an example containing unnecessary 是 illustrates why a contextual feature might help with redundancy, but the reported experiment cannot establish that those instances account for the measured gain. A case with omitted 了 shows a distinct challenge, since the indicator is defined by a word occurring in the sentence. The overall comparison leaves open how the useful information is spread among types of errors and among the selected words.
The experiment also tests a particular way of encoding this prior knowledge. The list is represented by an indicator combined with grammatical tags, so the observed gain belongs to that implementation. Different choices about which tags to use or how to represent the individual words would be distinct comparisons. The paper gives a reason to retain its own implementation in the reported system, since the condition that includes it fares better on both precision and recall in the CWindow comparison. The small movements in the metrics call for reading the result at the scale on which it was measured.
Changing the source of the word classes
The embedding experiment is a controlled replacement of one component. The authors keep the learner-data setting, the feature structures, and the diagnosis framework in place while switching the representation used to build the classes. The original and position-sensitive approaches have the same training corpus, vector size, and context radius. The position-sensitive variants can produce different groupings of words, and those changes reach the detector through the class features. This supports a comparison of embedding approaches as components within the same pipeline.
There are useful comparisons within each direction of prediction. CWindow and CBOW both predict a middle word from its neighbors. CWindow preserves the individual input slots, and in the reported development experiment its F1 of 18.03 is above CBOW’s 17.22. Structured Skip-gram and Skip-gram both predict neighbors from a middle word. The structured version distinguishes the output positions and produces F1 of 17.29, while the original gives 16.98. The agreement in the direction of these F1 comparisons supports the idea that position-sensitive training can be useful here, even though the variants differ in their tradeoffs between precision and recall.
Ordering enters the system in two places, which makes the comparison informative without making it a test of the entire role of order. The detector’s templates describe positions in all settings, and the embedding experiment changes the training of the word representations that supply some of the template values. Performance with the original approaches shows what the detector can do when those values come from embeddings trained without explicit context slots. Performance with the position-sensitive approaches shows how the same labeling design fares with classes trained using those slots. The experiment leaves the ordering in the CRF templates in place throughout.
The comparisons establish an aggregate effect on the reported metrics. They give little direct evidence about which word groups moved, which sentences benefited, or whether disorder errors drove the aggregate result. A better result for the position-sensitive approaches is compatible with improvements in recognizing grammatical environments relevant to redundancy or selection as well as disorder. The annotation categories describe the learner’s error, whereas context order is a source of evidence for diagnosing it. The study’s pooled scores do not trace that evidence to individual decisions.
Changing the alert behavior at submission time
The official runs provide an analysis of operating points within the selected approach. Because all are CWindow submissions, their differences do not isolate the effect of changing the embeddings or adding the indicator. They show how the authors’ chosen framework can be configured to raise alarms at different rates. The most fully described result is the conservative Run1. Its high comparative precision and low false-alarm rate come with low position-level recall, giving a concrete example of the costs on each side of that operating choice.
The parser figures offer component-level evidence of another kind. They report segmentation and tagging quality separately from diagnosis and distinguish between original and manually corrected material for segmentation. They do not compare complete diagnosis with different parsers or with manually supplied word boundaries. The figures therefore establish the reported quality of upstream observations in the parser evaluation, while the diagnosis comparisons establish performance with that front end in use. The study does not attribute a measured share of downstream success to any particular preprocessing stage.
Limitations
Limits identified by the authors
The authors identify sparsity as a problem for features built from individual word identities. They also argue that looking at the current word and a small number of neighbors can constrain what a CRF-based checker can learn about sentence structure. The grouping strategy addresses sparsity by sharing observations, and the position-sensitive training changes the information that shapes those observations. The final templates still examine local patterns. The paper treats the new features as a way to make those patterns more informative. It does not claim to have established a comprehensive account of grammatical structure.
The authors also point to the difficulty of identifying word boundaries in Chinese. Their system depends on segmentation and grammatical tagging to construct later features, and they report component performance to make that dependency visible. Reuse of a parser developed for speech recognition is presented in part as a question of how well it generalizes to another application. The learner task demonstrates that the parser can be integrated into the checker, while the reported component scores come from the parser evaluation and do not quantify the error rate of segmentation or tagging on the learner sentences themselves. The paper also reports that its latest parser was made available online.
In discussing the official evaluation, the authors give particular weight to false alarms because of the effects on users of a grammar checker. They report recall alongside their stronger ranking figures, making the limits of coverage visible. The paper describes the approach as promising and leaves further investigation open. It reports evaluation on annotated data and a shared task, with no direct measurement of how learners responded to the checker or how its use affected the quality of their writing.
Limits of the comparisons and the data
The evidence for the position-sensitive embeddings comes from a comparison on the held-out development subset with a specific feature design and clustering procedure. The reported F1 order is consistent with an advantage from using relative position in embedding training, but the magnitude varies by comparison. There are no reported uncertainty estimates or repeated training runs that would establish how stable that order is across sources of variation such as embedding or clustering initialization. Small differences between systems should therefore be read as observed differences on this experiment.
Embedding training and clustering also change together in a specific sense. The clustering algorithm takes the vectors as its input, and changing those vectors can move words between clusters. The experiment establishes that some configurations of this sequence of operations provide better features for the detector. It does not test whether the raw position-sensitive vectors would be more effective as direct inputs, or whether choosing a different number of clusters would preserve the ranking. Similarly, the study does not compare the detailed contents of the learned classes against a separate grammatical classification. The evidence for usefulness is downstream performance under the authors’ settings.
Generalization is another open issue. Several sources contribute text to the embeddings, and earlier shared-task editions supplement the learner data. The preliminary evaluation nonetheless comes from a split of the combined development pool, and the official evaluation is part of the TOCFL-based shared task. The study presents no separate results for a different learner population, a different writing context, or a different variety of written Chinese. A single set of aggregate results also does not establish how well the approach fares across learner proficiency levels or kinds of writing within the material that was evaluated.
The error counts make category-level performance particularly important to interpretation. The paper lists 90 for missing errors and 10,686 for selection in the development statistics. A pooled score can improve even if a comparatively uncommon category makes little contribution to the change. The reported embedding and indicator comparisons give no precision or recall broken down by category. The experiments therefore cannot establish that the improvement applies to every error type, or even that the architecture’s most direct motivation, the diagnosis of disorder, accounts for any particular share of the improvement.
There are related limits around preprocessing and lexical coverage. A mistake in segmentation could change the units to which all the later features attach, and a mistag could change several features at once. The paper does not quantify how frequently these events account for an incorrect learner diagnosis. Its account also does not give a procedure for every word that might be missing from the embedding vocabulary. Such a word would matter precisely where the system relies on looking up a cluster index. The reported results reflect the implemented pipeline, with those cases left uncharacterized in the analysis.
Limits of the official result as evidence of learner benefit
Run1’s reported standing on precision and false alarms is relative to the other official submissions. Its position-level precision of 0.2542 and recall of 0.0483 describe the absolute performance at that evaluation level. A system may be the most selective in a field of submissions while leaving much of the intended work undone. For a learning tool, the figures support a tradeoff in the alerts supplied. They do not show whether users would trust the feedback more, whether they could repair the sentences successfully, or whether a different point on the tradeoff would serve them better.
The official evaluation also cannot confirm the incremental advantage of the position-sensitive embeddings over the original baselines on its own. All submitted runs used CWindow, so the study has no official comparison of an otherwise matching CBOW or Skip-gram submission. The result for CWindow on the development split and the standing of the official submissions are separate pieces of evidence. The former compares the feature sources, and the latter compares the submissions under the organizers’ evaluation. Neither turns the official ranking into a controlled estimate of how much embedding position information contributed there.
Finally, the goal is diagnosis. The paper’s corrected examples explain the intended annotations, while the system produces judgments about the type and position of an error. It supplies no evaluation of corrected sentences generated by this detector. This distinction matters most when the same location admits different repairs, or when noticing an abnormal pattern still leaves the intended wording uncertain. A result on locating an error is evidence about that diagnostic step. The study leaves the quality of an automated repair and its value in actual instruction unmeasured.
What came after
There is no documented later study to trace from this paper’s detector to a subsequent system or finding. The paper ends with the authors’ intention to continue investigating the approach and their announcement that a newer version of the traditional Chinese parser was available online. The parser release concerns an upstream component described in the study. The proposed continuation leaves open whether further work tested the word classes, the alert tradeoff, or the diagnosis of individual error types.
Cite
Cite as Wei-Chieh Chou, Chin-Kui Lin, Yuan-Fu Liao and Yih-Ru Wang. 2016. Word Order Sensitive Embedding Features/Conditional Random Field-based Chinese Grammatical Error Detection. Proceedings of the 3rd Workshop on Natural Language Processing Techniques for Educational Applications (NLPTEA2016).
@inproceedings{chou2016word,
title = {{Word Order Sensitive Embedding Features/Conditional Random Field-based Chinese Grammatical Error Detection}},
author = {Wei-Chieh Chou, Chin-Kui Lin, Yuan-Fu Liao and Yih-Ru Wang},
booktitle = {Proceedings of the 3rd Workshop on Natural Language Processing Techniques for Educational Applications (NLPTEA2016)},
year = {2016},
url = {https://aclanthology.org/W16-4910/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chou-2016-word-order-sensitive-embedding-features/