让大模型先学会说人话,提升对话安全与质量。
P-Aligner: Enabling Pre-Alignment of Language Models via Principled Instruction Synthesis
- 用受原则指导的合成方法生成更符合人类偏好的指令
- 在GPT-4-turbo上实现28.35%的胜率提升
- 轻量模块可无缝集成,适合部署于各类大模型
大语言模型在面对不完整、模糊或不当指令时,常无法生成安全、有用且诚实的内容,存在多维度改进空间。一种高效低成本的方法是在模型生成前预对齐指令。现有方法要么测试时搜索成本过高,要么依赖定制训练数据重写模型,目标不明确。本文提出P-Aligner,一个轻量级模块,通过生成保留原始意图但表达更符合人类偏好的指令来实现高效偏好对齐。该模型在UltraPrompt数据集上训练,该数据集采用蒙特卡洛树搜索驱动的原理引导管道构建,系统探索贴近人类偏好的候选指令空间。跨多种方法和基准的实验表明,P-Aligner普遍优于强基线,在GPT-4-turbo和Gemma-2-SimPO上分别取得28.35%和8.69%的平均胜率提升。多角度分析验证了其有效性与效率,涵盖数据质量、搜索策略、迭代部署及时间开销。
原文摘要 · Abstract (English)
Large Language Models (LLMs) are expected to produce safe, helpful, and honest content during interaction with human users, but they frequently fail to align with such values when given flawed instructions, e.g., missing context, ambiguous directives, or inappropriate tone, leaving substantial room for improvement along multiple dimensions. A cost-effective yet high-impact way is to pre-align instructions before the model begins decoding. Existing approaches either rely on prohibitive test-time search costs or end-to-end model rewrite, which is powered by a customized training corpus with unclear objectives. In this work, we demonstrate that the goal of efficient and effective preference alignment can be achieved by P-Aligner, a lightweight module generating instructions that preserve the original intents while being expressed in a more human-preferred form. P-Aligner is trained on UltraPrompt, a new dataset synthesized via a proposed principle-guided pipeline using Monte-Carlo Tree Search, which systematically explores the space of candidate instructions that are closely tied to human preference. Experiments across different methods show that P-Aligner generally outperforms strong baselines across various models and benchmarks, including average win-rate gains of 28.35% and 8.69% on GPT-4-turbo and Gemma-2-SimPO, respectively. Further analyses validate its effectiveness and efficiency through multiple perspectives, including data quality, search strategies, iterative deployment, and time overhead.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。