Mingyang Geng

Dr. Mingyang Geng

orcid

Research Focus & Metrics

Academic Career Length

9Years (2018-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
6 February 2024
Verified
Conference Paper
Open access
MGMingyang Geng
Mingyang Geng
NTNATIONAL UNIVERSITY OF TECHNOLOGY
NATIONAL UNIVERSITY OF TECHNOLOGY
DDDezun Dong
Dezun Dong
HWHaotian Wang
Haotian Wang
GLGe Li
Ge Li
XLXiangke Liao
Xiangke Liao
Code comment generation aims at generating natural language descriptions for a code snippet to facilitate developers' program comprehension activities. Despite being studied for a long time, a bottleneck for existing approaches is that given a code snippet, they can only generate one comment while developers usually need to know information from diverse perspectives such as what is the functionality of this code snippet and how to use it. To tackle this limitation, this study empirically investigates the feasibility of utilizing large language models (LLMs) to generate comments that can fulfill developers' diverse intents. Our intuition is based on the facts that (1) the code and its pairwise comment are used during the pre-training process of LLMs to build the semantic connection between the natural language and programming language, and (2) comments in the real-world projects, which are collected for the pre-training, usually contain different developers' intents. We thus postulate that the LLMs can already understand the code from different perspectives after the pre-training. Indeed, experiments on two large-scale datasets demonstrate the rationale of our insights: by adopting the in-context learning paradigm and giving adequate prompts to the LLM (e.g., providing it with ten or more examples), the LLM can significantly outperform a state-of-the-art supervised learning approach on generating comments with multiple intents. Results also show that customized strategies for constructing the prompts and post-processing strategies for reranking the results can both boost the LLM's performances, which shed light on future research directions for using LLMs to achieve comment generation.

30 March 2023 in ACM Transactions on Software Engineering and Methodology
Verified
Journal Article
Open access
CZChen Zeng
Chen Zeng
YYYue Yu
Yue Yu
SLShanshan Li
Shanshan Li
XXXin Xia
Xin Xia
ZWZhiming Wang
Zhiming Wang
XLXiangke Liao
Xiangke Liao
With the rapid increase of public code repositories, developers maintain a great desire to retrieve precise code snippets by using natural language. Despite existing deep learning-based approaches that provide end-to-end solutions (i.e., accept natural language as queries and show related code fragments), the performance of code search in the large-scale repositories is still low in accuracy because of the code representation (e.g., AST) and modeling (e.g., directly fusing features in the attention stage). In this paper, we propose a novel learnable de ep G raph for C ode S earch (called deGraphCS ) to transfer source code into variable-based flow graphs based on an intermediate representation technique, which can model code semantics more precisely than directly processing the code as text or using the syntax tree representation. Furthermore, we propose a graph optimization mechanism to refine the code representation and apply an improved gated graph neural network to model variable-based flow graphs. To evaluate the effectiveness of deGraphCS , we collect a large-scale dataset from GitHub containing 41,152 code snippets written in the C language and reproduce several typical deep code search methods for comparison. The experimental results show that deGraphCS can achieve state-of-the-art performance and accurately retrieve code snippets satisfying the needs of the users.

30 November 2023
Verified
Conference Paper
Open access
NTNATIONAL UNIVERSITY OF TECHNOLOGY
NATIONAL UNIVERSITY OF TECHNOLOGY
MGMingyang Geng
Mingyang Geng
BLBo Lin
Bo Lin
ZSZhensu Sun
Zhensu Sun
MWMing Wen
Ming Wen
XMXiaoguang Mao
Xiaoguang Mao

19 March 2019 in Entropy
Verified
Journal Article
Open access
PDF file
MGMingyang Geng
Mingyang Geng
KXKele Xu
Kele Xu
XZXing Zhou
Xing Zhou
BDBo Ding
Bo Ding
HWHuaimin Wang
Huaimin Wang
HHhaha haha
haha haha
In a decentralized multi-robot exploration problem, the robots have to cooperate effectively to map a strange environment as soon as possible without a centralized controller. In the past few decades, a set of “human-designed” cooperation strategies have been proposed to address this problem, such as the well-known frontier-based approach. However, many real-world settings, especially the ones that are constantly changing, are too complex for humans to design efficient and decentralized strategies. This paper presents a novel approach, the Attention-based Communication neural network (CommAttn), to “learn” the cooperation strategies automatically in the decentralized multi-robot exploration problem. The communication neural network enables the robots to learn the cooperation strategies with explicit communication. Moreover, the attention mechanism we introduced additionally can precisely calculate whether the communication is necessary for each pair of agents by considering the relevance of each received message, which enables the robots to communicate only with the necessary partners. The empirical results on a simulated multi-robot disaster exploration scenario demonstrate that our proposal outperforms the traditional “human-designed” methods, as well as other competing “learning-based” methods in the exploration task.

19 June 2019 in Circuits, Systems, and Signal Processing
Verified
Journal Article
Closed access
PDF file
MGMingyang Geng
Mingyang Geng
SSSuning Shang
Suning Shang
BDBo Ding
Bo Ding
HWHuaimin Wang
Huaimin Wang
PZPengfei Zhang
Pengfei Zhang

31 August 2021 in Entropy
Verified
Journal Article
Open access
PDF file
SGShanzhi Gu
Shanzhi Gu
MGMingyang Geng
Mingyang Geng
LLLong Lan
Long Lan
The aim of multi-agent reinforcement learning systems is to provide interacting agents with the ability to collaboratively learn and adapt to the behavior of other agents. Typically, an agent receives its private observations providing a partial view of the true state of the environment. However, in realistic settings, the harsh environment might cause one or more agents to show arbitrarily faulty or malicious behavior, which may suffice to allow the current coordination mechanisms fail. In this paper, we study a practical scenario of multi-agent reinforcement learning systems considering the security issues in the presence of agents with arbitrarily faulty or malicious behavior. The previous state-of-the-art work that coped with extremely noisy environments was designed on the basis that the noise intensity in the environment was known in advance. However, when the noise intensity changes, the existing method has to adjust the configuration of the model to learn in new environments, which limits the practical applications. To overcome these difficulties, we present an Attention-based Fault-Tolerant (FT-Attn) model, which can select not only correct, but also relevant information for each agent at every time step in noisy environments. The multihead attention mechanism enables the agents to learn effective communication policies through experience concurrent with the action policies. Empirical results showed that FT-Attn beats previous state-of-the-art methods in some extremely noisy environments in both cooperative and competitive scenarios, much closer to the upper-bound performance. Furthermore, FT-Attn maintains a more general fault tolerance ability and does not rely on the prior knowledge about the noise intensity of the environment.