scimeatlas

Research map / Large language models / Instruction and fine-tuning

Interpreting and Steering for Safe and Correct Code Generation

Hao Yan, Ziyu Yao

EMNLP 2026Large language models › Instruction and fine-tuningapproach: Safety alignment after fine-tuningopen problems in this approach3 citations (OpenAlex)

George Mason University

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
5improved
1no clear effect
6hurt

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 changedWhereMeasuredEffect
Add a correctness steering direction at correctness-causal heads (DuoSteer vs CausalMD) (ablation)CausalMD on Llama-3.1-8B-Instruct · SecCodePLT CWE-502C(1-V): 44.1 -> 94.1Improved
DuoSteer with correctness directionLlama-3.1-8B-Instruct · SecCodePLT CWE-094correctness C: 25.5 -> 27.5 (V 51.0 -> 37.2)Improved
DuoSteer for path traversalLlama-3.1-8B-Instruct · SecCodePLT CWE-022C(1-V): 48.9 -> 43.0Hurt
Select heads by causal knockout rather than probe accuracy (ablation)MD steering · SecCodePLT CWE-079vulnerability rate V: 52.9 -> 17.6Improved
Replace head-level causal steering with layer-level steering (ablation)CausalMD · SecCodePLT CWE-502vulnerability rate V: V 19.6 vs 39.2 (LayerMD)Hurt
Probe rank as predictor of causal head influence (ablation)Head localization · Top-256 probe-ranked headsSpearman correlation: rho in [-0.072, +0.023]No clear effect
Apply hint promptingLlama-3.1-8B-Instruct · SecCodePLT CWE-295vulnerability rate V: 5.9 -> 9.8Hurt
Apply hint promptingLlama-3.1-8B-Instruct · SecCodePLT CWE-502correctness C: 58.8 -> 15.7Hurt
Fine-tune with SFT on safe-and-correct generationsLlama-3.1-8B-Instruct · SecCodePLT CWE-079vulnerability rate V: 54.9 -> 70.6Hurt
Stack DuoSteer on hint-augmented promptsHint prompting · SecCodePLT CWE-502C(1-V): 13.8 -> 52.6Improved
Apply DuoSteer to Qwen-2.5-Coder-7B-InstructQwen-2.5-Coder-7B-Instruct · SecCodePLT CWE-079C(1-V): 62.6 -> 82.7Improved
DuoSteer under execution-based testsLlama-3.1-8B-Instruct · SecCodePLT CWE-079 pass rateexecution pass rate: -7.9 pointsHurt

Open problems this paper states

Open problems in safety alignment after fine-tuning

Do safety defenses against harmful fine-tuning hold on larger models and against adaptive attacks?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy