Beyond Refusal: A Same-Lineage Study of Aligned and Abliterated LLMs for Vulnerability Analysis

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cybersecurity & Data Privacy, Software Development & Engineering · Depth: Expert, extended

Summary

This study investigates how an LLM's "safety state"—whether refusal behavior is intact (Aligned) or ablated (Abliterated)—impacts its utility for software vulnerability analysis. Researchers conducted a same-lineage comparison using Gemma and Qwen model families across tasks like vulnerability detection, CWE attribution, localization, and executable patch validation. Findings reveal that safety state significantly influences answer coverage, localization quality, and prompt sensitivity. For Gemma-based Java/Vul4J repair, Abliterated models achieved substantially higher early-stage validation rates (67.8% usable, 65.0% applied, 32.8% compiled) compared to Aligned models (29.9%, 24.9%, 9.0%). In the Qwen pair, Abliterated improved line-level F1 from 2.08% to 3.91% and Top-1 accuracy from 4.10% to 6.95% for localization. The study concludes that safety-state effects are context-dependent, affecting not just refusals but also the correctness and actionability of responses in security workflows.

Key takeaway

For Machine Learning Engineers deploying LLMs in software security, recognize that standard safety alignment can significantly degrade utility for legitimate vulnerability analysis and repair, especially with security-explicit prompts. Your evaluations must extend beyond refusal rates to measure actual answer quality, localization accuracy, and executable patch actionability. Consider refusal-ablated models for tasks requiring code-grounded assistance or precise cybersecurity terminology, as they demonstrate higher throughput in these critical workflows.

Key insights

LLM safety alignment impacts vulnerability analysis utility beyond refusal, affecting answer quality and actionability based on task and prompt.

Principles

Method

Compare same-lineage Aligned and Abliterated LLMs, decomposing utility into coverage, quality, and end-to-end actionability across task depth and prompt framing.

In practice

Topics

Best for: AI Engineer, Research Scientist, CTO, AI Scientist, AI Security Engineer, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.