计算机科学 > 软件工程
[提交于 2025年3月31日]
标题:Assessing Code Understanding in LLMs
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We present an empirical evaluation of Large Language Models in code understanding associated with non-trivial, semantic-preserving program transformations such as copy propagation or constant folding. Our findings show that LLMs fail to judge semantic equivalence in approximately 41\% of cases when no context is provided and in 29\% when given a simple generic context. To improve accuracy, we advocate integrating LLMs with code-optimization tools to enhance training and facilitate more robust program understanding.
提交历史
来自:Alvise Spanò[v1] 2025年3月31日 星期一 16:08:58 UTC