可处理的Transformer用于灵活的条件生成
Tractable Transformers for Flexible Conditional Generation
AI总结:
本文提出Tracformer,一种结合稀疏编码器捕获局部与全局上下文的Transformer生成模型,以解决非自回归模型在条件生成中泛化不足的问题,并在文本建模上达到最先进性能。
摘要:
非自回归(NAR)生成模型之所以有价值,是因为它们能够以比自回归(AR)对应模型更原则性的方式处理多样化的条件生成任务,而自回归模型受限于顺序依赖要求。NAR模型的最新进展,如扩散语言模型,在无条件生成方面已展现出优于类似规模的自回归模型(如GPT)的性能。然而,这些改进并不总能带来条件生成性能的提升。我们表明,这一差距的一个关键原因在于难以泛化到训练期间未见过的条件概率查询(即未知变量集合)。因此,强大的无条件生成性能并不能保证高质量的条件生成。本文提出了可处理的Transformer(Tracformer),一种基于Transformer的生成模型,它对不同的条件生成任务更具鲁棒性。与仅依赖从完整输入中提取的全局上下文特征的现有模型不同,Tracformer结合了稀疏Transformer编码器来捕获局部和全局上下文信息。这些信息通过解码器进行路由以进行条件生成。实证结果表明,与最近的扩散和自回归模型基线相比,Tracformer在文本建模上实现了最先进的条件生成性能。
英文摘要:
Non-autoregressive (NAR) generative models are valuable because they can handle diverse conditional generation tasks in a more principled way than their autoregressive (AR) counterparts, which are constrained by sequential dependency requirements. Recent advancements in NAR models, such as diffusion language models, have demonstrated superior performance in unconditional generation compared to AR models (e.g., GPTs) of similar sizes. However, such improvements do not always lead to improved conditional generation performance. We show that a key reason for this gap is the difficulty in generalizing to conditional probability queries (i.e., the set of unknown variables) unseen during training. As a result, strong unconditional generation performance does not guarantee high-quality conditional generation. This paper proposes Tractable Transformers (Tracformer), a Transformer-based generative model that is more robust to different conditional generation tasks. Unlike existing models that rely solely on global contextual features derived from full inputs, Tracformers incorporate a sparse Transformer encoder to capture both local and global contextual information. This information is routed through a decoder for conditional generation. Empirical results demonstrate that Tracformers achieve state-of-the-art conditional generation performance on text modeling compared to recent diffusion and AR model baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。