SRCode: Learning to Generate Secure Code via Token-Level Rewards
Import ICLR 2027 submission pGIsnL2pg4: 25 notes
@openreview[bot] · 2026-11-22 21:43 UTC · dba87cd2fcfd ·
reviews/openreview/pgisnl2pg4/forms.json added
+++ b/reviews/openreview/pgisnl2pg4/forms.json@@ -0,0 +1,183 @@+{+ "schema": "forms/1",+ "forms": {+ "Meta_Review": {+ "label": "Meta-review",+ "fields": [+ {+ "key": "metareview",+ "label": "Meta-review",+ "type": "text"+ },+ {+ "key": "summary",+ "label": "Summary",+ "type": "text"+ },+ {+ "key": "additional_comments_on_reviewer_discussion",+ "label": "Reviewer discussion",+ "type": "text"+ },+ {+ "key": "recommendation",+ "label": "Recommendation",+ "type": "choice"+ }+ ]+ },+ "Decision": {+ "label": "Decision",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "hidden": true+ },+ {+ "key": "decision",+ "label": "Decision",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Official_Comment": {+ "label": "Comment",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Public_Comment": {+ "label": "Public comment",+ "fields": [+ {+ "key": "title",+ "label": "Title",+ "type": "choice"+ },+ {+ "key": "comment",+ "label": "Comment",+ "type": "text"+ }+ ]+ },+ "Withdrawal": {+ "label": "Withdrawal",+ "fields": [+ {+ "key": "withdrawal_confirmation",+ "label": "Confirmation",+ "hidden": true+ }+ ]+ },+ "Desk_Rejection": {+ "label": "Desk rejection",+ "fields": [+ {+ "key": "desk_reject_comments",+ "label": "Reason",+ "type": "text"+ }+ ]+ },+ "Official_Review": {+ "label": "Official review",+ "summary": [+ "rating",+ "confidence",+ "soundness",+ "presentation",+ "informativeness"+ ],+ "fields": [+ {+ "key": "rating",+ "label": "Rating",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "confidence",+ "label": "Confidence",+ "type": "score",+ "min": 1,+ "max": 4+ },+ {+ "key": "soundness",+ "label": "Soundness",+ "type": "score",+ "min": 1,+ "max": 3+ },+ {+ "key": "presentation",+ "label": "Presentation",+ "type": "score",+ "min": 1,+ "max": 3+ },+ {+ "key": "informativeness",+ "label": "Informativeness",+ "type": "score",+ "min": 1,+ "max": 3+ },+ {+ "key": "paper_summary",+ "label": "Summary",+ "type": "text"+ },+ {+ "key": "critical_strengths",+ "label": "Strengths",+ "type": "text"+ },+ {+ "key": "critical_weaknesses",+ "label": "Weaknesses",+ "type": "text"+ },+ {+ "key": "questions_for_authors",+ "label": "Questions for the authors",+ "type": "text"+ },+ {+ "key": "flag_for_ethics_review",+ "label": "Flag for ethics review",+ "type": "choice",+ "omitWhen": [+ "No",+ "No ethics review needed."+ ]+ },+ {+ "key": "details_of_ethics_concerns",+ "label": "Ethics concerns",+ "type": "text"+ }+ ]+ }+ },+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/1v5ayblygu.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/1v5ayblygu.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "1V5AybLyGu",+ "replyTo": null,+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "General Response",+ "comment": "For clarity and simplicity, we will refer to Reviewers ZDBE, kiB7, and ncGv as R1, R2, and R3, respectively.\n\nWe sincerely thank all reviewers for their thoughtful and constructive feedback. We are encouraged by their recognition of the key contributions and strengths of our work.\n\nWe have carefully addressed each individual comment provided by the reviewers and believe we have successfully responded to most of their concerns. **In our revised manuscript, we have incorporated the suggested experiments, additional discussions, and relevant updates to further strengthen our work.** Below, we summarize the core contributions of our study, the updates to our experiments, and the in-depth discussions included in our revision.\n\n---\n\n**Core Contributions of Our Work**\n\n1. **Realistic Security Supervision:** We propose Vul2Safe to construct high-confidence vulnerability-repair pairs and implicit prompts from real-world vulnerabilities. Building upon Vul2Safe, we develop PrimeVul+, a curriculum-based dataset that progressively organizes vulnerability detection, repair, and secure code generation tasks.\n2. **Token-Level Reinforcement Learning:** We introduce SRCode, a two-stage training framework that incorporates security-aware token-level rewards into on-policy reinforcement learning. By assigning localized rewards to security-relevant implementations, SRCode reinforces critical defensive coding patterns beyond conventional sequence-level supervision.\n3. **Extensive Evaluation and Discussion:** We conduct extensive experiments across multiple model families and security benchmarks, demonstrating consistent and substantial security improvements while preserving general code generation capabilities. Additional evaluations further validate the effectiveness, robustness, and generalizability of SRCode across diverse settings.\n\nWe hope these contributions can provide useful insights into security-aware code generation and inspire further exploration of fine-grained supervision for improving the security of LLM-generated code.\n\n---\n\n**Updates of experimental results during Rebuttal**\n\n- **Main Text:** Added reward-localization robustness experiments (**R1**, **R2**) and security–functionality trade-off evaluations on general-purpose models (**R3**).\n- **Appendix F.1:** Added evaluations on BaxBench, A.S.E., and LiveCodeBench, together with representative security case studies (**R2**, **R3**).\n- **Appendix F.2:** Added comparisons with SafeCoder trained using augmented PrimeVul+ data (**R3**).\n- **Appendix F.3:** Added experiments on the security-specialized SecureCode-7B model (**R1**).\n\n---\n\n**Updates of in-depth discussions during Rebuttal**\n\n- **Main Text:** Clarified the token-level reward mechanism and teacher supervision (**R2**), and discussed the security–functionality trade-off across different model types (**R3**).\n- **Appendix C:** Provided additional details on reward model training, optimization settings, inference protocols, and training stability, together with training–evaluation overlap and CWE-category coverage analyses (**R1**, **R2**).\n- **Appendix D:** Clarified the definition and roles of the teacher model (**R3**).\n- **Appendices H and I:** Expanded the dataset quality audit and prompt-construction details to improve transparency and reproducibility (**R2**).\n- **References:** Added relevant references discussed during the rebuttal period to strengthen the related work and discussions.\n\n---\n\nWe believe these additions and clarifications comprehensively address the reviewers' concerns and enhance the overall quality of our manuscript. All revisions are highlighted in **blue-colored text** for ease of reference. Our manuscript is updated on **Nov 18, AOE time**.\n\nWe look forward to the reviewers' favourable consideration and remain grateful for their valuable feedback."+ },+ "createdAt": "2026-11-19T02:16:57.486Z",+ "modifiedAt": "2026-11-19T02:16:57.486Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=1V5AybLyGu",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/3ghibf3vge.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/3ghibf3vge.json@@ -0,0 +1,24 @@+{+ "schema": "review/1",+ "id": "3GhiBf3vGE",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer kiB7",+ "content": {+ "paper_summary": "This paper proposes PrimeVul+, a dataset constructed from vulnerable C/C++ functions, and SRCode, an SFT-to-RL framework for secure code generation. SFT uses vulnerability detection and repair tasks. During RL, a teacher identifies secure spans in generated code, and a fixed positive reward budget is assigned to the corresponding policy tokens, alongside global reward terms. Experiments compare security performance, general code generation, reward granularity, teacher scale, and training stability. The external evaluations, controlled reward comparison, and manual audits make the empirical contribution promising. I lean toward acceptance, however, I also highlight that its effectiveness in agentic coding remains untested.",+ "presentation": 3,+ "informativeness": 2,+ "soundness": 2,+ "critical_strengths": "- **Consistent empirical improvements:** SRCode improves security metrics across multiple backbones and external benchmarks.\n\n- **Novel Method**: Token-level RL reward in SCG is indeed novel and interesting.\n\n- **Useful controlled ablation:** Table 4 compares token-level and uniformly distributed rewards using the same teacher judgments, positive reward budget, global penalties, and PPO settings. This is a much more informative comparison than simply comparing the complete framework with the untuned model.\n\n- **Substantial quality checks:** The authors separately audit 500 dataset candidates and 500 teacher outputs, report annotator agreement for the dataset audit, check training–evaluation overlap, and repeat training with three seeds. These checks provide meaningful support for data quality and result stability.",+ "critical_weaknesses": "- **The implicit-prompt claim conflicts with the provided example:** Section 3.1 says that function-requirement prompts do not reveal the target CWE or repair strategy. However, Listing 7 explicitly includes “CWE ID: CWE-918” and specifies concrete validation steps. It is unclear which prompt format was actually used for RL and whether the claimed realism of the training tasks holds.\n\n- **A central reward component is not specified:** Equations (3)–(4) include an auxiliary reward model that produces the terminal reward, but the manuscript does not identify this model, explain its training, or specify its reward scale. Since this signal is combined with the proposed token rewards, it is necessary for reproducing the method and understanding what the policy optimizes.\n\n- **The reward ablation does not fully isolate the value of correct span localization:** The matched control distributes positive rewards uniformly across all tokens. Concentrating them on a smaller set also changes reward sparsity and timing under GAE. A control using equally many random or shuffled span positions, or the same total reward at the terminal step, would clarify how much benefit comes specifically from identifying the right security-relevant tokens .\n\n- **No evaluation on agentic coding benchmarks:** Security results are limited to CWEval, CodeLMSec, and CyberSecEval's secure-code generation tests; HumanEval Pro and MBPP Pro assess general coding performance. The paper does not evaluate agentic SCG benchmarks such as [BaxBench](https://proceedings.mlr.press/v267/vero25a.html), [SusVibes](https://leililab.github.io/susvibes-leaderboard/), or [A.S.E.](https://github.com/Tencent/AICGSecEval). It remains unclear whether the gains from token-level security rewards transfer to repository-level or multi-turn coding workflows, where vulnerabilities can depend on interactions across functions and files. However, given this time of the era, lacking agentic benchmark evaluation in SCG makes the contribution of this paper smaller as it is not certain whether it will transfer to a more realtistic settings in coding. I would raise my score if the authors could provide such evaluation during the rebuttal period",+ "questions_for_authors": "See weaknesses",+ "flag_for_ethics_review": "No",+ "rating": 3,+ "confidence": 4+ },+ "createdAt": "2026-10-22T07:32:08.713Z",+ "modifiedAt": "2026-11-14T08:42:18.337Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=3GhiBf3vGE",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/4d3ewyhcvu.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/4d3ewyhcvu.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "4d3ewyhCVU",+ "replyTo": "Fwf8vhgeYv",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Dear Reviewer,\n\nI hope this message finds you well. We hope the clarifications and additional experiments above have addressed your concerns. As the discussion phase is nearing its end, we respectfully ask if you could consider updating your score to reflect the newly added results and discussion. If there are any additional points or feedback you would like us to consider, please let us know. Your insights are invaluable to us, and we are eager to address any remaining issues to improve our work."+ },+ "createdAt": "2026-11-15T02:06:12.996Z",+ "modifiedAt": "2026-11-15T02:06:12.996Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=4d3ewyhCVU",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/55oegkwxwv.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/55oegkwxwv.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "55oegkwXwV",+ "replyTo": "xwdlozreJs",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer kiB7",+ "content": {+ "comment": "I am happy with the results and will keep my current rating."+ },+ "createdAt": "2026-11-13T08:33:11.176Z",+ "modifiedAt": "2026-11-13T08:33:11.176Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=55oegkwXwV",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/8zr49j7x0y.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/8zr49j7x0y.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "8ZR49J7x0Y",+ "replyTo": "fUu8gLRPu2",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Dear Reviewer ncGv,\n\nWe are grateful for your careful evaluation and insightful suggestions, which have significantly improved the quality of our manuscript. We sincerely appreciate your positive feedback and updated rating. As suggested, we will thoroughly integrate the additional experimental results, case studies, methodological clarifications, and discussions on the security–functionality trade-off into the revised manuscript.\n\nThank you once again for your time and effort in reviewing our paper!"+ },+ "createdAt": "2026-11-16T06:48:42.395Z",+ "modifiedAt": "2026-11-16T06:48:42.395Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=8ZR49J7x0Y",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/buhm6b27h6.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/buhm6b27h6.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "BuHm6b27H6",+ "replyTo": "55oegkwXwV",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Dear Reviewer kiB7,\n\nWe are grateful for your careful evaluation and insightful suggestions, which have significantly improved the quality of our manuscript. We are pleased that our additional results have addressed your concerns, and we will incorporate the new experimental results, case studies, and clarifications into the revised manuscript.\n\nThank you once again for your time and effort in reviewing our paper!"+ },+ "createdAt": "2026-11-16T06:47:46.763Z",+ "modifiedAt": "2026-11-16T06:47:46.763Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=BuHm6b27H6",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/ff4jwmi74u.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/ff4jwmi74u.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "ff4JWmI74U",+ "replyTo": "jxzZj2FwOR",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer ncGv (Part 2 / 5)",+ "comment": "**W1 & W2 (Continued from Part 1):** \n\nA1-A2: We further present two representative case studies.\n\n>**Case Study 1: Balancing Functionality and Path Security in BaxBench.**\n\nWe further examine the FileSearch scenario in BaxBench, which requires implementing a file-search API within `/data` while supporting legitimate subdirectory requests and preventing directory traversal. SRCode successfully balances functional correctness and security by normalizing requested paths and validating their containment within the permitted directory. In contrast, SafeCoder sacrifices functionality for security by rejecting legitimate requests such as `search_dir=\"/songs\"`, while SecCoderX preserves functionality but introduces a security vulnerability by incorrectly using string-prefix matching to validate directory boundaries. The Base model similarly preserves normal search behavior but lacks sufficient path-boundary validation, allowing directory traversal. These results demonstrate that SRCode's advantage lies not merely in imposing stricter security restrictions, but in precisely enforcing security constraints while preserving legitimate functionality.\n\n>**Case Study 2: Context-Aware Authorization in A.S.E.**\n\nWe additionally examine the **`tsinghua_lunary_cve_2024_4146`** instance in A.S.E, a **repository-level** TypeScript code-completion task associated with CWE-639. The task requires completing the masked `checkProjectAccess` function using repository context that describes an existing organization-level authorization check and indicates the need for a direct `account_project` lookup. SRCode correctly enforces project-level authorization by verifying the explicit user–project relationship. In contrast, SafeCoder and SecCoderX preserve insecure organization-level checks, allowing users within the same organization to access projects without explicit authorization. The Base model additionally mishandles the SQL query result by converting the returned object directly to a boolean, causing incorrect access decisions. Unlike these implementations, SRCode identifies the security-critical authorization relationship and preserves the intended functionality. This case demonstrates SRCode's ability to incorporate repository-level security semantics rather than relying solely on local input validation or existing implementation patterns.\n\n**Together, these case studies provide concrete evidence complementing the quantitative results in R3-Table 1.** They demonstrate that SRCode can preserve legitimate functionality while enforcing security constraints, ranging from filesystem boundary validation to repository-level authorization. These findings further support SRCode's generalizability to more challenging and realistic coding tasks.\n\n**(2) Evaluation on a newer-generation model.**\n\nTo further examine the applicability of SRCode to more recent model architectures, we conducted additional experiments using **Qwen3.5-9B**, a newer-generation model with a parameter scale suitable for controlled training comparisons. We followed the same evaluation protocols as in the original experiments.\n\n>**R3-Table 2:** Performance comparison on Qwen3.5-9B.\n| Method | CWEval | CWEval | CodeLMSec | CyberSecEval | LiveCodeBench-v6-new |\n|:---|:---:|:---:|:---:|:---:|:---:|\n| | FS@1 (C/C++) | FS@1 (Python) | Sec.Rate | Pass.Rate | Pass@1 |\n| Base | 26.9 | 40.4 | 68.2 | 56.1 | **39.4** | \n| SafeCoder | 15.4 | 33.8 | 76.7 | 66.4 | 28.6 | \n| SecCoderX | 28.9 | 42.3 | 72.2 | 62.4 | 34.9 | \n| SRCode | **32.7** | **44.2** | **79.9** | **67.8** | 36.6 |\n\nSRCode achieves the best performance across all four security-oriented metrics, outperforming SecCoderX by 3.8, 1.9, 7.7, and 5.4 percentage points, respectively. Importantly, SRCode also achieves the highest LiveCodeBench Pass@1 among the security-tuned methods (36.6), narrowing the functionality gap relative to the base model.\n\nHowever, we observe that security-oriented fine-tuning on general-purpose models leads to a decline in general coding capabilities, unlike the improvements observed with code-specialized models. We discuss this distinction and its implications in greater detail in **Part 4**.\n\nThese findings demonstrate that SRCode remains effective on a newer-generation model rather than relying exclusively on the original Qwen2.5-Coder initialization. \n\nWe will incorporate **R3-Tables 1–2 into Section 4.2 and Section 4.5**, respectively, and provide the corresponding benchmark configurations and model-specific training settings in **Appendix C**."+ },+ "createdAt": "2026-11-11T01:23:32.087Z",+ "modifiedAt": "2026-11-11T01:23:32.087Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=ff4JWmI74U",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/fuu8glrpu2.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/fuu8glrpu2.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "fUu8gLRPu2",+ "replyTo": "iE0wXhXSnx",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer ncGv",+ "content": {+ "comment": "Thank you for the rebuttal.\n\nI think this is a clear step into the right direction and hope that the new experiments will be extensively integrated into the paper.\n\nAs most of my concerns are addressed, I will raise my score."+ },+ "createdAt": "2026-11-15T11:28:23.135Z",+ "modifiedAt": "2026-11-15T11:28:23.135Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=fUu8gLRPu2",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/fwf8vhgeyv.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/fwf8vhgeyv.json@@ -0,0 +1,24 @@+{+ "schema": "review/1",+ "id": "Fwf8vhgeYv",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer ZDBE",+ "content": {+ "paper_summary": "This paper proposes SRCode, a two-stage framework for secure code generation. It constructs PrimeVul+ from real-world vulnerable C/C++ functions, uses vulnerability detection and repair tasks for supervised fine-tuning, and then applies reinforcement learning to code generation. The token-level reward (TLR) concentrates positive feedback on code spans that a teacher model identifies as secure. The paper reports improvements on several security benchmarks and evaluates general code-generation performance to check for capability loss.",+ "presentation": 3,+ "informativeness": 2,+ "soundness": 2,+ "critical_strengths": "1. The matched-budget ablation in Section 4.4 is a useful part of the evaluation. It holds teacher judgments and training settings fixed while changing where positive rewards are assigned, providing evidence for the benefit of reward localization.\n2. The experiments cover several security benchmarks and include general code-generation tests. The teacher-supervision audit and teacher-scale comparison also provide evidence about the quality of the training signals.",+ "critical_weaknesses": "1. The framework mainly combines SFT, PPO, and teacher-guided token-level rewards. While the data and teacher judgments are security-specific, it remains unclear what methodological advance the framework introduces for code security beyond adapting existing localized optimization ideas. The matched-budget ablation demonstrates the benefit of localization, but does not resolve this novelty concern.\n2. The policy-model experiments use Qwen2.5-Coder, DeepSeek-Coder, and CodeLlama. These results show gains across the tested backbones, but leave open whether TLR offers similar benefits for a stronger code model with better initial secure-coding performance.\n3. Training starts from a limited pool of C/C++ functions covering 14 CWE categories. Table 1 provides initial Python results, but transfer to held-out vulnerability categories and project-level code is not established. The teacher audit and scale comparison address some supervision concerns; a controlled test of span-label errors would clarify how robust TLR is to incorrect localization.",+ "questions_for_authors": "1. What specific methodological advance does SRCode introduce over prior localized security optimization, such as DiSCo/LPO, beyond combining SFT, PPO, and teacher-guided rewards? Which results substantiate this distinction?\n2. Does TLR still help a stronger policy model that already performs well on secure code generation?\n3. Beyond the teacher-scale comparison, how does TLR respond to controlled errors in secure-span labels? Are results available with CWE categories held out from training?",+ "flag_for_ethics_review": "No",+ "rating": 3,+ "confidence": 1+ },+ "createdAt": "2026-10-22T09:50:36.398Z",+ "modifiedAt": "2026-11-17T07:21:11.864Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=Fwf8vhgeYv",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/fy12sdhabt.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/fy12sdhabt.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "FY12sdhABT",+ "replyTo": "jxzZj2FwOR",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer ncGv (Part 1 / 5)",+ "comment": "We sincerely thank the reviewer for the thoughtful and constructive feedback. We are encouraged by your positive recognition of **the importance of our research topic, our SFT–RL methodological design, and the promising empirical results**. \n\nWe hope these clarifications and new results will address your remaining concerns and we respectfully ask **if you're comfortable to reconsider the rating in light of our efforts and dedication.** Below, we provide detailed responses to all the comments:\n\n---\n\n**W1 & W2: Generalization to More Challenging Coding Tasks and Newer Models**.\n\n> **Concern:** *The reliance on teacher-generated security judgments may limit scalability to increasingly complex coding tasks. Moreover, the original evaluation focuses on relatively constrained, single-turn tasks and older model architectures, leaving its relevance to contemporary coding workloads unclear.*\n\n**A1–A2:** We appreciate the reviewer for highlighting the importance of evaluating SRCode beyond its original experimental setting. To address these concerns, we conducted two additional sets of experiments: **(i) evaluations on more challenging security and coding benchmarks, and (ii) experiments with a newer-generation Qwen model.**\n\n**(1) Evaluation on more challenging security and coding benchmarks.**\n\nWe additionally evaluated SRCode on BaxBench and A.S.E. to assess security-oriented coding performance, alongside LiveCodeBench-v6-new to evaluate general code generation capabilities.\n\n>**R3-Table 1:** Performance on additional security-oriented and general coding benchmarks.\n\n| Models | BaxBench | A.S.E | A.S.E | A.S.E | LiveCodeBench-v6-new |\n|:---|:---:|:---:|:---:|:---:|:---:|\n| | Correct & Secure | Security | Quality | Overall | Pass@1 |\n| Base | 9.9 | 15.3 | 53.2 | 25.3 | 18.9 | \n| SafeCoder | 13.2 | 23.4 | 37.1 | 32.7 | 14.9 | \n| SecCoderX | 16.8 | 21.8 | 55.6 | 37.3 | 20.6 | \n| SRCode | **23.4** | **30.6** | **57.3** | **45.6** | **21.1** |\n\nAs shown in **R3-Table 1**, SRCode consistently achieves the best performance across all five metrics. On BaxBench, SRCode obtains a Correct & Secure score of 23.4, outperforming SecCoderX by **6.6** percentage points. On A.S.E., SRCode achieves 30.6 in Security and 45.6 in Overall, exceeding the strongest baselines by 7.2 and 8.3 points, respectively. Meanwhile, its LiveCodeBench-v6-new Pass@1 reaches 21.1, compared with 18.9 for the base model and 20.6 for SecCoderX.\n\nThese results are encouraging because more challenging coding tasks require the model to balance functional correctness with security constraints across multiple implementation decisions. Although TLR assigns localized rewards during training, its benefits extend beyond the original benchmarks, suggesting that fine-grained security reinforcement can improve coding behavior in more demanding evaluation settings."+ },+ "createdAt": "2026-11-11T01:23:04.583Z",+ "modifiedAt": "2026-11-11T01:23:04.583Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=FY12sdhABT",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/gqitrumzuj.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/gqitrumzuj.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "GqitRuMzuj",+ "replyTo": "3GhiBf3vGE",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer kiB7 (Part 2 / 4)",+ "comment": "**W2: Specification of the Reward Model.**\n\n>**Concern:** *The reward model used in Equations (3)–(4) is insufficiently specified, particularly its initialization, training procedure, and reward scale.*\n\nA2: We thank the reviewer for highlighting this missing implementation detail. The reward model is initialized from Qwen2.5-Coder-7B-Instruct and trained on PrimeVul+ through a two-stage procedure.\n\nFirst, we perform supervised fine-tuning using Task 1 (vulnerability detection) and Task 2 (vulnerability repair), enabling the model to acquire vulnerability recognition and remediation capabilities. Starting from this SFT checkpoint, we then construct preference pairs using Task 3 (secure code generation) and perform preference-based reward-model training. The resulting model assigns a scalar reward to each generated code sequence, providing sequence-level feedback.\n\nTo bound its contribution to the overall RL objective, the reward score is clamped to [-1, 1] before being incorporated into the reward formulation. As specified in Equations (3)–(4), this scalar reward is assigned to the terminal generation step and combined with the global vulnerability penalty and localized token-level rewards.\n\nWe will expand **Section 3.3** and **Appendix C** to specify the reward model initialization, two-stage training procedure, preference construction, score clipping, and integration into the PPO objective.\n\n---\n\n**W3: Controlled Evaluation of Secure-Span Localization.**\n\n> **Concern:** *The matched-budget ablation does not fully distinguish the benefits of correct secure-span localization from those of reward sparsity and timing. A random or shuffled-span control would provide stronger evidence.*\n\n**A3:** Following your suggestion, we conducted an additional controlled perturbation experiment using Qwen2.5-Coder-7B-Instruct under the original training and evaluation settings.\n\nSpecifically, we randomly replaced 25%, 50%, and 100% of teacher-identified reward positions with positions sampled outside the original secure spans. We preserved the number of rewarded tokens and the total positive reward budget, while keeping the remaining reward components and PPO settings unchanged.\n\n>**R2-Table 1: Robustness of TLR under controlled secure-span localization perturbations.**\n| Setting | CWEval | CWEval | CodeLMSec | CyberSecEval |\n|:---|:---:|:---:|:---:|:---:|\n| | FS@1 (C/C++) | FS@1 (Python) | Sec.Rate | Pass.Rate |\n| Original teacher localization | 38.5 | 54.2 | 88.7 | 74.8 |\n| Uniform reward allocation | 30.8 (-7.7) | 51.2 (-3.0) | 83.9 (-4.8) | 66.8 (-8.0) |\n| 25% random replacement | 36.5 (-2.0) | 50.1 (-4.1) | 85.5 (-3.2) | 71.2 (-3.6) |\n| 50% random replacement | 30.8 (-7.7) | 43.8 (-10.4) | 80.2 (-8.5) | 59.0 (-15.8) |\n| 100% random replacement | 26.9 (-11.6) | 42.4 (-11.8) | 67.2 (-21.5) | 57.9 (-16.9) |\n\nAs shown in R2-Table 1, **TLR maintains substantial performance under moderate localization noise**. With 25% of reward positions corrupted, SRCode still outperforms uniform reward allocation on three of the four metrics, retaining 36.5 CWEval FS@1, 85.5% CodeLMSec security rate, and 71.2% CyberSecEval pass rate. This suggests that imperfect teacher localization does not eliminate the benefits of token-level security rewards.\n\nPerformance progressively decreases as the corruption ratio increases. Notably, 100% random replacement performs worse than uniform reward allocation across all four metrics, despite preserving the same reward sparsity and total positive reward budget as the original TLR setting. This demonstrates that **the semantic relevance of rewarded positions, rather than reward sparsity alone, is critical** to effective security optimization.\n\nThese findings complement the matched-budget ablation in **Section 4.4**, which establishes the advantage of localized rewards over uniform allocation under identical teacher judgments and training settings. The teacher-scale analysis in the same section further shows that reducing secure-span identification accuracy from 90.62% to 81.52% changes downstream performance by at most 1.4 percentage points, providing additional evidence of performance stability under variations in teacher supervision quality.\n\nTogether, these experiments support both the effectiveness of accurate security-aware localization and TLR's tolerance to moderate localization errors.\n\nWe will incorporate **R2-Table 1** and the controlled perturbation analysis into **Section 4.4**, with additional experimental settings and perturbation details provided in **Appendix C**."+ },+ "createdAt": "2026-11-11T01:21:38.539Z",+ "modifiedAt": "2026-11-11T01:21:38.539Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=GqitRuMzuj",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/hpfxuhr31x.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/hpfxuhr31x.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "hpfxUhr31X",+ "replyTo": "Fwf8vhgeYv",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer ZDBE (Part 2 / 4)",+ "comment": "**W2 & Q2: Effectiveness on Stronger Security-Specialized Models**\n\n> **Concern:** *Whether TLR remains effective on a stronger policy model that already has substantial secure code generation capabilities.*\n\nA2: We thank the reviewer for this valuable suggestion. To evaluate SRCode under a stronger security-specialized initialization, following your suggestion, we conducted additional experiments using **SecureCode-7B** (2026), a security-specialized model built upon Qwen2.5-Coder-7B. This setting examines whether SRCode can further improve a policy that has already undergone security-oriented fine-tuning. We followed the original experimental settings and evaluation protocols.\n\n>**R1-Table 1:** Performance comparison using SecureCode-7B as the security-specialized initialization.\n| Method | CWEval | CWEval | CodeLMSec | CyberSecEval |\n|:---|:---:|:---:|:---:|:---:|\n| | FS@1 (C/C++) | FS@1 (Python) | Sec.Rate | Pass.Rate |\n| Base: SecureCode-7B | 36.5 | 47.2 | 83.5 | 70.8 |\n| SafeCoder | 26.9 | 37.3 | 86.7 | 76.5 |\n| SecCoderX | 42.3 | 52.5 | 87.2 | 79.1 |\n| SRCode | **44.2** | **54.8** | **91.0** | **82.3** |\n\n\nAs shown in **R1-Table 1**, SRCode achieves the best performance across all four metrics, substantially improving upon the SecureCode-7B (2026) initialization and outperforming SecCoderX by 1.9, 2.3, 3.8, and 3.2 pp, respectively. **These results demonstrate that SRCode remains effective even when initialized from a model with stronger security capabilities.** Together with the matched-budget ablation in **Section 4.4**, they provide complementary evidence for the effectiveness of SRCode and the value of localized reward allocation.\n\nWe will incorporate the SecureCode-7B results into **Section 4.2**, with detailed experimental configurations and comparisons provided in **Appendix C**. This will explicitly demonstrate the applicability of SRCode to security-specialized models beyond the original initialization."+ },+ "createdAt": "2026-11-11T01:19:25.039Z",+ "modifiedAt": "2026-11-11T01:19:25.039Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=hpfxUhr31X",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/ie0wxhxsnx.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/ie0wxhxsnx.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "iE0wXhXSnx",+ "replyTo": "jxzZj2FwOR",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Dear Reviewer,\n\nI hope this message finds you well. We hope the clarifications and additional experiments above have addressed your concerns. As the discussion phase is nearing its end, we respectfully ask if you could consider updating your score to reflect the newly added results and discussion. If there are any additional points or feedback you would like us to consider, please let us know. Your insights are invaluable to us, and we are eager to address any remaining issues to improve our work."+ },+ "createdAt": "2026-11-15T02:06:51.902Z",+ "modifiedAt": "2026-11-15T02:06:51.902Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=iE0wXhXSnx",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/ioo2enurzo.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/ioo2enurzo.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "ioo2enUrzo",+ "replyTo": "xcrnps968v",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "comment": "Dear Reviewer ZDBE,\n\nWe are grateful for your careful evaluation and insightful suggestions, which have significantly improved the quality of our manuscript. We sincerely appreciate your positive feedback and updated rating. We will carefully incorporate the additional experimental results, methodological clarifications, and discussions into the revised manuscript.\n\nThank you once again for your time and effort in reviewing our paper!"+ },+ "createdAt": "2026-11-18T02:38:33.067Z",+ "modifiedAt": "2026-11-18T02:38:33.067Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=ioo2enUrzo",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/jxq4t2jzpj.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/jxq4t2jzpj.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "Jxq4T2jZPj",+ "replyTo": "jxzZj2FwOR",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer ncGv (Part 3 / 5)",+ "comment": "**W3: Fair Comparison with SafeCoder under Matched Training Data.**\n\n> **Concern:** *SafeCoder is sensitive to the CWE distribution of its training data. Differences between SRCode and SafeCoder may therefore reflect differences in training data rather than the effectiveness of the proposed method.*\n\n**A3:** We thank the reviewer for this important observation. To isolate the influence of training data, we conducted an additional **data-matched SafeCoder experiment**. Following your suggestion, we incorporated PrimeVul+ into SafeCoder's original training data, following its data construction and training procedure, trained SafeCoder using the same base model as in our original experiments, and evaluated the resulting model on CWEval and LiveCodeBench-v6-new.\n\n>**R3-Table 3:** Comparison with SafeCoder augmented with PrimeVul+.\n| Model | CWEval | CWEval | LiveCodeBench-v6-new |\n|:---|:---:|:---:|:---:|\n| | FS@1 (C/C++) | FS@1 (Python) | Pass@1 |\n| Base | 28.9 | 45.0 | 18.9 |\n| SafeCoder | 19.2 | 43.5 | 14.9 |\n| SafeCoder (origin & PrimeVul+) | 26.9 | 43.5 | 13.7 |\n| SRCode | **38.5** | **54.2** | **21.1** |\n\n\nAs shown in **R3-Table 3**, augmenting SafeCoder's original training data with PrimeVul+ improves its CWEval FS@1 (C/C++) from 19.2 to 26.9, confirming that the training data distribution can meaningfully influence its security performance. However, **SRCode still substantially outperforms SafeCoder (origin & PrimeVul+)**, achieving 38.5 versus 26.9 on CWEval (C/C++) and 54.2 versus 43.5 on CWEval (Python), corresponding to improvements of 11.6 and 10.7 percentage points, respectively.\n\nMoreover, SafeCoder (origin & PrimeVul+) achieves 13.7 Pass@1 on LiveCodeBench-v6-new, compared with 21.1 for SRCode. This indicates that augmenting SafeCoder's original training data with PrimeVul+ does not reproduce SRCode's improvements in either secure code generation or general coding functionality.\n\nThese results directly address the concern about training-data differences. While data composition affects baseline performance, the remaining gap under matched training data provides stronger evidence that **SRCode's SFT–RL curriculum and token-level reward optimization contribute beyond the choice of training dataset**.\n\nWe will incorporate this data-matched comparison into **Section 4.2** and **Appendix I**, explicitly documenting the SafeCoder data construction procedure, matched base model, and training configurations to improve the fairness and reproducibility of the comparison."+ },+ "createdAt": "2026-11-11T01:23:50.849Z",+ "modifiedAt": "2026-11-11T01:23:50.849Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=Jxq4T2jZPj",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/jxzzj2fwor.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/jxzzj2fwor.json@@ -0,0 +1,24 @@+{+ "schema": "review/1",+ "id": "jxzZj2FwOR",+ "replyTo": null,+ "kind": "review",+ "invitation": "Official_Review",+ "signature": "Reviewer ncGv",+ "content": {+ "paper_summary": "The paper introduces an SFT + RL based method to improve LLMs in secure code generation. First, in the SFT stage, the method trains on examples of vulnerability detection and fixing. Then, in the RL stage, secure code generation is trained with PPO, where the reward consists of token-level positive reward for each \"secure\" token, and sample-level negative reward for each sample that is detected as vulnerable. For calculating these rewards, a larger \"teacher\" model is employed to detect secure spans and judge vulnerability. Results on secure code generation benchmarks show clear improvements.",+ "presentation": 2,+ "informativeness": 2,+ "soundness": 2,+ "critical_strengths": "- Important topic.\n- Interesting and effective approach to construct an SFT + RL curriculum.\n- Promising results on the tested benchmarks and models.",+ "critical_weaknesses": "- I have some concerns about the method. It relies on a \"teacher\" model that is able to detect secure spans in the code and also to judge if the final code snippet is secure or not. I do believe that this works well in the examined settings, which is relatively outdated (more on this in the next point), but I have some doubts over how well this method extrapolates towards the frontier as coding tasks become more complex and harder for any model to judge.\n- The finetuned models, used benchmarks, and overall setting is somewhat outdated. Current coding workloads use mostly agentic setups with often larger, or at least more capable, reasoning models as backbones. This research however targets still single-turn and pure LLM-based, tightly scoped coding tasks. It is therefore unclear how relevant this method is to the current coding frontier, and if any components of the method would be useful to improve current models. While I understand that in part (or largely) this is also due to the fact that working on larger/more capable models is prohibitively expensive for academics. However, there are still smaller-scale LLMs that are excellent at agentic coding, which could come at comparable training budgets as the models used in the paper (e.g., smaller models in the latest Qwen reasoning series). Also, even the specific field of secure code generation is already moving further. For instance Wang et al. (2026), uses the more advanced benchmarks of BaxBench for secure coding and LiveCodeBench for functionality testing.\n- I also have some concerns about the comparison to SafeCoder. SafeCoder is highly sensitive to the specific set of CWEs that are contained in the training data. As the training data of the presented method and that of SafeCoder differ, I am wondering how much of the resulting differences due to the training data being different. Could you report the CWEval results of both your method and that of SafeCoder reduced only to the CWEs that are contained in the SafeCoder dataset? Or could you examine constructing an extension to SafeCoder's dataset using your dataset and then training with SafeCoder's training method?\n- Further, I am a bit surprised, and somewhat sceptical about the strong functionality preservation (even improvement) results. Could you discuss in more detail how this is possible? In my experience, most recent open-weight models are so well trained that it is incredibly hard to not hurt their base capabilities without doing some delicate additional training aimed at preserving these capabilities. Perhaps to this point it would also be important to evaluate the models on some harder tasks, e.g., LiveCodeBench.\n- Finally, I have some points about presentation. The paper is in parts hard to follow, because the \"teacher\" is never well defined or presented. \n\n**References**\n\nWang et al. SecPI: Secure Code Generation with Reasoning Models via Security Reasoning Internalization. arXiv 2026.",+ "questions_for_authors": "See weaknesses.",+ "flag_for_ethics_review": "No",+ "rating": 3,+ "confidence": 3+ },+ "createdAt": "2026-10-18T15:35:31.130Z",+ "modifiedAt": "2026-11-15T11:28:36.722Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=jxzZj2FwOR",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/lv1sgsxuai.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/lv1sgsxuai.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "Lv1sgSxuai",+ "replyTo": "jxzZj2FwOR",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer ncGv (Part 5 / 5)",+ "comment": "**W5: Clarification of the Teacher Model and Its Role.**\n\n> **Concern:** *The term \"teacher\" is insufficiently defined, making it difficult to understand the model requirements and how teacher-generated security judgments are obtained.*\n\n**A5:** We thank the reviewer for pointing out this presentation issue. In SRCode, a **teacher model refers to a model that provides reliable security-oriented supervision for the policy**, rather than necessarily a specific architecture or a model with a fixed parameter scale. This functional definition is consistent with prior studies [6-9] showing that effective supervision can come from specialized models, larger models, or even models sharing the same initialization as the policy.\n\nDepending on the implementation, a teacher may be a larger general-purpose model, a vulnerability-analysis-specialized model, or a model with access to privileged security information unavailable to the policy during generation. The essential requirement is its ability to identify security-relevant code spans and assess whether generated implementations contain vulnerabilities, thereby producing sufficiently reliable supervision signals.\n\nSpecifically, the teacher serves two complementary roles in our framework:\n\n**(1) Secure-span localization.** Given the generated code and task context, the teacher identifies tokens or code spans corresponding to security-relevant implementation decisions, such as boundary checks, input validation, and safe API usage. These spans are mapped to the policy's tokenization and used to allocate the fixed positive reward budget.\n\n**(2) Global vulnerability assessment.** The teacher evaluates the generated code for potential vulnerabilities and provides a sequence-level security judgment, which contributes to the global vulnerability penalty in the reinforcement learning objective.\n\nImportantly, the teacher is used to construct reward signals during training; **SRCode does not require teacher-model inference during deployment**. This separates the cost of security supervision from the inference cost of the resulting policy.\n\nWe also acknowledge that teacher reliability becomes more challenging as coding tasks grow in complexity. Our teacher-supervision audit and teacher-scale comparison in **Section 4.4** provide initial evidence of supervision quality and downstream stability, but do not eliminate the need for more reliable verification on complex, repository-level tasks. In such settings, specialized security analyzers or tool-assisted verification could complement model-based judgments.\n\nWe will revise **Section 3.3** and **Appendix A** to explicitly define the teacher model, its required capabilities, inputs and outputs, and its two roles in reward construction. We will clarify the teacher-scale analysis in **Section 4.4** and discuss limitations of teacher reliability on more complex coding tasks. We will also include and discuss these **references** in our paper.\n\n[1] SecPI: Secure Code Generation with Reasoning Models via Security Reasoning Internalization. Wang et al. arXiv 2026.\n\n[2] Instruction Tuning for Secure Code Generation. He et al. ICML 2024.\n\n[3] Code Llama: Open Foundation Models for Code. Rozière et al. arXiv 2023.\n\n[4] Mitigating the Safety Alignment Tax with Null-Space Constrained Policy Optimization. Niu et al. ICLR 2026.\n\n[5] Scaling Laws for Forgetting During Finetuning with Pretraining Data Injection. Béthune et al. ICML 2025.\n\n[6] CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learning. Le et al. NeurIPS 2022.\n\n[7] Constitutional AI: Harmlessness from AI Feedback. Bai et al. arXiv 2022.\n\n[8] RLAIF vs. RLHF: Scaling Reinforcement Learning from Human Feedback with AI Feedback. Lee et al. ICML 2024.\n\n[9] Self-Rewarding Language Models. Yuan et al. ICML 2024.\n\n---\n\n**We are happy to see from your comments that you have an overall positive view of our work, and we respectfully ask if you'd be comfortable to adjust your ratings,** based on all the new experiments and justification to your questions. Thank you once again for your time and effort. We look forward to incorporating these insightful discussions into the final camera-ready version."+ },+ "createdAt": "2026-11-11T01:24:57.086Z",+ "modifiedAt": "2026-11-11T01:24:57.086Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=Lv1sgSxuai",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/ned7i3jeei.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/ned7i3jeei.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "NEd7I3JEeI",+ "replyTo": "3GhiBf3vGE",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer kiB7 (Part 3 / 4)",+ "comment": "**W4: Additional Evaluation on Agentic Security and Challenging Coding Benchmarks.**\n\n>**Concern:** *The current evaluation focuses on bounded, single-turn secure code generation tasks, leaving the effectiveness of SRCode on more realistic agentic coding benchmarks and challenging functionality evaluations unclear.*\n\n**A4:** Following your suggestion, we conducted additional experiments on **BaxBench** [1], **A.S.E** [2], and **LiveCodeBench-v6-new** [3] to evaluate SRCode in more challenging coding settings. Recent benchmarks, including SusVibes [4], further highlight the growing importance of evaluating security risks in realistic agent-generated code [1-4]. Our additional experiments provide complementary evidence of SRCode's generalizability beyond the original security benchmarks.\n\n>**R2-Table 2:** Additional evaluation on agentic security and challenging coding benchmarks.\n| Models | BaxBench | A.S.E | A.S.E | A.S.E | LiveCodeBench-v6-new |\n|:---|:---:|:---:|:---:|:---:|:---:|\n| | Correct & Secure | Security | Quality | Overall | Pass@1 |\n| Base | 9.9 | 15.3 | 53.2 | 25.3 | 18.9 |\n| SafeCoder | 13.2 | 23.4 | 37.1 | 32.7 | 14.9 |\n| SecCoderX | 16.8 | 21.8 | 55.6 | 37.3 | 20.6 |\n| SRCode | **23.4** | **30.6** | **57.3** | **45.6** | **21.1** |\n\n**(1) Generalization to more realistic security-oriented coding tasks.**\n\nSRCode achieves the best performance on both BaxBench and A.S.E. On BaxBench, its Correct & Secure score reaches **23.4**, outperforming SecCoderX by 6.6 percentage points. On A.S.E., SRCode achieves 30.6 in Security and 45.6 in Overall, exceeding the strongest baseline by 7.2 and 8.3 points, respectively.\n\nThese improvements are particularly relevant because vulnerabilities in more complex coding settings may arise from interactions among multiple implementation decisions rather than isolated statements. Although TLR provides localized security feedback during training, the resulting improvements extend beyond the original training tasks. This suggests that reinforcing fine-grained defensive coding behaviors can benefit more challenging security-oriented coding workflows.\n\n>**Case Study 1: Balancing Functionality and Path Security in BaxBench.**\n\nWe further examine the FileSearch scenario in BaxBench, which requires implementing a file-search API within `/data` while supporting legitimate subdirectory requests and preventing directory traversal. SRCode successfully balances functional correctness and security by normalizing requested paths and validating their containment within the permitted directory. In contrast, SafeCoder sacrifices functionality for security by rejecting legitimate requests such as `search_dir=\"/songs\"`, while SecCoderX preserves functionality but introduces a security vulnerability by incorrectly using string-prefix matching to validate directory boundaries. The Base model similarly preserves normal search behavior but lacks sufficient path-boundary validation, allowing directory traversal. These results demonstrate that SRCode's advantage lies not merely in imposing stricter security restrictions, but in precisely enforcing security constraints while preserving legitimate functionality.\n\n>**Case Study 2: Context-Aware Authorization in A.S.E.**\n\nWe additionally examine the **`tsinghua_lunary_cve_2024_4146`** instance in A.S.E, a **repository-level** TypeScript code-completion task associated with CWE-639. The task requires completing the masked `checkProjectAccess` function using repository context that describes an existing organization-level authorization check and indicates the need for a direct `account_project` lookup. SRCode correctly enforces project-level authorization by verifying the explicit user–project relationship. In contrast, SafeCoder and SecCoderX preserve insecure organization-level checks, allowing users within the same organization to access projects without explicit authorization. The Base model additionally mishandles the SQL query result by converting the returned object directly to a boolean, causing incorrect access decisions. Unlike these implementations, SRCode identifies the security-critical authorization relationship and preserves the intended functionality. This case demonstrates SRCode's ability to incorporate repository-level security semantics rather than relying solely on local input validation or existing implementation patterns.\n\n**Together, these case studies provide concrete evidence complementing the quantitative results in R2-Table 2.** They demonstrate that SRCode can preserve legitimate functionality while enforcing security constraints, ranging from filesystem boundary validation to repository-level authorization. These findings further support SRCode's generalizability to more challenging and realistic coding tasks."+ },+ "createdAt": "2026-11-11T01:22:10.240Z",+ "modifiedAt": "2026-11-11T01:22:10.240Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=NEd7I3JEeI",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/nxfpyuy8yi.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/nxfpyuy8yi.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "nxFPyuy8YI",+ "replyTo": "3GhiBf3vGE",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer kiB7 (Part 1 / 4)",+ "comment": "We sincerely appreciate your insightful and constructive feedback. We are delighted by your recognition of **the *novelty* of our method, the consistent empirical improvements, the rigorous data quality checks, and the value of our controlled ablations**. Your recognition of these aspects means a lot to us, serving as **a beacon of encouragement** that motivates us to continue refining and advancing this line of research.\n\nIn addition to your acknowledgement of our paper’s main contributions, we have carefully considered your constructive feedback with more experiments. Specifically, we have clarified key implementation details and conducted additional experiments on localization robustness and challenging coding benchmarks. \n\nThese findings strongly validate SRCode's robustness to imperfect security supervision and its generalizability to more challenging secure code generation tasks. To fully address your concerns, we provide a more detailed discussion and experiments below.\n\n---\n\n**W1: Clarification of Implicit Prompts Used for RL Training.**\n\n>**Concern:** *Listing 7 explicitly includes the CWE ID and repair instructions, which appears inconsistent with the claim that implicit prompts do not reveal the target vulnerability category or repair strategy.*\n\n**A1:** We sincerely apologize for the confusion caused by Listing 7 and thank you for bringing this to our attention. The listing inadvertently presents dataset metadata alongside the task description without clearly distinguishing it from the actual model input.\n\nIn our implementation, the Task Type and CWE ID fields are used only for dataset organization and sample retrieval and **are excluded from the RL training prompts**. We additionally filter the task instructions to remove explicit security-related labels, including terms such as \"CWE\" and \"secure,\" ensuring that the policy does not receive the target vulnerability category or explicit repair guidance through these fields.\n\nTo clarify the actual training setting, we provide a representative RL prompt below.\n\n**System:**\n\n> You are a secure code assistant that performs code vulnerability analysis, repair, and secure generation.\n\n**Instruction:**\n\n> Task description as follows:\n>\n> The function `cma_translate_ib` processes InfiniBand address information to configure an RDMA device address structure. It takes two input parameters: a pointer to an InfiniBand socket address structure (`sib`) and a pointer to an RDMA device address structure (`dev_addr`).\n>\n> Intended logic:\n>\n> 1. Verify that both input pointers are valid and non-null. If either pointer is invalid, exit immediately.\n> 2. Set the destination device type to indicate an InfiniBand device.\n> 3. Populate the source global identifier (SGID) using the address information from `sib`.\n> 4. Configure the partition key (P_Key) by converting its value from network byte order to host byte order.\n>\n> The function directly modifies the destination structure and does not return a value. Additionally, ensure that the generated code includes the necessary headers, compiles successfully, follows proper C/C++ formatting, and does not contain Markdown code fences.\n\nImportantly, the task instruction describes the intended functionality without explicitly identifying the target CWE or providing a vulnerability-specific repair patch. For example, although it requests valid, non-null pointers, a check such as `if (sib == NULL || dev_addr == NULL) return;` only verifies nullness. It does not establish whether the referenced memory is accessible or whether a generic socket-address buffer is sufficiently large for an InfiniBand-specific structure. An unchecked cast followed by field access may therefore introduce type-confusion or out-of-bounds access risks, depending on the calling context.\n\nThis distinction is important, as functional requirements do not necessarily specify all security constraints. The policy must still learn appropriate defensive implementation patterns rather than reproduce an explicitly provided CWE-specific fix.\n\nWe will correct **Listing 7** in **Appendix H** to clearly separate dataset metadata from the actual training input and explicitly document the prompt-filtering procedure."+ },+ "createdAt": "2026-11-11T01:21:09.315Z",+ "modifiedAt": "2026-11-11T01:21:09.315Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=nxFPyuy8YI",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/ulahucq3at.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/ulahucq3at.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "UlaHuCq3aT",+ "replyTo": "jxzZj2FwOR",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer ncGv (Part 4 / 5)",+ "comment": "**W4: Functionality Preservation and the Security–Utility Trade-off.**\n\n> **Concern:** *The reported preservation or improvement of general coding functionality is surprising, particularly for recent well-trained models, where security-oriented fine-tuning may degrade existing capabilities. Additional evaluation on challenging benchmarks such as LiveCodeBench is needed.*\n\n**A4:** We appreciate the reviewer for highlighting this important trade-off. We agree that some security-oriented training methods may introduce an **alignment tax**, where optimizing a model for a specialized safety objective may reduce its general capabilities. Our additional LiveCodeBench-v6-new experiments provide a more nuanced understanding of this phenomenon across different model types.\n\nFor the **code-specialized** Qwen2.5-Coder-7B-Instruct model, SRCode improves LiveCodeBench Pass@1 from 18.9 to 21.1, while SafeCoder and SecCoderX achieve 14.9 and 20.6, respectively **(R3-Table 1)**. This suggests that, for a model already pretrained extensively on code, security-oriented optimization can reinforce useful coding patterns without necessarily sacrificing functional correctness.\n\nIn contrast, the newer **general-purpose** Qwen3.5-9B model **exhibits a different trend.** As shown in **R3-Table 2**, all three security-tuned methods reduce LiveCodeBench performance relative to the base model (39.4). However, SRCode retains the highest functionality among the security-tuned methods, achieving 36.6 Pass@1 compared with 34.9 for SecCoderX and 28.6 for SafeCoder. Its functionality decrease is limited to 2.8 percentage points, compared with 4.5 and 10.8 points for SecCoderX and SafeCoder, respectively.\n\nThis difference is primarily driven by the distinct pretraining objectives and capability distributions of code-specialized and general-purpose models. **Code-specialized models** acquire extensive programming knowledge through code-intensive training [3], providing a strong foundation for security-oriented optimization [1, 2]. For **general-purpose models**, however, code generation represents only one component of a broader capability distribution. Training exclusively on security-oriented code data may shift the general-purpose model away from its original distribution, leading to functionality degradation without additional general-purpose data mixing or capability-preserving objectives [4, 5]. **Our findings are consistent with prior studies and further demonstrate SRCode's ability to achieve a more favorable security–functionality trade-off across different model types.**\n\nImportantly, we do not claim that SRCode universally improves functionality. Instead, it improves coding performance on the code-specialized model while minimizing functionality degradation on the general-purpose model relative to competing methods.\n\nWe will expand the discussion in **Section 4.5** and **Appendix F**, incorporating the LiveCodeBench-v6-new results and explicitly discussing the observed alignment tax, differences between code-specialized and general-purpose models, and the limitations of security-only training."+ },+ "createdAt": "2026-11-11T01:24:14.246Z",+ "modifiedAt": "2026-11-11T01:24:14.246Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=UlaHuCq3aT",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/wdbnbh2tcy.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/wdbnbh2tcy.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "wDbnbH2TCy",+ "replyTo": "Fwf8vhgeYv",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer ZDBE (Part 1 / 4)",+ "comment": "We sincerely thank the reviewer for the thoughtful and constructive feedback. We are particularly encouraged by your recognition of **our controlled ablation design, comprehensive benchmark evaluations, and teacher-supervision analyses**.\n\nWe hope these clarifications and new results will address your remaining concerns and we respectfully ask **if you're comfortable to reconsider the rating in light of our efforts and dedication.** Below, we provide detailed responses to all the comments:\n\n---\n\n**W1 & Q1: Methodological Contribution Beyond Existing Localized Optimization.**\n\n> **Concern:** *The methodological advance over existing localized security optimization, such as DiSCo/LPO, is unclear beyond combining SFT, PPO, and teacher-guided rewards.*\n\nA1: We appreciate the opportunity for clarification. SRCode's methodological contribution lies in its security-aware token-level reward formulation for **on-policy reinforcement learning**, distinguishing it from DiSCo, which is a dataset, and LPO, an **off-policy preference learning** method independent of reinforcement learning that relies heavily on static preference data. SRCode differs from existing localized preference optimization in three key aspects. \n\n**(1) Explicit token-level rewards for precise security optimization.**\n\nLPO builds on SimPO and localizes a pairwise preference objective using token masks. In contrast, SRCode assigns explicit rewards to security-relevant tokens in policy-generated code, providing localized feedback through PPO's return and advantage estimation. This directly reinforces fine-grained implementation decisions, such as boundary checks and validation conditions, which are critical to preventing localized vulnerabilities.\n\n**(2) Contextual localization and direct reinforcement of secure implementations.**\n\nLPO identifies security-relevant tokens through differences between paired secure and insecure responses, where incidental edits may also affect localization. SRCode instead leverages teacher model judgments to identify secure implementations directly within policy-generated code and allocates a fixed positive reward budget to the corresponding tokens. This enables targeted supervision of security-critical tokens without relying on pairwise response differences.\n\n**(3) On-policy adaptation to evolving security risks.**\n\nUnlike off-policy methods such as LPO and SafeCoder, which rely on fixed training datasets, SRCode continuously optimizes against code generated by the current policy, allowing reward signals to adapt to its evolving vulnerability patterns. This is particularly valuable for secure code generation, where subtle vulnerabilities may emerge as the model's coding behavior changes. On-policy optimization reduces dependence on fixed training distributions and enables targeted reinforcement of security-critical decisions throughout training.\n\nThe matched-budget ablation in **Section 4.4** demonstrates that TLR outperforms uniform reward allocation under identical teacher judgments, reward budgets, global penalties, and PPO settings. Furthermore, our new controlled perturbation experiment **(detailed in W3 & Q3)** shows that progressively replacing correctly localized reward positions with random non-target positions degrades security performance, even when reward sparsity and budgets are preserved. These complementary results demonstrate the importance of accurate security-aware localization beyond reward concentration alone.\n\nWe will clarify the methodological distinctions from DiSCo/LPO in **Section 2**, incorporate the new controlled perturbation evidence **(detailed in W3 & Q3)** into **Section 4.4** and **Appendix D**. These revisions will more clearly establish SRCode's contribution as contextual secure-span localization and fixed-budget token-level reward allocation for on-policy secure code generation, rather than simply combining existing training techniques."+ },+ "createdAt": "2026-11-11T01:18:51.276Z",+ "modifiedAt": "2026-11-11T01:18:51.276Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=wDbnbH2TCy",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/wmvll2ok0w.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/wmvll2ok0w.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "WMVll2oK0W",+ "replyTo": "Fwf8vhgeYv",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer ZDBE (Part 3 / 4)",+ "comment": "**W3 & Q3: Robustness to Span-Label Errors and Generalization Beyond Training Categories.**\n\n> **Concern:** *Limited evidence of generalization to held-out CWE categories and project-level code, and unclear robustness to controlled errors in secure-span localization.*\n\nA3: We appreciate the reviewer for highlighting these important aspects. We address robustness to localization errors and generalization beyond the training distribution separately.\n\n**(1) Robustness to secure-span labeling errors.**\n\nTo directly evaluate TLR's noise tolerance, we conducted an additional controlled perturbation experiment using Qwen2.5-Coder-7B-Instruct under the original training and evaluation settings. Specifically, we randomly replaced 25%, 50%, and 100% of teacher-identified reward positions with positions sampled outside the original secure spans, while preserving the number of rewarded tokens and the total positive reward budget.\n\n>**R1-Table 2:** Robustness of TLR under controlled secure-span localization perturbations.\n| Setting | CWEval | CWEval | CodeLMSec | CyberSecEval |\n|:---|:---:|:---:|:---:|:---:|\n| | FS@1 (C/C++) | FS@1 (Python) | Sec.Rate | Pass.Rate |\n| Original teacher localization | 38.5 | 54.2 | 88.7 | 74.8 |\n| Uniform reward allocation | 30.8 (-7.7) | 51.2 (-3.0) | 83.9 (-4.8) | 66.8 (-8.0) |\n| 25% random replacement | 36.5 (-2.0) | 50.1 (-4.1) | 85.5 (-3.2) | 71.2 (-3.6) |\n| 50% random replacement | 30.8 (-7.7) | 43.8 (-10.4) | 80.2 (-8.5) | 59.0 (-15.8) |\n| 100% random replacement | 26.9 (-11.6) | 42.4 (-11.8) | 67.2 (-21.5) | 57.9 (-16.9) |\n\n**The results demonstrate that TLR exhibits strong tolerance to moderate localization noise.** Even with 25% of reward positions corrupted, SRCode retains 36.5% CWEval FS@1 (C/C++), 85.5% CodeLMSec security rate, and 71.2% CyberSecEval pass rate, outperforming uniform reward allocation on three of the four metrics. **This indicates that TLR can preserve substantial security benefits despite imperfect teacher-generated span annotations.**\n\nTo further explore **extreme cases**, we deliberately increased the perturbation ratio to 50% and 100%. Performance declined as localization errors increased, with 100% random replacement performing worse than uniform rewards. Nevertheless, SRCode maintains substantial performance under partial perturbations. **These findings highlight TLR's strong robustness to localization noise, even when teacher-generated annotations are imperfect.**\n\nMoreover, in **Section 4.4**, we have shown that the teacher-scale comparison shows that secure-span identification accuracy decreases from 90.62% to 81.52% with a smaller teacher, while downstream performance differs by at most 1.4 percentage points. Although teacher scale also affects other supervision characteristics, this provides complementary evidence of performance stability under variations in teacher quality.\n\nTogether, these results demonstrate that TLR combines effective fine-grained security optimization with meaningful tolerance to imperfect localization signals."+ },+ "createdAt": "2026-11-11T01:19:57.557Z",+ "modifiedAt": "2026-11-11T01:19:57.557Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=WMVll2oK0W",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/wtafndbyga.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/wtafndbyga.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "WTafndbYgA",+ "replyTo": "Fwf8vhgeYv",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer ZDBE (Part 4 / 4)",+ "comment": "**W3 & Q3 (Continued from Part 3):** \n\n**(2) Generalization to unseen CWE categories.**\n\nWe would like to clarify that our existing evaluations already include substantial coverage of CWE categories absent from the PrimeVul+ training set. To quantify this, we compared the CWE coverage of PrimeVul+ with that of the three evaluation benchmarks, as summarized in **R1-Table 3**.\n\n>**R1-Table 3:** CWE coverage overlap between PrimeVul+ training data and evaluation benchmarks.\n\n| Benchmark | CWE Count | Overlaps | Overlapping CWEs | Uncovered (Ratio) |\n| ------------ | :---------: | :--------: | ---------------------------------- | :-----------------: |\n| CWEval | 31 | 8 | 20, 22, 78, 79, 327, 400, 512, 918 | 23 (74.2%) |\n| CodeLMSec | 61 | 6 | 20, 22, 78, 79, 89, 327 | 55 (90.2%) |\n| CyberSecEval | 18 | 1 | 78 | 17 (94.4%) |\n\nAs shown in **R1-Table 3**, 74.2%, 90.2%, and 94.4% of the CWE categories covered by CWEval, CodeLMSec, and CyberSecEval, respectively, are absent from PrimeVul+. **This demonstrates that our evaluation benchmarks contain substantial vulnerability-category coverage beyond the training distribution.** Consequently, the improvements reported across these benchmarks already provide encouraging evidence of cross-CWE generalization.\n\nImportantly, our evaluation also includes Python secure code generation, whereas PrimeVul+ is constructed from C/C++ vulnerability samples. The improvements on CWEval (Python) therefore provide additional evidence of generalization to an unseen programming language.\n\nFurthermore, the benchmarks employ complementary evaluation mechanisms, including dynamic functional-security testing in CWEval and detector-based vulnerability assessment in CodeLMSec and CyberSecEval. Consistent improvements across these settings suggest that SRCode learns transferable secure coding behaviors rather than merely adapting to a particular CWE distribution or security detector.\n\nWe will incorporate the CWE overlap analysis in **R1-Table 3** into **Section 4.5** and **Appendix F**, explicitly distinguishing cross-CWE benchmark coverage from strict category-level held-out evaluation, and further clarify the cross-language generalization results and their limitations.\n\n---\n\nWe sincerely appreciate your thoughtful feedback, which has helped us strengthen both the methodological presentation and empirical evaluation of SRCode. We also recognize that your review was submitted with a relatively low confidence level, and we would be very happy to provide any additional clarification or evidence that could help resolve remaining uncertainties. We also warmly invite you to consider our responses to the other reviewers, which provide complementary explanations and additional experimental results.\n\n**We hope that the clarifications and new evidence presented above will help address your concerns, and we respectfully ask if you'd be comfortable to adjust your ratings**."+ },+ "createdAt": "2026-11-11T01:20:34.218Z",+ "modifiedAt": "2026-11-11T01:20:34.218Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=WTafndbYgA",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/xcrnps968v.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/xcrnps968v.json@@ -0,0 +1,15 @@+{+ "schema": "review/1",+ "id": "xcrnps968v",+ "replyTo": "4d3ewyhCVU",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Reviewer ZDBE",+ "content": {+ "comment": "Thanks for the detailed rebuttal. Most of my concerns are addressed. I would like to update my score."+ },+ "createdAt": "2026-11-17T07:20:54.147Z",+ "modifiedAt": "2026-11-17T07:20:54.147Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=xcrnps968v",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/notes/xwdlozrejs.json added
+++ b/reviews/openreview/pgisnl2pg4/notes/xwdlozrejs.json@@ -0,0 +1,16 @@+{+ "schema": "review/1",+ "id": "xwdlozreJs",+ "replyTo": "3GhiBf3vGE",+ "kind": "comment",+ "invitation": "Official_Comment",+ "signature": "Authors",+ "content": {+ "title": "Response to Reviewer kiB7 (Part 4 / 4)",+ "comment": "**W4 (Continued from Part 3):** \n\n**(2) Preservation of functionality on challenging coding tasks.**\n\nSRCode also achieves the highest A.S.E. Quality score of 57.3, compared with 55.6 for SecCoderX. On LiveCodeBench-v6-new, it obtains 21.1 Pass@1, outperforming both the base model (18.9) and SecCoderX (20.6).\n\nThese results complement the HumanEval Pro and MBPP Pro evaluations in Section 4.5, providing further evidence that security-oriented optimization can improve security without sacrificing general coding capabilities. In particular, SRCode achieves simultaneous improvements in Security and Quality on A.S.E., indicating that its security gains are not simply obtained at the expense of functional correctness.\n\nOverall, **the additional results demonstrate that SRCode's benefits extend to more challenging security-oriented coding benchmarks while maintaining competitive general code generation performance**. They provide encouraging evidence of the transferability of token-level security optimization beyond the original evaluation settings.\n\nWe will incorporate **R2-Table 2** into **Section 4.5** and **Appendix C**, including benchmark configurations, evaluation protocols, and a discussion of applicability to agentic coding scenarios and remaining limitations. We will also add the relevant studies to our **references**.\n\n[1] BaxBench: Can LLMs Generate Correct and Secure Backends? Vero et al. ICML 2025.\n\n[2] ASE: A repository-level benchmark for evaluating security in AI-generated code. Lian et al. ACL 2026.\n\n[3] LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code. Jain et al. ICLR 2025.\n\n[4] SusVibes: Is Vibe Coding Safe? Benchmarking Vulnerability of Agent-Generated Code in Real-World Tasks. Zhao et al. ICML 2026.\n\n---\n\n**We are happy to see from your comments that you have an overall positive view of our work, and we respectfully ask if you'd be comfortable to adjust your ratings,** based on all the new experiments and justification to your questions. Thank you once again for your time and effort. We look forward to incorporating these insightful discussions into the final camera-ready version."+ },+ "createdAt": "2026-11-11T01:22:35.793Z",+ "modifiedAt": "2026-11-11T01:22:35.793Z",+ "url": "https://openreview.net/forum?id=pGIsnL2pg4¬eId=xwdlozreJs",+ "license": "CC-BY-4.0"+}
reviews/openreview/pgisnl2pg4/submission.json added
+++ b/reviews/openreview/pgisnl2pg4/submission.json@@ -0,0 +1,19 @@+{+ "schema": "submission/1",+ "id": "pGIsnL2pg4",+ "venue": {+ "id": "ICLR.cc/2027/Conference",+ "name": "ICLR 2027",+ "url": "https://openreview.net/group?id=ICLR.cc%2F2027%2FConference"+ },+ "number": 37614,+ "keywords": [+ "large language model post-training",+ "reinforcement learning for language models",+ "token-level rewards",+ "code language models",+ "secure code generation"+ ],+ "url": "https://openreview.net/forum?id=pGIsnL2pg4",+ "license": "CC-BY-4.0"+}
versions/v_qpfjggnb.json modified
+++ b/versions/v_qpfjggnb.json@@ -1,7 +1,20 @@{+ "date": "2026-09-18","kind": "submitted","label": "ICLR 2027 (under review)",+ "submissions": [+ {+ "venue": "ICLR 2027",+ "status": "under_review",+ "number": 37614,+ "url": "https://openreview.net/forum?id=pGIsnL2pg4",+ "reviews": "openreview/pgisnl2pg4",+ "evidence": [+ "https://openreview.net/forum?id=pGIsnL2pg4"+ ]+ }+ ],"url": "https://openreview.net/forum?id=pGIsnL2pg4","pdf": {"source": "https://openreview.net/forum?id=pGIsnL2pg4","license": "CC-BY-4.0"