Elamur Research

Evaluating GPT-3.5 and GPT-4 on Grammatical Error Correction for Brazilian Portuguese

Paper · 2023 · Maria Carolina Penteado and Fabio Perez

Summary

A grammar checker has to decide when a sentence needs an edit and when to leave the writer’s words alone. The authors study both decisions in Brazilian Portuguese, comparing GPT-3.5 and GPT-4 in ChatGPT with the built-in proofing features of Microsoft Word and Google Docs. They put together a dataset with paired incorrect and corrected sentences. It covers commonly confused words and expressions, errors in spelling and punctuation, slips made while typing, and informal language used online. The comparison asks whether the systems can produce the intended correction and, where the authors also test correct sentences, whether they preserve acceptable writing.

For Grammar and Spelling, both GPT systems successfully corrected a greater share of erroneous inputs than either text editor. The editors were more precise and more likely to leave correct sentences unchanged. GPT-4 nonetheless led both categories on F₀.₅, the paper’s combined measure that favors precision over recall. GPT-3.5 scored below both editors on this measure. In the Internet and Fast typing categories, both GPT systems outperformed the editors on recall, the share of erroneous inputs successfully corrected. The paper evaluates those categories on recall alone, so that advantage describes recovery of the intended sentence.

The authors also read through the GPT corrections to see how they went wrong. They distinguish extra edits that preserve meaning from edits that change what the writer says. GPT-3.5 produced 54 sentences in the first group, compared with six for GPT-4. The authors recorded 41 meaning-changing edits that produced grammatical output for GPT-3.5 and 13 for GPT-4. Missed errors occurred with similar frequency in the two systems. Fluent output could therefore conceal a problem that matters to the writer, even as the newer system showed a better balance of correction and restraint.

The study establishes what these tools did with manually written test sentences, a particular ChatGPT prompt, and the selected proofing procedures. Its finding for Brazilian Portuguese is that the GPT systems recovered more of the intended corrections, with GPT-4 offering the strongest combined result on the categories where precision was measured. The curated data and sentence-level scoring leave open how the tools would handle the variety of acceptable corrections, writing styles, and intended meanings in everyday use.

Deep dive: Evaluating GPT-3.5 and GPT-4 on Grammatical Error Correction for Brazilian Portuguese

The paper compares GPT-3.5 and GPT-4 with Word and Google Docs on Brazilian Portuguese, measuring successful corrections and unnecessary changes. · about 32 minutes to read

The problem and its context

Correcting a sentence means preserving something as well

In grammatical error correction, a system receives a piece of writing and returns or proposes an edited version. Its job can involve fixing a misspelling, restoring an accent, supplying punctuation, or replacing a word that makes little sense in its context. The task also includes a decision that produces no visible action. A sentence that already meets the relevant standard may need to be returned unchanged. A useful comparison therefore has to account for sentences a system fixes and for sentences it edits without sufficient reason.

This distinction becomes important when a tool can produce a complete new sentence. Imagine that a reader can see the intended repair in a sentence but could express the repaired thought in several ways. The checker could make the small change that solves the immediate problem, or it could change the vocabulary and sentence structure as well. Both outputs might read smoothly. Their value as corrections depends on whether they preserve the writer’s meaning and on how much freedom the writer gave the checker. A sentence can improve as prose while becoming less faithful to the source, which makes fluency an incomplete guide to correction quality.

The authors present conventional proofing systems as usually relying on pre-defined rules. In their account, such systems can detect straightforward misspellings, while some grammatical problems require a fuller reading of the sentence. A word may be spelled correctly and still be the wrong member of a commonly confused pair. A rule that checks its spelling will have little to say about which of the available words fits the writer’s meaning. The authors see experience with large amounts of text as a possible basis for resolving such cases from context. Their comparison tests whether that potential translates into successful corrections when people use familiar interfaces.

There is a corresponding reason to include correct sentences. A system capable of seeing many plausible ways to express a thought may change a valid expression simply because another one seems more usual. A spelling checker that rarely rewrites whole phrases has fewer opportunities to make that kind of change. A comparison limited to erroneous inputs can show that a system is good at rescuing bad sentences. It has less to say about what happens when the same instruction is applied to writing that was already sound. That difference is part of the research problem because a user generally asks for help before knowing which sentences will need it.

Why Brazilian Portuguese required a direct test

The paper situates the study in a field where English had received much of the attention. It notes promising results in other languages for tasks such as machine translation and sentiment analysis, while observing that training material can be more limited outside English. Those observations give a reason to examine Brazilian Portuguese directly. They do not supply a result for Brazilian Portuguese correction, where the system must choose which local expression, spelling, accent, or usage fits a specific sentence.

The authors cite earlier work on the Exame Nacional do Ensino Médio, the entrance examination used by many Brazilian universities, as a separate example of GPT use in a Brazilian setting. That study compared ways of prompting GPT-3.5 and GPT-4 to answer examination questions, including a chain-of-thought approach that asked the system to generate an explanation. GPT-4 with that approach reached 87% accuracy on the 2022 exam. The number measures performance on the exam questions. The correction study asks for a different skill. A checker has to work from the wording someone else chose, preserve the intended message, and sometimes return the text exactly as it received it.

The paper also places its comparison alongside a wider multilingual evaluation. In the authors’ account, ChatGPT often performed below the leading supervised systems for the tasks and languages examined there, including tasks in English. Portuguese appeared in relation extraction, an information extraction task concerned with identifying relationships expressed in text. The multilingual study did not include grammatical error correction. Its role in the argument is to make broad multilingual promise an insufficient basis for expecting good performance on a specific task. ChatGPT Beyond English

A further obstacle was the supply of examples. To compare correction systems, the researchers needed Brazilian Portuguese sentences with known problems and versions that expressed the intended repair. The authors report limited availability of corpora designed for this purpose, so they constructed their own. This choice made a systematic comparison possible and gave them control over which kinds of difficulty the systems encountered. It also meant that what counted as a problem, and which changed sentence served as its answer, came from the people preparing the material.

Earlier evaluations showed why the scoring decision matters

The authors describe a prior study that compared ChatGPT with Grammarly and GECToR. That study’s automatic scores placed ChatGPT below other correction systems. Its human assessment gave a more differentiated account. Readers found fewer cases where ChatGPT corrected too little or supplied a bad correction, alongside more cases where it corrected too much. The Brazilian Portuguese paper notes that the earlier study did not identify the GPT version it used. Its relevance lies in the distinction between the output a scoring procedure accepts and what a careful reader observes in the change to the sentence. ChatGPT or Grammarly?

Another study in the paper tested GPT-3.5 on English, German, and Chinese. It examined prompting with and without demonstrations, asking for reasoning as part of the task. The authors of the Brazilian Portuguese study describe the earlier findings as strong error detection and fluent writing accompanied by overcorrection. The combination focuses attention on the point at which a legitimate repair turns into extra editing. It also suggests why evaluation based on a single success score can give a limited account of performance. Is ChatGPT a Highly Fluent Grammatical Error Correction System?

The paper brings these concerns together in a practical comparison. It asks what happens when the same kinds of sentence are submitted to the proofing tools available in Word and Google Docs and to GPT through ChatGPT. Its educational motivation is that a checker could give a student prompt feedback about writing. For that purpose, an unnecessary edit can carry a misleading implication. It may suggest that an acceptable construction was wrong, or change the student’s expression of a thought. Detecting an error, making a faithful repair, and responding appropriately to correct writing are distinct demands on the same tool. ChatGPT for Good?

The method, step by step

Write pairs that make the intended correction explicit

The authors asked native speakers of Brazilian Portuguese to write sentences for the experiment. Each erroneous sentence had a corrected counterpart. The erroneous member is the input on which a system can demonstrate successful correction. Its counterpart serves as the reference for that decision. In Grammar and Spelling, the correct sentences were also inputs in their own right, so a reference that helped judge one output could also test whether a checker would leave an acceptable expression alone.

The Grammar category contains 34 sets of three phrases, with 102 phrases in total as reported in the dataset description. The sets concern words or expressions that resemble one another closely enough to be confused. The error hinges on the choice of expression in context. A correction tool may need to recognize that an apparently valid form is unsuitable in that particular phrase. The design isolates a single error in a phrase, which helps tie success or failure to the targeted distinction.

Spelling contains 100 sentences. The authors use the category name for more than letters in individual words. It also includes punctuation and accentuation. As in Grammar, the design isolates one error per phrase. A system can therefore identify that an input needs attention and still fail to produce the intended result if its final sentence introduces some further difference. The scoring target is the corrected sentence, including features such as punctuation that the study deliberately treats as relevant.

Fast typing consists of 40 sentences containing typing slips. The authors assign multiple errors to phrases in this category. A system may need to reconstruct the intended form when several pieces of the text have been disturbed. Its output can show that it understood part of the input and still fall short of complete recovery. This is a different challenge from deciding between closely related expressions in an otherwise intact sentence.

Internet contains 40 sentences that draw on forms such as abbreviations, slang, and newly coined words used in online communication. The category also allows multiple changes within a phrase. The intended output is defined by the corrected counterpart the authors paired with the input. That pairing is particularly important here because an informal expression can make sense in its original setting. The test asks whether a system reaches the chosen version of the sentence when the task calls for correction. The supplementary material provides access to the dataset.

From Brazilian Portuguese sentence pairs to correction scores

The steps in order.

From Brazilian Portuguese sentence pairs to correction scoresStep 1: Write erroneous sentences and their corrected counterparts1. Write erroneous sentences and their corrected counterpartsStep 2: Group pairs by the kind of difficulty2. Group pairs by the kind of difficultyStep 3: Run the Brazilian Portuguese proofing checks3. Run the Brazilian Portuguese proofing checksStep 4: Shuffle and batch sentences for ChatGPT4. Shuffle and batch sentences for ChatGPTStep 5: Remove the marker for already correct inputs5. Remove the marker for already correct inputsStep 6: Compare outputs with the reference sentences6. Compare outputs with the reference sentencesStep 7: Score correction and preservation where tested7. Score correction and preservation where testedStep 8: Read the GPT outputs for error patterns8. Read the GPT outputs for error patterns

Run the proofing features with Brazilian Portuguese selected

The authors used the spelling and grammar functions that the editors make available to ordinary users. In Google Docs, they set the document language to Brazilian Portuguese, ran the spelling and grammar check, and accepted the proposed correction for each error that the check surfaced. This procedure gave them a resulting sentence to compare with the reference. It also fixed the researchers’ role in the test. They accepted the system’s corrections under a stated procedure, leaving the judgment of the finished sentence to the evaluation.

They used the online version of Microsoft Word and selected Brazilian Portuguese as the proofing language for the document. For each spelling or grammar error listed by the editor, they took the first suggestion. They repeated the procedure until Word stopped finding errors. The outcome for Word therefore reflects that sequence of accepted suggestions. If a suggestion changes the context for another check, the later pass can act on the changed sentence. The experiment scores the sentence at the end of the procedure.

The language settings matter because the domain of the study is a particular variety of Portuguese. The suggestion procedures matter for a different reason. A proofing system may offer several replacements, but a researcher who chooses among them can supply some of the judgment the experiment is supposed to measure. By accepting the indicated correction in Google Docs and taking Word’s first suggestion, the authors evaluated defined ways of using the editors. This gives meaning to the baseline scores without attributing them to every possible way a person could use either product.

Ask ChatGPT to produce the corrected text

The authors used ChatGPT for GPT-3.5 and GPT-4. At the time, they lacked access to the GPT-4 API, so the comparison uses the chat interface. The two GPT systems received the same correction prompt. The paper gives the Portuguese prompt and an English translation as a reference for readers. Its purpose was to obtain corrected sentences in a form suitable for comparison, without making success depend on extensive experimentation with prompt wording. GPT-4 Technical Report

To handle inputs that needed no repair, the authors asked ChatGPT to add the marker [Correta] when a phrase was correct. The marker gave the system a short way to indicate that decision. A longer explanation of why a sentence was acceptable would complicate the comparison between the returned text and the input. Before evaluating the response, the authors removed occurrences of the marker. The remaining wording is what mattered to the preservation test. A system could indicate that the input was correct and still change its wording, in which case stripping out the marker would leave the change visible.

The authors shuffled the phrases and kept the correct and incorrect versions of a pair out of the same prompt. That reduces the chance of putting the intended answer next to its corresponding problem. The rule applies to the placement of the pairs within batches. It establishes how the authors presented the examples, without making each response independent of the other sentences that appeared in the same request.

Each prompt held 20 to 26 phrases, with the batch size depending on the category. The GPT results therefore describe correction in groups of sentences. A batch asks the system to repeat the task across several inputs under a common instruction. That resembles a user sending a collection of sentences for checking, while leaving room for different behavior if the same sentences are submitted individually. No new training stage was part of the comparison. The task directions and the inputs were the means by which the authors elicited corrections from the systems already available through the interface.

Score the resulting sentence

The evaluation uses the sentence as its unit. The authors distinguish this procedure from the evaluation used in the CoNLL2014 shared task, which judges the edits supplied by a correction system against reference edits. An edit-based comparison can separate changes made at different places in a sentence. The Brazilian Portuguese study asks whether the resulting phrase reaches the gold standard, meaning the corrected wording prepared for the dataset. A system can make a useful change that remains insufficient for sentence-level success. This is especially relevant to the categories in which a phrase can contain several problems.

The paper assigns names to the possible outcomes according to the condition of the input and what the checker does with it. A true positive is an incorrect input that the system successfully corrects. A false negative is an incorrect input that remains uncorrected in the sense of the evaluation. This can include an output that differs from the input but still fails to supply the intended correction. A true negative is a correct input left unchanged. A false positive is a correct input that the system changes inappropriately. These labels describe outcomes for phrases, so an edit inside an unsuccessful phrase is not independently counted as a successful sentence.

The authors state the metric definitions in words. Their precision question can be expressed as the following fraction.

P = C ÷ M

P denotes precision. C is the number of phrases successfully corrected among those the tool changed, and M is the number of phrases the tool changed. The equals sign defines the score and ÷ denotes division. The denominator follows the paper’s verbal definition. It asks how frequently the system’s decision to intervene resulted in a successful correction. The separate description of a false positive concerns incorrect changes to already correct inputs. That description alone does not specify how to reconstruct the precision denominator from the named outcomes when an erroneous input is changed unsuccessfully.

Recall asks about the inputs that needed correction.

R = C ÷ E

R denotes recall. C is the number of erroneous phrases successfully corrected, and E is the number of erroneous phrases submitted to the tool. The equals sign defines recall as the result of dividing the successful corrections by the erroneous inputs. A system that misses an error and a system that tries a repair but fails can both lose recall. The metric answers how often an erroneous sentence was recovered, regardless of how the failures arose.

The true negative rate takes correct inputs as its starting population.

TNR = U ÷ A

TNR denotes the true negative rate. U is the number of correct phrases the system leaves unchanged, and A is the number of correct phrases the system receives. The equals sign defines the rate and ÷ indicates that the unchanged correct phrases are counted as a share of all correct inputs. This measure makes restraint visible. Its denominator includes every correct input in the category being evaluated.

The remaining measure, F₀.₅, combines precision and recall while giving precision greater weight. The subscript 0.5 identifies the weighting used in the score. The authors describe it as emphasizing precision twice as much as recall. Its role is to compare systems when recovering more erroneous sentences and making fewer unhelpful changes can pull in different directions. The paper reports precision, recall, F₀.₅, and the true negative rate for Grammar and Spelling. Internet and Fast typing are evaluated using recall. A result in those latter categories therefore says how well a system fixed the supplied erroneous sentences under the reference criterion.

Experiments and results

A comparison of finished sentences

The main experiment compares the two GPT systems and the two document editors across the categories. Grammar and Spelling each combine an error-recovery test with a preservation test. Both use inputs with isolated errors, and both include already correct phrases on which a tool can make an unnecessary change. Internet and Fast typing emphasize recovery of a reference sentence from material that can require several repairs. Keeping the categories distinct lets the reader see how the relative strengths of the systems change with the nature of the input and with the evidence the authors collect.

For the GPT conditions the authors ran the experiment three times. They describe the results for GPT-3.5 and GPT-4 as averages accompanied by standard deviations. The average summarizes what happened across the runs, and the standard deviation describes how much the scores varied across those runs. Repetition matters because a ChatGPT request need not produce the same sentence each time. A repeated run probes that variability under the selected procedure. Variation across separate collections of Brazilian Portuguese writing is a different question.

The paper describes the rankings on its main metrics and gives exact counts for the qualitative review. Those counts identify particular behaviors in GPT output. They answer different questions from the category-specific averages. For instance, the number of grammatical miscorrections shows how often the reviewers identified a fluent change that altered meaning. It cannot determine the combined score for Grammar or Spelling, which depends on the successes and intervention decisions in that category.

Grammar and Spelling

The central result in Grammar and Spelling is a consistent tradeoff. Both GPT-3.5 and GPT-4 had higher recall than Google Docs and Microsoft Word. When the test started from an erroneous sentence, the GPT systems were more likely to produce the intended corrected version. Both also had lower precision than the editors. Among the changes the systems made, successful corrections accounted for a smaller share. An editor could therefore leave more errors in place while making a greater proportion of successful interventions.

The true negative rate makes one source of this tradeoff visible. The GPT systems were more prone to changing phrases that were already correct. These are cases in which there was no targeted error for the system to resolve. A system can recognize many real errors and still perform poorly on this decision if it interprets a correction request as permission to improve style. A strong recall result offers little protection against this behavior because the valid phrases are outside recall’s denominator.

On F₀.₅, GPT-4 ranked ahead of the other systems in both Grammar and Spelling. Its recall advantage was sufficient for it to lead the combined measure even under the emphasis on precision. GPT-3.5 ranked below Google Docs and Microsoft Word on that measure. The findings give GPT-4 a different standing from GPT-3.5 in this experiment. Both versions showed the higher-recall, lower-precision pattern relative to the editors, but only GPT-4 translated that profile into the leading combined score.

For Grammar, the finding concerns the particular lexical and grammatical distinctions selected by the curators. A system had to recover an intended choice between expressions that people may confuse, while remaining able to accept the corresponding correct usage. For Spelling, the ranking covers the collection that includes punctuation and accentuation as well as spelling. The category-level result does not assign the same advantage to every type of mistake within that collection. It describes what happened across the sentences grouped under that heading.

The authors connect the results with previous reports of overcorrection and suggest a possible explanation for the GPT systems’ higher recall. Familiarity with a broad range of language patterns could help them infer which word, spelling, or construction fits the sentence. The same capacity to generate a coherent sentence can encourage additional substitutions. The tests establish the performance pattern and the presence of unwanted edits. The account of why it arises remains an interpretation of those observations.

Internet and Fast typing

For Internet and Fast typing, both GPT systems had substantially better recall than both editors in the authors’ account. Reaching the expected output can involve making sense of several irregular forms together. A typing slip might be easy to interpret when the surrounding words are clear and harder to repair when the phrase contains several slips. Similarly, an abbreviation or a colloquial term may be intelligible in context even when it is a poor candidate for a standalone spelling rule. The authors view the GPT advantage as consistent with using more of the sentence to infer the intended wording.

The result is particularly informative because a sentence-level success in these categories can require several repairs to come together. A tool that corrects an obvious form while leaving another erroneous form in place may have helped a reader, yet the output still fails the recovery test. The reported advantage indicates that the GPT systems more frequently completed the transformation to the reference in these test cases. It does not identify which edits were decisive or how frequently the editors made a useful partial repair.

The comparison in these categories uses recall alone. A checker that rewrites aggressively can have a favorable result if its rewrites frequently reach the expected target. The experiment here supplies no corresponding true negative rate for acceptable informal sentences and no precision score for attempted changes. Its evidence is strongest for the question it directly measures. Given inputs that the authors selected and paired with intended corrected forms, the GPT systems reached those forms more often than the editors.

What the reviewers found in the corrections

The authors inspected the responses produced by GPT-3.5 and GPT-4 and classified several kinds of failure. They recorded 54 sentences out of 484 for GPT-3.5 in the category of overcorrection that leaves the meaning intact, and six such sentences for GPT-4. This category includes optional-looking changes such as adding or removing commas or changing capitalization. The consequence in these cases was an intervention beyond the needed correction, with the proposition expressed by the sentence preserved.

The reviewers distinguished these edits from grammatical miscorrections. The latter still yielded a grammatical sentence, but changed its meaning. The authors mention edits such as adding or deleting words, substituting one word for another, or rearranging portions of an input. The identifying feature was what happened to the intended message. A substitution could be part of a valid correction in one sentence and a meaning-changing error in another.

Grammatical miscorrection counts in the Brazilian Portuguese GPT output review

GPT-4 produced fewer grammatical outputs that changed the intended meaning.

Grammatical miscorrection counts in the Brazilian Portuguese GPT output reviewGPT-3.5: 41GPT-3.541GPT-4 (this paper): 13GPT-4 (this paper)13
The numbers
System or settingoutputs
GPT-3.541
GPT-4 (this paper)13

The 41 cases for GPT-3.5 and 13 for GPT-4 are outputs in this qualitative category across the reviewed material. They show that fluency can coexist with a consequential correction error. A grammatical output may appear satisfactory when read in isolation. Putting it beside the original and its intended counterpart is what reveals that the writer’s meaning was changed.

The authors also identified changes that left the result ungrammatical. They counted 3 such outputs for GPT-3.5 and 1 for GPT-4. These instances form a separate group in the review. Their defining feature is that the system’s attempted correction yielded an unacceptable sentence at the level of grammar as well as failing to supply the intended repair.

Ungrammatical miscorrection counts in the Brazilian Portuguese GPT output review

Both systems produced ungrammatical miscorrections, with fewer recorded for GPT-4.

Ungrammatical miscorrection counts in the Brazilian Portuguese GPT output reviewGPT-3.5: 3GPT-3.53GPT-4 (this paper): 1GPT-4 (this paper)1
The numbers
System or settingoutputs
GPT-3.53
GPT-4 (this paper)1

Omissions complete the authors’ qualitative account. They observed 22 instances for GPT-3.5 and 23 for GPT-4 in which an error went undetected in the sense used by the review. Those counts are close even though the systems differ in the other categories. The outputs give grounds for saying that GPT-4 adopted fewer unnecessary or meaning-changing edits of the kinds the authors classified. The omission counts give a separate view of what remained difficult.

What the ablations show

The paper reports no formal ablations that remove or vary a component, and instead compares tools, types of input, and the behavior of the resulting edits.

Correct and erroneous sentences probe different decisions

The closest comparison to a controlled change in the input is between the correct and erroneous members of sentence pairs in Grammar and Spelling. A pair gives the researchers a way to test what happens when the relevant error is present and when it has already been repaired. The ChatGPT batching rule keeps the two members from appearing in the same request. A system therefore has to judge the sentence it receives without being able to choose between the two versions of that exact pair in its batch.

The resulting recall and preservation measurements concern different conditions. Recall starts with the version requiring a change. A successful output indicates that the system reached the intended target. The true negative rate starts with an acceptable version. There, success means the system left the text alone. An advantage on one condition can coexist with a weakness on the other. The lower preservation observed for the GPT systems shows that their willingness to produce corrections extended to some inputs where the authors expected no intervention.

This comparison also helps interpret precision. Extra edits to correct inputs are a concrete reason precision can suffer. There are other ways to produce an unsuccessful modification, including supplying the wrong repair to a sentence with a genuine error. The paired cases show that the pressure toward editing appears even when the immediate cause of difficulty in the erroneous sentence has been removed. They give a behavioral observation, rather than a view into what caused the system to prefer its output.

The category comparisons change several things at once

The comparison across Grammar, Spelling, Fast typing, and Internet examines different sources of difficulty. Grammar and Spelling contain isolated errors. The other categories can contain several deviations and involve a different kind of inference about what the writer meant. GPT’s advantage in recovering references from mistyped and online language is consistent with using broader context. That comparison does not isolate context use experimentally. The categories also differ in what curators wrote, in the kinds of corrections required, and in the metrics available for judgment.

The distinction between Internet and Fast typing is also substantive. Typing errors concern the unintended form of a sentence. Internet language includes expressions the writer may have used deliberately. Both can call for an inference from the observed words to a target form, but the reason for getting there differs. A system can be adept at reading a damaged word and also be willing to replace an intentional informal expression. The recall measure credits recovery of the chosen form in both settings. It offers limited leverage for saying whether the same capability accounts for those successes.

A stronger test of the contextual explanation would require varying the context available while keeping the target error fixed. The paper supplies no such manipulation. Its actual comparison is between correction systems operating on the full set of phrases under their respective interfaces. That design provides useful evidence about which tool succeeded on the constructed categories. The cause of the advantage remains less specific than the observed difference in recovery.

Reading the outputs separates failures with different consequences

The qualitative analysis asks a different question from the automatic evaluation. Once a returned sentence fails to behave as intended, what happened to it? Some outputs retain the writer’s meaning and introduce an optional edit. Others retain grammaticality while altering meaning. A further group becomes ungrammatical, and omissions leave an error unaddressed. Those distinctions help a reader understand consequences that can be hidden by the single judgment that an entire phrase did or did not reach its reference.

Consider changes to punctuation. The paper treats punctuation as a legitimate source of error in Spelling, and its review also treats some punctuation changes as overcorrection. The affected feature is the same, while the judgment depends on the input. Restoring punctuation required by the intended sentence can constitute a successful correction. Replacing acceptable punctuation with another acceptable choice can count as an unnecessary intervention. A measure of how frequently the system edits punctuation would not tell these cases apart. The review interprets an edit in relation to the problem it was supposed to solve.

The same applies to replacing words. If the input uses the wrong member of a confusable pair, the expected response may require a replacement. If the wording was already appropriate, substituting a different expression can introduce a change of meaning. The qualitative category of grammatical miscorrection matters precisely because the output can survive a surface judgment of correctness. It can be grammatically well formed, easy to read, and substantively inaccurate as an account of what the writer meant.

Comparing the two GPT systems within this review also shows which observed changes accompanied the higher combined scores for GPT-4. The counts fall for optional edits that preserve meaning and for grammatical changes that alter meaning. They also fall for ungrammatical miscorrections, a group with few observed cases. The omission counts remain close. That profile gives a more specific account of improvement than an assertion that GPT-4 corrected everything better. Much of the visible difference in the review concerns what happened when the systems intervened.

The omissions and recall results can coexist because they describe outcomes at different levels. An omission count registers a behavior identified during the authors’ reading of the output. Recall asks whether an erroneous phrase reached the reference, including cases in which the system did intervene. An output that attempts a correction and produces the wrong sentence can reduce recall without belonging to the omission group. Reading both forms of evidence helps distinguish failure to address an error from failure to repair it adequately.

The comparison changes the system while keeping a common instruction

GPT-3.5 and GPT-4 received the same instruction through ChatGPT. This makes their comparison more informative than one in which each system receives hand-tuned directions of a different kind. The instruction, batching rule, and marker handling are shared elements of the procedure. Under those conditions GPT-4 led on the combined score in Grammar and Spelling and produced fewer examples of several undesirable behaviors.

The version comparison still changes an entire system at once. It cannot attribute the difference to a particular part of its design, its training, or its response to a single phrase in the prompt. The authors’ suggestion that generation may favor fluent or familiar wording fits the outputs they describe. So does the general possibility that one system follows a correction instruction more narrowly than the other. The experiment measures behavior under the prompt. The output categories supply evidence about what improved without establishing which internal change produced it.

Limitations

Limits the authors identify

The authors describe the dataset as a starting point built under a shortage of suitable Brazilian Portuguese correction corpora. Native speakers wrote the inputs and supplied the references, so the items can reflect the curators’ preferences. In Grammar, that affects which confusions the benchmark treats as worth testing. In Internet, it can affect which expressions are selected and which standard-looking replacements are accepted as the targets. Across categories, it can affect what counts as a required repair and when keeping the original wording is preferable.

The paper also acknowledges that manually crafted phrases may cover only part of the complexity and variation present in real writing. A curated incorrect sentence can place a chosen ambiguity or error in clear view. Sentences composed in everyday circumstances can present overlapping problems and rely on information outside the sentence. The authors propose collecting larger datasets from errors made in actual writing situations. This would extend the evidence to the uses that motivate the paper, including writing in educational settings.

A further limit concerns the prompt. The authors sought a practical setup that did not demand specialist knowledge of prompt design, and they suggest that deliberate refinement might improve the results. The performance reported is for the shared instruction they chose. A direction emphasizing minimal intervention might alter preservation, while one concentrating on hard-to-read input might affect recall. These are possible sensitivities of the design. The study has a fixed correction prompt, so it leaves their effects open. Few-Shot Learners

The authors identify open-ended and stochastic generation as another practical difficulty. A system may substitute a more familiar expression for an acceptable one or produce additions with little grounding in the input. Either can lead to a correction unrelated to the writer’s problem. Repeating the GPT runs helps show variability for this experiment. The broader concern remains that a user can receive different wording from the same request and may have to inspect whether the returned sentence remains faithful to the original.

They also raise constraints outside the scoring exercise. Large systems can require hardware that some users and institutions cannot readily provide. For a service running elsewhere, accessing it requires an internet connection and involves sending text to another party, with implications for privacy. The paper discusses the possibility of biased or inaccurate changes and the risk of deliberate manipulation of a system’s behavior. These concerns qualify how readily a favorable benchmark result translates to use in classrooms or institutions. They concern accessibility, trust, and data handling, dimensions the correction metrics were not designed to measure. Language (Technology) is Power

Limits evident in the evaluation design

The sentence-level target makes the scoring task clear, but it creates a demanding definition of success. A different acceptable formulation can fall outside the expected answer. A partly repaired phrase can do so as well. These are different outcomes from the perspective of a writer who wants help. An equivalent formulation may be satisfactory if the person wanted a polished sentence. A partial correction may still save time if the writer reviews the result. The benchmark’s recovery result is tied to the specified counterpart, so it cannot by itself value these forms of assistance.

The problem becomes sharper when the degree of discretion given to the tool changes. A pupil looking for feedback about their own grammar may want the smallest change that shows where they went wrong. A person preparing an informal message for a different audience may actively seek a change in register. An intervention judged unnecessary in the first task might be part of the second. The paper’s correction and preservation goals specify what success means for its dataset. They leave open how the systems would compare when users ask for broader or narrower changes.

Internet language exposes this question directly. The dataset contains informal expressions that the curators paired with intended alternatives. The resulting score reflects how frequently a tool produced those alternatives. Its design cannot establish that the original expression was inappropriate for the context in which someone might actually choose to write it. Because the category is evaluated on recall, the experiment also does not show whether the tool can preserve slang or abbreviations in contexts where they serve the writer’s purpose. Evaluating that ability would require correct inputs defined under an explicit standard of acceptability for the relevant register.

Fast typing presents another limit of whole-sentence comparison. Several repairs can contribute to one successful phrase, while a remaining slip can make an otherwise substantial repair unsuccessful. The paper’s results do not reveal the distribution of useful partial changes or the location of the hard cases inside the sentence. The choice is coherent with the question of complete recovery. Detailed claims about individual edits would require an analysis that observes them individually. The paper contrasts its approach with an edit-based benchmark precisely at this point.

The preservation test is most directly informative for the correct phrases within Grammar and Spelling. It gives grounds for identifying unnecessary GPT changes there. Precision and the true negative rate are unavailable for the other categories under the stated evaluation. A high recall result for Fast typing or Internet cannot serve as a complete assessment of whether users should accept all proposed changes. The paper can establish that recovery was better on the chosen cases while leaving the frequency and costs of unwarranted edits in those categories unresolved.

The editors also need to be understood through their respective procedures. Word’s output follows successive passes and first-suggestion selection. Google Docs’ output follows the authors’ acceptance of the proposed fixes. ChatGPT produces revised text for batches in response to a common prompt. The conditions compare practical ways to use the products, and the differences between them are part of the result. A user who examines alternatives before choosing an editor suggestion, or prompts ChatGPT sentence by sentence, is following a different decision procedure that may produce different outputs.

Likewise, the GPT repetitions quantify variation under the experiment’s conditions. They do not supply independent samples of natural Brazilian Portuguese writing. To assess whether the same ranking held elsewhere, the relevant variation would include different writers, settings, registers, and distributions of errors. Repeated generation and broader sampling address different sources of uncertainty. The study addresses the former through its repeated runs and leaves the latter largely to the future data collection the authors propose.

The qualitative analysis makes meaning change visible, while its comparative scope remains narrower than that of the main experiment. The authors describe inspecting the GPT corrections. The counts compare the behaviors they identified in those outputs. They do not provide a matched set of counts for the two editors, so they cannot show how often Word and Google Docs committed the same meaning-changing errors under the review criteria. The paper also does not give enough information about independent judgments to determine how consistently different reviewers would draw the boundary between optional revision and grammatical miscorrection.

What the experiment establishes about education

The authors’ educational example asks for a judgment about grammaticality, a repair where appropriate, and an explanation of the problem. This shows how a request can be structured to return both a proposed sentence and feedback about why it needed a change. A useful explanation would have to identify the actual issue and justify an appropriate correction in a form a learner can understand. Those are additional tasks beyond matching a reference sentence.

The paper also discusses tutoring tailored to a student, support for learners with disabilities, the creation of practice material, and assistance with evaluating written answers. These are proposed uses. Its experiments measure correction and preservation on the curated phrases and describe the failures the authors saw. They give no outcome measure for what students learn from the feedback, how teachers use it, or how well the system supports a particular learner’s needs. The distinction matters because a polished correction can still be paired with a poor explanation, and an unnecessary edit can teach a mistaken lesson about what is acceptable.

What came after

Later papers cite the Brazilian Portuguese study while posing related questions about what a correction system does and how to judge its output. The links are clearest at the level of the research questions. One work reconsiders the role of generative systems in grammatical correction for Chinese. Another places the context of a proposed edit at the center of the evaluation of spelling and grammar checkers. A third takes the problem of reference quality into the evaluation of translations of user-generated text.

Context in the assessment of checkers

Beyond Error Categories presents a contextual approach to evaluating emerging spelling and grammar checkers. The connection to the Brazilian Portuguese study is the difference between identifying an edit type and judging whether that edit helps in the sentence where it appears. A punctuation change can repair a real error or simply replace a legitimate choice. A substitution can resolve a confusion or alter the writer’s message. The category of edit helps describe what moved, while the context helps determine whether it should have moved at all. Beyond Error Categories

That question runs through the Brazilian Portuguese paper’s qualitative review. Its reviewers had to look at the meaning before and after the correction to distinguish extra edits that preserved meaning from grammatical miscorrections. A contextual approach to checker evaluation treats the appropriateness of the intervention as a central question. The connection is most direct for outputs that read well by themselves. Their fluency is easy to observe, but the justification for the changes lies in the relation between the output and the input.

System roles in Chinese correction

Rethinking the Roles addresses the place of generative systems in Chinese grammatical error correction. The Brazilian Portuguese comparison uses GPT-3.5 and GPT-4 as direct correctors. It asks each to produce revised text and scores the resulting sentence. Framing the subject in terms of roles opens the question of which part of correction a system is suited to perform. Recognizing that a sentence contains a problem, generating an appropriate repair, and preserving correct writing are separable demands, as the Brazilian Portuguese scores and output review show. Rethinking the Roles of Large Language Models in Chinese Grammatical Error Correction

The change in language also matters to the relationship between the works. The Portuguese experiment gives a concrete result for a carefully bounded language and dataset. The Chinese paper places the broader question of system roles in a different linguistic setting. Its scope continues the investigation beyond an English-centered view of correction while calling for evidence suited to the target language. The Brazilian Portuguese findings supply questions that can travel across languages, including how to weigh stronger error recovery against less selective intervention.

Reference quality in translation of user-generated text

When the Gold Standard Isn’t Necessarily Standard addresses the difficulty of evaluating translations of user-generated content when the status of the reference is itself at issue. The Brazilian Portuguese correction study uses curated counterparts as the standards against which returned sentences are judged. In its Internet category especially, an observed form may be meaningful as written even when the target chosen for the evaluation is a more standardized expression. The later translation paper brings attention to what the reference represents when the material being evaluated originates in informal writing. When the Gold Standard Isn’t Necessarily Standard

The relationship between the tasks lies in the evaluation decision. Correction compares a rewritten sentence with an intended repair in the same language, while translation asks for an expression of the input in another language. In either case, the reference determines which departures the evaluation can recognize as errors and which legitimate alternatives it may miss. The Brazilian Portuguese paper makes that issue visible by combining a clear sentence-level recovery criterion with human inspection of changes that preserve or alter meaning. The later work places the assumptions behind the reference at the center of the evaluation question.

Cite

Cite as Maria Carolina Penteado and Fabio Perez. 2023. Evaluating GPT-3.5 and GPT-4 on Grammatical Error Correction for Brazilian Portuguese. arXiv:2306.15788.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2306.15788 · arXiv 2306.15788

@misc{penteado2023evaluating,
  title = {{Evaluating GPT-3.5 and GPT-4 on Grammatical Error Correction for Brazilian Portuguese}},
  author = {Maria Carolina Penteado and Fabio Perez},
  year = {2023},
  doi = {10.48550/arxiv.2306.15788},
  eprint = {2306.15788},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2306.15788}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/penteado-2023-evaluating-gpt-3-5-gpt/

References

14 references, from the paper's own bibliography.

  1. Blodgett, S. L., Barocas, S., Daum'e, H., and Wallach, H. M. Language (technology) is power: A critical survey of “bias” in NLP. In Annual Meeting of the Association for Computational Linguistics, 2020. our card
  2. Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, G., Henighan, T. J., Child, R., Ramesh, A., Ziegler, D. M., Wu, J., Winter, C., Hesse, C., Chen, M., Sigler, E., Litwin, M., Gray, S., Chess, B., Clark, J., Berner, C., McCandlish, S., Radford, A., Sutskever, I., and Amodei, D. Language models are few-shot learners. ArXiv, abs/2005.14165, 2020. our card
  3. Bryant, C., Yuan, Z., Qorib, M. R., Cao, H., Ng, H. T., and Briscoe, T. Grammatical error correction: A survey of the state of the art. arXiv preprint arXiv:2211.05166, 2022. OpenAlex ↗ · Scholar ↗
  4. Fang, T., Yang, S., Lan, K., Wong, D. F., Hu, J., Chao, L. S., and Zhang, Y. Is ChatGPT a highly fluent grammatical error correction system? a comprehensive evaluation, 2023. our card
  5. Garrido-Muñoz, I., Montejo-Ráez, A., Martínez-Santiago, F., and Ureña-López, L. A. A survey on bias in deep NLP. Applied Sciences, 11:0 3184, 2021. OpenAlex ↗ · Scholar ↗
  6. Greshake, K., Abdelnabi, S., Mishra, S., Endres, C., Holz, T., and Fritz, M. More than you've asked for: A comprehensive analysis of novel prompt injection threats to application-integrated large language models. ArXiv, abs/2302.12173, 2023. OpenAlex ↗ · Scholar ↗
  7. Kasneci, E., Seßler, K., Küchemann, S., Bannert, M., Dementieva, D., Fischer, F., Gasser, U., Groh, G., Günnemann, S., Hüllermeier, E., et al. ChatGPT for good? on opportunities and challenges of large language models for education. Learning and Individual Differences, 103:0 102274, 2023. our card
  8. Lai, V. D., Ngo, N. T., Veyseh, A. P. B., Man, H., Dernoncourt, F., Bui, T., and Nguyen, T. H. ChatGPT beyond english: Towards a comprehensive evaluation of large language models in multilingual learning, 2023. our card
  9. Nadeem, M., Bethke, A., and Reddy, S. Stereoset: Measuring stereotypical bias in pretrained language models. In Annual Meeting of the Association for Computational Linguistics, 2020. our card
  10. Ng, H. T., Wu, S. M., Briscoe, T., Hadiwinoto, C., Susanto, R. H., and Bryant, C. The CoNLL-2014 shared task on grammatical error correction. In Proceedings of the Eighteenth Conference on Computational Natural Language Learning: Shared Task, pp. 1–14, 2014. OpenAlex ↗ · Scholar ↗
  11. Nunes, D., Primi, R., Pires, R., Lotufo, R., and Nogueira, R. Evaluating GPT-3.5 and GPT-4 models on brazilian university admission exams. arXiv preprint arXiv:2303.17003, 2023. OpenAlex ↗ · Scholar ↗
  12. OpenAI. GPT-4 technical report, 2023. our card
  13. Perez, F. and Ribeiro, I. Ignore previous prompt: Attack techniques for language models, 2022. our card
  14. Wu, H., Wang, W., Wan, Y., Jiao, W., and Lyu, M. ChatGPT or grammarly? evaluating ChatGPT on grammatical error correction benchmark. arXiv preprint arXiv:2303.13648, 2023. our card