Write a Blog >>
ICPC 2021
Tue 18 - Thu 20 May 2021
co-located with ICSE 2021
Thu 20 May 2021 02:10 - 02:20 at ICPC Main Room - Code Summarization Chair(s): David Lo

Code comment has been an important part of computer programs, greatly facilitating the understanding and maintenance of source code. However, high-quality code comments are often unavailable in smart contracts, the increasingly popular programs that run on the blockchain. In this paper, we propose a Multi-Modal Transformer-based (MMTrans) code summarization approach for smart contracts. Specifically, the MMTrans learns the representation of source code from the two heterogeneous modalities of the Abstract Syntax Tree (AST), i.e., Structure-based Traversal (SBT) sequences and graphs. The SBT sequence provides the global semantic information of AST, while the graph convolution focuses on the local details. The MMTrans uses two encoders to extract both global and local semantic information from the two modalities respectively, and then uses a joint decoder to generate code comments. Both the encoders and the decoder employ the multi-head attention structure of the Transformer to enhance the ability to capture the long-range dependencies between code tokens. We build a dataset with over 300K <method, comment> pairs of smart contracts, and evaluate the MMTrans on it. The experimental results demonstrate that the MMTrans outperforms the state-of-the-art baselines in terms of four evaluation metrics by a substantial margin, and can generate higher quality comments.

Thu 20 May

Displayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change

02:00 - 02:30
Code SummarizationResearch at ICPC Main Room
Chair(s): David Lo Singapore Management University
02:00
10m
Paper
Exploiting Method Names to Improve Code Summarization: A Deliberation Multi-Task Learning Approach
Research
Rui Xie Peking University, Wei Ye Peking University, Jinan Sun , Shikun Zhang Peking University
Pre-print Media Attached
02:10
10m
Paper
A Multi-Modal Transformer-based Code Summarization Approach for Smart Contracts
Research
Zhen Yang City University of Hong Kong, China, Jacky Keung City University of Hong Kong, Xiao Yu Wuhan University of Technology, Xiaodong Gu Shanghai Jiao Tong University, China, Zhengyuan Wei City University of Hong Kong, Hong Kong, Xiaoxue Ma , Miao ZHANG City University of Hong Kong
Pre-print Media Attached
02:20
10m
Paper
Improving Code Summarization with Block-wise Abstract Syntax Tree Splitting
Research
Chen Lin , Zhichao Ouyang , Junqing Zhuang , Jianqiang Chen , Hui Li Department of Computer Science, Xiamen University, Rongxin Wu Xiamen University
Pre-print Media Attached

Information for Participants
Thu 20 May 2021 02:00 - 02:30 at ICPC Main Room - Code Summarization Chair(s): David Lo
Info for room ICPC Main Room:

Go directly to this room on Clowdr