推理边界:通过测试时深思增强规范对齐
Reasoning over Boundaries: Enhancing Specification Alignment via Test-time Deliberation
AI总结:
提出Align3方法,利用测试时深思(TTD)和分层反思修正来推理规范边界,并构建SpecBench基准,实验表明TTD能有效增强规范对齐。
摘要:
大型语言模型(LLMs)越来越多地应用于多样化的现实场景,每个场景都受用户或组织定制的行为和安全规范(spec)约束。这些规范分为安全规范和行为规范,随场景变化并随偏好和要求演变。我们将这一挑战形式化为规范对齐,关注LLMs从行为和安全角度遵循动态、场景特定规范的能力。为应对这一挑战,我们提出Align3,一种轻量级方法,采用具有分层反思和修正的测试时深思(TTD)来推理规范边界。我们进一步提出SpecBench,一个用于衡量规范对齐的统一基准,涵盖5个场景、103个规范和1500个提示。在15个推理模型和18个指令模型上使用多种TTD方法(包括Self-Refine、TPO和MoreThink)的实验得出三个关键发现:(i)测试时深思增强了规范对齐;(ii)Align3以最小开销推进了安全-有用性权衡前沿;(iii)SpecBench有效揭示了对齐差距。这些结果凸显了测试时深思作为推理现实世界规范边界的有效策略的潜力。我们的代码和资源可在https://github.com/zzzhr97/SpecBench获取。
英文摘要:
Large language models (LLMs) are increasingly applied in diverse real-world scenarios, each governed by bespoke behavioral and safety specifications (spec) custom-tailored by users or organizations. These spec, categorized into safety-spec and behavioral-spec, vary across scenarios and evolve with changing preferences and requirements. We formalize this challenge as specification alignment, focusing on LLMs' ability to follow dynamic, scenario-specific spec from both behavioral and safety perspectives. To address this challenge, we propose Align3, a lightweight method that employs Test-Time Deliberation (TTD) with hierarchical reflection and revision to reason over the specification boundaries. We further present SpecBench, a unified benchmark for measuring specification alignment, covering 5 scenarios, 103 spec, and 1,500 prompts. Experiments on 15 reasoning and 18 instruct models with several TTD methods, including Self-Refine, TPO, and MoreThink, yield three key findings: (i) test-time deliberation enhances specification alignment; (ii) Align3 advances the safety-helpfulness trade-off frontier with minimal overhead; (iii) SpecBench effectively reveals alignment gaps. These results highlight the potential of test-time deliberation as an effective strategy for reasoning over the real-world specification boundaries. Our code and resources are available at https://github.com/zzzhr97/SpecBench.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。