@@ -244,3 +244,61 @@ credentials.token = "${GITHUB_TOKEN}"
244244- ** findings.json** : Complete vulnerability data with all 16 fields
245245- ** report.html** : Visual report with severity colors, code snippets, AI summary
246246- ** report.sarif** : SARIF format for CI/CD integration
247+
248+ ## Research-Backed Design
249+
250+ BACO's LLM integration is informed by a survey of 30 papers and 7 projects from
251+ [ Awesome-LLMs-for-Vulnerability-Detection] ( https://github.com/huhusmang/Awesome-LLMs-for-Vulnerability-Detection ) .
252+ The full analysis and integration roadmap live in [ ` docs/papers-integration-analysis.md ` ] ( docs/papers-integration-analysis.md )
253+ and the task list in [ ` todo.md ` ] ( todo.md ) .
254+
255+ ### Integrated Papers
256+
257+ #### Tier 1 — Quick wins (days → 2 weeks)
258+
259+ | Task | Paper | arxiv | baco target |
260+ | ------| -------| -------| ------------|
261+ | Agentic FP filter | Sifting the Noise (ISSTA 2026) | [ 2601.22952] ( https://arxiv.org/abs/2601.22952 ) | ` src/llm_verification.rs ` + ` src/confidence_refinement.rs ` |
262+ | Hierarchical context extraction | Context-Enhanced Vuln Detection | [ 2504.16877] ( https://arxiv.org/abs/2504.16877 ) | new ` src/context/ ` module |
263+ | CWE KB RAG (BM25, no vectors) | VulInstruct (FSE 2026) | [ 2511.04014] ( https://arxiv.org/abs/2511.04014 ) | new ` src/retrieval/ ` module |
264+ | Regression suite | SV-TrustEval-C (SP 2025) | [ 2505.20630] ( https://arxiv.org/abs/2505.20630 ) | ` tests/integration/ ` |
265+
266+ #### Tier 2 — Structural improvements (2 → 6 weeks)
267+
268+ | Task | Paper | arxiv/code | baco target |
269+ | ------| -------| -------------| ------------|
270+ | MoE per-CWE/language routing | MoEVD (FSE 2025) | [ 2501.16454] ( https://arxiv.org/abs/2501.16454 ) | new ` src/router/ ` module |
271+ | Triple-path context (AST/CFG/DFG) | VulTriage | [ 2605.09461] ( https://arxiv.org/abs/2605.09461 ) | ` src/context/ ` extension |
272+ | LLM→semgrep rule synthesis | MoCQ | [ 2504.16057] ( https://arxiv.org/abs/2504.16057 ) | new ` src/rulesynth/ ` phase |
273+ | Global FP suppression | AutoCVE | [ code] ( https://github.com/larlarua/AutoCVE ) | ` src/findings.rs ` + ` src/root_cause_dedup.rs ` |
274+ | Six-phase parallel orchestration | Cloudflare security-audit-skill | [ code] ( https://github.com/cloudflare/security-audit-skill ) | ` src/scanner/pipeline/orchestrator.rs ` |
275+
276+ #### Tier 3 — Heavy infrastructure (months)
277+
278+ | Task | Paper | arxiv/code | baco target |
279+ | ------| -------| -------------| ------------|
280+ | CPG-guided slicing | LLMxCPG (Usenix 2025) | [ 2507.16585] ( https://arxiv.org/abs/2507.16585 ) | new ` src/cpg/ ` + Joern |
281+ | Adversarial exploit synthesis | QRS | [ 2602.09774] ( https://arxiv.org/abs/2602.09774 ) | new ` src/exploit/ ` + sandbox |
282+ | Specialized reasoning LLM | R2Vul + VULPO | [ 2504.04699] ( https://arxiv.org/abs/2504.04699 ) + [ 2511.11896] ( https://arxiv.org/abs/2511.11896 ) | new ` LlmProvider::TgiServed ` |
283+
284+ #### Cross-cutting insights
285+
286+ | Insight | Paper | baco application |
287+ | ---------| -------| -----------------|
288+ | Rationale validation via LLM-as-judge | CORRECT — [ 2504.13474] ( https://arxiv.org/abs/2504.13474 ) | ` src/llm_verification.rs ` |
289+ | Statement-level localization | SecVulEval — [ 2505.19828] ( https://arxiv.org/abs/2505.19828 ) | ` src/findings.rs ` |
290+ | Dataset hygiene (chronological splits) | PrimeVul (ICSE 2025) — [ 2403.18624] ( https://arxiv.org/abs/2403.18624 ) | ` tests/fixtures/ ` |
291+ | Confidence calibration per user study | Closing the Gap (ICSE 2025) — [ 2412.14306] ( https://arxiv.org/abs/2412.14306 ) | ` src/confidence_refinement.rs ` |
292+ | Semantic Trap guard for fine-tuning | Semantic Trap — [ 2601.22655] ( https://arxiv.org/abs/2601.22655 ) | ` docs/fine-tuning-guidelines.md ` |
293+
294+ ### Surveyed but deferred/skipped
295+
296+ - ** AgentFlow** (2604.20801) — Python-only, defer until Rust interop stabilizes
297+ - ** AgenticSCR** (2601.19138) — niche pre-commit case
298+ - ** VulnLLM-R** (2512.07533) — GPU cluster required
299+ - ** OpenAnt** — heavy UniFFI build
300+ - ** DeepAudit** — too large/divergent
301+ - ** FocusVul** (2505.17460) — paper withdrawn
302+
303+ For the full list of surveyed papers and their verdicts, see
304+ [ ` docs/papers-integration-analysis.md ` ] ( docs/papers-integration-analysis.md ) .
0 commit comments