跳到主要导航 跳到搜索 跳到主要内容

LONGCODEU: Benchmarking Long-Context Language Models on Long Code Understanding

  • Jia Li
  • , Xuyuan Guo
  • , Lei Li
  • , Kechi Zhang
  • , Ge Li*
  • , Jia Li
  • , Zhengwei Tao
  • , Fang Liu
  • , Chongyang Tao
  • , Yuqi Zhu
  • , Zhi Jin*
  • *此作品的通讯作者
  • Key Laboratory of Precision Opto-Mechatronics Technology (Ministry of Education)
  • Peking University
  • The University of Hong Kong
  • Tsinghua University

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Current advanced long-context language models offer great potential for real-world software engineering applications. However, progress in this critical domain remains hampered by a fundamental limitation: the absence of a rigorous evaluation framework for long code understanding. To gap this obstacle, we propose a long code understanding benchmark LONGCODEU from four aspects (8 tasks) to evaluate LCLMs' long code understanding ability required for practical applications, including code unit perception, intra-code unit understanding, inter-code unit relation understanding, and long code documentation understanding. We evaluate 9 popular LCLMs on LONGCODEU (i.e., 6 general models and 3 code models). Our experimental results reveal key limitations in current LCLMs' capabilities for long code understanding. Particularly, the performance of LCLMs drops dramatically when the long code length is greater than 32K, falling far short of their claimed 128K∼1M context windows. In the four aspects, inter-code unit relation understanding is the most challenging for LCLMs. Our study provides valuable insights for optimizing LCLMs and driving advancements in software engineering.

源语言英语
主期刊名Long Papers
编辑Wanxiang Che, Joyce Nabende, Ekaterina Shutova, Mohammad Taher Pilehvar
出版商Association for Computational Linguistics (ACL)
27309-27327
页数19
ISBN(电子版)9798891762510
出版状态已出版 - 2025
活动63rd Annual Meeting of the Association for Computational Linguistics, ACL 2025 - Vienna, 奥地利
期限: 27 7月 20251 8月 2025

出版系列

姓名Proceedings of the Annual Meeting of the Association for Computational Linguistics
1
ISSN(印刷版)0736-587X

会议

会议63rd Annual Meeting of the Association for Computational Linguistics, ACL 2025
国家/地区奥地利
Vienna
时期27/07/251/08/25

指纹

探究 'LONGCODEU: Benchmarking Long-Context Language Models on Long Code Understanding' 的科研主题。它们共同构成独一无二的指纹。

引用此