跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2412.08098 (cs)
[提交于 2024年12月11日 (v1),最后修订于 2025年11月17日 (此版本, v3)]

标题:What You See Is Not Always What You Get: Evaluating GPT's Comprehension of Source Code

作者:Jiawen Wen, Bangshuo Zhu, Huaming Chen
查看论文《What You See Is Not Always What You Get: Evaluating GPT's Comprehension of Source Code》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Recent studies have demonstrated outstanding capabilities of large language models (LLMs) in software engineering tasks, including code generation and comprehension. While LLMs have shown significant potential in assisting with coding, LLMs are vulnerable to adversarial attacks. In this paper, we investigate the vulnerability of LLMs to imperceptible attacks. This class of attacks manipulate source code at the character level, which renders the changes invisible to human reviewers yet effective in misleading LLMs' behaviour. We devise these attacks into four distinct categories and analyse their impacts on code analysis and comprehension tasks. These four types of imperceptible character attacks include coding reordering, invisible coding characters, code deletions, and code homoglyphs. To assess the robustness of state-of-the-art LLMs, we present a systematic evaluation across multiple models using both perturbed and clean code snippets. Two evaluation metrics, model confidence using log probabilities of response and response correctness, are introduced. The results reveal that LLMs are susceptible to imperceptible coding perturbations, with varying degrees of degradation highlighted across different LLMs. Furthermore, we observe a consistent negative correlation between perturbation magnitude and model performance. These results highlight the urgent need for robust LLMs capable of manoeuvring behaviours under imperceptible adversarial conditions.
评论: This work has been accepted at APSEC 2025
主题: 软件工程 (cs.SE); 人工智能 (cs.AI); 机器学习 (cs.LG)
引用方式: arXiv:2412.08098 [cs.SE]
  (或者 arXiv:2412.08098v3 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2412.08098

提交历史

来自:Jiawen Wen
[v1] 2024年12月11日 星期三 04:52:41 UTC
[v2] 2025年2月14日 星期五 05:21:37 UTC
[v3] 2025年11月17日 星期一 10:13:22 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-11
切换浏览方式为:
cs.SE
cs.AI
cs.LG

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站