The Lies Characters Tell: Utilizing Large Language Models to Normalize Adversarial Unicode Perturbations

Homoglyphs, Unicode characters that are visually homogeneous to Latin letters, are widely used to mask offensive content.Dynamic strategies are needed to combat homoglyphs as the Unicode library is ever-expanding and new substitution possibilities for Latin letters continuously emerge.The present study investigated two novel mitigation approaches that do not rely on strict mappings but instead harness the power of large language models to neutralize both known and unknown homoglyphs:(1) indirectly normalizing homoglyphs by replacing non-Latin characters with a delimiter and prompting large language models to "fill in the blanks" and (2) directly normalizing homoglyphs by using large language models to determine which characters should be replaced with Latin letters.We found that GPT-4o-mini constructed normalized text with an average cosine similarity score of 0.91 to the original tweets when applying our indirect method and 0.96 to the original tweets when applying our direct method.This study indicates that large language model-based normalization techniques can effectively unmask offensive content concealed by homoglyphs.

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.969
Primary Topic
Advanced Malware Detection Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

The Lies Characters Tell: Utilizing Large Language Models to Normalize Adversarial Unicode Perturbations

Mihai Surdeanu, Eduardo Blanco, Portia Cooper
Advanced Malware Detection Techniques
article

The Lies Characters Tell: Utilizing Large Language Models to Normalize Adversarial Unicode Perturbations

Mihai Surdeanu, Eduardo Blanco, Portia Cooper
article en

Abstract

Homoglyphs, Unicode characters that are visually homogeneous to Latin letters, are widely used to mask offensive content.Dynamic strategies are needed to combat homoglyphs as the Unicode library is ever-expanding and new substitution possibilities for Latin letters continuously emerge.The present study investigated two novel mitigation approaches that do not rely on strict mappings but instead harness the power of large language models to neutralize both known and unknown homoglyphs:(1) indirectly normalizing homoglyphs by replacing non-Latin characters with a delimiter and prompting large language models to "fill in the blanks" and (2) directly normalizing homoglyphs by using large language models to determine which characters should be replaced with Latin letters.We found that GPT-4o-mini constructed normalized text with an average cosine similarity score of 0.91 to the original tweets when applying our indirect method and 0.96 to the original tweets when applying our direct method.This study indicates that large language model-based normalization techniques can effectively unmask offensive content concealed by homoglyphs.

University of Arizona (US)
Openalex Percentile: Top 77%
Advanced Malware Detection Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.