arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.04663cs.CLcs.AI
收藏

Dopamin:通过领域后训练和多层级层聚合构建基于 Transformer 的注释分类器

Dopamin: Transformer-based Comment Classifiers through Domain Post-Training and Multi-level Layer Aggregation

FPT Software AI Center(FPT软件人工智能中心);Fulbright University(富布赖特大学)

Nam Le Hai, Nghi D. Q. Bui

AI总结:

本文提出基于 Transformer 的 Dopamin 注释分类工具,结合领域后训练与多层级层聚合改进注释表示,在 NLBSE'24 数据集上平均 F1 较 STACC 提升 3%。

摘要:

代码注释为理解源代码提供了重要信息。它们可以帮助开发者理解函数或类的整体用途,并识别缺陷和技术债务。然而,过多的注释毫无意义且适得其反。因此,针对特定目的自动过滤这些注释至关重要。本文提出 Dopamin,这是一个基于 Transformer 的工具,用于解决该问题。我们的模型不仅擅长呈现跨多种语言的常见类别知识共享,还通过改进注释表示,在注释分类中取得稳健性能。因此,在 NLBSE'24 工具竞赛数据集上,其平均 F1 分数比 STACC 基线高出 3%,同时保持可供实际使用的相近推理时间。源代码已公开发布于 https://github.com/FSoft-AI4Code/Dopamin。

英文摘要:

Code comments provide important information for understanding the source code. They can help developers understand the overall purpose of a function or class, as well as identify bugs and technical debt. However, an overabundance of comments is meaningless and counterproductive. As a result, it is critical to automatically filter out these comments for specific purposes. In this paper, we present Dopamin, a Transformer-based tool for dealing with this issue. Our model excels not only in presenting knowledge sharing of common categories across multiple languages, but also in achieving robust performance in comment classification by improving comment representation. As a result, it outperforms the STACC baseline by 3% on the NLBSE'24 Tool Competition dataset in terms of average F1-score, while maintaining a comparable inference time for practical use. The source code is publicity available at https://github.com/FSoft-AI4Code/Dopamin.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑