{"id":"https://openalex.org/W4415310423","doi":"https://doi.org/10.48550/arxiv.2507.13123","title":"Detecting LLM-generated Code with Subtle Modification by Adversarial Training","display_name":"Detecting LLM-generated Code with Subtle Modification by Adversarial Training","alternate_titles":[],"publication_year":2025,"publication_date":"2025-07-17","ids":{"openalex":"https://openalex.org/W4415310423","doi":"https://doi.org/10.48550/arxiv.2507.13123","arxiv":"https://arxiv.org/abs/2507.13123"},"language":"en","primary_location":{"id":"pmh:oai:arXiv.org:2507.13123","doi":null,"is_oa":true,"landing_page_url":"http://arxiv.org/abs/2507.13123","pdf_url":"https://arxiv.org/pdf/2507.13123","source":{"id":"https://openalex.org/S4306400194","display_name":"arXiv (Cornell University)","issn_l":"2331-8422","issn":["2331-8422"],"is_oa":true,"is_in_doaj":false,"is_core":false,"listed_in":[],"host_organization":"https://openalex.org/I205783295","host_organization_name":"Cornell University","host_organization_lineage":["https://openalex.org/I205783295"],"host_organization_lineage_names":[],"type":"repository"},"license":null,"license_id":null,"version":"submittedVersion","is_accepted":false,"is_published":false,"raw_source_name":null,"raw_type":"text"},"parent_works":[],"lineage":["https://openalex.org/W4415310423"],"child_works_count":0,"type":"preprint","is_traditional":true,"indexed_in":["arxiv","datacite"],"open_access":{"is_oa":true,"oa_status":"green","oa_url":"https://arxiv.org/pdf/2507.13123","any_repository_has_fulltext":true},"authorships":[{"author_position":"first","author":{"id":"https://openalex.org/A5101970951","display_name":"Xin Yin","orcid":"https://orcid.org/0000-0002-9599-9042","observed_orcids":["https://orcid.org/0000-0002-9599-9042"]},"institutions":[],"countries":[],"is_corresponding":false,"contributor_roles":[],"raw_author_name":"Yin, Xin","raw_affiliation_strings":["XIAOHU YANG ,"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"XIAOHU YANG ,","institution_ids":[]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5100601321","display_name":"Xinrui Li","orcid":"https://orcid.org/0000-0003-0211-4215","observed_orcids":["https://orcid.org/0000-0003-0211-4215"]},"institutions":[{"id":"https://openalex.org/I76130692","display_name":"Zhejiang University","ror":"https://ror.org/00a2xv884","country_code":"CN","type":"education","lineage":["https://openalex.org/I76130692"]}],"countries":["CN"],"is_corresponding":false,"contributor_roles":[],"raw_author_name":"Li, Xinrui","raw_affiliation_strings":["The State Key Laboratory of Blockchain and Data Security , Zhejiang University , Hangzhou , China,"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"The State Key Laboratory of Blockchain and Data Security , Zhejiang University , Hangzhou , China,","institution_ids":["https://openalex.org/I76130692"]}]},{"author_position":"middle","author":{"id":null,"display_name":"Ni, Chao","orcid":null,"observed_orcids":[]},"institutions":[{"id":"https://openalex.org/I76130692","display_name":"Zhejiang University","ror":"https://ror.org/00a2xv884","country_code":"CN","type":"education","lineage":["https://openalex.org/I76130692"]}],"countries":["CN"],"is_corresponding":false,"contributor_roles":[],"raw_author_name":"Ni, Chao","raw_affiliation_strings":["The State Key Laboratory of Blockchain and Data Security , Zhejiang University , China","XIAOHU YANG ,"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"The State Key Laboratory of Blockchain and Data Security , Zhejiang University , China","institution_ids":["https://openalex.org/I76130692"]},{"raw_affiliation_string":"XIAOHU YANG ,","institution_ids":[]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5100620030","display_name":"Xiaodan Xu","orcid":"https://orcid.org/0000-0002-9650-9156","observed_orcids":["https://orcid.org/0000-0002-9650-9156"]},"institutions":[{"id":"https://openalex.org/I76130692","display_name":"Zhejiang University","ror":"https://ror.org/00a2xv884","country_code":"CN","type":"education","lineage":["https://openalex.org/I76130692"]}],"countries":["CN"],"is_corresponding":false,"contributor_roles":[],"raw_author_name":"Xu, Xiaodan","raw_affiliation_strings":["Hangzhou High-Tech Zone (Binjiang) Blockchain and Data Security Research Institute , Hangzhou , China","The State Key Laboratory of Blockchain and Data Security , Zhejiang University , Hangzhou , China,"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"Hangzhou High-Tech Zone (Binjiang) Blockchain and Data Security Research Institute , Hangzhou , China","institution_ids":[]},{"raw_affiliation_string":"The State Key Laboratory of Blockchain and Data Security , Zhejiang University , Hangzhou , China,","institution_ids":["https://openalex.org/I76130692"]}]},{"author_position":"last","author":{"id":"https://openalex.org/A5101577570","display_name":"Xiaohu Yang","orcid":"https://orcid.org/0000-0003-4111-4189","observed_orcids":["https://orcid.org/0000-0003-4111-4189"]},"institutions":[{"id":"https://openalex.org/I76130692","display_name":"Zhejiang University","ror":"https://ror.org/00a2xv884","country_code":"CN","type":"education","lineage":["https://openalex.org/I76130692"]}],"countries":["CN"],"is_corresponding":false,"contributor_roles":[],"raw_author_name":"Yang, Xiaohu","raw_affiliation_strings":["The State Key Laboratory of Blockchain and Data Security , Zhejiang University , China"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"The State Key Laboratory of Blockchain and Data Security , Zhejiang University , China","institution_ids":["https://openalex.org/I76130692"]}]}],"institutions":[],"countries_distinct_count":1,"institutions_distinct_count":1,"corresponding_author_ids":[],"corresponding_institution_ids":[],"apc_list":null,"apc_paid":null,"fwci":null,"has_fulltext":true,"cited_by_count":7,"reviewed_by_count":0,"citation_normalized_percentile":null,"cited_by_percentile_year":null,"biblio":{"volume":null,"issue":null,"first_page":null,"last_page":null},"is_retracted":false,"is_pulled":false,"is_paratext":false,"is_xpac":false,"primary_topic":{"id":"https://openalex.org/T10260","display_name":"Software Engineering Research","score":0.9653000235557556,"subfield":{"id":"https://openalex.org/subfields/1710","display_name":"Information Systems"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}},"topics":[{"id":"https://openalex.org/T10260","display_name":"Software Engineering Research","score":0.9653000235557556,"subfield":{"id":"https://openalex.org/subfields/1710","display_name":"Information Systems"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}},{"id":"https://openalex.org/T11689","display_name":"Adversarial Robustness in Machine Learning","score":0.020999999716877937,"subfield":{"id":"https://openalex.org/subfields/1702","display_name":"Artificial Intelligence"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}},{"id":"https://openalex.org/T12357","display_name":"Digital Media Forensic Detection","score":0.0019000000320374966,"subfield":{"id":"https://openalex.org/subfields/1707","display_name":"Computer Vision and Pattern Recognition"},"field":{"id":"https://openalex.org/fields/17","display_name":"Computer Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}}],"keywords":[{"id":"https://openalex.org/keywords/adversarial-training","display_name":"adversarial training","score":0.9369999766349792},{"id":"https://openalex.org/keywords/adversarial-sample-generation","display_name":"adversarial sample generation","score":0.8389999866485596},{"id":"https://openalex.org/keywords/source-code-plagiarism-detection","display_name":"code plagiarism detection","score":0.5950000286102295},{"id":"https://openalex.org/keywords/code-provenance","display_name":"code provenance","score":0.5960000157356262},{"id":"https://openalex.org/keywords/mist","display_name":"mist","score":0.5569999814033508},{"id":"https://openalex.org/keywords/robustness-to-input-perturbations","display_name":"robustness to input perturbations","score":0.734000027179718}],"concepts":[{"id":"https://openalex.org/C37736160","wikidata":"https://www.wikidata.org/wiki/Q1801315","display_name":"Adversarial system","level":2,"score":0.9032999873161316},{"id":"https://openalex.org/C41008148","wikidata":"https://www.wikidata.org/wiki/Q21198","display_name":"Computer science","level":0,"score":0.7444999814033508},{"id":"https://openalex.org/C63479239","wikidata":"https://www.wikidata.org/wiki/Q7353546","display_name":"Robustness (evolution)","level":3,"score":0.7228999733924866},{"id":"https://openalex.org/C154504017","wikidata":"https://www.wikidata.org/wiki/Q853614","display_name":"Identifier","level":2,"score":0.659500002861023},{"id":"https://openalex.org/C43126263","wikidata":"https://www.wikidata.org/wiki/Q128751","display_name":"Source code","level":2,"score":0.5663999915122986},{"id":"https://openalex.org/C2776760102","wikidata":"https://www.wikidata.org/wiki/Q5139990","display_name":"Code (set theory)","level":3,"score":0.4862000048160553},{"id":"https://openalex.org/C154945302","wikidata":"https://www.wikidata.org/wiki/Q11660","display_name":"Artificial intelligence","level":1,"score":0.4666000008583069},{"id":"https://openalex.org/C119857082","wikidata":"https://www.wikidata.org/wiki/Q2539","display_name":"Machine learning","level":1,"score":0.45730000734329224},{"id":"https://openalex.org/C179518139","wikidata":"https://www.wikidata.org/wiki/Q5140297","display_name":"Coding (social sciences)","level":2,"score":0.44909998774528503},{"id":"https://openalex.org/C51632099","wikidata":"https://www.wikidata.org/wiki/Q3985153","display_name":"Training set","level":2,"score":0.3955000042915344},{"id":"https://openalex.org/C124101348","wikidata":"https://www.wikidata.org/wiki/Q172491","display_name":"Data mining","level":1,"score":0.3560999929904938},{"id":"https://openalex.org/C177264268","wikidata":"https://www.wikidata.org/wiki/Q1514741","display_name":"Set (abstract data type)","level":2,"score":0.3472999930381775},{"id":"https://openalex.org/C169903167","wikidata":"https://www.wikidata.org/wiki/Q3985153","display_name":"Test set","level":2,"score":0.34549999237060547},{"id":"https://openalex.org/C150292731","wikidata":"https://www.wikidata.org/wiki/Q1342704","display_name":"Code review","level":5,"score":0.3228999972343445},{"id":"https://openalex.org/C113775141","wikidata":"https://www.wikidata.org/wiki/Q428691","display_name":"Computer engineering","level":1,"score":0.271699994802475},{"id":"https://openalex.org/C53942775","wikidata":"https://www.wikidata.org/wiki/Q1211721","display_name":"Code coverage","level":3,"score":0.2703000009059906},{"id":"https://openalex.org/C199519371","wikidata":"https://www.wikidata.org/wiki/Q942695","display_name":"Source lines of code","level":3,"score":0.26910001039505005},{"id":"https://openalex.org/C165696696","wikidata":"https://www.wikidata.org/wiki/Q11287","display_name":"Exploit","level":2,"score":0.2662000060081482},{"id":"https://openalex.org/C128942645","wikidata":"https://www.wikidata.org/wiki/Q1568346","display_name":"Test case","level":3,"score":0.25589999556541443},{"id":"https://openalex.org/C133162039","wikidata":"https://www.wikidata.org/wiki/Q1061077","display_name":"Code generation","level":3,"score":0.25459998846054077}],"mesh":[],"locations_count":2,"locations":[{"id":"pmh:oai:arXiv.org:2507.13123","doi":null,"is_oa":true,"landing_page_url":"http://arxiv.org/abs/2507.13123","pdf_url":"https://arxiv.org/pdf/2507.13123","source":{"id":"https://openalex.org/S4306400194","display_name":"arXiv (Cornell University)","issn_l":"2331-8422","issn":["2331-8422"],"is_oa":true,"is_in_doaj":false,"is_core":false,"listed_in":[],"host_organization":"https://openalex.org/I205783295","host_organization_name":"Cornell University","host_organization_lineage":["https://openalex.org/I205783295"],"host_organization_lineage_names":[],"type":"repository"},"license":null,"license_id":null,"version":"submittedVersion","is_accepted":false,"is_published":false,"raw_source_name":null,"raw_type":"text"},{"id":"doi:10.48550/arxiv.2507.13123","doi":"https://doi.org/10.48550/arxiv.2507.13123","is_oa":true,"landing_page_url":"https://doi.org/10.48550/arxiv.2507.13123","pdf_url":null,"source":{"id":"https://openalex.org/S4306400194","display_name":"arXiv (Cornell University)","issn_l":"2331-8422","issn":["2331-8422"],"is_oa":true,"is_in_doaj":false,"is_core":false,"listed_in":[],"host_organization":"https://openalex.org/I205783295","host_organization_name":"Cornell University","host_organization_lineage":["https://openalex.org/I205783295"],"host_organization_lineage_names":[],"type":"repository"},"license":null,"license_id":null,"version":null,"is_accepted":false,"is_published":false,"raw_source_name":null,"raw_type":"Preprint"}],"best_oa_location":{"id":"pmh:oai:arXiv.org:2507.13123","doi":null,"is_oa":true,"landing_page_url":"http://arxiv.org/abs/2507.13123","pdf_url":"https://arxiv.org/pdf/2507.13123","source":{"id":"https://openalex.org/S4306400194","display_name":"arXiv (Cornell University)","issn_l":"2331-8422","issn":["2331-8422"],"is_oa":true,"is_in_doaj":false,"is_core":false,"listed_in":[],"host_organization":"https://openalex.org/I205783295","host_organization_name":"Cornell University","host_organization_lineage":["https://openalex.org/I205783295"],"host_organization_lineage_names":[],"type":"repository"},"license":null,"license_id":null,"version":"submittedVersion","is_accepted":false,"is_published":false,"raw_source_name":null,"raw_type":"text"},"sustainable_development_goals":[],"study_designs":[],"awards":[{"id":"https://openalex.org/G3041480715","display_name":null,"funder_award_id":"2022J184","funder_id":"https://openalex.org/F4320332587","funder_display_name":"Natural Science Foundation of Ningbo"},{"id":"https://openalex.org/G4211035328","display_name":"\u6570\u636e\u9a71\u52a8\u7684\u8f6f\u4ef6\u6f0f\u6d1e\u68c0\u6d4b\u3001\u8bc4\u4f30\u548c\u89e3\u91ca\u6280\u672f\u7814\u7a76","funder_award_id":"LY24F020008","funder_id":"https://openalex.org/F4320338464","funder_display_name":"Natural Science Foundation of Zhejiang Province"},{"id":"https://openalex.org/G5088726832","display_name":null,"funder_award_id":"62202419","funder_id":"https://openalex.org/F4320321001","funder_display_name":"National Natural Science Foundation of China"},{"id":"https://openalex.org/G5286106294","display_name":null,"funder_award_id":"226-202200064","funder_id":"https://openalex.org/F4320335787","funder_display_name":"Fundamental Research Funds for the Central Universities"}],"funders":[{"id":"https://openalex.org/F4320321001","display_name":"National Natural Science Foundation of China","ror":"https://ror.org/01h0zpd94"},{"id":"https://openalex.org/F4320322927","display_name":"Zhejiang University","ror":"https://ror.org/00a2xv884"},{"id":"https://openalex.org/F4320332587","display_name":"Natural Science Foundation of Ningbo","ror":"https://ror.org/01h0zpd94"},{"id":"https://openalex.org/F4320335787","display_name":"Fundamental Research Funds for the Central Universities","ror":null},{"id":"https://openalex.org/F4320338464","display_name":"Natural Science Foundation of Zhejiang Province","ror":"https://ror.org/01h0zpd94"}],"has_content":{"grobid_xml":true,"pdf":true},"content_urls":{"pdf":"https://content.openalex.org/works/W4415310423.pdf","grobid_xml":"https://content.openalex.org/works/W4415310423.grobid-xml"},"referenced_works_count":52,"referenced_works":["https://openalex.org/W2949028947","https://openalex.org/W2980634774","https://openalex.org/W2997451752","https://openalex.org/W3004658838","https://openalex.org/W3011222537","https://openalex.org/W3014153848","https://openalex.org/W3015001695","https://openalex.org/W3047099251","https://openalex.org/W3123684396","https://openalex.org/W3125715145","https://openalex.org/W3198685994","https://openalex.org/W4210772589","https://openalex.org/W4220722393","https://openalex.org/W4224287853","https://openalex.org/W4226004737","https://openalex.org/W4229005866","https://openalex.org/W4285490465","https://openalex.org/W4308641648","https://openalex.org/W4308732630","https://openalex.org/W4312051216","https://openalex.org/W4312221812","https://openalex.org/W4317553041","https://openalex.org/W4318149317","https://openalex.org/W4320009668","https://openalex.org/W4376652802","https://openalex.org/W4377090033","https://openalex.org/W4377864601","https://openalex.org/W4378770589","https://openalex.org/W4378771263","https://openalex.org/W4385477851","https://openalex.org/W4386185625","https://openalex.org/W4387559726","https://openalex.org/W4388483038","https://openalex.org/W4389158416","https://openalex.org/W4389519406","https://openalex.org/W4389520029","https://openalex.org/W4391282616","https://openalex.org/W4391307510","https://openalex.org/W4394859329","https://openalex.org/W4395029328","https://openalex.org/W4398766125","https://openalex.org/W4400582255","https://openalex.org/W4401042508","https://openalex.org/W4402442387","https://openalex.org/W4402457546","https://openalex.org/W4402671641","https://openalex.org/W4403182498","https://openalex.org/W4404781930","https://openalex.org/W4411552393","https://openalex.org/W4415798513","https://openalex.org/W7133209433","https://openalex.org/W7133226986"],"related_works":["https://openalex.org/W4406867827","https://openalex.org/W7166677828","https://openalex.org/W7154993647","https://openalex.org/W4389599170","https://openalex.org/W4406178927","https://openalex.org/W4387559726","https://openalex.org/W4412888305","https://openalex.org/W4416146182","https://openalex.org/W4403536507","https://openalex.org/W7151472350"],"abstract_inverted_index":{"With":[0],"the":[1,26,33,45,51,86,142,196,206,217,226],"rapid":[2],"development":[3],"of":[4,28,36,53,136,158],"Large":[5],"Language":[6],"Models":[7],"(LLMs),":[8],"their":[9],"powerful":[10],"code-generation":[11],"capabilities":[12],"have":[13,61,111],"been":[14],"widely":[15],"applied":[16],"in":[17,89],"tasks":[18],"like":[19],"code":[20,38,54,59,70,93,147],"completion":[21],"and":[22,58,71,75,82,114,131,179,188],"automated":[23],"development,":[24],"demonstrating":[25],"value":[27],"improving":[29],"coding":[30],"efficiency.":[31],"However,":[32],"extensive":[34],"use":[35,77],"LLM-generated":[37,69,92,119,129,146],"also":[39],"raises":[40],"several":[41],"new":[42],"challenges.":[43],"On":[44,85],"one":[46],"hand,":[47,88],"issues":[48],"such":[49,100],"as":[50,101],"regulation":[52],"provenance,":[55],"copyright":[56],"disputes,":[57],"quality":[60],"become":[62,79],"increasingly":[63],"concerning.":[64],"How":[65],"to":[66,97,164,234],"effectively":[67,194],"detect":[68],"ensure":[72],"its":[73],"compliant":[74],"responsible":[76],"has":[78],"a":[80,134],"critical":[81],"urgent":[83],"issue.":[84],"other":[87],"practical":[90],"applications,":[91],"is":[94,133],"often":[95],"subject":[96],"manual":[98],"modifications,":[99,151],"variable":[102],"renaming":[103],"or":[104],"structural":[105],"adjustments.":[106],"Although":[107],"some":[108],"recent":[109],"studies":[110],"proposed":[112],"training-based":[113],"zero-shot":[115],"methods":[116],"for":[117],"detecting":[118],"code,":[120,130],"these":[121],"approaches":[122],"show":[123],"insufficient":[124],"robustness":[125,166,232],"when":[126],"facing":[127],"modified":[128],"there":[132],"lack":[135],"an":[137,155,172],"effective":[138],"solution.":[139],"To":[140],"address":[141],"real-world":[143],"scenario":[144],"where":[145],"may":[148],"undergo":[149],"minor":[150],"we":[152],"propose":[153],"CodeGPTSensor+,":[154],"enhanced":[156],"version":[157],"CodeGPTSensor,":[159],"which":[160,183],"employs":[161],"adversarial":[162,173,190,201,218],"training":[163],"improve":[165],"against":[167,199],"input":[168],"perturbations.":[169],"CodeGPTSensor+":[170,211],"integrates":[171],"sample":[174],"generation":[175],"module,":[176],"Multi-objective":[177],"Identifier":[178],"Structure":[180],"Transformation":[181],"(MIST),":[182],"systematically":[184],"generates":[185],"both":[186],"high-quality":[187],"representative":[189],"samples.":[191],"This":[192],"module":[193],"enhances":[195],"model's":[197],"resistance":[198],"diverse":[200],"attacks.":[202],"Experimental":[203],"results":[204],"on":[205,216,225],"HMCorp":[207],"dataset":[208],"demonstrate":[209],"that":[210],"significantly":[212],"improves":[213],"detection":[214],"accuracy":[215,224],"test":[219,228],"set":[220],"while":[221],"maintaining":[222],"high":[223],"original":[227],"set,":[229],"showcasing":[230],"superior":[231],"compared":[233],"CodeGPTSensor.":[235]},"cited_by_api_url":"https://api.openalex.org/works?filter=cites:W4415310423","counts_by_year":[{"year":2026,"cited_by_count":5},{"year":2025,"cited_by_count":1},{"year":2024,"cited_by_count":1}],"updated_date":"2026-11-22T12:46:00.618207","created_date":"2025-10-18T00:00:00"}
