Wen Zhang, Jiangpeng Zhao, Guangjie Qin, Song Wang
{"title":"基于动态对抗自适应自编码器的跨项目缺陷预测","authors":"Wen Zhang, Jiangpeng Zhao, Guangjie Qin, Song Wang","doi":"10.1007/s10489-024-06087-5","DOIUrl":null,"url":null,"abstract":"<div><p>Cross-project defect prediction enables a target software project with limited defect data to build a defect prediction model by leveraging abundant data in the source project. However, existing methods of cross-project defect prediction ignore the relative importance of global and local distributions in learning project-invariant feature spaces. This paper proposes a novel approach for cross-project defect prediction called Adan (autoencoder with dynamic adversarial adaptation) to dynamically adjust a project-invariant feature space by aligning global and local distributions simultaneously with adversarial learning. Specifically, the au-encoder was adopted to produce a latent space used as a project-invariant feature space for source and target artifacts. Global and local discriminators were used to adjust the latent space to ensure that representations of source and target artifacts in the project-invariant feature space have approximate global distribution and local distribution, respectively. The prediction model for the target artifacts was then trained using representations of the source artifacts in the project-invariant feature space. Experiments on four open-source projects with 12 pairs of tasks on cross-project defect prediction demonstrated that the proposed Adan approach outperformed state-of-the-art techniques, with an average improvement of 8.42% in terms of AUC.</p></div>","PeriodicalId":8041,"journal":{"name":"Applied Intelligence","volume":"55 5","pages":""},"PeriodicalIF":3.4000,"publicationDate":"2025-01-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Cross-project defect prediction based on autoencoder with dynamic adversarial adaptation\",\"authors\":\"Wen Zhang, Jiangpeng Zhao, Guangjie Qin, Song Wang\",\"doi\":\"10.1007/s10489-024-06087-5\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>Cross-project defect prediction enables a target software project with limited defect data to build a defect prediction model by leveraging abundant data in the source project. However, existing methods of cross-project defect prediction ignore the relative importance of global and local distributions in learning project-invariant feature spaces. This paper proposes a novel approach for cross-project defect prediction called Adan (autoencoder with dynamic adversarial adaptation) to dynamically adjust a project-invariant feature space by aligning global and local distributions simultaneously with adversarial learning. Specifically, the au-encoder was adopted to produce a latent space used as a project-invariant feature space for source and target artifacts. Global and local discriminators were used to adjust the latent space to ensure that representations of source and target artifacts in the project-invariant feature space have approximate global distribution and local distribution, respectively. The prediction model for the target artifacts was then trained using representations of the source artifacts in the project-invariant feature space. Experiments on four open-source projects with 12 pairs of tasks on cross-project defect prediction demonstrated that the proposed Adan approach outperformed state-of-the-art techniques, with an average improvement of 8.42% in terms of AUC.</p></div>\",\"PeriodicalId\":8041,\"journal\":{\"name\":\"Applied Intelligence\",\"volume\":\"55 5\",\"pages\":\"\"},\"PeriodicalIF\":3.4000,\"publicationDate\":\"2025-01-15\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Applied Intelligence\",\"FirstCategoryId\":\"94\",\"ListUrlMain\":\"https://link.springer.com/article/10.1007/s10489-024-06087-5\",\"RegionNum\":2,\"RegionCategory\":\"计算机科学\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q2\",\"JCRName\":\"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Applied Intelligence","FirstCategoryId":"94","ListUrlMain":"https://link.springer.com/article/10.1007/s10489-024-06087-5","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
Cross-project defect prediction based on autoencoder with dynamic adversarial adaptation
Cross-project defect prediction enables a target software project with limited defect data to build a defect prediction model by leveraging abundant data in the source project. However, existing methods of cross-project defect prediction ignore the relative importance of global and local distributions in learning project-invariant feature spaces. This paper proposes a novel approach for cross-project defect prediction called Adan (autoencoder with dynamic adversarial adaptation) to dynamically adjust a project-invariant feature space by aligning global and local distributions simultaneously with adversarial learning. Specifically, the au-encoder was adopted to produce a latent space used as a project-invariant feature space for source and target artifacts. Global and local discriminators were used to adjust the latent space to ensure that representations of source and target artifacts in the project-invariant feature space have approximate global distribution and local distribution, respectively. The prediction model for the target artifacts was then trained using representations of the source artifacts in the project-invariant feature space. Experiments on four open-source projects with 12 pairs of tasks on cross-project defect prediction demonstrated that the proposed Adan approach outperformed state-of-the-art techniques, with an average improvement of 8.42% in terms of AUC.
期刊介绍:
With a focus on research in artificial intelligence and neural networks, this journal addresses issues involving solutions of real-life manufacturing, defense, management, government and industrial problems which are too complex to be solved through conventional approaches and require the simulation of intelligent thought processes, heuristics, applications of knowledge, and distributed and parallel processing. The integration of these multiple approaches in solving complex problems is of particular importance.
The journal presents new and original research and technological developments, addressing real and complex issues applicable to difficult problems. It provides a medium for exchanging scientific research and technological achievements accomplished by the international community.