Jianjian Liu
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Research Interests
Jianjian Liu has a total of 5 co-authors. Here are the top co-authors by number of shared publications:
- Hao Zhong
College of Computer and Information Engineering, Xiamen University of Technology, Xiamen 361024, China
1 shared publication - Kaiyu Zhang
College of Computer and Information Engineering, Xiamen University of Technology, Xiamen 361024, China
1 shared publication - Le Chang
Software Security Company, Chengdu 610041, China
1 shared publication - Lei Xiao
College of Computer and Information Engineering, Xiamen University of Technology, Xiamen 361024, China
1 shared publication - Qizhen Xu
School of Computer and Information Engineering, Xiamen University of Technology, Xiamen 361024, China
1 shared publication
Latest Publications
- Open Access
- 29 May 2024
- Published by MDPI AG in Electronics
- Vol. 13 (11) , 2111
A Novel Source Code Representation Approach Based on Multi-Head Attention
Code classification and code clone detection are crucial for understanding and maintaining large software systems. Although deep learning surpasses traditional techniques in capturing the features of source code, existing models suffer from low processing power and high complexity. We propose a novel source code representation method based on the multi-head attention mechanism (SCRMHA). SCRMHA captures the vector representation of entire code segments, enabling it to focus on different positions of the input sequence, capture richer semantic information, and simultaneously process different aspects and relationships of the sequence. Moreover, it can calculate multiple attention heads in parallel, speeding up the computational process. We evaluate SCRMHA on both the standard dataset and an actual industrial dataset, and analyze the differences between these two datasets. Experiment results in code classification and clone detection tasks show that SCRMHA consumes less time and reduces complexity by about one-third compared with traditional source code feature representation methods. The results demonstrate that SCRMHA reduces the computational complexity and time consumption of the model while maintaining accuracy.
- 29 May 2024
- Published by MDPI AG in Electronics
- Vol. 13 (11) , 2111
Open AccessA Novel Source Code Representation Approach Based on Multi-Head Attention
Code classification and code clone detection are crucial for understanding and maintaining large software systems. Although deep learning surpasses traditional techniques in capturing the features of source code, existing models suffer from low processing power and high complexity. We propose a novel source code representation method based on the multi-head attention mechanism (SCRMHA). SCRMHA captures the vector representation of entire code segments, enabling it to focus on different positions of the input sequence, capture richer semantic information, and simultaneously process different aspects and relationships of the sequence. Moreover, it can calculate multiple attention heads in parallel, speeding up the computational process. We evaluate SCRMHA on both the standard dataset and an actual industrial dataset, and analyze the differences between these two datasets. Experiment results in code classification and clone detection tasks show that SCRMHA consumes less time and reduces complexity by about one-third compared with traditional source code feature representation methods. The results demonstrate that SCRMHA reduces the computational complexity and time consumption of the model while maintaining accuracy.