2021
DOI: 10.48550/arxiv.2103.07164
|View full text |Cite
Preprint
|
Sign up to set email alerts
|

A Multi-Modal Transformer-based Code Summarization Approach for Smart Contracts

Abstract: 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 Synt… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
2
1

Citation Types

0
7
0

Year Published

2022
2022
2022
2022

Publication Types

Select...
2

Relationship

1
1

Authors

Journals

citations
Cited by 2 publications
(7 citation statements)
references
References 38 publications
0
7
0
Order By: Relevance
“…Used for Fine-tuning and Code Search. We fine-tune and test the code search task using two domain-specific languages, namely, SQL and Solidity [36]. The statistics about the datasets are shown in Table 2.…”
Section: Datamentioning
confidence: 99%
See 2 more Smart Citations
“…Used for Fine-tuning and Code Search. We fine-tune and test the code search task using two domain-specific languages, namely, SQL and Solidity [36]. The statistics about the datasets are shown in Table 2.…”
Section: Datamentioning
confidence: 99%
“…Solidity is an object-oriented language that is specifically designed for implementing smart contracts [36]. The dataset of Solidity used in our experiments is provided by [36] for smart contract code summarization. We preprocess the dataset by removing all inline comments from functions.…”
Section: Datamentioning
confidence: 99%
See 1 more Smart Citation
“…The last is embedding ASTs using GNNs [33,37], and here we take GCN as an example. As the number of GCN layers increases, each node can aggregate a more extensive range of information from its neighbors, thus focusing on a broader range of local features.…”
Section: Motivating Examplementioning
confidence: 99%
“…The treatment of ASTs in the previous studies mainly includes traversing them into sequences or using AST paths. Hu et al [23,24] used AST sequences obtained by a Structure-Based Traversal (SBT) method as input, which only extracts the AST structure globally without considering the relationships between nodes, losing the structural properties of ASTs [33]. In addition, LeClair et al [31] used GNN to embed the AST graph, but the embedding of ASTs using 2-Hop GNN was unable to extract the overall structure of ASTs.…”
Section: Introductionmentioning
confidence: 99%