potentialpaper

Learning to Reason About Code Insecurity: Composite-Reinforcement Fine-Tuning for Cognitive Alignment

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 18:50 UTC · 44d0a3c77cde ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,25 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "uuKARZrXNO"
- }
- ],
- "title": "Learning to Reason About Code Insecurity: Composite-Reinforcement Fine-Tuning for Cognitive Alignment",
- "authors": [
- "Jason Vickers Chen",
- "Jialuo Yuan",
- "Shuhao Guan",
- "Ronghao Chen",
- "Huacan Wang"
- ],
- "abstract": "Automated vulnerability analysis increasingly relies on language models, yet even strong LLMs exhibit unstable security reasoning: they either over-flag benign code or miss critical flaws, particularly under cross-language shifts. We present \\textbf{\\method}---\\emph{Composite-Reinforcement Fine-Tuning for Cognitive Alignment}---a label-efficient training framework that explicitly optimizes a composite reward combining (i) \\emph{label-based decision scoring} via a strictly proper scoring rule on predicted probabilities, (ii) \\emph{explanation grounding and consistency} through structure- and code-referencing heuristics that do not use \\cwe{} labels or definitions, and (iii) \\emph{output-format coherence} through a strict schema validator. This moves the objective from bare classification toward deliberative, auditable analysis while explicitly acknowledging and isolating the supervised component in the reward. We cast each example as a short two-phase episode: first, the policy produces an explanation; then it deterministically emits a calibrated probability through a regression head. The binary decision is deterministically derived from the probability at inference (thresholding) rather than being sampled as a separate action. Policy updates are stabilized via batch-level affinity-weighted neighborhood smoothing over deterministic encodings and a KL trust term to a reference policy. Across \\bigvul, \\divvul, and \\cleanvul, \\method consistently improves macro-F1 over strong baselines (e.g., up to 0.71 in-distribution; substantial gains under cross-language transfer). Compared to standard supervised fine-tuning, \\method reduces catastrophic bias toward predicting the vulnerable class and improves recognition of benign code without relying on \\cwe{} supervision. We report duplicate-controlled splits, ablations of reward components, and significance testing.",
- "year": 2026,
- "venue": "ICLR 2026 submission",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "9d99a5cf-4d89-4741-bdbb-0dbb230c0aaf"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,15 @@
+{
+ "title": "Learning to Reason About Code Insecurity: Composite-Reinforcement Fine-Tuning for Cognitive Alignment",
+ "authors": [
+ "Jason Vickers Chen",
+ "Jialuo Yuan",
+ "Shuhao Guan",
+ "Ronghao Chen",
+ "Huacan Wang"
+ ],
+ "abstract": "Automated vulnerability analysis increasingly relies on language models, yet even strong LLMs exhibit unstable security reasoning: they either over-flag benign code or miss critical flaws, particularly under cross-language shifts. We present \\textbf{\\method}---\\emph{Composite-Reinforcement Fine-Tuning for Cognitive Alignment}---a label-efficient training framework that explicitly optimizes a composite reward combining (i) \\emph{label-based decision scoring} via a strictly proper scoring rule on predicted probabilities, (ii) \\emph{explanation grounding and consistency} through structure- and code-referencing heuristics that do not use \\cwe{} labels or definitions, and (iii) \\emph{output-format coherence} through a strict schema validator. This moves the objective from bare classification toward deliberative, auditable analysis while explicitly acknowledging and isolating the supervised component in the reward. We cast each example as a short two-phase episode: first, the policy produces an explanation; then it deterministically emits a calibrated probability through a regression head. The binary decision is deterministically derived from the probability at inference (thresholding) rather than being sampled as a separate action. Policy updates are stabilized via batch-level affinity-weighted neighborhood smoothing over deterministic encodings and a KL trust term to a reference policy. Across \\bigvul, \\divvul, and \\cleanvul, \\method consistently improves macro-F1 over strong baselines (e.g., up to 0.71 in-distribution; substantial gains under cross-language transfer). Compared to standard supervised fine-tuning, \\method reduces catastrophic bias toward predicting the vulnerable class and improves recognition of benign code without relying on \\cwe{} supervision. We report duplicate-controlled splits, ablations of reward components, and significance testing.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}