paperbot · PL 论文追踪

全部论文 待读 收藏

P2 GrammarT5: Grammar-Integrated Pretrained Encoder-Decoder Neural Model for Code

GrammarT5:面向代码的语法集成预训练编码器-解码器神经模型
ICSE Proceedings of the IEEE/ACM 46th International Conference on Software Engineering2024匹配度 3/10 · 论文属于代码预训练模型,结合语法增强代码结构建模,但与用户关注的静态分析/形式化验证、Agentic 程序、浮点程序分析或贝叶斯程序分析交叉较少;它更偏通用代码表示学习,而非问题驱动的分析工具。引用 12 inbox
Qihao Zhu, Qingyuan Liang, Zeyu Sun, Yingfei Xiong, Lu Zhang, Shengyu Cheng
crossref: 2026-09-12

AI 速览

一句话:提出 GrammarT5,一种集成语法的预训练编码器-解码器代码模型,以更好捕获代码结构。

当前多数代码预训练模型仍将代码表示为 token 序列,可能无法充分捕获代码的底层结构。为此,论文提出 GrammarT5,一种将语法信息集成到预训练编码器-解码器神经网络(基于 T5)中的模型,使模型在预训练阶段能够利用代码的语法结构。该方法旨在提升模型对代码结构的建模能力,并可应用于代码摘要、代码补全、代码翻译和缺陷检测等多种代码相关任务。摘要未给出具体实验结果,但指出预训练代码模型在这些任务上已展现出良好性能,而 GrammarT5 通过语法集成进一步改进对代码结构的表示。

问题
现有代码预训练模型大多将代码视为 token 序列,难以充分捕获代码的底层语法结构。
方法
提出 GrammarT5,将语法信息集成到预训练编码器-解码器(T5)神经模型中,使模型在预训练时利用代码语法结构。
评估
在代码摘要、代码补全、代码翻译、缺陷检测等代码相关任务上评估模型的有效性(摘要提及这些任务)。
原文摘要(Abstract)

Pretrained models for code have exhibited promising performance across various code-related tasks, such as code summarization, code completion, code translation, and bug detection. However, despite their success, the majority of current models still represent code as a token sequence, which may not adequately capture the essence of the underlying code structure.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot11378,
  title = {GrammarT5: Grammar-Integrated Pretrained Encoder-Decoder Neural Model for Code},
  author = {Qihao Zhu and Qingyuan Liang and Zeyu Sun and Yingfei Xiong and Lu Zhang and Shengyu Cheng},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3597503.3639125}
}