Fengming Zhang
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Fengming Zhang has a total of 9 co-authors. Here are the top co-authors by number of shared publications:
- Bin Guo
Northwestern Polytechnical University
1 shared publication Guorong Huang
Engineering College, Air Force Engineering University, Xi' an, China
1 shared publication- Jiaqi Liu
Northwestern Polytechnical University, Xi’an, China
1 shared publication Jiyong Du
Engineering College, Air Force Engineering University, Xi' an, China
1 shared publication- Liang Wang
Northwestern Polytechnical University
1 shared publication - Xin Zhang
School of Computer Science, Northwestern Polytechnical University, Xian, China
1 shared publication
Latest Publications
- 20 March 2024
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 50 (5) , 1163-1181
hmCodeTrans: Human–Machine Interactive Code Translation
Code translation, i.e., translating one kind of code language to another, plays an important role in scenarios such as application modernization and multi-language versions of applications on different platforms. Even the most advanced machine-based code translation methods can not guarantee an error-free result. Therefore, the participance of software engineer is necessary. Considering both accuracy and efficiency, it is suggested to work in a human-machine collaborative way. However, in many realistic scenarios, human and machine collaborate ineffectively - model translates first and then human makes further editing, without any interaction. To solve this problem, we propose hmCodeTrans, a novel method that achieves code translation in an interactive human-machine collaborative way . It can (1) save the human effort by introducing two novel human-machine collaboration patterns: prefix-based and segment-based ones, which feed the software engineer’s sequential or scattered editing back to model and thus enabling the model to make a better retranslation; (2) reduce the response time based on two proposed modules: attention cache module that avoids duplicate prefix inference with cached attention information, and suffix splicing module that reduces invalid suffix inference by splicing a predefined suffix. The experiments are conducted on two real datasets. Results show that compared with the baselines, our approach can effectively save the human effort and reduce the response time. Last but not least, a user study involving five real software engineers is given, which validates that the proposed approach owns the lowest human effort and shows the users’ satisfaction towards the approach.
- 20 March 2024
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 50 (5) , 1163-1181
hmCodeTrans: Human–Machine Interactive Code Translation
Code translation, i.e., translating one kind of code language to another, plays an important role in scenarios such as application modernization and multi-language versions of applications on different platforms. Even the most advanced machine-based code translation methods can not guarantee an error-free result. Therefore, the participance of software engineer is necessary. Considering both accuracy and efficiency, it is suggested to work in a human-machine collaborative way. However, in many realistic scenarios, human and machine collaborate ineffectively - model translates first and then human makes further editing, without any interaction. To solve this problem, we propose hmCodeTrans, a novel method that achieves code translation in an interactive human-machine collaborative way . It can (1) save the human effort by introducing two novel human-machine collaboration patterns: prefix-based and segment-based ones, which feed the software engineer’s sequential or scattered editing back to model and thus enabling the model to make a better retranslation; (2) reduce the response time based on two proposed modules: attention cache module that avoids duplicate prefix inference with cached attention information, and suffix splicing module that reduces invalid suffix inference by splicing a predefined suffix. The experiments are conducted on two real datasets. Results show that compared with the baselines, our approach can effectively save the human effort and reduce the response time. Last but not least, a user study involving five real software engineers is given, which validates that the proposed approach owns the lowest human effort and shows the users’ satisfaction towards the approach.
- 1 June 2011
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 33, 325-329
A new initializing mechanism in Particle Swarm Optimization
Particle Swarm Optimization (PSO) is known to suffer from premature convergence prior to discovering the true global minimizer. In this paper, a novel initializing mechanism is proposed, which aims to liberate particles from the state of premature convergence. This is done by automatically initializing the swarm once particles have converged to local minima, which is detected by the proposed criterion. An inertia weight function is also designed to balance the global and local search ability. The adaptive weight PSO with initializing mechanism (IAWPSO) provides an efficient mechanism by making good use of the state of the swarm at premature convergence. Results suggest that IAWPSO is less problem-dependent and consequently provides more consistent performance than the comparison algorithms across the benchmark suite used for testing.
- 1 June 2011
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- Vol. 33, 325-329
A new initializing mechanism in Particle Swarm Optimization
Particle Swarm Optimization (PSO) is known to suffer from premature convergence prior to discovering the true global minimizer. In this paper, a novel initializing mechanism is proposed, which aims to liberate particles from the state of premature convergence. This is done by automatically initializing the swarm once particles have converged to local minima, which is detected by the proposed criterion. An inertia weight function is also designed to balance the global and local search ability. The adaptive weight PSO with initializing mechanism (IAWPSO) provides an efficient mechanism by making good use of the state of the swarm at premature convergence. Results suggest that IAWPSO is less problem-dependent and consequently provides more consistent performance than the comparison algorithms across the benchmark suite used for testing.