Quantifying Character Similarity with Vision Transformers
Xinmei Yang, Abhishek Arora, Shao-Yu Jheng, Melissa Dell
Abstract
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.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
- Emerging Properties in Self-Supervised Vision Transformers cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
- Efficient OCR for Building a Diverse Digital History cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
- Efficient OCR for Building a Diverse Digital History cites Supervised Contrastive Learning
- Efficient OCR for Building a Diverse Digital History cites An Empirical Study of Training Self-Supervised Vision Transformers
- An Empirical Study of Training Self-Supervised Vision Transformers cites Emerging Properties in Self-Supervised Vision Transformers
- An Empirical Study of Training Self-Supervised Vision Transformers cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
Builds on6
- Bootstrap Your Own Latent - A New Approach to Self-Supervised LearningJean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec et al.NeurIPS 2020 · 9,171 citations
- Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou et al.ICCV 2021 · 8,921 citations
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
- An Empirical Study of Training Self-Supervised Vision TransformersXinlei Chen, Saining Xie, Kaiming HeICCV 2021 · 2,340 citations
- Efficient OCR for Building a Diverse Digital HistoryJacob Carlson, Tom Bryan, Melissa DellACL 2024 · 6 citations
Related papers
- ZiNet: Linking Chinese Characters Spanning Three Thousand YearsYang Chi, Fausto Giunchiglia, Daqian Shi, Xiaolei Diao et al.ACL Findings 2022 · 10 citations
- Hiding in Plain Sight: Tweets with Hate Speech Masked by HomoglyphsPortia Cooper, Mihai Surdeanu, Eduardo BlancoEMNLP Findings 2023 · 5 citations
- The Lies Characters Tell: Utilizing Large Language Models to Normalize Adversarial Unicode PerturbationsPortia Cooper, Eduardo Blanco, Mihai SurdeanuACL Findings 2025
- Beyond Scalars: Concept-Based Alignment Analysis in Vision TransformersJohanna Vielhaben, Dilyara Bareeva, Jim Berend, Wojciech Samek et al.NeurIPS 2025 · 11 citations
- Ancient Chinese Glyph Identification Powered by Radical SemanticsYang Chi, Fausto Giunchiglia, Chuntao Li, Hao XuACL Findings 2024 · 3 citations
