Interpreting and Steering for Safe and Correct Code Generation
DuoSteer is proposed, a double-steering approach that simultaneously applies safety and code-correctness steering to attention heads and outperforms not only other steering variants but also prompting and supervised fine-tuning baselines for inference-time vulnerability reduction.
Hao Yan, Zi-Yu Yao
· 0 citations