scimeatlas

Research map / Large language models / Alignment and preferences

Teaching an Old LLM Secure Coding: Localized Preference Optimization on Distilled Preferences

Mohammad Saqib Hasan, Saikat Chakraborty, Santu Karmaker, Niranjan Balasubramanian

ACL 2025Large language models › Alignment and preferencesapproach: Active and token-level preference learningopen problems in this approach14 citations (OpenAlex)

State University of New York at Stony Brook · Microsoft · University of Central Florida

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

14measured effects
8improved
1no clear effect
5hurt

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 localization (mask loss to security tokens) in preference optimization (ablation)LPO on Starcoder2-7b · Security EvalInSec: 32.0 -> 11.4Improved
Add SFT regularizer on non-security tokens (ablation)LPO on Starcoder2-7b · HumanEvalXpass@1: 27.4 -> 38.9Improved
Add security reasoning to training targets (ablation)LPO on Starcoder2-7b · HumanEvalXpass@1: 18.8 -> 38.9Improved
Add SFT stage before LPO (ablation)LPO on Starcoder2-7b · HumanEvalXpass@1: 35.5 -> 38.9Improved
Replace SimPO with LPO on DiSCoStarcoder2-7b · Security EvalInSec: 32.0 -> 11.4Improved
Replace DPO/SimPO with LPO on DiSCoPhi-2-2.7b · AsleepInSec: 64.1 -> 73.9 (DPO vs LPO)Hurt
Train on DiSCo with SFT instead of SafeCoder dataStarcoder2-7b · Security EvalInSec: 49.8 -> 31.6Improved
Train on DiSCo (SFT/LPO) versus off-the-shelfStarcoder2-7b · HumanEvalXpass@1: 33.2 -> 38.9Improved
One refinement round using security analyzer feedback on DiSCo (ablation)LPO on Starcoder2-7b · Security EvalInSec: 30.7 -> 11.4Improved
Three refinement rounds instead of one (ablation)LPO on Starcoder2-7b · HumanEvalXpass@1: 38.9 -> 36.5Hurt
Remove erroneous instances after one refinement (ablation)LPO on Starcoder2-7b · Security EvalInSec: 11.4 -> 11.7No clear effect
Train on DiSCo with CWEs in test benchmarks removed (OOD) (ablation)LPO on Starcoder2-7b · Security EvalInSec: 11.4 -> 16.6Hurt

Open problems in active and token-level preference learning

Do token-level and active preference methods keep their gains on larger models, online RL and real human judgment?

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