arXiv:2509.14760cs.CL2025-09被引 3

让大模型在推理时自我反思,更好遵守用户定制的规则。

Reasoning over Boundaries: Enhancing Specification Alignment via Test-time Deliberation

  • 推理时引入分层反思与修正机制,动态理解规则边界。
  • 新方法Align3在保持低开销下显著提升安全与有用性的平衡。
  • 构建了涵盖5个场景、103条规则的统一评测基准。

大语言模型在真实场景中应用日益广泛,每个场景都有由用户或组织定制的行为与安全规范(spec)。这些规范随需求变化而演变,本文将其形式化为规范对齐问题,关注模型在行为与安全层面遵循动态、场景特定规范的能力。为此,提出Align3——一种轻量级测试时反思(TTD)方法,通过分层反思与修正来推理规范边界。同时构建SpecBench,一个统一基准,覆盖5个场景、103条规范和1500个提示。在15个推理模型和18个指令模型上,使用Self-Refine、TPO、MoreThink等多种TTD方法进行实验,得出三大发现:(i) 测试时反思能提升规范对齐能力;(ii) Align3在极小开销下优化了安全与有用性的权衡边界;(iii) SpecBench有效揭示了对齐差距。结果表明,测试时反思是应对现实规范边界的有力策略。代码与资源已公开于https://github.com/zzzhr97/SpecBench。

原文摘要 · Abstract (English)

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.

大模型规范对齐测试时反思安全

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。