arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.05702cs.LGcs.CLcs.NE
收藏

基于质量/效率权衡的离散能量模型的抽样

Sampling from Discrete Energy-Based Models with Quality/Efficiency Trade-offs

University of Amsterdam(阿姆斯特丹大学);NAVER Labs Europe(NAVER实验室欧洲)

Bryan Eikema, Germán Kruszewski, Hady Elsahar, Marc Dymetman

摘要:

基于能量的模型(EBM)允许非常灵活的概率分布规范。然而,它们没有提供从这些分布获得精确样本的机制。蒙特卡罗技术可以帮助我们获得样本,如果一些建议分布,我们可以很容易地抽样。例如,拒绝抽样可以提供精确的样本,但由于需要找到一个建议分布,该分布在任何地方都是目标分布的上限,因此通常很难或不可能应用。近似马尔可夫链蒙特卡罗抽样技术(如Metropolis-Hastings)通常更容易设计,利用局部建议分布对不断变化的样本进行局部编辑。然而,由于建议分布的局部性质,这些技术可能是低效的,并且不提供对它们的样本的质量的估计。在这项工作中,我们提出了一种新的近似采样技术,准拒绝采样(QRS),允许采样效率和采样质量之间的权衡,同时提供明确的收敛范围和诊断。QRS利用了从深度学习模型获得的高质量全局建议分布的可用性。我们证明了QRS采样的有效性,离散EBM的文本控制文本生成与分布约束和释义生成的任务。我们表明,我们可以从这样的EBM采样任意精度的采样效率的成本。

英文摘要:

Energy-Based Models (EBMs) allow for extremely flexible specifications of probability distributions. However, they do not provide a mechanism for obtaining exact samples from these distributions. Monte Carlo techniques can aid us in obtaining samples if some proposal distribution that we can easily sample from is available. For instance, rejection sampling can provide exact samples but is often difficult or impossible to apply due to the need to find a proposal distribution that upper-bounds the target distribution everywhere. Approximate Markov chain Monte Carlo sampling techniques like Metropolis-Hastings are usually easier to design, exploiting a local proposal distribution that performs local edits on an evolving sample. However, these techniques can be inefficient due to the local nature of the proposal distribution and do not provide an estimate of the quality of their samples. In this work, we propose a new approximate sampling technique, Quasi Rejection Sampling (QRS), that allows for a trade-off between sampling efficiency and sampling quality, while providing explicit convergence bounds and diagnostics. QRS capitalizes on the availability of high-quality global proposal distributions obtained from deep learning models. We demonstrate the effectiveness of QRS sampling for discrete EBMs over text for the tasks of controlled text generation with distributional constraints and paraphrase generation. We show that we can sample from such EBMs with arbitrary precision at the cost of sampling efficiency.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑