False Friends in the Shell: Unveiling the Emoticon Semantic Confusion in Large Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Jiang, Weipeng, Zhang, Xiaoyu, Zhai, Juan, Ma, Shiqing, Shen, Chao, Liu, Yang
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866918477720190976
author Jiang, Weipeng
Zhang, Xiaoyu
Zhai, Juan
Ma, Shiqing
Shen, Chao
Liu, Yang
author_facet Jiang, Weipeng
Zhang, Xiaoyu
Zhai, Juan
Ma, Shiqing
Shen, Chao
Liu, Yang
contents Emoticons are widely used in digital communication to convey affective intent, yet their safety implications for Large Language Models (LLMs) remain largely unexplored. In this paper, we identify emoticon semantic confusion, a vulnerability where LLMs misinterpret ASCII-based emoticons to perform unintended and even destructive actions. To systematically study this phenomenon, we develop an automated data generation pipeline and construct a dataset containing 3,757 code-oriented test cases spanning 21 meta-scenarios, four programming languages, and varying contextual complexities. Our study on six LLMs reveals that emoticon semantic confusion is pervasive, with an average confusion ratio exceeding 38%. More critically, over 90% of confused responses yield 'silent failures', which are syntactically valid outputs but deviate from user intent, potentially leading to destructive security consequences. Furthermore, we observe that this vulnerability readily transfers to popular agent frameworks, while existing prompt-based mitigations remain largely ineffective. We call on the community to recognize this emerging vulnerability and develop effective mitigation methods to uphold the safety and reliability of the LLM system.
format Preprint
id arxiv_https___arxiv_org_abs_2601_07885
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle False Friends in the Shell: Unveiling the Emoticon Semantic Confusion in Large Language Models
Jiang, Weipeng
Zhang, Xiaoyu
Zhai, Juan
Ma, Shiqing
Shen, Chao
Liu, Yang
Cryptography and Security
Artificial Intelligence
Software Engineering
Emoticons are widely used in digital communication to convey affective intent, yet their safety implications for Large Language Models (LLMs) remain largely unexplored. In this paper, we identify emoticon semantic confusion, a vulnerability where LLMs misinterpret ASCII-based emoticons to perform unintended and even destructive actions. To systematically study this phenomenon, we develop an automated data generation pipeline and construct a dataset containing 3,757 code-oriented test cases spanning 21 meta-scenarios, four programming languages, and varying contextual complexities. Our study on six LLMs reveals that emoticon semantic confusion is pervasive, with an average confusion ratio exceeding 38%. More critically, over 90% of confused responses yield 'silent failures', which are syntactically valid outputs but deviate from user intent, potentially leading to destructive security consequences. Furthermore, we observe that this vulnerability readily transfers to popular agent frameworks, while existing prompt-based mitigations remain largely ineffective. We call on the community to recognize this emerging vulnerability and develop effective mitigation methods to uphold the safety and reliability of the LLM system.
title False Friends in the Shell: Unveiling the Emoticon Semantic Confusion in Large Language Models
topic Cryptography and Security
Artificial Intelligence
Software Engineering
url https://arxiv.org/abs/2601.07885