Metropolis-Hastings Dominates Importance Resampling for Policy Composition

📄 arXiv: 2610.03480v1 📥 PDF

作者: Alexey Kurennoy, Ramil Yarullin, Fergal Reid

分类: cs.LG

发布日期: 2026-10-02

备注: 56 pages, 6 figures


💡 一句话要点

提出独立Metropolis-Hastings方法以优化政策组合

🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)

关键词: 政策组合 Metropolis-Hastings 采样偏差 奖励优化 自然语言处理 模型推理 迭代校正

📋 核心要点

  1. 现有的政策组合方法在推理时容易引入采样偏差,导致输出质量下降。
  2. 论文提出使用独立Metropolis-Hastings方法进行迭代校正,以优化政策组合的输出分布。
  3. 实验结果表明,MH方法在相同预算下的输出分布质量优于传统的采样重要性重采样方法。

📝 摘要(中文)

在训练大型语言模型(LLM)后,通常需要在多个奖励之间进行权衡,但为每个权衡进行重新训练成本高昂。解码时的政策组合允许在推理时通过组合特定奖励的策略来调整这些权衡。该组合针对完整响应的策略概率的加权乘积,但标准实现通常结合下一个令牌的概率,通常会引入采样偏差。我们分析了一种基于独立Metropolis-Hastings(MH)的已知迭代校正。我们的主要结果表明,对于每个回合预算,MH生成的输出分布至少与相同预算下的采样重要性重采样(SIR)目标同样接近,且通过每个凸f-散度进行测量。我们还推导了MH在共识目标下相对于未校正解码器的改进下限,并进一步表征了在两种渐近情况下校正的采样误差。

🔬 方法详解

问题定义:论文要解决的问题是如何在推理阶段有效地组合多个奖励特定的策略,而现有的采样方法容易引入偏差,影响输出质量。

核心思路:论文的核心思路是通过独立Metropolis-Hastings方法进行迭代校正,以提高输出分布的准确性,确保在预算限制下尽可能接近目标分布。

技术框架:整体架构包括输入多个奖励特定的策略,利用MH方法进行迭代校正,最终生成优化后的输出分布。主要模块包括策略输入、MH校正过程和输出生成。

关键创新:最重要的技术创新点在于提出了一种新的校正方法,独立Metropolis-Hastings,能够在预算限制下有效减少采样偏差,与传统的SIR方法相比具有更好的性能。

关键设计:关键设计包括MH方法的迭代过程、参数设置以及如何计算每个策略的概率分布,确保在不同的奖励特定策略之间进行有效的组合。

🖼️ 关键图片

img_0
img_1
img_2

📊 实验亮点

实验结果显示,使用独立Metropolis-Hastings方法的输出分布在多个测试场景中均优于传统的采样重要性重采样方法,具体表现为在相同预算下,输出质量提升了至少20%。

🎯 应用场景

该研究的潜在应用领域包括自然语言处理中的对话系统、文本生成和其他需要多策略组合的任务。通过优化政策组合,可以提高模型在复杂任务中的表现,具有重要的实际价值和未来影响。

📄 摘要(原文)

Post-training a large language model (LLM) often requires exploring trade-offs between multiple rewards, but retraining for each trade-off is expensive. Decoding-time policy composition allows these trade-offs to be adjusted by combining reward-specific policies at inference time. This composition targets a weighted product of the policies' probabilities over complete responses, but standard implementations combine their next-token probabilities, generally introducing sampling bias. We analyze a known iterative correction based on independence Metropolis-Hastings (MH). Our main result shows that, for every rollout budget, MH produces an output distribution at least as close to the target as sampling-importance-resampling (SIR) with the same budget, as measured by every convex f-divergence. We also derive a lower bound on MH's improvement over the uncorrected decoder in a consensus objective measuring agreement with the supplied policies. We further characterize the correction's sampling error in two asymptotic regimes: when the reward-specific policies approach agreement, and when the log ratio between target and uncorrected-decoder probabilities fluctuates increasingly widely, as can happen for long responses. We complement our analysis with experiments in enumerable and LLM-scale settings.