RESCUE: Retrieval Augmented Secure Code Generation
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 18:44 UTC · 682526ba0fa9 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,22 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "gbxhesw4UH"- }- ],- "title": "RESCUE: Retrieval Augmented Secure Code Generation",- "authors": [- "Jiahao Shi",- "Tianyi Zhang"- ],- "abstract": "Despite recent advances, Large Language Models (LLMs) still generate vulnerable code. \nRetrieval-Augmented Generation (RAG) has the potential to enhance LLMs for secure code generation by incorporating external security knowledge. However, the conventional RAG design struggles with the noise of raw security-related documents, and existing retrieval methods overlook the significant security semantics implicitly embedded in task descriptions.\nTo address these issues, we propose \\textsc{Rescue}, a new RAG framework for secure code generation with two key innovations. \nFirst, we propose a hybrid knowledge base construction method that combines LLM-assisted cluster-then-summarize distillation with program slicing, producing both high-level security guidelines and concise, security-focused code examples. Second, we design a hierarchical multi-faceted retrieval that traverses the constructed knowledge base from top to bottom and integrates multiple security-critical facts at each hierarchical level, ensuring comprehensive and accurate retrieval. \nWe evaluated \\textsc{Rescue} on four benchmarks and compared it with five state-of-the-art secure code generation methods on six LLMs. The results demonstrate that \\textsc{Rescue} improves the SecurePass@1 metric by an average of 4.8 points, establishing a new state-of-the-art performance for security. Furthermore, we performed in-depth analysis and ablation studies to rigorously validate the effectiveness of individual components in \\textsc{Rescue}. Our code is available at \\url{https://github.com/steven1518/RESCUE}.",- "year": 2026,- "venue": "ICLR 2026",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "65943b92-cb7c-4d7c-962e-2c2d146f1c02"}
paper.json added
+++ b/paper.json@@ -0,0 +1,12 @@+{+ "title": "RESCUE: Retrieval Augmented Secure Code Generation",+ "authors": [+ "Jiahao Shi",+ "Tianyi Zhang"+ ],+ "abstract": "Despite recent advances, Large Language Models (LLMs) still generate vulnerable code. \nRetrieval-Augmented Generation (RAG) has the potential to enhance LLMs for secure code generation by incorporating external security knowledge. However, the conventional RAG design struggles with the noise of raw security-related documents, and existing retrieval methods overlook the significant security semantics implicitly embedded in task descriptions.\nTo address these issues, we propose \\textsc{Rescue}, a new RAG framework for secure code generation with two key innovations. \nFirst, we propose a hybrid knowledge base construction method that combines LLM-assisted cluster-then-summarize distillation with program slicing, producing both high-level security guidelines and concise, security-focused code examples. Second, we design a hierarchical multi-faceted retrieval that traverses the constructed knowledge base from top to bottom and integrates multiple security-critical facts at each hierarchical level, ensuring comprehensive and accurate retrieval. \nWe evaluated \\textsc{Rescue} on four benchmarks and compared it with five state-of-the-art secure code generation methods on six LLMs. The results demonstrate that \\textsc{Rescue} improves the SecurePass@1 metric by an average of 4.8 points, establishing a new state-of-the-art performance for security. Furthermore, we performed in-depth analysis and ablation studies to rigorously validate the effectiveness of individual components in \\textsc{Rescue}. Our code is available at \\url{https://github.com/steven1518/RESCUE}.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}