mlsanityData to 7 Oct 2026

Scrambled text: training Language Models to correct OCR errors using synthetic data

arXiv 2409.19735 ↗First posted 29 Sep 2024cs.CLcited by 2

On the map: Synthetic data and self-improvement for LLMs → LLM synthetic data generation

Abstract (arXiv)

OCR errors are common in digitised historical archives significantly affecting their usability and value. Generative Language Models (LMs) have shown potential for correcting these errors using the context provided by the corrupted text and the broader socio-cultural context, a process called Context Leveraging OCR Correction (CLOCR-C). However, getting sufficient training data for fine-tuning such models can prove challenging. This paper shows that fine-tuning a language model on synthetic data using an LM and using a character level Markov corruption process can significantly improve the ability to correct OCR errors. Models trained on synthetic data reduce the character error rate by 55% and word error rate by 32% over the base LM and outperform models trained on real data. Key findings include; training on under-corrupted data is better than over-corrupted data; non-uniform character level corruption is better than uniform corruption; More tokens-per-observation outperforms more observations for a fixed token budget. The outputs for this paper are a set of 8 heuristics for training effective CLOCR-C models, a dataset of 11,000 synthetic 19th century newspaper articles and scrambledtext a python library for creating synthetic corrupted data.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in LLM synthetic data generation, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 23 of its 64 references that are in the map. First posted on arXiv 29 Sep 2024.

Builds on

23 of 64 references.

References · 23

  1. 2017Attention Is All You Needcited by 59,932
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  4. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
  5. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
  6. 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
  7. 2023Textbooks Are All You Needcited by 561
  8. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
  9. 2024FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precisioncited by 507
  10. 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
  11. 2024LoRA Learns Less and Forgets Lesscited by 313
  12. 2024The Era of 1-bit LLMs: All Large Language Models are in 1.58 Bitscited by 289
11 more
  1. 2023A Rank Stabilization Scaling Factor for Fine-Tuning with LoRAcited by 231
  2. 2023Data-centric Artificial Intelligence: A Surveycited by 202
  3. 2022On the Effectiveness of Parameter-Efficient Fine-Tuningcited by 140
  4. 2024LoRA Land: 310 Fine-tuned LLMs that Rival GPT-4, A Technical Reportcited by 47
  5. 2024Mission: Impossible Language Modelscited by 31
  6. 2021Lights, Camera, Action! A Framework to Improve NLP Accuracy over OCR documentscited by 11
  7. 2021Understanding Model Robustness to User-generated Noisy Textscited by 8
  8. 2023Can Pretrained Language Models Derive Correct Semantics from Corrupt Subwords under Noise?cited by 6
  9. 20241.5-Pints Technical Report: Pretraining in Days, Not Months -- Your Language Model Thrives on Quality Datacited by 6
  10. 2024CLOCR-C: Context Leveraging OCR Correction with Pre-trained Language Modelscited by 5
  11. 2024NoisyAG-News: A Benchmark for Addressing Instance-Dependent Noise in Text Classificationcited by 1

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Error Patterns in Historical OCR: A Comparative Analysis of TrOCR and a Vision-Language Model
  2. 2025Evaluating LLMs for Historical Document OCR: A Methodological Framework for Digital Humanities
  3. 2026Combining Synthetic and Real Data for Low-Resource Historical OCR: A Manchu Case Study
  4. 2025Finetuning Vision-Language Models as OCR Systems for Low-Resource Languages: A Case Study of Manchu
  5. 2024Unlocking the Archives: Using Large Language Models to Transcribe Handwritten Historical Documents
  6. 2025Multimodal LLMs for OCR, OCR Post-Correction, and Named Entity Recognition in Historical Documents
  7. 2026DharmaOCR: Specialized Small Language Models for Structured OCR that outperform Open-Source and Commercial Baselines
  8. 2026SynthSentry: Detecting Synthetic Data Contamination in Language Model Training Data