按层分工精准对齐,让大模型更准更稳。
Hierarchical Alignment: Surgical Fine-Tuning via Functional Layer Specialization in Large Language Models
- 分层靶向优化:语法、逻辑、事实三类层分别对齐
- 全局层对齐提升事实性和逻辑性,效果优于全层对齐
- 避免传统对齐的副作用,资源更省、结果更可解释
现有大语言模型对齐方法(如DPO)通常将模型视为整体,对所有层施加相同优化压力。本文提出分层对齐(Hierarchical Alignment),针对Transformer结构中不同层的功能差异——局部(语法)、中间(逻辑)、全局(事实)——进行针对性的DPO微调。在Llama-3.1-8B和Qwen1.5-7B上使用LoRA实现精准微调,经大模型评分验证,结果显示:局部层对齐显著提升语法流畅性;全局层对齐不仅增强事实一致性,且是提升逻辑连贯性的最优策略,优于所有基线。更重要的是,所有分层策略均未出现标准DPO中的‘对齐代价’问题(即流畅性提升导致逻辑下降)。该方法实现了更高效、可控、可解释的对齐路径,推动从整体优化向结构感知的精准微调演进。
原文摘要 · Abstract (English)
Existing alignment techniques for Large Language Models (LLMs), such as Direct Preference Optimization (DPO), typically treat the model as a monolithic entity, applying uniform optimization pressure across all layers. This approach overlooks the functional specialization within the Transformer architecture, where different layers are known to handle distinct tasks from syntax to abstract reasoning. In this paper, we challenge this one-size-fits-all paradigm by introducing Hierarchical Alignment, a novel method that applies targeted DPO to distinct functional blocks of a model's layers: local (syntax), intermediate (logic), and global (factuality). Through a series of controlled experiments on state-of-the-art models like Llama-3.1-8B and Qwen1.5-7B using LoRA for surgical fine-tuning, our results, evaluated by a powerful LLM-as-Judge, demonstrate significant and predictable improvements. Specifically, aligning the local layers (Local-Align) enhances grammatical fluency. More importantly, aligning the global layers (Global-Align) not only improves factual consistency as hypothesized but also proves to be the most effective strategy for enhancing logical coherence, outperforming all baselines. Critically, all hierarchical strategies successfully avoid the "alignment tax" observed in standard DPO, where gains in fluency come at the cost of degraded logical reasoning. These findings establish a more resource-efficient, controllable, and interpretable path for model alignment, highlighting the immense potential of shifting from monolithic optimization to structure-aware surgical fine-tuning to build more advanced and reliable LLMs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。