Understanding the Role of Input Token Characters in Language Models: How Does Information Loss Affect Performance?
Paper · 2023 · Ahmed Alajrami, Katerina Margatina and Nikolaos Aletras
Summary
How much of a word’s spelling does a language model need to learn from text? Alajrami and colleagues test this by training systems on English sentences in which each word is represented by a fragment of its spelling. In the most restrictive versions, a word contributes only its first, middle, or last character. Different words can then look identical, but they still occupy separate positions in the sentence. The authors compare these systems with one trained on whole words. They ask both how well the systems can adapt to standard natural language understanding tasks and what linguistic features can be recovered from their learned representations.
The authors train variants of BERT on BookCorpus and English Wikipedia. They use the same character restriction during pretraining and task-specific fine-tuning, so the systems have to work with partial spellings even when they receive examples with task labels. With first characters alone, the average development score is 62.0 on GLUE, compared with 81.0 for whole words. On the six SuperGLUE tasks examined, the corresponding averages are 63.2 and 70.2. The paper describes these results as retention of about 77% and approximately 90%, respectively. The higher retention on SuperGLUE is relative to a lower full-token score.
Additional characters generally help, and their placement affects what the system can do. Word beginnings give better benchmark averages than word endings at the same character budget. Keeping both edges yields better benchmark averages than keeping a pair at either edge, and consonants give the strongest averages among the partial-spelling settings. The linguistic probes reveal a different pattern for some properties. On the tense probe, for instance, a classifier using representations from the last-character system reaches 84.1% test accuracy, while one using first-character representations reaches 63.4%.
The experiments show that severely reduced spellings can still support useful predictions when the system learns from that form of text throughout training. They also show why the amount of spelling removed and the amount of performance lost need separate measurements. Reduced words still occur in ordered sentences, different character positions preserve different cues, and supervised tasks can reward patterns that survive the transformation. The results describe what systems can learn under this restriction. They leave open which patterns account for each success and how far the findings extend beyond English and the architecture tested.
Deep dive: Understanding the Role of Input Token Characters in Language Models: How Does Information Loss Affect Performance?
Alajrami and colleagues test how much language understanding survives when pretraining and fine-tuning use only selected letters from each word. · about 33 minutes to read
The problem and its context
What is lost when words become harder to distinguish?
A word can contribute information through its identity, its spelling, and its position among other words. In ordinary text these sources come together. A system that receives a whole word can distinguish it from other words and observe where it occurs. If it sees only the initial letter, that letter still comes from the original word, and the sentence still has an ordered set of positions. But many distinct words now look alike. The paper studies what a system can learn when that ambiguity is a regular feature of the training data.
The question is more specific than whether less data makes for worse training. Reducing the number of sentences would take away opportunities to observe how words occur together. Reducing the spelling within each word changes what can be distinguished at each position while preserving much of the sequence in which those positions appear. The system can encounter the same passage under both conditions, yet the evidence available from any individual token differs. A token here is a unit produced by splitting the text. The study uses a word-oriented split so that first, middle, and last characters refer to positions within a word-sized unit.
There is also a difference between taking away spelling during training and doing so only after a system has learned from ordinary text. The first setup asks what representations can develop under a persistent restriction. The second asks how readily representations acquired under one input convention can adapt to another. This distinction matters because a large loss under a change of input could reflect both the information removed and the disruption of a familiar representation. The main experiments address learning under a persistent restriction, and an additional comparison addresses changing the input at fine-tuning.
The effect of taking a letter away also depends on which letter is taken away. Two fragments of the same length can group words in different ways. An initial fragment might distinguish some words that an ending groups together, while the ending preserves a clue to a grammatical property. Even a single common letter can be more informative when it is seen alongside neighboring fragments than when it is seen in isolation. These possibilities make it important to compare positions as well as lengths.
What earlier pretraining experiments varied
As the authors describe it, earlier research on pretraining data studied the volume of text available and how performance changes as the number of parameters grows. Work they discuss in connection with scaling laws makes data size part of the explanation for downstream performance. Another line of research asked whether the composition of the data matters. The paper describes studies, including the work on T5, that paid attention to the quality or relevance of pretraining material. These questions concern what text a system sees and how much of it is available. Alajrami and colleagues vary how much of the spelling survives within that text.
The paper also describes studies that changed the training task. Pretraining gives a system an initial prediction problem before it is adapted to a particular application or benchmark. In masked language modeling, the prediction problem is to recover hidden units from context. The authors discuss prior work that connects this objective to learning dependencies among tokens, along with work showing that other objectives can also yield useful representations. Some of those experiments use assignments that would be hard to interpret as ordinary language-learning exercises, such as grouping tokens into arbitrary classes and predicting the class. In the character experiments, several distinct words can also share a label, but the relationship is defined by a specific feature of the original spelling.
Other studies modified the structure or content of the training examples more drastically. The paper cites experiments that shuffled word order, as well as experiments using artificial languages with structural characteristics of natural language. It describes work on synthetic summarization tasks involving randomly selected character n-grams, and on transfer from training with music or code. It also discusses an experiment where semantically unrelated tokens share an embedding, the numerical representation associated with an input identity. These studies motivate asking which properties of training data are necessary for later predictions. Each manipulates a different property, so they give different reasons to consider the character restriction a question in its own right.
An experiment that shuffles words can preserve which words occur while changing their arrangement. The paper’s transformation deliberately makes some words indistinguishable while retaining their relative positions. Similarly, an artificial task with random character groups can show that learning transfers from an unusual source. It does not isolate whether the front or back of a word in ordinary English gives a better cue. Here the fragments come from the word they stand for, and the authors can ask whether concrete choices about what survives make a difference.
Why measure representations as well as task scores?
A benchmark score tells us whether a system can produce the required output after supervision on that task. It is harder to tell from the score which features of a sentence were available to it or which features it used. The paper situates this question in the literature on linguistic probing, an approach to interpretability that trains a classifier to predict a known property from a system’s representations. A probe might ask about the structure of a sentence or the grammatical number of its subject. Its accuracy measures how successfully that property can be predicted from the representations with the chosen classifier.
The authors cite earlier probes for syntactic structure and research on what BERT learns about linguistic structure. Their own question is how the recoverable properties change when the system sees just a fragment at each word position. That adds a controlled change to the input side of the experiment. A probe can compare representations learned from word beginnings with representations learned from word endings even when the two kinds of fragments are equally long.
Downstream scores and probes can therefore tell different stories. A benchmark average combines tasks that ask for different kinds of decisions. A targeted probe asks a narrower question with labels defined for a particular linguistic property. If the better spelling fragment varies between them, that is evidence that the usefulness of a fragment depends on the prediction being made. It is still possible for the probe to use a cue that is only indirectly related to the linguistic property. The paper’s design makes the difference in recoverability measurable even when the precise mechanism remains uncertain.
Why the authors look at edges, vowels, and consonants
The inspiration comes partly from psycholinguistics research on reading words with some letters obscured or displaced. The paper describes findings that the beginning and end of a word can have a special role in recognition. It notes explanations involving how readers access words in memory and how letters at the edges may be less affected by interference from surrounding letters. It also cites research comparing words with vowels missing and words with consonants missing.
The analogy motivates choices about which text to preserve. Taking the first and last characters keeps both boundaries. Taking the first pair or last pair keeps neighboring letters on a single side. Vowel and consonant filters choose characters according to their class, regardless of where they occur. Together these choices put several hypotheses into the same training framework. They also make the connection to human reading precise enough to investigate at the level of input conditions, even though the study measures the predictions of trained systems and contains no experiment with human participants.
The method, step by step
Start with the same word positions
The study begins with BookCorpus, associated with the books and movies corpus work, and English Wikipedia. The authors use the Hugging Face versions of the datasets. They lower-case the text in both sources, remove headers from Wikipedia, and obtain Wikipedia examples of at most 512 tokens. For BookCorpus, they join sentences while observing the same maximum of 512 tokens per example. The resulting pretraining data comprise 8.1M training examples.
The authors split the text at whitespace. This is the starting point for tokenization in every condition. Some special characters are filtered out, and numbers are assigned the special token <num>. The processed training data contain approximately 2.1B tokens. Whole-token input in this study therefore means retaining the token spellings available after the common preprocessing, with the vocabulary convention used for the full-token system.
The initial split is important because the experiment is designed around character positions within words. With subword tokenization, including byte pair encoding as used for rare words, a word can supply several shorter input units. Taking the initial character of each such unit would expose additional positions inside the original word and change the number of positions available to the system. Splitting first on whitespace lets the authors define one retained spelling per word-sized token. For the fixed-length selections, truncating that spelling gives one shorter token where the original token stood. Keeping a pair of letters thus creates a single token identity made from a pair. It does not move the letters into separate positions in the training sequence.
This makes the baseline easier to interpret. The reference system and the partial-token systems use the same source material and word-oriented split. When a token becomes ambiguous under a character selection rule, that ambiguity can be traced to the change of spelling. Whole-token BERT in this comparison is the reference the authors train themselves, with their data and vocabulary. The name of the architecture and the convention for dividing text into tokens describe different parts of the setup.
From English text to benchmark scores and linguistic probes
The steps in order.
Decide which characters each token contributes
The baseline, Token, uses the full spelling of a token. The partial conditions derive shorter spellings according to a deterministic rule. The most severe rules each retain a single character. F selects the opening character. The paper uses cat and computer to illustrate the collision this creates. Both become c, so their numerical input identity is the same wherever c is the result of the transformation. L selects the final character. M retains the character chosen by a middle index.
mid = token[⌊len(token) / 2⌋]
mid is the retained middle character, and token is the token spelling before the character restriction. len(token) is its length in characters. The / divides that length by 2, and ⌊ ⌋ rounds the result down to an integer index. The brackets [ ] select the character at that index, counting positions from the start of the token with zero-based indexing. The = assigns the selected character to mid.
The single-character settings preserve the position of the original word in its sentence while collapsing many distinct words into a small set of input identities. A sequence of these identities can still distinguish some contexts. It can also be identical for multiple sentences that would have been distinguishable with full spellings. Training can help the system respond to patterns that remain available, but the transformation puts a limit on what the visible input alone can unambiguously specify.
The settings that allow up to two characters give the authors a way to compare the value of placement at a fixed maximum length. FL joins the first and final characters. FF keeps the opening pair, and LL keeps the closing pair. A token already represented by a single character is also available in these settings. FL distinguishes the same opening letters when their final letters differ. FF does the reverse for some words, distinguishing different opening pairs even if the first and final characters match. This is why comparing FL with FF is a test of two specific ways of grouping words, even though neither is given a larger character budget.
The same principle applies to the three-character settings. FML retains the opening, middle, and closing characters. FFF retains the opening three, and LLL retains the closing three. The authors also include tokens originally containing just one or two characters in these vocabularies. Some inputs are thus already short enough to survive without losing letters. The set of words affected and the amount of spelling they lose depend on the original length distribution as well as the selection rule.
The vowel and consonant settings define membership by character class. V retains the vowels in the original token, when present, and C retains the consonants. In these conditions the number of letters kept depends on the spelling. A long consonant sequence can remain available to C even if it would have been shortened by a fixed-length rule. The V and C comparison therefore varies how many letters remain as well as which letters remain.
Give each input convention a vocabulary
The system reads numerical identities drawn from a vocabulary. Its embedding matrix associates those identities with vectors. When many words are mapped to the same fragment, the resulting vocabulary can be much smaller than the vocabulary of whole words. The authors adapt the embedding matrix of their BERT-BASE architecture to the vocabulary needed for each input category. The resulting systems have the same general architecture while differing in vocabulary size and, with it, the number of parameters.
The single-character vocabulary has 36 entries. The paper accounts for these as the 26 letters of the English alphabet and 10 entries covering punctuation and special symbols. The two-character category has a vocabulary of 686. The paper uses the most frequent 50K tokens for each of the full-token and consonant categories. Those last two conditions have 124M parameters each in the reported setup. The single-character category has 86M and the two-character category has 87M. A parameter count here describes the configured pretraining system. It is different from the number of distinct words that the original corpus contains or the number of times a spelling occurs.
Vocabulary size also explains why reducing characters can change the learning task as well as the visible evidence. If a tokenizer maps many words to the same spelling fragment, the system needs fewer possible input identities. If that same fragment is the required output whenever any of those words is masked, the prediction problem also groups answers that the full-token objective would keep distinct. The authors address this dependency by running a second pretraining objective with the partial inputs.
Mask the same kind of position and change what counts as an answer
In masked language modeling, selected token positions are hidden from the system and their contents become prediction targets. The visible tokens provide context. For the whole-token reference, the input around a masked position consists of whole tokens, and the hidden token is predicted in its whole form. For a partial-token system, visible neighbors supply only the selected characters. The authors investigate two ways of specifying the target at the hidden position.
In the main setup, the target is the spelling produced by the same selection rule as the input. The paper illustrates this with phone and photo. When either is hidden, FF is asked to predict ph. Under FL, the targets are pe and po, respectively. The example shows how the choice of positions changes the ambiguity of the target. A system can be completely right under the FF objective while never resolving which of those words occupied the position. Conversely, the FL objective separates those two words, although it groups others together.
In the other setup, the visible context still consists of spelling fragments, but the target is the original full token. The system must distinguish phone from photo at a masked position even if the visible words around it have been heavily compressed. The larger answer vocabulary is the immediate distinction between the two settings. The full-token target can supply more specific supervision about the masked position, whereas the limited view of the context can make its prediction harder.
This comparison separates the spelling available as evidence from the spelling used to mark a prediction right or wrong. At downstream evaluation, both pretraining objectives lead to systems that still receive fragments in the partial-input conditions. Any difference in their scores therefore concerns the consequences of training with different targets, instead of the immediate advantage of having complete words in the task input.
Pretrain, adapt to the tasks, and probe the layers
The implementation uses PyTorch and the Transformers library. The authors report pretraining each system for 1M steps on 8 NVIDIA Tesla V100 GPUs. The learning rate is 1e-4 and the batch size is 16 per GPU. There are 10,000 warmup steps, weight decay of 0.01, and attention dropout of 0.1. The Adam optimizer uses epsilon of 1e-8, a first beta setting of 0.9, and a second beta setting of 0.999. The authors release the code and trained systems for the study.
For the benchmark experiments, the pretrained system is fine-tuned with labeled examples from the target task. In the main comparison, the character selection used at pretraining also applies here. F still receives initial characters. C still receives consonants. The full-token reference still receives whole tokens. The model can adapt to the task’s supervision, but learning the task gives it no new access to the missing letters. The authors separately start from the full-token pretrained system and fine-tune on restricted inputs to measure what happens when the input convention changes between stages.
The probe experiments address a separate question. Each layer gives a numerical representation of the input at that stage of processing. The authors train a multilayer perceptron, or MLP, to take such representations and predict a linguistic label. An MLP is a classifier that can learn combinations of cues from its inputs. Each probing task contains 100k training sentences, 10k validation sentences, and 10k test sentences. The classifiers use the recommended settings from SentEval. The researchers evaluate layers individually and report the highest test result over the layers of each system for each task. That choice helps find where a property is most recoverable under the probe, and it also affects how the reported scores should be interpreted.
Experiments and results
Reading the benchmark averages
The main results compare whole-token input with partial input under the objective that predicts the partial token at a masked position. In both GLUE and SuperGLUE, the authors fine-tune for up to 20 epochs with early-stopping tolerance of 5. They repeat fine-tuning with five seeds for each task and report average results. The benchmark tables report development-set scores and give standard deviations for the aggregate results. Those deviations describe the observed run-to-run variation in the fine-tuning setup.
The GLUE aggregate combines several measures. For MNLI, the paper reports matched accuracy, which refers to the matched part of the benchmark. For CoLA it uses Matthews correlation, a measure of association between predicted and reference classes. For the semantic similarity task STS-B, it uses Spearman correlation, which compares the orderings implied by the predictions and the reference judgments. QQP, the question-pair task, is reported using F1, which combines precision and recall. The authors report accuracy on the other GLUE tasks, including the sentential paraphrase task MRPC. A GLUE average should therefore be read as the paper’s combined benchmark score. A difference in the aggregate may reflect changes in any of its constituent measures.
The SuperGLUE experiments cover only the tasks in the authors’ chosen set. CB, COPA, and RTE cover different judgments about statements or alternatives, including entailment and plausible causes or effects. WiC tests words in context. MultiRC asks questions that concern material spanning sentences, while BoolQ contains yes-or-no questions. The paper reports the development scores by task and their average. It also gives a majority baseline, which provides a comparison based on prevalent answers without learning to use spelling fragments.
“Performance retention” relates a restricted-input score to the score achieved by the full-token reference under the same benchmark setup. It answers how much of the reference score remains on the reported scale. Interpreting it alongside the absolute scores and the available baselines matters because the reference score and the baseline score can each differ by task. The same kind of ratio can describe rather different separations from the two benchmarks’ comparison points.
GLUE shows the benefit of keeping more spelling
On the GLUE development sets, full-token input achieves an average of 81.0 ± 0.3. With only the opening character, F reaches 62.0 ± 0.4. The paper reports this as about 77% retention of the full-token average. The middle-character setting scores 60.6 ± 0.3, and final-character input scores 60.1 ± 0.3. The single-character results are thus fairly close at the aggregate level, even though the rules pick distinct cues from each word.
Average development score by input setting on GLUE
Keeping both word edges improves on either adjacent pair, and consonant input comes closest to the full-token reference.
The numbers
| System or setting | Average GLUE development score |
|---|---|
| First character (F) | 62.0 |
| Last character (L) | 60.1 |
| First and last characters (FL) | 70.6 |
| First two characters (FF) | 68.5 |
| Last two characters (LL) | 68.2 |
| First, middle, and last characters (FML) | 76.6 |
| Vowels (V) | 63.6 |
| Consonants (C) | 78.7 |
| Full tokens (Token) (this paper) | 81.0 |
The progression at the end of the word is clear in the averages. L scores 60.1, LL scores 68.2, and LLL scores 72.7. At the beginning of the word, F scores 62.0, FF scores 68.5, and FFF scores 75.5. Comparing matched character counts, the opening sequence has the higher average at each budget. At the longest fixed length, distributing the retained characters across the token helps further. FML reaches 76.6 ± 0.2 and is the strongest of the fixed-length settings on the aggregate.
Individual tasks make the scale of the changes easier to see. For MNLI matched accuracy on the development set, the initial-character setting records 61.4. Keeping the first pair raises the score to 71.5, and keeping the first three reaches 77.9. The whole-token score is 82.5. All these systems face the same inference task after fine-tuning. The additional letters allow words that were previously merged to contribute different input signals. The rising MNLI values show how much the decision can benefit under these particular expansions of the spelling.
QNLI illustrates how much performance can survive with a single letter even when other tasks are much more affected. M obtains a development accuracy of 74.8, compared with the full-token score of 89.7. The paper describes this as about 84% retention for that task. QNLI still has a substantial gap from the reference, but the remaining input suffices for many predictions. CoLA, by contrast, has a full-token Matthews correlation score of 58.0, while the single-character settings give 9.4 for F, 11.4 for M, and 12.1 for L. The very different severity on the individual scales gives the aggregate its context.
CoLA also illustrates why position can matter at the same character budget. FF reaches 11.8 on the development set, whereas LL reaches 25.2 and FL reaches 27.3. The advantage favoring the beginning of words in the overall GLUE score does not carry over to this comparison. On STS-B, the development Spearman scores give a different ordering among the same settings. FF scores 80.7, FL scores 79.3, and LL scores 74.0. Which position helps is therefore tied to the task even when an overall ranking is stable enough to describe.
The consonant condition obtains 78.7 ± 0.4 on average, the closest partial-input result to full tokens under the main GLUE objective. Vowels yield 63.6 ± 0.5. On the development sentiment task SST, C reaches 90.4 in accuracy and the full-token setting reaches 91.8, while V scores 68.2. On MRPC, C reaches 84.5 and the full-token score is 86.1. These differences show that the consonant condition can preserve much of the reference’s performance on some tasks. How much of that advantage is specific to consonants is a separate question because the consonant representations tend to retain more characters in the corpus.
SuperGLUE shows substantial retention at a lower reference score
The full-token system scores 70.2 ± 0.8 on average across the SuperGLUE development tasks used in the study. The majority baseline averages 55.0. The first-character condition reaches 63.2 ± 1.1, which the paper describes as roughly 90% retention of the full-token score. Middle- and last-character input achieve 62.4 ± 0.9 and 61.8 ± 0.8. These results place each single-character condition above the reported majority average while leaving room for improvement with more spelling.
Average development score by input setting on the selected SuperGLUE tasks
The initial-letter setting outperforms the majority baseline, and broader spelling fragments move the average toward the full-token reference.
The numbers
| System or setting | Average SuperGLUE development score |
|---|---|
| Majority baseline | 55.0 |
| First character (F) | 63.2 |
| Last character (L) | 61.8 |
| First and last characters (FL) | 66.1 |
| First two characters (FF) | 65.8 |
| Last three characters (LLL) | 65.1 |
| First, middle, and last characters (FML) | 67.4 |
| Vowels (V) | 63.1 |
| Consonants (C) | 67.7 |
| Full tokens (Token) (this paper) | 70.2 |
The increase with available spelling is visible in the opening-character family. F scores 63.2, FF reaches 65.8, and FFF reaches 66.9. The closing-character family follows the same progression, from 61.8 for L to 63.8 for LL and 65.1 for LLL. The paper’s average ordering favors first characters over last characters at matched lengths. FL, which keeps an edge on each side, scores 66.1 compared with 65.8 for FF. FML yields 67.4 ± 0.7, again the highest average among the fixed-length conditions.
The individual results vary in how close the restricted system comes to the reference. On CB, the majority score is 50.0 and the full-token development accuracy is 83.5. F reaches 73.7, and L reaches 68.8. The value of 68.8 here belongs to the single last character. The three-character ending condition LLL reaches 75.9. The consonant input reaches 82.9, close to the full-token result. On BoolQ, LL scores 69.4, the full-token reference scores 73.5, and the majority score is 62.2. The authors characterize the LL result as approximately 94% retention on BoolQ.
Other tasks show a smaller separation among the settings or a different relative advantage. On COPA, the majority development score is 55.0, the full-token score is 61.6, and F scores 57.9. FML reaches 60.2. On WiC, FML scores 63.7 compared with 66.5 for full tokens and 50.0 for the majority baseline. FF reaches 60.7 and FL 59.3, so the setting with the best two-character average has the lower score on that individual task.
The consonant model scores 67.7 ± 0.7 on the SuperGLUE development average, and V scores 63.1 ± 0.8. Vowels perform comparatively better on some of these tasks than on CB. V’s MultiRC development score is 66.8, while C’s is 68.0 and the full-token score is 69.7. FML achieves 69.1 there. The consonant setting’s strength overall coexists with individual tasks on which a small, position-based selection comes closer to the full-token reference.
The authors suggest that the higher reported retention on SuperGLUE may partly reflect the lower full-token average there, 70.2 compared with GLUE’s 81.0. The benchmarks also combine different tasks. A higher retention figure describes the fraction of the reference score preserved under that benchmark’s conditions. It does not identify which benchmark is intrinsically less sensitive to missing letters. The majority comparison, where supplied, and the individual task results help show how much signal the reduced inputs contribute.
What the ablations show
How much of the benefit depends on matching the input at pretraining?
The appendix compares the main procedure with a system that pretrains on full tokens and first encounters the character restriction when fine-tuned. The comparison asks a useful question about the source of the main results. If a system trained on whole words could adapt equally well once given labeled examples with fragments, the all-partial training pipeline would be less important for explaining the benchmark outcomes. The authors observe lower benchmark averages when the full-token pretrained system is fine-tuned on fragments.
On the GLUE development sets, fine-tuning with F after full-token pretraining produces an average of 60.3 ± 0.4. Restricting both stages to F gives 62.0 ± 0.4. In the FML condition, changing to partial input at fine-tuning yields 67.7 ± 0.4, compared with 76.6 ± 0.2 when FML is used throughout and the pretraining target is the partial token. The consonant comparison is 68.0 ± 0.2 after full-token pretraining and 78.7 ± 0.4 after consonant pretraining. A system that learned from full spellings thus does not automatically retain the advantage of that richer training input when it has to make decisions from much shorter spellings.
The corresponding SuperGLUE development results give 59.5 ± 1.1 for F after full-token pretraining and 63.2 ± 1.1 when F is used throughout. C scores 63.4 ± 0.7 when applied at fine-tuning after full-token pretraining and 67.7 ± 0.7 with consonant input in both stages. Some settings are much closer. For LL, the respective averages are 63.4 ± 0.8 and 63.8 ± 1.1. This variation is a reason to describe matching the stages as an observed general benefit rather than assuming the amount of benefit is fixed.
Individual tasks can also favor a system pretrained with more spelling. On SuperGLUE’s COPA development set, FML gives 62.8 after full-token pretraining and 60.2 after pretraining on FML fragments to predict fragments. That result is consistent with adaptation sometimes making effective use of what the system had learned before the switch. It does not undo the average pattern. The appendix measures the combined effects of prior training, the change in input, and adaptation to the labeled task under the authors’ implementation.
Does predicting a whole word help when the context is partial?
In the target comparison, the input fragments remain the same and the hidden-token supervision changes. The appendix finds broadly similar benchmark averages using either target. For GLUE development, FML reaches 76.6 ± 0.2 when the pretraining answer is the fragment and 76.3 ± 0.3 when the answer is the whole token. FL similarly gives 70.6 ± 0.4 with the partial target and 70.3 ± 0.4 with the full target. On SuperGLUE development, M has an average of 62.4 ± 0.9 under the partial target and 62.1 ± 0.8 under the full target.
The individual GLUE averages include cases that favor the more specific supervision. FF scores 69.5 ± 0.2 when pretrained to predict a full token, versus 68.5 ± 1.4 when pretrained to predict a fragment. The consonant setting reaches 78.8 ± 0.2 with the full target and 78.7 ± 0.4 with the partial target. On SuperGLUE development, C obtains 67.9 ± 0.9 with the full target, compared with 67.7 ± 0.7 with the partial target. The full-token prediction task may help in a given setting without yielding a general improvement across restricted inputs.
A small average difference can also conceal larger changes in the tasks underneath it. In the SuperGLUE FL condition, the CB development score is 80.8 after pretraining to predict fragments and 70.5 after pretraining to predict full tokens. On COPA, the corresponding FL scores are 59.5 and 59.7. In FML, predicting the full token yields 62.8 on COPA, compared with 60.2 for fragment prediction, while WiC favors the fragment target at 63.7 compared with 61.1. The effect of the objective depends on the task even though the averages establish no broad advantage for full-token supervision.
The authors suggest a reason for the lack of a consistent gain. A full-token target makes the output classification problem much larger while leaving the system with only the fragmentary context. More detailed supervision can in principle help it learn finer distinctions. To use that supervision effectively, however, the system needs cues that support making those distinctions. The experiment establishes that changing the targets in this way does not reliably improve downstream performance. The larger output space is the authors’ explanation for why that may happen.
What the training curves and corpus counts tell us
The pretraining loss curves show whether optimization continues to make progress with restricted inputs. The authors report stable training for the single-character systems. F and M have similar curves, and L reaches the lowest loss among those settings. The appendix also reports stable training for the conditions that retain two or three characters. Demonstrating stable learning matters here because strong ambiguity could otherwise have left the system with an input that offered too little regularity even for its masked prediction task.
Lower loss at this stage and better fine-tuned performance answer different questions. L learns to predict its masked final-character targets with lower loss than F achieves on its initial-character targets. F nonetheless gives the better aggregate downstream scores among those two conditions. The objectives predict different labels with potentially different distributions and contextual regularities. The curves establish that the restricted systems can learn their pretraining task, while the benchmark comparison establishes whether the resulting representations transfer to a set of other tasks.
The authors also estimate what the transformations remove by counting token lengths and distinct token sequences in the pretraining corpus. The length distributions count occurrences, so common words contribute each time they appear. In the full-token corpus, 42% of occurrences have one, two, or three characters. In the three-character category, the reported distribution is 5% single-character, 16% double-character, and 79% triple-character tokens. A substantial share of the original material is long enough for a restrictive rule to discard letters, but it is also possible for common short words to survive the longer fixed-length settings without alteration.
The vowel and consonant comparison has a different length profile. The paper reports that 73% of the vowel representations are single-character tokens and that 78% of the consonant representations have four characters in the pretraining corpus. The results on GLUE and SuperGLUE therefore compare two spelling filters with visibly different amounts of retained material. That is compatible with consonants being informative, but it also gives a straightforward reason that their average advantage cannot be read as a comparison between equal amounts of vowel and consonant evidence.
The n-gram counts capture another consequence of the transformations. Here a unigram is a distinct token identity, a bigram a pair of successive token identities, and a trigram a sequence of three. The full-token category has 43M bigrams and 302M trigrams in the pretraining corpus. The two-character category has 300K bigrams and 20M trigrams. The paper describes the latter as about 7% of the full-token trigram count. The three-character category has 13M bigrams and 185M trigrams, giving a view of how quickly distinct local contexts become available again as token identities become more specific.
The consonant corpus preserves comparatively many such contexts. The authors report 39M bigrams and 299M trigrams there. This helps explain why counting retained spelling or distinct local contexts and measuring downstream accuracy are complementary. Many original contexts can collapse together, but which ones become indistinguishable matters more for a particular label than the number alone. The corpus statistics quantify how much variety is removed. They do not identify the task-relevant cues left behind.
Which character positions preserve which linguistic cues?
The six sentence representation probes from Conneau and colleagues provide a narrower test of what can be predicted from the trained systems. TreeDepth asks for the depth of a sentence’s parse tree. TopConst asks about the constituents at the top of that tree. BShift tests whether neighboring words have been swapped. The paper groups these as syntactic probes because the labels concern sentence organization or departures from ordinary word order.
The other probes ask about properties of clauses. Tense predicts whether the main-clause verb is present or past. SubjNum predicts whether the main-clause subject is singular or plural. CoordInv tests whether the two coordinate clauses of a sentence have been reversed. The paper groups these probes under semantic information. The labels are specific enough to describe the findings directly in terms of tense, number, and clause order without treating them as broad tests of sentence meaning.
The probe table reports mean test accuracy and standard deviation over three runs for the best-performing layer of each system. The sharply different behavior of beginnings and endings on Tense is especially revealing. A probe from F’s best layer scores 63.4 ± 0.9, and from M’s best layer it scores 63.3 ± 0.3. From L’s best layer the score is 84.1 ± 0.5. The full-token representation yields 89.2 ± 0.8. The majority baseline for this task is 50.0. With only a final character from each input token, the classifier gets much closer to the whole-word result than it gets with an initial character.
Best-layer test accuracy by input setting on the Tense probe
Word endings make tense easier to recover than beginnings at the same character budget.
The numbers
| System or setting | Accuracy % |
|---|---|
| Majority baseline | 50.0 |
| First character (F) | 63.4 |
| Middle character (M) | 63.3 |
| Last character (L) | 84.1 |
| First two characters (FF) | 65.2 |
| Last two characters (LL) | 88.0 |
| First three characters (FFF) | 68.2 |
| Last three characters (LLL) | 88.4 |
| Full tokens (Token) (this paper) | 89.2 |
The matched comparisons on Tense remain in favor of the final letters as the character budget grows. On SubjNum, the L probe reaches 83.6 while the F probe reaches 61.2, and the full-token probe scores 88.0. These results are consistent with some cues to morphology surviving at the ends of English words. The experiment does not trace the classifier’s decisions back to particular endings, and a probe can make use of surrounding words as well. The direct result is that a property becomes much easier to recover when representations are learned from final letters.
More spelling can also improve the probe without a switch in position. For TopConst, the development of the initial-letter family is visible in test accuracies of 53.3 with F, 69.0 with FF, and 79.3 with FFF. BShift gives 57.3 for L, 69.5 for LL, and 82.0 for LLL. Those progressions fit the idea that longer spellings make more contextual features distinguishable. They leave room for the selection rule to matter, because a different choice of equally many letters can preserve different contrasts.
FML is the highest-scoring condition on TreeDepth, TopConst, and SubjNum. On TreeDepth it reaches 45.0, while the full-token probe reaches 42.7. On TopConst the respective values are 81.4 and 78.4, and on SubjNum they are 91.3 and 88.0. The full-token condition leads on the other tasks. On BShift it reaches 88.5 against FML’s 84.5, and on CoordInv it reaches 73.2 against FML’s 68.4. Tense favors full tokens overall, though the last-three condition comes close at 88.4. This distribution of strengths shows why the probe results do not reduce to the overall benchmark ranking.
The authors’ main comparisons consequently give several answers to the question of what matters. Retaining more spelling tends to help, and preserving both edges helps in the benchmark averages. Learning from the restricted inputs before seeing task labels generally improves adaptation to those inputs. The probes add evidence that some information remains accessible in nearly minimal input, particularly when the retained position aligns with the property being tested. They also show that preserving a useful cue for a narrow linguistic prediction and achieving a stronger average across general tasks are distinct outcomes.
Limitations
Limits the authors state
The study is limited to English. The authors attribute that choice to computational constraints and identify other languages as a direction for future work. The positions that carry useful evidence depend on the way words are spelled and formed. Even within the English experiments, the contrast between a strong average for beginnings and high tense accuracy for endings shows that the value of a position depends on the target. The paper offers no measured position ranking for another language or writing system.
The authors also limit the architectural claim. Their system is BERT-like, and they use masked prediction as the training framework. Running a systematic comparison of different architectures and sizes was beyond the scope of their compute budget. They mention generative systems such as GPT-3 as a possible subject for later investigation. The masked prediction setting is a particular way for a system to use context and learn from partial spellings. The paper does not measure what happens to a system trained to generate continuous text under the same spelling rules.
The restricted systems are presented as experimental instruments. The authors make no claim of practical usefulness for day-to-day applications. A supervised development score measures success under a defined evaluation procedure after adaptation. It gives no direct evidence about how people would interact with a system that requires fragmentary input, how it would behave outside the datasets used, or whether it would be suitable for deployment.
Finally, the authors use a sample of linguistic probes. They identify broader probing coverage as further work. Their chosen tasks let them examine particular structural and grammatical properties. They do not provide a general inventory of what information exists in the learned representations or what kinds of reasoning remain possible with partial spellings.
Limits that follow from the design
Changing an input character rule changes several things at once. The change alters which words share an identity, how frequently each identity occurs, and the size of the embedding matrix. In the fragment-prediction setup it also alters the answer space. The F versus L comparison is tight in terms of the number of letters kept, yet it still compares different induced vocabularies and distributions. The consonant and vowel comparison is broader because the filters usually leave different lengths. The corpus analysis provides evidence about those differences but does not remove them from the experimental conditions.
The “full token” qualifier is relative to the study’s preprocessing. All text has already passed through lowercasing, whitespace splitting, number replacement, and filtering. The large vocabularies are also subject to a frequent-token cutoff. The experiment is well suited to asking how much the study’s partial inputs can do relative to its own full-token baseline. It offers no direct estimate of the cost of deleting letters from every possible representation of raw text, or of repeating the exercise with a standard sub-word pipeline.
The vocabulary and n-gram counts are proxies for distinctions lost. A pair of words that collapses under a spelling filter may seldom compete to determine a particular benchmark answer. Conversely, losing a distinction between a small set of important tokens could hurt a task more than losing many distinctions among rare alternatives. Counting strings and local sequences documents a large reduction in available surface variety. A task-specific measure of how much meaningful evidence remains would require understanding which distinctions the task depends on.
The shape of the sequence matters as well. The single-character conditions do not simply sample letters from the corpus. They retain a systematic relation to the original words, punctuation or special symbols remain in the vocabulary, and sentence positions continue to give context. Fine-tuning gives the task-specific learner additional labeled examples under that same input convention. Those features can all contribute to the reported retention. The existing comparisons do not allocate the scores among clues from spelling, patterns of surrounding fragments, sequence structure, or statistical associations with labels.
The benchmark aggregates also have a limited interpretation. GLUE combines several metrics, and the SuperGLUE result covers the particular tasks the authors include. The headline retention numbers are calculated relative to each full-token average as reported by the authors. They measure a share of a score, without adjusting for the part of that score already available to a simple baseline. The SuperGLUE majority numbers give readers a second comparison point. The paper reports individual development scores and variation across fine-tuning runs, which help describe the result within the experimental setup. Those values do not establish how the result would vary across independent pretraining runs or unseen domains.
The probe scores have a further qualification. The authors choose the best layer for each system using test performance. A reported value therefore shows the strongest recoverability observed over the layers they tried. It does not describe an independently chosen layer whose accuracy was then estimated on a separate test set. Small advantages over the whole-token reference deserve particular care for this reason. The larger contrast between first and last letters on Tense is a clearer description of what the chosen probe can extract under the reported protocol.
A probe can exploit a cue even if a downstream task rarely uses it. It can also learn an association between its label and a feature that is easier to recover than the property in its full linguistic sense. For instance, high SubjNum accuracy means the probe can predict the subject-number labels from its inputs. The score alone cannot show that the representation tracks number in all constructions or that a downstream prediction draws on the same evidence. Likewise, the agreement with some observations about human reading concerns the relative usefulness of certain inputs. Shared preferences for letters at a word’s edges do not establish a shared recognition mechanism. The authors discuss that analogy while leaving open how the systems arrive at their predictions.
What came after
The citing work Dotless Arabic Text for Natural Language Processing takes up a related question about written information in a different language. Its stated subject is Arabic text with dots removed. That brings the investigation of restricted spelling to a different kind of intervention. Alajrami and colleagues choose entire characters to retain from each English token. Dotless Arabic concerns distinctions within the written forms of characters. In both cases the question is what an altered written input still distinguishes, but a result about English letter positions would not predict the consequence of changing Arabic letter forms. The citation establishes the connection to the earlier work. It does not establish that the Arabic study repeats the English training protocol or its benchmarks.
A second citing work, Enhancing Linguistic Competence of Language Models through Pre-training with Language Learning Tasks, approaches linguistic competence through the choice of pretraining tasks. This relates most directly to Alajrami and colleagues’ comparison between predicting a retained fragment and predicting the original token from the same restricted context. Within the English study, changing that prediction target produces mixed effects across tasks, even when the average scores are close. The later work’s stated focus is on training tasks designed around language learning. Its citation connects that question to the character study, while the particular use of the character experiments in its method remains unspecified.
The two citations point towards distinct questions raised by the original experiments. For dotless Arabic the variable of interest is which distinctions a writing system makes available in the input. For language-learning tasks it is what the system is asked to predict during pretraining. The English study varied both, and its results show the importance of keeping them separate. A change in visible spelling can remove useful evidence from every training example, whereas a change in targets can alter what the system learns to do with the same evidence.
Cite
Cite as Ahmed Alajrami, Katerina Margatina and Nikolaos Aletras. 2023. Understanding the Role of Input Token Characters in Language Models: How Does Information Loss Affect Performance?. Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{alajrami2023understanding,
title = {{Understanding the Role of Input Token Characters in Language Models: How Does Information Loss Affect Performance?}},
author = {Ahmed Alajrami, Katerina Margatina and Nikolaos Aletras},
booktitle = {Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing},
year = {2023},
doi = {10.18653/v1/2023.emnlp-main.563},
url = {https://doi.org/10.18653/v1/2023.emnlp-main.563}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/alajrami-2023-understanding-role-input-token-characters/