---
title: "Unnatural Error Correction — paper by Cao et al. (2023)"
description: "Scrambled Bench tests how well GPT-4 and other systems restore words with shuffled letters and answer questions from scrambled text."
canonical: "https://research.elamur.ai/free/en/papers/cao-2023-unnatural-error-correction-gpt-4/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/cao-2023-unnatural-error-correction-gpt-4/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / Unnatural Error Correction: GPT-4 Can Almost Perfectly Handle Unnatural Scrambled Text

# Unnatural Error Correction: GPT-4 Can Almost Perfectly Handle Unnatural Scrambled Text

Paper · 2023 · Qi Cao, Takeshi Kojima, Yutaka Matsuo et al.

**Authors:** [Qi Cao](https://md.research.elamur.ai/free/en/authors/qi-cao/), [Takeshi Kojima](https://md.research.elamur.ai/free/en/authors/takeshi-kojima/), [Yutaka Matsuo](https://md.research.elamur.ai/free/en/authors/yutaka-matsuo/) and [Yusuke Iwasawa](https://md.research.elamur.ai/free/en/authors/yusuke-iwasawa/) · **Year:** 2023 · **Venue:** Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2023.emnlp-main.550/)
- [PDF](https://aclanthology.org/2023.emnlp-main.550.pdf)
- [DOI 10.18653/v1/2023.emnlp-main.550](https://doi.org/10.18653/v1/2023.emnlp-main.550)

## Summary

A reader can sometimes make sense of a word whose letters have been shuffled, especially when the rest of the sentence helps narrow down what it could be. Cao and colleagues ask whether GPT-4 and other language systems can do something similar when the damage extends across a sentence or passage. The question matters because a system first breaks text into units called tokens. Moving letters around can change which units it receives, even though a reader looking at the original and scrambled words side by side can see that both contain the same letters. The paper uses this discrepancy to test robustness under severe disruption of [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/).

The authors build Scrambled Bench around two tasks. In Scrambled Sentence Recovery, a system receives scrambled text and must write the original wording. In Scrambled Question Answering, it must pick an answer using text that has been scrambled. The first task measures how closely a reconstruction matches a reference. The second asks how much useful information survives for answering a question. The principal experiments use recent news items from RealtimeQA. The authors also test dialogue comprehension on DREAM and mathematical word problems on AQuA-RAT. Some conditions preserve the first letter or both end letters of a word. In the strongest condition, the shuffle can move letters at any position in every selected word, with the selection rate set to 100%.

Preserving both end letters helps several systems on the news benchmark. When those cues are removed and scrambling is applied throughout the text, GPT-4 stands out. On RealtimeQA sentence recovery at the 100% random scramble rate, it reduces the character edit distance to the original by 95.94% when prompted without demonstrations and by 96.45% when given demonstrations. On the zero-shot question-answering task at that same rate, its accuracy is 93.35%, compared with 97.69% with intact evidence. Its relative performance gain is 87.80%. That figure describes how much of the accuracy gap between randomly substituted evidence and intact evidence the system retains when the letters are shuffled.

GPT-4 also leads the comparisons under full scrambling on DREAM and holds up better than the other systems tested on scrambled AQuA-RAT questions. The results still vary by task and question type, with arithmetic questions on DREAM particularly sensitive to the disruption. Together, the experiments show that GPT-4 can frequently restore wording or extract enough information to answer even after a heavy shuffle. They leave open how it does so and whether the same ability extends to damage that changes which letters are present.

## Deep dive: Unnatural Error Correction: GPT-4 Can Almost Perfectly Handle Unnatural Scrambled Text

Scrambled Bench tests how well GPT-4 and other systems restore words with shuffled letters and answer questions from scrambled text. · about 30 minutes to read

**In this deep dive**

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

### The problem and its context

#### What changes when letters move

Scrambling letters within words disrupts one kind of order while preserving another. The words still occupy their positions relative to one another. Within a scrambled word, its letters can occupy unfamiliar positions, but the original collection of letters is still available. The rest of the sentence can also provide clues. A recovery system has to bring those sources of information together if the word in isolation admits more than one reading.

This makes letter scrambling a way to test what can be recovered from a damaged written form. The damage is severe from the perspective of a system that normally receives recognizable pieces of words. An intact word may be represented by a familiar token or sequence of tokens. Its scrambled version can have a different division into pieces, so preserving letters in the written string does not guarantee that the corresponding token sequence preserves familiar units. The paper illustrates this by showing token boundaries on both versions of a news sentence. The breakpoints in the scrambled version differ visibly from those in the original, even though the corruption operates inside words. [Subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/)

A benchmark of this kind therefore tests more than tolerance of unfamiliar spellings. It asks whether a system can get from an unfamiliar token sequence to a plausible interpretation of what was written. There are several possible routes to the same correct response. A system could use evidence from a recognizable word fragment, from the letters spread across fragments, or from the surrounding sentence. Different items can reward different combinations of clues. The tests observe the response after all those sources of information have had a chance to contribute.

The authors introduce the problem through the familiar observation that people can sometimes read words whose interiors have been rearranged. They use the term *typoglycemia* as an illustration and explicitly distinguish the internet meme from established evidence. They also cite cognitive work on how letter positions affect recognition. The relevant point for their design is that a scramble leaving both ends of a word intact offers cues that an unrestricted shuffle can remove. The benchmark carries that distinction into experiments on language systems without conducting a comparison with human readers.

#### What earlier perturbation studies tested

The paper situates the experiment alongside studies that deliberately change an input and observe whether performance changes. It discusses work by Sinha, Pham, Abdou and their colleagues on altering the order of words or pieces of words. In some downstream tasks, systems proved less sensitive than expected to reordered words. A system could sometimes reach the expected judgment even after the original sentence structure had been disrupted. Cao and colleagues take this as reason to examine carefully what a successful task response establishes about the linguistic cues behind it. [UnNatural Language Inference](https://md.research.elamur.ai/free/en/papers/sinha-2021-unnatural-language-inference/) · [Out of Order](https://md.research.elamur.ai/free/en/papers/pham-2021-out-order-how-important-is/)

Reordering words and shuffling letters ask different questions. At the word level, the pieces can remain recognizable after they move. The experiment then probes how much their order matters for a task. At the character level, the sentence can retain its sequence of word locations while the words themselves become hard to recognize. This puts pressure on the link between the text as written and the pieces the system receives. Earlier research about reliance on word order motivates that question, but its results concern a different intervention. [Masked Language Modeling and the Distributional Hypothesis](https://md.research.elamur.ai/free/en/papers/sinha-2021-masked-language-modeling-distributional-hypothesis/)

The authors also place their tests beside studies of robustness to perturbed prompts and unusual inputs. Their comparison of prior work distinguishes the unit being changed, whether the change resembles a natural writing error, and what happens to tokenization. A local transposition or a missing character can disrupt the representation of an individual word. An unrestricted shuffle applied throughout a passage can impose that kind of disruption repeatedly, including at positions frequently preserved in gentler variants. The paper presents extensive within-word permutations as the part of this design space it sets out to investigate. [On the Robustness of ChatGPT](https://md.research.elamur.ai/free/en/papers/wang-2023-robustness-chatgpt-adversarial-out-distribution/) · [PromptRobust](https://md.research.elamur.ai/free/en/papers/zhu-2023-promptrobust-towards-evaluating-robustness-large/)

The objective also differs from the spelling correction work the paper discusses. A spelling correction study can train a system to recognize and repair a particular class of errors. Here the authors want to find out what existing systems can already do when asked to work with deliberately scrambled input. Some prompts show them demonstrations, but the study does not fit a correction system on the benchmark. This distinction keeps the observed performance tied to the tested systems and prompting conditions. [Grammatical error correction and learner language](https://md.research.elamur.ai/free/en/topics/grammatical-error-correction/)

BigBench offers a closer comparison because it includes word unscrambling. As Cao and colleagues describe it, that task presents an isolated common word. Scrambled Bench supplies sentences and passages, where the words can constrain one another. A sequence of scrambled forms imposes a heavier reading burden, but a full sentence also supplies clues unavailable in an isolated puzzle. The authors want to measure the resulting ability to recover connected text and use it in another task. [Beyond the Imitation Game](https://md.research.elamur.ai/free/en/papers/srivastava-2022-imitation-game-quantifying-extrapolating-capabilities/)

#### Why ask for a reconstruction and an answer

A direct request to undo the shuffle has the advantage of making the original text available as a reference. It also imposes a particular instruction and output format. A system might recognize enough of the sentence to know what happened but respond with a paraphrase, leave an uncertain word unresolved, or simply fail to follow the unusual instruction. All of these can worsen its measured recovery. A second task can ask whether the same sort of damaged input still supports a familiar response.

The paper chooses multiple-choice questions for that second role. Answering one requires enough understanding to choose among the available alternatives. It can therefore expose useful comprehension that a strict reconstruction score would miss. But an answer is a much narrower observation than a reconstructed sentence. A system can find the relevant phrase and leave most of the passage unresolved. An answer may also be accessible from the question and choices themselves. The authors build comparisons with different versions of the supporting text to help interpret success on [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/).

The two tasks make different parts of performance visible. A long reconstruction provides many places where the output can be checked against the source. A multiple-choice answer tests whether the system can extract and use the information the item demands. This is particularly relevant when that information is distributed across a dialogue or embedded in the wording of a math problem. The benchmark is designed to find out whether severe scrambling defeats both abilities or affects them differently.

### The method, step by step

#### Choose the material to scramble

The authors start with existing examples that already contain an original text or an expected answer. This lets them change the input while keeping a stable target. For recovery, the intact text serves as the reference against which the output is scored. For question answering, the original answer remains the target across variations of the evidence, dialogue or question. The setup therefore changes what a system can read while leaving the task's definition in place.

The main source is RealtimeQA, which releases questions about recent news on a weekly basis. The authors are concerned that a system could appear good at recovery by reproducing a passage it had already encountered. They select a recent collection in the hope that the events and their accompanying evidence are less likely to have been memorized. They use the evidence associated with the news questions as the source material for both tasks. The recovery prompt asks for that text back. The question-answering prompt uses a version of it to support a choice. [RealtimeQA](https://md.research.elamur.ai/free/en/papers/kasai-2022-realtime-qa-s-answer-right/)

For DREAM, the text to scramble is the dialogue. The question and its answer choices tell the system what to look for, and the dialogue is where it must look. The authors use items with existing question categories so they can examine outcomes for different kinds of comprehension. A dialogue can require the reader to connect statements made across turns, whereas the news evidence is often more compact. The underlying change is still a shuffle within words. [DREAM](https://md.research.elamur.ai/free/en/papers/sun-2019-dream-challenge-data-set-models/)

For AQuA-RAT, the question itself contains the information needed to solve the problem, so the authors scramble its wording. They can do this to the test problem, to the questions in the worked demonstrations, or to both. The demonstrations still supply readable answers and solution steps. This yields a different test from changing a news passage while keeping the question clean. The system has to interpret the damaged language to determine what calculation or relation the question asks about. [Program Induction by Rationale Generation](https://md.research.elamur.ai/free/en/papers/ling-2017-program-induction-rationale-generation-learning/)

How Scrambled Bench builds and scores test inputs The steps in order.

#### Change the positions of letters

The random scramble condition, abbreviated RS, selects a fraction of the words in a sentence and shuffles the letters of each selected word. The tested selection rates are 20%, 50% and 100%. Arabic numerals are kept in place under the random scrambling procedure. At 20%, surrounding intact words can give the damaged words context. At 100%, every eligible word can be affected, and letters at the beginning and end are free to move. A random shuffle can leave a letter in its initial position, so the rate refers to word selection and does not count the characters that actually end up somewhere new. Where the paper uses RS without a rate, it means the 100% version.

Keep First, or KF, fixes the initial letter and shuffles the remaining letters of the word. Keep First and Last, or KFL, fixes the letters at both ends and shuffles the interior. These conditions preserve more visible cues to the identity of individual words. They also constrain the amount of change the shuffling can cause. A short word with both ends fixed may have too little room for its interior to change at all. For a longer word, the interior can still look unfamiliar while the two endpoints remain available.

These choices produce two different comparisons. The rate comparison varies how much of a passage is exposed to unrestricted shuffling. The scrambling-type comparison varies which positions a shuffle can touch. An input with many fully intact words gives the system islands of recognizable text. An input with recognizable first and last letters can instead give partial clues throughout. Both may be easier than unrestricted shuffling everywhere, but they preserve different information.

The procedure also retains properties that matter when interpreting the strongest condition. It does not shuffle complete words out of position. A word retains its length and its inventory of letters under permutation. In RealtimeQA and DREAM, the question and answer options remain readable while the evidence or dialogue changes. In AQuA-RAT, the digits and the readable answer choices can carry information even when the prose surrounding them is damaged. The benchmark makes the written form unfamiliar in a controlled way while retaining the underlying item and its answer.

#### Ask for the response directly

Scrambled Sentence Recovery, or ScrRec, presents the damaged sentence as a text to be restored. In the zero-shot condition, the prompt gives the task and the target input without showing completed examples. In the few-shot condition, the prompt also contains examples pairing scrambled text with its original form. This use of examples in the prompt is [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/). The authors use 3-shot prompts for RealtimeQA recovery, drawing the demonstrations from [WikiQA](https://md.research.elamur.ai/free/en/papers/yang-2015-wikiqa-challenge-dataset-open-domain/).

An example in the paper makes the difference between the two recovery prompts concrete. The target text is a news passage about potentially contaminated infant formula that had reached stores despite a recall. In the zero-shot prompt, the request to restore the passage is followed by the damaged evidence. In the few-shot prompt, completed restorations of unrelated text appear before that same target. In both examples the output restores the news passage. Because the demonstration topics differ from the target, their role is to show the operation and the expected format. They supply no reference wording for the news item itself.

In Scrambled Question Answering, or ScrQA, the system can respond with an option rather than reproducing the evidence. For the infant formula item, the model is asked which kind of product reached stores, and the options name different kinds of food. It picks the option for infant formula on the basis of the damaged passage. A correct response establishes that the system identified the product for that item. The response provides no word-by-word record of what else it recovered.

The news and dialogue question-answering experiments use zero-shot prompts. In AQuA-RAT the authors show worked examples first. The few-shot chain-of-thought setup presents reasoning steps leading to the answer and asks the system to solve the test problem in that format. The authors use a 4-shot setting and vary the scrambling applied to the question portion of the demonstrations. The solution text in those demonstrations remains readable. [Chain-of-Thought Prompting](https://md.research.elamur.ai/free/en/papers/wei-2022-chain-thought-prompting-elicits-reasoning/)

No task-specific training on the scrambled examples is part of this procedure. The paper mentions a code release under the name `unnatural-error-correction`. The recovery examples, the alternative evidence conditions and the worked math prompts together specify what the benchmark changes at evaluation time.

#### Measure how much of the text was recovered

The basic recovery measure is edit distance, abbreviated ED. It quantifies the character changes needed to turn one string into another. The paper reports the average distance between the recovered output and the original text. A smaller distance means a closer match. Because one scrambling condition can produce much more initial damage than another, the authors also want a measure of how much of that damage the system repaired.

Recovery rate, or RR, measures the share of the initial edit distance removed by the reconstruction. This is the reduction convention used to interpret the reported results.

```
RR = (Σᵢ₌₁ⁿ ED(oriᵢ, scrᵢ) − Σᵢ₌₁ⁿ ED(oriᵢ, recᵢ)) / Σᵢ₌₁ⁿ ED(oriᵢ, scrᵢ)
```

RR is the recovery rate and ED is the edit distance between the two strings in parentheses. The index i identifies an example, and n is the number of examples being scored together. The summation symbol Σ means to add the distances across those examples, beginning with the first and ending with example n. The string oriᵢ is the original reference for instance i. The string scrᵢ is the scrambled input, and recᵢ is the system's reconstruction. The subtraction finds how much of the total initial distance the output removed, and the division expresses that reduction relative to the same initial distance. The paper reports RR as a percentage.

A reconstruction with the same total distance as the scrambled input removes none of the damage by this measure. An exact recovery throughout the set removes all of it. A negative value means the generated texts, taken together, ended up farther from the reference than the scrambled inputs had been. The comparison thus includes a simple baseline available on every item, namely leaving the scrambled text as it was.

The aggregation is important. RR is a measure of character-distance reduction over a collection. Examples with more initial distance contribute more to the total available reduction. A high RR can coexist with minor errors spread across many outputs, with a few badly recovered examples, or with a mixture of the two. The measure addresses how much text damage remains in aggregate. A separate exact-match statistic would be needed to count completely restored items.

#### Measure how much usable evidence survives

Accuracy is the share of questions for which the system picks the correct answer. It is the basic question-answering outcome. The authors also want to compare systems that differ in how well they answer from clean text and how much they can accomplish when the supporting material has been heavily damaged. They therefore use a separate evidence condition in which eligible letters are randomly substituted. Substitution breaks the connection between the original word and the collection of letters in the damaged form. The question and choices can still support a correct response in some cases.

The authors use these conditions as empirical reference points. Accuracy with intact evidence anchors the upper end of the comparison. Accuracy with substituted evidence anchors the lower end. The scrambled condition falls between them in the usual case. Relative performance gain, or RPG, locates it on that interval.

```
RPG = (Accₛ꜀ᵣ − Accₛᵤᵦ) / (Accₒᵣᵢ − Accₛᵤᵦ)
```

RPG is relative performance gain. Acc denotes accuracy, and the subscripts distinguish the evidence variants. The subscript scr refers to scrambled evidence, sub to evidence with randomly substituted letters, and ori to the original evidence. In the numerator, the subtraction measures the accuracy advantage of scrambled evidence over substituted evidence. In the denominator, it measures the advantage of intact evidence over substituted evidence. Dividing those quantities expresses the first advantage as a share of the second. The paper reports that share as a percentage.

The intact and substituted values mark the ends of the scale by construction. Their role is similar to establishing a reference interval for each system and evaluation set. They are empirical anchors, so a scrambled condition can occasionally score beyond them. An accuracy above the intact condition produces an RPG above the upper endpoint. An accuracy below the substituted condition produces a negative value. Such a score describes a comparison with the references and does not by itself explain why the ordering occurred.

For RealtimeQA and DREAM, the paper reports both raw accuracy and RPG. The raw figure describes how often the system gets the answer right. RPG describes how much of the advantage associated with clean evidence is retained under scrambling. The AQuA-RAT comparison uses accuracy for each combination of demonstration and test-question conditions.

### Experiments and results

#### Evaluation sets and systems

The RealtimeQA collection covers 2023/03/17–2023/08/04 and starts with 419 samples. For sentence recovery, the authors remove a duplicate evidence text, leaving 418 samples. For question answering, they manually remove 73 items whose evidence they judge insufficient to answer the associated question. The resulting question-answering set contains 346 samples. The filtering fits the experiment's purpose. If the clean evidence cannot support an answer, scrambling it offers a poor test of whether a system can read the relevant information through the damage.

The DREAM experiments use 1025 items with question-type annotations selected from the development and test sets. The reported evaluation pools the selected items and also breaks out results by category. On AQuA-RAT, the comparisons use the 4-shot chain-of-thought setup. That experiment varies demonstration and test-question scrambling separately. Its comparison is limited to GPT-4, GPT-3.5-turbo and text-davinci-003 because the authors found the intact questions already too demanding for most of the open systems they considered.

The principal RealtimeQA and DREAM analyses feature GPT-4, GPT-3.5-turbo, text-davinci-003, Falcon-180b and Llama-2-70b. The authors use the GPT-4-0314 and GPT-3.5-turbo-0301 releases. The broader evaluation includes Falcon and Llama variants, as well as systems from the MPT, UL2 and T5 families. It covers decoder-only and encoder-decoder architectures and includes ByT5-xxl, which the paper describes as tokenizer-free. These systems provide a varied comparison of observed robustness under the same input transformations. [GPT-4 Technical Report](https://md.research.elamur.ai/free/en/papers/openai-2023-gpt-4-technical-report/) · [Llama 2](https://md.research.elamur.ai/free/en/papers/touvron-2023-llama-2-open-foundation-fine/)

The largest Falcon variants in the comparison, Falcon-180b and Falcon-180b-chat, are run with quantized loading. The authors flag that choice as a possible influence on their scores. The evaluated systems also differ in training objectives, tuning and input representations. Their rankings describe the systems as tested, with the implementation choices that accompany those runs. [QLoRA](https://md.research.elamur.ai/free/en/papers/dettmers-2023-qlora-efficient-finetuning-quantized-llms/)

#### Sentence recovery on recent news

At the 100% random scramble rate, GPT-4's zero-shot outputs have an average edit distance of 5.47 from the original texts on the RealtimeQA recovery set. That is a recovery rate of 95.94%. With 3-shot demonstrations, the average edit distance is 4.79 and the recovery rate is 96.45%. In both cases GPT-4 removes most of the distance introduced by the scramble. The scores also leave room for residual differences between the outputs and the references.

The same input condition reveals a wide spread among the other systems. GPT-3.5-turbo reaches a zero-shot recovery rate of 77.88% on RealtimeQA at the 100% rate, while text-davinci-003 reaches 18.61%. Falcon-180b and Llama-2-70b have negative recovery rates in that setting. For those systems, producing a reconstruction leaves more distance to the original than the initial scrambled input had. The result helps distinguish weak repair from generation that compounds the distance being measured.

Average edit distance on few-shot RealtimeQA sentence recovery at 100% random scrambling GPT-4 reconstructs the news evidence much more closely than the other systems in the comparison.

**The numbers**

| System or setting | average edit distance |
| --- | --- |
| GPT-4 (this paper) | 4.79 |
| GPT-3.5-turbo | 36.87 |
| text-davinci-003 | 84.39 |
| Falcon-180b | 116.73 |
| Llama-2-70b | 169.85 |

In few-shot recovery at the same rate, GPT-3.5-turbo records a recovery rate of 72.63%, text-davinci-003 records 37.35%, and Falcon-180b records 13.34%. Llama-2-70b remains below the scrambled-input baseline. The few-shot condition therefore changes how effectively some systems respond, and it does so in different directions. It does not bring the comparisons close to GPT-4's result on the all-words scramble.

Responses are closer to the originals across several systems when both outer letters stay fixed. In zero-shot RealtimeQA recovery under KFL, GPT-4 reaches 96.66% RR and GPT-3.5-turbo reaches 90.82%. Falcon-180b reaches 82.72%, while text-davinci-003 reaches 82.41%. The result matters for the overall comparison because performance on the gentler condition gives only a partial picture of how the same systems behave when the first and last letters can move.

#### Answering questions from scrambled news evidence

With original RealtimeQA evidence, GPT-4 answers correctly on 97.69% of the selected zero-shot question-answering items. Its accuracy with substituted evidence is 62.14%. The substituted score shows that many questions remain answerable in that prompt configuration even when the evidence has been severely damaged. With 100% randomly scrambled evidence, GPT-4 achieves 93.35% accuracy and an RPG of 87.80%. The higher accuracy over the substituted condition indicates that preserving letters in shuffled form retains information the system can use.

GPT-3.5-turbo starts close to GPT-4 on original evidence, with 97.11% RealtimeQA zero-shot accuracy. Under 100% random scrambling it reaches 81.79% accuracy and 65.58% RPG. Text-davinci-003 reaches 77.46% accuracy and 57.78% RPG in the same scrambled condition. These results show that successful answering survives substantial damage in several systems, with GPT-4 retaining the largest share of its clean-evidence advantage among the highlighted comparisons.

Relative performance gain on zero-shot RealtimeQA question answering at 100% random scrambling GPT-4 retains the largest share of the accuracy advantage associated with intact evidence.

**The numbers**

| System or setting | RPG % |
| --- | --- |
| GPT-4 (this paper) | 87.80 |
| GPT-3.5-turbo | 65.58 |
| text-davinci-003 | 57.78 |
| Falcon-180b | 28.42 |
| Llama-2-70b | 34.26 |

Falcon-180b and Llama-2-70b illustrate why the authors study answering as well as recovery. Both fall below the zero-shot recovery baseline under the full random scramble. On the zero-shot RealtimeQA question-answering set, however, both answer more accurately from fully scrambled evidence than from substituted evidence. Llama-2-70b reaches 67.92% accuracy with the fully scrambled evidence. Falcon-180b reaches 65.03%. The two tasks use separately selected evaluation sets, but the contrast shows how useful information can survive at the level of the answer even for systems that restore the source poorly in the direct test.

The larger comparison also shows why original-text performance alone is an incomplete guide to robustness. Flan-UL2 has 98.55% zero-shot RealtimeQA accuracy with the original evidence. At the full random scramble rate its accuracy is 49.71%, with an RPG of 6.63%. GPT-4 has the lower of those two original-evidence scores and the much higher accuracy when the evidence is scrambled. The intact and scrambled conditions can therefore favor different systems on the same set of questions.

#### Reading scrambled dialogues

On the original DREAM dialogues, GPT-4 scores 96.68% overall in zero-shot question answering. It reaches 87.40% accuracy under 100% random scrambling, with an RPG of 81.52%. Its substituted-dialogue baseline is 46.48% accuracy. With the first and last letters preserved, it reaches 96.39% accuracy and 99.42% RPG. Its performance under KFL stays especially close to its original-dialogue result.

The other leading systems lose substantially more of their accuracy advantage under full scrambling. GPT-3.5-turbo starts at 92.48% accuracy with original DREAM dialogues and ends at 45.61% in the 100% random condition, where its RPG is 29.41%. Text-davinci-003 scores 52.44% accuracy and 17.74% RPG with the same scrambling. Falcon-180b reaches 55.37% accuracy and 9.89% RPG, and Llama-2-70b reaches 54.30% accuracy and 14.19% RPG. The different orderings by accuracy and RPG reflect the fact that the systems start from different original and substituted accuracies.

The authors suggest that DREAM may separate the systems more clearly because its longer inputs demand more involved comprehension. A reader may have to connect turns in a conversation or distinguish a literal statement from a plausible inference. This is a proposed explanation for the contrast with RealtimeQA. The benchmark does not hold the questions and evidence fixed while varying dialogue length alone. Its category analysis provides a more local view of the demands associated with weaker results.

#### Solving scrambled math problems

On AQuA-RAT, the clean demonstrations and clean test questions yield 66.93% accuracy for GPT-4, 52.76% for GPT-3.5-turbo and 46.85% for text-davinci-003 in the 4-shot condition. Keeping those demonstrations clean and fully scrambling the test questions leaves GPT-4 with 64.17% accuracy. GPT-3.5-turbo scores 29.92% and text-davinci-003 scores 26.77%. GPT-4 thus retains most of its accuracy in that comparison, while both other systems lose a substantial share of theirs.

AQuA-RAT answer accuracy with clean demonstrations and 100% randomly scrambled test questions GPT-4 solves more of the scrambled problems than either of the other systems tested in this setting.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| GPT-4 (this paper) | 64.17 |
| GPT-3.5-turbo | 29.92 |
| text-davinci-003 | 26.77 |

When the demonstration questions and the test questions are both fully scrambled, GPT-4 has 60.24% AQuA-RAT accuracy. GPT-3.5-turbo has 35.04% and text-davinci-003 has 28.35%. The demonstration solutions remain readable. This condition therefore tests whether a worked prompt remains usable when the wording of the problems it illustrates is damaged, along with the wording of the problem to be solved.

The strongest AQuA-RAT result concerns relative stability under a change to the question. The clean-task scores already show that these items can be difficult even before scrambling. Accuracy combines the ability to read the problem, select an approach, carry out the reasoning and give the appropriate choice. GPT-4's relatively stable score indicates that the wording change did comparatively little additional damage in the tested conditions. The absolute scores leave substantial room for errors in solving the problems.

### What the ablations show

#### Keeping letters at the edges

The paper varies inputs and prompts while leaving the evaluated systems in place. Its controlled comparisons therefore address which features of the input make the tasks easier or harder. They do not switch off training procedures or components inside a system. The closest evidence about why performance changes comes from preserving particular letters, changing the amount of scrambled material and observing which tasks lose accuracy.

In RealtimeQA zero-shot recovery, GPT-3.5-turbo reaches 90.82% RR with KFL, 86.39% with KF and 77.88% with the 100% random scramble. Text-davinci-003 reaches 82.41%, 70.45% and 18.61% RR in those respective conditions. The shared pattern is that preserving outer letters is associated with better recovery. The difference is much more pronounced for text-davinci-003 when the initial letter becomes movable as well. GPT-4's corresponding recovery rates are 96.66%, 95.99% and 95.94%, indicating much greater stability across the three conditions.

This comparison tests the benefit of edge preservation as a package. KFL makes some short words unchanged and constrains the possible shuffle of longer words. KF also changes the amount of displacement that can occur. Fixing a letter provides a cue to position and makes the corruption less extensive. The experiment supports an effect of retaining word edges under these conditions. It cannot assign the benefit uniquely to recognition of a specially important letter position.

In RealtimeQA zero-shot question answering, GPT-4 achieves 95.66% accuracy with KFL evidence and 93.35% with KF evidence, the latter matching its accuracy with the full random scramble. GPT-3.5-turbo scores 93.06% with KFL, 88.44% with KF and 81.79% with the full random scramble. The preservation rules are more consequential for that comparison system. The tie between two GPT-4 conditions is an aggregate outcome. Individual questions could still be answered differently in those conditions.

#### Changing how much text gets scrambled

The rate comparison gives a different view of contextual support. A partially scrambled passage can retain familiar words at intervals. A fully scrambled passage asks the system to contend with more unfamiliar strings at once. On RealtimeQA zero-shot recovery, text-davinci-003 records 44.52% RR at the 20% random scramble rate, 52.96% at 50% and 18.61% at 100%. Its results at the lower two rates are not a monotonic sequence. The strongest condition is where the degradation is clear.

GPT-4 records 93.76%, 95.89% and 95.94% zero-shot recovery on RealtimeQA at those same rates. These rates are relative to the amount of initial corruption, which changes with the input condition. Its average residual edit distances at the respective rates are 1.69, 2.78 and 5.47. It leaves more distance to the reference in absolute terms as exposure increases, while removing a greater share of the initial distance at the higher rates. The two measures convey different aspects of recovery.

On the RealtimeQA zero-shot answering task, GPT-4's RPG is 99.19% at 20% scrambling, 97.56% at 50% and 87.80% at 100%. Falcon-180b reaches 91.58%, 77.89% and 28.42% at those rates. An intact word in a partly scrambled passage can convey the detail that decides a multiple-choice question or help disambiguate the words next to it. The study's aggregate comparison shows how answer performance changes as those intact contexts become less available. It does not locate which words in each item were decisive.

#### Varying demonstrations

The RealtimeQA recovery prompts let the authors see whether examples of the requested transformation help. At the 100% random scramble rate, Falcon-180b has negative zero-shot RR but reaches 13.34% in the 3-shot condition. Text-davinci-003 improves from 18.61% to 37.35% RR. GPT-3.5-turbo scores 77.88% without demonstrations and 72.63% with them. Demonstrations can help systems respond to the recovery request, but these comparisons give no basis for treating them as a uniform benefit. GPT-4's strong zero-shot result also shows that demonstrations are unnecessary for its high recovery in this setting.

AQuA-RAT separates readable examples from a readable test problem. With original test questions, GPT-4's accuracy is 66.93% with original demonstration questions and 70.08% with 100% scrambled demonstration questions. The stronger score in the latter cell is an observed outcome for that set of inputs. The worked answers are intact throughout, so this comparison does not show what would happen if the explanations were damaged too. It does show that the mere presence of scrambled example questions does not necessarily impose a substantial penalty.

For GPT-3.5-turbo, original AQuA-RAT test questions with fully scrambled demonstration questions yield 54.72% accuracy. Fully scrambling the test questions with the demonstration questions in that same condition yields 35.04% accuracy. This is consistent with the authors' emphasis on the wording of the test question as the more consequential source of difficulty. The test question determines which problem must be solved, while the demonstrations can still supply useful worked answers and a recognizable response format.

#### Breaking down dialogue questions by type

The DREAM annotations separate arithmetic, commonsense, logic, matching and summary questions. GPT-4's overall zero-shot RPG at 100% random scrambling is 81.52%. On arithmetic questions at that rate, GPT-4 reaches 30.00% RPG. On matching questions it reaches 87.50%, and on summary questions it reaches 86.42%. The corresponding raw accuracies under full scrambling are 45.65% for arithmetic, 92.59% for matching and 90.08% for summary questions. The strong overall result covers markedly different outcomes within the same evaluation.

Part of that difference already exists with clean dialogues. GPT-4's original-dialogue accuracy is 76.09% for arithmetic and 99.07% for matching. Their RPG scores show that the difference under scrambling extends beyond the lower arithmetic starting point. On arithmetic, the substituted-dialogue accuracy is 32.61%. The resulting interval is specific to that category and evaluated system. Comparisons across categories therefore benefit from reading the original, scrambled and substituted results together.

The category scores also illustrate that the reference interval is empirical. On DREAM arithmetic, GPT-4 scores 78.26% accuracy at the 20% random scramble rate, slightly above its 76.09% accuracy with intact dialogues. The paper reports an RPG of 105.00% for that category and condition. This is compatible with the definition of RPG because the scrambled accuracy exceeds the intact reference. A single result of this kind does not establish that scrambling helps arithmetic. In the harsher conditions the arithmetic results deteriorate.

The DREAM analysis gives a more precise account of where robustness falters, but the categories are collections of different questions. They do not hold the wording, dialogue length or distribution of clues constant. The study provides evidence that arithmetic items were relatively vulnerable in this evaluation. It leaves open whether the important factor was locating the quantities, recovering the relations among them, carrying out the calculation, or some combination of these demands.

### Limitations

#### Limits stated by the authors

The authors restrict their conclusions to changes in letter order. Scrambling retains the letters a word originally had. Insertions, deletions and substitutions would change the information available for reconstruction. Though randomly substituted evidence appears in the question-answering comparisons, its role is to anchor a relative metric. The paper does not run a parallel recovery study that varies the amount or placement of substituted letters the way it varies permutations.

The empirical scope is also limited to RealtimeQA, DREAM and AQuA-RAT. They give the benchmark examples of news evidence, dialogues and mathematical problems. The task designs could be applied elsewhere, but the reported results come from those settings and prompts. The authors identify broader evaluation as an open direction. Success in the chosen settings does not determine how well the same systems would handle unfamiliar domains or other forms of written corruption.

The paper also emphasizes that the experiments reveal behavior without identifying its internal cause. The authors had limited access to the closed systems and lacked details including GPT-4's exact size. They suggest that denoising-like objectives, exposure to error-filled training text or an ability associated with scale could contribute. The study varies none of those potential causes in a controlled training experiment. Those explanations therefore remain hypotheses. [Emergent Abilities of Large Language Models](https://md.research.elamur.ai/free/en/papers/wei-2022-emergent-abilities-large-language-models/)

The reported comparison with Falcon warrants an additional qualification the authors state explicitly. Falcon-180b and Falcon-180b-chat were run with quantization, which they say could have affected performance. Since the paper does not show a corresponding comparison that changes only the loading method, it cannot establish how much of the observed gap is associated with that choice. The same general constraint applies to comparisons among systems with different architectures, training and tuning histories.

#### Limits that follow from the setup

The 100% condition describes the selection of eligible words for shuffling. It still preserves the underlying order of word positions, word lengths and letter inventories. Numerals are retained in the random scramble. Very short words cannot realize many distinct permutations, and a shuffle can leave some positions unchanged. These constraints matter because they supply evidence for reconstruction even under the strongest tested condition. A reader should understand the severity in terms of the transformation actually applied.

The role of context is visible in the design, but its contribution is not isolated. The word unscrambling comparison in BigBench motivates using sentences. Scrambled Bench does not offer a matched evaluation in which the same words are recovered both in isolation and in their original sentences. A good recovery may reflect some balance of within-word clues and contextual prediction. The experiments cannot say how much each contributed to GPT-4's accuracy or whether the balance shifts systematically as the text becomes more distorted.

The same distinction applies to tokenization. The illustrated token boundaries establish that an example changes considerably when it is scrambled. The study does not manipulate the tokenizer while holding training, architecture and all other settings fixed. ByT5-xxl adds variety to the comparison, but its behavior cannot isolate tokenization from the rest of the system's design. The evidence supports a behavioral claim about successful reading after tokenization changes. It leaves the mechanism open.

The recovery metric also has a precise scope. A high percentage reduction in edit distance can leave disagreements with the original wording. The paper does not report the fraction of RealtimeQA outputs that are exact matches in the main recovery results. Near-perfect recovery describes the small amount of edit distance left relative to the initial damage. It does not establish that almost every sentence was restored in full. Conversely, a paraphrase that preserves the meaning can still be distant from the reference, so the metric does not measure semantic equivalence directly.

Question answering has complementary ambiguities. A correct choice can come from the decisive phrase alone, from a reasonable inference using partial evidence, or from information in the question and choices. The non-zero accuracies in the substituted-evidence condition make that last possibility concrete. The substituted prompt is also still a prompt containing a damaged evidence field. It does not directly measure performance with the field omitted. RPG corrects for differences relative to the observed substituted and intact conditions, but cannot identify the information used on any particular item.

AQuA-RAT brings a further distinction between recognizing a problem and solving it. An appendix response to a scrambled train problem identifies the relevant journey segments and speeds but gives inconsistent arithmetic on the way to its selected option. The example shows how interpretable problem wording and a flawed solution can coexist in the same response. An answer score combines errors of reading, calculation and choice. The study does not assign its AQuA-RAT failures to those stages individually.

The RealtimeQA collection strategy reduces a specific contamination concern without testing it directly. Selecting recent news items is meant to lower the chance that the systems encountered the exact evidence during training. The authors do not compare each passage against the training material, which they cannot fully inspect for the closed systems. Recent dates therefore support the choice of evaluation material but cannot establish the provenance of a correct reconstruction. The consistent answer targets and duplicate removal make the dataset easier to interpret for their intended purposes.

Filtering the question-answering set also determines what its scores represent. The retained RealtimeQA items are ones the authors judge answerable from the evidence supplied. This makes clean evidence a meaningful comparison point. It also means that the reported accuracy represents that selected set, where the supporting text is intended to contain enough information. The experiment does not evaluate a system's ability to detect that an evidence passage is insufficient.

Finally, the paper's analogy with human reading motivates the edge-preserving conditions. It supplies no human recovery or question-answering scores measured on the same materials and under the same conditions. As a consequence, the results establish a comparison among the tested systems. They do not establish a comparative advantage over human readers or show that similar outward success comes from the same process.

### What came after

Later citing work connects the paper to three different questions about language processing. The connections concern the order in which information appears, how a correction is evaluated, and which parts of a context are useful. The citation in each case establishes that the later work refers to Cao and colleagues. The specific role of Scrambled Bench in those later experiments is unspecified.

#### Order at the level of premises

Chen and colleagues examine the order of premises in [Premise Order Matters in Reasoning with Large Language Models](https://md.research.elamur.ai/free/en/papers/chen-2024-premise-order-matters-reasoning-large/). This extends the question about sensitivity to ordering to a different unit. A premise supplies information for a reasoning problem. Changing premise order concerns when that information appears relative to the rest of the problem, whereas Cao and colleagues move letters within written words. The connection is that both research questions distinguish the information present in an input from its arrangement. In the premise-order setting, the information can remain readable while its position in the reasoning context changes. [Reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/)

#### Explanations at the level of edits

Ye and colleagues introduce [EXCGEC](https://md.research.elamur.ai/free/en/papers/ye-2024-excgec-benchmark-edit-wise-explainable/), a benchmark for explainable Chinese grammatical error correction at the level of individual edits. Its focus is pertinent to how evidence of correction is recorded. Scrambled Sentence Recovery compares a complete reconstruction with its original and measures the remaining distance. An edit-wise explanation concerns individual changes, making the correction itself an object of analysis rather than capturing only the quality of the final string. These studies address different sources of language damage. One concerns artificial letter permutations, and the other concerns corrections to Chinese grammar and explanations of those changes.

#### Preserving useful information in a shorter context

Shi and colleagues study [Concept rather than Document](https://md.research.elamur.ai/free/en/papers/shi-2026-concept-rather-than-document-context/), which frames context compression in terms of concepts and uses AMR-based conceptual entropy. Here the connection is to Scrambled Question Answering and the information available after a text transformation. Scrambled Bench retains letter material while changing its order. A concept-based compression problem asks which material to retain when reducing a context. These are different operations, but they give rise to a related evaluation question. If the downstream answer survives, what part of the supplied information was sufficient to support it? In Cao and colleagues' study, the contrast between restored wording and correct choices shows why that question needs a measure of task performance alongside a measure of fidelity to the source.

## Cite

Cite as Qi Cao, Takeshi Kojima, Yutaka Matsuo and Yusuke Iwasawa. 2023. Unnatural Error Correction: GPT-4 Can Almost Perfectly Handle Unnatural Scrambled Text. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing.

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

```bibtex
@inproceedings{cao2023unnatural,
  title = {{Unnatural Error Correction: GPT-4 Can Almost Perfectly Handle Unnatural Scrambled Text}},
  author = {Qi Cao, Takeshi Kojima, Yutaka Matsuo and Yusuke Iwasawa},
  booktitle = {Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.550},
  url = {https://doi.org/10.18653/v1/2023.emnlp-main.550}
}
```

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