Correcting diacritics and typos with a ByT5 transformer model
Not on the map. Why?
Abstract (arXiv)
Due to the fast pace of life and online communications and the prevalence of English and the QWERTY keyboard, people tend to forgo using diacritics, make typographical errors (typos) when typing in other languages. Restoring diacritics and correcting spelling is important for proper language use and the disambiguation of texts for both humans and downstream algorithms. However, both of these problems are typically addressed separately: the state-of-the-art diacritics restoration methods do not tolerate other typos, but classical spellcheckers also cannot deal adequately with all the diacritics missing. In this work, we tackle both problems at once by employing the newly-developed universal ByT5 byte-level seq2seq transformer model that requires no language-specific model structures. For a comparison, we perform diacritics restoration on benchmark datasets of 12 languages, with the addition of Lithuanian. The experimental investigation proves that our approach is able to achieve results (> 98%) comparable to the previous state-of-the-art, despite being trained less and on fewer data. Our approach is also able to restore diacritics in words not seen during training with > 76% accuracy. Our simultaneous diacritics restoration and typos correction approach reaches > 94% alpha-word accuracy on the 13 languages. It has no direct competitors and strongly outperforms classical spell-checking or dictionary-based approaches. We also demonstrate all the accuracies to further improve with more training. Taken together, this shows the great real-world application potential of our suggested methods to more data, languages, and error classes.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 25 of its 118 references that are in the map. First posted on arXiv 31 Jan 2022.
Builds on
25 of 118 references.
References · 25
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,813
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
- 2016Enriching Word Vectors with Subword Informationcited by 1,578
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 896
- 2021ByT5: Towards a token-free future with pre-trained byte-to-byte modelscited by 504
13 more
- 2018Marian: Fast Neural Machine Translation in C++cited by 202
- 2021A Simple Recipe for Multilingual Grammatical Error Correctioncited by 108
- 2019GitHub Typo Corpus: A Large-Scale Multilingual Dataset of Misspellings and Grammatical Errorscited by 22
- 2020A Multitask Learning Approach for Diacritic Restorationcited by 12
- 2018Attentive Sequence-to-Sequence Learning for Diacritic Restoration of Yor`ub'a Language Textcited by 11
- 2021Restoring Hebrew Diacritics Without a Dictionarycited by 10
- 2019Efficient Convolutional Neural Networks for Diacritic Restorationcited by 9
- 2021Spelling Correction with Denoising Transformercited by 9
- 2021'UFAL at MultiLexNorm 2021: Improving Multilingual Lexical Normalization by Fine-tuning ByT5cited by 7
- 2021Diacritics Restoration using BERT with Analysis on Czech languagecited by 6
- 2020Correcting the Autocorrect: Context-Aware Typographical Error Correction via Training Data Augmentationcited by 4
- 2021Hierarchical Transformer Encoders for Vietnamese Spelling Correctioncited by 4
- 2020Romanian Diacritics Restoration Using Recurrent Neural Networkscited by 1
Built on by
Citing papers per year: 2022: 1; 2023: 3; 2024: 1.
5 papers.
- 2023Byte-Level Grammatical Error Correction Using Synthetic and Curated Corporacited by 7
- 2024YAD: Leveraging T5 for Improved Automatic Diacritization of Yor`ub'a Textcited by 4
- 2022Towards Lithuanian grammatical error correctioncited by 2
- 2023Fine-Tashkeel: Finetuning Byte-Level Models for Accurate Arabic Text Diacritizationcited by 1
- 2023Domain specificity and data efficiency in typo tolerant spell checkers: the case of search in online marketplacescited by 0
- 2024YAD: Leveraging T5 for Improved Automatic Diacritization of Yor`ub'a Text28 Dec 2024
- 2023Domain specificity and data efficiency in typo tolerant spell checkers: the case of search in online marketplaces3 Aug 2023
- 2023Byte-Level Grammatical Error Correction Using Synthetic and Curated Corpora29 May 2023
- 2023Fine-Tashkeel: Finetuning Byte-Level Models for Accurate Arabic Text Diacritization25 Mar 2023
- 2022Towards Lithuanian grammatical error correction18 Mar 2022