{"id":"https://openalex.org/W7139036291","doi":"https://doi.org/10.1609/aaai.v40i39.40647","title":"SRACG: A Code Generation Framework with Selective Retrieval Augmentation","display_name":"SRACG: A Code Generation Framework with Selective Retrieval Augmentation","publication_year":2026,"publication_date":"2026-03-14","ids":{"openalex":"https://openalex.org/W7139036291","doi":"https://doi.org/10.1609/aaai.v40i39.40647"},"language":"en","primary_location":{"id":"doi:10.1609/aaai.v40i39.40647","is_oa":true,"landing_page_url":"https://doi.org/10.1609/aaai.v40i39.40647","pdf_url":null,"source":{"id":"https://openalex.org/S4210191458","display_name":"Proceedings of the AAAI Conference on Artificial Intelligence","issn_l":"2159-5399","issn":["2159-5399","2374-3468"],"is_oa":true,"is_in_doaj":false,"is_core":false,"host_organization":"https://openalex.org/P4310320058","host_organization_name":"Association for the Advancement of Artificial Intelligence","host_organization_lineage":["https://openalex.org/P4310320058"],"host_organization_lineage_names":["Association for the Advancement of Artificial Intelligence"],"type":"conference"},"license":null,"license_id":null,"version":"publishedVersion","is_accepted":true,"is_published":true,"raw_source_name":"Proceedings of the AAAI Conference on Artificial Intelligence","raw_type":"journal-article"},"type":"conference-paper","indexed_in":["crossref"],"open_access":{"is_oa":true,"oa_status":"diamond","oa_url":"https://doi.org/10.1609/aaai.v40i39.40647","any_repository_has_fulltext":false},"authorships":[{"author_position":"first","author":{"id":"https://openalex.org/A5051810784","display_name":"Mengzhen Wang","orcid":"https://orcid.org/0000-0002-4086-2743"},"institutions":[{"id":"https://openalex.org/I90610280","display_name":"South China University of Technology","ror":"https://ror.org/0530pts50","country_code":"CN","type":"education","lineage":["https://openalex.org/I90610280"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Mengzhen Wang","raw_affiliation_strings":["School of Software Engineering, South China University of Technology, Guangzhou, China\nKey Laboratory of Big Data and Intelligent Robot (SCUT), Ministry of Education of China"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"School of Software Engineering, South China University of Technology, Guangzhou, China\nKey Laboratory of Big Data and Intelligent Robot (SCUT), Ministry of Education of China","institution_ids":["https://openalex.org/I90610280"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5079622391","display_name":"Shukai Ma","orcid":"https://orcid.org/0000-0002-6307-9460"},"institutions":[{"id":"https://openalex.org/I90610280","display_name":"South China University of Technology","ror":"https://ror.org/0530pts50","country_code":"CN","type":"education","lineage":["https://openalex.org/I90610280"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Shukai Ma","raw_affiliation_strings":["School of Software Engineering, South China University of Technology, Guangzhou, China"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"School of Software Engineering, South China University of Technology, Guangzhou, China","institution_ids":["https://openalex.org/I90610280"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5125729426","display_name":"Songwen Gong","orcid":null},"institutions":[{"id":"https://openalex.org/I90610280","display_name":"South China University of Technology","ror":"https://ror.org/0530pts50","country_code":"CN","type":"education","lineage":["https://openalex.org/I90610280"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Songwen Gong","raw_affiliation_strings":["School of Software Engineering, South China University of Technology, Guangzhou, China\nKey Laboratory of Big Data and Intelligent Robot (SCUT), Ministry of Education of China"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"School of Software Engineering, South China University of Technology, Guangzhou, China\nKey Laboratory of Big Data and Intelligent Robot (SCUT), Ministry of Education of China","institution_ids":["https://openalex.org/I90610280"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5130208207","display_name":"Jiexin Wang","orcid":null},"institutions":[{"id":"https://openalex.org/I90610280","display_name":"South China University of Technology","ror":"https://ror.org/0530pts50","country_code":"CN","type":"education","lineage":["https://openalex.org/I90610280"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Jiexin Wang","raw_affiliation_strings":["School of Software Engineering, South China University of Technology, Guangzhou, China\nKey Laboratory of Big Data and Intelligent Robot (SCUT), Ministry of Education of China"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"School of Software Engineering, South China University of Technology, Guangzhou, China\nKey Laboratory of Big Data and Intelligent Robot (SCUT), Ministry of Education of China","institution_ids":["https://openalex.org/I90610280"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5020272192","display_name":"Ruolin Chen","orcid":"https://orcid.org/0000-0001-8953-214X"},"institutions":[{"id":"https://openalex.org/I90610280","display_name":"South China University of Technology","ror":"https://ror.org/0530pts50","country_code":"CN","type":"education","lineage":["https://openalex.org/I90610280"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Ruolin Chen","raw_affiliation_strings":["School of Software Engineering, South China University of Technology, Guangzhou, China\nKey Laboratory of Big Data and Intelligent Robot (SCUT), Ministry of Education of China"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"School of Software Engineering, South China University of Technology, Guangzhou, China\nKey Laboratory of Big Data and Intelligent Robot (SCUT), Ministry of Education of China","institution_ids":["https://openalex.org/I90610280"]}]},{"author_position":"middle","author":{"id":"https://openalex.org/A5011706253","display_name":"Liuwen Cao","orcid":null},"institutions":[{"id":"https://openalex.org/I90610280","display_name":"South China University of Technology","ror":"https://ror.org/0530pts50","country_code":"CN","type":"education","lineage":["https://openalex.org/I90610280"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Liuwen Cao","raw_affiliation_strings":["School of Software Engineering, South China University of Technology, Guangzhou, China\nKey Laboratory of Big Data and Intelligent Robot (SCUT), Ministry of Education of China"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"School of Software Engineering, South China University of Technology, Guangzhou, China\nKey Laboratory of Big Data and Intelligent Robot (SCUT), Ministry of Education of China","institution_ids":["https://openalex.org/I90610280"]}]},{"author_position":"last","author":{"id":"https://openalex.org/A5130030777","display_name":"Yi Cai","orcid":null},"institutions":[{"id":"https://openalex.org/I90610280","display_name":"South China University of Technology","ror":"https://ror.org/0530pts50","country_code":"CN","type":"education","lineage":["https://openalex.org/I90610280"]}],"countries":["CN"],"is_corresponding":false,"raw_author_name":"Yi Cai","raw_affiliation_strings":["School of Software Engineering, South China University of Technology, Guangzhou, China\nKey Laboratory of Big Data and Intelligent Robot (SCUT), Ministry of Education of China"],"raw_orcid":null,"affiliations":[{"raw_affiliation_string":"School of Software Engineering, South China University of Technology, Guangzhou, China\nKey Laboratory of Big Data and Intelligent Robot (SCUT), Ministry of Education of China","institution_ids":["https://openalex.org/I90610280"]}]}],"institutions":[],"countries_distinct_count":1,"institutions_distinct_count":1,"corresponding_author_ids":[],"corresponding_institution_ids":["https://openalex.org/I90610280"],"apc_list":null,"apc_paid":null,"fwci":null,"has_fulltext":false,"cited_by_count":0,"citation_normalized_percentile":null,"cited_by_percentile_year":null,"biblio":{"volume":"40","issue":"39","first_page":"33584","last_page":"33592"},"is_retracted":false,"is_paratext":false,"is_xpac":false,"primary_topic":{"id":"https://openalex.org/T10028","display_name":"Topic Modeling","score":0.23649999499320984,"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"}},"topics":[{"id":"https://openalex.org/T10028","display_name":"Topic Modeling","score":0.23649999499320984,"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/T10260","display_name":"Software Engineering Research","score":0.21729999780654907,"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/T11948","display_name":"Machine Learning in Materials Science","score":0.131400004029274,"subfield":{"id":"https://openalex.org/subfields/2505","display_name":"Materials Chemistry"},"field":{"id":"https://openalex.org/fields/25","display_name":"Materials Science"},"domain":{"id":"https://openalex.org/domains/3","display_name":"Physical Sciences"}}],"keywords":[{"id":"https://openalex.org/keywords/executable","display_name":"Executable","score":0.7872999906539917},{"id":"https://openalex.org/keywords/code-generation","display_name":"Code generation","score":0.7233999967575073},{"id":"https://openalex.org/keywords/consistency","display_name":"Consistency (knowledge bases)","score":0.697700023651123},{"id":"https://openalex.org/keywords/code","display_name":"Code (set theory)","score":0.6438000202178955},{"id":"https://openalex.org/keywords/natural-language-generation","display_name":"Natural language generation","score":0.6243000030517578},{"id":"https://openalex.org/keywords/selection","display_name":"Selection (genetic algorithm)","score":0.5037000179290771},{"id":"https://openalex.org/keywords/natural-language","display_name":"Natural language","score":0.40220001339912415}],"concepts":[{"id":"https://openalex.org/C41008148","wikidata":"https://www.wikidata.org/wiki/Q21198","display_name":"Computer science","level":0,"score":0.7935000061988831},{"id":"https://openalex.org/C160145156","wikidata":"https://www.wikidata.org/wiki/Q778586","display_name":"Executable","level":2,"score":0.7872999906539917},{"id":"https://openalex.org/C133162039","wikidata":"https://www.wikidata.org/wiki/Q1061077","display_name":"Code generation","level":3,"score":0.7233999967575073},{"id":"https://openalex.org/C2776436953","wikidata":"https://www.wikidata.org/wiki/Q5163215","display_name":"Consistency (knowledge bases)","level":2,"score":0.697700023651123},{"id":"https://openalex.org/C2776760102","wikidata":"https://www.wikidata.org/wiki/Q5139990","display_name":"Code (set theory)","level":3,"score":0.6438000202178955},{"id":"https://openalex.org/C2776187449","wikidata":"https://www.wikidata.org/wiki/Q1513879","display_name":"Natural language generation","level":3,"score":0.6243000030517578},{"id":"https://openalex.org/C81917197","wikidata":"https://www.wikidata.org/wiki/Q628760","display_name":"Selection (genetic algorithm)","level":2,"score":0.5037000179290771},{"id":"https://openalex.org/C199360897","wikidata":"https://www.wikidata.org/wiki/Q9143","display_name":"Programming language","level":1,"score":0.48570001125335693},{"id":"https://openalex.org/C195324797","wikidata":"https://www.wikidata.org/wiki/Q33742","display_name":"Natural language","level":2,"score":0.40220001339912415},{"id":"https://openalex.org/C43126263","wikidata":"https://www.wikidata.org/wiki/Q128751","display_name":"Source code","level":2,"score":0.39750000834465027},{"id":"https://openalex.org/C23123220","wikidata":"https://www.wikidata.org/wiki/Q816826","display_name":"Information retrieval","level":1,"score":0.3752000033855438},{"id":"https://openalex.org/C154945302","wikidata":"https://www.wikidata.org/wiki/Q11660","display_name":"Artificial intelligence","level":1,"score":0.36570000648498535},{"id":"https://openalex.org/C137293760","wikidata":"https://www.wikidata.org/wiki/Q3621696","display_name":"Language model","level":2,"score":0.3571999967098236},{"id":"https://openalex.org/C2781249084","wikidata":"https://www.wikidata.org/wiki/Q908656","display_name":"Preference","level":2,"score":0.3555999994277954},{"id":"https://openalex.org/C150292731","wikidata":"https://www.wikidata.org/wiki/Q1342704","display_name":"Code review","level":5,"score":0.3181999921798706},{"id":"https://openalex.org/C119857082","wikidata":"https://www.wikidata.org/wiki/Q2539","display_name":"Machine learning","level":1,"score":0.2980000078678131},{"id":"https://openalex.org/C184337299","wikidata":"https://www.wikidata.org/wiki/Q1437428","display_name":"Semantics (computer science)","level":2,"score":0.29649999737739563},{"id":"https://openalex.org/C89611455","wikidata":"https://www.wikidata.org/wiki/Q6804646","display_name":"Mechanism (biology)","level":2,"score":0.2955999970436096},{"id":"https://openalex.org/C204321447","wikidata":"https://www.wikidata.org/wiki/Q30642","display_name":"Natural language processing","level":1,"score":0.2822999954223633},{"id":"https://openalex.org/C115903868","wikidata":"https://www.wikidata.org/wiki/Q80993","display_name":"Software engineering","level":1,"score":0.2721000015735626},{"id":"https://openalex.org/C124101348","wikidata":"https://www.wikidata.org/wiki/Q172491","display_name":"Data mining","level":1,"score":0.2635999917984009},{"id":"https://openalex.org/C77660490","wikidata":"https://www.wikidata.org/wiki/Q244916","display_name":"Intermediate language","level":3,"score":0.25220000743865967}],"mesh":[],"locations_count":2,"locations":[{"id":"doi:10.1609/aaai.v40i39.40647","is_oa":true,"landing_page_url":"https://doi.org/10.1609/aaai.v40i39.40647","pdf_url":null,"source":{"id":"https://openalex.org/S4210191458","display_name":"Proceedings of the AAAI Conference on Artificial Intelligence","issn_l":"2159-5399","issn":["2159-5399","2374-3468"],"is_oa":true,"is_in_doaj":false,"is_core":false,"host_organization":"https://openalex.org/P4310320058","host_organization_name":"Association for the Advancement of Artificial Intelligence","host_organization_lineage":["https://openalex.org/P4310320058"],"host_organization_lineage_names":["Association for the Advancement of Artificial Intelligence"],"type":"conference"},"license":null,"license_id":null,"version":"publishedVersion","is_accepted":true,"is_published":true,"raw_source_name":"Proceedings of the AAAI Conference on Artificial Intelligence","raw_type":"journal-article"},{"id":"pmh:oai:ojs.aaai.org:article/40647","is_oa":false,"landing_page_url":"https://ojs.aaai.org/index.php/AAAI/article/view/40647","pdf_url":null,"source":null,"license":null,"license_id":null,"version":"submittedVersion","is_accepted":false,"is_published":false,"raw_source_name":"2159-5399","raw_type":"info:eu-repo/semantics/article"}],"best_oa_location":{"id":"doi:10.1609/aaai.v40i39.40647","is_oa":true,"landing_page_url":"https://doi.org/10.1609/aaai.v40i39.40647","pdf_url":null,"source":{"id":"https://openalex.org/S4210191458","display_name":"Proceedings of the AAAI Conference on Artificial Intelligence","issn_l":"2159-5399","issn":["2159-5399","2374-3468"],"is_oa":true,"is_in_doaj":false,"is_core":false,"host_organization":"https://openalex.org/P4310320058","host_organization_name":"Association for the Advancement of Artificial Intelligence","host_organization_lineage":["https://openalex.org/P4310320058"],"host_organization_lineage_names":["Association for the Advancement of Artificial Intelligence"],"type":"conference"},"license":null,"license_id":null,"version":"publishedVersion","is_accepted":true,"is_published":true,"raw_source_name":"Proceedings of the AAAI Conference on Artificial Intelligence","raw_type":"journal-article"},"sustainable_development_goals":[{"display_name":"Reduced inequalities","score":0.6736986637115479,"id":"https://metadata.un.org/sdg/10"}],"awards":[],"funders":[],"has_content":{"pdf":false,"grobid_xml":false},"content_urls":null,"referenced_works_count":0,"referenced_works":[],"related_works":[],"abstract_inverted_index":{"Large":[0],"Language":[1],"Models":[2],"(LLMs)":[3],"have":[4],"demonstrated":[5],"remarkable":[6],"performance":[7],"in":[8,71,154],"code":[9,25,39,76,203],"generation,":[10],"offering":[11],"new":[12],"possibilities":[13],"for":[14],"translating":[15],"natural":[16],"language":[17],"into":[18],"executable":[19],"programs.":[20],"To":[21,78],"further":[22,140],"enhance":[23],"LLMs\u2019":[24],"generation":[26,44,100,150],"capabilities,":[27],"Retrieval-Augmented":[28,87],"Generation":[29,89],"(RAG)":[30],"has":[31],"emerged":[32],"as":[33,116],"a":[34,85,94,122],"promising":[35],"strategy":[36,125],"by":[37,142],"retrieving":[38],"examples":[40,70,128,167,180],"aligned":[41,132],"with":[42,93,133,146],"the":[43,48,66,134,147,165,174,179,198],"intent":[45],"to":[46,98,126,168,176],"guide":[47],"process.":[49],"However,":[50],"existing":[51,206],"RAG-based":[52],"methods":[53],"often":[54],"suffer":[55],"from":[56,110,164],"unnecessary":[57],"augmentation,":[58],"preference":[59],"misalignment,":[60],"and":[61,157,204],"surface-level":[62,185],"mimicry,":[63],"which":[64],"undermine":[65],"effectiveness":[67],"of":[68,182,201],"retrieved":[69],"guiding":[72,173],"LLMs":[73],"toward":[74],"accurate":[75],"generation.":[77],"address":[79],"these":[80],"challenges,":[81],"we":[82],"propose":[83],"SRACG,":[84],"Selective":[86],"Code":[88],"framework.":[90],"SRACG":[91,195],"begins":[92],"necessity-aware":[95],"selection":[96],"mechanism":[97],"identify":[99],"intents":[101,114],"that":[102,129,194],"genuinely":[103],"require":[104],"retrieval":[105,124],"support,":[106],"thereby":[107],"avoiding":[108],"degradation":[109],"indiscriminate":[111],"augmentation.":[112],"For":[113],"identified":[115],"needing":[117],"enhancement,":[118],"it":[119,160],"first":[120],"employs":[121],"multi-objective":[123],"select":[127],"are":[130,138],"semantically":[131],"intent.":[135],"These":[136],"candidates":[137],"then":[139],"filtered":[141,166],"assessing":[143],"their":[144,170],"consistency":[145],"LLM\u2019s":[148],"inherent":[149],"preferences,":[151],"ensuring":[152],"alignment":[153],"both":[155],"style":[156],"structure.":[158],"Finally,":[159],"extracts":[161],"execution":[162],"plans":[163],"uncover":[169],"underlying":[171],"logic,":[172],"LLM":[175],"better":[177],"comprehend":[178],"instead":[181],"merely":[183],"mimicking":[184],"content.":[186],"Experimental":[187],"results":[188],"on":[189],"widely":[190],"used":[191],"benchmarks":[192],"show":[193],"significantly":[196],"improves":[197],"success":[199],"rate":[200],"LLM-generated":[202],"outperforms":[205],"approaches.":[207]},"counts_by_year":[],"updated_date":"2026-07-14T23:27:15.235271","created_date":"2026-03-20T00:00:00"}
