Research map / Large language models / Language, safety and interpretability
When Models Know but Can't Say: Relational Encoding Limits Linear Vulnerability Classification in Code LLMs
Rui Melo, André Catarino, Cláudia Mamede, Corina Pasareanu, Rui Abreu
Carnegie Mellon University · University of Porto
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| regress out code length from activations (ablation) | vulnerability probe · DeltaSecommits | peak AUROC: 0.648 -> 0.64-0.66 | No clear effect |
| replace linear probe with shallow MLP (64 hidden units) (ablation) | vulnerable vs secure probe · DeltaSecommits | peak AUROC: 0.648 -> 0.635-0.644 | No clear effect |
| increase PCA components from 50 to 100 (ablation) | linear probe · vulnerable vs secure | AUROC: <0.01 AUROC difference | No clear effect |
| probe CWE type instead of vulnerability status | linear probe · DeltaSecommits | AUROC: 0.648 -> 0.877 (median) | Improved |
| scale from 7B to 13B-15B models | per-pair alignment · DeltaSecommits | alignment (%): 85.85 -> 85.58 | No clear effect |
| use paired relational ranking instead of absolute classification | vulnerability direction · vulnerable-secure pairs | accuracy-like measure: AUROC 0.648 vs per-pair alignment 87-88% | Improved |
| use final layer L27 instead of L3-L23 | vulnerability direction · per-pair alignment | alignment (%): 87-88 -> 70.19 | Hurt |
| use pair-stratified CV and token aggregation (ablation) | linear probe · AUROC reporting | AUROC: +0.055 last-token, +0.016 mean-token (CV); +0.117 (aggregation) | Improved |
Open problems this paper states
- “Covers only 8 open models in the 6.7B-15B range, leaving larger or closed frontier models untested.” → Larger models than the ones studied are left untested. (an open problem in pruning and circuits in LLMs)
Open problems in pruning and circuits in LLMs
Can circuit and interpretability findings be shown to be causal, and to hold on larger and closed models?
- Larger models than the ones studied are left untested. · 17 papers state it
- Evaluated on English only, so other languages are untested. · 11 papers state it
- Findings are correlational, with no causal test of what the model uses. · 8 papers state it
Closest papers by meaning
- Boosting Vulnerability Detection of LLMs via Curriculum Preference Optimization with Synthetic Reasoning Data (ACL 2025 · similarity 0.90)
- ProSec: Fortifying Code LLMs with Proactive Security Alignment (ICML 2025 · similarity 0.89)
- CTX-Coder: Cross-Attention Architectures Empower LLMs for Long-Context Vulnerability Detection (AAAI 2026 · similarity 0.88)
- CodeMimicry: Exploiting Safety Generalization Lag in Large Language Models via Structured Code Completion (NeurIPS 2026 · similarity 0.87)
- SecCodePRM: A Process Reward Model for Code Security (ICML 2026 · similarity 0.87)
- MOSAIC-Bench: Measuring Compositional Vulnerability Induction in Coding Agents (NeurIPS 2026 · similarity 0.85)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.