Quantifying Character Similarity with Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Record linkage is a bedrock of quantitative social science, as analyses often require linking data from multiple, noisy sources. Off-the-shelf string matching methods are widely used, as they are straightforward and cheap to implement and scale. Not all character substitutions are equally probable, and for some settings there are widely used handcrafted lists denoting which string substitutions are more likely, that improve the accuracy of string matching. However, such lists do not exist for many settings, skewing research with linked datasets towards a few high-resource contexts that are not representative of the diversity of human societies. This study develops an extensible way to measure character substitution costs for OCR'ed documents, by employing large-scale self-supervised training of vision transformers (ViT) with augmented digital fonts. For each language written with the CJK script, we contrastively learn a metric space where different augmentations of the same character are represented nearby. In this space, homoglyphic characters - those with similar appearance such as ``O'' and ``0'' - have similar vector representations. Using the cosine distance between characters' representations as the substitution cost in an edit distance matching algorithm significantly improves record linkage compared to other widely used string matching methods, as OCR errors tend to be homoglyphic in nature. Homoglyphs can plausibly capture character visual similarity across any script, including low-resource settings. We illustrate this by creating homoglyph sets for 3,000 year old ancient Chinese characters, which are highly pictorial. Fascinatingly, a ViT is able to capture relationships in how different abstract concepts were conceptualized by ancient societies, that have been noted in the archaeological literature.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 17 of its 55 references that are in the map. First posted on arXiv 24 May 2023.
Builds on
17 of 55 references.
References · 17
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,750
- 2020Exploring Simple Siamese Representation Learningcited by 2,866
- 2020Supervised Contrastive Learningcited by 2,829
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2021An Empirical Study of Training Self-Supervised Vision Transformerscited by 1,616
- 2015An End-to-End Trainable Neural Network for Image-based Sequence Recognition and Its Application to Scene Text Recognitioncited by 520
- 2022SVTR: Scene Text Recognition with a Single Visual Modelcited by 88
- 2021LayoutParser: A Unified Toolkit for Deep Learning Based Document Image Analysiscited by 58
- 2020PyTorch Metric Learningcited by 57
5 more
- 2020(Almost) All of Entity Resolutioncited by 23
- 2021Neural OCR Post-Hoc Correction of Historical Corporacited by 12
- 2023Efficient OCR for Building a Diverse Digital Historycited by 10
- 2016Bayesian Estimation of Bipartite Matchings for Record Linkagecited by 4
- 2014Detecting duplicates in a homicide registry using a Bayesian partitioning approachcited by 3
Built on by
Citing papers per year: 2023: 1; 2024: 1.
2 papers.
- 2024Deep Learning for Economists22 Jul 2024
- 2023LinkTransformer: A Unified Package for Record Linkage with Transformer Language Models2 Sep 2023