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

Transformer神经自回归流

Transformer Neural Autoregressive Flows

University of Cambridge(剑桥大学);Microsoft Research(微软研究院)

Massimiliano Patacchiola, Aliaksandra Shysheya, Katja Hofmann, Richard E. Turner

AI总结:

提出Transformer神经自回归流(T-NAFs),利用transformer和注意力掩码实现自回归约束,在UCI基准上以更少参数匹配或超越NAFs和B-NAFs。

摘要:

密度估计是机器学习中的一个核心问题,可以使用Normalizing Flows(NFs,归一化流)来执行。NFs包含一系列可逆变换,通过利用变量替换定理,将复杂的目标分布转化为简单分布。Neural Autoregressive Flows(NAFs,神经自回归流)和Block Neural Autoregressive Flows(B-NAFs,块神经自回归流)可以说是NF家族中性能最好的成员。然而,由于对网络结构施加了约束,它们面临可扩展性问题和训练不稳定性。在本文中,我们提出了一种解决这些挑战的新方案,通过利用transformers来定义一类新的神经流,称为Transformer Neural Autoregressive Flows(T-NAFs,Transformer神经自回归流)。T-NAFs将随机变量的每个维度视为一个单独的输入token,使用注意力掩码来强制执行自回归约束。我们采用一种受摊销启发的方法,其中transformer输出可逆变换的参数。实验结果表明,在来自UCI基准的多个数据集上,T-NAFs始终匹配或优于NAFs和B-NAFs。值得注意的是,T-NAFs使用比以前方法少一个数量级的参数实现了这些结果,且无需组合多个流。

英文摘要:

Density estimation, a central problem in machine learning, can be performed using Normalizing Flows (NFs). NFs comprise a sequence of invertible transformations, that turn a complex target distribution into a simple one, by exploiting the change of variables theorem. Neural Autoregressive Flows (NAFs) and Block Neural Autoregressive Flows (B-NAFs) are arguably the most perfomant members of the NF family. However, they suffer scalability issues and training instability due to the constraints imposed on the network structure. In this paper, we propose a novel solution to these challenges by exploiting transformers to define a new class of neural flows called Transformer Neural Autoregressive Flows (T-NAFs). T-NAFs treat each dimension of a random variable as a separate input token, using attention masking to enforce an autoregressive constraint. We take an amortization-inspired approach where the transformer outputs the parameters of an invertible transformation. The experimental results demonstrate that T-NAFs consistently match or outperform NAFs and B-NAFs across multiple datasets from the UCI benchmark. Remarkably, T-NAFs achieve these results using an order of magnitude fewer parameters than previous approaches, without composing multiple flows.

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

↑