arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2206.06668cs.SEstat.CO
收藏

熵最优玻尔兹曼采样器的编译时自动综合

Automatic compile-time synthesis of entropy-optimal Boltzmann samplers

Maciej Bendkowski

摘要:

本文提出了一个在Haskell中自动编译代数数据类型的多参数玻尔兹曼采样器的框架。我们的框架使用模板Haskell来合成高效的、熵最优的采样器,生成用户声明的代数数据类型的随机实例。用户可以通过一个纯声明性的接口控制结果分发。例如,用户可以控制生成对象的平均大小和构造函数频率。我们说明了我们的框架的有效性,通过一个原型的通用玻尔兹曼脑库显示,它是可以控制成千上万的ADT系统中的数千个不同的参数。我们的原型框架合成玻尔兹曼采样器能够快速生成随机对象的大小在数百万。

英文摘要:

We present a famework for the automatic compilation of multi-parametric Boltzmann samplers for algebraic data types in Haskell. Our framework uses Template Haskell to synthesise efficient, entropy-optimal samplers generating random instances of user-declared algebraic data types. Users can control the outcome distribution through a pure, declarative interface. For instance, users can control the mean size and constructor frequencies of generated objects. We illustrate the effectiveness of our framework through a prototype generic-boltzmann-brain library showing that it is possible to control thousands of different parameters in systems of tens of thousands of ADTs. Our prototype framework synthesises Boltzmann samplers capable of rapidly generating random objects of sizes in the millions.

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

↑