Mingliang Li
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Research Subjects
Mingliang Li has a total of 8 co-authors. Here are the top co-authors by number of shared publications:
- Nan Jia
School of Information Engineering, Hebei GEO University, Shijiazhuang, China
2 shared publications - Jie Chen
Guangzhou University of Chinese Medicine, Guangzhou 510405, China; Lingnan Medical Research Center, Guangzhou University of Chinese Medicine, Guangzhou 510405, China; The First Affiliated Hospital, Guangzhou University of Chinese Medicine, Guangzhou 510405, China; National Key Laboratory of Traditional Chinese Medicine Syndrome, Guangzhou 510405, China
1 shared publication - Pengfei Lin1 shared publication
- Rongzheng Wang
School of Data and Computer Science, Sun Yat-sen University, Guangzhou, China
1 shared publication Wangchao Sang
1 shared publication- Xiangping Chen1 shared publication
Latest Publications
- Open Access
CoHalLo: code hallucination localization via probing hidden layer vector
The localization of code hallucinations aims to identify specific lines of code containing hallucinations, helping developers to improve the reliability of AI-generated code more efficiently. Although recent studies have adopted several methods to detect code hallucination, most of these approaches remain limited to coarse-grained detection and lack specialized techniques for fine-grained hallucination localization. This study introduces a novel method, called CoHalLo, which achieves line-level code hallucination localization by probing the hidden-layer vectors from hallucination detection models. CoHalLo uncovers the key syntactic information driving the model's hallucination judgments and locates the hallucinating code lines accordingly. Specifically, we first fine-tune the hallucination detection model on manually annotated datasets to ensure that it learns features pertinent to code syntactic information. Subsequently, we designed a probe network that projects high-dimensional latent vectors onto a low-dimensional syntactic subspace, generating vector tuples and reconstructing the predicted abstract syntax tree (P-AST). By comparing P-AST with the original abstract syntax tree (O-AST) extracted from the input AI-generated code, we identify the key syntactic structures associated with hallucinations. This information is then used to pinpoint hallucinated code lines. To evaluate CoHalLo's performance, we manually collected a dataset of code hallucinations. The experimental results show that CoHalLo achieves a Top-1 accuracy of 0.4253, Top-3 accuracy of 0.6149, Top-5 accuracy of 0.7356, Top-10 accuracy of 0.8333, IFA of 5.73, Recall@1% Effort of 0.052721, and Effort@20% Recall of 0.155269, which outperforms the baseline methods.
Open AccessCoHalLo: code hallucination localization via probing hidden layer vector
The localization of code hallucinations aims to identify specific lines of code containing hallucinations, helping developers to improve the reliability of AI-generated code more efficiently. Although recent studies have adopted several methods to detect code hallucination, most of these approaches remain limited to coarse-grained detection and lack specialized techniques for fine-grained hallucination localization. This study introduces a novel method, called CoHalLo, which achieves line-level code hallucination localization by probing the hidden-layer vectors from hallucination detection models. CoHalLo uncovers the key syntactic information driving the model's hallucination judgments and locates the hallucinating code lines accordingly. Specifically, we first fine-tune the hallucination detection model on manually annotated datasets to ensure that it learns features pertinent to code syntactic information. Subsequently, we designed a probe network that projects high-dimensional latent vectors onto a low-dimensional syntactic subspace, generating vector tuples and reconstructing the predicted abstract syntax tree (P-AST). By comparing P-AST with the original abstract syntax tree (O-AST) extracted from the input AI-generated code, we identify the key syntactic structures associated with hallucinations. This information is then used to pinpoint hallucinated code lines. To evaluate CoHalLo's performance, we manually collected a dataset of code hallucinations. The experimental results show that CoHalLo achieves a Top-1 accuracy of 0.4253, Top-3 accuracy of 0.6149, Top-5 accuracy of 0.7356, Top-10 accuracy of 0.8333, IFA of 5.73, Recall@1% Effort of 0.052721, and Effort@20% Recall of 0.155269, which outperforms the baseline methods.
- 11 January 2024
- Published by Springer Nature in Soft Computing
- Vol. 28 (9-10) , 6893-6908
Towards automatically generating meal plan based on genetic algorithm
- 11 January 2024
- Published by Springer Nature in Soft Computing
- Vol. 28 (9-10) , 6893-6908
Towards automatically generating meal plan based on genetic algorithm