Elamur Research

Grammatical-Error-Aware Incorrect Example Retrieval System for Learners of Japanese as a Second Language

Paper · 2019 · Mio Arai, Masahiro Kaneko and Mamoru Komachi

Summary

A learner who searches for examples of a Japanese phrase may be searching with the very mistake they want to fix. A search restricted to well-formed text can come back empty, while a collection of learner errors is useful only if the learner knows when to consult it and can see how the errors were revised. The authors built Sakura to make that choice automatically. The learner enters a sentence or a sequence of words. Sakura marks any words it suspects are wrong and uses that judgment to decide which examples to search. The project connects searching for examples with grammatical error correction and learner language.

When Sakura flags an error, it searches learner sentences using the flagged part of the input. It shows retrieved mistakes alongside revisions supplied by native speakers, with changed material emphasized. When it flags nothing, it searches using the full query on the correct side of the collection. The examples come from Lang-8, whose revision records give the system 1.4 million Japanese sentence pairs after filtering. The detector learns to label each word from its spelling and its surroundings. The search then ranks candidate examples by how closely their numerical representations resemble the query.

The authors evaluated detection, retrieval and writing separately. On the Lang-8 detection test split, Sakura’s detector reached an F-score with 0.5 weighting of 0.407, compared with 0.202 for the phrase-based statistical translation baseline. In a retrieval test with 55 incorrect and 55 correct phrases held out from the search collection, automatic routing had the highest average relevance at the top result, 0.65. The dedicated incorrect-example search scored 0.30 overall, and the dedicated correct-example search scored 0.45. Each dedicated search led on the kind of phrase it was intended to handle. The automatic system’s advantage came from serving a mixed set of queries.

In the composition exercise, the reported average was 24.2 after revision with automatic routing, compared with 22.7 for initial writing with manual access to both kinds of examples and 20.8 for initial writing with access to correct examples alone. These scores describe a small exercise in which automatic assistance came at the revision stage. The error analysis helps explain where that assistance was useful. Visibly malformed expressions often gave the detector a usable signal, whereas a well-formed phrase with an unsuitable word could pass through unflagged. In the exercise, the authors also found that suggestions for word-choice errors were more relevant for function words than for content words.

Deep dive: Grammatical-Error-Aware Incorrect Example Retrieval System for Learners of Japanese as a Second Language

Sakura detects possible errors in Japanese learner writing and retrieves similar mistakes with native-speaker revisions to guide the learner. · about 32 minutes to read

The problem and its context

A search decision the learner may be unable to make

Looking up examples is a way to check how an expression works in a sentence. A learner can look for the words that usually surround it, the grammatical roles it takes, or a pattern that can be carried over into a draft. This works best when the learner already knows enough to put a recognizable form of the expression into the search field. During writing, however, that form may be precisely what the learner is trying to discover. A search that expects the correct wording then depends on a piece of knowledge that the search itself is supposed to help supply.

A collection of mistakes offers a way around this problem. If another learner wrote something similar, their sentence can provide an entry point into the collection even when the query contains an error. The revision makes that entry point useful for writing. Seeing a mistake in another sentence helps establish that the expression occurs in learner writing. Seeing how a native speaker revised the same sentence provides evidence about the particular change, since much of the surrounding material can be compared directly. The pairing preserves a relationship that disappears when correct and incorrect sentences are collected independently.

Which collection to search is still a practical question. A learner must make that choice while uncertain about the query, and a single query can contain both material worth keeping and material worth investigating. Ordinary web search can return text in which an expression occurs, but the authors point out that it is poorly suited to finding a learner error together with its revision. A failed search also gives little direction. It could reflect an erroneous form, a rare expression, or a search that is too restrictive for the examples available.

Japanese particles illustrate what's at stake. A particle can establish the grammatical relation between a noun and a verb. In the paper’s example, 日本語を勉強する expresses studying Japanese. The particle を marks Japanese as what is studied. With が in its place, 日本語が勉強する instead treats Japanese as what does the studying. For a learner trying to express the first meaning, the surrounding words can look familiar and the crucial change can be small. A set of paired examples gives the learner a way to inspect that change in context. This is an instance of case marking.

There is also a difference between locating a familiar phrase and locating a familiar grammatical relationship. The paper notes that Japanese word order allows words that depend on one another to be separated. A search that demands a contiguous run of particular words can therefore miss instances of the construction the learner wants. The longer the required run, the more surrounding wording has to match as well. This is why the paper treats sparse matches as a retrieval issue alongside the learner’s uncertainty about correctness. Its discussion of local word sequences concerns n-grams.

What earlier detectors and search systems offered

In the earlier Japanese detection and correction work discussed by the authors, particles were a frequent target. A detector built around a particular error category can concentrate on the grammatical choices that matter for that category. Sakura’s search field, however, accepts whatever the learner wants to look up. A narrow detector could route queries about the category it covers while leaving errors of other kinds outside its scope. The authors therefore sought a detector with a shared decision for any word in the input, regardless of what sort of mistake might have occurred.

The paper also discusses Japanese correction with phrase-based statistical machine translation. In this application, the transformation is from learner Japanese to revised Japanese. That approach can address different kinds of mistakes under the same general procedure. The authors’ concern is that evidence built from local character or word sequences can have difficulty with relationships extending over more of the sentence. They looked to recurrent neural approaches, already used in English learner-error detection, for a way to carry information across positions in the input. The relevant earlier English work includes Compositional Sequence Labeling Models for Error Detection in Learner Writing.

The Japanese search resources discussed in the paper address a different part of the problem. With Learner’s Error Corpora of Japanese Searching Platform, users can see search terms in context and work with learner details like age, gender, and native language. That can help a teacher investigate recurring mistakes among learners. For someone drafting a sentence, the authors identify two obstacles. The collection offers few examples, and the interface leaves the user to judge whether the search expression is well formed. The search affordances are suited to someone who already has a question about learner usage.

The Tagged KY corpus adds a search facility to a transcribed speech collection. Its tags allow searches based on grammatical word categories, and the resource can furnish examples of both correct and incorrect usage. Coverage remains an issue in the authors’ account. Even a common word can produce no result when the available examples of mistakes are scarce. An interface may allow a theoretically appropriate search while the underlying collection contains too little material for that search to help. The grammatical word categories used in the search are the subject of part-of-speech tagging.

The authors review English writing aids to show how much a specialized example search can offer. FLOW proposes English wording while a learner is composing in their native language, using paraphrases obtained through a bilingual route. StringNet displays recurring patterns and their frequencies. It can generalize a noun or a preposition into its word category, allowing multiple expressions to contribute evidence about a pattern. Both illustrate how a writing aid can return more than literal occurrences of a query.

Other English resources use more information about grammatical structure. ESCORT analyzes relationships in the query and searches for examples that match those relationships. WriteAhead suggests patterns that draw on syntax and words that commonly occur together. Sketch Engine presents grammatical patterns associated with a word alongside thesaurus information. In the paper’s account, these systems support decisions about wording and usage. Sakura addresses the additional situation where the input itself needs diagnosis and an example gains its value from the link between a learner’s wording and a revision. ESCORT’s structural search is an application of dependency parsing.

These precedents leave two decisions to bring together. A detector can indicate where a learner might have gone wrong, but a flag supplies little evidence by itself about how to revise. A collection can contain useful revisions, but learners may have trouble finding them while they are unsure how to describe their mistake. Sakura uses the flag to direct the search and lets the example pair carry the evidence for a possible change. The user’s task changes from choosing the kind of collection to inspecting the language returned from it.

The method, step by step

Build a collection that keeps revisions attached

Sakura starts with the Lang-8 Learner Corpora used by Mizumoto and colleagues for Japanese grammatical correction. The original learners wrote sentences and native speakers supplied revisions. In Sakura, the learner sentence is retained as a searchable object. Its revision is retained as an example the learner can inspect alongside it. Every learner sentence used for this collection has a corresponding revision, and a learner sentence with several revisions is paired separately with each of them. The relation in the database is between individual learner and revised sentences, so the same learner wording can occur in several records.

The authors filter out sentences longer than 100 words and pairs with a Levenshtein distance greater than 7. Levenshtein distance expresses how much editing is needed to get from one sequence to another by counting operations such as insertion, deletion and substitution. The distance threshold is intended to remove noisy pairs. It also makes the retained pairs more suitable for side-by-side inspection, since a learner trying to understand a local change can follow a revision more easily when the surrounding material remains recognizable. After filtering, the collection contains 1.4 million pairs, drawn from 185,991 Japanese essays.

Both versions of a sentence are divided into units with MeCab, version 0.996, and UniDic, version 2.2.0. The paper uses these units as words. This stage matters because the same notion of a word underlies the detector’s labels and the representations used in search. In a pipeline of this kind, a division through the middle of a learner’s misspelling can affect both which unit gets flagged and which text is submitted to retrieval. The preparation step brings together morphology and tokenization.

There are two different uses of a sentence pair. For training the detector, a pair supplies evidence about which pieces of the learner sentence required change. For displaying examples, it supplies the full learner version and an actual revision. Retaining both uses matters. An error label reduces a revision to a local decision about a word. The pair still contains the wording that a learner can examine to see how someone addressed the problem. The search can offer that information without asking the detector to generate a replacement.

Turn pairs into word-level supervision

The detector gets a sequence of words and returns a judgment at each position. The paper uses c for a word labeled correct and i for one labeled incorrect. This is sequence labeling. A sentence can contain a mixture of the labels, and the learner can benefit from seeing exactly which positions were flagged. A judgment applied to the whole sentence would leave the search to decide which of its words mattered, and it would leave the learner with a larger region to inspect.

The labels are prepared automatically from the original sentences and their revisions. The authors say they use dynamic programming, which solves an alignment problem by combining solutions for smaller parts of the sequences. An alignment can connect corresponding material across a change of length or a local replacement. Sakura uses the resulting correspondence to obtain tags on the original sequence. The native speaker supplies a revision, and the automatic conversion determines how that revision becomes word-level training and test labels. This distinction matters when interpreting the evaluation, where those converted tags serve as the reference. The procedure produces linguistic annotation from revision pairs.

The paper illustrates the resulting labels with a learner sentence intended to convey being very busy at school. Some pieces of the learner’s renderings of “school” and “busy” receive incorrect labels, while surrounding particles and punctuation can receive correct labels. The example shows the granularity at which the detector operates. A word-level tag is attached to a unit emitted by the analysis of the learner’s text. The marked unit may be smaller than the expression a reader would choose when explaining the same problem.

During training, the network sees the learner wording and its converted tags. At search time the learner supplies only the query, and the network must assign tags from that input. A revision also serves a different purpose when an example is retrieved. It was written for the learner sentence in the database and remains attached to that sentence. From Sakura’s point of view, suggesting a parallel case and diagnosing the user’s words are different operations with different outputs.

Represent a word through its identity and its spelling

The detector uses both a word representation and a representation built from characters. A word embedding is a vector associated with a word in the input. It can give the detector evidence about a familiar form as a whole. The character representation is built by reading the characters within that word with a bidirectional long short-term memory network, abbreviated Bi-LSTM. The paper describes combining endpoint hidden states from these character passes. The resulting vector carries information about how the word is written and can share evidence across words that have related forms. The underlying vector technique is described under word embeddings.

A long short-term memory network, or LSTM, reads a sequence and passes a state from one position to the next. The state allows information from an earlier position in its traversal to influence a later computation. Running a pass in each direction lets the state at a word reflect material that comes before it and material that comes after it. The architecture uses this idea at two scales. The character computation concerns the interior of a word. The word-level computation concerns that word’s position among the other words of the query.

For each position, the detector joins the word embedding and the character representation by concatenation. Concatenation places the parts of the vectors end to end. The next computation can therefore use information from either source or from both. A recognizable spelling problem can provide local evidence. A word that looks ordinary in isolation can still receive an incorrect tag if its surroundings make it unsuitable. The character and word paths supply evidence to the same tagging decision.

Compute context and predict the label

The equations in the paper begin with the word-level recurrence. In the forward pass, the current state is obtained from the current input and the state carried from the position before it.

h→ₜ = LSTM(x̃ₜ, h→ₜ₋₁)

Here t is the current word position, and x̃ₜ is the concatenated word and character input there. h→ₜ is the forward hidden state at that position, while h→ₜ₋₁ is the forward hidden state at the preceding position in the original word order. LSTM denotes the recurrent computation. The right arrow marks the direction in which this pass reads the words, and the comma separates its inputs.

The backward pass brings in context from the other direction.

h←ₜ = LSTM(x̃ₜ, h←ₜ₊₁)

h←ₜ is the backward hidden state at word position t, and h←ₜ₊₁ is its counterpart at the following position in the original word order. That following position has already been processed in the backward traversal. x̃ₜ is the same input vector used by the forward pass, and LSTM again denotes the recurrent computation. The left arrow marks the reverse reading direction.

The network then joins the hidden states for the same word.

hₜ = [h→ₜ ; h←ₜ]

hₜ is the combined hidden vector at position t. The terms h→ₜ and h←ₜ are its forward and backward parts. The brackets with a semicolon denote concatenation. Each part comes from a different traversal, so the combined representation can make both left and right context available to the tagging layers.

The combined vector passes through a fully connected layer before the label scores are calculated.

dₜ = tanh(W_d hₜ)

dₜ is the intermediate vector at word position t. W_d is the learned weight matrix for this layer, hₜ is the combined hidden vector, and their juxtaposition denotes matrix–vector multiplication. tanh is the hyperbolic tangent function, applied to the components of the resulting vector. The paper uses this layer to bridge the dimensional difference between the bidirectional representation and the output.

Finally, the detector turns the output scores into probabilities for the possible labels.

P(yₜ | w₁ … w_T) = softmax(W_o dₜ)

P denotes conditional probability, yₜ is the label at position t, and the vertical bar means that this prediction is conditioned on the input words. w₁ … w_T denotes the sequence from its initial word w₁ through its final word w_T, with T the sequence length. W_o is the learned output weight matrix, and dₜ is the intermediate vector. softmax converts the scores into a distribution over the correct and incorrect labels. The probability for a particular yₜ is the corresponding entry of that distribution.

That computation runs at every word position. Its role in the larger system is to identify parts of a query that deserve attention and determine whether those parts should drive an incorrect-example search. The displayed red marking comes from the tagging decision. The sentence pairs that show an actual change come from the retrieval stage.

Choose the search and rank the examples

The user can enter a sentence or a shorter sequence. If the detector finds a suspected error, the search uses the erroneous part and looks on the learner side of the collection. This allows the original error to serve as a query for analogous mistakes. A correct-example search, on the other hand, uses the full input when no word is flagged and ranks examples from the correct side. On that branch, the wording as a whole is the basis for finding usages that resemble what the learner typed.

The rankings rely on vectors, and the vectors used in retrieval have a different job from the contextual states inside the detector. The paper uses word2vec to obtain word vectors for retrieval and averages the word vectors to make a representation of a sentence. It reports using gensim to create the sentence vectors. Candidate vectors are compared to the input vector by cosine similarity, which measures how closely their directions agree. Examples are ordered from greater similarity to lesser similarity. The ranking gives nearby representations an opportunity to appear even when their surface wording differs, a way to address sparse matches in information retrieval and search.

Averaging gives the search a compact representation of the words in an example. It abstracts away from their order. The ranking can therefore compare sentences that use related wording without requiring a particular word sequence to occur in the same position. Decisions that depend on order and context occur in the detector, before the ranking. The authors describe the approach in terms of cosine similarity between the query and example vectors. The ranked learner sentences retain their native-speaker counterparts for display.

From a learner’s query to ranked examples

The steps in order.

From a learner’s query to ranked examplesStep 1: Accept a Japanese sentence or word sequence1. Accept a Japanese sentence or word sequenceStep 2: Represent each word and its characters2. Represent each word and its charactersStep 3: Predict a tag for each word3. Predict a tag for each wordStep 4: Choose search side from the predicted tags4. Choose search side from the predicted tagsStep 5: Rank examples by cosine similarity5. Rank examples by cosine similarityStep 6: Display examples and show paired revisions6. Display examples and show paired revisions

The interface makes the two forms of feedback visible in different places. If the query triggers an error prediction, it marks the suspected wording in red. In the results, an incorrect example appears with the corresponding revised sentence, and the revision highlights what changed. In the illustration about studying Japanese, が is the highlighted particle in the query. The returned material shows the construction with を, giving the learner evidence for the object-marking usage they were seeking. The paper also illustrates the correct route with an expression about studying at a university, where the query itself supplies the wording to look up.

The corpus and code have distinct roles in reproducing the work. Lang-8 supplies the original Japanese learner sentences and the revisions used to build the database. The paper identifies a public repository for the Japanese grammatical error detector. Its description of the search specifies the routing, representation and display choices that turn a detector into a writing aid. The evaluation then asks how much each level of that pipeline contributes when used on held-out material and in a composition task.

Experiments and results

How accurately does the detector mark words?

For error detection, the authors used 720,000 sentences for training, 1,000 for development and 1,000 for testing. They treated the automatically converted tags as the gold labels, meaning the reference against which predictions were scored. The development split provides data for work on the system before reporting results on the test split. Training changes the network using the paired-data supervision, and the reported test comparison asks how well the resulting decisions agree with corresponding tags on separate sentences.

The word embedding and word-level LSTM each have dimension 300. The character embedding and character-level LSTM each have dimension 100. The authors train with Adadelta, using a learning rate of 1.0 and batches of 64 sentences. A batch is a group processed together for a training update. Both the character and word embeddings can change during these updates, so the representations feeding the tagger are adjusted for the task along with the rest of the detector.

The baseline is the authors’ reimplementation of Mizumoto and colleagues’ word-based phrase-based statistical machine translation system. They trained it using minimum error rate training. The comparison is between that correction-based approach and Sakura’s direct word-labeling approach on the same detection evaluation. Its metrics treat the incorrect label as the positive outcome. Precision describes how frequently a flagged word matches a reference error, while recall describes how frequently a reference error is recovered by a flag.

The F-score with 0.5 weighting gives precision more influence than recall. That emphasis fits a tool whose warnings can direct a learner away from wording they chose. Recall still matters because an unflagged error can leave the query on the correct-example route. The score combines the two aspects of tagging, while the separate precision and recall figures show which aspect accounts for the comparison.

Error detection on the Lang-8 test split by F-score with 0.5 weighting

The bidirectional detector scores higher than the phrase-based statistical baseline.

Error detection on the Lang-8 test split by F-score with 0.5 weightingPhrase-based statistical translation: 0.202Phrase-based statistical translation0.202Sakura detector (this paper): 0.407Sakura detector (this paper)0.407
The numbers
System or settingF-score
Phrase-based statistical translation0.202
Sakura detector (this paper)0.407

On the detection test split, the statistical translation baseline had precision 0.599 and recall 0.121. Sakura’s detector had precision 0.615 and recall 0.304. The direction of the comparison is consistent across the metrics, with the most pronounced change in recall. That matters for the intended pipeline because more recovered errors give the incorrect-example search more opportunities to run. The absolute recall also shows that many reference errors remain unflagged. The effectiveness of retrieval therefore needs to be measured separately.

The authors discuss precision as relevant to writing support, drawing on earlier work about error detection for learners. The precision figure here is a property of agreement with test tags. The writing task asks a related practical question about users, who can see a warning and then inspect examples before deciding what to do. The two evaluations observe different events. One scores a system judgment on a word, and the other scores a composition produced through an interaction with the search tool.

Does the first retrieved result give the expected expression?

The intrinsic evaluation assesses the search directly, without asking participants to compose with it. From Lang-8 learner sentences excluded from the retrieval collection, the authors selected phrases at random, taking 55 that were incorrect and 55 that were correct. Searching a held-out phrase requires finding a useful example elsewhere in the data. The evaluation treats an example as relevant when its expression agrees with the automatically tagged result used as the reference. Each query is judged on its top result, so a suitable example further down the ranking cannot earn credit for that query.

The comparison includes the baseline correct-example search, called BC, and the baseline incorrect-example search, called BI. Each baseline commits to its respective search behavior across the test phrases. Sakura uses its detector to route a query to one side or the other. This design tests how the automatic procedure handles a mixture of queries. It also lets the two dedicated searches demonstrate their strongest use cases, since the results are broken down by whether the query phrase is correct or incorrect.

Average top-result relevance on the held-out Lang-8 phrase test

Automatic routing has the highest average relevance across correct and incorrect phrases.

Average top-result relevance on the held-out Lang-8 phrase testCorrect-example baseline: 0.45Correct-example baseline0.45Incorrect-example baseline: 0.30Incorrect-example baseline0.30Sakura automatic routing (this paper): 0.65Sakura automatic routing (this paper)0.65
The numbers
System or settingrelevance
Correct-example baseline0.45
Incorrect-example baseline0.30
Sakura automatic routing (this paper)0.65

For correct phrases, the correct-example baseline reached relevance of 0.90, the incorrect-example baseline reached 0.15, and Sakura reached 0.85. For incorrect phrases, the corresponding figures were 0.00, 0.45 and 0.44. The two specialized searches each led on the query group that matched their intended role. Sakura approached the stronger result in each group while providing a single search procedure for the mixed test. The reported average captures the value of that versatility under the test’s balance of query types.

For a learner, the comparison is about the difficulty of acquiring the information that the correct choice of search requires. If a learner could reliably recognize a mistaken phrase before searching, the dedicated incorrect-example search would be available at the right time. If they could reliably recognize a correct phrase, the same would apply to the other search. The intrinsic evaluation provides no performance figure for people making that choice themselves. It shows what the fixed searches return on their own and what Sakura returns when its detector makes the choice for each query.

The mixed relevance result also gives a more direct view of overall behavior than the detection score alone. An incorrect word can be tagged accurately while the corresponding search gives an unsuitable top example. A correct phrase can yield a useful result without requiring any error signal. Relevance is measured after both routing and ranking have done their work, and the query groups expose cases where the practical consequences of choosing a route differ even though the same ranking principle is in use.

How did compositions score with the search available?

The extrinsic study asks how the tool fares in a writing exercise. The authors recruited six graduate students in computer science in Japan, all native speakers of Chinese. Five had passed the N1 level of the Japanese-Language Proficiency Test, described in the paper as advanced, and the remaining participant had passed N2, described as intermediate. They completed 10 Japanese composition exercises. The prompts asked for short pieces on topics such as the city where a participant lived, difficulties with Japanese, and experiences they would like to have overseas.

The initial writing was divided between access to correct examples alone and access to correct and incorrect examples chosen manually. Each learner used each setup for five prompts. For this stage, neither setup ran the detector. The authors then had the learners revise using the proposed setup, which offered both kinds of examples and used error detection to select the route. All search conditions used the data built from Lang-8. Access to different example types, the choice of search and the stage of writing distinguish the conditions.

The authors prescribed three sentences per exercise to keep the amount of writing comparable. They describe a deduction-based score that starts at 30 points and subtracts one point for each error, with the score reported for each system taken over five exercises. The reported averages are writing scores on that scale. They measure the resulting compositions under the exercise procedure, whereas the previous experiment’s relevance scores measure the first retrieved expression against a reference.

Average writing score in the Japanese composition exercise

The revisions made with automatic routing have the highest reported average writing score.

Average writing score in the Japanese composition exerciseInitial writing with correct examples only: 20.8Initial writing with correct examplesonly20.8Initial writing with both example types and manual choice: 22.7Initial writing with both example typesand manual choice22.7Revision with both example types and automatic routing (this paper): 24.2Revision with both example types andautomatic routing (this paper)24.2
The numbers
System or settingwriting score points
Initial writing with correct examples only20.8
Initial writing with both example types and manual choice22.7
Revision with both example types and automatic routing (this paper)24.2

The authors report that 5 out of the 6 participants achieved their highest score with the proposed setup. That wording includes shared highs in the individual results. Participant C scored 16 under both manual access to both types and automatic access, and participant E scored 25 in each of those conditions. Participant D’s highest score was 28 with correct examples only. Their score after revision with automatic routing was 26. The average favors the revision condition, while the individual entries show that participants did not all follow the same pattern.

The authors also examined errors from drafts initially written with both example types available for manual search and then revised with automatic assistance. They manually checked examples against errors, classifying whether the suggestions were relevant. Overall relevance for errors in this composition analysis was 0.20. This figure has a different basis from the average in the held-out phrase experiment. It concerns errors that arose in the participants’ actual writing and judgments made during the analysis of that exercise. A writing score can improve even when relevant examples are available for only part of the error set, since the score depends on the changes learners make across the composition.

What the ablations show

The paper gives no component-by-component ablation of the detector or ranker. Its controlled comparisons vary the search users can access or how it is selected, and its error analyses examine where tagging and retrieval succeed or fail.

What automatic routing adds

The intrinsic comparison presents the advantage of automatic routing clearly because it reports performance separately for correct and incorrect queries. The specialized systems show that a search on the intended side can do well even without the detector. Sakura’s higher overall relevance comes from changing routes according to the input. The dedicated incorrect search still has a slight lead on incorrect phrases. A participant who already knows they need the incorrect search would simply have a different problem from the one the automatic system is designed to solve.

The results on correct queries also put a cost on an imperfect warning. The correct-example baseline can search the full phrase on the correct side regardless of what a detector might infer. Sakura’s use of a tag to choose the route can direct a correct phrase into a collection of errors. The evaluation does not assign every missed search to a routing or ranking failure. The comparison shows the outcome after both stages, so the separate detector scores and the case analyses help explain the possible causes of a miss.

The two initial writing conditions give a view of the difference between correct-only access and manual access to both types of examples. The latter yielded a higher average. This is the comparison the authors use to ask whether incorrect examples have practical value during writing. The revision with automatic routing asks what the combined aid can do after a draft exists. Because that condition changes both the search decision and the point in the writing process, the mean score describes the combined experience of revising with the tool.

Which mistakes give the detector evidence?

The authors break down the detector’s decisions by error type. They characterize particle choice, pronunciation and misformation as relatively easy to detect. Alternating forms and lexical choice prove harder. Particle choice also contributes many missed errors because it is the largest group of errors in the analysis. A category can be relatively tractable and still produce many misses when it occurs frequently. The analysis therefore distinguishes the difficulty of recognizing an individual instance from the contribution of a category to the detector’s total mistakes.

The paper’s true-positive example shows why the authors wanted information to travel beyond neighboring words. A learner writes a sentence about becoming happy. It begins with おねがい, a request marker the authors take as evidence of a wish. The revision uses たい to express that wish explicitly. The detector flags the relevant part of the learner sentence, although the clue highlighted by the authors occurs near the beginning. The example demonstrates that the detector can succeed on an error whose interpretation involves separated parts of the sentence. The experiment leaves the contribution of the recurrent context to this particular prediction unmeasured.

The false-negative example illustrates another source of difficulty. A learner uses 家安 for the historical name 家康. The authors report that the misspelled variant is absent from the data, and the detector leaves the error unmarked. A character representation can give the network information about the written form, but the distinction matters here because the text refers to a specific person. The surrounding sentence can be orderly even when its name is misspelled. The example exposes the gap between recognizing a plausible sequence and knowing which name belongs in a given context.

For a false positive, the paper shows a well-formed sentence introducing a business card. The authors note that 名刺, “business card,” appears only twice in the corpus and occurs with a different particle in those instances. They attribute the misleading prediction to sparse evidence around that word. This puts a concrete face on the precision result. A low-frequency word may come with too little evidence about its possible grammatical surroundings, and a familiar pattern in the training collection may give the detector a narrow view of what is acceptable.

Which mistakes lead to a useful example?

The phrase test separates incorrect queries into categories, including alternating form, lexical choice, omission and misformation. These categories are used to analyze retrieval. The detector still returns a correct or incorrect label for each word. For an error to produce a relevant example, enough evidence must first be present for the query to take a useful route, and the search must then find a sentence whose attached revision addresses the issue. The category figures measure the outcome of those stages together.

For misformation, the incorrect-example baseline reached relevance of 0.40, while Sakura reached 0.67. For omission, both reached 0.75. For redundancy, they reached 0.67 and 1.00, respectively. The authors explain that an overtly malformed expression can provide a clear signal for detection, so the search can focus on the erroneous material. Each category has relatively few examples in the phrase test. Its results describe the behavior on those particular queries, with 6 misformation cases, 8 omission cases and 3 redundancy cases.

Lexical choice behaves differently in that test. The incorrect-example baseline reached 0.38 and Sakura reached 0.19 on the 16 lexical-choice queries. The paper’s list includes ちさい with 少ない as the expected expression. The dedicated incorrect search found a relevant result, and Sakura’s automatic search missed it. In another lexical-choice example, Sakura recovered できる for 助けられる and the dedicated incorrect search missed it. Individual outcomes can go either way. The group result is consistent with the authors’ explanation that a phrasing can be grammatically ordinary while still expressing something other than what the learner intends.

A case from the omission category illustrates why route choice and query extent can both matter. For the learner form おねさん, Sakura recovered the expected おねえさん while the dedicated incorrect search did not. The automatic procedure has the option to search with the erroneous portion of a query, depending on the predicted tags. The paper reports the result for this phrase, without tracing which tag or ranking decision accounts for its success. The example helps identify the kind of change the evaluation rewards, such as recovering a missing character through a useful parallel.

The composition analysis puts word choice in a different light. The authors report relevance of 0.17 for lexical-choice suggestions involving content words and 0.38 for those involving function words. Function words include particles, which can change the grammatical relation of an otherwise familiar expression. Content words carry more of the particular meaning the learner is trying to convey, and useful replacement evidence may depend on that meaning. The authors note that particles and similar function words were outside the targets of the intrinsic phrase evaluation, so the writing exercise reveals a distinction the earlier test was poorly placed to show.

In the same composition analysis, misformation had the highest reported category relevance, 0.33. Overall lexical-choice relevance was 0.29, and overall relevance across the incorrect cases was 0.20. These are judgments about examples for actual errors made in the exercise. They support a narrower claim than the writing averages alone. The system supplies some relevant evidence for some kinds of mistakes, with useful suggestions concentrated unevenly across categories. The value of the aid depends on which errors a learner makes and how those errors interact with the detector and the corpus.

Limitations

Limits the authors identify

The authors describe the detector’s recall as insufficient to catch every query that needs an incorrect-example search. Because a missed error sends the query through the default correct route, a learner can see examples that leave the original problem unexplained. Low recall therefore limits what the search can recover even when the database contains a relevant learner sentence. The figures for the test split give the scale of this issue for word-level tagging, and the phrase experiment gives a separate view of the resulting search performance.

The authors also emphasize that syntactic well-formedness can conceal a lexical mistake. A phrase can fit the local grammar while choosing words inappropriate for the learner’s intended meaning. Such inputs offer a weaker error signal than a conspicuous malformed expression. Their example of a misspelled name and their discussion of the business-card sentence illustrate the related problem of limited evidence in the data. A collection can contain many revisions overall and provide little information about a particular word or spelling.

The paper presents extension beyond Japanese as a plan. The authors describe the approach as adaptable and point to English learner support as a future direction. Applying the same idea to another language would involve training a detector and assembling examples whose original wording and revisions can be searched together. The paper’s experiments concern Japanese. Its proposed direction for English refers to earlier work on global context in tense and aspect error correction for ESL learners.

Limits apparent from the evaluation design

The tagging reference is derived from revisions. A native speaker’s revision tells us how that person changed the sentence, and automatic alignment decides which of the learner’s words to tag. That process can produce supervision at the necessary scale, but a changed phrase can admit several accounts of where its problem lies. Rewriting can also affect neighboring material that participates in a grammatical change. The reported agreement figures therefore refer to the converted labels, with the conversion procedure part of what defines the detection task.

Omission makes this granularity especially important. A missing word or character has no independent position in the observed sequence. A detector that labels existing words can indicate a nearby unit or a malformed unit that resulted from the omission. Its output by itself cannot mark a missing unit in the same way it marks a word visibly present in the query. The pair shown in the results can still make the missing material apparent. The paper’s omission results measure whether useful examples were returned, leaving the exact attribution of success to alignment, tagging and ranking open.

The decision to keep only relatively close revisions shapes the examples available in the corpus. Large changes and sentences beyond the length threshold are filtered in the interest of removing noise. The resulting dataset is well suited to a learner examining localized contrasts in paired text. It offers limited evidence about searches for problems that require extensive rephrasing. There is also a distinction between the number of pairs and the number of independently written learner sentences, because alternative revisions of the same original are entered as separate pairs.

The search representation introduces a separate limit. Averaging word vectors leaves out the order of the words being averaged. Different candidates can be close in this representation even when they express different relationships among their words. The detector has a contextual representation, and the examples retain complete sentences for users to read. Even so, the ranker’s similarity is based on the vector comparison described in the paper. A high ranking is evidence of proximity according to that comparison, and the learner must examine the text to decide whether the grammatical relationship is the one they need.

The intrinsic test gives correct and incorrect phrases equal representation. Its overall relevance scores are consequently tied to that mixture. In a setting where queries are largely correct, correct-side performance would account for more of the practical experience. A setting with many erroneous queries would place more weight on the other side. The category counts also vary substantially, so results such as complete relevance for the redundancy cases should be read alongside the small number of those queries. The test checks agreement with a designated target expression at the top, leaving open how frequently other acceptable examples appear lower in the results.

The writing study has broader relevance to the intended task but a smaller, more specific group of learners. All the participants shared a first language and a graduate field, and nearly all were at the advanced proficiency level described in the paper. Their experience shows how Sakura can be used by people with that background to revise short assigned compositions. The evidence gives little direct guidance about learners with other first languages, beginners, or people revising longer texts. The deduction scores concern errors in the exercise, with retention and later independent writing outside the study’s design.

Timing is important to the writing comparison. The automatic condition came after initial composition. Learners had a draft to inspect and an opportunity to revisit their wording while using the tool. The paper reports no separate revision condition in which participants had the same opportunity to revisit a draft with manual search. This leaves the extra revision opportunity and the automatic selection of examples together in the reported score. The measured outcome is the result of that combined setup.

Finally, the examples drawn from the detector’s successes and failures are diagnostic rather than controlled architectural evidence. The wish example makes the role of distant context plausible, while the rare name and business-card examples suggest what sparse evidence looks like in use. A comparison with a detector whose access to context was deliberately restricted would be needed to measure how much distant context accounts for the results. Likewise, the paper’s evaluations do not isolate the character representation or compare the averaging ranker with a structural alternative. The measured system-level improvements and the authors’ account of why certain examples succeed answer different questions.

What came after

The later citing work, published in 2022, takes up examples in grammatical error correction with an explicit focus on what makes the correction interpretable to language learners. Sakura’s design already offers a concrete way to think about that question. Its flag indicates a suspect place in a learner’s input, and its paired sentences let the learner inspect the difference between a comparable mistake and a revision. The evidence for the change is visible in the example pair. The later study’s title makes the explanatory role of examples the subject of the work. Interpretability for Language Learners Using Example-Based Grammatical Error Correction

The citation establishes a connection between the two projects, and the later title identifies the shift in emphasis. In Sakura, the main experimental questions concern whether the system finds a relevant example and whether writing scores improve in the exercise. An interpretability question concerns what learners can understand from the examples they see. In the particle case, finding a sentence containing を gives the learner a possible repair. Understanding which noun is being marked and what relation changes with が would be a further outcome. The earlier paper offers a use case for that distinction through the contrast between the query and the retrieved revision.

The shared subject is an example that serves as evidence a learner can examine. Sakura makes such evidence accessible by detecting a possible problem and choosing a search based on it. The later work places that kind of evidence in the setting of example-based correction and explicitly connects it to learner understanding. The citation and title support this thematic connection. Specific retrieval choices, reuse of Lang-8, and effects of the later approach on learners cannot be established from them.

Cite

Cite as Mio Arai, Masahiro Kaneko and Mamoru Komachi. 2019. Grammatical-Error-Aware Incorrect Example Retrieval System for Learners of Japanese as a Second Language. Proceedings of the Fourteenth Workshop on Innovative Use of NLP for Building Educational Applications.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/w19-4431

@inproceedings{arai2019grammatical,
  title = {{Grammatical-Error-Aware Incorrect Example Retrieval System for Learners of Japanese as a Second Language}},
  author = {Mio Arai, Masahiro Kaneko and Mamoru Komachi},
  booktitle = {Proceedings of the Fourteenth Workshop on Innovative Use of NLP for Building Educational Applications},
  year = {2019},
  doi = {10.18653/v1/w19-4431},
  url = {https://doi.org/10.18653/v1/w19-4431}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/arai-2019-grammatical-error-aware-incorrect-example/